:root { color-scheme:light; font-synthesis:none; --art:url('/web/assets/header-bg.svg'); }
:root[data-theme="dark"] { color-scheme:dark; --ink:#e8efea; --muted:#a9b6ac; --subtle:#86948b; --surface:#1a2420; --bg:#0f1613; --soft:#202c26; --border:#2e4038; --line:#243229; --accent:#3fbd92; --accent-soft:#1a332a; --action:#34a97f; --art:linear-gradient(120deg, rgb(63 189 146 / 12%), transparent 55%); --shadow:0 4px 20px rgb(0 0 0 / 35%); }
* { box-sizing:border-box; } [hidden] { display:none !important; }
html,body { overflow-x:hidden; } @supports (overflow-x:clip) { html,body { overflow-x:clip; } }
body { margin:0; color:var(--ink); background:var(--bg); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; } button,a,input,select { -webkit-tap-highlight-color:transparent; } button { cursor:pointer; } a { color:inherit; } button:disabled { opacity:.55; cursor:wait; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
svg { display:block; width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; } .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; top:-70px; left:20px; z-index:100; background:var(--surface); padding:12px; } .skip-link:focus { top:10px; }
.skip-link:not(:focus) { clip-path:inset(50%); width:1px; height:1px; overflow:hidden; padding:0; }
.sidebar { position:fixed; inset:0 auto 0 0; width:224px; min-width:0; background:var(--surface); border-right:1px solid var(--border); padding:30px 18px 20px; display:flex; flex-direction:column; z-index:10; overflow-x:hidden; overflow-y:auto; }
.brand { display:block; width:172px; max-width:calc(100% - 20px); margin:0 10px 42px; } .brand img { width:100%; height:auto; display:block; } .logo-dark { display:none !important; } [data-theme="dark"] .logo-light { display:none !important; } [data-theme="dark"] .logo-dark { display:block !important; }
.workspace-label,.sidebar-section-title { color:var(--subtle); font-size:10px; font-weight:650; letter-spacing:1.4px; margin:0 12px 12px; } .sidebar-section-title { display:flex; justify-content:space-between; margin-top:32px; } .sidebar-section-title span { letter-spacing:0; }
.nav-item,.source-button { border:0; color:var(--muted); background:transparent; display:flex; width:100%; align-items:center; gap:10px; padding:11px 12px; border-radius:9px; text-align:left; font-size:13px; }
.nav-item.active,.source-button.active { color:var(--accent); background:var(--accent-soft); font-weight:600; } .nav-item:hover,.source-button:hover { background:var(--accent-soft); } .nav-count { margin-left:auto; background:var(--surface); border:1px solid var(--line); padding:0 7px; border-radius:5px; font-size:11px; min-width:23px; text-align:center; }
.source-filters { display:flex; flex-direction:column; gap:4px; } .source-button { font-size:12px; gap:9px; } .source-button svg { width:15px; height:15px; } .source-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; } .source-number { color:var(--subtle); font-size:11px; }
.sidebar-bottom { margin-top:auto; padding-top:44px; } .companion-note { border:1px solid var(--line); border-radius:12px; padding:16px; background:linear-gradient(135deg,var(--accent-soft),var(--surface) 80%); } .companion-icon { color:var(--accent); display:block; margin-bottom:14px; } .companion-note strong { display:block; font-size:13px; line-height:1.6; font-weight:600; } .companion-note p { color:var(--muted); font-size:11px; line-height:1.8; margin:8px 0 0; } .sidebar-footnote { display:flex; gap:7px; align-items:center; justify-content:center; color:var(--subtle); font-size:10px; margin-top:22px; } .sidebar-footnote svg { width:12px; height:12px; }
.workspace { margin-left:224px; min-height:100vh; display:flex; flex-direction:column; } .topbar { min-height:76px; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px 36px; border-bottom:1px solid var(--border); background-color:var(--surface); background-image:var(--art); background-size:cover; background-position:right center; }
.breadcrumb,.header-actions { display:flex; gap:12px; align-items:center; } .breadcrumb { color:var(--muted); font-size:12px; } .breadcrumb svg { width:17px; height:17px; } .breadcrumb strong { font-weight:550; color:var(--ink); } .breadcrumb-separator { color:var(--subtle); } .header-actions { gap:10px; } .connection-label { display:flex; gap:7px; align-items:center; font-size:11px; color:var(--muted); margin-right:8px; } .connection-label span { width:6px; height:6px; background:#169c7e; border-radius:50%; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; border:1px solid transparent; border-radius:9px; padding:8px 13px; font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; } .button svg { width:16px; height:16px; } .button-primary { background:var(--action); color:#fff; } .button-primary:hover { background:#075c68; } .button-quiet { color:var(--muted); background:var(--surface); border-color:var(--border); } .button-quiet:hover { color:var(--accent); border-color:var(--accent); }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:0; border-radius:8px; background:transparent; color:var(--muted); padding:0; } .icon-button:hover,.icon-button[aria-pressed="true"] { color:var(--accent); background:var(--accent-soft); } .icon-button svg { width:18px; height:18px; }
main { padding:36px; width:100%; max-width:1600px; margin:0 auto; flex:1; } .eyebrow { display:block; color:var(--accent); font-size:10px; font-weight:650; letter-spacing:1.7px; margin-bottom:8px; } h1,h2,h3,p { margin:0; } h1 { font-size:34px; font-weight:650; line-height:1.25; letter-spacing:-1.1px; } h1 span { color:var(--accent); } .library-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; gap:16px; } .library-heading p { color:var(--muted); font-size:13px; margin-top:8px; }
.library-banner { display:flex; align-items:center; gap:16px; padding:22px 24px; border:1px solid var(--border); border-radius:13px; background:var(--surface); background-image:var(--art); background-size:cover; background-position:right; margin-bottom:28px; } .banner-icon { display:grid; place-items:center; width:45px; height:45px; background:var(--surface); border:1px solid var(--border); border-radius:12px; color:var(--accent); flex:none; } .banner-icon svg { width:23px; height:23px; } .library-banner strong { font-size:13px; font-weight:600; } .library-banner p { color:var(--muted); font-size:11px; margin-top:5px; } .banner-stat { margin-left:auto; padding-left:25px; border-left:1px solid var(--border); text-align:center; flex:none; } .banner-stat strong { font-size:25px; font-weight:600; display:block; line-height:1.1; } .banner-stat span { font-size:8px; letter-spacing:1px; color:var(--muted); }
.library-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:28px; } .search-box { display:flex; align-items:center; gap:10px; border:1px solid var(--border); background:var(--surface); border-radius:9px; padding:10px 13px; flex:1; min-width:0; max-width:500px; color:var(--subtle); } .search-box svg { width:17px; height:17px; } .search-box input { border:0; outline:none; background:transparent; color:var(--ink); width:100%; min-width:0; font-size:12px; } .search-box:focus-within { outline:2px solid var(--accent); outline-offset:1px; } .search-box input:focus-visible { outline:none; } .search-box input::placeholder { color:var(--subtle); } .sort-control { margin-left:auto; } select { color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:9px; padding:9px 10px; font-size:12px; } .view-switch { display:flex; padding:3px; border:1px solid var(--border); border-radius:9px; background:var(--surface); }
.collection-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; } .collection-heading h2 { display:flex; align-items:center; gap:9px; font-size:14px; font-weight:600; } #visible-count { color:var(--muted); border:1px solid var(--border); border-radius:5px; padding:0 6px; font-size:10px; font-weight:500; } .collection-heading > span { font-size:11px; color:var(--subtle); }
.library-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:22px; align-items:start; } .library-layout:not(:has(.reader:not([hidden]))) { grid-template-columns:minmax(0,1fr); } .collection { min-width:0; } .saved-list { margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .saved-item { min-width:0; border:1px solid var(--border); background:var(--surface); border-radius:12px; box-shadow:var(--shadow); transition:border-color .15s,box-shadow .15s; display:flex; flex-direction:column; position:relative; } .saved-item:hover { border-color:var(--accent); box-shadow:var(--shadow); } .saved-item.selected { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); } .card-content { padding:19px 19px 16px; flex:1; } .card-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:18px; } .item-mark { width:35px; height:37px; border-radius:9px; display:grid; place-items:center; color:var(--accent); background:var(--accent-soft); } .item-mark svg { width:19px; height:19px; } .card-label { color:var(--subtle); font-size:9px; letter-spacing:.8px; }
.item-title { font-size:15px; font-weight:600; line-height:1.55; overflow-wrap:anywhere; margin-bottom:12px; } .item-title button { border:0; background:transparent; padding:0; color:var(--ink); font:inherit; text-align:start; cursor:pointer; width:100%; } .item-title button:hover { color:var(--accent); } .item-source { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); overflow-wrap:anywhere; } .item-source svg { width:12px; height:12px; } .card-footer { border-top:1px solid var(--line); padding:12px 19px; display:flex; justify-content:space-between; align-items:center; gap:10px; background:var(--soft); border-radius:0 0 12px 12px; } .item-date { color:var(--subtle); font-size:10px; } .source-link { color:var(--accent); display:inline-flex; gap:4px; align-items:center; font-size:10px; font-weight:600; text-decoration:none; } .source-link svg { width:12px; height:12px; } .source-link:hover { text-decoration:underline; }
.saved-list.list-view { grid-template-columns:1fr; } .list-view .saved-item { display:grid; grid-template-columns:minmax(0,1fr) 155px; } .list-view .card-content { padding:16px 20px; display:grid; grid-template-columns:35px minmax(0,1fr); gap:0 13px; } .list-view .card-top { grid-row:span 2; margin:0; align-items:start; } .list-view .card-label { display:none; } .list-view .item-title { margin:0 0 5px; font-size:14px; } .list-view .item-source { grid-column:2; } .list-view .card-footer { border-top:0; border-left:1px solid var(--line); border-radius:0 12px 12px 0; flex-direction:column; justify-content:center; align-items:flex-start; padding:16px; gap:8px; }
.reader { position:sticky; top:20px; background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; min-width:0; box-shadow:var(--shadow); max-height:calc(100vh - 40px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border) transparent; } .reader-top { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--soft); } .reader-top > span { display:flex; gap:7px; align-items:center; color:var(--muted); font-size:9px; font-weight:650; letter-spacing:1.2px; } .reader-top svg { width:14px; height:14px; } #reader-body { padding:23px; } .reader-domain { color:var(--accent); font-size:11px; margin-bottom:12px; overflow-wrap:anywhere; } #reader-title { font-size:21px; line-height:1.45; font-weight:600; letter-spacing:-.4px; overflow-wrap:anywhere; } .reader-meta { font-size:10px; color:var(--subtle); margin:13px 0; } .reader-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; } .reader-tag { color:var(--accent); background:var(--accent-soft); font-size:10px; padding:3px 7px; border-radius:5px; } #reader-source { width:100%; margin-bottom:4px; } .reader-section { border-top:1px solid var(--line); margin-top:22px; padding-top:19px; } .reader-section h3 { font-size:10px; color:var(--muted); letter-spacing:1px; text-transform:uppercase; margin-bottom:12px; font-weight:600; } .reader-text,#reader-summary { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.95; color:var(--ink); } #reader-summary { color:var(--muted); } .reader-loading,.reader-error { padding:25px; font-size:13px; color:var(--muted); } .reader-error button { margin-top:14px; }
.page-note { color:var(--subtle); font-size:11px; margin-top:23px; line-height:1.8; } .empty { border:1px dashed var(--border); border-radius:12px; text-align:center; padding:60px 24px; color:var(--muted); } .empty-icon { display:inline-flex; padding:13px; border-radius:12px; background:var(--accent-soft); color:var(--accent); margin-bottom:16px; } .empty h2 { color:var(--ink); font-size:18px; font-weight:600; margin-bottom:8px; } .empty p { font-size:12px; } .empty button { margin-top:18px; }
.loading { display:flex; align-items:center; gap:10px; padding:32px 0; color:var(--muted); font-size:13px; } .spinner { width:16px; height:16px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin 1s linear infinite; } @keyframes spin { to { transform:rotate(360deg); } } .feedback { border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:10px; padding:16px 20px; background:var(--surface); color:var(--muted); margin:18px 0; font-size:13px; box-shadow:var(--shadow-sm); }
footer { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--border); padding:20px 36px; color:var(--subtle); font-size:10px; }
.welcome { min-height:620px; display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:40px; padding:35px 24px; } .welcome h1 { font-size:clamp(32px,3.4vw,52px); letter-spacing:-1.8px; line-height:1.2; margin-top:15px; } .welcome-copy > p { color:var(--muted); font-size:14px; line-height:1.9; margin:22px 0 30px; } .google-button { min-height:48px; font-size:13px; gap:13px; padding-inline:17px; } .google-symbol { display:grid; place-items:center; font-size:17px; font-weight:700; border-radius:5px; background:#fff; color:#4285f4; width:26px; height:26px; } .signin-note { display:flex; gap:6px; align-items:center; color:var(--subtle); font-size:10px; margin-top:17px; } .signin-note svg { width:12px; height:12px; }
.welcome-art { position:relative; min-height:390px; display:flex; align-items:center; justify-content:center; } .art-orbit { position:absolute; width:360px; height:360px; border:1px solid var(--border); border-radius:50%; background:radial-gradient(circle,var(--accent-soft),transparent 70%); } .art-orbit::before { content:''; position:absolute; inset:22px; border:1px dashed var(--border); border-radius:50%; } .art-paper { position:relative; width:290px; border:1px solid var(--border); border-radius:15px; background:var(--surface); padding:25px; box-shadow:0 15px 50px rgb(19 41 75 / 8%); transform:rotate(-3deg); } .art-paper.back { position:absolute; height:290px; transform:rotate(7deg); background:var(--accent-soft); } .art-paper-top { display:flex; align-items:center; gap:9px; font-size:8px; font-weight:650; letter-spacing:1px; color:var(--muted); margin-bottom:28px; } .art-icon { color:var(--accent); padding:8px; background:var(--accent-soft); border-radius:8px; } .art-paper strong { font-size:28px; font-weight:600; line-height:1.35; letter-spacing:-.7px; } .art-line { height:6px; width:95%; background:var(--line); border-radius:4px; margin-top:23px; } .art-line.short { width:65%; margin-top:9px; } .art-tags { display:flex; gap:6px; margin-top:22px; } .art-tags span { font-size:8px; color:var(--accent); background:var(--accent-soft); padding:4px 7px; border-radius:5px; } .art-paper-footer { display:flex; gap:6px; align-items:center; border-top:1px solid var(--line); padding-top:16px; margin-top:24px; font-size:8px; color:var(--subtle); } .art-paper-footer img { width:16px; height:17px; } .art-paper-footer svg { margin-left:auto; width:13px; height:13px; } .art-caption { position:absolute; bottom:-12px; text-align:center; font-size:10px; color:var(--subtle); }
@media(min-width:1700px) { .saved-list { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1200px) { .sidebar { width:195px; padding-inline:14px; } .brand { width:145px; margin-left:9px; } .workspace { margin-left:195px; } main { padding:28px; } .topbar { padding-inline:28px; } .library-layout { grid-template-columns:minmax(0,1fr) 310px; gap:16px; } .saved-list { grid-template-columns:1fr; } .connection-label { display:none; } .welcome { gap:15px; padding-inline:0; } .welcome h1 { font-size:38px; } .art-paper { width:260px; } .art-orbit { width:300px; height:300px; } }
@media(max-width:900px) { .sidebar { width:180px; } .brand { width:135px; margin-left:6px; } .workspace { margin-left:180px; } main { padding:24px; } .topbar { padding:16px 24px; } .library-layout { grid-template-columns:minmax(0,1fr); } .reader { position:fixed; right:20px; bottom:20px; top:90px; width:min(430px,calc(100vw - 40px)); z-index:30; max-height:none; box-shadow:0 15px 80px rgb(0 0 0 / 25%); } .saved-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .welcome { grid-template-columns:1fr; padding:40px 10px; gap:20px; } .welcome-art { min-height:370px; } .welcome h1 { font-size:44px; } .library-banner { padding:18px; } .banner-stat { padding-left:16px; } }
@media(max-width:650px) { .sidebar { position:relative; width:100%; padding:16px 20px 0; border-right:0; border-bottom:1px solid var(--border); overflow:visible; } .brand { width:134px; margin:0 0 17px; } .workspace-label,.sidebar-bottom { display:none; } .nav-item { width:auto; align-self:flex-start; border-radius:8px 8px 0 0; padding:9px 12px; } .nav-item svg { width:17px; height:17px; } #sources-section { padding-bottom:12px; } .sidebar-section-title { display:none; } .source-filters { flex-direction:row; overflow-x:auto; padding-top:10px; gap:6px; } .source-button { flex:none; width:auto; max-width:175px; background:var(--bg); border:1px solid var(--border); padding:7px 9px; font-size:10px; } .source-button svg { width:12px; height:12px; } .workspace { margin-left:0; min-height:calc(100vh - 100px); } .topbar { min-height:60px; padding:10px 20px; } .breadcrumb { gap:8px; font-size:11px; } .header-actions { gap:5px; } .topbar .button { font-size:11px; min-height:32px; padding:6px 9px; } .topbar .button svg { width:14px; height:14px; } main { padding:25px 20px 36px; } h1 { font-size:29px; } .eyebrow { font-size:8px; letter-spacing:1.2px; } .library-heading { margin-bottom:20px; } .library-heading p { font-size:12px; } #refresh { padding:7px 10px; font-size:11px; } .library-banner { gap:11px; padding:16px; margin-bottom:20px; } .banner-icon { width:35px; height:35px; } .banner-icon svg { width:18px; height:18px; } .library-banner strong { font-size:12px; } .library-banner p { font-size:10px; line-height:1.7; } .banner-stat { display:none; } .library-toolbar { flex-wrap:wrap; gap:9px; margin-bottom:22px; } .search-box { flex-basis:100%; max-width:none; } .sort-control { margin:0; } .sort-control select { height:35px; font-size:11px; } .view-switch { margin-left:auto; } .view-switch .icon-button { height:26px; width:28px; } .collection-heading > span { font-size:10px; } .saved-list { grid-template-columns:1fr; gap:12px; } .card-top { margin-bottom:13px; } .card-content { padding:17px; } .card-footer { padding:11px 17px; } .reader { right:10px; left:10px; top:20px; bottom:20px; width:auto; } #reader-body { padding:24px; } .list-view .saved-item { grid-template-columns:1fr; } .list-view .card-footer { border-left:0; border-top:1px solid var(--line); flex-direction:row; justify-content:space-between; border-radius:0 0 12px 12px; padding:10px 17px; } footer { padding:18px 20px; font-size:9px; } footer span:last-child { display:none; } .welcome { padding:25px 0; gap:40px; min-height:0; } .welcome h1 { font-size:36px; } .welcome-copy > p { font-size:13px; } .welcome-art { min-height:355px; } .art-paper { width:260px; } .art-caption { bottom:-2px; } }
.pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.pagination [role="status"] { color:var(--muted); font-size:12px; text-align:center; }
.search-help { color:var(--subtle); font-size:11px; line-height:1.7; margin:-15px 0 22px; }
.search-clear { width:24px; height:24px; flex:none; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
.search-order { color:var(--muted); font-size:11px; white-space:nowrap; }
.item-excerpt { margin:0 0 13px; color:var(--muted); font-size:12px; line-height:1.85; overflow-wrap:anywhere; }
.list-view .item-excerpt { grid-column:2; margin-top:5px; }
.pagination .button:disabled { cursor:default; opacity:.45; border-color:var(--border); color:var(--muted); }
@media(max-width:420px) { .pagination { gap:8px; } .pagination .button { padding:8px 10px; font-size:11px; } .pagination [role="status"] { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; padding:18px 0; border-top:1px solid var(--border); }
.pagination [role="status"] { color:var(--muted); font-size:12px; text-align:center; }
.pagination .button:disabled { opacity:.45; cursor:default; border-color:var(--border); color:var(--subtle); }
@media(max-width:650px) { .pagination { gap:7px; } .pagination .button { font-size:11px; padding:7px 9px; } .pagination [role="status"] { font-size:10px; } }

/* ===== Knozo Cedar rebrand + D3 home (approved design, Nov 24) ===== */
@font-face { font-family:'Bricolage Grotesque'; src:url('/web/assets/bricolage-grotesque.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; }
:root { --ink:#1a1e1b; --muted:#5a6459; --subtle:#7e887d; --surface:#fff; --bg:#f2f4ef; --soft:#f7f9f4; --border:#dfe4d9; --line:#e9ede2; --accent:#0e7c5f; --accent-text:#0b6a52; --accent-soft:#e0efe8; --honey:#c2913b; --action:#0e7c5f; --shadow-sm:0 1px 2px rgb(26 30 27 / 5%), 0 1px 3px rgb(26 30 27 / 7%); --shadow:0 2px 6px rgb(26 30 27 / 5%), 0 14px 34px rgb(26 30 27 / 9%); --shadow-lg:0 30px 70px rgb(26 30 27 / 16%); font-family:'Bricolage Grotesque','Segoe UI',system-ui,-apple-system,sans-serif; }
:root[data-theme="dark"] { --accent-text:#5cd3a8; --honey:#d9b978; --shadow-sm:0 1px 2px rgb(0 0 0 / 30%); --shadow-lg:0 30px 70px rgb(0 0 0 / 55%); }
.button-primary { background:var(--action); } .button-primary:hover { background:#0b6a52; }
.connection-label span { box-shadow:0 0 5px rgb(22 156 126 / 55%); }
/* Background system: aurora + light seam + star dust (light mode only; existing dark mode stays untouched) */
:root:not([data-theme="dark"]) body::before { content:""; position:fixed; inset:-12%; z-index:0; pointer-events:none; background:radial-gradient(42% 38% at 14% 14%, rgb(178 219 199 / 95%), transparent 70%), radial-gradient(30% 40% at 6% 55%, rgb(191 227 209 / 70%), transparent 72%), radial-gradient(38% 32% at 84% 4%, rgb(244 233 203 / 90%), transparent 70%), radial-gradient(46% 42% at 92% 86%, rgb(201 226 194 / 85%), transparent 72%), radial-gradient(44% 38% at 26% 92%, rgb(214 234 228 / 90%), transparent 70%), radial-gradient(34% 30% at 58% 26%, rgb(240 244 231 / 65%), transparent 75%); filter:blur(46px); }
:root:not([data-theme="dark"]) body::after { content:""; position:fixed; inset:0; z-index:0; pointer-events:none; background:url('/web/assets/engrave-corner.svg') no-repeat right top / 500px 320px, url('/web/assets/stardust.svg') no-repeat center / cover; }
.workspace { position:relative; z-index:1; }
:root:not([data-theme="dark"]) .sidebar { background:transparent; border-right:0; }
:root:not([data-theme="dark"]) .topbar { background:transparent; border-bottom-color:transparent; }
:root:not([data-theme="dark"]) .workspace::before { content:""; position:fixed; top:0; bottom:0; left:204px; width:46px; z-index:2; pointer-events:none; background:linear-gradient(90deg, transparent, rgb(255 255 255 / 32%) 42%, rgb(188 224 206 / 38%) 58%, transparent); filter:blur(12px); }
:root:not([data-theme="dark"]) .sidebar::after { content:""; position:fixed; top:56px; bottom:56px; left:229px; width:1px; z-index:11; pointer-events:none; background:linear-gradient(180deg, transparent, rgb(90 100 89 / 26%) 16%, rgb(14 124 95 / 50%) 42%, rgb(90 100 89 / 26%) 62%, transparent); }
/* Sidebar destinations */
.destinations-label { margin-top:24px; display:block; }
.nav-item-static { cursor:default; } .nav-item-static:hover { background:transparent; } .nav-item-static.dim { opacity:.55; }
.destination-state { margin-left:auto; font-size:9px; color:var(--subtle); letter-spacing:.4px; white-space:nowrap; }
/* D3 home */
.hero { padding:54px 0 30px; max-width:820px; margin:0 auto; text-align:center; }
.hero .eyebrow { margin-bottom:10px; }
.hero h1 { font-size:40px; letter-spacing:-1.6px; line-height:1.15; }
.hero h1 span { color:var(--accent); }
.hero p { color:var(--muted); font-size:14px; margin-top:12px; }
.big-search { display:flex; align-items:center; gap:12px; margin:26px auto 0; max-width:640px; border-radius:16px; padding:18px 20px; color:var(--subtle); background:rgb(255 255 255 / 22%); border:0; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 60%), 0 10px 28px rgb(26 30 27 / 8%); }
[data-theme="dark"] .big-search { background:var(--surface); box-shadow:inset 0 0 0 1px var(--border), 0 10px 28px rgb(0 0 0 / 25%); }
.big-search svg { width:20px; height:20px; flex:none; }
.big-search input { border:0; outline:none; background:transparent; color:var(--ink); width:100%; font:inherit; font-size:16px; }
.big-search input::placeholder { color:var(--subtle); }
.big-search:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.chips { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:18px; } .chips:empty { display:none; }
.chip { border:0; background:rgb(255 255 255 / 18%); box-shadow:inset 0 0 0 1px rgb(255 255 255 / 55%); color:var(--muted); border-radius:999px; padding:7px 14px; font-size:11.5px; font-weight:600; cursor:pointer; }
[data-theme="dark"] .chip { background:var(--surface); box-shadow:inset 0 0 0 1px var(--border); }
.chip:hover { color:var(--accent); }
.chip.tag-chip::before { content:"#"; color:var(--accent); font-weight:800; margin-right:2px; }
.home-section { max-width:1080px; margin:34px auto 0; }
.home-section-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.home-section-head h2 { font-size:16px; font-weight:650; display:flex; align-items:center; gap:8px; }
.home-section-head h2 svg { width:16px; height:16px; color:var(--accent); }
.home-link { border:0; background:transparent; font-size:11.5px; color:var(--accent-text); font-weight:600; cursor:pointer; padding:0; }
.home-link:hover { text-decoration:underline; }
.home-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
/* Solid saved-item cards on home (approved treatment; library cards unchanged) */
#home .saved-item { background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-sm); }
#home .saved-item:hover { transform:none; border-color:var(--subtle); box-shadow:var(--shadow); }
#home .saved-item .card-strip { padding:12px 16px 0; }
.domain-chip { display:inline-flex; align-items:center; gap:6px; background:var(--soft); border:1px solid var(--line); border-radius:8px; padding:4px 8px; max-width:100%; }
.domain-chip .mono { width:16px; height:16px; border-radius:5px; background:var(--accent-soft); color:var(--accent-text); font-size:9px; font-weight:700; display:grid; place-items:center; flex:none; }
.domain-chip .domain-text { font-size:10.5px; font-weight:650; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#home .card-content { padding:10px 18px 12px; }
#home .item-title { font-size:15.5px; font-weight:650; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:0; }
#home .card-footer { border-top:1px solid var(--line); background:transparent; padding:11px 18px; }
/* Revisit cards */
.revisit-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.revisit-card { display:flex; align-items:center; gap:14px; border:1px solid var(--border); background:var(--surface); border-radius:12px; padding:14px 16px; box-shadow:var(--shadow-sm); transition:border-color .18s, box-shadow .18s; cursor:pointer; text-align:start; font:inherit; color:inherit; width:100%; }
.revisit-card:hover { border-color:var(--subtle); box-shadow:var(--shadow); }
.revisit-dot { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:16px; font-weight:800; flex:none; }
.revisit-text { min-width:0; }
.revisit-text strong { font-size:13.5px; font-weight:650; letter-spacing:-.2px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.revisit-text span { font-size:10.5px; color:var(--subtle); }
.spark { margin-left:auto; background:rgb(244 232 205); color:#8a610f; font-size:8.5px; font-weight:700; letter-spacing:1.1px; border-radius:6px; padding:3px 8px; white-space:nowrap; }
.tone-1 { background:linear-gradient(135deg,#D9ECE1,#BFE3D1); color:#0B6A52; } .tone-2 { background:linear-gradient(135deg,#F2EBD8,#E9DCB9); color:#8A610F; } .tone-3 { background:linear-gradient(135deg,#E2E9F3,#D0DDEE); color:#3E5A8A; } .tone-4 { background:linear-gradient(135deg,#F4E4DC,#EDD3C3); color:#9A4A33; } .tone-5 { background:linear-gradient(135deg,#E7E5F4,#D9D5EE); color:#5650A3; } .tone-6 { background:linear-gradient(135deg,#E2EEE0,#CFE5C9); color:#4A7A34; }
[data-theme="dark"] .tone-1 { background:linear-gradient(135deg,#19382C,#122A20); color:#7FD6B4; } [data-theme="dark"] .tone-2 { background:linear-gradient(135deg,#3A3018,#2B2410); color:#D9B978; } [data-theme="dark"] .tone-3 { background:linear-gradient(135deg,#1E2A40,#17212F); color:#9FB8E8; } [data-theme="dark"] .tone-4 { background:linear-gradient(135deg,#3A2218,#2A1912); color:#E0A186; } [data-theme="dark"] .tone-5 { background:linear-gradient(135deg,#262343,#1B1930); color:#B7B3F0; } [data-theme="dark"] .tone-6 { background:linear-gradient(135deg,#20331B,#172510); color:#A6D18B; }
@media(max-width:900px) { .home-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:650px) { .hero { padding:34px 0 20px; } .hero h1 { font-size:30px; } .home-grid { grid-template-columns:1fr; gap:12px; } .revisit-grid { grid-template-columns:1fr; } .big-search { padding:14px 16px; } #destinations-list { display:flex; gap:6px; overflow-x:auto; padding-top:4px; } #destinations-list .nav-item-static, #destinations-list .nav-destination { width:auto; flex:none; border-radius:8px; padding:9px 12px; } }

/* ===== Cedar dark mode (designed Nov 25) + stronger brand presence ===== */
[data-theme="dark"] body::before { content:""; position:fixed; inset:-12%; z-index:0; pointer-events:none; background:radial-gradient(40% 35% at 15% 12%, rgb(28 116 84 / 18%), transparent 70%), radial-gradient(34% 36% at 85% 6%, rgb(63 189 146 / 8%), transparent 70%), radial-gradient(45% 40% at 90% 86%, rgb(23 79 60 / 18%), transparent 72%); filter:blur(42px); }
[data-theme="dark"] body::after { content:""; position:fixed; inset:0; z-index:0; pointer-events:none; background:url('/web/assets/stardust.svg') no-repeat center / cover; opacity:.3; }
[data-theme="dark"] .sidebar { background:transparent; border-right:0; }
[data-theme="dark"] .topbar { background:transparent; border-bottom-color:transparent; }
[data-theme="dark"] .button-primary:hover { background:#3cc79a; }
.hero-brandmark { display:inline-flex; align-items:center; gap:8px; }
.hero-brandmark img { width:18px; height:18px; }

/* ===== Account chip (Nov 25): who is signed in, shown in the top bar ===== */
.account { display:flex; align-items:center; gap:10px; min-width:0; max-width:240px; padding:4px 14px 4px 4px; border:1px solid var(--border); border-radius:999px; background:var(--surface); box-shadow:var(--shadow-sm); }
.account-avatar { display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#12a17c,#0b6a52); color:#fff; font-size:13px; font-weight:700; }
.account-text { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.account-text strong { font-size:12px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-text small { font-size:10px; color:var(--subtle); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:650px) { .account { padding:4px; } .account-text { display:none; } }

/* ===== Sign-in redesign (Nov 25): centered Cedar card, full Knozo identity ===== */
.welcome { display:flex; justify-content:center; align-items:center; min-height:calc(100vh - 120px); padding:40px 20px; }
.signin-card { width:min(500px,100%); background:var(--surface); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow-lg); padding:46px 44px 36px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.signin-logo { width:190px; height:auto; margin-bottom:30px; }
.welcome .eyebrow { margin:0 0 12px; color:var(--accent-text); }
.signin-card h1 { margin-top:0; font-size:36px; letter-spacing:-.03em; line-height:1.16; margin:0; }
.signin-card h1 span { background:linear-gradient(120deg,#12a17c,#0b6a52); -webkit-background-clip:text; background-clip:text; color:transparent; }
[data-theme="dark"] .signin-card h1 span { background:linear-gradient(120deg,#4ed3a4,#2fb386); -webkit-background-clip:text; background-clip:text; color:transparent; }
.signin-card p { color:var(--muted); font-size:14px; line-height:1.7; margin:16px 0 28px; }
a.signin-google { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:52px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--ink); font-weight:650; font-size:14px; text-decoration:none; box-shadow:var(--shadow-sm); }
a.signin-google:hover { background:var(--accent-soft); border-color:var(--accent); }
.signin-g { width:20px; height:20px; stroke:none; }
.signin-arrow { width:16px; height:16px; color:var(--subtle); }
.welcome .signin-note { display:flex; justify-content:center; align-items:center; gap:6px; margin-top:18px; color:var(--subtle); font-size:10.5px; }
.welcome .signin-note svg { width:12px; height:12px; }
@media(max-width:650px) { .signin-card { padding:34px 24px 22px; } .signin-card h1 { font-size:28px; } .signin-logo { width:150px; margin-bottom:22px; } }

/* ===== Destination filters (Nov 26): sidebar destinations filter the library ===== */
#destinations-list .nav-destination { cursor:pointer; }
#destinations-list .nav-destination:disabled { cursor:default; opacity:.65; }
#destinations-list .nav-destination.active { color:var(--accent); background:var(--accent-soft); font-weight:600; }
#destinations-list .nav-destination.active .nav-count { border-color:var(--accent); color:var(--accent); }
#destinations-list .nav-destination:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ===== Ask your saves ===== */

.ask-form { margin-top:14px; }
.ask-bar { gap:10px; }
.ask-bar .button { flex:none; }

.ask-answer {
    margin:18px auto 0;
    max-width:640px;
    text-align:start;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--surface);
    box-shadow:var(--shadow);
    padding:18px 20px;
}

.ask-text {
    color:var(--ink);
    font-size:13px;
    line-height:1.9;
}

.ask-loading {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--muted);
    font-size:12px;
}

.ask-sources {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.ask-source {
    border:1px solid var(--border);
    background:var(--accent-soft);
    color:var(--accent-text);
    border-radius:999px;
    padding:5px 12px;
    font-size:11px;
    font-weight:600;
}

.ask-source:hover {
    border-color:var(--accent);
}

.ask-empty {
    color:var(--muted);
    font-size:12px;
}

/* Round 11 (Nov 26): the Ask block reads as its own feature, not a second search box */
.ask-block { margin-top:22px; }
.ask-eyebrow { display:flex; align-items:center; justify-content:center; gap:7px; color:var(--accent-text); font-size:10px; font-weight:700; letter-spacing:1.7px; text-transform:uppercase; }
.ask-eyebrow svg { width:13px; height:13px; color:var(--accent); }
.ask-form { margin-top:10px; }
.ask-bar { background:var(--accent-soft); box-shadow:inset 0 0 0 1px rgb(14 124 95 / 22%), 0 8px 22px rgb(26 30 27 / 6%); }
.ask-bar > svg { color:var(--accent); }
.ask-bar input::placeholder { color:var(--accent-text); opacity:.75; }
.ask-answer { margin-top:12px; }

/* Approved calm workspace. Existing controls keep their behavior and selectors. */
:root { --bg:#eef1ea; --surface:#fff; --soft:#f1f3ee; --ink:#1b1f1c; --muted:#5e665f; --subtle:#5e665f; --accent:#0e7c5f; --accent-text:#0e7c5f; --accent-soft:#e1efe9; --border:rgba(20,40,30,.12); --line:rgba(20,40,30,.08); --honey:#c2913b; --honey-soft:#f6ead3; --honey-ink:#76531b; --shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(20,40,30,.06); }
:root[data-theme=dark] { --bg:#101b15; --surface:#19271f; --soft:#22332a; --ink:#edf2ed; --muted:#b5c1b7; --subtle:#b5c1b7; --accent:#5cd3a8; --accent-text:#5cd3a8; --accent-soft:#203e30; --action:#0e7c5f; --border:#3a5142; --line:#304538; --honey:#d9b978; --honey-soft:#3b3020; --honey-ink:#efd39d; --shadow:0 1px 2px rgba(0,0,0,.12),0 8px 24px rgba(0,0,0,.15); }
html body { background:var(--bg); color:var(--ink); font-size:15px; }
html body::before,html body::after,html .workspace::before,html .sidebar::after { display:none!important; }
html .sidebar { width:240px; background:var(--surface)!important; border-right:1px solid var(--line)!important; padding:26px 16px 18px; }
html .brand { width:132px; margin:0 8px 30px; }
.workspace-label { font-size:12px; letter-spacing:.06em; }
.sidebar>.workspace-label { display:none; }
html .nav-item { font-size:15px; border-radius:12px; margin:2px 0; min-height:42px; }
html .nav-count,html .destination-state,html .source-number { font-size:13px; }
html .nav-item.dim { opacity:1; }
.sidebar-bottom { padding-top:28px; }
.sidebar-plan { padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--soft); }
.sidebar-plan strong { font-size:15px; }
.sidebar-plan p { color:var(--muted); font-size:13px; line-height:1.6; margin:7px 0 12px; }
.sidebar-plan .button { width:100%; }
.companion-note { margin-top:14px; padding:12px; background:var(--surface); box-shadow:none; }
.companion-note summary,.companion-note p,.sidebar-footnote { font-size:13px; color:var(--muted); }
html .workspace { margin-left:240px; }
html .topbar { background:var(--surface)!important; background-image:none!important; border-bottom:1px solid var(--line)!important; padding:14px 40px; min-height:68px; }
.breadcrumb,.account-name,.account-text strong { font-size:14px; }
.account-text small { font-size:13px; }
.connection-label { display:none; }
.account { background:var(--surface); border:1px solid var(--line); box-shadow:none; }
html main { padding:40px; width:100%; max-width:1440px; margin:0 auto; }
html .hero { max-width:none; margin:0; text-align:left; padding:0; }
html .hero h1 { font-size:32px; line-height:1.25; letter-spacing:-1px; }
html .hero p { font-size:15px; margin-top:12px; color:var(--muted); }
html .hero h1 span,.page-heading h1 span { color:var(--accent-text); }
html .ask-form { margin-top:26px; }
html .big-search,html .search-box { max-width:none; margin:0; padding:10px 16px; min-height:56px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); color:var(--muted); }
html .big-search input,html .search-box input { font-size:15px; min-width:0; }
.unified-search { flex-wrap:nowrap; }
.unified-search input { flex:1; }
.search-segments { display:flex; flex:none; padding:3px; border-radius:12px; background:var(--soft); }
.search-segments button { border:0; background:transparent; color:var(--muted); font-size:13px; font-weight:650; padding:9px 12px; border-radius:9px; min-height:36px; }
.search-segments button[aria-pressed=true] { color:var(--accent-text); background:var(--surface); box-shadow:0 1px 3px rgba(0,0,0,.08); }
html .chips { justify-content:flex-start; margin-top:14px; }
html .chip { font-size:13px; padding:7px 12px; border:1px solid var(--line); background:var(--surface); box-shadow:none; }
.ask-block { margin-top:0; }
.ask-answer { background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.ask-text { font-size:15px; }
.ask-source,.ask-loading,.ask-empty { font-size:13px; }
html .home-section { max-width:none; margin-top:36px; }
.home-section-head h2 { font-size:18px; }
html .home-link { font-size:13px; color:var(--accent-text); }
html .home-grid { display:flex; flex-direction:column; gap:0; padding:0; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--surface); box-shadow:var(--shadow); }
html .home-grid .saved-item { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:14px; padding:18px 20px; border:0; border-radius:0; box-shadow:none; }
.home-grid .saved-item+.saved-item { border-top:1px solid var(--line); }
html .home-grid .card-strip { padding:0; background:none; border:0; }
.home-grid .domain-chip { padding:0; border:0; background:none; }
.home-grid .domain-text { display:none; }
.home-grid .mono { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent-text); }
html .home-grid .card-content { padding:0; }
.home-grid .item-title { font-size:16px; margin:0; }
html .home-grid .card-footer { border:0; padding:0; background:none; display:flex; flex-direction:column; gap:7px; align-items:flex-end; }
#home .home-grid .saved-item { border:0; border-radius:0; box-shadow:none; }
#home .home-grid .saved-item+.saved-item { border-top:1px solid var(--line); }
#home .home-grid .card-strip,#home .home-grid .card-content,#home .home-grid .card-footer { padding:0; border:0; }
#home .home-grid .domain-chip .mono { width:36px; height:36px; font-size:13px; }
#home .home-grid .domain-chip { padding:0; border:0; background:none; }
#home .home-grid .card-footer { gap:8px; }
.home-grid .reader-tags { margin:6px 0 0; }
html .revisit-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
html .revisit-card { position:relative; min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); text-align:left; color:var(--ink); }
.revisit-dot { display:none; }
.revisit-text { display:flex; flex-direction:column; gap:12px; width:100%; }
.revisit-text strong { font-size:17px; line-height:1.45; }
.revisit-text strong { white-space:normal; }
html .revisit-text .pick-domain { font-size:13px; color:var(--muted); }
html .revisit-text .pick-summary { font-size:14px; color:var(--muted); line-height:1.6; }
html .revisit-text .pick-reason { align-self:flex-start; font-size:13px; font-weight:600; line-height:1.5; background:var(--honey-soft); color:var(--honey-ink); padding:4px 8px; border-radius:8px; }
.picks-empty { grid-column:1/-1; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--muted); font-size:15px; }
html .library-heading { margin-bottom:24px; }
html .library-heading h1 { font-size:32px; letter-spacing:-1px; }
html .library-heading p { font-size:15px; color:var(--muted); }
.library-toolbar { gap:12px; }
html .search-box { flex:1; }
.search-help,.search-order,.collection-heading>span,.page-note,.pagination [role=status] { font-size:13px; color:var(--muted); }
.search-help { margin:12px 0 24px; }
html .saved-list.list-view { display:flex; flex-direction:column; gap:0; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }
html .list-view .saved-item { border:0; border-radius:0; box-shadow:none; grid-template-columns:minmax(0,1fr) auto; }
.list-view .saved-item+.saved-item { border-top:1px solid var(--line); }
html .list-view .card-content { padding:20px; grid-template-columns:38px minmax(0,1fr); gap:4px 14px; }
html .list-view .card-top { grid-row:1/6; }
html .list-view .item-title { font-size:16px; margin:0; }
.list-view .reader-tags,.list-view .match-badge { grid-column:2; justify-self:start; }
.list-view .reader-tags { margin:2px 0 0; }
.match-badge { padding:3px 8px; border-radius:7px; background:var(--accent-soft); color:var(--accent-text); font-size:13px; }
#search-mode-badge { white-space:nowrap; flex-shrink:0; font-size:11px; }
#semantic-status { overflow-wrap:anywhere; }
#semantic-status a { color:var(--honey-text, #78591e); text-underline-offset:3px; }
html[data-theme="dark"] #semantic-status a { color:#e0bd74; }
html .item-source,html .item-date,html .source-link,html .reader-tag,html .reader-meta { font-size:13px; color:var(--muted); }
html .reader-tag { background:var(--soft); color:var(--muted); }
html .item-excerpt { font-size:14px; line-height:1.7; }
html .list-view .card-footer { background:transparent; border:0; border-radius:0; padding:20px; font-size:13px; align-items:flex-end; }
html .button,html .icon-button,html select { min-height:40px; border-radius:12px; font-size:13px; }
html .button-primary { min-height:44px; background:var(--action); color:#fff; border:1px solid transparent; box-shadow:none; }
.is-pro,.pro-badge { background:var(--honey)!important; color:#241c0e!important; }
html .button-primary.is-pro { min-height:40px; }
html .empty p,html .empty button,html .signin-note,html footer { font-size:13px; }
html .empty { background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.page-heading { margin-bottom:28px; }
.page-heading h1 { font-size:32px; line-height:1.3; letter-spacing:-1px; }
.page-heading p { color:var(--muted); margin-top:12px; }
.plan-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:1000px; }
.plan-card { border:1px solid var(--line); padding:28px; border-radius:16px; background:var(--surface); box-shadow:var(--shadow); }
.plan-card-pro { border:2px solid var(--accent); }
.plan-card h2 { font-size:26px; margin:18px 0 6px; }
.plan-card p,.settings-surface p { color:var(--muted); margin:8px 0 18px; line-height:1.7; }
.plan-card .plan-price { font-size:44px; color:var(--ink); font-weight:700; margin-top:34px; }
.plan-price small { font-size:14px; font-weight:400; color:var(--muted); }
.plan-card ul { padding-left:20px; line-height:2; margin-bottom:28px; }
.plan-label { display:inline-block; font-size:12px; letter-spacing:.06em; border:1px solid var(--line); border-radius:20px; padding:5px 12px; }
html #billing-account { position:static; }
html #billing-account .billing-panel { position:static; inset:auto; width:auto; padding:0; margin-top:20px; border:0; box-shadow:none; background:none; }
html .billing-panel h3 { font-size:26px; }
html .billing-panel p { font-size:14px; }
html .billing-panel .billing-actions { flex-direction:column; margin-top:24px; }
html .billing-panel .billing-button { width:100%; min-height:44px; border:1px solid var(--border); border-radius:12px; background:var(--soft); color:var(--ink); font-size:14px; }
html .billing-panel .billing-button:first-child,html .billing-panel .billing-button:nth-child(2) { background:var(--action); color:white; }


.mobile-menu { display:none; }


.weekly-settings .weekly-settings-note,.weekly-picks-note,.weekly-feedback{font-size:13px;line-height:1.6;color:var(--muted)}
.weekly-settings .button{margin-right:8px}


.weekly-feedback:empty{display:none}
.public-page main{max-width:1120px;margin:auto;min-height:65vh}
.public-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 32px;background:var(--surface);border-bottom:1px solid var(--line)}
.public-header .brand{margin:0;width:132px}
.public-header nav{display:flex;gap:20px;font-size:14px}
.public-page footer nav{display:block}
.plan-interval{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.plan-interval button{border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--muted);font:inherit;font-size:14px;padding:10px 16px;min-height:40px}
.plan-interval button[aria-pressed=true]{background:var(--surface);color:var(--accent-text);box-shadow:var(--shadow)}
.plan-savings{font-size:13px;color:var(--honey-ink);margin-left:8px}
.plan-current{display:block;text-align:center;border:1px solid var(--border);border-radius:12px;padding:12px;font-size:14px}
.plan-usage p{font-size:13px!important;margin:8px 0!important;line-height:1.6}
.plan-usage progress{display:block;width:100%;height:7px;accent-color:var(--accent)}
.plan-usage progress{appearance:none;border:0;border-radius:999px;overflow:hidden;background:var(--border)}
.plan-usage progress::-webkit-progress-bar{background:var(--border);border-radius:999px}
.plan-usage progress::-webkit-progress-value{background:var(--accent);border-radius:999px}
.plan-usage progress::-moz-progress-bar{background:var(--accent);border-radius:999px}
.home-usage-note{font-size:13px;color:var(--muted);margin-top:12px}
.billing-confirmation{padding:16px 20px;border:1px solid var(--border);background:var(--accent-soft);border-radius:16px;margin-bottom:20px}
html #billing-web-panel .plan-price{font-size:40px;font-weight:700;color:var(--ink);line-height:1.3;margin:28px 0 8px}
html #billing-web-panel>button{display:flex;width:100%;justify-content:center;margin-top:12px}
html #billing-web-panel ul{padding-left:20px;line-height:2;margin:24px 0}
html #billing-web-panel .early-access-note{font-size:13px;color:var(--accent-text)}
@media(max-width:1100px) { html .topbar { padding-inline:24px; } html main { padding:32px 24px; } .account-text small { display:none; } html .revisit-grid { grid-template-columns:1fr; } }
@media(max-width:650px) {
    html .sidebar { position:fixed; inset:68px auto 0 0; width:min(300px,calc(100vw - 24px)); padding:20px 16px; z-index:40; visibility:hidden; transform:translateX(-100%); background:var(--surface)!important; box-shadow:var(--shadow); }
    html body.navigation-open .sidebar { visibility:visible; transform:none; }
    .mobile-menu { display:flex; flex:none; }
    html .workspace { margin:0; min-height:100dvh; }
    html .topbar { gap:10px; padding:10px 12px; min-height:68px; }
    html .topbar .breadcrumb { flex:1; font-size:13px; gap:6px; }
    .breadcrumb>svg,.breadcrumb>span:first-of-type { display:none; }
    html .account { display:none; }
    html #logout { display:inline-flex; width:36px; height:40px; padding:8px; font-size:0; gap:0; }
    html #logout svg { width:18px; height:18px; }
    .breadcrumb-separator { display:none; }
    html .header-actions { gap:6px; }
    html .sidebar-bottom { display:block; padding-top:24px; }
    html .sidebar .workspace-label { display:block; }
    html .sidebar>.workspace-label { display:none; }
    html .sidebar .nav-item { width:100%; border-radius:12px; align-self:stretch; }
    html main { padding:28px 16px; }
    html .hero h1,.page-heading h1,html .library-heading h1 { font-size:27px; }
    html .big-search { padding:8px 10px; gap:8px; flex-wrap:wrap; }
    .unified-search input { flex-basis:calc(100% - 32px); height:38px; }
    .search-segments { margin-left:28px; }
    html .unified-search .button { margin-left:auto; }
    html .home-grid .saved-item { grid-template-columns:32px minmax(0,1fr); gap:12px; padding:16px; }
    html .home-grid .card-footer { grid-column:2; align-items:flex-start; flex-direction:row; flex-wrap:wrap; gap:12px; }
    html .library-toolbar { flex-wrap:wrap; }
    html .library-toolbar .search-box { flex-basis:100%; }
    html .list-view .saved-item { grid-template-columns:1fr; }
    html .list-view .card-content { padding:16px; }
    html .list-view .card-footer { padding:0 16px 16px 68px; flex-direction:row; justify-content:flex-start; align-items:center; flex-wrap:wrap; }
    .plan-layout { grid-template-columns:1fr; }
    .plan-card,.settings-surface { padding:22px; }
    html .home-section-head { align-items:flex-start; gap:14px; }
    .home-section-head h2 { font-size:17px; }
    html .home-link { max-width:130px; text-align:right; }
}

/* Knozo plan page: make subscription actions clear and visually secondary to upgrade. */
#billing-web-panel {
    min-width: 0;
}
#billing-web-panel .billing-heading {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.45px;
}
#billing-web-panel .billing-status {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--soft);
    font-size: 13px;
    line-height: 1.55;
}
#billing-web-panel .billing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
#billing-web-panel .billing-actions .button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 11px;
    font-size: 14px;
}
#billing-web-panel .billing-actions .button-quiet {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
}
#billing-web-panel .billing-actions .button-quiet:hover {
    border-color: var(--accent);
    color: var(--accent);
}
#billing-web-panel .billing-manage-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
#billing-web-panel .billing-actions button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
@media (max-width: 700px) {
    #billing-web-panel .billing-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    #billing-web-panel .billing-actions .button {
        width: 100%;
    }
}

#billing-web-panel .billing-current-meta {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
/* Plain-text preview preserves safe rendering of saved article content. */
.weekly-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; font: inherit; }
.reading-actions { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0; }
.settings-fields { display:grid; gap:8px; max-width:420px; margin-top:16px; }
.settings-fields input, .settings-fields select { width:100%; min-height:40px; }
.settings-fields input { background:var(--surface); border:1px solid var(--border); color:var(--ink); border-radius:10px; padding:8px 12px; font:inherit; }
.settings-advanced { margin-top:16px; border-top:1px solid var(--border); padding-top:12px; }
.settings-advanced summary { cursor:pointer; padding-block:8px; }
.settings-advanced button { margin-top:10px; }
.digest-preview-dialog { width:min(680px,calc(100vw - 24px)); max-height:92dvh; border:1px solid var(--border); border-radius:16px; padding:16px; background:var(--surface); color:var(--ink); }
.digest-preview-dialog::backdrop { background:rgb(0 0 0 / 40%); }
.digest-preview-dialog h2 { font-size:19px; margin-top:0; }
.digest-preview-dialog iframe { display:block; width:100%; height:60dvh; border:0; margin-top:12px; background:white; }
.settings-context-help { margin-top:12px; font-size:13px; color:var(--muted); }
.settings-context-help summary { cursor:pointer; }





/* ===== Settings page redesign (approved Nov 29) ===== */
#settings-page .settings-stack{max-width:780px;display:flex;flex-direction:column;gap:18px}
#settings-page .s-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden}
#settings-page .s-head{display:flex;gap:14px;align-items:center;padding:20px 24px 16px}
#settings-page .s-ico{width:38px;height:38px;border-radius:11px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;flex:none}
#settings-page .s-ico svg{width:19px;height:19px}
#settings-page .s-head h2{font-size:16.5px;font-weight:650;letter-spacing:-.2px;margin:0}
#settings-page .s-head p{color:var(--subtle);font-size:12px;margin:2px 0 0}
#settings-page .s-row{display:flex;align-items:center;gap:18px;padding:15px 24px;border-top:1px solid var(--line)}
#settings-page .s-grow{flex:1;min-width:0}
#settings-page .s-row label,#settings-page .s-lb{display:block;font-size:13.5px;font-weight:600}
#settings-page .s-hint{display:block;color:var(--subtle);font-size:11.5px;margin-top:2px;font-weight:400}
#settings-page .s-foot{display:flex;align-items:center;gap:12px;justify-content:flex-end;padding:14px 24px;border-top:1px solid var(--line);background:var(--soft)}
#settings-page .s-status{margin-right:auto;color:var(--accent-text);font-size:12px;font-weight:600}
#settings-page .s-status:empty{display:none}
#settings-page .s-avatar{width:44px;height:44px;border-radius:50%;background:var(--accent);color:light-dark(var(--surface),var(--bg));display:grid;place-items:center;font-size:16px;font-weight:700;flex:none;text-transform:uppercase}
#settings-page .s-name{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:650}
#settings-page .s-tag-pro{background:var(--honey);color:light-dark(var(--ink),var(--bg));font-size:9.5px;font-weight:700;letter-spacing:.6px;border-radius:6px;padding:2px 8px}
#settings-page .s-row select,#settings-page .s-row input[type="text"]{color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:9px 12px;font:inherit;font-size:12.5px;min-width:190px}
#settings-page .s-app-ico{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--soft);display:grid;place-items:center;color:var(--muted);flex:none}
#settings-page .s-app-ico svg{width:18px;height:18px}
#settings-page .s-pill{color:var(--accent-text);background:var(--accent-soft);font-size:10.5px;font-weight:700;border-radius:7px;padding:4px 10px;white-space:nowrap}
#settings-page .settings-context-help{margin:4px 0 0;font-size:11.5px;color:var(--muted)}
#settings-page .settings-context-help summary{cursor:pointer;color:var(--accent-text);font-weight:600}
#settings-page #connections-panel{padding:0 24px 16px}
/* Notifications card + switch */
#settings-page .weekly-toggle{display:flex;align-items:center;gap:18px;padding:15px 24px;border-top:1px solid var(--line);border-bottom:0;margin:0;font-size:13.5px;cursor:pointer}
#settings-page .weekly-toggle input{appearance:none;-webkit-appearance:none;width:44px;height:25px;border-radius:99px;background:var(--border);position:relative;cursor:pointer;flex:none;transition:background .18s;margin:0;border:0}
#settings-page .weekly-toggle input::after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;background:light-dark(var(--surface),var(--ink));border-radius:50%;box-shadow:var(--shadow-sm);transition:transform .18s}
#settings-page .weekly-toggle input:checked{background:var(--accent)}
#settings-page .weekly-toggle input:checked::after{transform:translateX(19px)}
#settings-page .weekly-toggle input:disabled{opacity:.55;cursor:wait}
#settings-page .weekly-settings .button{margin:0}
#settings-page .settings-advanced{margin:0;border-top:1px solid var(--line);padding:12px 24px 14px}
#settings-page .settings-advanced summary{cursor:pointer;color:var(--muted);font-size:12.5px;font-weight:600;padding-block:2px}
#settings-page .settings-advanced button{margin:10px 8px 0 0}
#settings-page .weekly-settings-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12.5px}
#settings-page .weekly-settings-note svg{width:15px;height:15px;color:var(--subtle)}
#settings-page .weekly-feedback{padding:0 24px 14px;font-size:12.5px;color:var(--muted)}
#settings-page .weekly-feedback:empty{display:none}
@media(max-width:650px){
  #settings-page .s-row{flex-wrap:wrap;gap:10px}
  #settings-page .s-row select,#settings-page .s-row input[type="text"]{width:100%;min-width:0}
  #settings-page .s-foot{flex-wrap:wrap}
}
