/* VisuoSight v122.0.23.2 — clinician chrome only. Do NOT theme clinical
 * optotypes, canvas/svg testing stages, calibrated red/blue/green channels,
 * RDS stimuli or printable reports. All dark rules are SCREEN ONLY.
 */
.vt-theme-control{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;z-index:82;font-family:Inter,system-ui,sans-serif;}
.vt-theme-control .vt-theme-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;min-width:86px;padding:7px 11px;border:1px solid #cbd8e7;border-radius:10px;background:#fff;color:#334c6b;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer;box-shadow:0 1px 4px rgba(20,40,70,.06);}
.vt-theme-control .vt-theme-glyph{font-size:18px;line-height:1;}
.vt-theme-control .vt-theme-trigger:hover{border-color:#87a9d2;}
.vt-theme-control .vt-theme-trigger:focus-visible,.vt-theme-control .vt-theme-choice:focus-visible{outline:3px solid #83b7f7;outline-offset:2px;}
.vt-theme-control .vt-theme-menu{position:absolute;top:calc(100% + 7px);right:0;z-index:1005;min-width:154px;display:grid;gap:3px;padding:6px;border:1px solid #c5d7ea;border-radius:12px;background:#fff;box-shadow:0 18px 40px rgba(14,32,55,.2);}
.vt-theme-control .vt-theme-menu[hidden]{display:none!important;}
.vt-theme-control .vt-theme-choice{background:transparent;color:#26445f;border:0;border-radius:8px;min-height:40px;text-align:left;padding:8px 11px;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer;}
.vt-theme-control .vt-theme-choice:hover,.vt-theme-control .vt-theme-choice.selected{background:#e8f1fe;color:#1e4c81;}
.vt-theme-control .vt-theme-choice.selected:before{content:'✓';padding-right:9px;}
/* Keep the appearance menu above the sticky patient-navigation strip,
 * without changing modal overlays (which use their own higher layers). */
body.doctor-dashboard-v119 :is(
  .vt-topbar,.evaluation-topbar,.dh-topbar,.qot-topbar,.pw-topbar,.security-topbar
){z-index:95!important;}
.tf-head{position:relative;z-index:95;}
@media(max-width:740px){
  .vt-theme-control .vt-theme-trigger{min-width:42px;padding:7px 9px;min-height:42px;}
  .vt-theme-control .vt-theme-trigger-label{display:none;}
  .vt-theme-control .vt-theme-menu{min-width:142px;}
}
@media screen{
html[data-vt-theme="dark"]{background:#0e1725;color-scheme:dark;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119{
  --doctor-bg:#0f1929;--doctor-surface:#17263a;--doctor-surface-soft:#1d2d43;
  --doctor-text:#eaf1fc;--doctor-muted:#b5c6db;--doctor-line:#30465f;
  --doctor-blue-soft:#243b5b;--doctor-blue:#7fb4ff;--doctor-blue-dark:#a2c8ff;
  --vt-bg:#0f1929;--vt-panel:#17263a;--vt-panel-soft:#1d2d43;
  --vt-text:#eaf1fc;--vt-text-soft:#d2e1f4;--vt-muted:#acbfd6;
  --vt-muted-light:#96aac6;--vt-line:#344961;--vt-line-strong:#3d5672;--vt-primary-soft:#263f60;
  --v120-bg:#0f1929;--v120-panel:#18283d;--v120-ink:#eaf1fc;
  --v120-muted:#b3c5db;--v120-soft:#1d2e45;--v120-border:#30465f;
  --v120-navy:#eaf1fc;--v120-navy-2:#e6f0ff;--v120-blue-soft:#254060;
  --dh-bg:#101a2b;--dh-ink:#eaf1fc;--dh-muted:#b2c4d8;--dh-line:#334b66;
  --qot-bg:#101a2b;--qot-surface:#17263a;--qot-text:#eaf1fc;
  --qot-muted:#b2c4d8;--qot-line:#344b65;--qot-blue-soft:#264260;
  --pw-navy:#eaf1fc;--pw-text:#e8f0fb;--pw-muted:#b2c4d8;
  --pw-line:#344b65;--pw-soft:#1b2d45;--pw-blue-soft:#263f60;
  --pw-green-soft:#143f35;--pw-amber-soft:#3e3220;--pw-red-soft:#452b36;
  --security-ink:#e8f0fb;--security-muted:#b3c4d8;
  --security-line:#334a64;--security-soft:#1a2b42;--security-blue-soft:#263d60;
  background:#0f1929!important;color:#eaf1fc!important;
}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(.vt-app,.vt-main,.evaluation-app,.evaluation-v120-main-shell,.evaluation-main,.dh-main,.qot-main,.pw-main,.security-main){
  background-color:#0f1929!important;color:#eaf1fc;
}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .vt-topbar,.evaluation-topbar,.dh-topbar,.qot-topbar,.pw-topbar,.security-topbar,
 .clinical-topnav,.v120-patient-context,.pw-section-nav,.qot-view-switch,.qot-toolbar
){background:#162438!important;border-color:#30465f!important;color:#eaf1fc!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .vt-panel,.vt-card,.vt-table-wrap,.vt-stat-card,.vt-content-card,.vt-workspace-panel,
 .doctor-panel,.doctor-card,.doctor-stat-card,.doctor-dashboard-card,
 .evaluation-panel,.evaluation-card,.v120-profile-panel,.v120-evaluation-rail,
 .v120-rail-section,.v120-evaluation-main,.evaluation-form,.evaluation-section,
 .dh-context-card,.dh-test-card,.dh-patient-summary,.dh-field,
 .qot-content,.qot-workspace-shell,.qot-category-rail-panel,.qot-engine-workspace,
 .qot-engine-card,.qot-therapy-card,.qot-patient-command,.qot-session-settings,.qot-launch-panel,
 .qot-workspace-intro,.qot-workspace-tablist,.qot-visit,.qot-advanced-settings,
 .pw-patient-hero,.pw-metric-card,.pw-card,.pw-feature-card,.pw-home-card,
 .pw-progress-card,.pw-record-card,.pw-next-actions,.pw-action-tile,.pw-section,
 .security-section,.security-summary,.security-dialog,.security-item,
 #quickOfficeProgressDashboard,#quickOfficeClinicalGoals,#quickOfficeClinicalProgression,
 #quickOfficeVisitRecords,#quickOfficeVisitRunner,#quickOfficeProtocolLibrary
){background:#18283d!important;background-image:none!important;border-color:#30465f!important;color:#eaf1fc!important;box-shadow:none!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .qot-progress-summary-tile,.qot-progress-series,.qot-progress-table-wrap,
 .vt-cp-card,.vt-cp-value,.vt-cp-prior,.vt-cpp-current,
 #quickOfficeProgressionHandoff,.qot-goal-card,.qot-goal-create,.qot-goal-value,
 .qot-setup-summary,.qot-summary-card,.qot-visit-card,
 .pw-activity-row,.pw-record-top,.pw-home-status-block,
 .security-item.is-current,.security-notice,.v120-context-action
){background:#1e3049!important;border-color:#38516d!important;color:#eaf1fc!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .vt-main,.evaluation-main,.dh-main,.qot-main,.pw-main,.security-main,
 #quickOfficeProgressDashboard,#quickOfficeClinicalGoals,#quickOfficeClinicalProgression,
 .vt-panel,.evaluation-panel,.dh-context-card,.dh-test-card,.qot-visit,.pw-card,.pw-section,.security-section
) :is(h1,h2,h3,h4,h5,h6,strong){
  color:#edf4ff;
}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .vt-topbar,.evaluation-topbar,.dh-topbar,.qot-topbar,.pw-topbar,.security-topbar,
 .vt-panel,.evaluation-panel,.dh-context-card,.dh-test-card,.qot-content,
 .qot-visit,.qot-session-settings,.pw-card,.pw-section,.security-section,
 #quickOfficeProgressDashboard,#quickOfficeClinicalGoals,#quickOfficeClinicalProgression
) :is(p,small,em,label,summary,th,td,dt,dd){
  color:#c3d2e6;
}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .vt-topbar,.evaluation-topbar,.dh-topbar,.qot-topbar,.pw-topbar,.security-topbar,
 .vt-panel,.evaluation-panel,.dh-context-card,.dh-test-card,.qot-content,
 .qot-visit,.qot-session-settings,.pw-card,.pw-section,.security-section,
 #quickOfficeProgressDashboard,#quickOfficeClinicalGoals,#quickOfficeClinicalProgression
) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){
  background:#112035!important;border:1px solid #47617e!important;color:#eff5ff!important;
}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(input,textarea)::placeholder{color:#a2b5cc;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .v120-evaluation-tabs button,.v120-evaluation-rail button,.qot-workspace-tab,
 .qot-view-tab,.pw-section-nav a,.dh-ghost-button,.pw-ghost-button,
 .qot-dashboard-button,.qot-settings-reset,.qot-progress-button,
 .qot-goal-button,.vt-cp-button,.vt-cpp-button,.security-button-quiet,
 .security-icon-button,.vt-btn-secondary
){background:#223750!important;border-color:#48627d!important;color:#e5f0ff!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .v120-evaluation-tabs button.active,.qot-workspace-tab[aria-selected="true"],
 .qot-view-tab[aria-selected="true"],.pw-section-nav a.active
){background:#25466c!important;color:#fff!important;border-color:#6196c8!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .qot-advanced-group-title,.qot-section-head,.pw-section-head,.dh-section-head,
 .security-section-header,.qot-progress-table th,.qot-visit-table th
){border-color:#354d66!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 table{border-color:#36506c;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(th,td){border-color:#354d66;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(.qot-progress-table th,.security-list th){background:#20334b!important;color:#dceafa!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(.qot-progress-table td,.security-list td){background:#17273b!important;color:#dae7f9!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 .vt-theme-control :is(.vt-theme-trigger,.vt-theme-menu){
  background:#233750!important;border-color:#4a6887!important;color:#e9f3ff!important;
}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 .vt-theme-choice{color:#d9e8fc!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 .vt-theme-choice:is(:hover,.selected){background:#355579!important;color:#fff!important;}
html[data-vt-theme="dark"] body.doctor-dashboard-v119 :is(
 .qot-launch-panel,.qot-overlay,.tp-modal,.vt-modal,.evaluation-modal
) :is(input,select,textarea){color-scheme:dark;}
/* Sidebar intentionally remains its native dark navy, including clinical navigation.
 * Do not touch .vt-chart, .optotype, canvas, svg, test targets, RDS stages or
 * anaglyph colors. Color fields and clinician calibration remain native. */
}
@media print{
  .vt-theme-control{display:none!important;}
}

/* Security 2FA account page: QR remains on its native white calibration-safe tile. */
@media screen{
  html[data-vt-theme="dark"] body:has(.tf-main){background:#0f1929!important;color:#eaf1fc;}
  html[data-vt-theme="dark"] :is(.tf-card,.tf-code,.tf-recovery code){background:#18283d!important;color:#eaf1fc!important;border-color:#344b65!important;}
  html[data-vt-theme="dark"] :is(.tf-main h1,.tf-main h2,.tf-main strong){color:#eaf1fc;}
  html[data-vt-theme="dark"] .tf-main .tf-muted{color:#b6c8db;}
  html[data-vt-theme="dark"] .tf-main input{background:#112035!important;color:#f1f6ff!important;border-color:#4b6380!important;}
  html[data-vt-theme="dark"] .tf-qr-card{background:#fff!important;color:#253b55!important;border-color:#99afc7!important;}
  html[data-vt-theme="dark"] .tf-qr-card :is(p,strong){color:#253b55!important;}
  html[data-vt-theme="dark"] .tf-qr{background:#fff!important;}
}
