:root {
  color-scheme: light;
  --ink: #17233b;
  --muted: #62718a;
  --faint: #8794a9;
  --line: #e3e9f2;
  --canvas: #f5f7fb;
  --surface: #fff;
  --blue: #2858ee;
  --blue-dark: #1c46d3;
  --teal: #087e70;
  --amber: #976119;
  --red: #bd3d53;
  --sidebar: #111b30;
  --sidebar-width: 236px;
  --sidebar-panel: 236px;
  --gutter: clamp(20px, 2.6vw, 38px);
  --radius: 13px;
  --shadow: 0 1px 2px #192f5010;
  --font: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--font); }
body:has(dialog[open]), body:has(.sidebar.open) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: default; opacity: .43; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex='0']:focus-visible { outline: 2px solid #7597ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden, .icon-library { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -70px; left: 12px; z-index: 100; background: white; color: var(--blue); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 8px; }
.icon { display: inline-block; flex: 0 0 auto; width: 15px; height: 15px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .24s ease; }
.workspace { grid-area: 1 / 2; min-width: 0; outline: none; }
.sidebar-slot { grid-area: 1 / 1; position: sticky; top: 0; z-index: 30; height: 100vh; height: 100dvh; min-width: 0; overflow: hidden; align-self: start; }
.sidebar { position: relative; display: flex; flex-direction: column; width: var(--sidebar-panel); height: 100%; min-width: 0; color: #e9effc; background: var(--sidebar); border-right: 1px solid #26324a; transition: visibility 0s; }
body.sidebar-collapsed { --sidebar-width: 0px; }
body.sidebar-collapsed .app-shell { grid-template-columns: 0 minmax(0, 1fr); }
body.sidebar-collapsed .sidebar { visibility: hidden; transition: visibility 0s linear .24s; }
.brand { display: flex; align-items: center; gap: 11px; height: 81px; margin: 0 17px; padding: 0 5px; border-bottom: 1px solid #ffffff12; flex: none; }
.brand-mark { width: 37px; height: 37px; flex: none; display: grid; place-items: center; color: #fff; background: transparent; border: 1px solid var(--red); border-radius: 10px; box-shadow: 0 3px 12px var(--red); }
.brand-mark .icon { width: 30px; height: 30px; }
.brand-name .icon2 { width: 66px; height: 30px; }
.brand > span:last-child, .sidebar-footer > span:nth-child(2) { min-width: 0; }
.brand strong, .brand small, .sidebar-footer strong, .sidebar-footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 66px; margin-left: -2px; }
.brand strong { color: #fff; font-size: 15px; font-weight: 720; letter-spacing: -.025em; }
.brand small { color: #9aa9c3; font-size: 11px; letter-spacing: .015em; }
.sidebar-nav { flex: 1; min-height: 0; overflow: auto; padding: 20px 13px 16px; scrollbar-width: thin; scrollbar-color: #3b4962 transparent; }
.nav-group + .nav-group { margin-top: 19px; }
.nav-label { color: #8393b0; font-size: 10px; line-height: 1; font-weight: 730; text-transform: uppercase; letter-spacing: .115em; padding: 0 11px; margin: 0 0 9px; }
.nav-item { --icon-surface: var(--sidebar); display: flex; align-items: center; gap: 10px; padding: 0 10px; min-height: 38px; margin-bottom: 3px; border: 1px solid transparent; border-radius: 8px; color: #aebbd2; font-size: 12.75px; font-weight: 550; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-item .icon { color: #8fa0bd; width: 17px; height: 17px; }
.nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { --icon-surface: #202c43; color: #fff; background: #202c43; transform: translateX(2px); }
.nav-item[aria-current='page'] { --icon-surface: #2855e8; color: #fff; background: #2855e8; border-color: #5981ff54; box-shadow: 0 4px 10px #0d237650; }
.nav-item[aria-current='page'] .icon { color: #fff; }
.nav-item .nav-end { display: none; margin-left: auto; width: 13px; height: 13px; }
.nav-item[aria-current='page'] .nav-end { display: inline-block; opacity: .85; }
.sidebar-footer { display: flex; align-items: center; flex: none; gap: 10px; padding: 14px 5px 17px; margin: 0 17px; border-top: 1px solid #ffffff16; }
.sidebar-footer strong { color: #e7efff; font-size: 12px; font-weight: 680; }
.sidebar-footer small { color: #9aa9c3; font-size: 11px; }
.avatar { width: 33px; height: 33px; border-radius: 9px; background: #243654; color: #c6d5ff; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 750; }
.workspace-dot { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; flex: none; background: #56d2af; box-shadow: 0 0 0 3px #56d2af21; }
.sidebar-overlay { display: none; }
.breadcrumbs .menu-button { display: inline-flex; flex: none; margin-right: 2px; }
.menu-button[aria-expanded='true'] { color: var(--blue-dark); background: #eef3ff; border-color: #c9d7fb; }

.topbar { position: sticky; inset: 0 0 auto; z-index: 15; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1680px; margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.breadcrumbs, .breadcrumbs a, .topbar-actions { display: flex; align-items: center; min-width: 0; gap: 10px; }
.breadcrumbs { font-size: 12.5px; font-weight: 650; margin-left: -22px; }
.breadcrumbs a { color: var(--muted); font-weight: 550; white-space: nowrap; }
.breadcrumbs a span { overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs a .icon { width: 16px; height: 16px; }
.breadcrumbs .crumb-arrow { width: 12px; height: 12px; color: #98a5b8; }
#crumb-page { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { flex: none; gap: 16px; }
.topbar-divider { background: var(--line); width: 1px; height: 24px; }
.command-trigger { display: inline-flex; align-items: center; gap: 8px; min-width: 226px; height: 35px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #f8faff; color: #596983; text-align: left; font-size: 12px; transition: border .17s, background .17s; }
.command-trigger:hover { background: #f0f4ff; border-color: #c7d5fa; }
.command-trigger .icon { width: 16px; height: 16px; }
kbd { margin-left: auto; color: #697990; border: 1px solid #dce4f0; background: #fff; border-radius: 4px; padding: 1px 5px; font: 650 10px/17px var(--font); white-space: nowrap; }
.save-status { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; color: var(--muted); background: #f1f4f8; }
.save-status:hover { box-shadow: 0 0 0 1px currentColor; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.save-status[data-state='saved'] { color: #09705e; background: #eaf8f1; }
.save-status[data-state='unsaved'] { color: #805613; background: #fff5e0; }
.save-status[data-state='saving'] { color: #264dcc; background: #eef3ff; }
.save-status[data-state='failed'] { color: #a93049; background: #fff0f2; }
.save-status[data-state='saving'] .save-dot { animation: save-pulse .75s alternate infinite; }

.workspace-main { margin-inline: auto; max-width: 1680px; padding: 29px var(--gutter) 44px; }
.page-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 15px 24px; margin-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--blue-dark); font-size: 10.5px; font-weight: 760; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span:first-child:empty { width: 13px; height: 2px; border-radius: 2px; background: #4872f9; }
.page-top h1 { color: #141f36; margin-top: 6px; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.16; letter-spacing: -.046em; font-weight: 760; }
.page-subtitle { margin-top: 7px; color: var(--muted); font-size: 13.5px; }
.page-actions { display: flex; align-items: center; gap: 9px; padding-bottom: 2px; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid #dfe6f0; background: #fff; border-radius: 8px; box-shadow: var(--shadow); color: #324462; font-size: 12.5px; font-weight: 660; white-space: nowrap; transition: color .16s, background .16s, border-color .16s, transform .16s; }
.button .icon, .icon-button .icon { width: 16px; height: 16px; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { color: var(--blue-dark); background: #f2f6ff; border-color: #c8d6fc; }
.button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
.button.primary { color: #fff; background: var(--blue); border-color: #214fe2; box-shadow: 0 1px 2px #214fe238; }
.button.primary:hover:not(:disabled) { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.button.danger { border-color: #b33349; background: #bf3a53; color: #fff; }
.button.danger:hover:not(:disabled) { background: #a62d44; color: #fff; border-color: #a62d44; }
.button.compact { padding-inline: 10px; min-height: 33px; }
.icon-button { width:24px; min-height:24px; padding: 0; }
.icon-button.danger:hover:not(:disabled) { color: var(--red); background: #fff2f5; border-color: #efc7d0; }
.plain-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-dark); font-size: 12px; font-weight: 700; white-space: nowrap; padding: 3px 0; }
.plain-link .icon { width: 15px; height: 15px; transition: transform .18s; }
.plain-link:hover { color: #183bad; }
.plain-link:hover .icon { transform: translateX(2px); }
.plain-link[aria-expanded='true'] .icon { transform: rotate(180deg); }
.context-bar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; row-gap: 9px; padding-bottom: 16px; border-bottom: 1px solid #e0e7f1; margin-bottom: 17px; }
.context-controls { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.select-control { position: relative; display: inline-flex; align-items: center; border-radius: 8px; background: #fff; border: 1px solid #e0e7f0; color: #546682; min-width: 0; box-shadow: var(--shadow); }
.select-control .icon { width: 15px; height: 15px; position: absolute; left: 10px; pointer-events: none; }
.select-control .select-arrow { width: 13px; height: 13px; left: auto; right: 9px; }
.select-control select { appearance: none; background: transparent; border: 0; border-radius: inherit; color: #34445d; font-size: 12px; line-height: 1.3; font-weight: 650; cursor: pointer; padding: 8px 28px 8px 32px; width: 100%; min-height: 34px; text-overflow: ellipsis; }
.scenario-control { width: clamp(150px, 17vw, 219px); }
.year-control { width: 132px; }
.simple-select select { padding-left: 10px; }
.estimate-label { display: inline-flex; gap: 6px; align-items: center; color: var(--amber); font-size: 11.5px; font-weight: 680; border-radius: 6px; padding: 3px 8px; background: #fff4dd; }
.estimate-label > span { width: 6px; height: 6px; border-radius: 50%; background: #c88829; }
.view-note { display: flex; gap: 8px; align-items: center; color: #394f78; padding: 9px 11px; margin: 0 0 16px; background: #eef3ff; border: 1px solid #dbe5fd; border-radius: 8px; font-size: 12px; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-heading h2 { font-size: 17px; line-height: 1.25; font-weight: 740; letter-spacing: -.022em; }
.section-heading > div > p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-extras { margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); animation: reveal .26s both; }
.metric-card { min-width: 0; display: block; padding: 14px 15px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.metric-card:hover { transform: translateY(-2px); border-color: #c2d2fb; box-shadow: 0 5px 14px #2b507b0b; }
.metric-head { display: flex; align-items: center; gap: 8px; color: #51617a; font-size: 12px; font-weight: 660; line-height: 1.25; }
.tile-icon { width: 33px; height: 33px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; color: #2955eb; background: #ecf1ff; }
.tile-icon .icon { width: 17px; height: 17px; }
.tile-icon.teal { color: #087e70; background: #e8f7f3; }
.tile-icon.purple { color: #7443c9; background: #f2ebfc; }
.tile-icon.amber { color: #aa6b19; background: #fff4e1; }
.tile-icon.rose { color: #c14058; background: #fcecf0; }
.metric-value { display: block; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: clamp(20px, 2.3vw, 30px); font-weight: 760; letter-spacing: -.052em; line-height: 1.18; white-space: nowrap; }
.metric-value.negative, .negative { color: #b63e54; }
.metric-value.positive, .positive { color: #087e70; }
.metric-note { display: flex; align-items: center; min-height: 17px; gap: 5px; color: var(--muted); font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
.metric-note .icon { width: 13px; height: 13px; }

.dashboard-body { animation: reveal .38s ease-out both; }
.charts-grid, .details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.chart-primary, .details-grid { grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 17px 17px 0; }
.panel-heading { min-width: 0; }
.panel-heading h2, .panel-heading h3 { color: var(--ink); font-weight: 730; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.panel-heading p { margin-top: 4px; color: var(--muted); font-size: 11.75px; line-height: 1.4; }
.panel-action { margin-top: 1px; }
.panel-action .icon { width: 15px; height: 15px; }
.chart-panel { padding-bottom: 10px; overflow: hidden; }
.chart-panel .panel-header { padding-inline: 19px; }
.chart-meta { color: #60738a; font-size: 10px; font-weight: 670; letter-spacing: .055em; text-transform: uppercase; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 15px; min-height: 22px; margin: 11px 18px 1px; }
.legend-item { color: #4f607b; min-height: 21px; padding: 1px 0; display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.2; font-weight: 620; text-align: left; }
.legend-item[aria-pressed='false'] { opacity: .46; text-decoration: line-through; }
.legend-item:hover { color: var(--ink); }
.legend-swatch { width: 13px; height: 3px; border-radius: 2px; background: var(--series); flex: none; }
.chart-surface { height: 240px; min-width: 0; position: relative; margin: 2px 12px 0 8px; }
.chart-surface.wide-chart { height: 249px; }
.chart-surface.donut-surface { height: 171px; margin: 3px 15px 2px; }
.donut-center { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 10.5px; font-weight: 640; gap: 2px; }
.donut-center strong { font-size: 19px; line-height: 1.25; letter-spacing: -.04em; font-weight: 760; color: var(--ink); font-variant-numeric: tabular-nums; }
.donut-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin: 0 18px 1px; }
.donut-legend .legend-item { border-top: 1px solid #eef1f6; min-width: 0; min-height: 24px; }
.donut-legend .legend-swatch { width: 8px; height: 8px; border-radius: 2px; }
.series-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-percent { margin-left: auto; color: #4a5a76; font-variant-numeric: tabular-nums; font-size: 10.5px; }
.donut-legend .legend-item[aria-pressed='false'] .legend-percent { text-decoration: line-through; }
.chart-note { padding: 9px 18px 0; color: var(--muted); font-size: 11px; }
.chart-surface > .apexcharts-canvas { margin-inline: auto; }
.apexcharts-tooltip { border-radius: 8px !important; box-shadow: 0 8px 24px #17233b24 !important; }
.apexcharts-tooltip-text { font-family: var(--font) !important; }
.plot-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot-svg text { font-family: var(--font); font-variant-numeric: tabular-nums; fill: #63758f; font-size: 10.5px; }
.plot-svg .plot-grid { stroke: #e3e9f2; stroke-width: 1; stroke-dasharray: 4 4; }
.plot-svg .plot-zero { stroke-dasharray: none; }
.plot-svg .plot-hit { cursor: crosshair; }
.plot-tooltip { position: absolute; z-index: 3; color: var(--ink); background: #fff; border: 1px solid #dfe7f3; border-radius: 7px; box-shadow: 0 4px 16px #21355624; padding: 7px 9px; pointer-events: none; white-space: nowrap; font-size: 11px; }
.plot-tooltip strong, .plot-tooltip span { display: block; }
.plot-tooltip span { color: #40536e; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
.advanced-section { margin-top: 24px; }
.advanced-section .charts-grid { margin-top: 0; }
.apexcharts-text tspan{ font-weight: 500; }

.data-panel { overflow: hidden; }
.table-wrap { overflow: auto; scrollbar-width: thin; scrollbar-color: #c0cce0 transparent; }
.table-wrap:focus-visible { outline-offset: -2px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
.data-table thead th { max-width: 140px; padding: 9px 12px; background: #f7f9fd; color: #5b6c85; border-block: 1px solid #e9eef5; font-size: 10.5px; font-weight: 700; line-height: 1.3; letter-spacing: .045em; text-transform: uppercase; white-space: normal; }
.data-table th:first-child, .data-table td:first-child { padding-left: 17px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 17px; }
.data-table td { max-width: 300px; padding: 10px 12px; border-bottom: 1px solid #edf0f6; color: #40516c; overflow: hidden; text-overflow: ellipsis; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafbff; }
.data-table .cell-name { font-weight: 700; color: var(--ink); }
.data-table .cell-with-info { position: relative; padding-right: 44px; }
.icon-info { position: absolute; right: 5px; top: 35%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 16px; min-height: 15px; padding: 0; border: 1px solid #95abf1; border-radius: 100px; background: #f7ffff; color: var(--blue); cursor: pointer; transition: background-color .2s ease; }
.icon-info:hover { background: var(--blue); color: var(--canvas); border-color: var(--blue); }
/*.icon-info .icon { width: 16px; height: 16px; }*/
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .negative { color: #b63e54; }
.data-table .positive { color: #087e70; }
.details-grid .data-table { table-layout: fixed; min-width: 478px; }
.details-grid .data-table th:nth-child(1) { width: 27%; }
.details-grid .data-table th:nth-child(2) { width: 25%; }
.details-grid .data-table th:nth-child(3) { width: 13%; }
.details-grid .data-table th:nth-child(4) { width: 21%; }
.details-grid .data-table th:nth-child(5) { width: 14%; }
.details-grid .data-table td { padding-block: 11px; }
.editable-panel th:last-child, .editable-panel td:last-child { position: sticky; right: 0; width: 1%; box-shadow: -1px 0 #e9eef5; }
.editable-panel td:last-child { background: #fff; }
.editable-panel .table-actions { justify-content: end; }
.data-panel > .table-wrap { margin-top: 14px; }
.table-sort { display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; max-width: 100%; padding: 0; text-align: inherit; white-space: normal; text-transform: inherit; letter-spacing: inherit; font: inherit; }
.table-sort .icon { flex: none; width: 12px; height: 12px; opacity: .65; }
.num .table-sort { justify-content: flex-end; }
[aria-sort='ascending'] .table-sort, [aria-sort='descending'] .table-sort { color: var(--blue-dark); }
[aria-sort='ascending'] .table-sort .icon { transform: rotate(180deg); }
.table-tools, .table-actions { display: flex; align-items: center; gap: 7px; }
.table-tools { flex-wrap: wrap; justify-content: space-between; padding: 13px 16px 0; }
.table-tools + .table-wrap { margin-top: 11px; }
.table-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.table-filters .select-control { max-width: min(60vw, 245px); }
.search-field { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); padding: 0 9px; min-height: 35px; border: 1px solid #e0e7f0; border-radius: 8px; background: #fff; }
.search-field .icon { width: 16px; height: 16px; }
.search-field input { min-width: 0; width: min(42vw, 205px); border: 0; background: none; outline: 0; color: var(--ink); font-size: 12px; }
.search-field:focus-within { border-color: #7395fc; box-shadow: 0 0 0 2px #7597ff35; }
.search-field input:focus-visible { outline: 0; }
.table-actions .icon-button { width: 29px; min-height: 29px; box-shadow: none; }
.table-actions .icon { width: 14px; height: 14px; }
.row-estimate { display: inline-block; color: #895b19; background: #fff5df; border-radius: 4px; font-size: 9px; font-weight: 740; line-height: 1.5; padding: 1px 4px; margin-left: 5px; vertical-align: 1px; }
.status-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 680; color: #536582; background: #edf2f8; border-radius: 4px; padding: 2px 6px; }
.status-label.green { color: #0b7261; background: #e9f7ef; }
.status-label.amber { color: #8c5a15; background: #fff4dc; }
.status-label.rose { color: #a72d45; background: #fff0f3; }
.status-label.blue { color: #2e53c4; background: #edf2ff; }
.status-label > span { height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 16px; gap: 7px; border-top: 1px solid #e9eef5; color: var(--muted); font-size: 11.5px; }
.pager { display: flex; align-items: center; gap: 7px; }
.pager .icon-button { width: 27px; min-height: 27px; }
.pager .icon-button .icon { width: 14px; height: 14px; }
.empty-state { display: grid; justify-items: center; gap: 5px; padding: 32px 16px; text-align: center; color: var(--muted); white-space: normal; }
.empty-state strong { color: var(--ink); }
.empty-state .tile-icon { margin-bottom: 4px; }
.empty-state .button { margin-top: 5px; }
.activity-list { list-style: none; padding: 3px 17px 8px; margin: 8px 0 0; }
.activity-list li { display: flex; align-items: center; gap: 9px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list .tile-icon { width: 30px; height: 30px; border-radius: 8px; }
.activity-list .tile-icon .icon { width: 15px; height: 15px; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy strong { display: block; font-size: 12px; font-weight: 680; overflow-wrap: anywhere; }
.activity-copy p { color: var(--muted); font-size: 11px; margin-top: 1px; overflow-wrap: anywhere; }
.activity-list time { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.tab-strip { display: flex; gap: 15px; padding: 0 1px; margin: 0 0 15px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-strip button { padding: 7px 2px 9px; color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab-strip button[aria-selected='true'] { color: var(--blue-dark); border-bottom-color: var(--blue); }
.module-body { display: grid; gap: 15px; animation: reveal .23s both; }
.module-body > .charts-grid { margin-top: 0; }
.metric-strip { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 12px 15px; border-radius: 9px; border: 1px solid #e0e7f2; background: #eef3fc; }
.strip-item { padding-right: 16px; border-right: 1px solid #d9e2f0; }
.strip-item:last-child { border-right: 0; }
.strip-item span { display: block; color: var(--muted); font-size: 11px; }
.strip-item strong { display: block; font-size: 15px; letter-spacing: -.02em; font-weight: 740; font-variant-numeric: tabular-nums; }
.storage-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 17px 16px; }

.dialog { width: min(680px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 28px); padding: 0; margin: auto; border: 1px solid #e0e7f0; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #111b3052; overflow: hidden; }
.dialog[open] { animation: dialog-in .22s ease-out both; }
.dialog::backdrop { background: #121d3a68; backdrop-filter: blur(2px); }
.dialog form { max-height: inherit; display: flex; flex-direction: column; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; color: var(--ink); font-weight: 740; letter-spacing: -.03em; }
.dialog-header h2 .formula { color: var(--blue); }
.dialog-header h2 .formula i { color: var(--faint); font-size: smaller; margin-right: 3px; }
.dialog-header .eyebrow { margin-bottom: 5px; }
.dialog-body { padding: 16px 21px; overflow: auto; min-height: 0; }
.note-body section + section { margin-top: 16px; }
.note-body h3 { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.note-body p { font-size: 13px; line-height: 1.6; }
.note-body p + p { margin-top: 8px; }
.panel-header:has(.note-trigger) { flex-wrap: wrap; }
.note-trigger { flex: none; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 21px; border-top: 1px solid var(--line); background: #f8faff; }
.small-dialog { width: min(450px, calc(100% - 24px)); }
.finance-detail-dialog { width: min(98%, calc(100% - 24px)); }
.finance-detail-dialog form { height: min(860px, calc(100dvh - 28px)); }
.finance-detail-dialog .dialog-header, .finance-detail-dialog .dialog-footer { flex: none; }
.addon-detail-dialog { width: min(960px, calc(100% - 24px)); }
.addon-detail-dialog form { height: min(880px, calc(100dvh - 28px)); }
.addon-detail-dialog .dialog-header, .addon-detail-dialog .dialog-footer { flex: none; }
.addon-detail-body { display: block; flex: 1 1 0; overflow: auto; }
.addon-detail-body > * + * { margin-top: 12px; }
.addon-detail-body .panel-body { padding: 12px 17px 17px; }
.addon-detail-body .panel-body .table-wrap { margin-top: 14px; }
.addon-detail-body .storage-panel > .metric-strip { margin: 12px 17px 0; }
.addon-detail-body .table-wrap { max-height: 320px; }
.finance-detail-body { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; overflow: hidden; }
.finance-detail-body .scenario-detail-body { display: flex; flex: 1 1 0; flex-direction: column; gap: 15px; min-height: 0; padding-top: 0; }
.finance-detail-body .scenario-detail-tables { display: flex; flex: 1 1 0; flex-direction: column; gap: 10px; min-height: 0; }
.finance-detail-body .scenario-detail-tabs { flex: none; }
.finance-detail-body .scenario-detail-panels { flex: 1 1 0; min-height: 0; }
.finance-detail-body .scenario-detail-panel:not([hidden]) { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.finance-detail-body .scenario-detail-section { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.finance-detail-body .scenario-detail-heading { flex: none; }
.finance-detail-body .scenario-detail-table-wrap { flex: 1 1 0; min-height: 0; overflow: auto; }
.finance-detail-body .scenario-detail-table td { max-width: 260px; }
.sim-chart-actions { display: flex; align-items: center; flex: none; gap: 7px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label, .form-field legend { color: #314461; font-size: 12px; font-weight: 680; }
.form-field .required { color: var(--red); }
.form-field input:not([type='checkbox']), .form-field select, .form-field textarea { width: 100%; min-height: 37px; padding: 8px 9px; border: 1px solid #dce5f1; border-radius: 7px; background: #fff; line-height: 1.25; font-size: 13px; }
.form-field textarea { resize: vertical; min-height: 62px; }
.form-field small { color: var(--muted); font-size: 11px; }
.form-field .check-line { display: flex; align-items: center; gap: 3px; min-height: 30px; }
.form-field .check-line i{ color: var(--red); font-style: normal; }
input[type='checkbox'] { accent-color: var(--blue); width: 15px; height: 15px; margin-right: 5px; }
.check-list { max-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; }
.check-list label { font-weight: 520; }
.addon-option { display: grid; grid-template-columns: minmax(0, 1fr) 89px; gap: 8px; padding: 3px 0; align-items: center; }
.addon-option input[type='number'] { font-size: 11px; min-height: 28px; }
.form-error { color: #aa344a; background: #fff0f3; border: 1px solid #f2d0d8; margin-top: 11px; border-radius: 7px; padding: 8px 10px; font-size: 12px; }
.command-dialog { width: min(520px, calc(100% - 24px)); margin: min(15vh, 110px) auto auto; }
.command-input { display: flex; gap: 8px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--muted); }
.command-input > input { flex: 1; min-width: 0; padding: 6px 2px; border: 0; outline: none; background: none; color: var(--ink); }
.command-input > input:focus-visible { outline: none; }
.command-results { max-height: min(49vh, 372px); overflow: auto; padding: 7px; }
.command-result { width: 100%; display: flex; align-items: center; text-align: left; gap: 8px; padding: 8px 9px; border-radius: 7px; color: #30425e; font-size: 12px; }
.command-result:hover, .command-result:focus-visible { color: var(--blue-dark); background: #eff4ff; }
.command-result .icon { width: 15px; height: 15px; }
.command-result strong { font-weight: 690; }
.command-result small { margin-left: auto; color: var(--muted); }
.notifications { position: fixed; z-index: 40; bottom: 19px; right: 18px; width: min(342px, calc(100vw - 36px)); display: grid; gap: 6px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #dce6f2; border-radius: 9px; background: #fff; box-shadow: 0 6px 22px #192f5024; color: #334866; font-size: 12px; animation: dialog-in .2s both; }
.toast > .icon { color: var(--teal); width: 16px; height: 16px; }
.toast.error > .icon { color: var(--red); }

.simulation-page .page-top { margin-bottom: 25px; }
.simulation-page .page-top h1 { font-size: clamp(28px, 3vw, 39px); }
.simulation-page .page-subtitle { margin-top: 8px; }
.simulation-page .page-actions .primary { padding-inline: 14px; }
.sim-stage { display: grid; grid-template-columns: minmax(275px, .94fr) minmax(0, 2.15fr); gap: 16px; align-items: start; }
.sim-controls { position: relative; padding: 0 18px 13px; animation: sim-enter .36s ease-out both; }
.sim-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 0 13px; border-bottom: 1px solid #e8edf5; }
.sim-panel-heading h2 { color: var(--ink); font-size: 16px; font-weight: 740; letter-spacing: -.025em; }
.sim-assumptions-title { display: flex; align-items: center; gap: 6px; }
.sim-assumptions-title .icon-info { position: static; flex: none; width: 17px; min-height: 17px; transform: none; }
.sim-assumptions-title .icon-info:focus-visible { outline: 2px solid #7897f9; outline-offset: 2px; }
.sim-panel-heading p { margin-top: 2px; color: var(--muted); font-size: 11.75px; }
.sim-control-icon { flex: none; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; color: #345ce2; background: #eef3ff; }
.sim-control-icon .icon { width: 16px; height: 16px; }
.sim-volumes { padding: 12px 0 11px; border-bottom: 1px solid #e8edf5; }
.sim-range-block + .sim-range-block { margin-top: 13px; }
.sim-range-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 27px; }
.sim-range-header > label:first-child, .sim-fee h3 { font-size: 12px; font-weight: 720; color: #283b58; }
.sim-range-value { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 24px; padding: 2px 6px; border: 1px solid #dee7ff; border-radius: 5px; background: #f0f4ff; color: #264cca; font-size: 11px; font-weight: 730; font-variant-numeric: tabular-nums; }
.sim-range-value:focus-within { border-color: #6590fc; }
.sim-range-value input { border: 0; outline: 0; padding: 0; background: transparent; width: 65px; text-align: center; }
.sim-range { display: block; width: 100%; height: 20px; margin: 3px 0 0; appearance: none; background: transparent; cursor: pointer; }
.sim-range::-webkit-slider-runnable-track { height: 4px; border-radius: 5px; background: linear-gradient(90deg, #3b67f4 var(--range-fill, 0%), #e3eaf5 var(--range-fill, 0%)); }
.sim-range::-moz-range-track { height: 4px; border-radius: 5px; background: linear-gradient(90deg, #3b67f4 var(--range-fill, 0%), #e3eaf5 var(--range-fill, 0%)); }
.sim-range::-webkit-slider-thumb { appearance: none; height: 14px; width: 14px; margin-top: -5px; border: 2px solid #345cef; background: white; border-radius: 50%; box-shadow: 0 0 0 3px #5780ff21; transition: box-shadow .15s; }
.sim-range::-moz-range-thumb { height: 11px; width: 11px; border: 2px solid #345cef; background: white; border-radius: 50%; box-shadow: 0 0 0 3px #5780ff21; transition: box-shadow .15s; }
.sim-range:hover::-webkit-slider-thumb, .sim-range:active::-webkit-slider-thumb { box-shadow: 0 0 0 5px #5780ff25; }
.sim-range:hover::-moz-range-thumb, .sim-range:active::-moz-range-thumb { box-shadow: 0 0 0 5px #5780ff25; }
.sim-range-ticks { display: flex; align-items: center; justify-content: space-between; color: #5e7191; font-size: 10.5px; }
.sim-presets { gap: 3px; }
.sim-presets button { padding: 2px 5px; margin-inline: -5px; border-radius: 4px; color: #61728f; font-size: 10.5px; line-height: 1.2; font-weight: 500; transition: background .18s, color .18s; }
.sim-presets button:hover { background: #f0f4fc; color: var(--blue-dark); }
.sim-presets button[aria-pressed='true'] { background: #eaf0ff; color: #2850d4; }
.sim-fees { display: grid; gap: 11px; padding: 12px 0 13px; }
.sim-fee h3 { margin-bottom: 5px; }
.sim-fee-options { display: grid; grid-template-columns: minmax(111px, .95fr) minmax(0, 1.05fr); gap: 6px; align-items: center; }
.sim-fee-options > * { min-width: 0; }
.sim-mode-select select, .sim-client-select select { font-size: 11px; }
.sim-unit-input { display: flex; align-items: center; min-width: 0; padding: 0 8px; gap: 5px; border: 1px solid #dfe7f2; border-radius: 7px; color: #647793; background: #f9fbff; box-shadow: var(--shadow); }
.sim-unit-input:focus-within { border-color: #7897f9; background: #fff; box-shadow: 0 0 0 2px #7897f914; }
.sim-unit-input > span:not(.visually-hidden) { color: #677998; font-size: 10px; font-weight: 700; }
.sim-unit-input input { width: 100%; min-width: 0; min-height: 32px; appearance: textfield; border: 0; padding: 0; outline: 0; color: #253953; background: transparent; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sim-unit-input input:focus-visible { outline: 0; }
.sim-unit-input input::-webkit-inner-spin-button, .sim-unit-input input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.sim-fee-base { display: grid; grid-template-columns: minmax(111px, .95fr) minmax(0, 1.05fr); align-items: center; gap: 6px; margin-top: 6px; }
.sim-fee-base > span, .sim-fee-zero { color: var(--muted); font-size: 10.5px; }
.sim-fee-base input { min-height: 29px; }
.sim-services { border: 1px solid #e2e9f5; border-radius: 8px; background: #f7faff; }
.sim-services summary, .sim-method summary { list-style: none; cursor: pointer; transition: color .18s, background .18s; }
.sim-services summary::-webkit-details-marker, .sim-method summary::-webkit-details-marker { display: none; }
.sim-services summary { display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 5px 8px; color: #304663; border-radius: inherit; }
.sim-services summary:hover, .sim-method summary:hover { color: #2853d9; background: #f0f5ff; }
.sim-service-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #e9f0ff; color: #365edc; }
.sim-service-icon .icon { width: 15px; height: 15px; }
.sim-service-copy { flex: 1; min-width: 0; }
.sim-service-copy strong, .sim-service-copy small { display: block; }
.sim-service-copy strong { font-size: 11.5px; font-weight: 710; }
.sim-service-copy small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.sim-details-arrow { width: 14px; height: 14px; color: #617495; transition: transform .2s ease; }
details[open] > summary .sim-details-arrow { transform: rotate(180deg); }
.sim-service-body { padding: 8px; border-top: 1px solid #e3ebf7; animation: sim-enter .2s ease-out both; }
.sim-client-select { width: 100%; }
.sim-service-body p { color: var(--muted); font-size: 10.5px; margin-block: 7px; }
.sim-service-options { max-height: 186px; overflow: auto; scrollbar-width: thin; padding: 0 4px 0 0; }
.sim-service-options > label { display: flex; align-items: flex-start; gap: 5px; padding: 6px 0; border-bottom: 1px solid #e8eef8; cursor: pointer; }
.sim-service-options input { flex: none; margin: 2px 3px; }
.sim-service-options > label:last-child { border-bottom: 0; }
.sim-service-options strong, .sim-service-options small { display: block; }
.sim-service-options strong { color: #31445d; font-size: 11px; font-weight: 650; }
.sim-service-options small { color: var(--muted); font-size: 10px; }
.sim-basis { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; color: #60728d; font-size: 10.5px; line-height: 1.43; }
.sim-basis .icon { margin-top: 1px; width: 13px; height: 13px; color: #5573ac; }

.sim-projection { padding-bottom: 12px; container-type: inline-size; animation: sim-enter .43s .04s ease-out both; }
.sim-band { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 2fr) minmax(124px, .88fr); align-items: center; gap: clamp(13px, 2.7vw, 38px); min-height: 137px; padding: 18px clamp(16px, 2.3vw, 30px); overflow: hidden; color: #fff; background: radial-gradient(ellipse at 100% 62%, #2f5ba170 0%, transparent 62%), linear-gradient(112deg, #101d39 0%, #162e5a 57%, #22477e 100%); }
.sim-band-pattern { position: absolute; z-index: -1; inset: -32% -12% -48% 45%; background-image: linear-gradient(#9abaff27 1px, transparent 1px), linear-gradient(90deg, #9abaff27 1px, transparent 1px); background-size: 23px 23px; mask-image: linear-gradient(95deg, transparent 0%, #000 71%); transform: rotate(-14deg); animation: sim-grid 1s .08s ease-out both; }
.sim-band-pattern::after { content: ''; position: absolute; width: 63%; aspect-ratio: 1; border-radius: 50%; right: 2%; bottom: 0; border: 1px solid #a1c1ff28; box-shadow: 0 0 0 26px #a1c1ff14, 0 0 0 52px #a1c1ff0d; }
.sim-band-label { display: flex; align-items: center; gap: 7px; color: #bdd0ef; font-size: 9.5px; font-weight: 730; letter-spacing: .12em; line-height: 1.3; }
.sim-band-label > span { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #70e0d0; box-shadow: 0 0 0 3px #70e0d027; }
.sim-big-number { display: block; font-size: clamp(28px, 6.2cqw, 52px); font-weight: 760; letter-spacing: -.054em; line-height: 1.14; white-space: nowrap; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sim-band-package { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d0ddf4; font-size: 11.5px; }
.sim-chart-heading { padding: 14px 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sim-play { min-height: 31px !important; background: #f0f4ff; border-color: #dee8ff; color: #234dce; }
.sim-play .icon { width: 15px; height: 15px; }
.sim-play.is-playing { color: #fff; background: #315bea; border-color: #315bea; }
.sim-play.is-playing:hover { color: #fff; background: #254bd2; border-color: #254bd2; }
.sim-legend { margin: 9px 17px 0; gap: 4px 13px; }
.sim-legend .legend-item { color: #4a5c7b; }
.sim-legend .legend-swatch { width: 8px; height: 8px; border-radius: 50%; }
.sim-plot { height: clamp(190px, 24vw, 263px); margin: 0 14px 0 7px; }
.plot-cursor { position: absolute; z-index: 2; left: 0; width: 0; border-left: 1px dashed var(--cursor-color, #5575de); pointer-events: none; transform: translateX(var(--cursor-x, 0px)); transition: transform .20s cubic-bezier(.23,.8,.31,1); }
.plot-cursor > span { position: absolute; left: -1px; top: 0; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--cursor-color, #5575de); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cursor-color, #5575de) 23%, transparent); transform: translate(-50%, calc(var(--cursor-y, 0px) - 5px)); transition: transform .20s cubic-bezier(.23,.8,.31,1); }
.projection-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: sim-line .64s ease-out both; }
.projection-point { animation: sim-points .26s .32s ease-out both; }
.sim-chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: -1px 17px 0; color: #627392; font-size: 10.5px; }
.sim-position { display: inline-flex; gap: 5px; align-items: center; }
.sim-position > span:first-child { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #7190ee; }
.sim-scale-ticks button { margin-inline: -3px; padding-inline: 3px; }
.sim-utilization { margin-top: 11px; }
.sim-work-label, .sim-work-field > span { color: #283b58; font-size: 11.5px; font-weight: 710; }
.sim-range-value input.sim-util-input { width: 32px; appearance: textfield; }
.sim-util-input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.sim-util-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; padding: 3px; border: 1px solid #e5ecf7; border-radius: 7px; background: #f6f8fd; }
.sim-util-presets button { min-height: 26px; padding: 2px; border: 1px solid transparent; border-radius: 5px; color: #594f68; font-size: 11px; font-weight: 700; transition: background .18s, color .18s, border-color .18s; }
.sim-util-presets button:hover { background: #edf2fe; color: #254ccc; }
.sim-util-presets button[aria-pressed='true'] { background: #fff; color: #264dcc; border-color: #dce6fb; box-shadow: 0 1px 2px #294aa31a; }
.sim-work-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.sim-work-fields-type { margin-top: 0; }
.sim-work-field { min-width: 0; display: grid; align-content: start; gap: 4px; }
.sim-work-field > span { line-height: 1.22; }
.sim-work-field input, .sim-work-field select { min-height: 32px; width: 100%; min-width: 0; padding: 4px 6px; border: 1px solid #dfe7f2; border-radius: 6px; background: #f9fbff; color: #304565; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-complexity { margin-top: 11px; }
.sim-workload-caption { display: flex; align-items: center; gap: 5px; padding-top: 8px; color: #385685; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.sim-workload-caption .icon { width: 14px; height: 14px; color: #5378df; }
.sim-disclosure { border-bottom: 1px solid #e8edf5; }
.sim-disclosure:last-child { border-bottom: 0; }
.sim-disclosure summary { display: flex; align-items: center; gap: 7px; min-height: 42px; padding-block: 5px; color: #2b4268; cursor: pointer; list-style: none; }
.sim-disclosure summary::-webkit-details-marker { display: none; }
.sim-disclosure summary:hover, .sim-disclosure[open] > summary { color: var(--blue-dark); }
.sim-disclosure summary > .icon:first-child { width: 16px; height: 16px; color: #5073db; }
.sim-disclosure summary > span { display: grid; flex: 1; }
.sim-disclosure summary strong { font-size: 11.5px; font-weight: 700; }
.sim-disclosure summary small { color: var(--muted); font-size: 10px; }
.sim-disclosure summary .sim-disclosure-label > span { display: flex; align-items: center; gap: 5px; }
.sim-disclosure summary .sim-disclosure-label .icon-info { position: static; flex: none; width: 15px; min-height: 15px; transform: none; }
.sim-disclosure summary .sim-disclosure-label .icon-info .icon { width: 12px; height: 12px; }
.sim-disclosure summary .sim-disclosure-label .icon-info:focus-visible { outline: 2px solid #7897f9; outline-offset: 2px; }
.sim-disclosure-body { padding: 3px 0 9px; animation: sim-enter .22s ease-out both; }
.sim-annual-controls { margin-top: 8px; }
.sim-band { grid-template-columns: minmax(0, 1.52fr) minmax(205px, 1fr); }
.sim-band-main { min-width: 0; }
.sim-big-number.sim-loss { color: #ffd0d5; }
.sim-big-number.sim-gain { color: #fff; }
.sim-band-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sim-band-split > div { min-width: 0; padding-left: 10px; border-left: 1px solid #bdcfff47; }
.sim-band-split strong { display: block; margin-top: 4px; color: #f0f5ff; font-size: clamp(15px, 1.55vw, 24px); letter-spacing: -.04em; line-height: 1.17; font-weight: 720; font-variant-numeric: tabular-nums; }
.sim-band-split .sim-band-label { font-size: 8.75px; line-height: 1.45; }
.sim-chart-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; margin: 9px 17px 1px; }
.sim-chart-tools .chart-legend { margin: 0; }
.sim-segment { display: inline-flex; align-items: center; padding: 2px; border: 1px solid #e3eafa; border-radius: 7px; background: #f4f7fd; }
.sim-segment button { padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; font-weight: 670; color: #566b8d; white-space: nowrap; transition: background .15s, color .15s; }
.sim-segment button[aria-pressed='true'] { background: #fff; border-color: #dce7fc; color: #2752cf; box-shadow: 0 1px 2px #294aa31a; }
.sim-operating-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 17px 0; border: 1px solid #e6edf7; border-radius: 8px; background: #f7faff; overflow: hidden; }
.sim-operating-strip > div { min-width: 0; padding: 8px clamp(6px, 1vw, 13px); }
.sim-operating-strip > div + div { border-left: 1px solid #e2eaf7; }
.sim-operating-strip span, .sim-operating-strip small { display: block; color: #526888; font-size: 10.5px; line-height: 1.25; }
.sim-operating-strip span { font-weight: 660; }
.sim-operating-strip small { color: #657897; font-size: 9.75px; }
.sim-operating-strip strong { display: block; color: #1e365b; font-size: clamp(13px, 2.7cqw, 19px); line-height: 1.2; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.03em; margin-block: 3px; }
.sim-operating-strip .sim-operating-total { background: #edf3ff; }
.sim-operating-total strong { color: #2950c5; }
.projection-dash { animation: sim-points .44s .12s ease-out both; }

.workforce-panel { margin-top: 16px; animation: sim-enter .43s .08s ease-out both; }
.workforce-panel .panel-header { align-items: center; }
.workforce-table { min-width: 660px; }
.workforce-table th[scope='row'] { padding: 7px 13px 7px 17px; border-bottom: 1px solid #edf0f6; color: #2f4260; font-weight: 660; }
.workforce-table td { padding-block: 7px; }
.workforce-table tfoot th[scope='row'], .workforce-table tfoot td { background: #f4f7fc; border-block: 1px solid #e7edf6; color: #244166; font-weight: 750; }
.workforce-table th.work-current, .workforce-table td.work-current { background: #eef3ff; color: #254cc4; font-weight: 750; border-left: 1px solid #e1eafa; }
.workforce-table tfoot .work-current { background: #e2ebff; }
.workforce-table .work-anchor-active { color: #2a51cb; background: #f8faff; }
.work-dept-index { display: inline-block; width: 20px; color: #6780a3; font-size: 10px; }
.work-external { color: #587099; font-size: 10.5px; font-weight: 630; }
.work-extra { display: inline-block; padding-inline: 4px; margin-left: 3px; border-radius: 4px; background: #dfe9ff; color: #2852d1; font-size: 9px; }
.work-extra.work-gap { background: #fff0d9; color: #8b521c; }
.work-scale-cell { display: inline-flex; gap: 6px; align-items: center; padding: 0; color: inherit; font-size: inherit; font-weight: inherit; white-space: nowrap; }
.work-scale-cell:hover, .work-scale-cell[aria-pressed='true'] { color: #2852d1; }
.work-footnote { margin: 0; padding: 8px 16px; border-top: 1px solid #eef2f7; color: #647793; font-size: 10.75px; }
.work-detail-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 16px; margin-top: 16px; align-items: start; }
.work-detail { overflow: hidden; }
.operating-analysis { animation: sim-enter .38s .08s ease-out both; }
.operating-analysis .panel-header { align-items: flex-start; }
.work-driver-stack { display: flex; height: 7px; margin: 13px 17px 5px; border-radius: 6px; background: #eaf0f9; overflow: hidden; }
.work-driver-stack > span { flex: 0 0 auto; width: var(--work-share, 0%); background: var(--cost-color); transition: width .37s cubic-bezier(.2,.75,.32,1); }
.work-driver-list { margin: 0 17px; }
.work-driver-list > div { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding-block: 5px; border-bottom: 1px solid #eef2f7; color: #48607e; font-size: 11.5px; }
.work-driver-list > div:last-child { border-bottom: 0; }
.work-driver-list dt { display: flex; align-items: center; gap: 7px; }
.work-driver-list dt::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--cost-color); }
.work-driver-list dd { margin: 0; color: #293f61; font-weight: 690; font-variant-numeric: tabular-nums; text-align: right; }
.work-step-list { margin: 7px 16px 4px; max-height: 313px; overflow-y: auto; scrollbar-width: thin; }
.work-step-icon { color: #8b581e; background: #fff5e6; }
.work-step-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 29px; gap: 8px; align-items: center; padding: 8px 2px 8px 6px; min-height: 49px; border-bottom: 1px solid #edf1f7; }
.work-step-row:last-child { border-bottom: 0; }
.work-step-copy { min-width: 0; }
.work-step-copy strong, .work-step-value strong { color: #2b435f; font-size: 12px; font-weight: 700; }
.work-step-copy p { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 1px; color: #637693; font-size: 10px; }
.work-step-copy p span:first-child { color: #865619; }
.work-step-value { text-align: right; }
.work-step-value strong { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-step-value small { display: block; color: #647793; font-size: 10px; }
.work-step-row .icon-button { width: 28px; height: 28px; min-height: 0; box-shadow: none; }
.work-step-row .icon-button .icon { width: 14px; height: 14px; }
.work-step-changed { animation: stage-highlight .65s ease-out both; }
.work-claims, .work-cost-list { margin: 7px 17px 0; }
.work-claims > div, .work-cost-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding-block: 4px; border-bottom: 1px solid #edf1f7; color: #4c6384; font-size: 11.25px; }
.work-claims dd, .work-cost-list dd { margin: 0; font-weight: 680; font-variant-numeric: tabular-nums; text-align: right; }
.work-claims .work-emphasis { padding: 7px 8px; margin-top: 5px; background: #eef3ff; color: #284fc7; border-radius: 5px; border: 0; font-weight: 700; }
.work-claim-panel { margin-top: 16px; }
.work-claim-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 9px 17px 15px; }
.work-claim-grid .work-claims { margin: 0; }
.work-reconcile { padding: 10px 12px; border-radius: 8px; background: #f0f5ff; color: #355278; }
.work-reconcile.work-has-gap { background: #fff7e8; color: #76572f; }
.work-reconcile-kicker { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; }
.work-reconcile-kicker .icon { width: 13px; height: 13px; }
.work-reconcile h3 { font-size: 16px; letter-spacing: -.025em; color: #2a4d8c; }
.work-has-gap h3 { color: #87551a; }
.work-reconcile dl { margin: 4px 0 5px; }
.work-reconcile dl > div { display: flex; justify-content: space-between; border-bottom: 1px solid #647b9b20; gap: 6px; padding-block: 3px; font-size: 11px; }
.work-reconcile dd { margin: 0; text-align: right; white-space: nowrap; font-weight: 700; }
.work-reconcile .work-reconcile-total { font-weight: 700; }
.work-reconcile p:last-child { font-size: 10.5px; }
.work-payroll-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding-block: 6px; }
.work-payroll-table { min-width: 450px; }
.work-payroll-table td { padding-block: 6px; }
.work-payroll-warning { margin-block: 10px 0; }
.work-cost-total strong { color: #2a456b; font-weight: 730; font-variant-numeric: tabular-nums; }
.work-cost-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin: 5px 17px 8px; padding: 7px 0 0; border-top: 1px solid var(--line); color: #385377; font-size: 12px; font-weight: 680; }
.work-cost-list { margin: 0; }
.work-cost-items { max-height: 200px; overflow: auto; scrollbar-width: thin; }
.work-cost-items small { color: #657997; font-size: 9.75px; }
.work-cost-list .work-emphasis { border: 0; color: #2851cb; }
.work-forecast { font-size: 9px; font-weight: 680; color: #875324; border-radius: 4px; padding: 1px 4px; background: #fff2df; }
.work-growth .work-growth-active > * { background: #eff4ff; }
.work-growth-table { min-width: 878px; }
.cost-step-field { padding: 6px 10px 9px; border: 1px solid #dce5f1; border-radius: 8px; }
.cost-step-head, .cost-step-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; align-items: center; gap: 7px; }
.cost-step-head { color: var(--muted); font-size: 10px; font-weight: 720; }
.cost-step-list { display: grid; gap: 5px; }
.cost-step-field > .button { justify-self: start; }
.cost-step-row input[readonly] { background: #f3f6fc; color: #647793; }

.sim-comparison { margin-top: 16px; animation: sim-enter .45s .10s ease-out both; }
.sim-comparison .panel-header { align-items: center; }
.sim-package-table { min-width: 940px; }
.sim-package-table th[scope='row'] { padding: 0 10px 0 16px; border-bottom: 1px solid #edf0f6; font-weight: 500; }
.sim-package-table tr:last-child th[scope='row'] { border-bottom: 0; }
.sim-package-button { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 8px 0; color: var(--ink); text-align: left; }
.sim-package-button:hover strong { color: var(--blue-dark); }
.sim-package-button strong { display: block; font-size: 12px; font-weight: 690; white-space: normal; }
.sim-package-button small { display: block; margin-top: 2px; color: #647692; font-size: 10px; font-weight: 550; }
.sim-package-dot { width: 7px; height: 7px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--package); }
.sim-package-table .sim-selected > *, .sim-package-table .sim-selected:hover > * { background: #f0f4ff; }
.sim-package-table .sim-selected > :first-child { box-shadow: inset 3px 0 #3763ea; }
.sim-details-grid { display: grid; grid-template-columns: minmax(0, 1.54fr) minmax(240px, 1fr); align-items: start; gap: 15px; margin-top: 16px; }
.sim-focus { width: min(40%, 156px); flex: 0 1 auto; }
.sim-matrix .panel-header { align-items: flex-start; }
.sim-matrix .panel-header .icon-info { position: static; flex: none; width: 17px; min-height: 17px; margin-top: 2px; transform: none; }
.sim-matrix .panel-header .icon-info:focus-visible { outline: 2px solid #7897f9; outline-offset: 2px; }
.sim-matrix .data-table { min-width: 339px; }
.sim-matrix .data-table th[scope='row'] { padding: 8px 7px 8px 16px; border-bottom: 1px solid #edf0f6; color: #506383; font-weight: 650; font-variant-numeric: tabular-nums; }
.sim-matrix .data-table tr:last-child th[scope='row'] { border-bottom: 0; }
.sim-matrix .data-table .sim-selected th[scope='row'] { color: #234bc4; background: #edf3ff; box-shadow: inset 3px 0 #4972ed; }
.sim-matrix .data-table td { padding-block: 0; padding-inline: 6px; }
.sim-matrix .data-table td.sim-matrix-cell { background: rgba(55, 101, 244, var(--heat)); }
.sim-matrix .data-table td.sim-matrix-cell:hover, .sim-matrix .data-table td.sim-matrix-cell:focus-within { background: #e6eeff; }
.sim-matrix .data-table .sim-rate-active { color: #234bc4; box-shadow: inset 0 2px #7999f4; }
.sim-matrix-cell button { display: block; width: 100%; min-height: 34px; padding: 4px 5px; text-align: right; font-size: 11.5px; font-weight: 650; }
.sim-service-total { list-style: none; margin: 7px 16px 0; padding: 0; }
.sim-service-total li { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid #eef2f8; }
.sim-service-total li > div { min-width: 0; }
.sim-service-total li > strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim-service-total strong { color: #2d425f; font-size: 11.5px; }
.sim-service-total small { display: block; margin-top: 2px; color: #61718b; font-size: 10px; }
.sim-service-total .sim-no-services { color: var(--muted); font-size: 11.5px; }
.sim-service-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; color: #536884; padding: 10px 16px 12px; font-size: 11px; }
.sim-service-sum strong { color: #183fbc; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sim-method { border-top: 1px solid #e8edf5; }
.sim-method summary { display: flex; gap: 6px; align-items: center; color: #415977; font-size: 11px; padding: 8px 16px; }
.sim-method summary > strong { flex: 1; font-weight: 650; }
.sim-method summary .icon { width: 14px; height: 14px; }
.sim-method > div { padding: 0 16px 12px; color: #5d6e86; font-size: 11px; animation: sim-enter .2s ease-out both; }
.sim-method p + p { margin-top: 6px; }

@container (max-width: 466px) {
  .sim-band { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; }
  .sim-band-split { max-width: 320px; }
}

@keyframes sim-enter { from { transform: translateY(7px); opacity: .38; } to { transform: translateY(0); opacity: 1; } }
@keyframes sim-grid { from { transform: translateX(24px) rotate(-14deg); opacity: .2; } to { transform: translateX(0) rotate(-14deg); opacity: 1; } }
@keyframes sim-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sim-points { from { opacity: 0; } to { opacity: 1; } }
@keyframes stage-highlight { from { background: #ffedcd; } to { background: transparent; } }
@keyframes reveal { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes save-pulse { to { opacity: .35; } }

/* Alur perencanaan, bacaan singkat, kartu skenario, dan penjelasan simulasi */
.flow-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.flow-step { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color .18s, transform .18s; }
.flow-step:hover { border-color: #c8d6fc; transform: translateY(-1px); }
.flow-index { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: #eef3ff; color: var(--blue-dark); font-size: 12px; font-weight: 750; }
.flow-copy { min-width: 0; }
.flow-copy strong { display: block; font-size: 12.5px; font-weight: 720; }
.flow-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.flow-step > .icon { margin-left: auto; width: 15px; height: 15px; color: #98a5b8; }
.plain-summary { margin-top: 17px; }
.plain-summary-list { margin: 12px 17px 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plain-summary-list li { position: relative; padding-left: 16px; color: #33445f; font-size: 12.75px; line-height: 1.55; }
.plain-summary-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #4872f9; }
.plain-summary-list strong { color: var(--ink); font-weight: 720; }
.plain-summary-note { display: flex; align-items: flex-start; gap: 7px; margin: 12px 17px 15px; padding: 9px 11px; border-radius: 8px; background: #f6f8fc; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.plain-summary-note .icon { width: 18px; height: 18px; }
.plain-note { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; padding: 9px 12px; border: 1px solid #e3eaf5; border-radius: 8px; background: #f6f8fc; color: #4a5b76; font-size: 11.75px; line-height: 1.5; }
.plain-note .icon { width: 18px; height: 18px; color: var(--blue-dark); }
.scenario-flow { margin-bottom: 17px; }
.scenario-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 13px 17px 17px; }
.scenario-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.scenario-card.is-active { border-color: #b9cbfa; background: #f4f7ff; box-shadow: 0 0 0 1px #b9cbfa55; }
.scenario-card-head { display: flex; align-items: flex-start; gap: 9px; }
.scenario-step { flex: none; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #eef3ff; color: var(--blue-dark); font-size: 11.5px; font-weight: 750; }
.scenario-card-head h3 { font-size: 13.5px; font-weight: 730; letter-spacing: -.015em; }
.scenario-card-head p { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.scenario-tag { margin-left: auto; flex: none; padding: 2px 7px; border-radius: 999px; background: #e7f6ef; color: #0b7261; font-size: 10px; font-weight: 720; white-space: nowrap; }
.scenario-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.scenario-card-metrics dt { color: var(--muted); font-size: 10.5px; font-weight: 650; }
.scenario-card-metrics dd { margin: 2px 0 0; font-size: 14px; font-weight: 740; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scenario-card-read { color: #3c4d68; font-size: 11.75px; line-height: 1.5; }
.scenario-card-read strong { color: var(--ink); }
.scenario-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.scenario-card-actions .button { font-size: 11.5px; }
.scenario-detail-body { display: grid; gap: 13px; padding-top: 11px; }
.scenario-detail-summary { flex: none; padding: 10px 11px; border: 1px solid #e3eaf5; border-radius: 9px; background: #f8faff; }
.scenario-detail-summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.scenario-detail-summary-heading h3 { color: var(--ink); font-size: 12px; font-weight: 740; }
.scenario-detail-summary-heading span { min-width: 0; color: var(--muted); font-size: 10.5px; text-align: right; overflow-wrap: anywhere; }
.scenario-detail-metrics .metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; margin: 0; padding: 0; border: 0; background: transparent; }
.scenario-detail-metrics .strip-item { min-width: 0; padding: 9px 10px; border: 1px solid #e7edf7; border-radius: 8px; background: #fff; }
.scenario-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.scenario-detail-metrics .scenario-metric-label span { min-width: 0; }
.scenario-detail-metrics .icon-info { position: static; flex: none; width: 17px; min-height: 17px; transform: none; }
.scenario-detail-metrics .icon-info:focus-visible { outline: 2px solid #7897f9; outline-offset: 2px; }
.scenario-detail-metrics .strip-item span { font-size: 9.5px; }
.scenario-detail-metrics .strip-item strong { font-size: 11.5px; overflow-wrap: anywhere; }
.scenario-detail-summary-note { margin: 8px 1px 0; color: #4a5b76; font-size: 10.5px; line-height: 1.45; }
.scenario-detail-tables { display: grid; gap: 10px; }
.scenario-detail-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: thin; }
.scenario-detail-tab { flex: none; padding: 7px 10px; border-radius: 7px; color: #536582; font-size: 11px; font-weight: 680; white-space: nowrap; transition: all .2s ease; }
.scenario-detail-tab:hover { color: var(--blue-dark); background: #f0f4fc; }
.scenario-detail-tab[aria-selected='true'] { color: var(--blue-dark); background: #eaf0ff; box-shadow: inset 0 -2px var(--blue); }
.scenario-detail-tab:focus-visible { outline: 2px solid #7897f9; outline-offset: 1px; }
.scenario-detail-panels, .scenario-detail-panel { min-width: 0; }
.scenario-detail-section { min-width: 0; border: 1px solid #e5eaf3; border-radius: 9px; background: #fff; overflow: hidden; }
.scenario-detail-heading { padding: 10px 12px 8px; }
.scenario-detail-heading h4 { color: var(--ink); font-size: 12px; font-weight: 740; }
.scenario-detail-heading p { margin-top: 3px; color: var(--muted); font-size: 10.75px; line-height: 1.45; }
.scenario-detail-table { font-size: 12px; max-height: 100vh; overflow-y: auto; }
.scenario-detail-table thead { position: sticky; top: 0; z-index: 2; }
.scenario-detail-table td { max-width: 300px; white-space: normal; line-height: 1.4; }
.scenario-detail-table td.num { white-space: nowrap; font-size: 13px; }
.scenario-detail-table tbody tr:last-child td { border-bottom: 0; }
.scenario-detail-table tfoot { position: sticky; bottom: 0; z-index: 3; }
.scenario-detail-table tfoot th, .scenario-detail-table tfoot td { background: #edf3fd; color: var(--ink); font-weight: 740; border-top: 1px solid #d6e0ef; }
.scenario-detail-table tfoot .scenario-detail-total-note { color: var(--muted); font-size: 10px; font-weight: 520; line-height: 1.4; text-align: left; white-space: normal; }
.scenario-formulas { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid #dfe8f7; border-radius: 9px; background: #f7faff; }
.scenario-formulas p { color: #445572; font-size: 10.75px; line-height: 1.5; }
.scenario-formulas strong { color: var(--ink); }
.sim-read { margin: 10px 17px 15px; padding: 11px 13px; border: 1px solid #e6edf7; border-radius: 8px; background: #f7faff; }
.sim-read-head { display: flex; align-items: center; gap: 7px; color: #33445f; font-size: 11.5px; font-weight: 720; }
.sim-read-head .icon { width: 14px; height: 14px; color: var(--blue-dark); }
.sim-read-head strong { margin-left: auto; color: var(--blue-dark); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.sim-read-steps { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; color: #43536e; font-size: 11.75px; line-height: 1.5; }

@media (max-width: 1220px) {
  :root { --sidebar-width: 218px; --sidebar-panel: 218px; --gutter: 24px; }
  .nav-item { font-size: 12px; gap: 8px; }
  .metric-card { padding-inline: 12px; }
  .chart-primary, .details-grid { grid-template-columns: minmax(0, 1.47fr) minmax(280px, 1fr); }
}
@media (max-width: 1000px) {
  .app-shell, body.sidebar-collapsed .app-shell { grid-template-columns: minmax(0, 1fr); transition: none; }
  .workspace { grid-area: 1 / 1; }
  .sidebar-slot { position: fixed; inset: 0 auto 0 0; width: 245px; height: 100vh; height: 100dvh; transform: translateX(-100%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s; }
  .sidebar-slot:has(.sidebar.open) { visibility: visible; transform: translateX(0); pointer-events: auto; }
  .sidebar, body.sidebar-collapsed .sidebar { width: 100%; visibility: visible; transition: none; }
  .sidebar-overlay:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 25; width: 100%; background: #131e3b62; }
}
@media (max-width: 710px) {
  :root { --gutter: 15px; }
  .topbar-inner { height: 56px; }
  .topbar-actions { gap: 8px; }
  .topbar-divider, .command-trigger span, .command-trigger kbd { display: none; }
  .command-trigger { min-width: 34px; justify-content: center; padding: 0; }
  .breadcrumbs { gap: 5px; }
  .breadcrumbs a .icon { display: none; }
  .breadcrumbs .menu-button { margin-right: 4px; }
  .workspace-main { padding-top: 22px; }
  .charts-grid, .details-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 13px; }
  .flow-strip { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .scenario-cards { grid-template-columns: minmax(0, 1fr); padding-inline: 14px; }
  .kpi-grid, .kpi-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-value { font-size: clamp(19px, 4vw, 27px); }
  .donut-legend { margin-inline: 15px; }
  .chart-surface.wide-chart { height: 225px; }
  .chart-primary .chart-panel:first-child { min-height: 0; }
  .sim-stage, .sim-details-grid, .work-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .work-claim-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sim-plot { height: 223px; }
  .sim-chart-heading { align-items: flex-start; }
  .sim-chart-actions { flex-wrap: wrap; justify-content: flex-end; }
  .sim-big-number { font-size: clamp(27px, 6vw, 42px); }
  .sim-band { gap: 12px; min-height: 115px; }
  .simulation-page .page-top { margin-bottom: 17px; }
}
@media (max-width: 425px) {
  .breadcrumbs .crumb-arrow, #crumb-page { display: none; }
  .breadcrumbs a { font-size: 12px; }
  .save-status { font-size: 10.5px; padding-inline: 7px; }
  .context-controls { gap: 6px; }
  .scenario-control { width: 149px; }
  .year-control { width: 114px; }
  .metric-head { font-size: 11px; gap: 6px; }
  .metric-head .tile-icon { width: 26px; height: 26px; }
  .metric-head .icon { width: 15px; height: 15px; }
  .metric-card { padding: 10px; }
  .metric-note { font-size: 10.5px; }
  .panel-header { padding-inline: 12px; }
  .chart-panel .panel-header { padding-inline: 14px; }
  .chart-legend { gap: 3px 10px; margin-left: 13px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sim-controls { padding-inline: 14px; }
  .sim-band { grid-template-columns: minmax(0, 1fr); padding: 13px; }
  .sim-band-split { gap: 5px; }
  .sim-band-split div { padding-inline: 6px; }
  .sim-band-label { font-size: 8px; letter-spacing: .07em; }
  .sim-band-package { font-size: 10px; }
  .sim-chart-heading, .sim-chart-foot, .sim-chart-tools, .sim-operating-strip { margin-inline: 12px; }
  .sim-read { margin-inline: 12px; }
  .sim-read-head { flex-wrap: wrap; }
  .sim-read-head strong { margin-left: 0; }
  .sim-chart-heading { padding-inline: 0; }
  .sim-chart-actions { gap: 4px; }
  .sim-legend { margin-right: 12px; }
  .sim-play { padding-inline: 6px !important; font-size: 11px; }
}
.storage-panel .metric-strip { margin: 12px 17px 0; }
.storage-panel .table-wrap { margin-top: 12px; }
.storage-panel .plain-note { margin: 12px 17px 15px; }
.storage-table tfoot th, .storage-table tfoot td { background: #f4f7fc; border-block: 1px solid #e7edf6; color: #244166; font-weight: 750; }
.storage-services { margin: 12px 17px 0; padding: 11px 12px; border: 1px solid #e2eaf6; border-radius: 8px; background: #f7faff; }
.storage-service-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 8px; }
.storage-service-head strong { color: #223b63; font-size: 12px; }
.storage-service-head small { color: var(--muted); font-size: 10px; }
.storage-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 7px 12px; }
.storage-service-grid span { display: block; color: #60728d; font-size: 10px; }
.storage-service-grid strong { display: block; margin-top: 2px; color: #1f3c66; font-size: 12px; font-variant-numeric: tabular-nums; }
.storage-service-grid .negative { color: #b63e54; }
.storage-service-grid .positive { color: #087e70; }
.sim-storage-block { margin: 4px 0 0; border-top: 1px solid #e8eef8; }
.sim-storage-title { display: flex; align-items: center; gap: 7px; margin: 9px 16px 0; }
.sim-storage-title .icon { width: 15px; height: 15px; color: #5073db; }
.sim-storage-title strong, .sim-storage-title small { display: block; }
.sim-storage-title strong { color: #2d425f; font-size: 11.5px; font-weight: 710; }
.sim-storage-title small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.sim-storage-block .sim-basis { margin: 0 16px 10px; padding: 7px 0 0; border-top: 1px dashed #e1e9f5; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .simulation-view *, .simulation-view *::after { animation-delay: 0s !important; }
}