:root{color-scheme:light;--bg:#fbfcff;--fg:#1f2328;--muted:#626a75}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#f6f8fc,var(--bg));color:var(--fg);font-family:IBM Plex Sans,Segoe UI,sans-serif}main{max-width:min(1920px,97vw);margin:0 auto;padding:1.4rem 1.25rem 2rem}.app-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.95rem}.app-header-right{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.app-signed-in{margin:0;display:inline-flex;align-items:center;gap:.35rem;padding:.26rem .48rem;border:1px solid transparent;border-radius:8px;font-size:.82rem;color:#616975;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.app-brand-title{font-size:clamp(1.4rem,2.8vw,2.1rem);line-height:1.15}.app-signed-in:hover{background:#edf1f6;border-color:#d2d8e2}.account-menu{position:relative}.account-menu-trigger[aria-expanded=true]{background:#edf1f6;border-color:#d2d8e2}.account-menu-popover{position:absolute;top:calc(100% + .35rem);right:0;z-index:20;min-width:180px;padding:.35rem;border:1px solid #d2d7df;border-radius:10px;background:#ffffff;box-shadow:0 8px 20px rgb(24 31 43/10%)}.account-menu-popover form{margin:0}.account-menu-item{width:100%;display:inline-flex;align-items:center;justify-content:flex-start;border:0;border-radius:7px;padding:.45rem .55rem;background:transparent;color:#303844;text-decoration:none;text-align:left;font-size:.84rem;cursor:pointer}.account-menu-item:hover{background:#eef2f7}.account-menu-item-danger{color:#8b2e2e}.account-menu-item-danger:hover{background:#f7e8e8;color:#7d2323}.tooltip-overlay{position:fixed;z-index:2000;transform:translateX(-50%);background:#262c35;color:#f6f8fb;border:1px solid #1e232a;border-radius:7px;padding:.28rem .45rem;font-size:.72rem;line-height:1.2;white-space:nowrap;pointer-events:none;opacity:1;transition:opacity .08s ease,transform .08s ease}.tooltip-overlay-hidden{opacity:0;transform:translateX(-50%) translateY(-2px)}h1{font-size:clamp(2rem,4vw,3rem);margin:0}p{color:var(--muted);line-height:1.6}a{color:#2f4c75}a.button-primary,a.button-secondary{text-decoration:none}.muted{color:var(--muted)}.surface-shell{border:1px solid #d2d7df;border-radius:14px;background:#f1f3f6;overflow:hidden}.surface-chrome{min-height:32px;height:32px;display:flex;justify-content:space-between;align-items:center;padding:0 .75rem;border-bottom:1px solid #d8dde6;background:#ebeff4}.surface-title{font-size:.77rem;letter-spacing:.01em;color:#57606d;text-transform:uppercase}.surface-meta{font-size:.75rem;color:#737c89}.surface-work{background:#ffffff;padding:.95rem 1rem 1rem}.page-title{margin:0 0 .45rem;font-size:1.55rem;line-height:1.2}.page-action-row{display:flex;gap:.65rem;margin-top:1rem}.auth-shell{max-width:560px}.auth-form{display:grid;grid-gap:.75rem;gap:.75rem;max-width:420px}.auth-error{color:#9f2f2f}.auth-error,.auth-status{margin-top:.1rem}.auth-dev-link{margin-top:-.1rem;font-size:.86rem;word-break:break-word}.settings-group{max-width:720px}.settings-group-title{margin:0;font-size:1.05rem}.settings-group-description{margin:.35rem 0 .8rem}.theme-options{border:1px solid #d1d7e0;border-radius:12px;padding:.4rem;background:#f7f9fc;display:grid;grid-gap:.3rem;gap:.3rem}.theme-option{display:flex;align-items:flex-start;gap:.55rem;border-radius:8px;padding:.48rem .5rem;cursor:pointer}.theme-option:hover{background:#edf2f8}.theme-option input{margin-top:.15rem}.theme-option-body{display:grid;grid-gap:.1rem;gap:.1rem}.theme-option-label{font-size:.9rem;color:#2f3743}.theme-option-description{font-size:.8rem;color:#697381}.settings-resolved-theme{margin:.7rem 0 0;font-size:.84rem}.settings-action-row{margin-top:.9rem;display:flex;align-items:center;gap:.55rem}.settings-invite-list{margin:.65rem 0 0;padding:0;list-style:none;display:grid;grid-gap:.45rem;gap:.45rem}.settings-invite-item{display:flex;align-items:center;justify-content:space-between;gap:.9rem;border:1px solid #d5dae3;border-radius:10px;padding:.55rem .65rem;background:#f8fafc}.cf-turnstile{min-height:64px}.input{width:100%;padding:.7rem .8rem;border-radius:10px;border:1px solid #b7bec9;font-size:.95rem;color:var(--fg);background:#fff}.button-danger,.button-primary,.button-secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:.55rem .8rem;font-weight:600;border:1px solid transparent;cursor:pointer}.button-primary{background:#252a31;color:#fff}.button-secondary{background:#eceff4;color:#2d333c;border-color:#b4bcc8}.button-danger{background:#fbe7e7;color:#8b2e2e;border-color:#dba8a8}.inbox-toolbar{display:grid;grid-template-columns:minmax(360px,1.1fr) minmax(250px,.75fr);grid-gap:.6rem;gap:.6rem;margin-bottom:.7rem;align-items:stretch}.inbox-url-form{display:grid;grid-template-columns:1fr auto;grid-gap:.6rem;gap:.6rem}.pdf-upload-panel{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.65rem;border:1px dashed #bcc4d0;border-radius:12px;background:#f5f7fb;padding:.5rem .55rem .5rem .65rem;min-height:46px}.pdf-upload-panel.is-drag-active{border-color:#6f7d91;background:#ebf0f8}.pdf-upload-input{display:none}.pdf-upload-copy{min-width:0}.pdf-upload-title{margin:0;color:#2f3744;font-size:.82rem;font-weight:600;line-height:1.1}.pdf-upload-subtitle{margin:.1rem 0 0;color:#697485;font-size:.74rem;line-height:1.1}.pdf-upload-button{height:32px;border:1px solid #c8cfd9;border-radius:9px;padding:.3rem .5rem;color:#3c4553;background:#f8fafc;display:inline-flex;align-items:center;gap:.35rem;font-size:.79rem;font-weight:600;flex-shrink:0}.pdf-upload-button svg{width:16px;height:16px;stroke-width:1.9}.pdf-upload-button:hover{background:#eceff4;color:#2a323f}.topic-row{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.4rem;margin-bottom:.8rem}.topic-chip{border:1px solid #b6beca;background:#edf1f6;color:#3a4250;border-radius:999px;padding:.25rem .65rem;white-space:nowrap;cursor:pointer}.topic-chip.active{background:#2a313a;color:#fff}.topic-chip-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:space-between;gap:.45rem}.topic-count{color:#7b8490;font-size:.78rem}.topics-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-gap:.5rem;gap:.5rem}.split-view{display:grid;grid-template-columns:minmax(300px,420px) 1fr;grid-gap:.9rem;gap:.9rem;min-height:72vh}.left-pane{border:1px solid #cfd5de;border-radius:14px;padding:.4rem;overflow-y:auto;max-height:70vh;background:#f7f8fa}.left-pane-search{position:-webkit-sticky;position:sticky;top:0;z-index:2;display:grid;grid-template-columns:1fr auto;grid-gap:.5rem;gap:.5rem;margin-bottom:.5rem;padding:.1rem .1rem .55rem;border-bottom:1px solid #d7dde6;background:#f7f8fa}.item-row{width:100%;border:1px solid transparent;text-align:left;border-radius:10px;padding:.55rem;margin-bottom:.3rem;background:#f1f4f8;cursor:pointer}.item-row.selected{border-color:#6c7483;background:#e7ecf3}.item-title{font-weight:700;margin-bottom:.2rem}.item-meta{display:flex;justify-content:flex-start;color:#66707e;font-size:.8rem}.right-pane{border:1px solid #d2d7df;border-radius:14px;background:#f1f3f6;display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:70vh}.detail-empty{padding:1rem}.detail-shell{display:flex;flex-direction:column;flex:1 1;width:100%;min-height:0}.detail-chrome{min-height:32px;height:32px;justify-content:space-between;padding:0 .75rem;border-bottom:1px solid #d8dde6;background:#ebeff4}.chrome-actions,.detail-chrome{display:flex;align-items:center}.chrome-actions{gap:.5rem}.chrome-actions-right{justify-content:flex-end}.detail-work{flex:1 1;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:.9rem 1rem 1rem;background:#ffffff}.detail-scroll-content{flex:1 1;min-height:0;overflow-y:auto;padding-right:.1rem}.detail-content{display:block}.ui-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;border-radius:8px;background:transparent;color:#697380;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.ui-button svg{width:19px;height:19px;stroke-width:1.9}.ui-button-default{padding:.45rem .7rem}.ui-button-ghost{background:transparent}.ui-button-icon{width:28px;height:28px;padding:0}.ui-button:hover{color:#2c3440}.ui-button-ghost:hover{background:#e3e9f1}.ui-button:focus-visible{outline:none;box-shadow:0 0 0 2px #a9b5c7}.chrome-icon-button.is-active{background:#d9e0ea;color:#252d38}.chrome-icon-button-danger{color:#8b2e2e}.chrome-icon-button-danger:hover{background:#f7e8e8;color:#7d2323}.status{border-radius:999px;font-size:.7rem;padding:.1rem .45rem;background:#dfe4ec}.status-failed{background:#f6dddd;color:#8b2e2e}.status-ready{background:#d9e0ea;color:#2d3644}.status-processing{background:#e7ebf2;color:#4a5568}.action-row{display:flex;gap:.5rem;flex-wrap:wrap;margin:.8rem 0}.detail-title{margin:0 0 .35rem;line-height:1.2}.detail-meta-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-bottom:.2rem}.detail-meta{color:#4f5968;font-size:.85rem}.detail-meta-link{display:inline-flex;align-items:baseline;gap:.35rem;max-width:100%}.detail-meta-link a{overflow-wrap:anywhere}.detail-metrics{margin:.25rem 0 .7rem;font-size:.85rem;color:#4b5664}.detail-footer-meta{margin-top:auto;padding-top:.65rem;border-top:1px solid #d7dde6}.detail-metrics-footer{margin:.25rem 0 0}.detail-utility-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.5rem}.link-button{border:none;background:transparent;color:#66717f;font-size:.82rem;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;padding:.1rem 0}.link-button svg{width:.85rem;height:.85rem}.link-button:hover{color:#323b49}.link-button.danger{color:#8b2e2e}.link-button.danger:hover{color:#772222}.detail-hashtags{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .4rem}.summary-pre{white-space:pre-wrap;background:#eef1f5;border:1px solid #ced5df;border-radius:12px;padding:.8rem;font-family:IBM Plex Sans,Segoe UI,sans-serif}:root[data-theme=dark]{color-scheme:dark;--bg:#10141a;--fg:#e6ebf3;--muted:#a3afc0}:root[data-theme=dark] body{background:radial-gradient(circle at top right,#1a202a,var(--bg))}:root[data-theme=dark] a{color:#8eb4e8}:root[data-theme=dark] .app-signed-in{color:#c5cfdd}:root[data-theme=dark] .account-menu-trigger[aria-expanded=true],:root[data-theme=dark] .app-signed-in:hover{background:#2a3240;border-color:#445066}:root[data-theme=dark] .account-menu-popover{border-color:#394356;background:#1b222d;box-shadow:0 10px 26px rgb(0 0 0/40%)}:root[data-theme=dark] .account-menu-item{color:#d5deeb}:root[data-theme=dark] .account-menu-item:hover{background:#2a3342}:root[data-theme=dark] .account-menu-item-danger{color:#f39c9c}:root[data-theme=dark] .account-menu-item-danger:hover{background:#4b2a2a;color:#ffc2c2}:root[data-theme=dark] .tooltip-overlay{background:#d8dee8;color:#1d2330;border-color:#c3cedf}:root[data-theme=dark] .surface-shell{border-color:#364152;background:#1b2230}:root[data-theme=dark] .surface-chrome{border-bottom-color:#3a4457;background:#222a38}:root[data-theme=dark] .surface-title{color:#c3cdde}:root[data-theme=dark] .surface-meta{color:#9ba9be}:root[data-theme=dark] .surface-work{background:#181f2b}:root[data-theme=dark] .input{border-color:#49566d;background:#111722;color:#e4eaf4}:root[data-theme=dark] .button-primary{background:#d8dde6;color:#1a2028}:root[data-theme=dark] .button-secondary{background:#252d3c;color:#d5deec;border-color:#4b5770}:root[data-theme=dark] .pdf-upload-panel{border-color:#4b576d;background:#202938}:root[data-theme=dark] .pdf-upload-panel.is-drag-active{border-color:#7d8fae;background:#263247}:root[data-theme=dark] .pdf-upload-title{color:#d4dced}:root[data-theme=dark] .pdf-upload-subtitle{color:#99a7be}:root[data-theme=dark] .pdf-upload-button{border-color:#4f5c73;color:#c5cfde;background:#262f3f}:root[data-theme=dark] .pdf-upload-button:hover{background:#2f3a4d;color:#ebf0f8}:root[data-theme=dark] .topic-chip{border-color:#4a556d;background:#232c3a;color:#d0d9e7}:root[data-theme=dark] .topic-chip.active{background:#d7dde7;color:#1a2028}:root[data-theme=dark] .item-meta,:root[data-theme=dark] .topic-count{color:#9ba8bc}:root[data-theme=dark] .left-pane{border-color:#364153;background:#1a2230}:root[data-theme=dark] .left-pane-search{border-bottom-color:#3b4659;background:#1a2230}:root[data-theme=dark] .item-row{background:#232c3a}:root[data-theme=dark] .item-row.selected{border-color:#60708d;background:#2e394a}:root[data-theme=dark] .right-pane{border-color:#364152;background:#1b2230}:root[data-theme=dark] .detail-chrome{border-bottom-color:#3a4457;background:#222a38}:root[data-theme=dark] .detail-work{background:#171e2a}:root[data-theme=dark] .ui-button{color:#b2bece}:root[data-theme=dark] .ui-button:hover{color:#e5eaf2}:root[data-theme=dark] .ui-button-ghost:hover{background:#2c3647}:root[data-theme=dark] .ui-button:focus-visible{box-shadow:0 0 0 2px #607293}:root[data-theme=dark] .chrome-icon-button.is-active{background:#334052;color:#f0f5ff}:root[data-theme=dark] .chrome-icon-button-danger{color:#f1a4a4}:root[data-theme=dark] .chrome-icon-button-danger:hover{background:#4b2a2a;color:#ffd0d0}:root[data-theme=dark] .status{background:#394659;color:#cdd8e8}:root[data-theme=dark] .status-failed{background:#4a2f35;color:#ffc5c5}:root[data-theme=dark] .status-ready{background:#2f4052;color:#d7e5f6}:root[data-theme=dark] .status-processing{background:#3b4353;color:#d5deec}:root[data-theme=dark] .detail-meta,:root[data-theme=dark] .detail-metrics,:root[data-theme=dark] .link-button{color:#b0bdd0}:root[data-theme=dark] .detail-footer-meta{border-top-color:#3c475b}:root[data-theme=dark] .link-button:hover{color:#e4eaf4}:root[data-theme=dark] .link-button.danger{color:#f1aaaa}:root[data-theme=dark] .link-button.danger:hover{color:#ffcdcd}:root[data-theme=dark] .summary-pre{background:#202938;border-color:#394559}:root[data-theme=dark] .theme-options{border-color:#3a4559;background:#202837}:root[data-theme=dark] .theme-option:hover{background:#2a3344}:root[data-theme=dark] .theme-option-label{color:#d4deeb}:root[data-theme=dark] .theme-option-description{color:#a8b4c8}@media (max-width:880px){.inbox-toolbar,.split-view{grid-template-columns:1fr}.app-header{align-items:stretch;gap:.8rem}.app-header-right{align-items:flex-start}.left-pane,.right-pane{max-height:none}.right-pane{min-height:60vh}}