:root{--paper: #f3efe6;--ink: #1e211d;--muted: #777064;--line: #d8d0c2;--line-soft: #e4ddd0;--line-strong: #c9c0b0;--soft: #ece6da;--field: #fbf7ef;--placeholder: #a9a193;--vermilion: #b23a2f;--celadon: #6f8f84;--white: #fffaf2;--on-accent: #fffaf2;--accent-soft: rgba(178, 58, 47, .07);--celadon-soft: rgba(111, 143, 132, .12);--shadow: 0 18px 50px rgba(40, 34, 24, .12);--shadow-soft: 0 8px 22px rgba(40, 30, 22, .08);--serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;--sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;color-scheme:light}:root[data-theme=dark]{--paper: #141512;--ink: #e8e2d6;--muted: #9b9487;--line: #2c2b26;--line-soft: #232420;--line-strong: #3a3831;--soft: #1d1f1a;--field: #191b16;--placeholder: #6f6a5f;--vermilion: #e06a5a;--celadon: #8fb3a7;--white: #fffaf2;--on-accent: #fffaf2;--accent-soft: rgba(224, 106, 90, .14);--celadon-soft: rgba(143, 179, 167, .14);--shadow: 0 18px 50px rgba(0, 0, 0, .5);--shadow-soft: 0 8px 22px rgba(0, 0, 0, .36);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0}html{-webkit-text-size-adjust:100%}body{min-width:320px;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}::selection{background:var(--accent-soft)}h1,h2,h3,h4,p,dl,dd,figure{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}svg{display:block}:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px}.serif{font-family:var(--serif)}.num{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.right{text-align:right}.red{color:var(--vermilion)!important}.hint{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.7}.form-error{margin:8px 0 0;color:var(--vermilion);font-size:11.5px;line-height:1.6}.link{padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;white-space:nowrap;cursor:pointer}.link:hover,.link.danger{color:var(--vermilion)}.close{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.close:hover{color:var(--vermilion)}#root{min-height:100vh}.app{display:flex;min-height:100vh;min-height:100dvh;flex-direction:column;background:var(--paper);color:var(--ink)}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:26px;padding:15px max(34px,calc((100% - 1000px)/2 + 42px));border-bottom:1px solid var(--line);background:var(--paper)}.wordmark{display:inline-flex;align-items:center;gap:3px;color:var(--ink);font-family:var(--serif);font-size:22px;font-weight:600;letter-spacing:.08em;white-space:nowrap}.seal{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:4px;background:var(--vermilion);color:var(--on-accent);font-family:var(--serif);font-size:19px;font-weight:600;line-height:1;box-shadow:0 1px #0000001f}.nav{display:flex;align-items:center;gap:20px;font-size:12.5px}.nav a{position:relative;color:var(--muted);white-space:nowrap}.nav a:hover,.nav a.on{color:var(--ink)}.nav a.on:after{content:"";position:absolute;right:0;bottom:-20px;left:0;height:1.5px;background:var(--vermilion)}.top-right{display:flex;align-items:center;gap:10px;margin-left:auto;color:var(--muted);font-size:11.5px}.account-email{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-right .dot{width:5px;height:5px;flex:0 0 auto;border-radius:50%;background:var(--celadon)}.icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.icon-btn:hover{border-color:var(--line-strong);color:var(--ink)}.icon-btn svg{width:15px;height:15px}.app-footer{margin-top:auto;padding:24px 24px 34px;border-top:1px solid var(--line);color:var(--muted);font-size:10.5px;text-align:center}.footer-inner{max-width:900px;margin:0 auto;line-height:1.9}.footer-inner .serif{color:var(--ink);font-size:12px}.page{width:100%;max-width:1000px;flex:1;margin:0 auto;padding:40px 42px 64px}.page-narrow{max-width:860px}.today-page{max-width:1000px}.eyebrow{margin:0 0 6px;color:var(--muted);font-size:10.5px;letter-spacing:.2em}.stamp{display:flex;width:54px;height:64px;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid var(--ink);border-radius:5px;background:transparent;color:var(--ink);text-align:center}.stamp-month{font-size:9px;letter-spacing:.12em;opacity:.76}.stamp-day{font-family:var(--serif);font-size:25px;font-variant-numeric:tabular-nums;font-weight:600;line-height:1}.stamp-week{font-size:8.5px;letter-spacing:.06em;opacity:.7}.stamp-today{border-color:var(--vermilion);background:var(--vermilion);color:var(--on-accent)}.stamp-soon{border-color:var(--vermilion);color:var(--vermilion)}.stamp-later{border-color:var(--line-strong);color:var(--ink)}.stamp-past{border-color:#b7ae9e;border-style:dashed;color:#9b9385}:root[data-theme=dark] .stamp-past{border-color:#57534a;color:#777166}.stamp-small{width:40px;height:48px;border-radius:4px}.stamp-small .stamp-month{font-size:7.5px}.stamp-small .stamp-day{font-size:18px}.stamp-small .stamp-week{font-size:7px}.stamp-row{width:54px;height:64px}.stamp-big{width:86px;height:104px;border-radius:6px}.stamp-big .stamp-month{font-size:11px}.stamp-big .stamp-day{font-size:40px}.stamp-big .stamp-week{font-size:10px}.stamp-detail{width:82px;height:98px;border-radius:6px}.stamp-detail .stamp-month{font-size:11px}.stamp-detail .stamp-day{font-size:34px}.stamp-detail .stamp-week{font-size:9.5px}.stamp-hero{width:104px;height:124px;border-radius:7px}.stamp-hero .stamp-month{font-size:12px}.stamp-hero .stamp-day{font-size:48px}.stamp-hero .stamp-week{font-size:11px}.type{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;letter-spacing:.12em}.type:before{content:"";width:5px;height:5px;flex:0 0 auto;border-radius:50%;background:var(--celadon)}.type.red{color:var(--vermilion)}.type.red:before{background:var(--vermilion)}.days{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.days.red{color:var(--vermilion)}.days.done{color:var(--celadon)}.btn{display:inline-flex;height:38px;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--ink);font-family:var(--sans);font-size:12.5px;line-height:1;white-space:nowrap;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.btn:hover{border-color:var(--line-strong);background:var(--soft)}.btn.primary,.btn.btn-primary{border-color:var(--vermilion);background:var(--vermilion);color:var(--on-accent);font-weight:500}.btn.primary:hover,.btn.btn-primary:hover{border-color:var(--vermilion);background:var(--vermilion);filter:brightness(1.06)}.btn.done{border:1px dashed #b7ae9e;border-radius:4px;background:transparent;color:#9b9385;cursor:default;font-family:var(--serif);font-size:12.5px;font-weight:600;letter-spacing:.02em}:root[data-theme=dark] .btn.done{border-color:#57534a;color:#777166}.btn.small{height:30px;padding:0 10px;font-size:11.5px}.btn:disabled{opacity:.5}.empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:44px 0;color:var(--muted);text-align:center}.empty .stamp{margin-bottom:6px}.empty h2{color:var(--ink);font-family:var(--serif);font-size:24px;font-weight:600;line-height:1.4}.empty p{max-width:380px;color:var(--muted);font-size:12.5px;line-height:1.8}.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}.today-focus{display:flex;flex-direction:column;align-items:center;gap:20px;padding:34px 0 32px;border-bottom:1px solid var(--line);text-align:center}.today-focus .hero-copy{width:100%;max-width:560px;min-width:0}.today-focus .type{justify-content:center}.today-focus .hero-copy h1{font-size:34px}.today-focus .hero-actions{justify-content:center}.masthead{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid transparent}.masthead .date{font-family:var(--serif);font-size:26px;font-weight:600;letter-spacing:.02em;line-height:1.3}.masthead .lunar{margin-top:5px;color:var(--celadon);font-size:11.5px;letter-spacing:.08em}.today-count{color:var(--muted);font-size:11.5px;text-align:right}.masthead-right{display:flex;align-items:center;gap:12px}.masthead-add.btn{height:32px;margin-bottom:0}.today-count b{color:var(--vermilion);font-weight:600}.hero-copy{min-width:0}.hero-copy h1{margin:8px 0 6px;font-family:var(--serif);font-size:32px;font-weight:600;letter-spacing:.01em;line-height:1.3;overflow-wrap:anywhere}.hero-copy p{color:var(--muted);font-size:12.5px;line-height:1.7}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}.hero-actions .btn.primary{min-width:84px}.today-list{margin-top:6px}.today-list-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line-soft);cursor:pointer;transition:background .15s ease}@media(hover:hover){.today-list-row:hover{background:var(--soft)}}.today-list-row:last-child{border-bottom:0}.link-row{width:100%;border:0;border-bottom:1px solid var(--line-soft);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.link-row:last-child{border-bottom:0}.link-row:hover{background:var(--soft)}.link-row:hover .record-title{color:var(--vermilion);text-decoration:underline;text-underline-offset:3px}.today-list-row .stamp-small{width:42px;height:50px}.record-body{min-width:0}.record-title{margin:0;font-family:var(--serif);font-size:18px;font-weight:600;line-height:1.4}.record-meta{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:4px;color:var(--muted);font-size:10.5px}.record-meta .state{flex:0 0 auto;color:var(--vermilion);font-size:10px;letter-spacing:.08em;white-space:nowrap}.record-meta .type{flex:0 0 auto;white-space:nowrap}.record-meta .type:first-child:before{display:none}.record-meta .state.reminder,.record-meta .state.done{color:var(--celadon)}.record-meta .note{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.today-actions{display:flex;align-items:center;gap:8px}.title-link{display:block;width:fit-content;max-width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.title-link:hover{color:var(--vermilion);text-decoration:underline;text-underline-offset:3px}.compact-link{display:inline-block;margin-top:8px;color:var(--muted);font-size:11.5px}.compact-link:hover{color:var(--vermilion)}.mobile-only{display:none}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.section-head h3{font-family:var(--serif);font-size:17px;font-weight:600;letter-spacing:.06em}.section-head span{color:var(--muted);font-size:11px}.group-label{display:flex;align-items:center;gap:10px;margin:20px 0 2px;color:var(--muted);font-size:10.5px;letter-spacing:.16em}.group-label:after{content:"";height:1px;flex:1;background:var(--line)}.record-row{display:grid;width:100%;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 4px;border:0;border-bottom:1px solid var(--line-soft);border-radius:5px;background:transparent;color:var(--ink);text-align:left;transition:background .15s ease}.record-row:hover{background:var(--soft)}.record-row:last-child{border-bottom:0}.record-row-main{display:block;min-width:0}.record-row-title{display:block;overflow:hidden;font-family:var(--serif);font-size:16px;font-weight:600;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.record-row-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:3px;color:var(--muted);font-size:11px}.center-note{margin-top:20px;text-align:center}.past-line{display:flex;width:100%;align-items:center;gap:12px;margin-top:24px;padding:16px 0 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--muted);font-size:11.5px;text-align:left;cursor:pointer}.past-line:hover{color:var(--vermilion)}.past-line .chev{margin-left:auto;font-size:14px}.fab{position:fixed;right:26px;bottom:26px;z-index:40;display:none;width:46px;height:46px;place-items:center;border:0;border-radius:50%;background:var(--vermilion);color:var(--on-accent);font-size:24px;line-height:1;box-shadow:0 10px 24px #281e1638;transition:transform .15s ease}.fab:hover{transform:translateY(-1px)}.toast{position:fixed;bottom:28px;left:50%;z-index:90;max-width:calc(100% - 40px);padding:10px 16px;border-radius:7px;background:var(--ink);box-shadow:var(--shadow-soft);color:var(--paper);font-size:12px;text-align:center;transform:translate(-50%);animation:toast-in .2s ease both}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.archive-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.archive-head h1{font-family:var(--serif);font-size:34px;font-weight:600;letter-spacing:.02em;line-height:1.3}.archive-count{color:var(--muted);font-size:12px;line-height:1.8;text-align:right}.archive-count b{color:var(--ink);font-weight:600}.archive-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px}.search{display:flex;height:38px;min-width:220px;flex:1;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:var(--field);color:var(--muted);font-size:12px}.search svg{width:14px;height:14px;flex:0 0 auto}.search input{min-width:0;flex:1;border:0;outline:none;background:transparent;color:var(--ink);font-size:12px}.search input::placeholder{color:var(--placeholder)}.seg{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:7px;background:transparent}.seg button{padding:4px 10px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:11.5px;cursor:pointer}.seg button.on{background:var(--soft);color:var(--ink)}.seg button:disabled{opacity:.4;cursor:default}.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.chip{display:inline-flex;height:26px;align-items:center;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:11px;white-space:nowrap;cursor:pointer}.chip:hover{border-color:var(--line-strong);color:var(--ink)}.chip.on,.chip.red{border-color:var(--vermilion);background:var(--accent-soft);color:var(--vermilion)}.only-future{display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}.only-future:hover{color:var(--ink)}.switch{position:relative;width:30px;height:17px;flex:0 0 auto;padding:0;border:0;border-radius:999px;background:var(--line);transition:background .16s ease}.switch:after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:var(--paper);transition:left .16s ease}.switch.on{background:var(--celadon)}.switch.on:after{left:15px}.archive-body{margin-top:26px}.group-heading{display:flex;align-items:center;gap:10px;margin:20px 0 2px;color:var(--muted);font-size:10.5px;letter-spacing:.16em}.group-heading span{color:var(--ink);font-family:var(--serif);font-size:13px;letter-spacing:.08em}.group-heading b{color:var(--ink);font-weight:600}.group-heading small{color:var(--muted);font-size:9.5px;letter-spacing:.04em}.group-heading:after{content:"";height:1px;flex:1;background:var(--line)}.archive-row{display:grid;width:100%;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 4px;border:0;border-bottom:1px solid var(--line-soft);border-radius:5px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;transition:background .15s ease}@media(hover:hover){.archive-row:hover{background:var(--soft)}}.archive-row:last-child{border-bottom:0}.archive-row .stamp{width:46px;height:56px;border-radius:4px}.archive-row .stamp .stamp-month{font-size:8px}.archive-row .stamp .stamp-day{font-size:22px}.archive-row .stamp .stamp-week{font-size:8px}.archive-row-main{display:block;min-width:0}.archive-title{display:block;overflow:hidden;font-family:var(--serif);font-size:15.5px;font-weight:600;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.archive-meta{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:3px;color:var(--muted);font-size:10.5px}.chev{color:var(--muted);font-size:15px;line-height:1}.list-table{margin-top:22px;border-top:1px solid var(--ink)}.list-row{display:grid;width:100%;min-height:46px;grid-template-columns:100px 68px minmax(0,1.05fr) minmax(0,1.35fr) 96px 64px;align-items:center;gap:12px;padding:0 4px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font-size:11.5px;text-align:left}button.list-row{cursor:pointer}button.list-row:hover{background:var(--soft)}.list-row.head{min-height:34px;border-bottom:1px solid var(--line);color:var(--muted);font-size:9.5px;letter-spacing:.12em}.list-row .date{color:var(--muted);font-variant-numeric:tabular-nums}.list-row.today .date{color:var(--vermilion);font-weight:600}.list-row .kind{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}.list-row .kind:before{content:"";width:4px;height:4px;flex:0 0 auto;border-radius:50%;background:var(--celadon)}.list-row .name{overflow:hidden;font-family:var(--serif);font-size:13.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.list-row .cycle{color:var(--muted)}.list-row .days{text-align:right}.list-row .note-cell{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin-top:22px}.page-link{display:inline-grid;min-width:30px;height:30px;place-items:center;padding:0 6px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--muted);font-size:11.5px;cursor:pointer}.page-link:hover{border-color:var(--line-strong);color:var(--ink)}.page-link.is-current{border-color:var(--ink);background:var(--ink);color:var(--paper)}.page-link:disabled{opacity:.4}.days-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:stretch;justify-content:flex-end}.detail-modal .modal{z-index:60}.modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;padding:0;border:0;background:#14120e6b;cursor:default;animation:veil-in .24s ease both}@keyframes veil-in{0%{opacity:0}to{opacity:1}}.detail-sheet{position:relative;width:min(560px,100%);height:100vh;height:100dvh;overflow-y:auto;padding:22px 30px 40px;border-left:1px solid var(--line);background:var(--paper);box-shadow:-20px 0 50px #28221829;animation:detail-in .26s ease both;overscroll-behavior:contain}@keyframes detail-in{0%{opacity:.5;transform:translate(26px)}to{opacity:1;transform:none}}.detail-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10.5px;letter-spacing:.14em}.detail-head{display:flex;align-items:flex-start;gap:18px;margin-top:22px}.detail-title{min-width:0;flex:1}.detail-title h2{margin:8px 0 4px;font-family:var(--serif);font-size:27px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}.detail-title p{color:var(--muted);font-size:12px;line-height:1.7}.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}.tag{display:inline-flex;height:38px;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:12px}.tag.done{border-color:var(--celadon);background:var(--celadon-soft);color:var(--celadon)}.detail-edit{margin-top:20px}.detail-edit-head{display:flex;align-items:center;gap:16px}.detail-edit-head h2{margin:6px 0 3px;font-family:var(--serif);font-size:22px;font-weight:600}.detail-edit-head p{color:var(--muted);font-size:11.5px}.edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;margin-top:18px}.field{display:flex;min-width:0;flex-direction:column;gap:6px}.field>span{color:var(--muted);font-size:10.5px;letter-spacing:.1em}.field>.seg{align-self:flex-start}.field-wide{grid-column:1 / -1}.field-pair{display:contents}.input{width:100%;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:6px;outline:none;background:var(--field);color:var(--ink);font-family:var(--sans);font-size:12.5px;transition:border-color .15s ease,box-shadow .15s ease}.input::placeholder{color:var(--placeholder)}.input:focus{border-color:var(--vermilion);box-shadow:0 0 0 3px var(--accent-soft)}.input:disabled{opacity:.55}.textarea{height:auto;min-height:72px;padding:9px 10px;line-height:1.65;resize:vertical}select.input{cursor:pointer}.section{margin-top:26px}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:var(--muted);font-size:10.5px;letter-spacing:.16em}.section-title:after{content:"";height:1px;flex:1;background:var(--line)}.field-grid{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px 14px;font-size:12.5px;line-height:1.7}.field-grid dt{color:var(--muted)}.field-grid dd{margin:0;overflow-wrap:anywhere}.files{display:flex;flex-wrap:wrap;gap:7px}.file{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--line);border-radius:5px;background:var(--soft);color:var(--ink);font-size:11.5px}.file:hover{border-color:var(--vermilion)}.file svg{width:12px;height:12px;flex:0 0 auto;color:var(--muted)}.reminder-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.detail-foot{margin-top:26px;padding-top:14px;border-top:1px solid var(--line)}.btn.danger{border-color:var(--line);color:var(--vermilion)}.btn.danger:hover{border-color:var(--vermilion);background:transparent}.history{position:relative;padding-left:16px}.history:before{content:"";position:absolute;top:5px;bottom:8px;left:4px;width:1px;background:var(--line)}.history-item{position:relative;padding:0 0 14px}.history-item:before{content:"";position:absolute;top:5px;left:-15px;width:7px;height:7px;border:1px solid var(--celadon);border-radius:50%;background:var(--paper)}.history-item.done:before{background:var(--celadon)}.history-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px}.history-line .date{font-variant-numeric:tabular-nums;font-weight:600}.history-line .status{color:var(--celadon);font-size:11px}.history-line .status.miss{color:var(--vermilion)}.history-line .from{color:var(--muted);font-size:10.5px}.history-toggle{margin-left:auto;font-size:10.5px}.history-note{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.history-sub{margin:2px 0 0;color:var(--muted);font-size:10.5px;line-height:1.6;opacity:.85}.history-more{height:30px;margin-top:6px;padding:0 10px;font-size:11px}.backfill-add{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:0 0 0 1px;border:0;background:transparent;color:var(--muted);font-family:var(--sans);font-size:11px;cursor:pointer}.backfill-add:hover{color:var(--ink)}.backfill-add .plus{width:7px;overflow:visible;font-size:10px;line-height:1;text-align:center}.backfill{margin-top:10px}.backfill-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:26px;padding-left:0}.backfill-ring{width:7px;height:7px;flex:0 0 auto;margin-left:1px;border:1px solid var(--line-strong);border-radius:50%}.backfill-pick{display:inline-flex;align-items:center;gap:5px}.backfill-pick button,.backfill-cancel,.backfill-submit{padding:0;border:0;background:transparent;font-family:var(--sans);font-size:10.5px;cursor:pointer}.backfill-pick button{color:var(--muted)}.backfill-pick button.on{color:var(--celadon)}.backfill-pick .sep{color:var(--line-strong);font-size:10.5px}.backfill-submit{margin-left:auto;color:var(--vermilion)}.backfill-submit:disabled{opacity:.5}.backfill-cancel{color:var(--muted)}.list-end{margin:12px 0 0;color:var(--muted);font-size:10.5px;text-align:center}.period-editor{margin-top:0}.period-inline{display:flex;align-items:center;gap:6px;margin-top:8px}.period-inline .num{width:84px}.panel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.note-editor{display:flex;flex-direction:column;gap:8px}.note-editor>.link{align-self:flex-start}.note-text{margin:0 0 8px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.field .chips{margin-top:0}.info-rows{display:flex;flex-direction:column;gap:8px}.info-row{display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:center;gap:8px}.info-key{font-size:11.5px}.attachment-picker{margin-top:14px}.attachment-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;letter-spacing:.1em}.attachment-head .link{cursor:pointer}.attachment-hint{margin:6px 0;color:var(--muted);font-size:10.5px;line-height:1.6}.attachment-list{display:flex;flex-wrap:wrap;gap:6px}.attachment-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border:1px solid var(--line);border-radius:5px;background:var(--soft);font-size:11px}.attachment-chip a:hover{color:var(--vermilion)}.add-modal{align-items:center;justify-content:center;padding:24px}.add-sheet{position:relative;width:min(940px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;padding:26px 30px 24px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:var(--shadow);animation:modal-in .22s ease both;overscroll-behavior:contain}@keyframes modal-in{0%{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}.add-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:.14em}.add-head{margin-top:14px}.add-head h2{font-family:var(--serif);font-size:30px;font-weight:600;line-height:1.3}.add-head p{margin-top:6px;color:var(--muted);font-size:12px}.add-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,.8fr);gap:30px;margin-top:24px}.add-grid>.form{min-width:0}.form-section{padding:16px 0;border-top:1px solid var(--line)}.form-section:first-child{padding-top:0;border-top:0}.form-label{display:block;margin-bottom:9px;color:var(--muted);font-size:10.5px;letter-spacing:.14em}.add-title{height:42px;font-size:13px}.add-type-input{height:38px;margin-top:8px}.cycle-calendar{display:flex;align-items:center;gap:8px;margin-top:10px}.cycle-calendar .hint{margin:0}.date-field{position:relative}.date-field .date-input{width:100%;padding-right:42px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.date-field .date-input::-webkit-calendar-picker-indicator{display:none}.date-pick{position:absolute;top:50%;right:6px;display:grid;width:30px;height:30px;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:var(--muted);transform:translateY(-50%);cursor:pointer}.date-pick:hover{background:var(--soft);color:var(--vermilion)}.date-pick svg{width:16px;height:16px}.date-input{height:42px;flex:1;font-size:13px}.date-field-compact{width:118px;flex:0 0 auto}.date-field-compact .date-input{height:24px;padding:0 22px 0 0;border:0;border-bottom:1px dotted var(--line-strong);border-radius:0;background:transparent;color:var(--muted);font-size:11px}.date-field-compact .date-input:focus{border-bottom-color:var(--vermilion);outline:none}.date-field-compact .date-pick{right:0;width:22px;height:22px}.date-field-compact .date-pick svg{width:12px;height:12px}.cycle-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:11px}.cycle-row .hint{margin:0}.add-preview{align-self:start;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.preview-label{color:var(--muted);font-size:9.5px;letter-spacing:.18em}.add-preview .stamp{margin-top:14px}.add-preview h3{margin:14px 0 4px;font-family:var(--serif);font-size:18px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.add-preview p{color:var(--muted);font-size:10.5px;line-height:1.6}.preview-meta{margin-top:10px;color:var(--muted);font-size:10.5px}.preview-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.preview-chips span{padding:3px 6px;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:9.5px}.add-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.confirm-card{position:relative;width:min(470px,calc(100% - 32px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;margin:auto;padding:26px 28px 24px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:var(--shadow);animation:modal-in .2s ease both}.confirm-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10.5px;letter-spacing:.16em}.confirm-title{margin:16px 0 4px;font-family:var(--serif);font-size:28px;font-weight:600;line-height:1.3}.confirm-sub{color:var(--muted);font-size:11.5px;line-height:1.7}.confirm-record{display:flex;align-items:center;gap:15px;margin-top:20px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.confirm-record h3{margin:4px 0 2px;font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.35}.confirm-record p{color:var(--muted);font-size:10.5px}.confirm-field{display:block;margin-top:16px}.confirm-field>span{display:block;margin-bottom:6px;color:var(--muted);font-size:10px;letter-spacing:.12em}.confirm-field textarea{width:100%;min-height:64px;padding:9px 10px;border:1px solid var(--line);border-radius:5px;outline:none;background:var(--field);color:var(--ink);font-size:11.5px;line-height:1.6;resize:vertical}.confirm-field textarea:focus{border-color:var(--vermilion);box-shadow:0 0 0 3px var(--accent-soft)}.next-box{margin-top:14px;padding:12px 13px;border:1px dashed var(--line);border-radius:5px}.next-label{color:var(--muted);font-size:9.5px;letter-spacing:.14em}.next-box b{display:block;margin-top:4px;font-family:var(--serif);font-size:16px;font-weight:600}.next-box small{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.6}.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.settings-head .eyebrow{margin:0 0 6px}.settings-head h1{font-family:var(--serif);font-size:34px;font-weight:600;letter-spacing:.02em;line-height:1.3}.settings-head>p:last-child{margin-top:8px;color:var(--muted);font-size:12px}.settings-body{margin-top:24px}.settings-section{padding:18px 0;border-top:1px solid var(--line)}.settings-section:first-child{padding-top:0;border-top:0}.settings-section h3{margin-bottom:10px;font-family:var(--serif);font-size:15px;font-weight:600;letter-spacing:.04em}.setting-row{display:flex;align-items:center;gap:16px;padding:9px 0}.setting-row .label{min-width:0;flex:1}.setting-row .label b{display:block;font-size:12px;font-weight:500}.setting-row .label small{display:block;margin-top:2px;color:var(--muted);font-size:10.5px;line-height:1.6}.setting-row .value{color:var(--muted);font-size:11.5px;white-space:nowrap}.time-control{display:flex;align-items:center;gap:8px}.time-select{width:auto;min-width:88px;height:34px}.theme-seg{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:6px}.theme-seg button{padding:4px 9px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:10.5px;cursor:pointer}.theme-seg button.on{background:var(--soft);color:var(--ink)}.toggle{position:relative;width:30px;height:17px;flex:0 0 auto;padding:0;border:0;border-radius:999px;background:var(--line);transition:background .16s ease}.toggle:after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:var(--paper);transition:left .16s ease}.toggle.on{background:var(--celadon)}.toggle.on:after{left:15px}.settings-notice{margin-top:10px;color:var(--celadon);font-size:11.5px}.settings-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:10.5px}.auth-wrap{display:grid;min-height:100vh;min-height:100dvh;place-items:center;padding:24px;background:var(--paper)}.auth-card{width:min(420px,100%);padding:38px 36px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:var(--shadow-soft)}.auth-card .eyebrow{margin-bottom:10px}.auth-card h1{font-family:var(--serif);font-size:32px;font-weight:600;letter-spacing:.02em;line-height:1.35}.auth-lead{margin-top:10px;color:var(--muted);font-size:12.5px;line-height:1.8}.auth-actions{display:flex;flex-direction:column;gap:8px;margin-top:24px}.auth-actions .btn{height:36px}.tabbar{display:none}@media(max-width:900px){.page{padding-right:30px;padding-left:30px}}@media(max-width:640px){.topbar{gap:14px;padding:13px 20px}.wordmark{font-size:20px;gap:3px}.seal{width:25px;height:25px;font-size:17px}.nav,.account-email,.top-right .dot{display:none}.top-right{gap:0}.page{padding:28px 20px 20px}.btn{height:36px;padding:0 10px;font-size:11.5px}.btn.small{height:36px}.icon-btn{width:44px;height:44px}.close{width:44px;height:44px;font-size:24px}.chip{height:30px;padding:0 11px}.seg button{padding:6px 11px}.page-link{min-width:36px;height:36px}.switch{width:34px;height:20px}.switch:after{width:16px;height:16px}.switch.on:after{left:16px}.time-select{height:40px}.theme-seg button{padding:7px 10px}.masthead{padding-bottom:14px}.masthead .date{font-size:23px}.today-count{font-size:10.5px}.today-focus{gap:16px;padding:24px 0 26px}.today-focus .hero-copy h1{font-size:25px}.stamp-hero{width:72px;height:86px}.stamp-hero .stamp-day{font-size:34px}.today-list-row{grid-template-columns:36px minmax(0,1fr) auto;gap:9px;padding:10px 0}.today-list-row .stamp-small{width:36px;height:44px}.today-list-row .btn{padding:0 10px;font-size:11.5px}.mobile-row{border-radius:5px;cursor:pointer}.mobile-row:active{background:var(--soft)}.record-title{font-size:16px}.mobile-row .record-title{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-meta{gap:2px 7px;font-size:10px}.record-meta .state{font-size:9.5px}.mobile-row .record-meta{flex-wrap:nowrap;overflow:hidden}.today-actions{justify-content:flex-end}.mobile-only{display:inline-flex}.empty h2{font-size:22px}.record-row{grid-template-columns:46px minmax(0,1fr) auto;gap:12px;padding:11px 70px 11px 2px}.record-row .stamp{width:46px;height:56px}.record-row .stamp .stamp-month{font-size:8px}.record-row .stamp .stamp-day{font-size:22px}.record-row .stamp .stamp-week{font-size:8px}.record-row-title{font-size:15px}.record-row-meta{font-size:10px}.archive-head h1,.settings-head h1{font-size:30px}.archive-tools{gap:8px}.search{min-width:100%;order:3}.archive-tools .seg{order:1}.archive-tools .btn{order:2;margin-left:auto}.only-future{width:100%;min-height:36px;margin-left:0;justify-content:flex-end}.archive-row{grid-template-columns:46px minmax(0,1fr) auto;gap:12px}.list-row,.list-row.head{grid-template-columns:82px minmax(0,1fr) 58px;gap:8px;padding:0 2px}.list-row .kind,.list-row .note-cell,.list-row .cycle{display:none}.list-row .name{font-size:12.5px}.detail-modal{justify-content:stretch}.detail-sheet{width:100%;padding:18px 20px 40px;border-left:0}.detail-head{gap:14px;margin-top:18px}.detail-title h2{font-size:24px}.stamp-detail{width:72px;height:86px}.stamp-detail .stamp-day{font-size:30px}.edit-fields{grid-template-columns:1fr}.add-modal{align-items:stretch;padding:0}.add-sheet{width:100%;max-height:100vh;max-height:100dvh;height:100vh;height:100dvh;padding:18px 20px 24px;border:0;border-radius:0}.add-head h2{font-size:26px}.add-grid{grid-template-columns:1fr;gap:0}.add-preview{display:none}.add-actions{position:sticky;bottom:-24px;margin-right:-20px;margin-left:-20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--paper)}.add-actions .btn{height:44px;flex:1}.confirm-card{width:calc(100% - 24px);padding:22px 20px 20px}.confirm-title{font-size:24px}.setting-row{flex-wrap:wrap;gap:8px 16px}.setting-row .label{flex-basis:100%}.setting-row .value{margin-left:auto}.time-control{width:100%}.time-control .btn{margin-left:auto}.theme-seg{width:100%}.theme-seg button{flex:1}.fab{right:18px;bottom:78px;display:grid}.masthead-add{display:none}.toast{bottom:82px}.tabbar{position:fixed;right:0;bottom:0;left:0;z-index:35;display:flex;height:calc(60px + env(safe-area-inset-bottom));align-items:center;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:12px}.tabbar .tab{display:flex;min-width:68px;flex-direction:column;align-items:center;gap:0;padding:8px 0;color:var(--muted)}.tabbar .tab.on{color:var(--ink);font-weight:600}.tabbar .tab .mark{order:2;width:16px;height:2px;margin-top:5px;border-radius:1px;background:transparent}.tabbar .tab.on .mark{background:var(--vermilion)}.app-footer{padding-bottom:84px;font-size:10px}.auth-card{padding:30px 24px}.auth-card h1{font-size:28px}}@media(max-width:420px){.today-focus .hero-copy h1{font-size:22px}.today-list-row{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:9px 0}.today-list-row .stamp-small{width:34px;height:42px}.today-list-row .stamp-small .stamp-day{font-size:16px}.today-list-row .stamp-small .stamp-month,.today-list-row .stamp-small .stamp-week{font-size:6.5px}.record-title{font-size:16px}.stamp-hero{width:68px;height:82px}.stamp-hero .stamp-month{font-size:9.5px}.stamp-hero .stamp-day{font-size:32px}.stamp-hero .stamp-week{font-size:8.5px}.hero-actions{gap:8px}.hero-actions .btn{height:34px;padding:0 11px;font-size:11.5px}.info-row{grid-template-columns:92px minmax(0,1fr) auto}.history-toggle{margin-left:0}}[data-motion=reduced] *,[data-motion=reduced] *:before,[data-motion=reduced] *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
