:root{color-scheme:light;--page:#f6f6f4;--surface:#ffffff;--surface-alt:#fafafa;--surface-muted:#f0f2ed;--border:#d9ddd3;--border-strong:#b8c0b1;--text:#191f19;--text-muted:#626b60;--accent:#176b5b;--accent-strong:#0e4b3f;--accent-soft:#e2eee9;--success:#1c6f48;--success-soft:#edf7f0;--danger:#9f1f1f;--danger-soft:#fbebeb;--radius:8px;--ring:0 0 0 3px rgba(23,107,91,0.16)}*{box-sizing:border-box}html{min-width:320px;background:var(--page)}body{margin:0;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{touch-action:manipulation}.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100dvh}.sidebar{position:-webkit-sticky;position:sticky;top:0;display:flex;height:100dvh;flex-direction:column;gap:22px;border-right:1px solid var(--border);background:var(--surface);padding:22px 18px}.brand{display:inline-flex;min-width:0;align-items:center;gap:10px;font-size:15px;font-weight:760}.brand-mark{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border-radius:7px;background:var(--text);color:#ffffff;font-weight:820}.brand-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-tabs{display:grid;grid-gap:4px;gap:4px}.nav-tabs a,.nav-tabs span{display:flex;min-height:36px;align-items:center;border:1px solid transparent;border-radius:7px;padding:0 10px;color:var(--text-muted);font-size:14px;font-weight:650}.nav-tabs .active{border-color:var(--border);background:var(--surface-muted);color:var(--text)}.status-pill{margin-top:auto;border-top:1px solid var(--border);padding-top:14px;color:var(--text-muted);font-size:13px;font-weight:650}.workspace{min-width:0;padding:28px clamp(18px,4vw,40px) 52px}.workspace-header{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:18px}.article-callout h3,.article-callout p,.panel-heading h2,.panel-heading p,.preview-header h2,.preview-header p,.review-sidebar h3,.workspace-header h1,.workspace-header p{margin:0}.workspace-header h1{font-size:26px;line-height:1.15;letter-spacing:0}.article-callout p,.muted-copy,.panel-heading p,.preview-header p,.workspace-header p{color:var(--text-muted)}.research-workbench{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);grid-gap:14px;gap:14px;align-items:start}.command-panel,.preview-panel,.questions-panel,.status-panel{min-width:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:20px}.preview-panel,.questions-panel,.research-workbench>.notice{grid-column:1/-1}.panel-heading{display:grid;grid-gap:7px;gap:7px;margin-bottom:18px}.panel-heading.compact{margin-bottom:14px}.panel-heading h2{overflow-wrap:anywhere;font-size:22px;line-height:1.2;letter-spacing:0}.panel-heading p,.workspace-header p{font-size:14px}.intake-form{display:grid;grid-gap:14px;gap:14px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.field{display:grid;grid-gap:7px;gap:7px}.field span{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px;color:var(--text);font-size:13px;font-weight:700}.field input,.field select{width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);color:var(--text);padding:0 12px;outline:none}.brand:focus-visible,.compact-action:focus-visible,.field input:focus,.field select:focus,.inline-action:focus-visible,.nav-tabs a:focus-visible,.primary-action:focus-visible,.secondary-action:focus-visible{border-color:var(--accent);box-shadow:var(--ring);outline:none}.inline-action{min-height:28px;flex:0 0 auto;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-alt);color:var(--text);cursor:pointer;padding:0 9px;font-size:12px;font-weight:700}.compact-action,.primary-action,.secondary-action{display:inline-flex;min-height:44px;align-items:center;justify-content:center;border-radius:7px;cursor:pointer;font-weight:740;line-height:1.2;text-align:center}.primary-action{background:var(--accent);color:#ffffff}.primary-action,.secondary-action{border:1px solid var(--accent);padding:0 16px}.secondary-action{width:100%;background:var(--surface);color:var(--accent-strong)}.compact-action{min-height:38px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);padding:0 12px;font-size:13px}.primary-action:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}.compact-action:hover:not(:disabled),.inline-action:hover:not(:disabled),.secondary-action:hover:not(:disabled){background:var(--accent-soft)}.compact-action:disabled,.primary-action:disabled,.secondary-action:disabled{cursor:not-allowed;opacity:.52}.notice{border-radius:7px;padding:12px 13px;color:var(--text-muted);font-size:14px;font-weight:650}.notice.neutral{border:1px solid var(--border);background:var(--surface-alt)}.notice.error{border:1px solid rgba(159,31,31,.22);background:var(--danger-soft);color:var(--danger)}.notice.success{border:1px solid rgba(28,111,72,.24);background:var(--success-soft);color:var(--success)}.command-panel .notice,.preview-panel .notice,.status-panel .notice{margin-top:14px}.timeline{display:grid;grid-gap:2px;gap:2px;margin:0 0 16px;padding:0;list-style:none}.timeline-step{display:grid;grid-template-columns:30px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:start;border-radius:7px;padding:8px 6px;color:var(--text-muted)}.timeline-step>span{display:grid;width:26px;height:26px;place-items:center;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:12px;font-weight:750}.timeline-step small,.timeline-step strong{display:block;min-width:0}.timeline-step strong{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:10px;color:var(--text);font-size:14px}.timeline-step time{flex:0 0 auto;color:var(--text-muted);font-size:12px;font-weight:650}.timeline-step small{margin-top:2px;overflow-wrap:anywhere;font-size:13px}.timeline-step.done>span{border-color:var(--accent);background:var(--accent);color:#ffffff}.timeline-step.active{background:var(--surface-muted)}.timeline-step.active>span{border-color:var(--accent);color:var(--accent-strong)}.timeline-step.failed{background:var(--danger-soft)}.timeline-step.failed>span{border-color:rgba(159,31,31,.28);color:var(--danger)}.metric-grid,.technical-details dl{display:grid;grid-gap:0;gap:0;margin:16px 0 0;border:1px solid var(--border);border-radius:7px;overflow:hidden}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.technical-details dl{grid-template-columns:1fr;margin:0;border:0;border-radius:0}.metric-card{min-width:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);padding:10px 12px}.metric-grid .metric-card:nth-child(2n),.technical-details .metric-card{border-right:0}.metric-grid .metric-card:nth-last-child(-n+2),.technical-details .metric-card:last-child{border-bottom:0}.metric-card dt{color:var(--text-muted);font-size:12px;font-weight:680}.metric-card dd{min-width:0;margin:3px 0 0;color:var(--text);overflow-wrap:anywhere;font-size:14px;font-weight:720}.article-callout{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:16px;border:1px solid var(--border);border-radius:7px;background:var(--surface-alt);padding:13px}.article-callout h3{overflow-wrap:anywhere;font-size:15px;line-height:1.3}.article-callout p{margin-top:5px;font-size:13px}.technical-details{margin-top:16px;border:1px solid var(--border);border-radius:7px;background:var(--surface)}.technical-details summary{min-height:42px;cursor:pointer;list-style:none;padding:11px 13px;color:var(--text-muted);font-size:13px;font-weight:700}.technical-details summary::-webkit-details-marker{display:none}.technical-details summary:after{content:"+";float:right;color:var(--accent-strong)}.technical-details[open] summary{border-bottom:1px solid var(--border)}.technical-details[open] summary:after{content:"-"}.question-list{display:grid;grid-gap:8px;gap:8px;margin:0;padding-left:22px;color:var(--text-muted)}.question-list li{padding-left:2px}.preview-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,auto);grid-template-areas:"title badges" "actions actions";grid-gap:14px;gap:14px;margin-bottom:16px}.preview-header>div:first-child{grid-area:title;min-width:0}.preview-header h2{overflow-wrap:anywhere;font-size:24px;line-height:1.18;letter-spacing:0}.preview-header p{margin-top:6px;font-size:14px}.badge-row{grid-area:badges;display:flex;flex-wrap:wrap;justify-content:flex-end;align-self:start;gap:6px}.badge-row span{display:inline-flex;min-height:30px;align-items:center;border:1px solid var(--border);border-radius:6px;background:var(--surface-alt);padding:0 9px;color:var(--text-muted);font-size:12px;font-weight:680}.preview-actions{grid-area:actions;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.preview-actions .primary-action,.preview-actions .secondary-action{width:auto;min-width:min(100%,188px);padding:0 15px}.preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;grid-gap:14px;gap:14px;align-items:start}.article-frame-wrap{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:7px;background:#ffffff}.article-preview-frame{display:block;width:100%;height:min(920px,78vh);border:0;background:#ffffff}.review-sidebar{display:grid;grid-gap:18px;gap:18px;min-width:0;border:1px solid var(--border);border-radius:7px;background:var(--surface-alt);padding:15px}.review-sidebar h3{font-size:14px;line-height:1.25}.section-list,.source-list{display:grid;grid-gap:9px;gap:9px;margin:9px 0 0;padding-left:19px}.section-list li,.source-list li{min-width:0;color:var(--text)}.section-list strong,.source-list a{display:block;color:var(--text);overflow-wrap:anywhere;font-size:14px;font-weight:720;line-height:1.35}.section-list span,.source-list span{display:block;margin-top:3px;color:var(--text-muted);overflow-wrap:anywhere;font-size:12px}.source-list a{text-decoration:underline;text-underline-offset:3px}.publication-status{display:grid;grid-gap:7px;gap:7px;margin-top:9px}.publication-status strong{color:var(--accent-strong);font-size:14px}.muted-copy,.publication-status span{font-size:13px}.publication-status a{color:var(--accent-strong);overflow-wrap:anywhere;font-size:13px;font-weight:720;text-decoration:underline;text-underline-offset:3px}@media (max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;align-items:center;gap:14px;border-right:0;border-bottom:1px solid var(--border);padding:12px 16px}.nav-tabs{display:flex;min-width:0;flex:1 1;overflow-x:auto}.status-pill{margin-top:0;border-top:0;padding-top:0;white-space:nowrap}.preview-header,.preview-layout,.research-workbench{grid-template-columns:1fr}.preview-header{grid-template-areas:"title" "badges" "actions"}.badge-row,.preview-actions{justify-content:flex-start}}@media (max-width:640px){.sidebar{align-items:flex-start;flex-wrap:wrap;gap:10px;padding:10px 14px}.brand,.nav-tabs{width:100%}.nav-tabs{order:2}.status-pill{order:3;width:100%}.workspace{padding:20px 14px 42px}.workspace-header{display:grid;grid-gap:4px;gap:4px}.command-panel,.preview-panel,.questions-panel,.status-panel{padding:16px}.field-grid,.metric-grid{grid-template-columns:1fr}.metric-grid .metric-card{border-right:0}.metric-grid .metric-card:nth-last-child(2){border-bottom:1px solid var(--border)}.article-callout{flex-direction:column}.article-callout .compact-action,.preview-actions .primary-action,.preview-actions .secondary-action{width:100%}.article-preview-frame{height:72vh}}