:root {
    --navy-950: #071827;
    --navy-900: #0b2237;
    --navy-800: #12324d;
    --navy-700: #1d4665;
    --teal-700: #0f6b62;
    --teal-600: #0f8074;
    --teal-100: #d9f1ec;
    --teal-50: #effaf7;
    --gold-600: #b7791f;
    --gold-100: #fff1c7;
    --red-700: #b42318;
    --red-100: #fee4e2;
    --green-700: #067647;
    --green-100: #d1fadf;
    --ink: #152b3c;
    --muted: #667785;
    --paper: #f3f6f7;
    --panel: #ffffff;
    --line: #dce5e8;
    --line-strong: #cbd7dc;
    --shadow-sm: 0 1px 3px rgba(7, 24, 39, .06);
    --shadow: 0 10px 30px rgba(7, 24, 39, .075);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; padding-bottom: 29px; background: var(--paper); color: var(--ink); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.topbar { position: sticky; top: 0; z-index: 90; min-height: 72px; padding: 0 max(28px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; gap: 28px; background: rgba(7, 24, 39, .97); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 24px rgba(7,24,39,.12); backdrop-filter: blur(12px); }
.brand { min-width: 210px; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--teal-600), #1ea495); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font: 800 20px/1 Georgia, serif; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 16px; letter-spacing: .01em; }
.brand-copy small { margin-top: 5px; color: #9fb3c2; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.main-nav { flex: 1; display: flex; align-self: stretch; align-items: center; gap: 3px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; height: 100%; padding: 0 11px; display: inline-flex; align-items: center; color: #c7d4dd; text-decoration: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { background: #2db7a5; }
.user-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; white-space: nowrap; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #b8f3e9; background: rgba(45,183,165,.16); border: 1px solid rgba(45,183,165,.3); font-weight: 800; }
.user-meta { display: grid; line-height: 1.15; }
.user-meta strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.user-meta small { margin-top: 3px; color: #91a6b5; font-size: 10px; }
.logout-link { color: #9fb3c2; font-size: 12px; text-decoration: none; }
.logout-link:hover { color: #fff; }

.container { width: min(1380px, calc(100vw - 48px)); margin: 0 auto; padding: 32px 0 58px; }
.footer { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; height: 29px; padding: 6px 16px; background: var(--navy-950); color: #9fb3c2; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: 10px; letter-spacing: .035em; }

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 3.2vw, 40px); }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: block; margin-bottom: 7px; color: var(--teal-700); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #77d7ca; }
.page-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.executive-heading p { max-width: 720px; }
.page-actions { display: flex; align-items: flex-end; gap: 9px; }
.report-button { min-height: 56px; padding-inline: 14px; white-space: nowrap; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-title p { margin-top: 4px; font-size: 12px; }
.panel-value { color: var(--navy-800); font-size: 20px; font-weight: 800; }
.text-link { color: var(--teal-700); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.filter-bar { display: flex; align-items: end; gap: 10px; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.filter-bar label { gap: 4px; min-width: 150px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.filter-bar select { min-height: 39px; padding: 8px 34px 8px 11px; border: 1px solid transparent; background-color: #f5f8f8; font-size: 13px; font-weight: 700; cursor: pointer; }
.filter-bar select:hover { border-color: #c8d8dc; background-color: #fff; }
.filter-bar.is-loading { opacity: .7; pointer-events: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.kpi-card.clean { min-height: 158px; padding: 19px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kpi-card.clean::after { display: none; }
.kpi-card.clean > strong { display: block; color: var(--navy-900); font-size: clamp(25px, 2.2vw, 34px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.kpi-top { display: flex; align-items: center; gap: 9px; }
.kpi-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 850; }
.kpi-icon.revenue { color: var(--teal-700); background: var(--teal-100); }
.kpi-icon.result { color: #2855a5; background: #e5edff; }
.kpi-icon.margin { color: var(--gold-600); background: var(--gold-100); }
.kpi-icon.cost { color: #8d3d70; background: #fae8f3; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.kpi-foot { display: flex; align-items: center; gap: 7px; }
.kpi-foot small { color: #8797a2; font-size: 10px; }
.delta { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.delta.positive { color: var(--green-700); background: var(--green-100); }
.delta.negative { color: var(--red-700); background: var(--red-100); }
.delta.warning { color: #8a5711; background: var(--gold-100); }
.negative-text { color: var(--red-700) !important; }

.metric-strip, .summary-ribbon { margin-bottom: 15px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.metric-strip > div, .summary-ribbon > div { min-height: 78px; padding: 15px 18px; display: grid; align-content: center; border-right: 1px solid rgba(255,255,255,.1); }
.metric-strip > div:last-child, .summary-ribbon > div:last-child { border-right: 0; }
.metric-strip span, .summary-ribbon span { color: #9fb3c2; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.metric-strip strong, .summary-ribbon strong { margin-top: 5px; color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.summary-ribbon { grid-template-columns: repeat(5, minmax(170px, 1fr)); }

.decision-section { margin-bottom: 15px; }
.section-heading { margin-bottom: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading h2 { font-size: 17px; }
.section-heading small { color: #82939d; font-size: 10px; }
.decision-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.decision-grid article { min-height: 92px; padding: 14px 15px; display: grid; align-content: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.decision-grid span { color: #657986; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.decision-grid strong { margin-top: 4px; color: var(--navy-900); font-size: 22px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.decision-grid small { margin-top: 1px; color: #82939d; font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.chart-panel { min-height: 330px; }
.chart-wrap { height: 205px; margin: 14px -6px 0; }
.trend-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-labels { padding: 0 8px; display: flex; justify-content: space-between; color: #7b8c97; font-size: 10px; text-transform: uppercase; }
.chart-legend { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 14px; color: #687b87; font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; }
.legend-revenue { background: #127a70; }
.legend-expense { background: #a8c8c3; }
.legend-result { background: #d3982f; border-radius: 50% !important; }
.interactive-chart { position: relative; width: 100%; margin-top: 8px; overflow: hidden; }
.interactive-chart canvas, .donut-wrap canvas { display: block; width: 100%; touch-action: pan-y; }
.financial-chart-wrap { min-height: 276px; }
.operational-chart-wrap { min-height: 220px; margin-top: 15px; }
.chart-tooltip { position: absolute; z-index: 5; min-width: 185px; max-width: calc(100% - 16px); padding: 12px 13px; display: grid; gap: 7px; color: #fff; background: rgba(7,24,39,.96); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; box-shadow: 0 14px 32px rgba(7,24,39,.24); pointer-events: none; font-size: 12px; line-height: 1.35; transform: translateZ(0); }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip > strong { margin-bottom: 2px; color: #fff; font-size: 13px; letter-spacing: -.01em; }
.chart-tooltip > span { display: flex; align-items: center; gap: 6px; }
.chart-tooltip i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.chart-tooltip b { font-weight: 700; }
.donut-panel { min-height: 330px; }
.donut-wrap { position: relative; width: 100%; min-height: 218px; margin-top: 4px; overflow: hidden; }
.donut-legend { margin-top: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.donut-legend span { min-width: 0; display: flex; align-items: center; gap: 6px; color: #617581; font-size: 10.5px; }
.donut-legend i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 2px; }
.donut-legend b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.chart-tabs { display: inline-flex; padding: 3px; gap: 2px; background: #eef3f4; border-radius: 8px; }
.chart-tabs button { padding: 6px 8px; color: #647782; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 800; }
.chart-tabs button.active { color: #fff; background: var(--teal-700); box-shadow: 0 2px 6px rgba(7,24,39,.12); }

.rank-list { margin-top: 18px; display: grid; gap: 15px; }
.rank-item > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rank-item span { color: #445966; font-size: 12px; }
.rank-item strong { color: var(--navy-800); font-size: 11px; }
.progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 8px; background: #edf2f3; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-700), #39bba8); }

.bridge-list { margin-top: 14px; }
.bridge-list > div { padding: 10px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf1f2; }
.bridge-list span { color: #526672; font-size: 12px; }
.bridge-list strong { color: var(--navy-800); font-size: 12px; font-variant-numeric: tabular-nums; }
.bridge-list .bridge-total { margin-top: 4px; padding: 13px 12px; border: 0; border-radius: 8px; background: var(--navy-900); }
.bridge-list .bridge-total span, .bridge-list .bridge-total strong { color: #fff; font-weight: 800; }
.rule-note { margin-top: 13px; padding: 10px 12px; color: #536873; background: var(--teal-50); border-left: 3px solid var(--teal-600); border-radius: 6px; font-size: 10px; }

.composition-list { margin-top: 14px; }
.composition-list > div { padding: 11px 0; display: grid; grid-template-columns: 1fr auto 50px; align-items: center; gap: 10px; border-bottom: 1px solid #edf1f2; }
.composition-list > div:last-child { border-bottom: 0; }
.composition-list span { color: #445966; font-size: 12px; }
.composition-list strong { color: var(--navy-800); font-size: 12px; font-variant-numeric: tabular-nums; }
.composition-list small { color: #80919b; text-align: right; font-size: 10px; }

.insight-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.insight { min-height: 92px; padding: 14px; display: flex; align-items: flex-start; gap: 10px; background: #f7f9fa; border: 1px solid #e7edef; border-radius: 10px; }
.insight-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #78909c; box-shadow: 0 0 0 4px #edf1f3; }
.insight.positive .insight-dot { background: var(--green-700); box-shadow: 0 0 0 4px var(--green-100); }
.insight.negative .insight-dot { background: var(--red-700); box-shadow: 0 0 0 4px var(--red-100); }
.insight strong { font-size: 12px; }
.insight p { margin-top: 4px; font-size: 11px; }
.insights-panel .insight-grid { grid-template-columns: 1fr; }

.simulator-panel { background: linear-gradient(135deg, #fff 0%, #f6faf9 100%); }
.simulator-layout { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(440px, .95fr); gap: 32px; align-items: center; }
.scenario-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 24px; }
.scenario-inputs label { color: #405663; font-size: 12px; }
.scenario-inputs label > span { float: right; color: var(--teal-700); font-size: 11px; font-weight: 850; }
.scenario-inputs input[type="range"] { height: 5px; margin-top: 10px; padding: 0; appearance: none; background: linear-gradient(90deg, #c9d8dc, #2aa493); border: 0; border-radius: 20px; }
.scenario-inputs input[type="range"]::-webkit-slider-thumb { width: 17px; height: 17px; appearance: none; background: #fff; border: 4px solid var(--teal-700); border-radius: 50%; box-shadow: 0 2px 7px rgba(7,24,39,.18); cursor: pointer; }
.scenario-inputs input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; background: #fff; border: 4px solid var(--teal-700); border-radius: 50%; box-shadow: 0 2px 7px rgba(7,24,39,.18); cursor: pointer; }
.scenario-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scenario-results > div { min-height: 82px; padding: 13px 14px; display: grid; align-content: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.scenario-results span { color: #657985; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.scenario-results strong { margin-top: 4px; color: var(--navy-900); font-size: 18px; font-variant-numeric: tabular-nums; }
.scenario-results small { margin-top: 4px; color: var(--green-700); font-size: 11px; font-weight: 750; }
.scenario-results .scenario-highlight { color: var(--navy-900); background: #e4f4f0; border-color: #b9ded6; }
.scenario-results .scenario-highlight span { color: var(--teal-700); }
.scenario-results .scenario-highlight strong { color: var(--navy-900); }
.scenario-results .scenario-highlight small { color: #245f57; }
.scenario-results .scenario-highlight small.negative-text { color: var(--red-700) !important; }
.scenario-results .scenario-highlight small.neutral-text { color: #466b64 !important; }
.scenario-bar { position: relative; height: 6px; margin-top: 19px; overflow: hidden; background: #e8eff1; border-radius: 20px; }
.scenario-bar span, .scenario-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width .25s ease; }
.scenario-bar span { background: #a8c8c3; opacity: .65; }
.scenario-bar i { background: var(--teal-700); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.scenario-bar i.negative { background: var(--red-700); }
.scenario-disclaimer { display: block; margin-top: 8px; color: #84949d; font-size: 9px; }

.dre-panel { padding: 0; overflow: hidden; }
.dre-toolbar { min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.dre-toolbar > div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.dre-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; background: #e7eff2; }
.legend-dot.accumulated { background: #d9f1ec; }
.dre-table-wrap { max-width: 100%; }
.dre-table { min-width: 1080px; }
.dre-table th { position: sticky; top: 0; z-index: 2; padding: 12px 13px; color: #536b78; background: #f7f9fa; font-size: 10.5px; letter-spacing: .045em; white-space: nowrap; text-align: right; }
.dre-table th:first-child, .dre-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 230px; background: #fff; }
.dre-table th:first-child { z-index: 3; background: #f7f9fa; text-align: left; }
.dre-table td { padding: 11px 13px; color: #2f4653; font-size: 12.5px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.dre-table td:first-child { text-align: left; font-weight: 600; }
.dre-table .section-row td { position: static; padding: 10px 13px; color: var(--navy-800); background: #e8f0f3; border-top: 1px solid #d3e0e4; border-bottom: 1px solid #d3e0e4; font-size: 11.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .075em; text-align: left; }
.dre-table .section-row.cost-section td { color: #674a25; background: #f5efe6; border-color: #e6d9c5; }
.dre-table .total-row td { color: var(--navy-900); background: #f0f5f6; border-top: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 850; }
.dre-table .total-row td:first-child { background: #f0f5f6; }
.dre-table .cost-total td { background: #f7f2eb; }
.dre-table .cost-total td:first-child { background: #f7f2eb; }
.dre-table .result-row td { padding-top: 14px; padding-bottom: 14px; color: #0a554f; background: #dcefeb; border-top: 1px solid #b8dcd5; font-size: 13.5px; font-weight: 850; }
.dre-table .result-row td:first-child { color: #0a554f; background: #dcefeb; }
.dre-table .margin-row td { color: #0f665e; background: var(--teal-50); font-size: 12.5px; font-weight: 800; }
.dre-table .margin-row td:first-child { background: var(--teal-50); }
.dre-table .accumulated-col { background: #eef8f5; font-weight: 750; }
.cost-value { color: #8a3c36 !important; }
.dre-notes { padding: 15px 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #657782; background: #f7f9fa; border-top: 1px solid var(--line); font-size: 10px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
td small { display: block; margin-top: 3px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status.approved, .status.active { color: var(--green-700); background: var(--green-100); }
.status.draft { color: #8a5711; background: var(--gold-100); }
.status.rejected, .status.cancelled { color: var(--red-700); background: var(--red-100); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid h2, .form-grid .full, .form-grid .button { grid-column: 1 / -1; }
label { display: grid; gap: 6px; color: #405663; font-size: 11px; font-weight: 750; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cdd9dd; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,128,116,.11); border-color: var(--teal-600); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 17px; height: 17px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; width: fit-content; min-height: 38px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.primary { color: #fff; background: var(--teal-700); }
.button.primary:hover { background: #0a5a52; }
.button.secondary { color: var(--navy-800); background: #edf3f5; border-color: #d7e2e6; }
.button.ghost { color: #dbe7ed; background: transparent; border-color: rgba(255,255,255,.18); }
.button.ghost:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.button.compact { min-height: 30px; padding: 6px 9px; font-size: 9px; }
.button.small { min-height: 29px; padding: 6px 10px; font-size: 9px; }
.button.wide { width: 100%; }

.alert { margin-bottom: 18px; padding: 12px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; }
.alert.success { color: var(--green-700); background: var(--green-100); border-color: #a6f0c2; }
.alert.error { color: var(--red-700); background: var(--red-100); border-color: #ffc8c4; }
.alert.warning { color: #7c4b08; background: #fff8e6; border-color: #f2d58b; }

.login-shell { width: min(1160px, 92vw); min-height: calc(100vh - 159px); margin: 0 auto; display: grid; grid-template-columns: 1.15fr minmax(360px, .62fr); align-items: center; gap: 8vw; }
.login-shell::before { content: ""; position: fixed; z-index: 0; inset: 72px 48% 29px 0; pointer-events: none; background: radial-gradient(circle at 25% 20%, rgba(45,183,165,.2), transparent 36%), linear-gradient(140deg, var(--navy-950), var(--navy-800)); }
.login-intro, .login-card { position: relative; z-index: 1; }
.login-intro { padding: 46px 0; color: #fff; }
.login-intro h1 { max-width: 700px; color: #fff; font: 500 clamp(42px, 5vw, 67px)/1.03 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.login-intro p { max-width: 630px; margin-top: 20px; color: #bed0da; font-size: 17px; line-height: 1.65; }
.login-proof { margin-top: 38px; display: flex; gap: 30px; }
.login-proof span { display: grid; color: #9fb3c2; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.login-proof strong { margin-bottom: 3px; color: #fff; font-size: 18px; text-transform: none; letter-spacing: 0; }
.login-card { padding: 32px; display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 60px rgba(7,24,39,.13); }
.login-card-heading { margin-bottom: 3px; }
.login-card-heading h2 { font-size: 27px; }
.login-card-heading p { font-size: 12px; }
.login-card input { min-height: 45px; }
.security-note { color: #8797a2; text-align: center; font-size: 9px; }

.split-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.narrow-panel { width: min(720px, 100%); margin: 25px auto; }
.account-review { margin-bottom: 12px; display: grid; grid-template-columns: minmax(250px, 1.4fr) repeat(2, minmax(170px, 1fr)); gap: 13px 20px; align-items: center; }
.empty-state { color: var(--muted); text-align: center; }

@media (max-width: 1180px) {
    .topbar { gap: 16px; padding: 0 20px; }
    .brand { min-width: auto; }
    .brand-copy small, .user-meta { display: none; }
    .main-nav { overflow-x: auto; }
    .main-nav a { padding: 0 8px; }
    .executive-kpis { grid-template-columns: repeat(2, 1fr); }
    .metric-strip { grid-template-columns: repeat(3, 1fr); }
    .metric-strip > div:nth-child(3) { border-right: 0; }
    .metric-strip > div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.1); }
    .decision-grid { grid-template-columns: repeat(3, 1fr); }
    .simulator-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 900px) {
    .container { width: min(94vw, 100%); padding-top: 24px; }
    .topbar { min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .main-nav { order: 3; flex-basis: 100%; height: 35px; }
    .main-nav a::after { bottom: -8px; }
    .user-tools .button { display: inline-flex; }
    .dashboard-grid, .split-grid { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: auto; }
    .insight-grid { grid-template-columns: 1fr; }
    .decision-grid { grid-template-columns: repeat(2, 1fr); }
    .simulator-layout { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; min-height: auto; padding: 50px 0; }
    .login-shell::before { inset: 99px 0 52% 0; }
    .login-intro { padding: 12px 0 70px; }
    .login-card { width: min(520px, 100%); margin: 0 auto; }
    .summary-ribbon { overflow-x: auto; }
}

@media (max-width: 650px) {
    .brand-copy { display: none; }
    .user-avatar { display: none; }
    .user-tools { gap: 6px; }
    .user-tools .button { padding: 5px 7px; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-actions { align-items: stretch; flex-direction: column; }
    .filter-bar { width: 100%; }
    .filter-bar label { min-width: 0; flex: 1; }
    .report-button { min-height: 40px; width: 100%; }
    .executive-kpis { grid-template-columns: 1fr; }
    .decision-grid { grid-template-columns: 1fr; }
    .metric-strip { grid-template-columns: repeat(2, 1fr); }
    .metric-strip > div { border-top: 1px solid rgba(255,255,255,.1); }
    .metric-strip > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
    .metric-strip > div:nth-child(even) { border-right: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .panel-title { flex-wrap: wrap; }
    .chart-tabs { width: 100%; }
    .chart-tabs button { flex: 1; }
    .scenario-inputs, .scenario-results { grid-template-columns: 1fr; }
    .donut-legend { grid-template-columns: 1fr; }
    .login-intro h1 { font-size: 39px; }
    .login-proof { gap: 16px; }
    .account-review { grid-template-columns: 1fr; }
}

@media print {
    @page { size: A4 landscape; margin: 9mm; }
    html, body { background: #fff !important; }
    body { padding-bottom: 18px; color: #142b3c; font-size: 10px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .topbar, .no-print { display: none !important; }
    .container { width: 100%; padding: 0 0 22px; }
    .footer { height: 18px; padding: 3px 10px; font-size: 7px; }
    .page-heading { margin-bottom: 10px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading p { font-size: 9px; }
    .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 8px; }
    .kpi-card.clean { min-height: 96px; padding: 10px; box-shadow: none; }
    .kpi-card.clean > strong { font-size: 20px; }
    .metric-strip { grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; box-shadow: none; }
    .metric-strip > div { min-height: 52px; padding: 8px 10px; }
    .metric-strip strong { font-size: 13px; }
    .decision-section { margin-bottom: 8px; }
    .decision-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
    .decision-grid article { min-height: 62px; padding: 7px 8px; box-shadow: none; }
    .decision-grid strong { font-size: 16px; }
    .dashboard-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .panel { padding: 11px; box-shadow: none; break-inside: avoid; }
    .chart-panel, .donut-panel { min-height: 265px; }
    .financial-chart-wrap { min-height: 225px; }
    .operational-chart-wrap { min-height: 190px; }
    .chart-tooltip { display: none !important; }
    .insight-grid { margin-top: 8px; gap: 5px; }
    .insight { min-height: 58px; padding: 8px; }
    .rank-list { margin-top: 9px; gap: 8px; }
    .composition-list { margin-top: 8px; }
    .composition-list > div { padding: 6px 0; }
    .bridge-list > div { padding: 6px 0; }
    .dre-panel { break-inside: auto; }
    .dre-table { min-width: 0; }
    .dre-table th, .dre-table td { padding: 5px 6px; font-size: 7px; }
    .dre-table th:first-child, .dre-table td:first-child { position: static; min-width: 120px; }
    .dre-toolbar { min-height: 34px; padding: 0 8px; }
}
