:root{--paper: #f6f1e8;--paper-2: #efe8dc;--paper-3: #e8dfd0;--surface: #fffcf6;--field: #fffefb;--ink: #2a2723;--ink-2: #58524a;--ink-3: #8b8378;--line: #e6ddce;--line-2: #d6cbb8;--brand: #214b39;--brand-2: #2c5e47;--brand-ink: #183a2b;--brand-soft: #dfe9df;--brand-tint: #edf2ea;--accent: #b4623b;--accent-soft: #f5e3d6;--gold: #8a6420;--gold-soft: #f3e8cf;--danger: #a33a26;--danger-soft: #f8e2da;--warn: #7f5610;--warn-soft: #f5e9cc;--radius-lg: 20px;--radius: 14px;--radius-sm: 10px;--shadow-sm: 0 1px 2px rgb(42 39 35 / 6%);--shadow: 0 1px 2px rgb(42 39 35 / 5%), 0 12px 28px -14px rgb(42 39 35 / 22%);--shadow-lg: 0 28px 70px -24px rgb(33 28 22 / 42%);--font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;--serif: "New York", "Iowan Old Style", ui-serif, Georgia, "Times New Roman", serif;--sidebar: 248px;--gutter: 48px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px);--nav-height: 64px;font-family:var(--font);font-size:15px;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--paper)}button,input,textarea,select{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}button{border:0;background:none;cursor:pointer;padding:0;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}button:disabled{cursor:default;opacity:.5}button:active:not(:disabled){transform:translateY(1px)}:focus-visible{outline:3px solid rgb(180 98 59 / 55%);outline-offset:2px}h1,h2,h3,p{margin:0}h1,h2,h3,strong,p{word-break:keep-all;overflow-wrap:anywhere}h1{font-size:30px;line-height:1.32;letter-spacing:-.03em;font-weight:700}h2{font-size:19px;line-height:1.4;letter-spacing:-.02em;font-weight:700}h3{font-size:16px;line-height:1.5;letter-spacing:-.01em;font-weight:650}p{line-height:1.7}small{font-size:12.5px}svg{flex-shrink:0}img{display:block;max-width:100%}::selection{background:#dfe8cf}.muted{color:var(--ink-2);font-size:14px}.fineprint{color:var(--ink-2);font-size:12.5px;line-height:1.65}.eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.16em;color:var(--accent);margin-bottom:8px}.subtitle{margin-top:6px;color:var(--ink-2);font-size:15px}.mobile-only{display:none}.spin{animation:spin 1s linear infinite}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:800;letter-spacing:-.06em;color:var(--brand-ink)}.brand-icon{width:34px;height:36px;display:grid;place-items:center;border-radius:8px 9px 10px 4px;background:var(--brand);color:#f6efdc;box-shadow:inset 3px 0 #0000002e;transform:rotate(-4deg)}.brand-icon svg{transform:rotate(4deg)}.brand-dot{color:var(--accent)}.app-shell{min-height:100svh;padding-left:var(--safe-left);padding-right:var(--safe-right)}.sidebar{position:fixed;inset:0 auto 0 var(--safe-left);width:var(--sidebar);padding:30px 20px 20px;display:flex;flex-direction:column;background:var(--paper-2);border-right:1px solid var(--line);z-index:20}.sidebar-caption{margin:10px 0 26px 2px;font-size:13px;color:var(--ink-2)}.sidebar-capture{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;margin-bottom:18px;border-radius:12px;background:var(--brand);color:#fffaf0;font-weight:650;box-shadow:0 8px 18px -10px #214b39b3}.sidebar-capture:hover{background:var(--brand-2)}.sidebar nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;border-radius:11px;text-align:left;font-size:15px;font-weight:550;color:var(--ink-2)}.nav-item:hover{background:#ffffff8c;color:var(--ink)}.nav-item.active{background:var(--surface);color:var(--brand-ink);font-weight:700;box-shadow:var(--shadow-sm)}.nav-item.active svg{color:var(--brand)}.nav-count{margin-left:auto;min-width:22px;padding:1px 7px;border-radius:999px;background:var(--accent-soft);color:#8a4325;font-size:12px;font-weight:700;text-align:center}.sidebar-note{margin-top:auto;padding:16px 4px 18px;display:flex;gap:10px;color:var(--ink-2);font-size:13px}.sidebar-note svg{color:var(--brand-2);margin-top:3px}.sidebar-note p{line-height:1.6}.sidebar-user{display:flex;align-items:center;gap:11px;width:100%;padding:12px 10px;border-top:1px solid var(--line);text-align:left;border-radius:12px}.sidebar-user:hover{background:#ffffff8c}.sidebar-user>span:nth-child(2){display:grid;min-width:0;flex:1}.sidebar-user strong{font-size:14px}.sidebar-user small{color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user>svg{color:var(--ink-3)}.avatar{width:34px;height:34px;flex:none;display:inline-grid;place-items:center;border-radius:50%;background:var(--brand-soft);color:var(--brand-ink);font-family:var(--serif);font-weight:700}.main-content{margin-left:var(--sidebar);padding:0 var(--gutter) 64px;max-width:calc(1220px + var(--gutter) * 2)}.topbar{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;margin:0 calc(var(--gutter) * -1) 18px;padding:calc(10px + var(--safe-top)) var(--gutter) 10px;background:#f6f1e8e0;backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid transparent}.mobile-brand{display:none}.topbar-date{font-size:14px;color:var(--ink-2)}.sync-status{display:inline-flex;align-items:center;gap:7px;min-height:34px;max-width:100%;padding:0 13px 0 11px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font-size:13px;font-weight:650;white-space:nowrap}.sync-status>span{overflow:hidden;text-overflow:ellipsis}.sync-status:hover{border-color:var(--line-2)}.sync-status.tone-done svg{color:var(--brand-2)}.sync-status.tone-working{background:var(--brand-tint);border-color:var(--brand-soft);color:var(--brand-ink)}.sync-status.tone-pending{background:var(--warn-soft);border-color:#ead7a8;color:var(--warn)}.sync-status.tone-offline{background:var(--paper-2);border-style:dashed;border-color:var(--line-2);color:var(--ink-2)}.sync-status.tone-alert{background:var(--danger-soft);border-color:#efc5b8;color:var(--danger)}.notices{display:grid;gap:10px;margin-bottom:22px}.notices:empty{display:none}.notice{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid transparent;border-radius:12px;font-size:14px;line-height:1.6;text-align:left}.notice>svg{margin-top:2px}.notice strong{font-weight:700}.notice.error{background:var(--danger-soft);border-color:#efc5b8;color:var(--danger)}.notice.offline{background:var(--warn-soft);border-color:#ead7a8;color:#5f420c}.notice.conflict{width:100%;align-items:center;background:var(--accent-soft);border-color:#eac7b1;color:#7d3a1d;font-weight:600}.notice.conflict>span{flex:1}.notice.subtle{background:var(--paper-2);color:var(--ink-2);font-size:13px}.local-banner{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;font-size:12.5px;color:var(--ink-2)}.local-banner>span{padding:2px 8px;border-radius:999px;background:var(--paper-3);color:var(--ink);font-weight:650;font-size:12px;white-space:nowrap}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.section-heading h2>span,.section-heading h3>span,.orphan-section h3>span{margin-left:4px;font-family:var(--serif);font-weight:500;color:var(--ink-3)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;font-size:15px;font-weight:650;white-space:nowrap;border:1px solid transparent;cursor:pointer}.button.small{min-height:36px;padding:0 13px;font-size:14px;border-radius:10px}.button.primary{background:var(--brand);color:#fffaf0;box-shadow:0 8px 18px -12px #214b39cc}.button.primary:hover:not(:disabled){background:var(--brand-2)}.button.secondary{background:var(--surface);border-color:var(--line-2);color:var(--ink)}.button.secondary:hover:not(:disabled){background:var(--paper-2)}.button.quiet{color:var(--ink-2)}.button.quiet:hover:not(:disabled){background:var(--paper-2);color:var(--ink)}.button.danger{background:var(--danger);color:#fff}.danger-text{color:var(--danger)!important}.button-row{display:flex;flex-wrap:wrap;gap:8px}.text-button{display:inline-flex;align-items:center;gap:5px;padding:6px 2px;color:var(--brand-2);font-size:14px;font-weight:650;border-radius:8px}.text-button:hover:not(:disabled){color:var(--brand-ink);text-decoration:underline;text-underline-offset:3px}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--ink-2)}.icon-button:hover:not(:disabled){background:var(--paper-2);color:var(--ink)}.file-button{position:relative;overflow:hidden}.file-button input,.quick-option input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-button:focus-within,.quick-option:focus-within{outline:3px solid rgb(180 98 59 / 55%);outline-offset:2px}.file-button.disabled{opacity:.5;pointer-events:none}.search-box{display:flex;align-items:center;gap:8px;width:min(320px,100%);height:42px;padding:0 8px 0 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink-3)}.search-box:focus-within{border-color:var(--brand-2);box-shadow:0 0 0 3px #214b391f}.search-box input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font-size:16px;color:var(--ink)}.search-box input::placeholder{color:var(--ink-3)}.search-box button{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--paper-2);color:var(--ink-2)}.filter-row{display:flex;gap:8px;margin-bottom:22px;overflow-x:auto;scrollbar-width:none;padding:2px 0}.filter-row::-webkit-scrollbar{display:none}.chip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:34px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-2);font-size:13.5px;font-weight:600;white-space:nowrap}.chip:hover{border-color:var(--line-2);color:var(--ink)}.chip.selected{background:var(--brand);border-color:var(--brand);color:#fffaf0}.chip-count{font-family:var(--serif);font-size:13px;font-weight:500;opacity:.7}.empty-state{display:grid;justify-items:center;gap:8px;padding:44px 20px 48px;text-align:center}.empty-icon{display:grid;place-items:center;width:58px;height:58px;margin-bottom:6px;border-radius:50%;background:var(--brand-tint);color:var(--brand-2)}.empty-art{width:220px;max-width:64%;margin-bottom:2px}.empty-state h3{font-size:17px}.empty-state p{max-width:380px;color:var(--ink-2);font-size:14px}.empty-state .button-row{justify-content:center;margin-top:8px}.page-footer{display:flex;align-items:center;gap:8px;margin-top:56px;padding-top:20px;border-top:1px solid var(--line);color:var(--ink-3);font-size:13px}.footer-wordmark{margin-left:auto;font-family:var(--serif);font-size:17px;font-style:italic;color:var(--ink-3)}.book-cover{--cover-bg: #2c5140;--cover-ink: #f3ead6;--cover-accent: #d8b86f;position:relative;width:100%;aspect-ratio:2 / 3;overflow:hidden;border-radius:3px 7px 7px 3px;background:var(--cover-bg);color:var(--cover-ink);container-type:inline-size;box-shadow:0 1px 2px #1e181029,0 14px 22px -14px #1e18108c}.book-cover:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgb(0 0 0 / 22%) 0,rgb(255 255 255 / 16%) 2.5%,rgb(0 0 0 / 6%) 5%,transparent 9%);border-radius:inherit}.book-cover>img{width:100%;height:100%;object-fit:cover}.book-cover.photo{background:var(--paper-3)}.book-cover>.image-placeholder{height:100%;border-radius:0}.book-cover.made{display:flex;flex-direction:column;padding:13% 11% 9% 15%}.cover-spine{position:absolute;inset:0 auto 0 0;width:6%;background:#00000024}.cover-title{font-size:15px;font-size:clamp(10px,10.5cqw,26px);line-height:1.32;font-weight:750;letter-spacing:-.03em;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.cover-rule{display:flex;align-items:center;gap:6%;margin:auto 0 7%;color:var(--cover-accent)}.cover-rule:before,.cover-rule:after{content:"";flex:1;height:1px;background:currentColor;opacity:.55}.cover-author{font-size:11px;font-size:clamp(8px,6.8cqw,14px);font-weight:600;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cover-mark{margin-top:3%;font-family:var(--serif);font-style:italic;font-size:9px;font-size:clamp(6px,5.4cqw,11px);opacity:.62}.palette-1{--cover-bg: #a95b3a;--cover-ink: #fcf0e4;--cover-accent: #f2c99f}.palette-2{--cover-bg: #2f3f5c;--cover-ink: #f0e6d0;--cover-accent: #cdb27a}.palette-3{--cover-bg: #dcc59b;--cover-ink: #3a2e20;--cover-accent: #8a6420}.palette-4{--cover-bg: #9fb096;--cover-ink: #1f3128;--cover-accent: #2c5140}.book-cover.small{border-radius:2px 5px 5px 2px}.book-cover.small .cover-mark{display:none}.now-reading{margin-bottom:30px}.now-list{display:grid;gap:16px}.now-list.multi{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}.now-card{display:grid;grid-template-columns:124px minmax(0,1fr);grid-template-rows:auto 1fr;gap:14px 22px;padding:22px;border-radius:var(--radius-lg);background:radial-gradient(circle at 0 0,rgb(255 255 255 / 75%),transparent 60%),linear-gradient(135deg,#e7eee4,#f3ede2);border:1px solid #dfe6d9}.now-list:not(.multi) .now-card{grid-template-columns:148px minmax(0,1fr);padding:26px}.now-cover{grid-row:1 / span 2;align-self:start;border-radius:7px}.now-cover:hover .book-cover{transform:translateY(-3px)}.now-cover .book-cover{transition:transform .2s;box-shadow:0 2px 4px #1e181029,0 22px 34px -18px #1e1810a6}.now-info{display:flex;flex-direction:column;gap:6px;min-width:0}.status-label{display:inline-flex;align-items:center;gap:6px;color:var(--brand-2);font-size:13px;font-weight:650}.status-label:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #2c5e472e}.now-title{display:grid;gap:2px;text-align:left}.now-title strong{font-size:21px;line-height:1.35;letter-spacing:-.02em;font-weight:750}.now-title small{color:var(--ink-2);font-size:14px}.now-title:hover strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}.now-meta{color:var(--ink-2);font-size:13.5px}.now-actions{grid-column:2;align-self:end;display:flex;flex-wrap:wrap;gap:8px}.now-actions button{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 15px;border-radius:12px;background:var(--surface);border:1px solid #d8e1d3;color:var(--brand-ink);font-size:14.5px;font-weight:650}.now-actions button:hover{background:#fff;border-color:var(--brand-2)}.pulse{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin-bottom:38px}.today-button{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);text-align:left}.today-button:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}.today-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--gold-soft);color:var(--gold)}.today-button>span:nth-child(2){display:grid;gap:2px;flex:1;min-width:0}.today-button strong{font-size:15.5px}.today-button small{color:var(--ink-2);font-size:13px}.today-button>svg{color:var(--ink-3)}.today-button.checked .today-icon{background:var(--brand-soft);color:var(--brand)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}.stats>div{display:grid;align-content:center;gap:2px;padding:12px 16px}.stats>div+div{border-left:1px solid var(--line)}.stats dt{color:var(--ink-2);font-size:12.5px}.stats dd{margin:0;font-family:var(--serif);font-size:26px;line-height:1.2;color:var(--brand-ink)}.stats dd small{margin-left:3px;font-family:var(--font);font-size:12.5px;color:var(--ink-2)}.shelf-heading .search-box{margin-left:auto}.book-grid{--shelf-gap: 30px;display:grid;grid-template-columns:repeat(auto-fill,minmax(144px,1fr));gap:44px var(--shelf-gap);padding-top:6px}.book-card{display:flex;flex-direction:column;gap:16px;min-width:0;text-align:left}.book-card-cover{position:relative;display:block;padding:0 8%}.book-card-cover:after{content:"";position:absolute;left:calc(var(--shelf-gap) / -2);right:calc(var(--shelf-gap) / -2);bottom:-9px;height:9px;background:linear-gradient(#e9dec9,#d9cab0);box-shadow:0 7px 10px -7px #4e3a1e73}.book-card-cover .book-cover{position:relative;z-index:1;transition:transform .22s,box-shadow .22s}.book-card:hover .book-cover{transform:translateY(-5px) rotate(-.6deg);box-shadow:0 2px 4px #1e181024,0 22px 28px -16px #1e181099}.book-card-info{display:grid;gap:3px;padding-top:4px;min-width:0}.book-card h3{font-size:15px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-card-author{color:var(--ink-2);font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.book-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:5px}.book-card-count{display:inline-flex;align-items:center;gap:3px;color:var(--ink-2);font-size:12px}.book-status,.mini-status{display:inline-flex;align-items:center;width:fit-content;padding:2px 8px;border-radius:999px;background:var(--paper-2);color:var(--ink-2);font-size:12px;font-weight:650;line-height:1.5;white-space:nowrap}.book-status.reading{background:var(--brand-soft);color:var(--brand-ink)}.book-status.completed{background:var(--gold-soft);color:var(--gold)}.book-status.stopped{background:#ebe4d9;color:#6a5c4a}.book-status.wanted{background:var(--accent-soft);color:#8a4325}.welcome-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:28px;padding:28px 36px;border:1px solid var(--line);border-radius:24px;background:var(--paper)}.welcome-art img{width:100%}.welcome-copy h2{font-size:24px;margin-bottom:8px}.welcome-copy>p{color:var(--ink-2)}.flow-steps{display:grid;gap:10px;margin:20px 0 24px;padding:0;list-style:none}.flow-steps li{display:flex;align-items:center;gap:12px}.flow-steps li>svg{width:32px;height:32px;padding:8px;border-radius:10px;background:var(--surface);border:1px solid var(--line);color:var(--brand-2)}.flow-steps span{display:grid;font-size:13px;color:var(--ink-2)}.flow-steps strong{font-size:15px;color:var(--ink)}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:34px}.quick-grid>button{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);text-align:left}.quick-grid>button:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}.quick-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--brand-tint);color:var(--brand-2)}.quick-grid>button>span:nth-child(2){display:grid;gap:1px;flex:1;min-width:0}.quick-grid strong{font-size:15.5px}.quick-grid small{color:var(--ink-2);font-size:13px}.quick-grid>button>svg{color:var(--ink-3)}.note-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));align-items:start;gap:16px}.record-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 18px 14px;border-radius:16px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm)}.record-card.thought{background:#fcf8ee;border-color:#ece1c8}.record-top{display:flex;align-items:center;justify-content:space-between;margin:-4px -8px -4px 0}.record-kind{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);font-size:13px;font-weight:650}.record-card.quote .record-kind svg{color:var(--accent)}.record-card.thought .record-kind svg{color:var(--gold)}.record-card.capture .record-kind svg,.record-card.mindmap .record-kind svg{color:var(--brand-2)}.record-kind small{padding:1px 7px;border-radius:999px;background:var(--paper-2);color:var(--ink-2);font-size:11.5px;font-weight:600}.record-body{font-size:15.5px;line-height:1.75;white-space:pre-wrap}.record-card.quote .record-body{position:relative;padding-left:16px;font-size:16px;color:#26231f}.record-card.quote .record-body:before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;border-radius:3px;background:#e5c3ad}.record-meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--ink-2);font-size:12.5px}.record-page{font-family:var(--serif);font-size:13px}.record-photo{position:relative;display:block;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:12px;background:var(--paper-2)}.record-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.record-photo:hover img{transform:scale(1.02)}.record-photo>span:not(.image-placeholder){position:absolute;right:8px;bottom:8px;padding:2px 9px;border-radius:999px;background:#211e1ab8;color:#fff;font-size:12px;font-weight:650}.mindmap-thumbs{display:flex;gap:6px;overflow-x:auto}.mindmap-thumbs button{flex:none;width:54px;height:54px;overflow:hidden;border-radius:8px;background:var(--paper-2);border:1px solid var(--line)}.mindmap-thumbs img{width:100%;height:100%;object-fit:cover}.record-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid var(--line)}.book-source{display:inline-flex;align-items:center;gap:6px;min-width:0;color:var(--ink-2);font-size:13px;text-align:left}.book-source span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.book-source:disabled{opacity:1;cursor:default}.book-source:not(:disabled):hover{color:var(--brand-ink);text-decoration:underline;text-underline-offset:3px}.book-source.unlinked{color:var(--ink-3);font-style:italic}.link-button{flex:none}.record-action{align-self:flex-start;margin:-4px 0 -2px;font-size:13.5px}.image-placeholder{display:grid;place-content:center;justify-items:center;gap:6px;width:100%;height:100%;min-height:60px;padding:10px;color:var(--ink-3);text-align:center;background:var(--paper-2)}.image-placeholder small{max-width:160px;font-size:12px;line-height:1.45;color:var(--ink-2)}.orphan-section{margin-bottom:26px;padding:18px;border-radius:16px;background:var(--warn-soft);border:1px solid #ead7a8}.orphan-section h3{display:flex;align-items:center;gap:7px;color:#5f420c}.orphan-section>p{margin:4px 0 14px;color:#6a4c14}.orphan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.orphan-card{display:grid;gap:10px;padding:10px;border-radius:14px;background:var(--surface)}.orphan-card .button-row{display:grid;grid-template-columns:1fr 1fr}.orphan-card .button{min-height:38px;padding:0 8px;font-size:13px}.action-intro{display:flex;align-items:center;gap:16px;margin-bottom:22px;padding:18px 22px;border-radius:var(--radius-lg);background:linear-gradient(135deg,#e7eee4,#f3ede2);border:1px solid #dfe6d9}.action-intro-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:var(--surface);color:var(--brand)}.action-intro p{display:grid;flex:1}.action-intro p strong{font-size:16.5px}.action-intro p span{color:var(--ink-2);font-size:14px}.action-counts{display:flex;gap:6px;margin:0}.action-counts>div{display:grid;justify-items:center;min-width:70px;padding:8px 10px;border-radius:12px;background:#ffffffa6}.action-counts dt{font-size:12px;color:var(--ink-2)}.action-counts dd{margin:0;font-family:var(--serif);font-size:22px;color:var(--brand-ink)}.action-list{display:grid;gap:14px}.action-card{padding:18px 18px 10px;border-radius:18px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm)}.action-card.done{background:#f8f6f0}.action-card.done h3{color:var(--ink-2)}.action-card-top{display:flex;align-items:flex-start;gap:14px}.complete-button{display:grid;place-items:center;flex:none;width:34px;height:34px;margin-top:2px;border-radius:50%;border:2px solid var(--line-2);background:var(--field);color:transparent}.complete-button:hover:not(:disabled){border-color:var(--brand-2);color:var(--brand-2)}.complete-button.done{border-color:var(--brand);background:var(--brand);color:#fff}.action-main{display:grid;gap:6px;flex:1;min-width:0}.action-main h3{font-size:17px;line-height:1.5}.mini-status.in_progress{background:var(--brand-soft);color:var(--brand-ink)}.mini-status.done{background:var(--brand);color:#fffaf0}.mini-status.on_hold{background:#ebe4d9;color:#6a5c4a}.mini-status.planned{background:var(--gold-soft);color:var(--gold)}.action-source{display:flex;gap:8px;padding:9px 12px;border-radius:10px;background:var(--paper);color:var(--ink-2);font-size:14px;line-height:1.6}.action-source svg{margin-top:4px;color:var(--accent)}.action-source span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.action-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;color:var(--ink-2);font-size:13px}.action-meta>span{display:inline-flex;align-items:center;gap:5px}.reflection-list{display:grid;gap:8px;margin:14px 0 0 48px}.reflection{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;width:100%;padding:11px 14px;border-radius:12px;background:var(--brand-tint);text-align:left}.reflection:hover{background:#e5ede2}.reflection>span{grid-column:1;color:var(--brand-2);font-size:12px;font-weight:700}.reflection p{grid-column:1;font-size:14.5px;line-height:1.65;white-space:pre-wrap}.reflection>svg{grid-column:2;grid-row:1 / span 2;align-self:center;color:var(--ink-3)}.action-card-bottom{margin:8px 0 0 48px;padding-top:4px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.settings-card{display:grid;gap:14px;padding:22px 24px 24px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface)}.settings-card h2{display:flex;align-items:center;gap:10px;font-size:17.5px}.settings-card h2 svg{color:var(--brand-2)}.settings-card>p{color:var(--ink-2);font-size:14.5px}.settings-card>small{color:var(--ink-2);line-height:1.65}.account-name{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:700;color:var(--ink)!important}.settings-facts{display:grid;border-top:1px solid var(--line)}.settings-fact{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.settings-fact span{color:var(--ink-2)}.settings-fact strong{text-align:right;font-weight:650}.fact-status.tone-done,.fact-status.tone-working{color:var(--brand-2)}.fact-status.tone-pending{color:var(--warn)}.fact-status.tone-alert{color:var(--danger)}.settings-links{display:grid}.settings-link{display:flex;align-items:center;gap:12px;width:100%;padding:14px 4px;border-bottom:1px solid var(--line);text-align:left;font-size:15px;font-weight:550}.settings-link:hover{color:var(--brand-ink)}.settings-link>span{flex:1}.settings-link>svg:first-child{color:var(--brand-2)}.settings-link>svg:last-child{color:var(--ink-3)}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:32px calc(32px + var(--safe-right)) 32px calc(32px + var(--safe-left));background:#211c1675;animation:fadeIn .18s ease-out}.modal{--modal-body-top: 22px;--modal-body-right: 26px;--modal-body-bottom: 26px;--modal-body-left: 26px;--modal-actions-bottom: 18px;display:flex;flex-direction:column;width:min(620px,100%);max-height:calc(100dvh - 64px);overflow:hidden;border-radius:22px;background:var(--surface);box-shadow:var(--shadow-lg);animation:rise .22s cubic-bezier(.2,.8,.3,1)}.modal.wide{width:min(940px,100%)}.modal-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 14px 26px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:18px}.sheet-handle{display:none}.modal-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:var(--modal-body-top) var(--modal-body-right) var(--modal-body-bottom) var(--modal-body-left)}.editor-form,.editor-form form{display:grid;gap:18px}.form-intro{color:var(--ink-2);font-size:14.5px}.field{display:grid;gap:7px;min-width:0}.field>span,.field-label{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:650;color:var(--ink)}.field>span small,.field-label small{padding:1px 7px;border-radius:999px;background:var(--paper-2);color:var(--ink-2);font-size:11.5px;font-weight:600}.field input:not([type=checkbox]):not([type=file]),.field select,.field textarea,.date-field select,.date-field input{width:100%;min-height:46px;padding:0 14px;border:1px solid var(--line-2);border-radius:12px;background:var(--field);color:var(--ink);font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}.field textarea{padding:12px 14px;line-height:1.7;resize:vertical}.field textarea.quote-input{font-size:16.5px;line-height:1.8;background:linear-gradient(90deg,#e5c3ad 0 3px,transparent 3px) no-repeat,var(--field);padding-left:18px}.field select,.date-field select{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2358524a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}.field input::placeholder,.field textarea::placeholder{color:var(--ink-3)}.field input:focus,.field select:focus,.field textarea:focus,.date-field select:focus,.date-field input:focus{border-color:var(--brand-2);box-shadow:0 0 0 3px #214b3924}.field input:user-invalid,.field textarea:user-invalid{border-color:var(--danger)}.field-tools{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:-8px;color:var(--ink-2);font-size:12.5px;line-height:1.55}.field-tools>span{flex:1 1 220px}.form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-columns.three{grid-template-columns:repeat(3,minmax(0,1fr))}.date-field{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.checkbox-field{display:flex;align-items:center;gap:10px;font-size:15px}input[type=checkbox]{width:19px;height:19px;accent-color:var(--brand)}.choice-group{display:flex;flex-wrap:wrap;gap:6px}.choice-group button{min-height:40px;padding:0 15px;border-radius:999px;border:1px solid var(--line-2);background:var(--field);color:var(--ink-2);font-size:14.5px;font-weight:600}.choice-group button:hover{color:var(--ink);border-color:var(--ink-3)}.choice-group button.selected{background:var(--brand);border-color:var(--brand);color:#fffaf0}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:var(--paper-2)}.segmented>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:11px;color:var(--ink-2);font-weight:650}.segmented>button.selected{background:var(--surface);color:var(--brand-ink);box-shadow:var(--shadow-sm)}.form-actions{position:sticky;bottom:calc(-1 * var(--modal-body-bottom));z-index:3;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;margin:4px calc(-1 * var(--modal-body-right)) calc(-1 * var(--modal-body-bottom)) calc(-1 * var(--modal-body-left));padding:14px var(--modal-body-right) var(--modal-actions-bottom) var(--modal-body-left);border-top:1px solid var(--line);background:#fffcf6f5;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.form-actions>.button.primary{min-width:150px}.form-actions>.button:first-child:not(.primary){margin-right:auto}.form-hint{flex:1 1 100%;color:var(--ink-2);font-size:13px;text-align:right}.error-text{display:flex;align-items:flex-start;gap:7px;padding:10px 12px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:14px;line-height:1.55}.error-text svg{margin-top:2px}.quoted-action{display:flex;gap:12px;padding:14px 16px;border-radius:14px;background:var(--paper);border:1px solid var(--line)}.quoted-action>svg{margin-top:3px;color:var(--accent)}.quoted-action small{color:var(--ink-2);font-weight:650}.quoted-action p{font-size:15px;white-space:pre-wrap}.cover-picker{display:flex;align-items:center;gap:16px;padding:12px;border-radius:14px;border:1px solid var(--line);background:var(--paper)}.cover-picker-preview{flex:none;width:76px;aspect-ratio:2 / 3;overflow:hidden;border-radius:3px 6px 6px 3px;background:var(--paper-2);box-shadow:var(--shadow-sm)}.cover-picker-preview img{width:100%;height:100%;object-fit:cover}.cover-empty{display:grid;place-items:center;height:100%;border:1.5px dashed var(--line-2);border-radius:inherit;color:var(--ink-3)}.cover-picker-actions{display:grid;gap:8px;min-width:0}.cover-picker-actions p{color:var(--ink-2);font-size:13.5px;line-height:1.55}.upload-zone{display:grid;justify-items:center;gap:6px;padding:26px 18px 22px;border:1.5px dashed #c9d4c3;border-radius:18px;background:var(--brand-tint);text-align:center}.upload-zone.compact{padding:12px;border-style:solid;border-color:var(--line);background:var(--paper)}.upload-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:4px;border-radius:16px;background:var(--surface);color:var(--brand-2)}.upload-zone strong{font-size:15.5px}.upload-zone small{color:var(--ink-2)}.upload-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}.upload-zone.compact .upload-buttons{margin-top:0}.selected-files{display:grid;gap:10px}.selected-summary{color:var(--ink-2);font-size:13px}.selected-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}.selected-file{position:relative;aspect-ratio:1;overflow:hidden;border-radius:12px;background:var(--paper-2)}.selected-file img{width:100%;height:100%;object-fit:cover}.remove-file{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#211c16b3;color:#fff}.existing-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.existing-photos>div{display:grid;justify-items:start;gap:6px}.photo-thumb{width:100%;aspect-ratio:1;overflow:hidden;border-radius:12px;background:var(--paper-2)}.photo-thumb img{width:100%;height:100%;object-fit:cover}.existing-photos .chip{min-height:30px;font-size:12.5px}.capture-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}.capture-choices>label{position:relative;aspect-ratio:1;overflow:hidden;border-radius:12px;border:2px solid transparent;background:var(--paper-2);cursor:pointer}.capture-choices>label.checked{border-color:var(--brand)}.capture-choices input{position:absolute;top:6px;left:6px;z-index:1}.capture-choices img{width:100%;height:100%;object-fit:cover}.capture-preview{overflow:hidden;border-radius:14px;background:var(--paper-2)}.capture-preview img{width:100%;max-height:340px;object-fit:contain}.quick-capture{display:grid;gap:18px}.quick-books{display:grid;gap:10px}.quick-book-row{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none}.quick-book-row::-webkit-scrollbar{display:none}.quick-book-row>button{display:grid;align-content:start;gap:7px;flex:none;width:78px;text-align:left}.quick-book-row>button>span:last-child{font-size:12.5px;line-height:1.35;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.quick-book-row>button .book-cover,.no-book-cover{outline:3px solid transparent;outline-offset:2px;transition:outline-color .15s}.quick-book-row>button.selected .book-cover,.quick-book-row>button.selected .no-book-cover{outline-color:var(--brand)}.quick-book-row>button.selected>span:last-child{color:var(--brand-ink);font-weight:700}.no-book-cover{display:grid;place-items:center;aspect-ratio:2 / 3;border-radius:3px 6px 6px 3px;border:1.5px dashed var(--line-2);color:var(--ink-3)}.quick-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:118px;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--surface);color:var(--brand-2);text-align:left;cursor:pointer}.quick-option:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}.quick-option>span{display:grid;gap:2px;color:var(--ink)}.quick-option strong{font-size:15.5px}.quick-option small{color:var(--ink-2);font-size:12.5px;line-height:1.45}.quick-option.primary{background:var(--brand);border-color:var(--brand);color:#f3e9cf}.quick-option.primary>span,.quick-option.primary small{color:#fffaf0}.book-detail{display:grid;gap:0}.book-hero{display:grid;grid-template-columns:150px minmax(0,1fr);gap:26px;align-items:end;margin:calc(-1 * var(--modal-body-top)) calc(-1 * var(--modal-body-right)) 0 calc(-1 * var(--modal-body-left));padding:30px 30px 26px;background:linear-gradient(180deg,#e8eee4,var(--surface))}.book-hero.palette-1{background:linear-gradient(180deg,#f3e1d5,var(--surface))}.book-hero.palette-2{background:linear-gradient(180deg,#e1e5ec,var(--surface))}.book-hero.palette-3{background:linear-gradient(180deg,#f2e8d3,var(--surface))}.book-hero.palette-4{background:linear-gradient(180deg,#e6ece1,var(--surface))}.book-hero-cover .book-cover{box-shadow:0 2px 4px #1e18102e,0 26px 40px -20px #1e1810b3}.book-hero-info{display:grid;justify-items:start;gap:6px;min-width:0}.book-hero-info h2{font-size:25px;line-height:1.3;letter-spacing:-.03em}.book-hero-info>p{color:var(--ink-2);font-size:15px}.book-hero-info>small{color:var(--ink-2)}.book-hero-info .button-row{margin-top:8px}.detail-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.detail-shortcuts>button{display:grid;justify-items:center;gap:6px;padding:14px 6px 12px;border-radius:14px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:13.5px;font-weight:650}.detail-shortcuts>button svg{color:var(--brand-2)}.detail-shortcuts>button:hover{background:var(--brand-tint);border-color:var(--brand-soft)}.detail-section{margin-top:28px}.detail-section h3{font-size:16.5px}.detail-empty{padding:14px 16px;border-radius:12px;background:var(--paper)}.session-list{display:grid;gap:8px}.session-row{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:var(--paper);text-align:left}.session-row:hover{border-color:var(--line-2)}.session-row.reading{background:var(--brand-tint);border-color:var(--brand-soft)}.session-row>svg:first-child{color:var(--brand-2)}.session-row>span{display:grid;flex:1;min-width:0}.session-row strong{font-size:14.5px}.session-row small{color:var(--ink-2);font-size:13px}.session-row>svg:last-child{color:var(--ink-3)}.detail-notes{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.linked-action{display:flex;align-items:center;gap:10px;width:100%;margin-bottom:8px;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:var(--paper);text-align:left}.linked-action:hover{border-color:var(--line-2)}.linked-action>svg:first-child{color:var(--brand-2)}.linked-action>span{flex:1;min-width:0;font-size:14.5px;font-weight:600}.linked-action>small{color:var(--ink-2);white-space:nowrap}.linked-action.done>span{color:var(--ink-2)}.image-viewer{display:grid;gap:12px}.image-viewer>img{width:100%;max-height:72dvh;object-fit:contain;border-radius:12px;background:var(--paper-2)}.image-viewer>.image-placeholder{min-height:240px;border-radius:12px}.export-text{width:100%;padding:16px;border:1px solid var(--line-2);border-radius:14px;background:var(--field);font-size:16px;line-height:1.75;resize:vertical;outline:none}.export-text:focus{border-color:var(--brand-2);box-shadow:0 0 0 3px #214b3924}.export-count{margin-top:-8px;color:var(--ink-2);font-size:12.5px}.trash-list{display:grid;gap:10px}.trash-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--paper)}.trash-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--paper-2);color:var(--ink-2)}.trash-row>div{flex:1;min-width:0}.trash-row small{color:var(--ink-2);font-weight:650}.trash-row p{font-size:14.5px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.day-calendar{padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--paper)}.day-calendar-head{display:flex;justify-content:space-between;margin-bottom:12px;font-size:14px}.day-calendar-head span{color:var(--ink-2)}.day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;color:var(--ink-2);font-size:12px}.day-cell{position:relative;display:grid;place-items:center;aspect-ratio:1;max-height:44px;border-radius:10px;background:var(--paper-2);color:var(--ink-2);font-family:var(--serif);font-size:13px}.day-cell.read{background:var(--brand);color:#fffaf0}.day-read-mark{position:absolute;right:3px;bottom:3px;stroke-width:3}.day-cell.today{box-shadow:inset 0 0 0 2px var(--accent)}.day-cell.future{opacity:.35}.reading-book-checks{display:grid;gap:4px;max-height:200px;overflow-y:auto;padding:6px 10px;border-radius:12px;border:1px solid var(--line);background:var(--field)}.reading-book-checks label{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:14.5px}.reading-day-list{display:grid;gap:8px}.reading-day-list>div{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--paper)}.reading-day-list>div>svg{color:var(--brand-2)}.reading-day-list>div>span{display:grid;flex:1;min-width:0}.reading-day-list strong{font-size:14.5px}.reading-day-list small{color:var(--ink-2)}.conflicts{display:grid;gap:16px}.conflict-card{padding:16px;border-radius:16px;border:1px solid var(--line)}.conflict-card h3{margin-bottom:12px}.conflict-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.conflict-side{display:grid;align-content:start;gap:10px;padding:14px;border-radius:12px;background:var(--paper)}.conflict-side.local{background:var(--brand-tint)}.conflict-side>strong{display:flex;align-items:center;gap:7px}.conflict-side>small{color:var(--ink-2)}.conflict-details{display:grid;gap:8px}.conflict-details>div small{color:var(--ink-2);font-weight:650}.conflict-details>div p{font-size:14.5px;line-height:1.6;white-space:pre-wrap}.conflict-details>img,.conflict-details>.image-placeholder{max-height:160px;object-fit:contain;border-radius:10px}.install-help{display:grid;justify-items:start;gap:14px}.install-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--brand-tint);color:var(--brand-2)}.install-help ol{margin:0;padding-left:22px;display:grid;gap:8px;line-height:1.65}.toast{position:fixed;left:calc(50% + var(--sidebar) / 2 + (var(--safe-left) - var(--safe-right)) / 2);bottom:28px;z-index:70;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(92vw,calc(100vw - var(--safe-left) - var(--safe-right) - 32px),520px);padding:11px 10px 11px 16px;border-radius:14px;background:#2a2723;color:#fbf6ec;font-size:14.5px;line-height:1.5;box-shadow:var(--shadow-lg);transform:translate(-50%);animation:toastIn .22s ease-out}.toast.ok>svg{color:#9fd3b4}.toast.neutral>svg{color:#e4c994}.toast.error{background:var(--danger)}.toast button{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:#ffffffbf}.toast button:hover{background:#ffffff1f}.busy-indicator{position:fixed;top:calc(14px + var(--safe-top));left:calc(50% + var(--sidebar) / 2 + (var(--safe-left) - var(--safe-right)) / 2);z-index:70;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--brand-ink);font-size:13.5px;font-weight:650;box-shadow:var(--shadow);transform:translate(-50%)}.loading-screen{display:grid;place-content:center;justify-items:center;gap:16px;min-height:100svh;color:var(--ink-2)}.loading-screen>svg{color:var(--brand-2)}.auth-screen{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:100svh;padding-left:var(--safe-left);padding-right:var(--safe-right)}.auth-art{display:flex;flex-direction:column;gap:24px;padding:44px 56px 40px;background:var(--paper)}.auth-art-copy{margin-top:4vh}.auth-art h1{font-size:38px;line-height:1.32;letter-spacing:-.04em;margin-bottom:14px}.auth-art-copy>p:last-child{color:var(--ink-2);font-size:16px}.auth-illustration{width:min(560px,100%);margin:auto auto 0}.auth-flow{display:flex;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}.auth-flow li{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--brand-ink);font-weight:650;font-size:14px}.auth-flow li+li:before{content:"→";margin:0 8px 0 -4px;color:var(--ink-3)}.auth-flow li svg{color:var(--brand-2)}.auth-panel{display:grid;place-items:center;padding:40px 32px;background:var(--paper-2)}.auth-card{display:grid;gap:10px;width:min(430px,100%);padding:38px 36px 30px;border-radius:24px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.auth-mobile-art{display:none}.auth-card h2{font-size:26px;letter-spacing:-.03em}.auth-lead{color:var(--ink-2);font-size:15px}.auth-card form{display:grid;gap:16px;margin-top:14px}.auth-submit{width:100%;min-height:50px;margin-top:4px;font-size:16px}.auth-footnote{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;color:var(--ink-2);font-size:13px}.mobile-nav{display:none}@media(max-width:1180px){:root{--sidebar: 224px;--gutter: 32px}.pulse{grid-template-columns:1fr}}@media(max-width:900px){:root{--sidebar: 0px;--gutter: 16px}.sidebar{display:none}.main-content{margin-left:0;padding-bottom:calc(var(--nav-height) + var(--safe-bottom) + 40px)}.topbar{min-height:58px;margin-bottom:14px}.mobile-brand{display:block}.mobile-brand .brand{font-size:21px;gap:8px}.mobile-brand .brand-icon{width:29px;height:31px}.mobile-brand .brand-icon svg{width:19px;height:19px}.topbar-date{display:none}.sync-status{max-width:62vw}.mobile-nav{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;height:calc(var(--nav-height) + var(--safe-bottom));padding:0 calc(6px + var(--safe-right)) var(--safe-bottom) calc(6px + var(--safe-left));background:#fffcf6f0;backdrop-filter:saturate(1.4) blur(16px);-webkit-backdrop-filter:saturate(1.4) blur(16px);border-top:1px solid var(--line)}.mobile-nav>button{position:relative;display:grid;justify-items:center;align-content:center;gap:3px;height:var(--nav-height);color:var(--ink-2);font-size:11.5px;font-weight:600}.mobile-nav>button.active{color:var(--brand);font-weight:750}.mobile-nav>button.active svg{stroke-width:2.3}.mobile-nav .mobile-capture>span{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:var(--brand);color:#fffaf0;box-shadow:0 10px 20px -10px #214b39cc}.nav-dot{position:absolute;top:12px;left:calc(50% + 8px);width:7px;height:7px;border-radius:50%;background:var(--accent)}.toast{bottom:calc(var(--nav-height) + var(--safe-bottom) + 14px)}.modal-backdrop{align-items:end;padding:0}.modal,.modal.wide{--modal-body-top: 18px;--modal-body-right: calc(20px + var(--safe-right));--modal-body-bottom: calc(24px + var(--safe-bottom));--modal-body-left: calc(20px + var(--safe-left));--modal-actions-bottom: calc(14px + var(--safe-bottom));width:100%;max-height:calc(100dvh - var(--safe-top) - 12px);border-radius:22px 22px 0 0;animation:sheetUp .26s cubic-bezier(.2,.8,.3,1)}.modal.wide{height:calc(100dvh - var(--safe-top) - 12px)}.modal-header{padding:20px calc(12px + var(--safe-right)) 12px var(--modal-body-left)}.sheet-handle{display:block;position:absolute;top:7px;left:50%;width:38px;height:5px;border-radius:999px;background:var(--line-2);transform:translate(-50%)}.form-actions{padding-top:12px}.form-actions>.button.primary{flex:1}.book-hero{padding:24px var(--modal-body-right) 20px var(--modal-body-left)}.welcome-card{grid-template-columns:1fr;padding:18px 20px 24px;gap:8px}.welcome-art{margin:0 -8px}.settings-grid{grid-template-columns:1fr}}@media(max-width:640px){h1{font-size:24px}.mobile-only{display:inline}.page-heading{margin-bottom:20px;gap:12px}.page-heading .subtitle{display:none}.page-heading>.button{min-height:40px;padding:0 13px;font-size:14px}.page-heading .eyebrow{margin-bottom:5px}.section-heading{flex-wrap:wrap}.shelf-heading .search-box,.section-heading .search-box{width:100%;margin-left:0}.filter-row{margin:0 -16px 18px;padding:2px 16px}.now-list.multi{display:flex;margin:0 -16px;padding:0 16px 4px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.now-list.multi::-webkit-scrollbar{display:none}.now-list.multi .now-card{flex:none;width:86%;scroll-snap-align:start}.now-card,.now-list:not(.multi) .now-card{grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;gap:14px 16px;padding:16px}.now-cover{grid-row:1}.now-title strong{font-size:17.5px}.now-actions{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.now-actions button{justify-content:center;padding:0 6px;gap:5px;font-size:13.5px}.pulse{margin-bottom:30px}.stats dd{font-size:22px}.stats>div{padding:10px 12px}.book-grid{--shelf-gap: 14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px var(--shelf-gap)}.book-card{gap:13px}.book-card-cover{padding:0 4%}.book-card h3{font-size:13.5px}.book-card-author{font-size:12px}.book-card-meta .book-status{font-size:11px;padding:1px 6px}.quick-grid{grid-template-columns:1fr;gap:8px;margin-bottom:26px}.note-grid{grid-template-columns:1fr}.action-intro{flex-wrap:wrap;padding:16px}.action-intro p{flex-basis:calc(100% - 70px)}.action-counts{width:100%}.action-counts>div{flex:1;min-width:0}.action-card{padding:16px 14px 8px}.action-card-top{gap:11px}.reflection-list,.action-card-bottom{margin-left:0}.form-columns,.form-columns.three{grid-template-columns:repeat(2,minmax(0,1fr))}.form-columns.three>:last-child{grid-column:1 / -1}.form-columns.dates{grid-template-columns:1fr}.book-hero{grid-template-columns:104px minmax(0,1fr);gap:16px}.book-hero-info h2{font-size:20px}.book-hero-info .button-row,.detail-shortcuts{gap:6px}.detail-shortcuts>button{padding:12px 2px 10px;font-size:12.5px}.conflict-columns{grid-template-columns:1fr}.page-footer{margin-top:40px}.auth-screen{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{align-items:start;padding:calc(20px + var(--safe-top)) 20px calc(32px + var(--safe-bottom));background:var(--paper)}.auth-card{padding:0;border:0;background:none;box-shadow:none}.auth-card .mobile-brand{display:block}.auth-mobile-art{display:block;width:100%;max-width:360px;margin:4px auto 6px}.auth-card h2{font-size:23px}}@media(max-width:370px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-options{grid-template-columns:1fr}}@media(hover:none){.book-card:hover .book-cover,.now-cover:hover .book-cover{transform:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.spin{animation:spin 3s linear infinite!important}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}}@keyframes rise{0%{opacity:0;transform:translateY(12px) scale(.985)}}@keyframes sheetUp{0%{transform:translateY(40px);opacity:.4}}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,10px)}}
