/* ============================================================
   VALTRICS v2 - Engine theme override (LIGHT)
   Layered on top of each engine's own <style>. It lightens the
   hardcoded surfaces the engines use, without touching any
   structural markup or the JS-driven IDs. Loaded LAST so it wins.
   ============================================================ */

body{background:#f5f7fa !important;color:#0b1220;}
body,input,select,textarea,button{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;}
h1,h2,h3,h4{font-family:'Inter',sans-serif !important;}

/* Header block */
header{background:#ffffff !important;border:1px solid #d8e0ea;color:#0b1220;}

/* Cards / sections / panels */
.section,.metric-card,.hero-decision,.hero-kpis,.hero-kpi,.inputs-rail,.ir-kpis,.ir-kpi,
.dash-frame,.dpanel,.panel,.card,.box,.tab-card,.result-card{
  background:#ffffff !important;
  border-color:#d8e0ea !important;
  box-shadow:0 1px 3px rgba(11,18,32,0.05) !important;
}
.hero-kpi:first-child,.ir-kpi.wide,.metric-card,.hero-kpis,.ir-kpis{background:#f2f5f9 !important;}
.section h3,.hero-decision .hd-verdict,h1,h2,h3,h4{color:#0b1220;}
.section h3{border-bottom-color:#d8e0ea !important;}

/* Tables */
table th{color:#6b7a8d !important;border-bottom-color:#d8e0ea !important;}
table td{border-bottom-color:#e4eaf2 !important;color:#3d4b5e;}
tfoot tr,tr[style*="border-top"]{border-top-color:#c4d0de !important;}

/* Inputs - accent border, light fill */
.input-cell input,.input-cell select,input[type="text"],input[type="number"],select,textarea{
  background:#f6faff !important;
  color:#0b1220 !important;
  border-color:#2b7fe0 !important;
}
.input-cell input:focus,input:focus,select:focus{
  border-color:#1a63b8 !important;
  box-shadow:0 0 0 3px rgba(43,127,224,0.18) !important;
}

/* Calculated / output text */
.calc{color:#3d4b5e !important;}
.output-gold,.iv.accent,.hk-v.accent,.k-value.accent{color:#1a63b8 !important;}
.output-green,.pass,.iv.pass,.hk-v.pass,.hk-t.pass{color:#1f9d6b !important;}
.fail,.iv.fail,.hk-v.fail,.hk-t.fail{color:#d64550 !important;}
.note,.target,.hk-t,.it,.ir-note,.hd-item{color:#6b7a8d !important;}

/* Tab bars */
.tabbar{background:#f5f7fa !important;border-bottom-color:#c4d0de !important;}
.tabbar .tb{color:#6b7a8d !important;}
.tabbar .tb.active{color:#0b1220 !important;border-bottom-color:#2b7fe0 !important;}
.dash-tabs{background:#f2f5f9 !important;border-bottom-color:#d8e0ea !important;}
.dash-tabs .tab{color:#6b7a8d !important;}
.dash-tabs .tab.active{color:#0b1220 !important;border-bottom-color:#2b7fe0 !important;}

/* Verdict pills */
.verdict-go,.hk-v.pass{background:rgba(31,157,107,0.12) !important;color:#1f9d6b !important;}
.verdict-go::before{background:#1f9d6b !important;}
.verdict-cond{background:rgba(200,146,47,0.14) !important;color:#c8922f !important;}
.verdict-cond::before{background:#c8922f !important;}
.verdict-nogo{background:rgba(214,69,80,0.12) !important;color:#d64550 !important;}
.verdict-nogo::before{background:#d64550 !important;}

/* Expand controls / buttons */
.expand-controls button,.add-btn{background:#ffffff !important;color:#3d4b5e !important;border-color:#c4d0de !important;}
.expand-controls button:hover,.add-btn:hover{border-color:#2b7fe0 !important;color:#2b7fe0 !important;}

/* Capital-stack bar segments */
.ir-stack{border-color:#c4d0de !important;}
.ir-stack .s1{background:#c4d0de !important;color:#0b1220 !important;}
.ir-stack .s2{background:#2b7fe0 !important;color:#fff !important;}
.ir-stack .s3{background:#e4eaf2 !important;color:#3d4b5e !important;}

/* Sensitivity table highlight rows */
.sensitivity-table tr.highlight{background:#eef2f7 !important;}
.sensitivity-table tr.current{background:rgba(43,127,224,0.12) !important;}

/* Metric card accent borders (keep semantic colors) */
.metric-card{border-left-color:#1f9d6b !important;}
.metric-card.fail-card{border-left-color:#d64550 !important;}
.metric-card.gate-card{border-left-color:#2b7fe0 !important;border-color:#2b7fe0 !important;}
.metric-card .gate-badge{background:#2b7fe0 !important;color:#fff !important;}
.inputs-rail,.hero-decision{border-top-color:#2b7fe0 !important;}
.mock-verdict{background:#f2f5f9 !important;}

/* links in headers */
header a,.eyebrow a{color:#3d4b5e;}
header a:hover{color:#2b7fe0;}
.scope-badge{color:#1a63b8 !important;background:rgba(43,127,224,0.10) !important;border-color:rgba(43,127,224,0.4) !important;}

/* ---- Residual hardcoded-hex cleanups (charts, legends, svgs) ---- */
/* Old dark ink marks -> keep dark ink on light */
[fill="#0e1a26"]{fill:#0b1220 !important;}
[stroke="#0e1a26"]{stroke:#0b1220 !important;}
[style*="background:#0e1a26"],[style*="background: #0e1a26"]{background:#0b1220 !important;}
[style*="background:#1a1a2e"]{background:#0b1220 !important;}
/* Old gold accent -> brand blue */
[fill="#b07d3f"]{fill:#2b7fe0 !important;}
[stroke="#b07d3f"]{stroke:#2b7fe0 !important;}
[style*="background:#b07d3f"],[style*="background: #b07d3f"]{background:#2b7fe0 !important;}
[style*="color:#b07d3f"]{color:#2b7fe0 !important;}
[style*="#8a5f2a"]{color:#1a63b8 !important;}
/* Old paper fills used inline -> white panel */
[style*="background:#faf7f1"],[style*="background:#fbf7f0"]{background:#f2f5f9 !important;}
