/* ATLAS DESIGN SYSTEM 4.1 | Adaptation of supplied Avigrupo Web Design System
   Color direction: navy, cobalt, slate, graphite. Original event data never modified.
   This file intentionally layers over app.css; legacy layout and behavior retained. */
:root {
  --navy95:#050914;--navy9:#091326;--navy8:#112447;--navy7:#1B3972;
  --navy6:#2452AE;--blue-ink:#1D3973;--blue-strong:#2459D3;
  --electric:#3C7BEE;--ice:#86B9FF;--graphite:#111827;
  --steel:#62748D;--steel-mid:#8394AC;--hair:#DCE4F0;
  --atlas-blue-50:#EEF4FF;--atlas-blue-100:#DFEAFB;
  --atlas-blue-200:#C7D9F4;--atlas-blue-600:#2B5EC4;
  --ink:#13213B;--ink-2:#374865;--muted:#687890;
  --line:#DCE4F0;--line-2:#E9EFF7;--bg:#F3F6FB;
  --surface:#FFF;--nav:#091326;--nav-d:#060D1C;
  --accent:#2C62CC;--cyan:#5794E8;--blue:#285BC0;
  --positive:#356BBA;--warning:#64789A;--red:#405377;
  --radius:14px;--sidew:258px;
  --sh-xs:0 1px 2px rgba(12,25,50,.035);
  --sh-sm:0 2px 8px rgba(16,32,61,.065);
  --sh-md:0 12px 28px -13px rgba(12,30,61,.20),0 3px 9px rgba(12,30,61,.04);
  --focus-ring:0 0 0 3px rgba(48,105,218,.22);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
* { scrollbar-color:#BCCAE0 transparent; }
body { background:radial-gradient(850px 380px at 90% -7%,rgba(63,104,194,.075),transparent 75%),#F3F6FB; color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; font-variant-numeric:tabular-nums; }
::selection { background:#C7D9FF;color:#0A1B43; }
button,input,select,textarea {font-family:inherit;}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #4C88E9;outline-offset:2px; }
:focus:not(:focus-visible){outline:none;}

/* Typography + spacing, inspired by supplied heading/type scale */
.page-overline,.eyebrow,.mini-eyebrow,.nav-section-label,.breadcrumb,.login-overline,.f56-panel-head .eyebrow { letter-spacing:.145em;font-weight:800;color:#4D70A7; }
.page-overline { font-size:10px;margin-bottom:14px;}
.page-heading { margin-bottom:23px; }
.page-heading h1 { color:#0C1B35;font-size:clamp(27px,2.35vw,35px);font-weight:820;letter-spacing:-.038em; }
.page-heading p { font-size:12.5px;color:#687C98; }
.heading-dot{color:#366DE0;}
.panel-heading h3,.f56-panel-head h3,.intel-panel-title h3{color:#102448;font-weight:785;letter-spacing:-.022em;}
.panel-heading p,.f56-panel-head p {color:#8797AB;}

/* Permanent shell: dark top navigation + graphite left sidebar */
.sidebar {background:linear-gradient(170deg,#091324 0%,#0B172B 45%,#080F1E 100%);box-shadow:5px 0 22px rgba(5,13,31,.08);border-right:1px solid #1C2B43;}
.side-head{padding-top:25px;padding-bottom:23px;}
.brandrow .mark,.login-brand .mark {background:linear-gradient(135deg,#22488F,#4185E6);color:#F8FBFF;border:1px solid #4A79C1;box-shadow:0 5px 16px rgba(37,91,177,.25);}
.brandrow strong{font-size:20px;letter-spacing:.04em;color:#fff;}
.brandrow small{color:#8195B4;letter-spacing:.12em;font-size:8.5px;}
.sidebar-session {background:#111F37;border:1px solid #253753;border-radius:11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);}
.sidebar-session b{color:#E7EEFC;}.sidebar-session span{color:#8799B4;}
.dot-pulse{background:#6C9EE6;box-shadow:0 0 0 4px rgba(74,139,236,.16);}
.nav-section-label{color:#6C7F9E;font-size:9px;}
.nav-divider{background:#25334C;}
.nav-link{border-radius:9px;color:#9FAFC6;font-size:11.5px;font-weight:665;transition:background .16s,color .16s,box-shadow .16s;}
.nav-link:hover{background:rgba(75,123,192,.14);color:#fff;}
.nav-link.active{background:linear-gradient(90deg,#1A3766,#193055);color:#F5F9FF;box-shadow:inset 0 0 0 1px rgba(121,168,241,.12);}
.nav-link.active:before{background:#6EA9FF;}.nav-link.active .icon{color:#94BFFF;}
.nav-number{background:#203450;color:#B5CCEF;border:1px solid #324668;}
.sidebar-user{border-top:1px solid #26354F;padding-top:16px;}
.avatar{background:#193961;color:#D5E8FF;border-color:#335B8C;}
.sidebar-user strong{color:#F2F6FE;}
.sidebar-user small{color:#899CB7;}
.topbar{background:#101B30;border-bottom:1px solid #1E304B;box-shadow:0 7px 23px rgba(13,27,48,.07);height:70px;}
.breadcrumb{color:#8EA2BE;}.topbar-left>#crumbCurrent{color:#F1F6FF;font-weight:690;}
.topbar-left>.icon{color:#7893B9;}
.topbar-separator{background:#32435C;}
.global-search{background:#1A2940;color:#ABC0DB;border:1px solid #30435F;min-width:285px;border-radius:10px;}
.global-search input{color:#F2F7FF;}.global-search input::placeholder{color:#9FB0CB;}
.global-search kbd{background:#253957;color:#C3D5EA;border-color:#405776;}
.topbar-secure{color:#A0BFE9;}.topbar-secure .icon{color:#81B4F4;}
.avatar-sm{background:#233E64;color:#D7E9FF;border-color:#395B81;}
.workspace{padding-top:30px;}
.footer{background:#F7F9FD;border-color:#DFE6F2;color:#73849E;}
.footer-dot{color:#376BCF;}

/* Components: geometry, outlines, visually clear grouping */
.panel,.kpi-card,.f56-kpi,.intel-stat,.quality-tile,.review-kpi,.pipeline-stat,.pipeline-kpi,.pipeline-panel {background:#fff;border:1px solid #DFE7F3;border-radius:15px;box-shadow:var(--sh-sm);}
.panel,.f56-panel{box-shadow:var(--sh-sm);}
.panel-heading,.f56-panel-head{border-bottom-color:#E9EFF8;}
.kpi-card,.f56-kpi,.intel-stat,.quality-tile,.review-kpi{position:relative;overflow:hidden;transition:box-shadow .18s,border-color .18s,transform .18s;}
.kpi-card:hover,.f56-kpi:hover,.intel-stat:hover,.quality-tile:hover,.review-kpi:hover{border-color:#BDD1F2;box-shadow:var(--sh-md);transform:translateY(-1px);}
.kpi-card:before,.f56-kpi:before,.intel-stat:before,.quality-tile:before,.review-kpi:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#182D58,#326ACA 65%,#8AB5F3);}
.kpi-top span,.f56-kpi>span,.intel-stat span,.review-kpi span{color:#5F769A;font-weight:770;letter-spacing:.045em;}
.kpi-value,.f56-kpi strong,.intel-stat strong,.review-kpi strong,.quality-tile b{color:#0C2041;letter-spacing:-.045em;font-weight:835;}
.kpi-foot,.f56-kpi small,.intel-stat small,.review-kpi small{color:#8091AA;}
.kpi-icon{background:#EAF1FF;color:#3166CC;border:1px solid #D7E5FB;}
.kpi-icon.green,.kpi-icon.purple,.kpi-icon.orange{background:#EAF1FF;color:#315FB7;border-color:#D9E5F7;}
.kpi-accent {background:linear-gradient(90deg,#224EAA,#6EABF5);}

.btn,.view-btn,.page-current,.icon-button {transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s,color .15s;}
.btn{border-radius:11px;font-weight:740;font-size:12px;letter-spacing:.005em;}
.btn-primary,.btn-dark{background:linear-gradient(125deg,#11244A,#244D9A);color:#fff;box-shadow:0 8px 18px -8px rgba(17,48,105,.5),inset 0 1px 0 rgba(255,255,255,.1);}
.btn-primary:hover,.btn-dark:hover{background:linear-gradient(125deg,#183E85,#3267C8);box-shadow:0 10px 22px -7px rgba(20,63,133,.40);}
.btn-outline{background:#fff;border:1px solid #CFDCEE;color:#21447C;box-shadow:var(--sh-xs);}
.btn-outline:hover{background:#EDF4FF;border-color:#8DADE0;color:#153F89;}
.btn:focus-visible,.view-btn:focus-visible,.icon-button:focus-visible{box-shadow:var(--focus-ring);}
.icon-button{border-radius:10px;}
.view-btn{background:#F1F5FD;border:1px solid #DDE7F6;color:#2F5FA8;border-radius:8px;font-weight:720;}
.view-btn:hover{background:#E7F0FF;border-color:#AFC7ED;color:#163D82;}
.text-link,.inline-link{color:#255BB9;font-weight:730;}
.dataset-pill{background:#EBF2FF;color:#2859A5;border:1px solid #D1E1FB;}
.dataset-pill .status-dot{background:#4C83DA;}

/* Forms, focus, data controls */
input,select,textarea{accent-color:#285FCE;}
input[type="date"],input[type="month"],input[type="text"],input[type="search"],input[type="password"],input[type="email"],select,textarea{color:#203953;}
input:focus,select:focus,textarea:focus{border-color:#6D9FEA;box-shadow:var(--focus-ring);}
.filters-grid input,.filters-grid select,.f56-controls input,.f56-controls select,.f56-form input,.f56-form select,.f56-form textarea,.intel-controls input,.intel-controls select,.intel-hyp-form input,.intel-hyp-form select,.intel-hyp-form textarea,.pipeline-search input,.pipeline-search select,.pw-form input,.pw-form select{background:#F9FBFE;border:1px solid #CFDAEA;border-radius:10px;color:#213958;min-height:39px;box-shadow:var(--sh-xs);}
.filters-grid input:focus,.filters-grid select:focus,.f56-controls input:focus,.f56-controls select:focus,.f56-form input:focus,.f56-form select:focus,.f56-form textarea:focus,.intel-controls input:focus,.intel-controls select:focus,.intel-hyp-form input:focus,.intel-hyp-form select:focus,.intel-hyp-form textarea:focus,.pipeline-search input:focus,.pipeline-search select:focus{border-color:#76A3E8;outline:2px solid #3D7BDC20;}
.filters-grid label,.f56-controls label,.f56-form label,.intel-controls label,.intel-hyp-form label{color:#5C7495;font-weight:740;}
.filter-panel,.intel-controls,.f56-inlineform,.filter-bottom{background:#F9FBFE;border-color:#E0E8F4;}
.filter-bottom{border-top-color:#E5EDF8;}
.check-row{color:#556C88;}

/* Tables, pagination, detail drawers */
.table-wrap,.intel-anomaly-table{border-radius:0 0 14px 14px;}
.atlas-table{font-size:12px;}
.atlas-table th,.atlas-table thead th{background:#ECF2FD;color:#294F8D;border-bottom:1px solid #CFDDEF;font-size:10px;letter-spacing:.095em;font-weight:800;}
.atlas-table td{border-color:#E8EEF7;color:#304764;}
.atlas-table tbody tr:nth-child(even){background:#FBFCFE;}
.atlas-table tbody tr:hover{background:#EFF5FF;}
.atlas-table tbody tr:hover td{background:transparent;}
.table-headline{border-color:#E8EDF6;}
.table-headline strong{color:#122849;}
.time-badge,.id-mono,.source-file,.geo-item span,.manifest-row strong,.orig-row p,code{font-family:"JetBrains Mono",ui-monospace,Consolas,monospace;}
.time-badge{background:#F1F5FC;color:#284B80;border-color:#DDE7F3;}
.platform-badge{background:#EAF1FB;color:#2B579A;border:1px solid #D9E4F5;}
.platform-badge i{background:#4B77C4;}
.status-badge{background:#EAF1FC;color:#315C9B;border:1px solid #D3E0F3;}
.status-badge.en_revision{background:#DFE9FB;color:#234988;border-color:#C0D1EF;}
.status-badge.requiere_corroboracion{background:#EEF0F5;color:#4B5B70;border-color:#D6DFEA;}
.status-badge.verificado{background:#E4EDFB;color:#1E4B99;border-color:#C3D6F2;}
.pagination{border-top-color:#E5ECF6;}.pagination button{border-color:#D5E0F0;color:#355580;background:white;border-radius:9px;}
.pagination button:hover,.pagination .page-current{background:#1D4A9E;color:white;border-color:#1D4A9E;}
.drawer{background:#F6F8FC;}.drawer-top{background:#fff;border-color:#E0E7F3;}.drawer-body{background:#F6F8FC;}
.drawer-title,.detail-card-head b,.detail-field strong{color:#153055;}
.detail-card{background:white;border-color:#DFE7F3;box-shadow:var(--sh-xs);border-radius:13px;}
.detail-card-head{background:#EFF4FC;border-color:#DDE8F5;}.detail-card-head b{color:#29538F;letter-spacing:.09em;}
.detail-text,.orig-row p{color:#3F536F;}.orig-row{border-color:#E7EDF6;}
.detail-field span,.orig-row span{color:#7387A0;}.detail-field strong{overflow-wrap:anywhere;}
.detail-alert{background:#EEF4FC;border-color:#D3E2F6;color:#526B8F;}

/* Visualizations, calendars, graphs */
.chart-bottom,.plot-note,.calendar-foot{background:#FAFCFF;border-color:#E9EFF7;color:#8393AD;}
.chart-toggle,.intel-tabs{background:#EAF0FA;border-color:#DDE6F3;border-radius:11px;}
.chart-span,.intel-tab{color:#526D93;}
.chart-span.active,.intel-tab.active{background:#fff;color:#1F4E9D;box-shadow:var(--sh-xs);border-color:#C7D9F4;}
.calendar-cell.heat1,.calendar-cell.heat2,.calendar-cell.heat3,.calendar-cell.heat4{background:#E7F0FE;border-color:#C8DCF9;color:#1D4A90;}
.calendar-cell.heat2{background:#D1E2FB;}.calendar-cell.heat3{background:#A4C3F3;}.calendar-cell.heat4{background:#376BC1;color:white;}
.calendar-cell:hover,.day-item:hover{border-color:#7EA6E5;}
.dot-legend.lo{background:#DAE8FB}.dot-legend.med{background:#8FB5ED}.dot-legend.hi{background:#3565B6}
.donut-hole{background:#FFF;color:#11274B;}
.legend-dot{box-shadow:0 0 0 1px #E8EDF5;}
.hourbar-fill{background:linear-gradient(180deg,#3669C3,#8EB8F4);}
.geo-plot{background:#FCFDFF;}.geo-num,.f56-index{background:#E8F1FE;color:#2355A8;border:1px solid #CCDEF8;}
.geo-desc,.f56-pointbody p{color:#687F9D;}
.geo-caution,.f56-warning,.source-alert,.pipeline-warning,.intel-callout{background:#EDF3FC;color:#45658D;border:1px solid #D4E3F8;border-radius:13px;}
.geo-caution .icon,.f56-warning .icon,.source-alert .icon,.pipeline-warning .icon{color:#3167BA;}
.geo-caution p,.f56-warning p,.source-alert p,.pipeline-warning p{color:#526B8B;}
.geo-caution strong,.f56-warning strong,.source-alert strong{color:#254E89;}

/* Investigation components F1–F6 */
.pipeline-panel,.pipeline-table-panel{border-color:#DEE7F4;box-shadow:var(--sh-sm);}
.pipeline-stat,.pipeline-kpi{background:#fff;border-color:#DDE7F4;}
.pipeline-kpi strong,.pipeline-stat strong{color:#142C53;}
.coverage-rows .coverage-row,.pipeline-table-panel table td{border-color:#E8EDF7;}
.intel-panel{background:#fff;border:1px solid #DFE7F3;border-radius:15px;box-shadow:var(--sh-sm);}
.intel-panel-title,.intel-controls{border-color:#E5EDF7;}
.intel-stat{border-color:#DEE7F2;}
.intel-number,.intel-value{color:#143766;}
.intel-tab.active{color:#204C93;}
.intel-graph-canvas,.intel-search-results{background:#FBFCFF;}
.intel-search-hit,.intel-hyp-item{border:1px solid #DFE6F2;border-radius:13px;background:#FFF;box-shadow:var(--sh-xs);}
.intel-search-hit:hover,.intel-hyp-item:hover{border-color:#A7BFE9;background:#F8FBFF;}
.intel-search-hit>b,.intel-hyp-item strong,.intel-evidence-row b{color:#254168;}
.intel-origin,.intel-origin.observation{background:#EAF1FE;color:#2553A6;}
.intel-method,.f56-panel-caption{background:#F5F8FD;border-color:#DFE9F5;color:#607B9D;}
.intel-anomaly-tag,.intel-anomaly-tag.high{background:#EAF0FA;border-color:#D2DDEC;color:#3A587F;}
.intel-hyp-item span{color:#315EAC;}
.intel-remove{color:#405B83!important;border-color:#CBD7E8!important;}
.f56-warning .icon{color:#376CBE;}
.f56-kpi{border-color:#DDE6F2;}
.f56-panel-head{background:#FCFDFF;}
.f56-map{background:#FAFCFF;}.f56-pointrow,.f56-auditrow{border-color:#E9EEF7;}
.f56-pointbody strong,.f56-caseitem-head strong,.f56-case-columns h4,.f56-finding strong,.f56-auditrow strong{color:#223E64;}
.f56-pointbody code,.f56-auditrow code{color:#2F5C9B;}
.f56-result{background:#EAF1FC;color:#547397;}.f56-result strong{color:#1C4B9A;}
.f56-caselist{background:#FBFCFF;}
.f56-caseitem{background:#fff;border:1px solid #DDE6F3;border-radius:12px;color:#274466;}
.f56-caseitem:hover,.f56-caseitem.selected{background:#EEF4FE;border-color:#88A9E4;}
.f56-caseitem-head span{color:#285DB1;}
.f56-inlineform,.f56-caseheader{background:#F4F8FE;border-color:#E0E9F5;}
.f56-finding{border-color:#DDE6F2;}.f56-scroll{background:#FCFDFF;}
.f56-operatorrow select{border-color:#D0DFF2;background:#FAFCFF;}

/* Login uses the template's richer editorial layout without external assets */
.login-screen{background:#F3F6FB;}
.login-art{background:radial-gradient(500px 400px at 75% 75%,rgba(77,134,240,.20),transparent 75%),linear-gradient(130deg,#050B1B,#0B1D3C 48%,#142F5E);}
.login-art:before{border-color:rgba(112,161,240,.25);}
.login-brand .brandword{color:#F5F9FF;}.login-brand .brandword em{color:#9FC3FD;}
.login-copy h1{color:#fff;}.login-copy h1 span{color:#9EC7FF;}
.login-copy p,.login-art-footer{color:#ABC0DA;}
.login-overline{color:#94BFFF;}
.login-form-card{border:1px solid #DFE7F3;background:white;box-shadow:var(--sh-md);border-radius:21px;}
.login-form-card h2{color:#12264B;}
.login-form-card label{color:#375072;}
.mini-badge{background:#EAF2FF;border-color:#D4E3F8;color:#3064BD;}
.login-form-card input{background:#FAFCFF;border-color:#CFCFE4;}
.login-hint{background:#F1F5FC;border-color:#DEE8F5;color:#687E9A;}
.login-submit{min-height:48px;background:linear-gradient(120deg,#102853,#3068C8);}
.signal i{background:#87B3F0;}

/* Full responsive quality and motion preferences */
@media(max-width:1400px){:root{--sidew:238px}}
@media(max-width:900px){:root{--sidew:0px}.topbar{height:62px}.sidebar{width:258px;}}
@media(max-width:600px){.workspace{padding:22px 16px}.page-heading{gap:12px}.topbar{padding:0 16px}.global-search{min-width:unset}.kpi-card:before,.f56-kpi:before{height:2px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Accessible optional dark theme: adapted from the reference's automatic/dark tokens. */
#atlasThemeToggle{color:#C4D6F1;background:#253954;border:1px solid #344C6A;width:36px;height:36px;border-radius:10px;flex-shrink:0;}
#atlasThemeToggle:hover{color:#FFF;background:#2C4C80;border-color:#5984BD;}
#atlasThemeToggle .icon{height:18px;width:18px;}
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#EAF0FC;--ink-2:#C0CDDE;--muted:#9AAAC1;
  --bg:#080F1C;--surface:#111E32;--line:#2B3B55;--line-2:#22334A;
  --sh-sm:0 3px 14px rgba(0,0,0,.13);--sh-md:0 12px 28px rgba(0,0,0,.22);
}
html[data-theme="dark"] body{background:radial-gradient(950px 420px at 92% -7%,rgba(53,98,170,.17),transparent 75%),#080F1C;color:#D7E2F1;}
html[data-theme="dark"] .workspace{background:transparent;}
html[data-theme="dark"] .page-heading h1,html[data-theme="dark"] .panel-heading h3,html[data-theme="dark"] .f56-panel-head h3,html[data-theme="dark"] .intel-panel-title h3{color:#F2F6FF;}
html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .panel-heading p,html[data-theme="dark"] .f56-panel-head p{color:#97A9C4;}
html[data-theme="dark"] .page-overline,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .mini-eyebrow{color:#A0BDFA;}
html[data-theme="dark"] .panel,html[data-theme="dark"] .kpi-card,html[data-theme="dark"] .f56-kpi,html[data-theme="dark"] .intel-stat,html[data-theme="dark"] .quality-tile,html[data-theme="dark"] .review-kpi,html[data-theme="dark"] .pipeline-panel,html[data-theme="dark"] .pipeline-kpi,html[data-theme="dark"] .pipeline-stat,html[data-theme="dark"] .pipeline-table-panel,html[data-theme="dark"] .intel-panel{background:#111E32;border-color:#293B58;box-shadow:0 5px 18px rgba(0,0,0,.1);}
html[data-theme="dark"] .panel-heading,html[data-theme="dark"] .f56-panel-head,html[data-theme="dark"] .table-headline{background:#111F35;border-color:#293B58;}
html[data-theme="dark"] .kpi-value,html[data-theme="dark"] .f56-kpi strong,html[data-theme="dark"] .intel-stat strong,html[data-theme="dark"] .review-kpi strong,html[data-theme="dark"] .quality-tile b,html[data-theme="dark"] .table-headline strong{color:#F2F7FF;}
html[data-theme="dark"] .kpi-top span,html[data-theme="dark"] .f56-kpi>span,html[data-theme="dark"] .intel-stat span,html[data-theme="dark"] .review-kpi span{color:#A8BBDA;}
html[data-theme="dark"] .kpi-foot,html[data-theme="dark"] .f56-kpi small,html[data-theme="dark"] .intel-stat small,html[data-theme="dark"] .review-kpi small{color:#8699B6;}
html[data-theme="dark"] .kpi-icon,html[data-theme="dark"] .kpi-icon.green,html[data-theme="dark"] .kpi-icon.orange,html[data-theme="dark"] .kpi-icon.purple{background:#1C355A;border-color:#345683;color:#A3CCFF;}
html[data-theme="dark"] .btn-outline,html[data-theme="dark"] .view-btn{background:#1B2D48;border-color:#344A69;color:#C7DEFF;}
html[data-theme="dark"] .btn-outline:hover,html[data-theme="dark"] .view-btn:hover{background:#223C65;border-color:#5D86C3;color:white;}
html[data-theme="dark"] .filters-grid input,html[data-theme="dark"] .filters-grid select,html[data-theme="dark"] .f56-controls input,html[data-theme="dark"] .f56-controls select,html[data-theme="dark"] .f56-form input,html[data-theme="dark"] .f56-form select,html[data-theme="dark"] .f56-form textarea,html[data-theme="dark"] .intel-controls input,html[data-theme="dark"] .intel-controls select,html[data-theme="dark"] .intel-hyp-form input,html[data-theme="dark"] .intel-hyp-form select,html[data-theme="dark"] .intel-hyp-form textarea,html[data-theme="dark"] .pipeline-search input,html[data-theme="dark"] .pipeline-search select,html[data-theme="dark"] .pw-form input,html[data-theme="dark"] .pw-form select,html[data-theme="dark"] .f56-operatorrow select,html[data-theme="dark"] .f56-compare-controls select{background:#162742;border-color:#36506F;color:#E4EFFF;}
html[data-theme="dark"] .filters-grid label,html[data-theme="dark"] .f56-controls label,html[data-theme="dark"] .f56-form label,html[data-theme="dark"] .intel-controls label,html[data-theme="dark"] .intel-hyp-form label{color:#B8C9E1;}
html[data-theme="dark"] .filter-panel,html[data-theme="dark"] .intel-controls,html[data-theme="dark"] .f56-inlineform,html[data-theme="dark"] .filter-bottom,html[data-theme="dark"] .intel-tabs,html[data-theme="dark"] .chart-toggle{background:#14243B;border-color:#2E4260;}
html[data-theme="dark"] .atlas-table th,html[data-theme="dark"] .atlas-table thead th{background:#1B3152;color:#C2D9FF;border-color:#345173;}
html[data-theme="dark"] .atlas-table td{color:#D4E1F0;border-color:#273850;}
html[data-theme="dark"] .atlas-table tbody tr:nth-child(even){background:#142238;}
html[data-theme="dark"] .atlas-table tbody tr:hover{background:#203A5E;}
html[data-theme="dark"] .table-headline,html[data-theme="dark"] .pagination{border-color:#2A3C56;}
html[data-theme="dark"] .pagination button{background:#1C2F4D;border-color:#385472;color:#D7E7FC;}
html[data-theme="dark"] .pagination .page-current,html[data-theme="dark"] .pagination button:hover{background:#335EAB;color:white;}
html[data-theme="dark"] .time-badge,html[data-theme="dark"] .status-badge,html[data-theme="dark"] .platform-badge{background:#203A5B;color:#B9D7FF;border-color:#345879;}
html[data-theme="dark"] .chart-bottom,html[data-theme="dark"] .plot-note,html[data-theme="dark"] .calendar-foot{background:#142239;color:#8EA5C2;border-color:#2A405D;}
html[data-theme="dark"] .chart-span.active,html[data-theme="dark"] .intel-tab.active{background:#264875;color:#EAF2FF;border-color:#456A99;}
html[data-theme="dark"] .chart-span,html[data-theme="dark"] .intel-tab{color:#B7CCE9;}
html[data-theme="dark"] .calendar-cell,html[data-theme="dark"] .day-item{background:#142339;border-color:#2C405D;color:#C4D5EA;}
html[data-theme="dark"] .calendar-cell.heat1{background:#1B355B;color:#CDE0FF;}html[data-theme="dark"] .calendar-cell.heat2{background:#255192;color:#E1EFFF;}html[data-theme="dark"] .calendar-cell.heat3{background:#3267B5;color:#F2F8FF;}html[data-theme="dark"] .calendar-cell.heat4{background:#4F85D3;color:#FFF;}
html[data-theme="dark"] .donut-hole{background:#111E32;color:#F4F8FF;}
html[data-theme="dark"] .geo-plot,html[data-theme="dark"] .f56-map,html[data-theme="dark"] .f56-caselist,html[data-theme="dark"] .intel-graph-canvas,html[data-theme="dark"] .intel-search-results,html[data-theme="dark"] .f56-scroll{background:#13233A;}
html[data-theme="dark"] .geo-caution,html[data-theme="dark"] .f56-warning,html[data-theme="dark"] .source-alert,html[data-theme="dark"] .pipeline-warning,html[data-theme="dark"] .intel-callout{background:#183353;border-color:#345578;color:#C6D9F4;}
html[data-theme="dark"] .geo-caution p,html[data-theme="dark"] .f56-warning p,html[data-theme="dark"] .source-alert p,html[data-theme="dark"] .pipeline-warning p{color:#B1C5DD;}
html[data-theme="dark"] .geo-caution strong,html[data-theme="dark"] .f56-warning strong,html[data-theme="dark"] .source-alert strong{color:#D9E8FF;}
html[data-theme="dark"] .intel-search-hit,html[data-theme="dark"] .intel-hyp-item,html[data-theme="dark"] .f56-caseitem,html[data-theme="dark"] .f56-finding,html[data-theme="dark"] .f56-caseheader{background:#172842;border-color:#304663;color:#D9E7FB;}
html[data-theme="dark"] .intel-search-hit>b,html[data-theme="dark"] .intel-hyp-item strong,html[data-theme="dark"] .intel-evidence-row b,html[data-theme="dark"] .f56-pointbody strong,html[data-theme="dark"] .f56-caseitem-head strong,html[data-theme="dark"] .f56-case-columns h4,html[data-theme="dark"] .f56-finding strong,html[data-theme="dark"] .f56-auditrow strong{color:#E0ECFF;}
html[data-theme="dark"] .intel-search-hit>p,html[data-theme="dark"] .intel-hyp-item small,html[data-theme="dark"] .f56-pointbody p,html[data-theme="dark"] .f56-finding p,html[data-theme="dark"] .f56-caseheader p{color:#A6BAD5;}
html[data-theme="dark"] .intel-method,html[data-theme="dark"] .f56-panel-caption,html[data-theme="dark"] .f56-result{background:#203653;border-color:#375372;color:#BDD1EC;}
html[data-theme="dark"] .f56-result strong{color:#CDE1FF;}
html[data-theme="dark"] .f56-caseitem:hover,html[data-theme="dark"] .f56-caseitem.selected{background:#203A5D;border-color:#6486BD;}
html[data-theme="dark"] .f56-operatorrow select{background:#182C48;}
html[data-theme="dark"] .drawer,html[data-theme="dark"] .drawer-body{background:#0C1829;}
html[data-theme="dark"] .drawer-top,html[data-theme="dark"] .detail-card{background:#13233A;border-color:#304663;}
html[data-theme="dark"] .detail-card-head{background:#1D3454;border-color:#345474;}
html[data-theme="dark"] .detail-card-head b,html[data-theme="dark"] .drawer-title,html[data-theme="dark"] .detail-field strong{color:#DCEBFF;}
html[data-theme="dark"] .detail-field span,html[data-theme="dark"] .orig-row span{color:#92ABC9;}
html[data-theme="dark"] .detail-text,html[data-theme="dark"] .orig-row p{color:#C1D1E5;}
html[data-theme="dark"] .detail-alert{background:#1A3355;border-color:#2E4E79;color:#C8DBF5;}
html[data-theme="dark"] .settings-safe,html[data-theme="dark"] .login-hint{background:#1B324F;border-color:#345374;color:#B9CCE5;}
html[data-theme="dark"] .login-screen{background:#091425;}
html[data-theme="dark"] .login-form-card{background:#12223B;border-color:#344967;}
html[data-theme="dark"] .login-form-card h2,html[data-theme="dark"] .login-form-card label{color:#E7F2FF;}
html[data-theme="dark"] .login-form-card input{background:#203655;border-color:#486488;color:#F0F7FF;}
html[data-theme="dark"] .mini-badge{background:#223B60;color:#B8D5FE;border-color:#456894;}
html[data-theme="dark"] .footer{background:#101C30;border-color:#2C405B;color:#8EA3BE;}
@media(max-width:600px){#atlasThemeToggle{width:35px;height:35px}}

/* 4.1 QA corrections: contrast, chart readability and narrow viewport containment. */
html[data-theme="dark"] .legend-line,html[data-theme="dark"] .legend-line span{color:#B6C8E4;}
html[data-theme="dark"] .legend-line strong{color:#F0F5FF;}
html[data-theme="dark"] .review-statline,html[data-theme="dark"] .review-statline span{color:#B5C7DE;}
html[data-theme="dark"] .review-statline strong{color:#EAF3FF;}
html[data-theme="dark"] .review-notice{background:#1B304D;border-color:#335277;}
html[data-theme="dark"] .review-notice b{color:#DCEAFE;}
html[data-theme="dark"] .review-notice span{color:#AEC2DD;}
html[data-theme="dark"] .progress-track{background:#31465D;}
html[data-theme="dark"] #activityChart line{stroke:#2B405B;}
html[data-theme="dark"] #activityChart text{fill:#A9BED9;}
html[data-theme="dark"] #activityChart path[stroke]{stroke:#6B9BE6;}
html[data-theme="dark"] #platformDonut{border-color:#284264;}
html[data-theme="dark"] .hourbar-label{color:#A6BEDA;}
html[data-theme="dark"] .chart-bottom{color:#A8BDDA;}
@media(max-width:600px){
 .topbar{gap:8px;}
 .topbar-left{gap:8px;min-width:0;overflow:hidden;}
 .topbar-left .breadcrumb,.topbar-left>.icon-tiny{display:none;}
 .topbar-left #crumbCurrent{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .topbar-right{flex-shrink:0;margin-left:auto;}
 .topbar-right .avatar-sm{display:none;}
 #atlasThemeToggle{width:33px;height:33px;}
}
