html,body,#root{width:100%;height:100%;margin:0;padding:0}body{background:#f4f7fb;min-width:320px}:root{--bg-page:#f5f7fa;--bg-surface:#fff;--bg-surface-alt:#f8fafc;--bg-elevated:#f1f5f9;--border:#e2e8f0;--border-strong:#cbd5e1;--text-primary:#172033;--text-secondary:#64748b;--text-muted:#94a3b8;--accent:#2563eb;--accent-hover:#1d4ed8;--accent-tint:#eff6ff;--accent-tint-strong:#dbeafe;--accent-tint-text:#1e3a8a;--success-bg:#dcfce7;--success-text:#15803d;--warning-bg:#fef3c7;--warning-text:#b45309;--error-bg:#fef2f2;--error-text:#b91c1c;--info-bg:#eef2ff;--info-text:#4338ca;--overlay-bg:#eff5fff0;--shadow-color:#00000014}.theme-dark{--bg-page:#0a0c10;--bg-surface:#14171c;--bg-surface-alt:#1b1f26;--bg-elevated:#232833;--border:#262b33;--border-strong:#3a4150;--text-primary:#e8eaed;--text-secondary:#9aa7b5;--text-muted:#6b7280;--accent:#4c8dff;--accent-hover:#74a5ff;--accent-tint:#4c8dff24;--accent-tint-strong:#4c8dff3d;--accent-tint-text:#b9d2ff;--success-bg:#22c55e29;--success-text:#4ade80;--warning-bg:#d977062e;--warning-text:#fbbf24;--error-bg:#ef444429;--error-text:#f87171;--info-bg:#6366f129;--info-text:#a5b4fc;--overlay-bg:#0a0e14eb;--shadow-color:#00000080;background:var(--bg-page);color:var(--text-primary)}.theme-toggle{border:1px solid var(--border);background:var(--bg-surface);width:32px;height:32px;color:var(--text-secondary);cursor:pointer;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex}.theme-toggle:hover{border-color:var(--border-strong);color:var(--accent)}.app{background:var(--bg-surface-alt);height:100dvh;color:var(--text-primary);flex-direction:column;display:flex}.header{background:var(--bg-surface);border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;height:72px;padding:0 28px;display:flex}.header h1{margin:0;font-size:20px;font-weight:700}.header p{color:var(--text-secondary);margin:3px 0 0;font-size:13px}.header-actions{align-items:center;gap:10px;display:flex}.chat{flex:1;width:100%;max-width:850px;margin:0 auto;padding:30px 20px 120px;overflow-y:auto}.welcome{text-align:center;max-width:520px;margin:15vh auto 0}.welcome-icon{background:var(--accent-tint);border-radius:16px;place-items:center;width:52px;height:52px;margin:0 auto 20px;font-size:28px;font-weight:300;display:grid}.welcome h2{margin:0 0 10px;font-size:26px}.welcome p{color:var(--text-secondary);margin:0;line-height:1.6}.message{width:100%;margin-bottom:18px;display:flex}.message.user{justify-content:flex-end}.message.assistant{justify-content:flex-start}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:18px;max-width:78%;padding:14px 17px;line-height:1.6}.user .bubble{background:var(--accent);color:#fff;border-bottom-right-radius:5px}.assistant .bubble{background:var(--bg-surface);border:1px solid var(--border);border-bottom-left-radius:5px;box-shadow:0 4px 16px #0000000a}.composer-wrapper{background:linear-gradient(to top, var(--bg-surface-alt) 70%, transparent);padding:16px 20px 20px;position:fixed;bottom:0;left:0;right:0}.composer{background:var(--bg-surface);border:1px solid var(--border);max-width:820px;box-shadow:0 8px 30px var(--shadow-color);border-radius:18px;align-items:center;gap:10px;margin:0 auto;padding:7px;display:flex}.composer input{min-width:0;color:var(--text-primary);background:0 0;border:none;outline:none;flex:1;padding:12px 14px;font-size:15px}.composer button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:12px;padding:11px 18px;font-weight:600}.composer button:disabled{opacity:.55;cursor:default}@media (width<=600px){.header{height:64px;padding:0 16px}.header h1{font-size:18px}.chat{padding:20px 12px 105px}.welcome{margin-top:12vh;padding:0 12px}.welcome h2{font-size:22px}.bubble{max-width:88%;padding:12px 14px;font-size:14px}.composer-wrapper{padding:10px}.composer{border-radius:16px}.composer input{padding:11px;font-size:14px}.composer button{padding:10px 14px}}.citation{border:1px solid var(--border);background:var(--accent-tint);color:var(--accent);border-radius:8px;margin-top:12px;margin-right:8px;padding:6px 10px;font-size:13px;font-weight:600;text-decoration:none;display:inline-block}.citation:hover{background:var(--accent-tint-strong)}.header-link{border:1px solid var(--border);color:var(--text-primary);border-radius:8px;padding:8px 14px;font-size:13px;font-weight:600;text-decoration:none;transition:background .12s,border-color .12s}.header-link:hover{background:var(--bg-elevated);border-color:var(--border-strong)}@media (width<=720px){.header-link{padding:7px 11px;font-size:12px}}.thinking{color:var(--text-secondary)}.caret{vertical-align:text-bottom;background:var(--accent);width:2px;height:1em;margin-left:2px;animation:1s step-end infinite caret-blink;display:inline-block}@keyframes caret-blink{0%,to{opacity:1}50%{opacity:0}}@media (prefers-reduced-motion:reduce){.caret{animation:none}}.scope-picker{align-items:center;gap:8px;max-width:820px;margin:0 auto 8px;padding:0 4px;display:flex}.scope-picker label{color:var(--text-secondary);font-size:12px}.scope-picker select{border:1px solid var(--border);background:var(--bg-surface);color:var(--text-primary);font:inherit;cursor:pointer;border-radius:8px;max-width:340px;padding:5px 10px;font-size:12px}.scope-picker select:hover{border-color:var(--border-strong)}.scope-picker select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.app .citation-doc{color:var(--text-secondary)}.notes-workspace{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:20px;max-width:1400px;margin:0 auto;padding:24px;display:grid}.editor-section,.insights-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.editor-section{flex-direction:column;height:calc(100vh - 120px);display:flex}.editor-title,.insights-title{border-bottom:1px solid #e2e8f0;flex-shrink:0;padding:14px 18px;font-weight:600}@media (width<=768px){.notes-header{padding:12px 16px}.notes-workspace{grid-template-columns:1fr;padding:12px}.editor-section{height:auto}.clinical-editor{min-height:55vh}.clinical-editor .clinical-prose{padding:18px}.editor-footer{padding:12px 18px}.live-pages{padding:8px 18px}.live-pages-hint{display:none}.insights-section{min-height:200px}}.insights-section{flex-direction:column;height:calc(100vh - 120px);display:flex}@media (width<=768px){.insights-section{height:auto;max-height:70vh}}@keyframes insight-shimmer{0%{background-position:100%}to{background-position:0}}@media (prefers-reduced-motion:reduce){.insight-skeleton{animation:none}}.export-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:14px;font-weight:600}.export-button:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}@media print{@page{margin:18mm 16mm}.notes-header,.editor-toolbar,.editor-title,.editor-footer,.live-pages,.insights-section,.inserted-insight-remove{display:none!important}html,body,#root,.notes-page{background:#fff;min-height:0}.notes-workspace{max-width:none;margin:0;padding:0;display:block}.editor-section{border:none;border-radius:0;height:auto;display:block;overflow:visible}.editor-drop,.clinical-editor{flex:none;min-height:0;display:block;overflow:visible}.clinical-editor .clinical-prose{color:#000;min-height:0;padding:0;font-size:11.5pt;line-height:1.5}.print-header{border-bottom:1pt solid #333;margin-bottom:16pt;padding-bottom:8pt;display:block}.print-title{color:#000;font-family:system-ui,-apple-system,sans-serif;font-size:15pt;font-weight:700}.print-meta{color:#444;justify-content:space-between;margin-top:3pt;font-family:system-ui,-apple-system,sans-serif;font-size:9pt;display:flex}.inserted-insight{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#10306e;background:#f2f6ff;border-left:2pt solid #2563eb;margin:7pt 0;padding:6pt 9pt;font-size:10pt}.inserted-insight-topic{color:#1d4ed8;font-size:8pt}.inserted-insight-text{display:inline;overflow:visible}.inserted-insight-cites a{color:#1d4ed8;font-size:8pt}.inserted-insight,.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{break-inside:avoid;page-break-inside:avoid}.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{break-after:avoid;page-break-after:avoid}}.notes-page.notes-page-v2{background:var(--bg-page);min-height:100vh;color:var(--text-primary)}.notes-page-v2 .notes-header{background:var(--bg-surface);border-bottom:1px solid var(--border);height:72px;padding:12px 32px}.notes-page-v2 .notes-header h2{margin:0;font-size:22px}.notes-page-v2 .notes-header span{color:var(--text-secondary);font-size:13px}.notes-page-v2 .back-to-notes-button{border:1px solid var(--border-strong);font:inherit;color:var(--text-primary);cursor:pointer;background:0 0;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500}.notes-page-v2 .back-to-notes-button:hover{background:var(--bg-elevated)}.notes-page-v2 .notes-nav{align-items:center;gap:18px;display:flex}.notes-page-v2 .notes-nav a{color:var(--accent);font-size:14px;font-weight:600;text-decoration:none}.notes-page-v2 .notes-nav a:hover{text-decoration:underline}.notes-page-v2 .report-title{border-bottom:1px solid var(--border);flex-shrink:0;padding:14px 18px;font-weight:600}.notes-page-v2 .report-subtitle{color:var(--text-secondary);margin-left:10px;font-size:13px;font-weight:400}.notes-page-v2 .report-button{border:1px solid var(--border-strong);background:var(--bg-surface);height:38px;font:inherit;color:var(--text-primary);cursor:pointer;border-radius:8px;padding:0 16px;font-size:14px;font-weight:600}.notes-page-v2 .report-button:hover:not(:disabled){background:var(--bg-elevated)}.notes-page-v2 .report-button:disabled{opacity:.5;cursor:default}.notes-page-v2 .report-error{background:var(--error-bg);border-top:1px solid var(--error-text);color:var(--error-text);margin:0;padding:10px 18px;font-size:13px}.notes-page-v2 .report-warning{background:var(--warning-bg);border-top:1px solid var(--warning-text);color:var(--warning-text);margin:0;padding:10px 18px;font-size:13px}.notes-page-v2 .editor-section,.notes-page-v2 .history-section{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.notes-page-v2 .editor-column{flex-direction:column;gap:20px;height:calc(100vh - 120px);min-height:0;display:flex}.notes-page-v2 .editor-column.free-height{align-self:start;height:auto}.notes-page-v2 .show-both-link{font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:none;flex-shrink:0;align-self:flex-end;margin-bottom:-8px;padding:4px 2px;font-size:13px;font-weight:500}.notes-page-v2 .show-both-link:hover{text-decoration:underline}.notes-page-v2 .history-section,.notes-page-v2 .editor-section{flex-direction:column;flex:none;height:auto;display:flex}.notes-page-v2 .history-section.is-open{flex-basis:280px;min-height:0}.notes-page-v2 .section-header{border:none;border-bottom:1px solid var(--border);width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;font-weight:600;display:flex}.notes-page-v2 .section-header:hover{background:var(--bg-surface-alt)}.notes-page-v2 .section-subtitle{color:var(--text-secondary);margin-left:10px;font-size:13px;font-weight:400}.notes-page-v2 .section-header svg{color:var(--text-secondary);flex-shrink:0;transition:transform .15s}.notes-page-v2 .is-open .section-header svg{transform:rotate(180deg)}.notes-page-v2 .history-editor{background:var(--bg-surface);max-height:0;position:relative;overflow:hidden}.notes-page-v2 .history-section.is-open .history-editor{flex:1;min-height:0;max-height:none;overflow-y:auto}.notes-page-v2 .editor-collapsible{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.notes-page-v2 .editor-section:not(.is-open) .editor-collapsible{flex:0 0 0;max-height:0}.notes-page-v2 .editor-toolbar{border-bottom:1px solid var(--border);background:var(--bg-surface-alt);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:4px;padding:8px 12px;display:flex}.notes-page-v2 .toolbar-group{align-items:center;gap:2px;display:flex}.notes-page-v2 .toolbar-divider{background:var(--border);width:1px;height:20px;margin:0 6px}.notes-page-v2 .editor-toolbar button{min-width:32px;height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;padding:0 8px;font-family:inherit;font-size:13px;line-height:1;transition:background .12s,color .12s}.notes-page-v2 .editor-toolbar button:hover:not(:disabled){background:var(--bg-elevated);color:var(--text-primary)}.notes-page-v2 .editor-toolbar button.is-active{background:var(--accent-tint-strong);border-color:var(--accent-tint-strong);color:var(--accent-hover)}.notes-page-v2 .editor-toolbar button:disabled{opacity:.35;cursor:default}.notes-page-v2 .editor-toolbar button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.notes-page-v2 .editor-drop{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.notes-page-v2 .clinical-editor{background:var(--bg-surface);flex:1;min-height:0;overflow-y:auto}.notes-page-v2 .clinical-editor .clinical-prose{min-height:100%;color:var(--text-primary);border:none;outline:none;padding:24px;font-family:Georgia,serif;font-size:16px;line-height:1.7}.notes-page-v2 .clinical-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;color:var(--text-muted)}.notes-page-v2 .clinical-prose>*+*{margin-top:.75em}.notes-page-v2 .clinical-prose p{margin:0}.notes-page-v2 .clinical-prose h1,.notes-page-v2 .clinical-prose h2,.notes-page-v2 .clinical-prose h3{color:var(--text-primary);margin:1.4em 0 .5em;font-family:system-ui,-apple-system,sans-serif;line-height:1.3}.notes-page-v2 .clinical-prose h1:first-child,.notes-page-v2 .clinical-prose h2:first-child,.notes-page-v2 .clinical-prose h3:first-child{margin-top:0}.notes-page-v2 .clinical-prose h1{font-size:26px}.notes-page-v2 .clinical-prose h2{font-size:21px}.notes-page-v2 .clinical-prose h3{font-size:18px}.notes-page-v2 .clinical-prose ul,.notes-page-v2 .clinical-prose ol{margin:.5em 0;padding-left:1.5rem}.notes-page-v2 .clinical-prose li{margin:.2em 0}.notes-page-v2 .clinical-prose li p{margin:0}.notes-page-v2 .clinical-prose blockquote{border-left:3px solid var(--border-strong);color:var(--text-secondary);margin:.75em 0;padding-left:14px;font-style:italic}.notes-page-v2 .clinical-prose code{background:var(--bg-elevated);color:var(--error-text);border-radius:4px;padding:2px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}.notes-page-v2 .clinical-prose pre{color:#e2e8f0;background:#0f172a;border-radius:8px;margin:.75em 0;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.5;overflow-x:auto}.notes-page-v2 .clinical-prose pre code{color:inherit;font-size:inherit;background:0 0;padding:0}.notes-page-v2 .clinical-prose hr{border:none;border-top:1px solid var(--border);margin:1.5em 0}.notes-page-v2 .clinical-prose a{color:var(--accent);text-decoration:underline}.notes-page-v2 .notes-workspace.has-assessment{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}.notes-page-v2 .right-column{flex-direction:column;gap:20px;height:calc(100vh - 120px);min-height:0;display:flex}.assessment-section{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.assessment-title{border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:8px;padding:14px 18px;font-weight:600;display:flex}.assessment-collapse-toggle{width:22px;height:22px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex}.assessment-collapse-toggle:hover{background:var(--bg-elevated)}.assessment-collapse-toggle svg{transform:rotate(-90deg)}.assessment-reopen-fab{z-index:15;border:1px solid var(--border);background:var(--bg-surface);width:40px;height:40px;color:var(--text-secondary);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;padding:0;display:flex;position:fixed;top:50%;right:20px;transform:translateY(-50%);box-shadow:0 2px 10px #0f172a1f}.assessment-reopen-fab:hover{color:var(--accent-hover);border-color:var(--accent-tint-strong)}.assessment-reopen-fab svg{transform:rotate(-90deg)}.assessment-count{background:var(--accent-tint-strong);min-width:20px;height:20px;color:var(--accent-hover);border-radius:10px;justify-content:center;align-items:center;margin-left:6px;padding:0 6px;font-size:12px;font-weight:700;display:inline-flex}.assessment-body{flex:1;min-height:0;padding:16px 18px;overflow-y:auto}.assessment-empty{color:var(--text-secondary);margin:0;font-size:13px;line-height:1.6}.assessment-suggest-button{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-primary);cursor:pointer;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:14px;font-weight:600}.assessment-suggest-button:hover:not(:disabled){background:var(--bg-surface-alt);border-color:var(--text-muted)}.assessment-suggest-button:disabled{opacity:.45;cursor:default}.assessment-error{color:var(--error-text);margin:0;font-size:12.5px}.assessment-checklist{margin:0;padding:0;list-style:none}.assessment-custom-list{margin:10px 0 0;padding:0;list-style:none}.assessment-checklist li{padding:3px 0}.assessment-checklist label{color:var(--text-primary);cursor:pointer;align-items:center;gap:7px;font-size:13px;display:flex}.assessment-custom-list li{color:var(--text-primary);justify-content:space-between;align-items:center;gap:8px;padding:3px 0;font-size:13px;display:flex}.assessment-custom-list button{width:18px;height:18px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:0;font-size:15px;line-height:1}.assessment-custom-list button:hover{color:var(--error-text);background:var(--error-bg)}.assessment-add-row{gap:8px;margin-top:10px;display:flex}.assessment-add-row input{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-primary);border-radius:7px;flex:1;padding:7px 10px;font-family:inherit;font-size:13px}.assessment-add-row button{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-primary);cursor:pointer;border-radius:7px;padding:7px 12px;font-family:inherit;font-size:12.5px;font-weight:600}.assessment-add-row button:disabled{opacity:.5;cursor:default}.assessment-insert-button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:7px;margin-top:10px;padding:8px 14px;font-family:inherit;font-size:13px;font-weight:600}.assessment-insert-button:hover:not(:disabled){background:var(--accent-hover)}.assessment-insert-button:disabled{opacity:.6;cursor:default}.notes-page-v2 .editor-footer{border-top:1px solid var(--border);background:var(--bg-surface-alt);flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px 12px;padding:12px 24px;display:flex}.notes-page-v2 .word-count{color:var(--text-secondary);font-size:13px}@media (width<=768px){.notes-page-v2 .notes-header{padding:12px 16px}.notes-page-v2 .notes-workspace{grid-template-columns:1fr;max-width:none;padding:12px}.notes-page-v2 .editor-column{height:auto}.notes-page-v2 .history-section.is-open{flex-basis:auto}.notes-page-v2 .history-section.is-open .history-editor{max-height:40vh}.notes-page-v2 .clinical-editor{min-height:55vh}.notes-page-v2 .clinical-editor .clinical-prose{padding:18px}.notes-page-v2 .editor-footer{padding:12px 18px}}.notes-page-v2 .editor-toolbar button svg{margin:0 auto;display:block}.notes-page-v2 .inserted-insight{border-left:3px solid var(--accent);background:var(--accent-tint);color:var(--accent-tint-text);border-radius:0 8px 8px 0;align-items:flex-start;gap:8px;margin:10px 0;padding:9px 12px;font-family:system-ui,-apple-system,sans-serif;font-size:13.5px;line-height:1.5;display:flex}.notes-page-v2 .inserted-insight-body{flex:1;min-width:0}.notes-page-v2 .inserted-insight-topic{letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-right:7px;font-size:10.5px;font-weight:700;display:inline-block}.notes-page-v2 .inserted-insight-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.notes-page-v2 .inserted-insight-goals{color:var(--accent-tint-text);margin:4px 0 0;padding-left:14px;font-size:12px;line-height:1.45;list-style:outside}.notes-page-v2 .inserted-insight-goals li{margin-bottom:2px}.notes-page-v2 .inserted-insight-goals li:last-child{margin-bottom:0}.notes-page-v2 .inserted-insight-cites{gap:6px;margin-left:7px;display:inline-flex}.notes-page-v2 .inserted-insight-cites a{color:var(--accent);font-size:11px;text-decoration:underline}.notes-page-v2 .citation-score{font-variant-numeric:tabular-nums;letter-spacing:.02em;vertical-align:1px;border-radius:3px;margin-left:5px;padding:0 4px;font-size:9.5px;font-weight:700}.notes-page-v2 .citation-score.is-strong{background:var(--success-bg);color:var(--success-text)}.notes-page-v2 .citation-score.is-moderate{background:var(--warning-bg);color:var(--warning-text)}.notes-page-v2 .citation-score.is-weak{background:var(--error-bg);color:var(--error-text)}.notes-page-v2 .inserted-insight-remove{width:20px;height:20px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:0;font-size:16px;line-height:1}.notes-page-v2 .inserted-insight-remove:hover{background:var(--accent-tint-strong);color:var(--accent-hover)}.notes-page-v2 .ProseMirror-selectednode.inserted-insight{outline:2px solid var(--accent);outline-offset:1px}.assessment-item-node{font-size:inherit;line-height:inherit;align-items:baseline;gap:6px;padding:1px 0;display:flex}.assessment-item-bullet{background:currentColor;border-radius:50%;flex-shrink:0;width:5px;height:5px;margin-top:.6em}.assessment-item-text{flex:0 auto}.assessment-item-remove{width:18px;height:18px;color:var(--text-muted);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:0;font-size:15px;line-height:1}.assessment-item-node:hover .assessment-item-remove,.assessment-item-remove:focus-visible{opacity:1}.assessment-item-remove:hover{background:var(--bg-elevated);color:var(--error-text)}.notes-page-v2 .ProseMirror-selectednode.assessment-item-node{outline:2px solid var(--accent);outline-offset:1px;border-radius:4px}.notes-page-v2 .footer-actions{align-items:center;gap:8px;display:flex}.notes-page-v2 .export-button{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-primary);cursor:pointer;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:14px;font-weight:600}.notes-page-v2 .export-button:hover:not(:disabled){background:var(--bg-surface-alt);border-color:var(--text-muted)}.notes-page-v2 .export-button:disabled{opacity:.45;cursor:default}.notes-page-v2 .import-button{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-primary);cursor:pointer;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:14px;font-weight:600}.notes-page-v2 .import-button:hover:not(:disabled){background:var(--bg-surface-alt);border-color:var(--text-muted)}.notes-page-v2 .import-button:disabled{opacity:.45;cursor:default}.notes-page-v2 .footer-status{flex-wrap:wrap;flex:1;align-items:baseline;gap:4px 10px;min-width:0;display:flex}.notes-page-v2 .import-status{color:var(--text-secondary);font-size:13px}.notes-page-v2 .import-status.is-done{color:var(--success-text)}.notes-page-v2 .import-status.is-error{color:var(--error-text)}.notes-page-v2 .drop-overlay{z-index:2;border:2px dashed var(--accent);background:var(--overlay-bg);color:var(--accent-hover);pointer-events:none;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:14px;display:flex;position:absolute;inset:8px}.notes-page-v2 .drop-overlay span{color:var(--text-secondary);font-size:13px}.notes-page-v2 .print-header{display:none}@media print{@page{margin:18mm 16mm}.notes-header,.editor-toolbar,.section-header,.editor-footer,.history-section,.assessment-section,.assessment-reopen-fab,.inserted-insight-remove,.assessment-item-remove{display:none!important}.editor-collapsible{flex:1!important;max-height:none!important;display:flex!important;overflow:visible!important}html,body,#root,.notes-page{background:#fff;min-height:0}.notes-page-v2 .notes-workspace{max-width:none;margin:0;padding:0;display:block}.editor-column{height:auto;display:block}.editor-section{border:none;border-radius:0;height:auto;display:block;overflow:visible}.editor-drop,.clinical-editor{flex:none;min-height:0;display:block;overflow:visible}.clinical-editor .clinical-prose{color:#000;min-height:0;padding:0;font-size:11.5pt;line-height:1.5}.citation-score{-webkit-print-color-adjust:exact;print-color-adjust:exact}.print-header{border-bottom:1pt solid #333;margin-bottom:16pt;padding-bottom:8pt;display:block}.print-title{color:#000;font-family:system-ui,-apple-system,sans-serif;font-size:15pt;font-weight:700}.print-meta{color:#444;justify-content:space-between;margin-top:3pt;font-family:system-ui,-apple-system,sans-serif;font-size:9pt;display:flex}.inserted-insight{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#10306e;background:#f2f6ff;border-left:2pt solid #2563eb;margin:7pt 0;padding:6pt 9pt;font-size:10pt}.inserted-insight-topic{color:#1d4ed8;font-size:8pt}.inserted-insight-text{display:inline;overflow:visible}.inserted-insight-cites a{color:#1d4ed8;font-size:8pt}.inserted-insight,.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{break-inside:avoid;page-break-inside:avoid}.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{break-after:avoid;page-break-after:avoid}}.notes-page{color:#172033;background:#f5f7fa;min-height:100vh}.notes-header{background:#fff;border-bottom:1px solid #e2e8f0;height:72px;padding:12px 32px}.notes-header h2{margin:0;font-size:22px}.notes-header span{color:#64748b;font-size:13px}.notes-page-v2 .notes-header{justify-content:space-between;align-items:center;display:flex}.analyze-progress-banner{z-index:30;color:#1d4ed8;background:#eff6ff;border-bottom:1px solid #bfdbfe;align-items:center;gap:10px;padding:8px 32px;font-size:13px;font-weight:600;display:flex;position:sticky;top:0}.analyze-progress-spinner{border:2px solid #bfdbfe;border-top-color:#1d4ed8;border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:.7s linear infinite analyze-progress-spin}@keyframes analyze-progress-spin{to{transform:rotate(360deg)}}.analyze-progress-text{flex-shrink:0}.analyze-progress-track{background:#dbeafe;border-radius:2px;flex:1;max-width:240px;height:4px;overflow:hidden}.analyze-progress-fill{background:#1d4ed8;border-radius:2px;height:100%;transition:width .3s}.back-to-notes-button{font:inherit;color:#334155;cursor:pointer;background:0 0;border:1px solid #cbd5e1;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500}.back-to-notes-button:hover{background:#f1f5f9}.notes-nav{gap:18px;display:flex}.notes-nav a{color:#2563eb;font-size:14px;font-weight:600;text-decoration:none}.notes-nav a:hover{text-decoration:underline}.report-title{border-bottom:1px solid #e2e8f0;flex-shrink:0;padding:14px 18px;font-weight:600}.report-subtitle{color:#64748b;margin-left:10px;font-size:13px;font-weight:400}.report-button{height:38px;font:inherit;color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:0 16px;font-size:14px;font-weight:600}.report-button:hover:not(:disabled){background:#f1f5f9}.report-button:disabled{opacity:.5;cursor:default}.report-error{color:#b91c1c;background:#fef2f2;border-top:1px solid #fecaca;margin:0;padding:10px 18px;font-size:13px}.notes-page-v2 .notes-workspace{grid-template-columns:minmax(0,1fr);gap:20px;max-width:1400px;margin:0 auto;padding:24px;transition:max-width .2s;display:grid}.notes-page-v2 .notes-workspace.has-insights{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}.editor-section,.insights-section,.checklist-section,.checklist-quick-section,.history-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.right-column{flex-direction:column;gap:20px;height:calc(100vh - 120px);min-height:0;display:flex}.checklist-section{flex-direction:column;flex:none;min-height:0;display:flex}.checklist-section.is-open{flex:1;min-height:0}.checklist-quick-section{flex-direction:column;flex:none;max-height:40%;display:flex}.checklist-quick-header{border-bottom:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;font-weight:600;display:flex}.checklist-quick-body{padding:10px 12px;overflow-y:auto}.checklist-body{flex:1;min-height:0;padding:12px;overflow-y:auto}.checklist-summary{border-bottom:1px solid #e2e8f0;flex-direction:column;gap:1px;margin-bottom:14px;padding-bottom:12px;display:flex}.checklist-summary-item{border-radius:6px;align-items:center;gap:8px;padding:5px 6px;display:flex}.checklist-summary-item.is-linkable{cursor:pointer}.checklist-summary-item.is-linkable:hover{background:#f1f5f9}.checklist-summary-item.is-linkable:focus-visible{outline-offset:1px;outline:2px solid #93c5fd}.checklist-summary-dot{background:#64748b;border-radius:50%;flex-shrink:0;width:7px;height:7px}.checklist-summary-dot.is-matched{background:#15803d}.checklist-summary-dot.is-gap{background:#b45309}.checklist-summary-dot.is-unlinked{background:#94a3b8}.checklist-summary-label{color:#334155;font-size:12px;line-height:1.4}.checklist-item{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:10px;padding:10px 12px}.checklist-item:last-child{margin-bottom:0}.checklist-item.is-linkable{cursor:pointer}.checklist-item.is-linkable:hover{border-color:#94a3b8}.checklist-item.is-linkable:focus-visible{outline-offset:1px;outline:2px solid #93c5fd}.checklist-item-head{flex-direction:column;gap:3px;margin-bottom:8px;display:flex}.checklist-item-label{color:#1e293b;font-size:13px;font-weight:600}.checklist-item-reason{color:#64748b;font-size:12px;line-height:1.4}.checklist-item-goals{color:#334155;margin:8px 0 0;padding-left:18px;font-size:12px;line-height:1.5}.checklist-status{border-radius:999px;align-self:flex-start;margin-top:2px;padding:2px 8px;font-size:11px;font-weight:600}.checklist-status.is-matched{color:#15803d;background:#f0fdf4}.checklist-status.is-gap{color:#b45309;background:#fffbeb}.checklist-status.is-unlinked{color:#64748b;background:#f1f5f9}.editor-column{flex-direction:column;gap:20px;height:calc(100vh - 120px);min-height:0;display:flex}.editor-column.free-height{align-self:start;height:auto}.show-both-link{font:inherit;color:#3355c9;cursor:pointer;background:0 0;border:none;flex-shrink:0;align-self:flex-end;margin-bottom:-8px;padding:4px 2px;font-size:13px;font-weight:500}.show-both-link:hover{text-decoration:underline}.history-section,.notes-page-v2 .editor-section{flex-direction:column;flex:none;height:auto;display:flex}.history-section.is-open{flex-basis:280px;min-height:0}.notes-page-v2 .editor-section.is-open{flex:1;height:auto;min-height:0}.section-header{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-bottom:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;font-weight:600;display:flex}.section-header:hover{background:#fbfcfe}.section-subtitle{color:#64748b;margin-left:10px;font-size:13px;font-weight:400}.section-header svg{color:#64748b;flex-shrink:0;transition:transform .15s}.is-open .section-header svg{transform:rotate(180deg)}.history-editor{background:#fff;max-height:0;position:relative;overflow:hidden}.history-section.is-open .history-editor{flex:1;min-height:0;max-height:none;overflow-y:auto}.editor-collapsible{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.editor-section:not(.is-open) .editor-collapsible{flex:0 0 0;max-height:0}.insights-title{border-bottom:1px solid #e2e8f0;flex-shrink:0;padding:14px 18px;font-weight:600}.notes-page-v2 .insights-title{justify-content:space-between}.demo-insights-button{color:#97671c;cursor:pointer;background:0 0;border:1px dashed #c3b088;border-radius:6px;flex-shrink:0;padding:5px 10px;font-size:11.5px;font-weight:500}.demo-insights-button:hover:not(:disabled){background:#f6ecd9}.demo-insights-button:disabled{opacity:.55;cursor:default}.selection-check-hint{color:#94a3b8;background:#fbfcfe;border-bottom:1px solid #e2e8f0;flex-shrink:0;margin:0;padding:6px 12px;font-size:12px}.editor-toolbar{background:#fbfcfe;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:4px;padding:8px 12px;display:flex}.toolbar-group{align-items:center;gap:2px;display:flex}.toolbar-divider{background:#e2e8f0;width:1px;height:20px;margin:0 6px}.editor-toolbar button{color:#475569;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;min-width:32px;height:32px;padding:0 8px;font-family:inherit;font-size:13px;line-height:1;transition:background .12s,color .12s}.editor-toolbar button:hover:not(:disabled){color:#172033;background:#eef2f7}.editor-toolbar button.is-active{color:#1d4ed8;background:#e0ebff;border-color:#bfd6ff}.editor-toolbar button:disabled{opacity:.35;cursor:default}.editor-toolbar button:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.editor-drop{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.clinical-editor{background:#fff;flex:1;min-height:0;overflow-y:auto}.clinical-editor .clinical-prose{color:#1e293b;border:none;outline:none;min-height:100%;padding:24px;font-family:Georgia,serif;font-size:16px;line-height:1.7}.clinical-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;pointer-events:none;color:#94a3b8;height:0}.clinical-prose>*+*{margin-top:.75em}.clinical-prose p{margin:0}.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{color:#0f172a;margin:1.4em 0 .5em;font-family:system-ui,-apple-system,sans-serif;line-height:1.3}.clinical-prose h1:first-child,.clinical-prose h2:first-child,.clinical-prose h3:first-child{margin-top:0}.clinical-prose h1{font-size:26px}.clinical-prose h2{font-size:21px}.clinical-prose h3{font-size:18px}.clinical-prose ul,.clinical-prose ol{margin:.5em 0;padding-left:1.5rem}.clinical-prose li{margin:.2em 0}.clinical-prose li p{margin:0}.clinical-prose blockquote{color:#475569;border-left:3px solid #cbd5e1;margin:.75em 0;padding-left:14px;font-style:italic}.clinical-prose code{color:#b91c1c;background:#f1f5f9;border-radius:4px;padding:2px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}.clinical-prose pre{color:#e2e8f0;background:#0f172a;border-radius:8px;margin:.75em 0;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.5;overflow-x:auto}.clinical-prose pre code{color:inherit;font-size:inherit;background:0 0;padding:0}.clinical-prose hr{border:none;border-top:1px solid #e2e8f0;margin:1.5em 0}.clinical-prose a{color:#2563eb;text-decoration:underline}.live-pages{background:#f8fafc;border-top:1px solid #eef2f7;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;padding:8px 24px;font-size:12px;display:flex}.live-pages-label{color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;font-size:10.5px;font-weight:600}.live-pages a{color:#2563eb;white-space:nowrap;background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:2px 8px;text-decoration:none}.live-pages a:hover{background:#eff6ff;border-color:#93b4f5}.live-pages-hint{color:#94a3b8;white-space:nowrap;margin-left:auto}.editor-footer{background:#fbfcfe;border-top:1px solid #e2e8f0;flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px 12px;padding:12px 24px;display:flex}.word-count{color:#64748b;font-size:13px}.analyze-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:10px 18px;font-family:inherit;font-size:14px;font-weight:600}.analyze-button:hover:not(:disabled){background:#1d4ed8}.analyze-button:disabled{cursor:default;background:#cbd5e1}.selection-bubble-menu{z-index:20}.selection-check-button{color:#fff;cursor:pointer;white-space:nowrap;background:#0f172a;border:none;border-radius:7px;padding:7px 14px;font-family:inherit;font-size:13px;font-weight:600;box-shadow:0 4px 14px #0f172a2e}.selection-check-button:hover:not(:disabled){background:#1e293b}.selection-check-button:disabled{cursor:default;background:#64748b}.empty-insights{color:#64748b;margin:0;padding:18px;font-size:14px;line-height:1.6}@media (width<=768px){.notes-header{padding:12px 16px}.notes-page-v2 .notes-workspace,.notes-page-v2 .notes-workspace.has-insights{grid-template-columns:1fr;max-width:none;padding:12px}.editor-column{height:auto}.history-section.is-open{flex-basis:auto}.history-section.is-open .history-editor{max-height:40vh}.clinical-editor{min-height:55vh}.clinical-editor .clinical-prose{padding:18px}.editor-footer{padding:12px 18px}.live-pages{padding:8px 18px}.live-pages-hint{display:none}.insights-section{min-height:200px}}.editor-toolbar button svg{margin:0 auto;display:block}.insights-section{flex-direction:column;flex:1;min-height:0;display:flex}.insights-title{align-items:center;gap:8px;display:flex}.insights-collapse-toggle{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;padding:0;display:flex}.insights-collapse-toggle:hover{background:#f1f5f9}.insights-collapse-toggle svg{transform:rotate(-90deg)}.insights-reopen-fab{z-index:15;color:#64748b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:flex;position:fixed;top:50%;right:20px;transform:translateY(-50%);box-shadow:0 2px 10px #0f172a1f}.insights-reopen-fab:hover{color:#1d4ed8;border-color:#bfdbfe}.insights-reopen-fab svg{transform:rotate(-90deg)}.insights-count-collapsed{color:#fff;background:#1d4ed8;border-radius:8px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:700;line-height:16px;display:inline-flex;position:absolute;top:-6px;right:-6px}.insights-count{color:#1d4ed8;background:#e0ebff;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-weight:700;display:inline-flex}.insights-body{flex:1;min-height:0;padding:12px;overflow-y:auto}.insights-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:6px;padding:12px;font-size:13px;line-height:1.5}.insight-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:10px;transition:border-color .12s,box-shadow .12s;overflow:hidden}.insight-prompt{color:#2563eb;align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex}.insight-prompt svg{flex-shrink:0;transition:transform .15s}.insight-card.is-open .insight-prompt svg{transform:rotate(180deg)}.insight-prompt-count{color:#94a3b8;font-weight:400}.insight-prompt-count:before{content:"· "}.insight-summary.is-loading{color:#64748b;font-style:italic}.insight-summary.is-error{color:#b91c1c}.insights-hint{color:#475569;background:#f1f5f9;border-radius:8px;margin:0 0 10px;padding:8px 12px;font-size:12.5px;line-height:1.45}.insight-card.is-live{background:#fbfdff;border-color:#bfd6ff #bfd6ff #bfd6ff #2563eb;border-left-style:solid;border-left-width:3px}.insight-card.is-live .insight-topic{color:#2563eb}.insight-card.is-live .insight-head:disabled{cursor:default}.insight-timing{color:#64748b;font-variant-numeric:tabular-nums;background:#eef2f7;border-radius:4px;margin-left:6px;padding:1px 5px;font-size:10.5px;font-weight:500}.live-pages-timing{color:#64748b;font-variant-numeric:tabular-nums;background:#eef2f7;border-radius:4px;margin-right:8px;padding:1px 5px}.citation-chip.is-strong{color:#15803d!important;background:#f0fdf4!important;border-color:#86efac!important}.citation-chip.is-strong:hover{background:#dcfce7!important;border-color:#4ade80!important}.citation-chip.is-moderate{color:#b45309!important;background:#fffbeb!important;border-color:#fcd34d!important}.citation-chip.is-moderate:hover{background:#fef3c7!important;border-color:#fbbf24!important}.citation-chip.is-weak{color:#b91c1c!important;background:#fef2f2!important;border-color:#fca5a5!important}.citation-chip.is-weak:hover{background:#fee2e2!important;border-color:#f87171!important}.citation-chip .citation-doc{opacity:.75;color:inherit!important}.citation-score{font-variant-numeric:tabular-nums;letter-spacing:.02em;vertical-align:1px;border-radius:3px;margin-left:5px;padding:0 4px;font-size:9.5px;font-weight:700}.citation-score.is-strong{color:#15803d;background:#dcfce7}.citation-score.is-moderate{color:#b45309;background:#fef3c7}.citation-score.is-weak{color:#b91c1c;background:#fee2e2}.citation-updated{letter-spacing:.02em;text-transform:uppercase;color:#4338ca;vertical-align:1px;background:#eef2ff;border-radius:3px;margin-left:5px;padding:0 4px;font-size:9.5px;font-weight:700}.insight-card.is-pregenerated{background:#faf9ff;border-color:#ddd6fe}.insight-card.is-pregenerated:hover{border-color:#c4b5fd}.insight-card.is-pregenerated .insight-topic{color:#6d28d9}.insight-card.is-unanswered{background:#fbfcfe;border-style:dashed}.insight-card.is-unanswered .insight-head{cursor:default}.insight-card.is-unanswered .insight-topic{color:#94a3b8}.insight-card.is-unanswered .insight-summary{color:#64748b;font-style:italic}.insight-card.is-checklist-gap{border-style:solid;border-color:#fcd34d}.insight-card.is-checklist-gap .insight-summary{font-style:normal}.insight-card:hover{border-color:#cbd5e1}.insight-card.is-open{border-color:#bfd6ff;box-shadow:0 2px 10px #2563eb14}.insight-head{text-align:left;cursor:pointer;background:0 0;border:none;flex-direction:column;gap:5px;width:100%;padding:12px 14px;font-family:inherit;display:flex}.insight-topic{letter-spacing:.06em;text-transform:uppercase;color:#1d4ed8;font-size:11px;font-weight:700}.insight-summary{color:#1e293b;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.insight-card.is-open .insight-summary{-webkit-line-clamp:unset;overflow:visible}.insight-anchor{color:#94a3b8;white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.insight-detail{border-top:1px solid #eef2f7;padding:0 14px 12px}.insight-question{color:#64748b;margin:10px 0;font-size:12px;font-style:italic;line-height:1.5}.insight-detail-text p{color:#334155;margin:0 0 7px;padding-left:12px;font-size:13px;line-height:1.55;position:relative}.insight-detail-text p:last-child{margin-bottom:0}.insight-goals{margin-top:12px}.insight-detail-text p:before{content:"";background:#cbd5e1;border-radius:50%;width:4px;height:4px;position:absolute;top:8px;left:0}.insight-footer{flex-direction:column;gap:10px;padding:0 14px 12px;display:flex}.insight-citations{flex-wrap:wrap;gap:6px;display:flex}.insight-citations a{color:#2563eb;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:3px 8px;font-size:11px;text-decoration:none}.insight-citations a:hover{background:#eef2f7;border-color:#cbd5e1}.insight-actions{gap:8px;display:flex}.insight-actions button{cursor:pointer;border-radius:7px;flex:1;padding:8px 12px;font-family:inherit;font-size:13px;font-weight:600}.insight-accept{color:#fff;background:#2563eb;border:none}.insight-accept:hover{background:#1d4ed8}.insight-cancel{color:#64748b;background:#fff;border:1px solid #e2e8f0}.insight-cancel:hover{color:#334155;background:#f8fafc}.inserted-insight{color:#1e3a8a;background:#f2f6ff;border-left:3px solid #2563eb;border-radius:0 8px 8px 0;align-items:flex-start;gap:8px;margin:10px 0;padding:9px 12px;font-family:system-ui,-apple-system,sans-serif;font-size:13.5px;line-height:1.5;display:flex}.inserted-insight-body{flex:1;min-width:0}.inserted-insight-topic{letter-spacing:.06em;text-transform:uppercase;color:#2563eb;margin-right:7px;font-size:10.5px;font-weight:700;display:inline-block}.inserted-insight-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.inserted-insight-goals{color:#1e3a8a;margin:4px 0 0;padding-left:14px;font-size:12px;line-height:1.45;list-style:outside}.inserted-insight-goals li{margin-bottom:2px}.inserted-insight-goals li:last-child{margin-bottom:0}.inserted-insight-cites{gap:6px;margin-left:7px;display:inline-flex}.inserted-insight-cites a{color:#2563eb;font-size:11px;text-decoration:underline}.inserted-insight-remove{color:#93a8d4;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;width:20px;height:20px;padding:0;font-size:16px;line-height:1}.inserted-insight-remove:hover{color:#1d4ed8;background:#dbe6ff}.ProseMirror-selectednode.inserted-insight{outline-offset:1px;outline:2px solid #2563eb}@media (width<=768px){.insights-section{height:auto;max-height:70vh}}.insight-card.is-pending{background:#fcfdfe}.insight-card.is-pending .insight-head{cursor:default}.insight-card.is-pending .insight-topic{color:#94a3b8}.insight-skeleton{background:linear-gradient(90deg,#eef2f7 25%,#e2e8f0 37%,#eef2f7 63%) 0 0/400% 100%;border-radius:4px;height:9px;margin-top:6px;animation:1.3s ease-in-out infinite insight-shimmer;display:block}.insight-skeleton.short{width:62%}@media (prefers-reduced-motion:reduce){.insight-skeleton{animation:none}}.footer-actions{align-items:center;gap:8px;display:flex}.export-button,.checklist-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:14px;font-weight:600}.export-button:hover:not(:disabled),.checklist-button:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.checklist-button:disabled{opacity:.5;cursor:default}.export-button:disabled{opacity:.45;cursor:default}.import-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:14px;font-weight:600}.import-button:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.import-button:disabled{opacity:.45;cursor:default}.footer-status{flex-wrap:wrap;flex:1;align-items:baseline;gap:4px 10px;min-width:0;display:flex}.import-status{color:#64748b;font-size:13px}.import-status.is-done{color:#15803d}.import-status.is-error{color:#b91c1c}.drop-overlay{z-index:2;color:#1d4ed8;pointer-events:none;background:#eff5fff0;border:2px dashed #93b4f5;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:14px;display:flex;position:absolute;inset:8px}.drop-overlay span{color:#4b6ba8;font-size:13px}.print-header{display:none}@media print{@page{margin:18mm 16mm}.notes-header,.editor-toolbar,.section-header,.editor-footer,.live-pages,.insights-section,.history-section,.checklist-quick-section,.inserted-insight-remove{display:none!important}.editor-collapsible{flex:1!important;max-height:none!important;display:flex!important;overflow:visible!important}html,body,#root,.notes-page{background:#fff;min-height:0}.notes-page-v2 .notes-workspace,.notes-page-v2 .notes-workspace.has-insights{max-width:none;margin:0;padding:0;display:block}.editor-column{height:auto;display:block}.editor-section{border:none;border-radius:0;height:auto;display:block;overflow:visible}.editor-drop,.clinical-editor{flex:none;min-height:0;display:block;overflow:visible}.clinical-editor .clinical-prose{color:#000;min-height:0;padding:0;font-size:11.5pt;line-height:1.5}.checklist-section{break-before:page;border:none;border-radius:0;height:auto;display:block;overflow:visible}.checklist-section .section-header{color:#000;border-bottom:1pt solid #333;padding:0 0 8pt;font-family:system-ui,-apple-system,sans-serif;font-size:15pt;font-weight:700;display:block!important}.checklist-section .section-header svg{display:none}.checklist-body{flex:none;padding:14pt 0 0;overflow:visible}.checklist-item,.citation-chip,.checklist-status{-webkit-print-color-adjust:exact;print-color-adjust:exact}.checklist-item{break-inside:avoid;page-break-inside:avoid}.print-header{border-bottom:1pt solid #333;margin-bottom:16pt;padding-bottom:8pt;display:block}.print-title{color:#000;font-family:system-ui,-apple-system,sans-serif;font-size:15pt;font-weight:700}.print-meta{color:#444;justify-content:space-between;margin-top:3pt;font-family:system-ui,-apple-system,sans-serif;font-size:9pt;display:flex}.inserted-insight{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#10306e;background:#f2f6ff;border-left:2pt solid #2563eb;margin:7pt 0;padding:6pt 9pt;font-size:10pt}.inserted-insight-topic{color:#1d4ed8;font-size:8pt}.inserted-insight-text{display:inline;overflow:visible}.inserted-insight-cites a{color:#1d4ed8;font-size:8pt}.inserted-insight,.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{break-inside:avoid;page-break-inside:avoid}.clinical-prose h1,.clinical-prose h2,.clinical-prose h3{break-after:avoid;page-break-after:avoid}}.citation-doc{color:#64748b}*{box-sizing:border-box}.admin-page{background:var(--bg-page);min-height:100vh;color:var(--text-primary);font-family:system-ui,-apple-system,Segoe UI,sans-serif}.admin-header{background:var(--bg-surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:72px;padding:12px 32px;display:flex}.admin-header h2{margin:0;font-size:22px}.admin-header span{color:var(--text-secondary);font-size:13px}.admin-nav{align-items:center;gap:18px;display:flex}.admin-nav a{color:var(--accent);font-size:14px;font-weight:600;text-decoration:none}.admin-nav a:hover{text-decoration:underline}.admin-workspace{grid-template-columns:minmax(0,3fr) minmax(320px,2fr);align-items:start;gap:20px;max-width:1200px;margin:0 auto;padding:24px;display:grid}.admin-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.admin-card-title{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:14px 18px;font-weight:600;display:flex}.admin-count{background:var(--info-bg);color:var(--accent-hover);border-radius:10px;padding:1px 8px;font-size:12px}.admin-card-body{padding:18px}.corrects-field{color:var(--text-secondary);align-items:center;gap:10px;margin-bottom:12px;font-size:13px;display:flex}.corrects-field select{border:1px solid var(--border);background:var(--bg-surface);font:inherit;color:var(--text-primary);border-radius:7px;flex:1;padding:7px 10px;font-size:13px}.dropzone{border:2px dashed var(--border-strong);background:var(--bg-surface-alt);text-align:center;cursor:pointer;border-radius:10px;flex-direction:column;gap:6px;width:100%;padding:30px 24px;font-family:inherit;transition:border-color .12s,background .12s;display:flex}.dropzone:hover:not(:disabled),.dropzone.is-dragging{border-color:var(--accent);background:var(--accent-tint)}.dropzone:disabled{cursor:default}.dropzone.is-busy{border-style:solid;border-color:var(--accent-tint-strong);background:var(--bg-surface-alt)}.dropzone strong{color:var(--text-primary);font-size:15px}.dropzone span{color:var(--text-secondary);font-size:13px;line-height:1.55}.pipeline{margin:20px 0 0;padding:0;list-style:none}.stage{gap:12px;padding:9px 0;display:flex;position:relative}.stage:not(:last-child):before{content:"";background:var(--border);width:2px;position:absolute;top:29px;bottom:-1px;left:9px}.stage-icon{flex-shrink:0;width:20px;height:20px;margin-top:1px}.stage-icon.is-pending{color:var(--border-strong)}.stage-icon.is-done{color:var(--success-text)}.stage-icon.is-failed{color:var(--error-text)}.stage-icon.is-running{border:2px solid var(--accent-tint-strong);border-top-color:var(--accent);border-radius:50%;animation:.7s linear infinite stage-spin;display:block}@keyframes stage-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.stage-icon.is-running{animation-duration:2.4s}}.stage-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.stage-label{color:var(--text-muted);font-size:14px}.stage.is-running .stage-label,.stage.is-done .stage-label{color:var(--text-primary)}.stage.is-running .stage-label{font-weight:600}.stage.is-failed .stage-label{color:var(--error-text);font-weight:600}.stage-detail{color:var(--text-secondary);font-size:12px}.stage-bar{background:var(--bg-elevated);border-radius:3px;height:6px;margin-top:4px;overflow:hidden}.stage-bar-fill{background:var(--accent);border-radius:3px;height:100%;transition:width .2s}.admin-error,.admin-success,.admin-empty,.admin-total{margin:16px 0 0;font-size:13px;line-height:1.6}.admin-error{background:var(--error-bg);color:var(--error-text);border-radius:8px;padding:10px 12px}.admin-success{background:var(--success-bg);color:var(--success-text);border-radius:8px;padding:10px 12px}.admin-empty{color:var(--text-secondary);margin:0}.admin-total{color:var(--text-muted);font-size:12px}.document-row{border:1px solid var(--border);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;padding:12px 14px;display:flex}.document-row:hover{border-color:var(--border-strong)}.document-main{flex-direction:column;gap:3px;min-width:0;display:flex}.document-name{color:var(--accent-hover);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;text-decoration:none;overflow:hidden}.document-name:hover{text-decoration:underline}.document-meta{color:var(--text-muted);font-size:12px}.document-relation{border-radius:5px;width:fit-content;padding:2px 8px;font-size:11.5px;font-weight:500;display:inline-block}.document-relation.is-correction{background:var(--info-bg);color:var(--info-text)}.document-relation.is-superseded{background:var(--warning-bg);color:var(--warning-text)}.document-remove{border:1px solid var(--border);background:var(--bg-surface);color:var(--text-secondary);font:inherit;cursor:pointer;border-radius:7px;flex-shrink:0;padding:6px 12px;font-size:13px}.document-remove:hover:not(:disabled){background:var(--error-bg);border-color:var(--error-text);color:var(--error-text)}.document-remove:disabled{opacity:.5;cursor:default}@media (width<=860px){.admin-workspace{grid-template-columns:1fr;padding:12px}.admin-header{padding:12px 16px}}.document-remove.is-armed{border-color:var(--error-text);background:var(--error-text);color:#fff;font-weight:600}.document-remove.is-armed:hover:not(:disabled){color:#fff;background:#b91c1c;border-color:#b91c1c}
