:root{color-scheme:light;--bg:#f4f0f6;--paper:#fcf9ff;--surface:#eee8f3;--primary:#6750a4;--on-primary:#fff;--selected:#eaddff;--on-selected:#21005d;--text:#1d1b1e;--muted:#49454f;--border:#e7e0ec;--outline:#79747e;--error:#8c1d18;--warning-bg:#fff2cc;--warning:#7d5e00;--control:12px;--card:12px;--surface-radius:24px;--full:999px;--space:8px;--font:"Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#0f0d13;--paper:#1d1b20;--surface:#141218;--primary:#d0bcff;--on-primary:#381e72;--selected:#4f378b;--on-selected:#eaddff;--text:#e6e1e5;--muted:#cac4d0;--border:#2b2930;--outline:#938f99;--error:#f2b8b5;--warning-bg:#493b12;--warning:#fff2cc}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--text);font:14px/1.5 var(--font)}h1,h2,h3,p{margin:0}h1{font-size:20px;font-weight:500}h2{font-size:20px;font-weight:500}h3{font-size:16px;font-weight:500}button,input,textarea{font:inherit;color:inherit}button{border:1px solid var(--border);border-radius:var(--full);background:transparent;min-height:40px;padding:8px 16px;cursor:pointer;font-weight:500}button:hover{background:var(--surface)}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.primary:hover{background:var(--primary);filter:brightness(.95)}[hidden]{display:none!important}.help,.eyebrow{font-size:12px;color:var(--muted);line-height:1.7}.error{color:var(--error);font-size:12px;min-height:20px}.app-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:24px 32px;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand p{font-size:12px;color:var(--muted);margin-top:3px}.header-actions{display:flex;align-items:center;gap:16px}.private-label{font-size:12px;color:var(--muted);white-space:nowrap}.header-actions button{font-size:12px}.status{margin:16px 32px;color:var(--muted);font-size:12px;line-height:1.8}.status:empty{display:none}.status[data-error=true]{color:var(--error)}.workspace{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100dvh - 150px)}.channel-sidebar{padding:24px 16px;border-right:1px solid var(--border);background:var(--bg);min-width:0}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 8px 16px}.sidebar-heading h2{font-size:14px}.sidebar-heading button{font-size:12px;padding:6px 12px;border:0}.channel-sidebar summary{display:none}.filter{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 8px 20px;color:var(--muted);min-height:32px}.filter input{accent-color:var(--primary);width:16px;height:16px}.channel-item{width:100%;display:flex;align-items:center;text-align:left;gap:10px;border:0;border-radius:18px;margin:5px 0;padding:12px}.channel-item.selected{background:var(--selected);color:var(--on-selected)}.channel-symbol{font-size:20px;color:var(--primary);width:26px;flex-shrink:0}.channel-item .channel-name{font-size:14px;display:block;overflow-wrap:anywhere}.channel-item .channel-meta{font-size:12px;display:block;color:var(--muted);margin-top:4px}.channel-item .grow{flex:1;min-width:0}.unread-dot{width:7px;height:7px;background:var(--primary);border-radius:50%;flex-shrink:0}.scope-note{font-size:12px;color:var(--muted);line-height:1.8;padding:20px 8px;margin-top:24px;border-top:1px solid var(--border)}.empty{font-size:12px;color:var(--muted);padding:16px 8px}.reading-area{width:100%;max-width:1020px;padding:28px 36px 48px;min-width:0;margin:auto;align-self:start}.reading-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.reading-heading h2{margin-top:4px;overflow-wrap:anywhere}.badge{font-size:12px;padding:4px 10px;background:var(--surface);color:var(--muted);border-radius:var(--full);white-space:nowrap}.tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--border)}.tabs button{font-size:12px;padding:7px 14px;min-height:36px}.tabs .selected{background:var(--selected);color:var(--on-selected);border-color:var(--selected)}.toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:20px 0}.toolbar p{color:var(--muted);font-size:12px;line-height:1.8;max-width:440px}.toolbar button{flex-shrink:0}.paste-panel{margin-top:20px}.paste-panel label{display:block;font-size:12px;margin-bottom:8px}textarea,input[type=url],input[type=password],input:not([type]){width:100%;padding:12px 14px;border:1px solid var(--outline);border-radius:var(--control);background:var(--paper);line-height:1.7;min-width:0}textarea{resize:vertical;max-width:100%}.paste-panel .help{margin-top:8px}.generation-status{padding:12px 16px;background:var(--surface);border-radius:var(--card);font-size:12px;color:var(--muted);margin:4px 0 20px}.empty-result{text-align:center;padding:72px 16px}.empty-result img{margin-bottom:16px}.empty-result h3{margin-bottom:8px}.empty-result p{max-width:380px;color:var(--muted);margin:auto;line-height:1.8}.feature-row{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:28px;font-size:12px;color:var(--muted)}.summary-header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--border);padding-top:24px}.summary-header h3{margin-top:5px;overflow-wrap:anywhere}.summary-header+.help{margin-top:12px}.coverage-warnings{padding:12px 16px 12px 30px;margin:16px 0;background:var(--warning-bg);color:var(--warning);font-size:12px;line-height:1.8;border-radius:var(--card)}.coverage-warnings li+li{margin-top:5px}.summary-overview{font-size:16px;line-height:1.85;margin:24px 0}.result-section{margin:28px 0}.section-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:16px}.section-heading h3{font-size:14px}.result-item{border-left:2px solid var(--selected);padding:0 0 0 14px;margin:20px 0}.result-item h3{font-size:14px;margin-bottom:6px}.result-item p{color:var(--muted);font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.result-item .reason{font-size:12px;margin-top:5px}.sources{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.sources button{font-size:12px;min-height:30px;padding:4px 10px;background:var(--surface);border:0;color:var(--primary)}.draft-section{padding-top:24px;margin-top:28px;border-top:1px solid var(--border)}.draft-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.draft-actions button{flex-shrink:0}.welcome{max-width:640px;margin:48px auto;padding:24px}.welcome p{color:var(--muted);line-height:1.9;margin-top:16px}dialog{background:var(--paper);color:var(--text);border:1px solid var(--border);border-radius:var(--surface-radius);width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:24px;overflow:auto}dialog::backdrop{background:rgba(0,0,0,.4)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.dialog-header h2{font-size:20px}.dialog-header button{font-size:12px}dialog label{display:block;font-size:12px;margin:20px 0 8px}dialog .help{margin-top:10px}.dialog-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}.model-status{background:var(--surface);padding:12px;border-radius:var(--card);font-size:12px;color:var(--muted)}blockquote{margin:24px 0;border-left:2px solid var(--primary);padding:0 0 0 16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.workspace{grid-template-columns:205px minmax(0,1fr)}.reading-area{padding:24px}.toolbar{align-items:flex-start;flex-direction:column}.toolbar .primary{align-self:flex-start}}
@media(max-width:640px){.app-header{padding:16px;gap:8px}.brand{gap:9px}.brand h1{font-size:18px}.brand p{font-size:11px}.private-label{display:none}.header-actions button{padding:8px 12px}.status{margin:12px 16px}.workspace{display:block;min-height:0}.channel-sidebar{padding:0 16px;border-right:0;border-bottom:1px solid var(--border)}.channel-sidebar summary{display:flex;justify-content:space-between;gap:12px;padding:14px 0;cursor:pointer;font-size:14px}.channel-sidebar summary span{font-size:12px;color:var(--muted)}.sidebar-heading{margin-top:8px}.scope-note{margin-top:12px;padding-bottom:16px}.reading-area{padding:24px 16px 32px}.reading-heading{align-items:flex-start}.reading-heading h2{font-size:20px}.toolbar{gap:12px;padding:18px 0}.toolbar button{width:100%}.tabs{gap:6px;padding-bottom:16px}.tabs button{padding:7px 12px}.empty-result{padding:42px 8px}.feature-row{gap:8px 16px}.summary-header{align-items:flex-start}.summary-header .badge{white-space:normal;flex-shrink:0}.summary-overview{font-size:16px}.draft-actions{align-items:flex-start;flex-direction:column}.draft-actions button{align-self:flex-end}.section-heading{flex-wrap:wrap}dialog{padding:20px;border-radius:var(--card);width:calc(100% - 24px)}.dialog-header h2{font-size:18px}textarea,input[type=url],input[type=password],input:not([type]){font-size:16px}.dialog-actions button{padding:8px 12px}.coverage-warnings{overflow-wrap:anywhere}}
@media(hover:none),(pointer:coarse){button,.sources button,.filter,.tabs button{min-height:44px;min-width:44px}.filter input{min-width:20px;min-height:20px}.channel-sidebar summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
