
:root { --appearance-panel:#fff; --appearance-ink:#19314e; --appearance-muted:#61748b; --appearance-line:#cbd9e9; --appearance-soft:#eaf2fc; --appearance-accent:#254f80; }
html[data-theme="dark"] {
  color-scheme:dark;
  --ink:#e5ecf5; --text:#e5ecf5; --muted:#a5b5c9; --line:#35465d;
  --paper:#111923; --bg:#111923; --panel:#192432; --surface:#192432;
  --accent:#3b73bb; --accent-dark:#a5ceff; --blue:#9ec6fb; --amber:#efbf7c; --danger:#ffaaa3; --soft:#21354d;
  --appearance-panel:#192432; --appearance-ink:#e5ecf5; --appearance-muted:#a5b5c9;
  --appearance-line:#40536c; --appearance-soft:#253d58; --appearance-accent:#b4d6ff;
}
html[data-theme] #lt-agents-orbital { color-scheme:inherit; }
html[data-theme] #lt-agents-orbital [data-night] { display:none; }
.lt-appearance-picker { min-width:0; margin:10px 0; padding:12px; border:1px solid var(--appearance-line); border-radius:12px; color:var(--appearance-ink); background:var(--appearance-panel); }
.lt-appearance-picker legend { width:auto; float:none; padding:0 5px; font-size:12px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--appearance-muted); }
.lt-appearance-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.lt-appearance-options button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:100%; min-width:0; min-height:60px; margin:0; padding:6px 3px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--appearance-muted); font:600 11px/1.3 system-ui,sans-serif; cursor:pointer; }
.lt-appearance-options button:hover { background:var(--appearance-soft); color:var(--appearance-ink); }
.lt-appearance-options button[aria-pressed="true"] { background:var(--appearance-soft); border-color:var(--appearance-accent); color:var(--appearance-accent); }
.lt-appearance-options button:focus-visible,.lt-appearance-menu>summary:focus-visible { outline:3px solid #73a9ef; outline-offset:3px; }
.lt-appearance-icon { font-size:23px; line-height:1.2; }
.lt-appearance-picker .lt-appearance-status { margin:8px 0 0; color:var(--appearance-muted); font:11px/1.5 system-ui,sans-serif; white-space:normal; }
.lt-appearance-status:empty { display:none; }
.lt-appearance-menu { position:relative; z-index:40; }
.lt-appearance-menu>summary { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--appearance-line); border-radius:12px; list-style:none; cursor:pointer; color:var(--appearance-ink); background:var(--appearance-panel); font-size:24px; }
.lt-appearance-menu>summary::-webkit-details-marker { display:none; }
.lt-appearance-menu>.lt-appearance-picker { position:absolute; top:48px; right:0; width:min(285px,calc(100vw - 24px)); margin:0; box-shadow:0 12px 36px #0003; }
.lt-appearance-standalone { position:fixed; top:16px; right:16px; }
.login-language { display:flex; align-items:center; gap:10px; }
.by-account .lt-profile-popover { min-width:275px; max-width:calc(100vw - 24px); }

html[data-font-family="arial"] { --lt-interface-font:Arial,Helvetica,sans-serif; }
html[data-font-family="georgia"] { --lt-interface-font:Georgia,"Times New Roman",serif; }
html[data-font-family="verdana"] { --lt-interface-font:Verdana,Geneva,sans-serif; }
html[data-font-family]:not([data-font-family="default"]),
html[data-font-family]:not([data-font-family="default"]) :is(.beyond-page,.report-preview,.report-reading .report-preview :is(h1,h2,h3),#lt-profile-dialog) { font-family:var(--lt-interface-font); }
html[data-font-size="small"] { font-size:93.75%; }
html[data-font-size="large"] { font-size:112.5%; }
html[data-font-size="extra-large"] { font-size:125%; }

/* Fixed-size reading surfaces use the same scale as text that already inherits its size. */
html[data-font-size]:not([data-font-size="default"]) :is(.assistant-content,.chat-composer textarea,#reportQuestion,#invQuestion) { font-size:1rem; }
html[data-font-size]:not([data-font-size="default"]) .assistant-content h3 { font-size:1.0625rem; }
html[data-font-size]:not([data-font-size="default"]) :is(.assistant-content h4,.beyond-page,.report-reading .report-preview,#invExplanation .inv-narrative-passage p,.case-documents-head h3) { font-size:.9375rem; }
html[data-font-size]:not([data-font-size="default"]) :is(.report-chat-message,.report-workspace-content .report-preview,.by-reader blockquote) { font-size:.875rem; }
html[data-font-size]:not([data-font-size="default"]) :is(.case-document-row strong,.managed-case-option strong,.inv-detail blockquote,.inv-detail p,.report-preview) { font-size:.8125rem; }
html[data-font-size]:not([data-font-size="default"]) :is(.case-document-meta,.case-document-row a,.case-document-open,.case-document-delete) { font-size:.75rem; }
html[data-font-size]:not([data-font-size="default"]) :is(.case-document-row span,.managed-case-option span,.report-chat-sources) { font-size:.6875rem; }

.lt-typography-dialog { box-sizing:border-box; width:min(480px,calc(100% - 28px)); max-height:calc(100dvh - 28px); overflow:auto; padding:22px; border:1px solid var(--appearance-line); border-radius:18px; background:var(--appearance-panel); color:var(--appearance-ink); font:inherit; box-shadow:0 24px 72px #12273c45; }
.lt-typography-dialog::backdrop { background:#12273c80; }
.lt-typography-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.lt-typography-header h2 { margin:0; color:inherit; font-size:1.25rem; line-height:1.2; }
.lt-typography-header .lt-typography-close { flex:none; width:44px; min-height:44px; padding:0; border:1px solid var(--appearance-line); border-radius:10px; background:var(--appearance-panel); color:var(--appearance-ink); font:1.35rem/1 system-ui,sans-serif; cursor:pointer; }
.lt-typography-header .lt-typography-close:hover { background:var(--appearance-soft); }
.lt-typography-dialog fieldset { min-width:0; margin:0; padding:13px; border:1px solid var(--appearance-line); border-radius:12px; }
.lt-typography-dialog legend { padding:0 5px; color:var(--appearance-accent); font-size:.875rem; font-weight:700; }
.lt-typography-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.lt-typography-fields label { display:block; margin:0 0 5px; color:inherit; font-size:.875rem; font-weight:650; }
.lt-typography-fields select { width:100%; min-width:0; min-height:44px; padding:6px 9px; border:1px solid var(--appearance-line); border-radius:8px; background:var(--appearance-panel); color:var(--appearance-ink); font:inherit; }
.lt-typography-dialog :is(button,select):focus-visible { outline:3px solid #73a9ef; outline-offset:2px; }
.lt-typography-preview { margin:14px 0 0; padding:12px; border-radius:8px; background:var(--appearance-soft); color:inherit; font:inherit; line-height:1.5; overflow-wrap:anywhere; }
.lt-typography-dialog .lt-appearance-status { margin:10px 0 0; color:var(--appearance-muted); font-size:.8125rem; }
@media (max-width:440px) { .lt-typography-dialog { padding:16px; } .lt-typography-fields { grid-template-columns:minmax(0,1fr); } }

html[data-theme="dark"] body,html[data-theme="dark"] .beyond-page { background:var(--paper); color:var(--ink); }
html[data-theme="dark"] :is(.topbar,.by-topbar) { background:#141f2df5; border-color:var(--line); }
html[data-theme="dark"] :is(.source-scope,.case-management-tabs,.managed-case-catalog-panel,.research-panel,.run-panel,.history-panel,.upload-activity-panel,.inv-library,.inv-detail) { background:#141f2d; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(input,textarea,select) { background:var(--panel); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(input,textarea)::placeholder { color:#99aabe; opacity:1; }
html[data-theme="dark"] :is(.user-menu>summary,.user-menu-popover,.source-picker>summary,.source-picker-menu,.source-picker-footer,.preview-case-card,.preview-file-picker,.template-list-item,.report-execution-details,.report-chat-message,.download-actions a,.report-chat-composer,.chat-activity,.case-source-group,.case-option,.case-source-group-count,.case-layout-toggle,.managed-case-option,.case-management-detail-empty,.segmented-control,.case-details-panel,.case-documents-panel,.create-case-sidebar-message,.upload-picker-button,.upload-file-list,.help-assistant,.upload-job,.upload-readiness,.writing-language-dialog,.inv-delete-dialog,.inv-rename-dialog,.inv-scope,.inv-links,.inv-library-row,.inv-relation,#invExplanation,.by-account summary,.by-button,.by-map-card,.by-research-card,.by-findings-card,.by-reader,.by-map-tooltip,.bn-reader-dialog,.bn-reader-close) { background:var(--panel); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.chat-composer-top,.report-composer,.report-composer-footer,.report-delivery,.report-reading-toolbar) { background:var(--panel); color:var(--ink); border-color:var(--line); box-shadow:0 -10px 32px #0003; }
html[data-theme="dark"] :is(.chat-composer-main textarea,.report-composer #reportQuestion) { background:transparent; }
html[data-theme="dark"] :is(.report-template-start select,.report-template-start .template-manager-button,.dictation-button,.chat-composer-main>.chat-attachment-button,.history-action,.case-document-open,.case-document-delete,.panel-collapse,.compact-language,.inv-library-actions button) { background:var(--panel); color:var(--accent-dark); border-color:var(--line); }
html[data-theme="dark"] :is(.mode-tab.active,.topbar .mode-tab.active,.user-menu-avatar,.assistant-avatar,.icon-submit-button,.case-document-row.selected,.case-document-row:hover) { background:#28558c; color:#fff; }
html[data-theme="dark"] :is(.mode-tab.active:hover,.topbar .mode-tab.active:hover,.icon-submit-button:hover) { background:#356da9; }
html[data-theme="dark"] :is(.workspace-activity-panel.collapsed>.panel-collapse,.workspace-source-panel.collapsed>.panel-collapse) { background:#28558c; color:#fff; }
html[data-theme="dark"] :is(.message.user,.report-chat-message.user,.preparation-message.user,.help-message,.history-kind,.history-kind.chat,.history-kind.written) { background:#26374b; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.user-menu-item,.mode-tab,.preview-case-action,.source-type-option,.case-management-subtab,.workspace-header-tab,.by-topbar nav button,.by-topbar nav a,.by-back,.by-coverage,.by-map-legend p,.by-status,.by-research-actions>span,.by-attribution,.by-finding small,.by-reader-meta,.by-reader p,.by-graph-note) { color:var(--muted); }
html[data-theme="dark"] :is(.user-menu-item:hover,.source-type-option:hover,.case-option:hover,.managed-case-option:hover,.managed-case-option:focus-visible,.history-item:hover,.ghost:hover,.by-button:hover,.by-finding[aria-current="true"],.inv-library-row.selected,.inv-relation.selected,.inv-library-actions button:hover,.inv-view-tabs button[aria-selected="true"],.workspace-header-tab.active,.case-management-subtab.active) { background:var(--soft); color:var(--accent-dark); border-color:var(--line); }
html[data-theme="dark"] :is(.case-source-group.case,.case-source-group.public,.case-source-group.restricted,.upload-drop-zone,.preview-upload-placeholder,.preview-case-menu,.preview-template-panel,.inv-narrative-sources,.by-empty,.by-shared-badge,.by-shared-notice) { background:#1b2b3d; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.ingestion-metric,.ingestion-metric.is-selected) { background:#24364b; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.ingestion-metric strong,.ingestion-filter-title,.case-document-open,.media-time-reference,.by-list-heading h2,.by-reader h2,.by-map-heading strong,.by-stats strong,.by-kicker,.by-filters label span,.by-graph-toolbar label>span,.by-research-card label>span,.inv-execution>summary,.inv-shell .inv-execution h3,.inv-narrative-sources>summary,.inv-links summary,#invExplanation h2) { color:var(--accent-dark); }
html[data-theme="dark"] :is(.ingestion-metric.has-issues,.ingestion-selection-notice,.upload-readiness.warning,.inv-notice,.inv-badge.hypothesis) { background:#3e3020; color:#f0c78e; border-color:#8b6940; }
html[data-theme="dark"] :is(.ingestion-metric.has-issues strong,.ingestion-record .ingestion-issue) { color:#f0c78e; }
html[data-theme="dark"] .ingestion-record code { color:#b7c8dc; }
html[data-theme="dark"] :is(.upload-readiness.error,.chat-source-error,.chat-attachment-status[data-error="true"],.chat-activity.error,#invStatus.inv-error) { background:#3e262d; color:#ffb6b1; border-color:#79505a; }
html[data-theme="dark"] .upload-readiness.success { background:#203a35; color:#a7ddc7; border-color:#496c62; }
html[data-theme="dark"] :is(.progress-track,.source-picker-count,.inv-case-chip,.inv-source,.inv-badge,.media-time-reference) { background:#263e59; color:var(--accent-dark); }
html[data-theme="dark"] :is(.case-document-row.selected .case-document-open,.case-document-row:hover .case-document-open,.case-document-row.selected .case-document-delete,.case-document-row:hover .case-document-delete) { background:transparent; color:#fff; }
html[data-theme="dark"] :is(.inv-detail blockquote,.report-preview,.report-reading .report-preview) { background:var(--panel); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.lt-profile-popover,#lt-profile-dialog) { background:var(--panel); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.lt-profile-popover>a,.lt-profile-popover>button,.lt-profile-popover form button,#lt-profile-dialog input,#lt-profile-dialog select,#lt-profile-dialog button) { background:var(--panel); color:var(--accent-dark); border-color:var(--line); }
html[data-theme="dark"] :is(.lt-profile-popover>a:hover,.lt-profile-popover>button:hover,#lt-profile-dialog .lt-profile-resend-target) { background:var(--soft); border-color:var(--line); }
html[data-theme="dark"] #lt-profile-dialog button[type="submit"] { background:#285b9c; color:white; }
html[data-theme="dark"] #lt-profile-dialog p { color:var(--muted); }
html[data-theme="dark"] #lt-profile-dialog [role="alert"] { color:#ffb1b8; }
html[data-theme="dark"] .by-topbar nav [aria-pressed="true"] { background:#28558c; color:#fff; }
html[data-theme="dark"] .beyond-page :is(.by-filters select,.by-graph-toolbar select) { background-color:var(--panel); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.by-map-heading,.by-finding,.by-list-heading,.by-reader,.by-graph-toolbar,.by-map-legend,.by-footer) { border-color:var(--line); }
html[data-theme="dark"] :is(.by-map-heading button,.by-reader-tabs button,.by-graph-toolbar button) { background:var(--panel); color:var(--accent-dark); border-color:var(--line); }
html[data-theme="dark"] .by-map-surface { background:#13283b; }
html[data-theme="dark"] .by-map-surface [data-country] { stroke:#304860; }
html[data-theme="dark"] .by-map-surface [data-country][aria-pressed="true"] { stroke:#b3d7ff; }
html[data-theme="dark"] .by-map-tooltip { background:#192c40; }
html[data-theme="dark"] .by-reader blockquote { background:#142337; color:var(--ink); border-color:var(--accent); }
html[data-theme="dark"] .by-finding button,html[data-theme="dark"] .by-reader a { color:var(--accent-dark); }
html[data-theme="dark"] :is(.case-document-row a,.assistant-content a,.report-preview a,.help-assistant a) { color:var(--accent-dark); }
html[data-theme="dark"] :is(.case-document-row.selected a,.case-document-row:hover a) { color:#fff; }
html[data-theme="dark"] #lt-agents-orbital { --lt-bg:#111923;--lt-panel:#192432;--lt-ink:#e5ecf5;--lt-muted:#a5b5c9;--lt-line:#35465d;--lt-soft:#21354d;--lt-accent:#a5ceff;--lt-button:#285b9c; }
html[data-theme="light"] #lt-agents-orbital { --lt-bg:#edf3fa;--lt-panel:#fff;--lt-ink:#142a44;--lt-muted:#526982;--lt-line:#d0dfed;--lt-soft:#e4effb;--lt-accent:#285fb4;--lt-button:#285daf; }
html[data-theme="dark"] .brand-wordmark-crop img { filter:invert(1) hue-rotate(180deg); }
html[data-theme="dark"] :is(.brand-tagline,.brand-division-single,.brand-division-list) { color:#bedbff; fill:#bedbff; }
html[data-theme="dark"] .topbar .brand-tagline text { fill:#bedbff; }
html[data-theme="dark"] .brand-divider { background:#50637b; }
html[data-theme="dark"] :is(.landing-page,.login-page) { background:var(--paper); color:var(--ink); }
html[data-theme="dark"] :is(.corporate-intro,.division-card,.division-card-legal,.division-status,.login-card,.visual-card) { background:var(--panel); color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] :is(.landing-lede,.landing-proof dd,.landing-steps p,.landing-trust p,.landing-video-copy p,.login-copy,.division-card p) { color:var(--muted); }
html[data-theme="dark"] :is(.landing-header,.landing-steps,.landing-trust,.landing-footer,.division-card) { border-color:var(--line); }
html[data-theme="dark"] .button-link { background:#285b9c; color:#fff; }
@media (prefers-reduced-motion:reduce) { .lt-appearance-options button { transition:none; } }
@media (max-width:760px) { .user-menu .user-menu-popover { right:0; max-width:calc(100vw - 24px); } }
