:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f5f3;--paper:#fdfdfb;--soft:#ececea;--ink:#292a28;--muted:#666862;--line:#e2e3de;--navy:#232421;--teal:#546b48;--teal-soft:#edf1e7;--amber:#856817;--amber-soft:#f5edbe;--danger:#aa3935;--danger-soft:#f9ebe9;--shadow:#00000012}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1b1c1a;--paper:#222320;--soft:#30312e;--ink:#e8e9e2;--muted:#b0b3a9;--line:#383a34;--navy:#f0f0e9;--teal:#afc49e;--teal-soft:#303b2a;--amber:#dbc77e;--amber-soft:#504926;--danger:#f0a19b;--danger-soft:#452b28;--shadow:#0004}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1b1c1a;--paper:#222320;--soft:#30312e;--ink:#e8e9e2;--muted:#b0b3a9;--line:#383a34;--navy:#f0f0e9;--teal:#afc49e;--teal-soft:#303b2a;--amber:#dbc77e;--amber-soft:#504926;--danger:#f0a19b;--danger-soft:#452b28;--shadow:#0004}}*{box-sizing:border-box}html,body{height:100%;min-height:100%;margin:0}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0}button:disabled{cursor:not-allowed;opacity:.6}a{color:var(--teal);text-decoration:none}a:hover{text-underline-offset:3px;text-decoration:underline}button,a,input,select,textarea,summary{outline-offset:3px}:focus-visible{outline:2px solid var(--teal)}input,select,textarea{background:var(--paper);border:1px solid var(--line);border-radius:5px}input,select{width:100%;min-height:36px;padding:6px 9px}textarea{resize:vertical;width:100%;min-height:100px;padding:10px;line-height:1.8}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}svg{vertical-align:middle;flex-shrink:0}h1,h2,h3,h4,p{margin-top:0}[hidden]{display:none!important}::selection{color:var(--ink);background:var(--amber-soft)}::highlight(reader-annotations){color:inherit;background:var(--amber-soft);text-decoration:underline;-webkit-text-decoration-color:var(--amber);text-decoration-color:var(--amber);text-underline-offset:3px}::highlight(reader-focus){color:inherit;background:var(--teal-soft)}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:60;background:var(--paper);padding:10px;position:fixed;top:-100px;left:16px}.skip-link:focus{top:12px}.app-header{border-bottom:1px solid var(--line);background:var(--bg);align-items:center;gap:24px;height:64px;padding:0 24px;display:flex}.brand,.brand-link{color:var(--ink);flex-shrink:0;align-items:baseline;gap:14px;display:inline-flex}.brand-link:hover{text-decoration:none}.wordmark{letter-spacing:-.7px;font-family:Georgia,Times New Roman,serif;font-size:24px;font-weight:600}.wordmark b{font-weight:400}.brand-scope{color:var(--muted);font-size:12px}.header-meta{flex:1;justify-content:flex-end;align-items:center;gap:14px;display:flex}.edition-label{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px}.identity-badge{color:var(--muted);align-items:center;gap:5px;font-size:12px;display:inline-flex}.icon-button{width:34px;height:34px;color:var(--muted);border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;padding:6px;display:inline-flex}.icon-button:hover{background:var(--soft);color:var(--ink)}.panel-switch{display:none}.reader-shell{background:var(--paper);grid-template-columns:280px minmax(0,1fr) 300px;height:calc(100dvh - 64px);margin:auto;display:grid}.sidebar,.reader-main,.workspace{min-width:0;min-height:0}.sidebar{background:var(--bg);border-right:1px solid var(--line);scrollbar-width:thin;flex-direction:column;padding:22px 14px 20px;display:flex;overflow-y:auto}.search-box{color:var(--muted);align-items:center;margin:0 6px 22px;display:flex;position:relative}.search-box>svg{pointer-events:none;position:absolute;left:10px}.search-box input{padding-left:33px;padding-right:32px;font-size:13px}.search-box>.icon-button{width:30px;height:30px;position:absolute;right:2px}.nav-label{color:var(--muted);margin:0 8px 9px;font-size:12px;font-weight:500}.nav-group{grid-template-columns:1fr 1fr;gap:4px;display:grid}.nav-item{text-align:left;white-space:nowrap;border-radius:5px;align-items:center;gap:7px;min-height:36px;padding:7px 8px;font-size:13px;display:flex}.nav-item svg{width:14px}.nav-item:hover,.nav-item[aria-pressed=true]{background:var(--soft)}.nav-item[aria-pressed=true]{font-weight:600}.nav-count{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:auto;font-size:12px}.nav-rule{border-top:1px solid var(--line);margin:18px 6px}.field-label{color:var(--muted);margin:0 0 7px;font-size:12px;display:block}.sidebar>.field-label{margin-left:7px}select.issue-select{width:calc(100% - 12px);margin:0 6px 23px;font-size:13px}.sidebar-list-heading{justify-content:space-between;align-items:center;margin:0 8px 7px;display:flex}.sidebar-list-heading .nav-label{margin:0}.sidebar-list-heading>span{color:var(--muted);font-size:12px}.sidebar-articles{gap:2px;display:grid}.mini-story{text-align:left;border-radius:5px;align-items:flex-start;gap:9px;width:100%;padding:12px 9px;line-height:1.7;display:flex}.mini-story:hover,.mini-story[aria-current]{background:var(--soft)}.mini-story>span:nth-child(2){flex:1;min-width:0}.mini-story-number{color:var(--muted);font-variant-numeric:tabular-nums;padding-top:2px;font-size:12px}.mini-story-meta{color:var(--muted);margin-bottom:3px;font-size:11px;display:block}.mini-story strong{overflow-wrap:anywhere;font-size:13px;font-weight:500;display:block}.mini-story[aria-current] strong{font-weight:650}.mini-story>svg{display:none}.sidebar-empty{color:var(--muted);padding:12px;font-size:13px}.sidebar-footer{border-top:1px solid var(--line);color:var(--muted);margin-top:20px;padding:18px 8px 0;font-size:11px}.connection-pill>span{display:none}.reader-main{overscroll-behavior:contain;scrollbar-width:thin;background:var(--paper);overflow:auto}.reader-inner{max-width:720px;margin:auto;padding:28px 40px 100px}.breadcrumb{color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:32px;font-size:12px;display:flex}.breadcrumb .button-ghost{min-height:24px;padding:0;font-size:12px}.breadcrumb-back{margin-left:auto}.article-header{margin-bottom:28px}.category-label{color:var(--muted);align-items:center;gap:8px;margin-bottom:10px;font-size:12px;font-weight:500;display:flex}.article-title{letter-spacing:-.5px;color:var(--navy);text-wrap:pretty;overflow-wrap:anywhere;margin:10px 0 18px;font-size:30px;font-weight:650;line-height:1.5}.article-meta{color:var(--muted);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:6px 14px;font-size:12px;display:flex}.version-label{margin-left:auto}.tag-list{color:var(--muted);flex-wrap:wrap;gap:8px;margin-top:14px;font-size:12px;display:flex}.tag-list span{background:0 0}.article-hero{margin:28px 0}.article-hero img{object-fit:contain;background:var(--bg);width:100%;max-height:370px;display:block}.article-hero figcaption{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:9px;font-size:11px;display:flex}.article-body{overflow-wrap:break-word;letter-spacing:.01em;font-size:17px;line-height:1.95}.article-body .markdown-block{scroll-margin-top:28px;position:relative}.article-body p{margin:0 0 22px}.article-body h1,.article-body h2,.article-body h3,.article-body h4{color:var(--navy);scroll-margin-top:24px;font-weight:600;line-height:1.6}.article-body h1{margin:36px 0 18px;font-size:26px}.article-body h2{margin:34px 0 16px;font-size:22px}.article-body h3{margin:30px 0 13px;font-size:19px}.article-body h4{margin:26px 0 12px;font-size:17px}.article-body strong{font-weight:600}.article-body a{text-underline-offset:4px;word-break:break-word;text-decoration:underline}.article-body a>svg{opacity:.6;margin-left:3px}.article-body ul,.article-body ol{margin:0 0 24px;padding-left:1.5em}.article-body li{margin:6px 0}.article-body li p{margin-bottom:8px}.article-body blockquote{border-left:2px solid var(--line);color:var(--muted);margin:25px 0;padding:0 0 0 20px}.article-body blockquote p:last-child{margin-bottom:0}.article-body pre{background:var(--bg);border-radius:4px;margin:24px 0;padding:16px 18px;font-size:13px;line-height:1.8;overflow:auto}.article-body code{background:var(--soft);border-radius:3px;padding:2px 4px;font-family:SFMono-Regular,Consolas,monospace;font-size:.85em}.article-body pre code{font-size:inherit;background:0 0;padding:0}.article-body img{max-width:100%;height:auto}.article-body hr{border:0;border-top:1px solid var(--line);margin:32px 0}.table-scroll{max-width:100%;margin:24px 0;overflow:auto}.article-body table{border-collapse:collapse;width:100%;font-size:14px}.article-body th,.article-body td{border-bottom:1px solid var(--line);text-align:left;min-width:100px;padding:10px 12px}.article-body th{font-weight:600}.article-body input[type=checkbox]{width:auto;min-height:0}.outline-details{border-block:1px solid var(--line);color:var(--muted);margin-bottom:28px;padding:12px 0;font-size:13px}.outline-details summary{cursor:pointer;align-items:center;gap:8px;list-style:none;display:flex}.outline-details summary>span{margin-left:auto;font-size:12px}.outline-details ul{margin:0;padding:10px 0 0;list-style:none}.outline-details button{text-align:left;padding:5px 0}.block-annotations{flex-direction:column;gap:3px;display:flex;position:absolute;top:0;right:-30px}.annotation-pin{background:var(--amber-soft);width:24px;min-height:25px;color:var(--amber);border-radius:4px;font-size:12px}.anchor-flash{outline:2px solid var(--teal);outline-offset:5px;border-radius:3px}.source-section{border-top:1px solid var(--line);margin-top:36px;padding-top:22px}.source-section h2{align-items:center;gap:8px;font-size:16px;font-weight:600;display:flex}.source-section p{color:var(--muted);font-size:12px}.source-link{border-bottom:1px solid var(--line);overflow-wrap:anywhere;color:var(--ink);gap:12px;padding:12px 0;font-size:13px;display:flex}.source-index{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.source-link strong{font-weight:500}.source-link small{color:var(--muted);margin-top:3px;font-size:12px;display:block}.source-link>svg:last-child{margin-left:auto}.article-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin-top:24px;padding-top:16px;font-size:12px;display:flex}.next-article{text-align:left;border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;width:100%;margin-top:24px;padding:22px 0;display:flex}.next-article small{color:var(--muted);margin-bottom:8px;font-size:12px;display:block}.next-article strong{font-size:17px;font-weight:500}.library-heading h1{margin-bottom:12px;font-size:27px;font-weight:600;line-height:1.5}.library-intro{color:var(--muted);font-size:14px}.library-meta{color:var(--muted);flex-wrap:wrap;gap:14px;margin:20px 0;font-size:12px;display:flex}.story-grid{display:grid}.story-card{text-align:left;border-top:1px solid var(--line);gap:20px;width:100%;padding:23px 0;display:flex}.story-card-image{background:var(--bg);flex-shrink:0;order:2;width:90px;height:76px;margin-top:24px;overflow:hidden}.story-card-image>img{object-fit:cover;width:100%;height:100%}.story-card-copy{flex:1;min-width:0}.story-category{color:var(--muted);justify-content:space-between;font-size:12px;display:flex}.story-title{margin:7px 0 10px;font-size:20px;font-weight:600;line-height:1.55}.story-excerpt{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:12px;font-size:14px;line-height:1.8;display:-webkit-box;overflow:hidden}.story-meta{color:var(--muted);gap:12px;font-size:12px;display:flex}.story-meta>svg{margin-left:auto}.image-unavailable{background:var(--bg);min-height:150px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:12px;display:flex}.story-card-image .image-unavailable{min-height:76px}.story-card-image .image-unavailable span{display:none}.workspace{background:var(--bg);border-left:1px solid var(--line);scrollbar-width:thin;flex-direction:column;padding-bottom:84px;display:flex;overflow:auto}.workspace-header{padding:25px 20px 0}.workspace-title{justify-content:space-between;align-items:center;margin-bottom:21px;font-size:15px;font-weight:600;display:flex}.rail-close{display:none}.workspace-tabs{border-bottom:1px solid var(--line);gap:25px;display:flex}.workspace-tabs button{color:var(--muted);border-bottom:2px solid #0000;margin-bottom:-1px;padding:0 0 11px;font-size:13px}.workspace-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--ink)}.tab-count{color:var(--muted);margin-left:4px;font-size:12px}.workspace-content{min-height:0;padding:20px}.empty-state{color:var(--muted);padding:17px 0;font-size:13px;line-height:1.85}.empty-state h3{color:var(--ink);margin:0 0 8px;font-size:14px;font-weight:500}.empty-state p{margin:0}.annotation-list{gap:24px;display:grid}.annotation-card{border-bottom:1px solid var(--line);overflow-wrap:anywhere;padding-bottom:18px}.annotation-quote{text-align:left;border-left:2px solid var(--amber);width:100%;color:var(--muted);white-space:pre-wrap;margin-bottom:12px;padding:0 0 0 11px;font-size:13px;line-height:1.85;display:block}.annotation-quote:hover{color:var(--ink)}.annotation-body{white-space:pre-wrap;margin:0;font-size:14px;line-height:1.85}.annotation-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:5px;margin-top:10px;font-size:11px;display:flex}.annotation-actions{gap:3px;display:flex}.annotation-actions .icon-button{width:29px;height:29px}.stale-label{color:var(--amber);margin:8px 0;font-size:12px;line-height:1.7}.annotation-editor{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.annotation-editor h3{font-size:14px;font-weight:500}.annotation-editor textarea{min-height:140px;font-size:14px}.form-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;margin-top:10px;display:flex}.workspace-help{color:var(--muted);margin:16px 0 0;font-size:11px;line-height:1.8}.tag-rail{border-top:1px solid var(--line);padding:20px}.personal-tags h2,.personal-tags h3{margin:0 0 12px;font-size:14px;font-weight:600}.personal-tags p{color:var(--muted);font-size:12px}.tag-row{align-items:center;gap:8px;min-height:34px;font-size:13px;display:flex}.tag-row .icon-button,.tag-row button:last-child{margin-left:auto}.tag-form{align-items:center;gap:6px;margin-top:12px;display:flex}.tag-form input{min-width:0;font-size:13px}.tag-form button{flex-shrink:0}.tag-row-list{margin:0;padding:0;list-style:none}.button-primary,.button-secondary,.button-ghost{border-radius:5px;justify-content:center;align-items:center;gap:6px;min-height:34px;padding:7px 11px;font-size:13px;font-weight:500;line-height:1.5;display:inline-flex}.button-primary{background:var(--navy);color:var(--paper)}.button-secondary{border:1px solid var(--line);background:var(--paper)}.button-secondary:hover,.button-ghost:hover{background:var(--soft)}.button-ghost{color:var(--muted)}.loading-state{color:var(--muted);align-items:center;gap:8px;padding:30px 0;font-size:13px;display:flex}.section-error,.error-banner{background:var(--danger-soft);color:var(--danger);overflow-wrap:anywhere;border-radius:5px;margin:12px 0;padding:12px;font-size:13px}.section-error{align-items:flex-start;gap:8px;display:flex}.section-error>span{flex:1;min-width:0}.section-error button{min-height:26px;padding:2px;font-size:12px}.skeleton{background:var(--soft);border-radius:3px;min-height:16px;margin:18px 0}.sk-label{width:100px;height:12px}.sk-title{width:85%;height:40px}.sk-line{width:100%;height:15px}.sk-image{height:240px}.auth-shell{place-items:center;min-height:100dvh;padding:24px;display:grid}.auth-card{background:var(--paper);border:1px solid var(--line);border-radius:6px;width:100%;max-width:420px;padding:36px}.auth-brand{margin-bottom:40px}.auth-icon{display:none}.auth-title{font-size:24px;font-weight:600}.auth-description{color:var(--muted);margin-bottom:26px;font-size:14px}.auth-form{gap:13px;display:grid}.auth-form .field-label{margin:0}.auth-footnote{color:var(--muted);border-top:1px solid var(--line);margin:26px 0 0;padding-top:20px;font-size:12px}.chat-launcher{z-index:25;background:var(--navy);min-height:44px;color:var(--paper);box-shadow:0 4px 16px var(--shadow);border-radius:6px;align-items:center;gap:9px;padding:10px 16px;font-size:14px;display:flex;position:fixed;bottom:20px;right:22px}.chat-pending{background:var(--amber-soft);border-radius:50%;width:6px;height:6px}.chat-dialog{z-index:26;border:1px solid var(--line);background:var(--paper);border-radius:8px;flex-direction:column;width:min(440px,100vw - 32px);height:min(690px,100dvh - 112px);display:flex;position:fixed;bottom:76px;right:22px;overflow:hidden;box-shadow:0 12px 48px #00000025}.chat-header{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:center;padding:15px 20px;display:flex}.chat-header h2{margin:0 0 3px;font-size:16px;font-weight:600}.chat-header span{color:var(--muted);font-size:12px}.chat-scroll{scrollbar-width:thin;min-height:0;padding:18px 20px 0;overflow:auto}.chat-context{align-items:flex-start;gap:8px;margin-bottom:16px;font-size:13px;display:flex}.chat-context span{flex:1}.chat-context small{color:var(--muted);font-size:11px}.ai-safety{border-bottom:1px solid var(--line);margin-bottom:13px;font-size:12px}.ai-safety summary{cursor:pointer;padding:8px 0}.ai-safety summary span{color:var(--muted);margin-left:7px}.ai-safety-body{padding:8px 0 14px}.ai-safety-body p{color:var(--muted);margin:8px 0}.ai-safety-body dl>div{justify-content:space-between;gap:10px;padding:5px 0;display:flex}.ai-safety-body dd{font-variant-numeric:tabular-nums;margin:0}.ai-safety-body button{margin:4px 6px 0 0}.ai-safety-error{color:var(--danger)}.connection-notice{color:var(--muted);gap:8px;margin:12px 0 18px;font-size:12px;line-height:1.8;display:flex}.connection-notice strong{color:var(--ink);font-weight:500;display:block}.connection-notice p{margin:3px 0}.connection-notice details{margin-top:5px}.connection-notice summary{cursor:pointer;text-underline-offset:3px;text-decoration:underline}.connection-notice .button-ghost{padding:4px 0;font-size:12px}.conversation-switch{align-items:center;gap:6px;margin:14px 0;display:flex}.conversation-select{font-size:13px}.chat-intro h3{margin-bottom:8px;font-size:15px;font-weight:500}.chat-intro>p{color:var(--muted);font-size:13px;line-height:1.8}.prompt-button{text-align:left;border:1px solid var(--line);border-radius:5px;width:100%;padding:10px 30px 10px 12px;font-size:13px;line-height:1.8;position:relative}.prompt-button>span{display:none}.prompt-button>svg{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.message-list{gap:24px;margin:20px 0;display:grid}.message{overflow-wrap:anywhere;min-width:0;font-size:14px;line-height:1.85}.message-label{color:var(--muted);align-items:center;gap:6px;margin-bottom:8px;font-size:12px;display:flex}.message-time{margin-left:auto;font-size:11px}.message-avatar{display:none}.message-content{white-space:pre-wrap}.message.user .message-content{background:var(--bg);border-radius:5px;padding:11px 13px}.message-content p{margin-bottom:10px}.message-content p:last-child{margin-bottom:0}.message-content pre{white-space:pre-wrap;background:var(--bg);padding:10px;font-size:12px}.message-quote{border-left:2px solid var(--line);color:var(--muted);white-space:pre-wrap;margin:0 0 10px;padding-left:10px;font-size:12px}.job-card{color:var(--muted);padding:10px 0;font-size:12px}.job-status{align-items:center;gap:6px;display:flex}.job-status small{margin-left:auto;font-size:11px}.job-error{color:var(--danger);margin:5px 0}.job-actions{gap:12px;margin-top:6px;display:flex}.job-actions:empty{display:none}.job-actions button{text-underline-offset:3px;padding:3px 0;font-size:12px;text-decoration:underline}.message-status{color:var(--muted);padding:7px 0;font-size:12px}.status-dot{background:var(--muted);border-radius:50%;width:5px;height:5px}.composer{background:var(--paper);border:1px solid var(--line);box-shadow:0 -8px 0 var(--paper);z-index:1;border-radius:6px;margin:22px 0 0;padding:12px;position:sticky;bottom:0}.composer textarea{resize:vertical;background:0 0;border:0;min-height:88px;max-height:190px;padding:0;font-size:14px}.composer-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding-top:9px;display:flex}.composer-hint{color:var(--muted);font-size:11px}.chat-scroll>.workspace-help{margin-top:10px;padding-bottom:16px}.quote-card{background:var(--bg);border-left:2px solid var(--amber);margin-bottom:12px;padding:10px 30px 10px 10px;position:relative}.context-label{color:var(--muted);gap:6px;margin-bottom:6px;font-size:11px;display:flex}.quote-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;margin:0;font-size:13px;overflow:auto}.quote-remove{width:28px;height:28px;position:absolute;top:2px;right:2px}.selection-toolbar{z-index:40;background:var(--paper);border:1px solid var(--line);border-radius:7px;width:max-content;max-width:min(570px,100vw - 28px);padding:12px;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #00000021}.selection-preview{color:var(--muted);max-height:44px;margin-bottom:9px;font-size:12px;overflow:hidden}.selection-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.selection-actions>.icon-button{margin-left:auto}.global-feedback{z-index:50;background:var(--paper);border:1px solid var(--line);max-width:calc(100vw - 32px);box-shadow:0 5px 20px var(--shadow);border-radius:6px;align-items:center;gap:9px;padding:10px 14px;font-size:13px;display:flex;position:fixed;top:76px;left:50%;transform:translate(-50%)}.global-feedback.error{color:var(--danger)}@media (min-width:1201px) and (max-width:1270px){.reader-shell{grid-template-columns:250px minmax(0,1fr) 280px}.reader-inner{padding-inline:32px}.article-title{font-size:27px}.workspace-header,.workspace-content,.tag-rail{padding-inline:17px}}@media (max-width:1200px){.app-header{height:56px;padding:0 20px}.panel-switch{border-bottom:1px solid var(--line);background:var(--bg);gap:6px;height:46px;padding:4px 16px;display:flex}.panel-switch button{border-radius:5px;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:5px 12px;font-size:13px;display:flex}.panel-switch button[aria-pressed=true]{background:var(--soft)}.reader-shell{grid-template-columns:240px minmax(0,1fr);height:calc(100dvh - 102px)}.workspace{display:none}.reader-shell[data-panel=workspace] .workspace{z-index:20;width:340px;box-shadow:-12px 0 30px var(--shadow);display:flex;position:fixed;top:102px;bottom:0;right:0}.rail-close{display:inline-flex}.reader-inner{padding:28px 34px 100px}.article-title{font-size:28px}.brand-scope{display:none}.chat-dialog{height:min(650px,100dvh - 125px)}.edition-label{font-size:12px}}@media (max-width:700px){.app-header{gap:8px;height:56px;padding:0 17px}.wordmark{font-size:23px}.header-meta{gap:8px}.edition-label,.identity-badge{display:none}.panel-switch{justify-content:space-between;height:48px;padding:3px 12px}.panel-switch button{flex:1;min-height:40px;font-size:13px}.reader-shell{height:calc(100dvh - 104px);display:block}.reader-shell>.sidebar,.reader-shell>.reader-main,.reader-shell>.workspace{border:0;height:100%;display:none}.reader-shell[data-panel=nav]>.sidebar{display:flex}.reader-shell[data-panel=read]>.reader-main{display:block}.reader-shell[data-panel=workspace]>.workspace{width:100%;box-shadow:none;display:flex;position:static}.sidebar{padding:20px}.sidebar .nav-group{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-item{min-height:44px;font-size:14px}.mini-story{padding:14px 9px}.mini-story strong{font-size:15px}.mini-story-meta{font-size:12px}.sidebar-articles{gap:3px}.reader-inner{padding:23px 22px 100px}.breadcrumb{gap:7px;margin-bottom:26px;font-size:12px}.article-title{font-size:25px;line-height:1.5}.article-body{font-size:16px;line-height:1.95}.article-body h2{font-size:21px}.article-meta{gap:6px 11px;font-size:12px}.version-label{margin-left:0}.article-hero{margin:24px 0}.block-annotations{right:-19px}.annotation-pin{width:18px;font-size:11px}.library-heading h1{font-size:24px}.story-card{gap:12px}.story-card-image{width:64px;height:64px}.story-title{font-size:18px}.story-excerpt{font-size:14px}.story-meta{gap:7px;font-size:12px}.workspace-header{padding:24px 22px 0}.workspace-content,.tag-rail{padding:22px}.workspace-title{font-size:16px}.workspace-tabs button{min-height:40px;font-size:14px}.annotation-quote{font-size:14px}.annotation-body{font-size:15px}.chat-launcher{right:16px;bottom:max(16px,env(safe-area-inset-bottom));min-height:44px}.chat-dialog{right:8px;bottom:max(8px,env(safe-area-inset-bottom));border-radius:7px;width:calc(100vw - 16px);height:calc(100dvh - 72px);max-height:740px}.chat-header{padding:13px 16px}.chat-scroll{padding:15px 16px 0}.chat-dialog+.selection-toolbar{bottom:15px}.composer textarea{min-height:86px;font-size:16px}.composer-hint{font-size:11px}.chat-dialog .composer{margin-top:18px}.selection-toolbar{padding:10px;bottom:12px}.selection-actions{gap:5px}.selection-actions .button-primary,.selection-actions .button-secondary{padding:7px 9px;font-size:12px}.global-feedback{width:max-content;font-size:12px;top:65px}.auth-card{padding:28px}.source-link{font-size:13px}.button-primary,.button-secondary,.button-ghost,input,select{min-height:40px}.icon-button{min-width:40px;min-height:40px}.quote-remove{min-width:30px;min-height:30px}.annotation-actions .icon-button{width:40px;height:40px}.tag-form input{font-size:16px}}@media (prefers-reduced-motion:no-preference){.spin{animation:1s linear infinite reader-spin}button,a,input{transition:background-color .12s,color .12s}}@keyframes reader-spin{to{transform:rotate(360deg)}}.personal-tags-heading{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.personal-tags-heading>span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.personal-tag-list{margin:0 0 12px;padding:0;list-style:none}.tag-row{border-bottom:1px solid var(--line)}.tag-row>span{overflow-wrap:anywhere;min-width:0}.tag-row>button{width:32px;min-height:32px;color:var(--muted);font-size:19px}.tag-form>button{border:1px solid var(--line);background:var(--paper);border-radius:5px;min-height:36px;padding:6px 8px;font-size:13px}.personal-tags-undo button,.personal-tags-error button{text-underline-offset:3px;padding:0;font-size:12px;text-decoration:underline}.personal-tags-error p{color:var(--danger)}@media (min-width:701px) and (max-width:1200px){.reader-shell{grid-template-columns:minmax(0,1fr)}.reader-shell>.sidebar{display:none}.reader-shell[data-panel=nav]>.sidebar{z-index:20;width:320px;box-shadow:12px 0 30px var(--shadow);display:flex;position:fixed;top:102px;bottom:0;left:0}.reader-inner{max-width:740px;padding-inline:44px}.reader-shell[data-panel=workspace]>.workspace{width:340px}.chat-launcher{bottom:20px}}.workspace-header,.workspace-content,.tag-rail{flex:none}.chat-header{align-items:flex-start;gap:12px;padding:14px 18px}.chat-heading{flex:1;min-width:0}.chat-header h2{margin:0 0 6px;font-size:14px}.chat-article-title{-webkit-line-clamp:2;color:var(--ink);-webkit-box-orient:vertical;margin:0 0 7px;font-size:14px;font-weight:500;line-height:1.6;display:-webkit-box;overflow:hidden}.chat-scope{flex-wrap:wrap;gap:3px 12px;display:flex}.chat-header .chat-scope span{font-size:11px;line-height:1.7}.chat-settings{border-bottom:1px solid var(--line);flex:none;max-height:38%;font-size:12px;overflow:auto}.chat-settings>summary{cursor:pointer;color:var(--muted);padding:8px 18px}.chat-settings-body{padding:0 18px 10px}.chat-settings .ai-safety{margin-bottom:8px}.chat-settings .connection-notice{margin:8px 0;font-size:12px}.chat-conversations{flex:none;padding:0 18px}.chat-conversations:empty{display:none}.chat-conversations .conversation-switch{margin:10px 0 0}.chat-history{overscroll-behavior:contain;scrollbar-width:thin;flex:auto;min-height:0;padding:18px;overflow:auto}.chat-history .message-list{margin:0}.chat-history .chat-intro{padding:8px 0}.chat-intro>p{margin:0 0 10px;font-size:13px}.chat-intro .prompt-button{text-align:left;color:var(--muted);text-underline-offset:4px;border:0;border-radius:0;padding:0;font-size:12px;line-height:1.9;text-decoration:underline}.chat-footer{background:var(--paper);flex:none;max-height:48%;padding:0 16px 12px;overflow:auto}.chat-dialog .chat-footer .composer{box-shadow:none;margin:0;padding:10px;position:static}.chat-footer .composer textarea{resize:vertical;min-height:72px;max-height:140px}.chat-footer .workspace-help{margin:7px 0 0;font-size:11px;line-height:1.6}.chat-footer .quote-text{max-height:70px}@media (max-width:700px){.chat-header{padding:12px 15px}.chat-history{padding:16px}.chat-footer{padding:0 12px 10px}.chat-footer .composer textarea{min-height:72px;font-size:16px}.chat-header .chat-scope span{font-size:12px}.chat-settings>summary{padding:8px 15px}.chat-article-title{font-size:14px}}@media (max-height:550px){.chat-dialog{height:calc(100dvh - 16px);bottom:8px}.chat-header{padding-block:8px}.chat-footer .composer textarea{min-height:44px;max-height:60px}.chat-footer .workspace-help{display:none}.chat-article-title{-webkit-line-clamp:1}.chat-settings>summary{padding-block:5px}}.message.assistant .message-content{white-space:normal}.message.assistant .message-content p{margin:0 0 10px}.message.assistant .message-content ul,.message.assistant .message-content ol{margin:8px 0 12px;padding-left:1.5em}.message.assistant .message-content li{margin:4px 0;padding-left:2px}.message.assistant .message-content li p{margin:4px 0}.message.assistant .message-content h1,.message.assistant .message-content h2,.message.assistant .message-content h3{margin:16px 0 8px;font-size:15px;font-weight:600;line-height:1.6}.message.assistant .message-content>:last-child{margin-bottom:0}html,body{overflow:hidden}.reader-shell{min-height:0;overflow:hidden}.reader-shell>.workspace,.reader-shell>.reader-main,.reader-shell>.sidebar{overscroll-behavior:contain;max-height:100%;overflow-x:hidden}.auth-shell{overscroll-behavior:contain;height:100dvh;overflow-y:auto}@media (max-width:700px){.reader-shell[data-panel=workspace]>.workspace{height:100%;min-height:0;max-height:100%;overflow:hidden auto}}.workspace>.tag-rail{border-top:0;border-bottom:1px solid var(--line);padding:20px 20px 16px}.personal-tags-heading h3{margin-bottom:4px}.personal-tags-hint{margin:0 0 8px}.personal-tags-empty{margin:6px 0 8px}.personal-tag-list{overscroll-behavior:contain;scrollbar-width:thin;max-height:136px;margin-bottom:8px;overflow-y:auto}.personal-tags .tag-form{margin-top:8px}.personal-tags-undo{margin:8px 0 0}@media (max-width:700px){.workspace>.tag-rail{padding:18px 22px 16px}.personal-tag-list{max-height:132px}}
