/* i442: production theme readability + form readiness indicators. Loaded last. */
:root{
  --med-required:#ff4d6d;
  --med-info:#67e8f9;
  --med-field-ring:0 0 0 4px color-mix(in srgb,var(--med-brand) 24%,transparent);
  --med-row-surface:color-mix(in srgb,var(--med-surface) 86%,var(--med-soft-surface));
  --med-row-surface-hover:color-mix(in srgb,var(--med-brand-soft) 40%,var(--med-surface));
}
html[data-theme="northern-lights"]{
  --med-bg:#050b16;
  --med-bg-2:#081426;
  --med-surface:#0f1d31;
  --med-surface-soft:#13243a;
  --med-soft-surface:#0b1729;
  --med-input-bg:#081426;
  --med-text:#f3fbff;
  --med-text-strong:#ffffff;
  --med-muted:#c2d6e7;
  --med-text-muted:#c2d6e7;
  --med-border:#294762;
  --med-brand:#67f4d6;
  --med-brand-2:#9b8cff;
  --med-brand-soft:rgba(103,244,214,.15);
  --med-on-brand:#031019;
  --med-required:#ff5f7e;
  --med-info:#8be9ff;
  --med-row-surface:#14263d;
  --med-row-surface-hover:#193451;
  --med-shadow-soft:0 12px 34px rgba(0,0,0,.28);
  --med-shadow-3d:0 22px 60px rgba(0,0,0,.34);
}
html[data-theme="clinical-midnight"],html[data-theme="aurora-night"],html[data-theme="ocean-surgical"],html[data-theme="ocean-depth"],html[data-theme="graphite-gold"]{
  --med-row-surface:color-mix(in srgb,var(--med-surface) 86%,#020617);
  --med-row-surface-hover:color-mix(in srgb,var(--med-brand-soft) 48%,var(--med-surface));
}
html[data-theme="northern-lights"] body.med-app-body{
  background:
    radial-gradient(circle at 14% -5%,rgba(103,244,214,.20),transparent 30%),
    radial-gradient(circle at 86% 0%,rgba(155,140,255,.23),transparent 33%),
    radial-gradient(circle at 52% 102%,rgba(56,189,248,.10),transparent 38%),
    linear-gradient(135deg,#050b16,#081426 52%,#070b18)!important;
}
html[data-theme="northern-lights"] .med-sidebar,
html[data-theme="northern-lights"] .med-topbar{
  background:linear-gradient(180deg,rgba(7,15,28,.96),rgba(11,23,41,.94))!important;
  border-color:rgba(103,244,214,.20)!important;
}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-card,.med-card,.med-panel,.med-3d-card,.med-depth-panel,[class*="-card"],[class*="-panel"],[class*="-metric"],[class*="-tile"]),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-card,.med-card,.med-panel,.med-3d-card,.med-depth-panel,[class*="-card"],[class*="-panel"],[class*="-metric"],[class*="-tile"]),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-card,.med-card,.med-panel,.med-3d-card,.med-depth-panel,[class*="-card"],[class*="-panel"],[class*="-metric"],[class*="-tile"]),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-card,.med-card,.med-panel,.med-3d-card,.med-depth-panel,[class*="-card"],[class*="-panel"],[class*="-metric"],[class*="-tile"]),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-card,.med-card,.med-panel,.med-3d-card,.med-depth-panel,[class*="-card"],[class*="-panel"],[class*="-metric"],[class*="-tile"]){
  background:linear-gradient(145deg,var(--med-surface),var(--med-surface-soft))!important;
  color:var(--med-text)!important;
  border-color:var(--med-border)!important;
  box-shadow:var(--med-shadow-soft)!important;
}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-table,.med-table,.med-eops-table,[class*="-table"]),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-table,.med-table,.med-eops-table,[class*="-table"]),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-table,.med-table,.med-eops-table,[class*="-table"]),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-table,.med-table,.med-eops-table,[class*="-table"]),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-table,.med-table,.med-eops-table,[class*="-table"]){
  background:transparent!important;color:var(--med-text)!important;
}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-table th,.med-table th,.med-eops-table th,[class*="-table"] th),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-table th,.med-table th,.med-eops-table th,[class*="-table"] th),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-table th,.med-table th,.med-eops-table th,[class*="-table"] th),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-table th,.med-table th,.med-eops-table th,[class*="-table"] th),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-table th,.med-table th,.med-eops-table th,[class*="-table"] th){
  background:color-mix(in srgb,var(--med-soft-surface) 86%,transparent)!important;
  color:var(--med-muted)!important;
  border-color:var(--med-border)!important;
}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-table td,.med-table td,.med-eops-table td,[class*="-table"] td),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-table td,.med-table td,.med-eops-table td,[class*="-table"] td),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-table td,.med-table td,.med-eops-table td,[class*="-table"] td),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-table td,.med-table td,.med-eops-table td,[class*="-table"] td),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-table td,.med-table td,.med-eops-table td,[class*="-table"] td){
  background:var(--med-row-surface)!important;
  color:var(--med-text)!important;
  border-color:color-mix(in srgb,var(--med-border) 80%,transparent)!important;
}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-table tr:hover td,.med-table tr:hover td,.med-eops-table tr:hover td),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-table tr:hover td,.med-table tr:hover td,.med-eops-table tr:hover td),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-table tr:hover td,.med-table tr:hover td,.med-eops-table tr:hover td),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-table tr:hover td,.med-table tr:hover td,.med-eops-table tr:hover td),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-table tr:hover td,.med-table tr:hover td,.med-eops-table tr:hover td){background:var(--med-row-surface-hover)!important;}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-table strong,.med-table strong,.med-eops-table strong,[class*="-table"] strong),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-table strong,.med-table strong,.med-eops-table strong,[class*="-table"] strong),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-table strong,.med-table strong,.med-eops-table strong,[class*="-table"] strong),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-table strong,.med-table strong,.med-eops-table strong,[class*="-table"] strong),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-table strong,.med-table strong,.med-eops-table strong,[class*="-table"] strong){color:var(--med-text-strong)!important;}
html[data-theme="northern-lights"] .med-route-host :where(.med-support-table small,.med-table small,.med-eops-table small,[class*="-table"] small),
html[data-theme="clinical-midnight"] .med-route-host :where(.med-support-table small,.med-table small,.med-eops-table small,[class*="-table"] small),
html[data-theme="aurora-night"] .med-route-host :where(.med-support-table small,.med-table small,.med-eops-table small,[class*="-table"] small),
html[data-theme="ocean-surgical"] .med-route-host :where(.med-support-table small,.med-table small,.med-eops-table small,[class*="-table"] small),
html[data-theme="graphite-gold"] .med-route-host :where(.med-support-table small,.med-table small,.med-eops-table small,[class*="-table"] small){color:var(--med-muted)!important;}
.med-route-host :where(input,select,textarea),.med-modal :where(input,select,textarea),.med-drawer :where(input,select,textarea){
  background:var(--med-input-bg)!important;
  color:var(--med-text)!important;
  border-color:var(--med-border)!important;
}
.med-route-host :where(input,select,textarea):focus,.med-modal :where(input,select,textarea):focus,.med-drawer :where(input,select,textarea):focus{
  border-color:var(--med-brand)!important;box-shadow:var(--med-field-ring)!important;outline:0!important;
}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.med-form-readiness-note{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:9px 11px;border:1px solid color-mix(in srgb,var(--med-brand) 28%,var(--med-border));border-radius:13px;background:color-mix(in srgb,var(--med-brand-soft) 68%,transparent);color:var(--med-text)!important;font-size:12px;font-weight:850;line-height:1.35;}
.med-field-label-row,.med-field>label,.med-modal-field>span,.med-route-host form label>span:first-child,.med-login-body .med-field label{display:inline-flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;color:var(--med-text-strong)!important;font-weight:950!important;line-height:1.25!important;}
.med-required-star{color:var(--med-required)!important;font-weight:950!important;font-size:1.15em!important;line-height:1!important;margin-left:1px;text-shadow:0 0 10px color-mix(in srgb,var(--med-required) 45%,transparent);}
.med-field-info{display:inline-grid!important;place-items:center!important;width:16px!important;height:16px!important;border-radius:999px!important;border:1px solid color-mix(in srgb,var(--med-info) 58%,var(--med-border))!important;background:color-mix(in srgb,var(--med-info) 14%,transparent)!important;color:var(--med-info)!important;font-size:10px!important;font-weight:950!important;font-style:normal!important;line-height:1!important;cursor:help!important;position:relative!important;}
.med-field-info:hover,.med-field-info:focus{background:color-mix(in srgb,var(--med-info) 22%,transparent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--med-info) 18%,transparent)!important;outline:0!important;}
.med-field-info[data-tip]:hover::after,.med-field-info[data-tip]:focus::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);z-index:160;min-width:210px;max-width:320px;padding:9px 10px;border-radius:12px;border:1px solid var(--med-border);background:var(--med-surface);color:var(--med-text);box-shadow:var(--med-shadow-3d);font-size:11px;font-weight:800;line-height:1.35;text-transform:none;letter-spacing:0;text-align:left;}
.med-field-info[data-tip]:hover::before,.med-field-info[data-tip]:focus::before{content:"";position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%) rotate(45deg);z-index:161;width:9px;height:9px;background:var(--med-surface);border-right:1px solid var(--med-border);border-bottom:1px solid var(--med-border);}
.med-field-error,.med-route-host .med-field-error,.med-modal .med-field-error,.med-drawer .med-field-error{color:var(--med-required)!important;font-weight:900!important;min-height:15px!important;}
[aria-invalid="true"]{border-color:var(--med-required)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--med-required) 18%,transparent)!important;}
.med-field:has([required]),.med-modal-field:has([required]),form label:has([required]){position:relative;}
body.med-login-body .med-field-info{--med-info:#8be9ff;}
body.med-login-body .med-required-star{--med-required:#ff6b80;}
body.med-login-body .med-field-info[data-tip]:hover::after,body.med-login-body .med-field-info[data-tip]:focus::after{background:#101d33;color:#edf8ff;border-color:rgba(139,255,220,.22);}
@media(max-width:720px){.med-field-info[data-tip]:hover::after,.med-field-info[data-tip]:focus::after{left:auto;right:0;transform:none;min-width:190px;}.med-form-readiness-note{align-items:flex-start;}}
