:root{--theme-bg:#f4f6fb;--theme-panel:#fff;--theme-text:#152641;--theme-muted:#526784;--theme-line:#dbe2ee}.theme-control{display:inline-flex;align-items:center;flex-shrink:0}.theme-control select{font:inherit;font-size:12px!important;border:1px solid var(--theme-line);color:var(--theme-text);background:var(--theme-panel);border-radius:9px;padding:7px;min-height:38px;max-width:105px}.support-link{font-size:12px;padding:9px;color:var(--theme-text);white-space:nowrap}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.dark{color-scheme:dark;--theme-bg:#0b1224;--theme-panel:#141e34;--theme-text:#edf2ff;--theme-muted:#b2bfd8;--theme-line:#34415c;--bg:#0b1224;--surface:#141e34;--panel:#141e34;--text:#edf2ff;--muted:#b2bfd8;--line:#34415c;--border:#34415c;--teal:#9ab5ff;--tealsoft:#27385d;--blue:#9ab5ff;--purple:#c7b0ff}
html.dark body,html.dark #main,html.dark #workspace{background:var(--theme-bg)!important;color:var(--theme-text)!important}html.dark :is(#sidebar,#header,#footer,.panel,.modal,.modal-head,.modal-foot,.modal-body,.card,.stat,.doc-card,.chat-main,.chat-context,.chat-shortcuts,.composer,.workspace-picker,.portal-header,.portal-footer,.site-header,.site-footer,.platform-card,.section-fold,.nav-group,.reference-callbacks,.reference-recent,.case-strip,.case-header,.auth-card){background:var(--theme-panel)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}
html.dark :is(h1,h2,h3,h4,strong,b,.brandname,.row-title,.cell-title,.page-top,.navlink,.reference-title,.reference-card-title){color:var(--theme-text)!important}html.dark :is(p,small,.muted,.page-note,.field label,.field-help,.row-sub,.cell-sub,.nav-group summary,.panel-head span,.table-sub,.metric-label){color:var(--theme-muted)}html.dark :is(input,select,textarea,.field input,.field textarea,.field select){background:#0d172a!important;color:var(--theme-text)!important;border-color:#506384!important}html.dark input::placeholder,html.dark textarea::placeholder{color:#a5b6d4!important}html.dark :is(.btn,button,.chip,.tabs a,.more-grid a,.flow-step){background:#253451;color:#edf2ff;border-color:#445777}html.dark :is(.btn.primary,.primary,.send){background:#4269e7!important;color:#fff!important;border-color:#6d8eff!important}html.dark :is(.btn.soft,.badge.green,.badge.purple){background:#392b5c!important;color:#e1d3ff!important}html.dark :is(.navlink.active,.tabs a.active,.row:hover,th,.document-preview,.content-body,.panel-head,.chat-shortcuts button,.reference-callback:hover,.more-actions[open],.actions-menu,.portal-stages span){background:#202e4a!important;color:#edf2ff!important;border-color:#34415c!important}html.dark :is(.reference-hero){background:linear-gradient(125deg,#142340,#293c79 75%,#44356f)!important}html.dark :is(.reference-hero h1,.reference-hero p,.reference-hero label){color:#f4f6ff!important}html.dark :is(.reference-ask,.reference-composer){background:#192d51!important}html.dark a{color:#abc1ff}html.dark :is(.row,.panel-head,.modal-head,.modal-foot,td,th,hr,.divider){border-color:#34415c!important}html.dark .badge{background:#263759;color:#c8d7ff}html.dark .badge.red,html.dark .badge.orange{background:#512c35;color:#ffd2c3}html.dark .badge.blue{background:#263a65;color:#c7d8ff}html.dark .reference-avatar{background:#34346a;color:#ddd8ff}html.dark .reference-icon-btn{background:#293959;color:#eef3ff}html.dark .theme-control select{background:#141e34!important}html.dark .original-frame{background:white}html.dark [style*="background: white"],html.dark [style*="background:white"],html.dark [style*="background:#fff"]{background:var(--theme-panel)!important;color:var(--theme-text)!important}
@media(max-width:700px){#header{gap:6px!important}.theme-control select{max-width:76px;font-size:11px!important;padding:5px;min-height:40px}#header .support-link{padding:7px 3px;font-size:11px}.portal-header{gap:7px!important;padding:10px!important}.portal-header b{font-size:13px}.portal-header .theme-control select{max-width:72px}#header .header-right{gap:4px!important}}@media print{.theme-control,.support-link{display:none!important}html.dark body{background:white!important;color:black!important}}
html.dark .button{background:#263654;color:#edf2ff;border-color:#495d81}html.dark .button.primary{background:#4269e7;color:white;border-color:#6d8eff}html.dark :is(.reference-empty,.section-title span,.recent-row small,.count-pill,.callback-row p){color:#b8c7e2!important}html.dark .count-pill{background:#343653!important}
html.dark :is(.insight,.calendar-grid,.calday,.source-card,.client-banner){background:#141e34!important;color:#edf2ff!important;border-color:#34415c!important}html.dark .calday.outside{background:#10192b!important;color:#92a4c5!important}html.dark .calday.today{background:#24375c!important}html.dark :is(td,.calday .date,.insight p,.source-card p,.client-meta,.client-banner p){color:#bac9e2!important}
@media(max-width:700px){#header .searchbox,#header [data-action="approvals"],#header>.support-link{display:none!important}#header .header-actions{gap:0!important;margin-left:auto}#header>.theme-control{margin-left:4px}#header .mobile-logo{font-size:12px;min-width:0;flex-shrink:1}#header .mobile-logo img{width:26px;height:28px}.portal-header b{min-width:0;font-size:12px}.portal-header>img{width:27px!important}.portal-header>.support-link{display:none}.portal-header #portal-logout{font-size:11px;padding:7px!important;min-width:0}}
html.dark :is(.intake-head,.intake-sections,.question-card,.repeat-item,.intake-fact,.flag-card,.question-nav){background:#141e34!important;color:#edf2ff!important;border-color:#34415c!important}html.dark :is(.intake-info,.intake-sections .num,.choice-list label:has(input:checked)){background:#273656!important;color:#d7e3ff!important;border-color:#4d6590!important}html.dark :is(.question-help,.intake-fact p,.choice-list small,.intake-footer,.intake-title p){color:#b6c7e0!important}html.dark .intake-tabs button.active{background:#4269e7!important;color:white!important}
@media(max-width:500px){.intake-head{padding:10px!important;gap:8px!important}.intake-head strong{display:none}.intake-head img{width:27px!important}.intake-head a{font-size:12px}.intake-head .theme-control{margin-left:auto}}
html.dark .intake-tabs{background:#0b1224!important;scrollbar-color:#536486 #0b1224;scrollbar-width:thin}html.dark .intake-progress{background:#34415c!important}html.dark .intake-progress i{background:#809aff!important}html.dark .intake-sample{color:#d8bd80!important}

/* Compact, accessible global appearance and support actions. */
.theme-icon,.utility-icon,.support-link{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:9px!important;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--theme-text);cursor:pointer;text-decoration:none}.theme-icon svg,.utility-icon svg,.support-link svg{width:21px;height:21px}.theme-icon:hover,.utility-icon:hover,.support-link:hover{background:var(--theme-bg);border-color:var(--theme-line)}.theme-icon:focus-visible,.utility-icon:focus-visible{outline:2px solid #2F6FB5;outline-offset:2px}.portal-header .theme-icon{margin-left:auto}.portal-header .support-link{color:inherit!important}@media(max-width:700px){.portal-header .theme-icon,.portal-header .support-link{flex-basis:36px;width:36px;height:40px;padding:7px!important}}
