:root{--bg:#f4efe6;--surface:#fffcf7;--ink:#1c1915;--muted:#6d655c;--line:#e6dcd0;--green:#1d5c42;--green-deep:#143d2d;--amber:#8a4e10;--amber-soft:#fff1d6;--red:#9c332c;--red-soft:#f8e6e1;--ok-soft:#e5f3ec;--shadow:0 1px 2px #3c2a140a, 0 12px 28px #3c2a1412;--radius:20px;color:var(--ink);background:var(--bg);font-family:PingFang TC,Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}[hidden]{display:none!important}html,body{min-height:100%;margin:0}body{color:var(--ink);background:radial-gradient(880px 360px at -12% -8%, #1d5c4217, transparent 58%), radial-gradient(720px 300px at 112% -6%, #e0a04a2e, transparent 52%), var(--bg)}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline-offset:2px;outline:3px solid #1d5c42}.wrap{width:min(1040px,100%);margin:0 auto}.chrome{z-index:5;-webkit-backdrop-filter:saturate(1.35)blur(18px);backdrop-filter:saturate(1.35)blur(18px);padding-top:env(safe-area-inset-top);background:#f6f1e8e0;border-bottom:1px solid #e4dbd0b8;position:sticky;top:0;box-shadow:0 1px #fffdf8a6}main.wrap{padding-left:16px;padding-right:16px}.update-banner,.migrate-banner{color:#fff;background:#8a4e10}.migrate-banner{background:#1d5c42}.migrate-actions{gap:8px;display:flex}.migrate-actions button{color:#143d2d;background:#fff;border:0;border-radius:999px;flex:none;min-height:44px;padding:0 14px;font-weight:800}.update-banner-inner{justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.update-banner p{margin:0;font-weight:800}.update-banner button{color:#6a3e12;background:#fff;border:0;border-radius:999px;flex:none;min-height:44px;padding:0 16px;font-weight:800}.topbar{justify-content:space-between;align-items:center;gap:8px;padding:10px 12px 8px 16px;display:flex}.brand{flex-direction:column;flex:auto;align-items:flex-start;gap:2px;min-width:0;display:flex}.brand-line{flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;max-width:100%;display:flex}.brand h1{letter-spacing:.04em;flex:none;margin:0;font-family:Iowan Old Style,Palatino,Songti TC,PMingLiU,serif;font-size:clamp(1.28rem,4.8vw,1.55rem);font-weight:650;line-height:1.05}.summary{max-width:100%;color:var(--muted);margin:0;font-size:.8rem;font-weight:600;line-height:1.35}.empty-mark{color:#fffdf8;background:linear-gradient(155deg,#2d7a58 0%,#1d5c42 58%,#143d2d 100%);border-radius:16px;place-items:center;width:48px;height:48px;font-family:Songti TC,PMingLiU,serif;font-size:1.35rem;display:grid;box-shadow:inset 0 1px #ffffff47,0 8px 16px #1d5c4238}.top-actions{background:#fffcf7eb;border:1px solid #e4dbd0f2;border-radius:16px;flex:none;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:inset 0 1px 2px #3c2a140a}.header-btn,.tab,.btn,.fab,.text-btn{min-height:44px}.header-btn{min-width:44px;color:var(--green-deep);letter-spacing:.02em;white-space:nowrap;background:0 0;border:0;border-radius:13px;padding:0 11px;font-size:.92rem;font-weight:750}.header-btn:active{background:#1d5c421a}.header-btn.has-due{background:var(--amber-soft);color:var(--amber)}.text-btn{background:#fffcf7eb;border:1px solid #e4dbd0f2;border-radius:999px;padding:0 14px;font-weight:700;box-shadow:inset 0 1px #fffc,0 6px 14px #3c2a140d}.tabs{padding:0 16px 12px}.tab-track{background:#fffcf79e;border:1px solid #e4dbd0e6;border-radius:999px;gap:4px;width:fit-content;max-width:100%;padding:4px;display:flex}.tab{color:var(--muted);background:0 0;border:0;border-radius:999px;padding:0 16px;font-weight:700}.tab[aria-current=page]{color:#fff;background:linear-gradient(#246b4c,#1d5c42);box-shadow:0 6px 14px #1d5c4238}.later{color:#6d5438;vertical-align:1px;background:#efe4d4;border-radius:999px;margin-left:6px;padding:1px 7px;font-size:.75rem;font-weight:700;display:inline-block}.tab[aria-current=page] .later{color:#fff;background:#fffdf833}.filters{gap:8px;padding:10px 0 4px;display:grid}.sync-status{border:1px solid var(--line);width:fit-content;max-width:100%;color:var(--muted);background:#fffcf7d1;border-radius:999px;align-items:center;gap:5px;margin:0;padding:3px 8px 3px 7px;font-size:.75rem;font-weight:750;line-height:1.25;display:inline-flex}.sync-status:before{content:"";background:currentColor;border-radius:50%;flex:none;width:8px;height:8px}.sync-status[data-state=synced]{color:var(--green);background:var(--ok-soft);border-color:#c9e4d6}.sync-status[data-state=syncing],.sync-status[data-state=login],.sync-status[data-state=folder],.sync-status[data-state=reader],.sync-status[data-state=pending]{color:var(--amber)}.sync-status[data-state=offline],.sync-status[data-state=error]{color:var(--red)}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-row,.toolbar-row{align-items:center;gap:8px;display:flex}.density-toggle{border:1px solid var(--line);background:#fffcf7e6;border-radius:16px;flex:none;gap:2px;padding:3px;display:flex;box-shadow:inset 0 1px 2px #3c2a140a}.density-toggle button{white-space:nowrap;background:0 0;border:0;border-radius:13px;min-height:44px;padding:0 12px;font-weight:700}.density-toggle button[aria-pressed=true]{color:#fff;background:linear-gradient(#246b4c,#1d5c42);box-shadow:0 4px 10px #1d5c4233}.sort-field{flex:auto;min-width:0}.sort-field select,.search-row input,.field input,.field select{border:1px solid var(--line);background:#fffcf7f0;border-radius:16px;width:100%;min-height:48px;padding:0 14px;font-size:16px;box-shadow:inset 0 1px #ffffffd9,0 8px 18px #3c2a140a}.search-row input,.sort-field select{min-height:44px}.sort-field select{text-overflow:ellipsis}.search-row input{flex:1;width:auto;min-width:0;font-weight:500}.search-row input::-webkit-search-cancel-button{appearance:none}.list{grid-template-columns:minmax(0,1fr);gap:14px;padding:12px 0 8px;display:grid}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid #e4dbd0f2;border-left:5px solid #8fbfa8;grid-template-columns:96px 1fr;gap:14px;padding:14px;display:grid}.card.status-soon{border-left-color:#e0a04a}.card.status-expired{background:linear-gradient(180deg, #fff8f6 0%, var(--red-soft) 100%);border-color:#e7b8b1 #e7b8b1 #e7b8b1 #9c332c;border-left-width:6px;box-shadow:0 1px 2px #9c332c0a,0 12px 24px #9c332c14}.thumb-wrap{width:96px;height:96px}.thumb{object-fit:cover;background:#efe8dc;border-radius:16px;width:96px;height:96px;box-shadow:inset 0 0 0 1px #1c19150f}.thumb-empty{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect x='12' y='14' width='40' height='38' rx='4' fill='none' stroke='%231d5c42' stroke-width='3'/><path d='M32 14v38' stroke='%231d5c42' stroke-width='3'/></svg>");background-position:50%;background-repeat:no-repeat;background-size:62%}.card-body{min-width:0}.card-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.card h2{letter-spacing:.01em;overflow-wrap:anywhere;margin:0;font-size:1.22rem;font-weight:750;line-height:1.3}.badge{border-radius:999px;flex:none;align-items:center;min-height:28px;padding:0 8px;font-size:.8rem;font-weight:800;display:inline-flex}.badge-ok{background:var(--ok-soft);color:#145c3c}.badge-soon{background:var(--amber-soft);color:var(--amber)}.badge-expired{color:#fff;background:#9c332c}.meta,.remind{margin:6px 0 0}.meta{font-size:.95rem;font-weight:650}.remind{color:var(--muted);font-size:.86rem}.card-actions{gap:8px;margin-top:10px;display:flex}.card-actions button,.btn{border:1px solid var(--line);background:#fffcf7f5;border-radius:16px;padding:0 14px;box-shadow:inset 0 1px #ffffffd9,0 6px 14px #3c2a140a}.card-actions button{flex:1 1 0;max-width:220px;min-height:44px}.compact{background:var(--surface);min-height:56px;box-shadow:var(--shadow);border:1px solid #e4dbd0f2;border-left:5px solid #8fbfa8;border-radius:16px;align-items:center;gap:4px;padding:6px 6px 6px 14px;display:flex}.compact.status-soon{border-left-color:#e0a04a}.compact.status-expired{background:linear-gradient(180deg, #fff8f6 0%, var(--red-soft) 100%);border-color:#e7b8b1 #e7b8b1 #e7b8b1 #9c332c;border-left-width:6px;box-shadow:0 1px 2px #9c332c0a,0 10px 22px #9c332c14}.compact.status-expired .compact-open{grid-template-columns:minmax(0,1fr) auto auto auto}.compact-expired{color:#fff;white-space:nowrap;background:#9c332c;border-radius:999px;padding:1px 7px;font-size:.75rem;font-weight:800;line-height:1.5}.compact.status-expired .compact-date{color:#9c332c;font-weight:800}.compact-open{text-align:left;background:0 0;border:0;flex:auto;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;min-width:0;min-height:44px;padding:4px 0;display:grid}.compact-name{letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap;font-size:1.02rem;font-weight:750;overflow:hidden}.compact-area,.compact-date{color:var(--muted);white-space:nowrap;font-size:.92rem}.compact-area{text-overflow:ellipsis;max-width:6.5em;overflow:hidden}.compact-delete{min-width:44px;min-height:44px;color:var(--red);background:0 0;border:0;border-radius:12px;flex:none;padding:0 8px;font-weight:700}.card-actions button.danger,.btn.danger,#confirm-ok.danger{color:var(--red);background:#fff7f5;border-color:#f0d2cd}.empty,.placeholder{text-align:center;background:#fffdf9c2;border:1px dashed #d9cfc2;border-radius:22px;margin:28px 0;padding:28px 18px}.empty-mark{margin:0 auto 12px}.empty h2,.placeholder h2{margin:0 0 8px;font-size:1.35rem}.empty p,.placeholder p{max-width:36rem;color:var(--muted);margin:0 auto}.later-pill{color:#6d5438;background:#efe4d4;border-radius:999px;margin:0 0 10px;padding:4px 10px;font-weight:800;display:inline-block}.fab{z-index:6;right:max(16px, env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));color:#fff;letter-spacing:.04em;background:linear-gradient(#277255 0%,#1d5c42 62%,#174a36 100%);border:0;border-radius:999px;min-height:52px;padding:0 22px;font-weight:800;position:fixed;box-shadow:inset 0 1px #ffffff3d,0 12px 24px #1d5c4252}body.modal-open{overflow:hidden}body.modal-open .fab{visibility:hidden}.footer{padding:12px 16px calc(96px + env(safe-area-inset-bottom));color:var(--muted);text-align:center;font-size:.88rem}.version-link{color:var(--green);text-underline-offset:3px;background:0 0;border:0;min-height:44px;padding:8px 12px;font-weight:700;text-decoration:underline}.changelog{padding:8px 0 12px}.changelog-head{align-items:center;gap:8px;padding:8px 0 4px;display:flex}.changelog-head h2{margin:0;font-size:1.35rem}.release{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:12px 0 0;padding:16px}.release-current{border-color:#8fbfa8}.release-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.release-head h3{margin:0;font-size:1.15rem}.release-head time{color:var(--muted);font-size:.92rem}.release-summary{margin:8px 0 0;font-weight:650}.release ul{margin:8px 0 0;padding-left:1.2rem}.release li+li{margin-top:4px}dialog.update-dialog{width:min(440px,100% - 32px);height:auto;max-height:calc(100dvh - 32px);color:inherit;background:var(--surface);box-shadow:var(--shadow);border:0;border-radius:22px;margin:0;padding:22px 18px 16px;position:fixed;inset:50% auto auto 50%;overflow:auto;transform:translate(-50%,-50%)}dialog.update-dialog::backdrop{background:#1c19159e}.update-kicker{color:var(--amber);margin:0 0 4px;font-size:.85rem;font-weight:800}dialog.update-dialog h2{margin:0 0 8px;font-size:1.45rem}dialog.update-dialog p{margin:0}.update-actions{gap:8px;margin-top:16px;display:grid}.update-actions .btn{width:100%;min-height:52px}dialog.sheet{color:inherit;background:var(--surface);box-shadow:var(--shadow);border:0;padding:0}#editor:focus{outline:none}dialog.sheet::backdrop{background:#1c19157a}#editor form{flex-direction:column;min-height:0;display:flex}.sheet-head{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 0;display:flex}.sheet-head h2,.more-block h3{margin:0}.sheet-body{gap:14px;padding:16px;display:grid;overflow:auto}.sheet-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);gap:8px;display:flex}.sheet-actions .btn{flex:1;min-height:48px}.btn-primary{color:#fff;background:linear-gradient(#277255 0%,#1d5c42 62%,#174a36 100%);border-color:#1d5c42;font-weight:800;box-shadow:inset 0 1px #ffffff3d,0 8px 16px #1d5c4233}.btn-accent{color:#6a3e12;background:#f4e2cf;border-color:#e7c8a4;font-weight:800}.btn-quiet{color:var(--muted);box-shadow:none;background:0 0;border-color:#0000}.photo-preview{min-height:180px;color:var(--muted);background:#efe8dc;border-radius:16px;place-items:center;display:grid;overflow:hidden}.photo-preview img{object-fit:cover;width:100%;height:240px}.photo-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.photo-actions .btn{min-height:48px}.photo-actions .btn-accent,.photo-actions .btn-quiet{grid-column:1/-1}.field{gap:6px;font-weight:700;display:grid}.field input,.field select{font-weight:500}.hint{color:var(--muted);margin:0;font-size:.92rem;font-weight:500}.invite-link{overflow-wrap:anywhere}.invite-link a{color:var(--green);font-weight:800}.confirm-text{margin:0;padding:12px 16px 4px}.file-input{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}#more-dialog{background:radial-gradient(720px 280px at -16% -10%, #1d5c421a, transparent 60%), radial-gradient(520px 220px at 110% 0%, #e0a04a24, transparent 55%), var(--bg);flex-direction:column;overflow:hidden}#more-dialog[open]{z-index:40;border-radius:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;display:flex;position:fixed;inset:0}#more-dialog .sheet-head{z-index:1;-webkit-backdrop-filter:saturate(1.35)blur(18px);backdrop-filter:saturate(1.35)blur(18px);background:#f6f1e8e6;border-bottom:1px solid #e4dbd0b8;flex:none;padding:12px 16px}#more-dialog .sheet-head h2{letter-spacing:.04em;font-family:Iowan Old Style,Palatino,Songti TC,PMingLiU,serif;font-size:1.45rem;font-weight:650}#more-dialog .sheet-body{min-height:0;padding:16px 16px calc(20px + env(safe-area-inset-bottom));background:0 0;flex:auto;gap:12px}.more-block{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid #e4dbd0f2;gap:12px;padding:16px;display:grid}.more-block h3{letter-spacing:.02em;margin:0;font-size:1.05rem}.more-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.head-actions{flex:none;align-items:center;gap:2px;display:flex}.head-btn{min-height:44px;color:var(--green-deep);white-space:nowrap;background:0 0;border:0;border-radius:12px;padding:0 12px;font-weight:750}.head-btn:active{background:#1d5c421a}.switch{background:0 0;border:0;border-radius:999px;flex:none;width:64px;min-height:44px;padding:6px}.switch-track{background:#e4d9cc;border-radius:999px;height:32px;display:block;position:relative}.switch-track:after{content:"";background:#fff;border-radius:50%;width:26px;height:26px;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #3c2a1433}.switch[aria-checked=true] .switch-track{background:var(--green)}.switch[aria-checked=true] .switch-track:after{transform:translate(20px)}.switch:disabled{opacity:.45}.line-fields{gap:12px;display:grid}.line-link{color:var(--green-deep);font-weight:750}.editor-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.editor-row{border:1px solid var(--line);background:#fffcf7eb;border-radius:14px;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:4px 4px 4px 12px;display:flex}.editor-mail{overflow-wrap:anywhere;min-width:0;font-size:.92rem;font-weight:700}.editor-role{color:var(--muted);flex:none;padding-right:8px;font-size:.82rem;font-weight:700}.editor-remove{min-height:44px;color:var(--red);background:0 0;border:0;border-radius:12px;flex:none;padding:0 12px;font-weight:750}#invite-fields,#editor-block{gap:12px;display:grid}.account-who{color:var(--ink);margin:0;font-size:.98rem;font-weight:750;line-height:1.45}#more-dialog .sync-status{margin:0}.status-head{flex-wrap:wrap;align-items:center;row-gap:2px}.status-tools{flex-wrap:wrap;flex:auto;justify-content:flex-end;align-items:center;gap:0 2px;max-width:100%;margin-left:auto;display:flex}.status-actions{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;display:flex}.status-tools .head-btn{padding:0 8px}.head-btn-quiet{color:var(--muted);font-weight:650}.more-block p{margin:0;line-height:1.55}.more-block>p:not(.hint){color:var(--ink);font-size:.95rem}.more-block .btn{width:100%;min-height:48px;font-weight:750}.more-block .btn-quiet{justify-self:center;width:auto;min-height:44px}.more-block .field{letter-spacing:.01em;font-size:.86rem}#more-dialog .version-note{color:var(--green);text-align:center;margin:0;padding:2px 8px 0;font-weight:700}.toast{z-index:30;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));color:#fff;text-align:center;width:min(420px,100% - 32px);box-shadow:var(--shadow);background:#1c1915;border-radius:14px;padding:12px 14px;position:fixed;transform:translate(-50%)}@media (width<=640px){dialog.sheet:not(.sheet-confirm){border-radius:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0}#editor form{height:100%}}@media (width>=641px){dialog.sheet{border-radius:22px;width:min(520px,100% - 32px);max-height:min(920px,100dvh - 32px);margin:auto}#more-dialog[open]{border-radius:22px;width:min(520px,100% - 32px);height:min(920px,100dvh - 32px);max-height:min(920px,100dvh - 32px);margin:auto;inset:0}#editor form{max-height:min(920px,100dvh - 32px)}.fab{right:max(16px,50vw - 504px)}}dialog.sheet-confirm{border-radius:22px;width:min(420px,100% - 32px);height:auto;max-height:calc(100dvh - 32px);margin:0;position:fixed;inset:50% auto auto 50%;overflow:auto;transform:translate(-50%,-50%)}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
