/* Business case simulator: layout and finance-specific pieces on top of the SEMTAR design kit (tokens.css, components.css).
   Contrast values in comments are WCAG ratios against the surface they sit on. */
:root {
  --ch-pos: #2f7d5b; --ch-neg: #b4424d; --ch-total: var(--sm-brand-navy);
  --bc-input-bg: var(--sm-surface); --bc-grid: #e3e8ef; --bc-axis: var(--sm-border-control);
  --sidebar: 216px; --top: 64px;
}
[data-sm-theme="dark"] {
  --ch-pos: #5cb88f; --ch-neg: #e0707a; --ch-total: var(--sm-brand-blue);
  --bc-input-bg: var(--sm-canvas); --bc-grid: #1d3a5f;
}
body { margin: 0; min-height: 100vh; }
h1 { font-size: var(--sm-font-section); line-height: 1.15; margin: 0; font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: var(--sm-font-lead); margin: 0; font-weight: 650; }
h3 { font-size: 16px; margin: 0 0 12px; font-weight: 650; }
code { font-family: var(--sm-font-mono); font-size: 13px; background: var(--sm-surface-subtle); padding: 1px 5px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--sm-surface); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* top bar: deep navy; select boundary #6a83a8 = 4.75:1 */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 20px; padding: 0 20px 0 24px; background: var(--sm-brand-deep); color: #fff; }
.topbar .sm-brand { font-size: 24px; }
.app-name { font-weight: 550; color: #c9d6ea; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.top-selects { display: flex; gap: 16px; margin-left: auto; }
.top-selects label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c9d6ea; }
.top-selects select { max-width: 240px; background: #0b2147; color: #fff; border-color: #6a83a8; }
.top-selects select:hover { border-color: #c9d6ea; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.save-btn { background: transparent; color: #fff; border-color: #6a83a8; margin: 0 6px; }
.save-btn:hover { background: rgba(255,255,255,.1); border-color: #c9d6ea; }
.top-actions [data-act="theme"] { margin-left: 4px; padding-left: 4px; border-left: 1px solid rgba(255,255,255,.16); border-radius: 0; }
.sm-input.compact { min-height: 36px; padding: 6px 10px; width: auto; }

/* shell: navy sidebar in both themes (kit DESIGN.md), white work plane */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidenav { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; padding: 20px 12px 32px; background: var(--sm-brand-navy); }
.nav-group { margin: 20px 12px 6px; font-size: 12px; font-weight: 650; color: #9fb3cf; text-transform: uppercase; letter-spacing: .08em; } /* 7.24:1 */
.nav-group:first-child { margin-top: 0; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 4px; color: #dbe5f3 !important; text-decoration: none; font-size: 14px; font-weight: 550; transition: background var(--sm-duration-fast) var(--sm-ease); } /* 12.2:1 */
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item[aria-current="page"] { background: rgba(99,183,237,.16); color: #fff !important; box-shadow: inset 3px 0 0 var(--sm-brand-blue); }
.nav-item .sm-icon { color: #9fb3cf; }
.nav-item[aria-current="page"] .sm-icon { color: var(--sm-brand-blue); }
.sidenav :focus-visible { outline-color: #91cef5; }
main { padding: 28px 24px 64px; max-width: calc(var(--sm-content-width) + 48px); width: 100%; outline: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.lead { margin: 8px 0 0; color: var(--sm-text-muted); max-width: 70ch; }
.block { margin-top: 20px; }
.block-tight { margin-top: 4px; }
.sm-panel-header { padding: 16px 24px; }
.sm-panel-header h2 { font-size: 16px; letter-spacing: -.01em; }
.sm-panel-header .sm-help { margin-top: 2px; }
.sm-panel-body { padding: 20px 24px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.two > .block { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 20px; }
.span2 { grid-column: 1 / -1; }
.sm-alert { margin-top: 16px; }
.inline-select { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.pad { padding: 16px 24px; margin: 0; }

/* hero: imagery only on entry and overview surfaces */
.hero { position: relative; border-radius: var(--sm-radius-panel); overflow: hidden; min-height: 188px; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(90deg, rgba(0,19,51,.96) 0%, rgba(0,19,51,.84) 48%, rgba(0,19,51,.28) 100%), url("assets/hero-airframe.webp") center right / cover no-repeat, var(--sm-brand-deep); }
.hero-team { background: linear-gradient(90deg, rgba(0,19,51,.96) 0%, rgba(0,19,51,.8) 50%, rgba(0,19,51,.2) 100%), url("assets/engineering-team.webp") center / cover no-repeat, var(--sm-brand-deep); }
.hero-text { padding: 28px 36px; max-width: 760px; }
.hero h1 { font-size: 32px; color: #fff; margin-top: 6px; }
.hero p { color: #d7e2f2; margin: 8px 0 0; }
.eyebrow { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--sm-brand-blue); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; font-size: 14px; color: #c9d6ea; }
.hero-meta b { color: #fff; }

/* KPI cards: number and unit set apart, no decoration */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.kpi { background: var(--sm-surface); border: 1px solid var(--sm-border); border-radius: var(--sm-radius-panel); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.kpi-label { font-size: 13px; font-weight: 550; color: var(--sm-text-muted); }
.kpi-value { font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-value small { font-size: 14px; font-weight: 550; color: var(--sm-text-muted); margin-left: 5px; letter-spacing: 0; }
.kpi-text { font-size: 20px; }
.kpi-note { font-size: 13px; color: var(--sm-text-muted); }
.kpi-criteria .sm-badge { justify-self: start; font-size: 14px; padding: 2px 10px; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks .sm-icon { width: 16px; height: 16px; }
.checks .pass .sm-icon { color: var(--sm-success-text); }
.checks .fail .sm-icon { color: var(--sm-danger-text); }

/* tables: white header with a strong rule, quiet rows */
.sm-table thead th { background: var(--sm-surface); color: var(--sm-text-muted); font-size: 12px; font-weight: 650; letter-spacing: .02em; border-bottom: 1px solid var(--sm-text); padding-top: 12px; padding-bottom: 8px; vertical-align: bottom; }
.sm-table thead th small { font-weight: 550; }
.sm-table tbody th { background: none; font-size: 14px; font-weight: 400; color: var(--sm-text); text-align: left; }
.sm-table tbody tr:hover { background: color-mix(in srgb, var(--sm-selected) 55%, transparent); }
.sm-table .sm-numeric { white-space: nowrap; }
.sm-table :is(th, td):first-child { padding-left: 24px; }
.sm-table :is(th, td):last-child { padding-right: 20px; }
.sm-table.grid :is(th, td) { padding-top: 6px; padding-bottom: 6px; padding-left: 8px; padding-right: 8px; }
.sm-table.grid :is(th, td):first-child { padding-left: 24px; }
.sm-table.grid :is(th, td):last-child { padding-right: 16px; }
.sm-table.grid thead th { white-space: nowrap; padding-top: 12px; padding-bottom: 8px; }
.sm-table tfoot :is(th, td) { background: var(--sm-surface); font-weight: 650; border-top: 1px solid var(--sm-text); border-bottom: 0; font-size: 13px; padding-top: 9px; padding-bottom: 9px; text-align: left; }
.sm-table tfoot td.sm-numeric { text-align: right; }
.sm-table tfoot tr + tr :is(th, td) { border-top: 1px solid var(--sm-border); }
.sm-table td small, .sm-table th small { display: block; color: var(--sm-text-muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.kpi-table td:first-child { white-space: nowrap; }
/* scroll cue on wide tables */
.sm-table-wrap { overflow: auto; background: linear-gradient(to left, var(--sm-surface) 30%, transparent) right / 24px 100% no-repeat local,
  linear-gradient(to left, rgba(0,19,51,.12), transparent) right / 10px 100% no-repeat scroll; }
.sm-table-wrap:focus-visible { outline-offset: -3px; }

/* editable cells: white well with a control border, 3.76:1 light, 5.27:1 dark */
.col-label { min-width: 200px; }
.col-label .cell-text { min-width: 200px; }
.cell { width: 88px; min-width: 9ch; min-height: 34px; padding: 5px 8px; border: 1px solid var(--sm-border-control); border-radius: 3px; background: var(--bc-input-bg);
  color: var(--sm-link); font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; transition: border-color var(--sm-duration-fast) var(--sm-ease); }
.cell[type="number"] { padding-right: 10px; appearance: textfield; -moz-appearance: textfield; }
.cell::-webkit-inner-spin-button, .cell::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cell:hover { border-color: var(--sm-text); }
.cell:focus-visible { outline: 2px solid var(--sm-focus); outline-offset: 1px; border-color: var(--sm-focus); }
.cell::placeholder { color: var(--sm-text-muted); opacity: 1; font-style: italic; font-weight: 400; } /* 6.49:1 */
.cell-text { width: 100%; text-align: left; color: var(--sm-text); }
.cell-note { font-size: 12px; color: var(--sm-text-muted); font-weight: 400; min-height: 26px; margin-top: 3px; border: 0; border-bottom: 1px dashed var(--sm-border-control); border-radius: 0; background: transparent; padding-left: 0; }
.cell-note:hover { border-bottom-color: var(--sm-text); }
.cell-formula { width: 150px; text-align: left; font-family: var(--sm-font-mono); font-size: 12.5px; color: var(--sm-text); font-weight: 400; }
.cell-id { width: 120px; text-align: left; font-family: var(--sm-font-mono); font-size: 12.5px; color: var(--sm-text); }
.cell-short { width: 110px; text-align: left; }
select.cell { width: 116px; text-align: left; color: var(--sm-text); }
.cell.is-invalid { border-color: var(--sm-danger-text); background: var(--sm-danger-bg); color: var(--sm-danger-text); }
.cell-error { display: block; color: var(--sm-danger-text); font-size: 12px; max-width: 180px; }
.status-select { font-weight: 650; font-size: 13px; }
.status-select[data-tone="success"] { background: var(--sm-success-bg); color: var(--sm-success-text); }
.status-select[data-tone="warning"] { background: var(--sm-warning-bg); color: var(--sm-warning-text); }
.status-select[data-tone="danger"] { background: var(--sm-danger-bg); color: var(--sm-danger-text); }
.status-select[data-tone="info"] { background: var(--sm-info-bg); color: var(--sm-info-text); }
td.computed { color: var(--sm-text-muted); padding-right: 17px !important; }
td.computed::before { content: "ƒ"; font-size: 11px; margin-right: 6px; opacity: .7; font-style: italic; }
td.total { font-weight: 650; white-space: nowrap; }
tr.is-excluded > td { opacity: .5; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.empty-row { text-align: center; color: var(--sm-text-muted); padding: 32px !important; }
.empty-row .sm-button { margin-left: 8px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.swatch.big { width: 14px; height: 14px; margin: 0; }
tr.is-current td { background: var(--sm-selected); }

/* business case sheet: accounting rules */
.sheet :is(th, td) { padding: 7px 12px; }
.sheet tbody th { white-space: nowrap; }
.sheet tr.sub th { padding-left: 40px; color: var(--sm-text-muted); font-size: 13px; }
.sheet tr.sub td { color: var(--sm-text-muted); font-size: 13px; }
.sheet tr.strong :is(th, td) { font-weight: 650; border-top: 1px solid var(--sm-text); }
.sheet tr.key :is(th, td) { background: var(--sm-selected); border-top: 1px solid var(--sm-text); }
.sheet tr.key + tr :is(th, td) { border-top: 0; }
.sheet tr.net :is(th, td) { border-bottom: 3px double var(--sm-text); }
.sheet tr.sec th { background: none; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sm-text-muted); font-weight: 650; padding-top: 18px; border-bottom: 1px solid var(--sm-border); }
.sheet :is(td, th):last-child:not([colspan]) { border-left: 1px solid var(--sm-border); background: color-mix(in srgb, var(--sm-surface-subtle) 50%, transparent); font-weight: 650; }
.sheet tbody tr:hover { background: transparent; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sm-table .chips { flex-wrap: nowrap; min-width: 150px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 9px; border: 1px solid var(--sm-border-control); border-radius: 13px; background: var(--sm-surface); color: var(--sm-text-muted); font-size: 12px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip:hover { border-color: var(--sm-text); }
.chip[aria-pressed="true"] { background: var(--sm-selected); color: var(--sm-text); border-color: var(--sm-action); }
.chip[aria-pressed="true"]::after { content: "✓"; font-size: 11px; }
.chip-all { font-size: 12px; color: var(--sm-text-muted); white-space: nowrap; }
.cell.narrow { width: 64px; min-width: 0; }

/* icon buttons */
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--sm-text-muted); cursor: pointer; }
.icon-btn:hover { background: var(--sm-surface-subtle); color: var(--sm-text); }
.icon-btn:focus-visible { outline-offset: 1px; }
.icon-btn .sm-icon { width: 18px; height: 18px; }
.icon-btn.on-dark { color: #c9d6ea; width: 44px; height: 44px; }
.icon-btn.on-dark:hover { background: rgba(255,255,255,.1); color: #fff; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn[aria-pressed="true"] { color: var(--sm-brand-blue); }
.btn-danger-outline { color: var(--sm-danger-text) !important; border-color: var(--sm-danger-text) !important; background: var(--sm-surface) !important; }
.btn-danger-outline:hover { background: var(--sm-danger-bg) !important; }

/* scenarios */
details.scen > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 24px; }
details.scen > summary::-webkit-details-marker { display: none; }
details.scen > summary::before { content: "›"; font-size: 20px; color: var(--sm-text-muted); transition: transform var(--sm-duration-fast); width: 12px; }
details.scen[open] > summary::before { transform: rotate(90deg); }
details.scen[open] > summary { border-bottom: 1px solid var(--sm-border); }
details.scen > summary:hover { background: color-mix(in srgb, var(--sm-selected) 55%, transparent); }
.scen-name { font-weight: 650; font-size: 16px; }
.scen-kpi { margin-left: auto; font-size: 13px; color: var(--sm-text-muted); font-variant-numeric: tabular-nums; }
details.scen .two { margin-top: 24px; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); }
details.scen .sm-table :is(th, td):first-child { padding-left: 8px; }
details.scen .sm-toolbar { margin-top: 24px; }
details.scen .sm-toolbar .btn-danger-outline { margin-left: auto; }
input.colour { padding: 4px; width: 80px; }
details.help > summary { padding: 14px 24px; cursor: pointer; font-weight: 650; }

/* dashboards */
.dash-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 4px; }
.dash-name { min-width: 280px; }
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; align-items: start; }
.widget.wide { grid-column: 1 / -1; }
.widget-tools { display: flex; gap: 2px; }
.widget-body { padding: 4px 0 8px; }
.widget-edit { padding: 16px 24px; background: var(--sm-surface-subtle); border-bottom: 1px solid var(--sm-border); }
.widget-edit .sm-label { margin: 16px 0 8px; display: block; }
.widget-edit .sm-toolbar { margin-top: 16px; }

/* charts */
.ch { margin: 0; padding: 12px 24px 16px; overflow-x: auto; }
.ch svg { width: 100%; height: auto; display: block; overflow: visible; min-width: 520px; }
.ch.wide svg { min-width: 760px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--sm-text-muted); padding: 0 0 10px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ch-legend i { display: inline-block; background: var(--c); position: relative; }
.ch-legend i.ln { width: 16px; height: 2.5px; border-radius: 2px; }
.ch-legend i.ln::after { content: ""; position: absolute; left: 5px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ch-legend i.ln.dashed { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
.ch-legend i.sq { width: 10px; height: 10px; border-radius: 2px; }
.ch-grid { stroke: var(--bc-grid); stroke-width: 1; shape-rendering: crispEdges; }
.ch-axis { stroke: var(--bc-axis); stroke-width: 1; shape-rendering: crispEdges; }
.ch-zero { stroke: var(--bc-axis); stroke-width: 1.5; }
.ch-tick { fill: var(--sm-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-unit { fill: var(--sm-text-muted); font-size: 12px; font-weight: 650; }
.ch-cat { fill: var(--sm-text); font-size: 13px; }
.ch-cat.strong { font-weight: 650; }
.ch-val { fill: var(--sm-text); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ch-val.strong { font-weight: 700; font-size: 13px; }
.ch-note { fill: var(--sm-text); font-size: 12.5px; font-weight: 550; }
.ch-note.neg { fill: var(--ch-neg); }
.ch-mark { stroke: var(--sm-text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-peak { fill: none; stroke: var(--ch-neg); stroke-width: 1.5; }
.ch-dot { stroke: var(--sm-surface); stroke-width: 1.5; }
.ch-area-pos { fill: var(--ch-pos); opacity: .12; }
.ch-area-neg { fill: var(--ch-neg); opacity: .14; }
.ch-pos { fill: var(--ch-pos); } .ch-neg { fill: var(--ch-neg); } .ch-total { fill: var(--ch-total); }
.ch-link { stroke: var(--bc-axis); stroke-width: 1; shape-rendering: crispEdges; }
.ch-empty p { color: var(--sm-text-muted); font-size: 14px; }

/* illustrations */
.flow { width: 100%; height: auto; display: block; }
.flow-node rect { fill: var(--sm-surface-subtle); stroke: var(--sm-border-control); }
.flow-end rect { fill: var(--sm-brand-navy); stroke: var(--sm-brand-navy); }
.flow-t { fill: var(--sm-text); font-size: 14px; font-weight: 650; }
.flow-s { fill: var(--sm-text-muted); font-size: 11px; }
.flow-end .flow-t, .flow-end .flow-s { fill: #fff; }
.flow-line { fill: none; stroke: var(--sm-border-control); stroke-width: 1.5; }
.flow-arrow { fill: var(--sm-border-control); }
[data-sm-theme="dark"] .flow-end rect { fill: var(--sm-brand-blue); stroke: var(--sm-brand-blue); }
[data-sm-theme="dark"] .flow-end .flow-t, [data-sm-theme="dark"] .flow-end .flow-s { fill: var(--sm-brand-deep); }
.sm-empty { margin-top: 16px; }
.sm-empty h2 { margin-top: 12px; }
.empty-art { width: 200px; height: auto; }
.ea-card { fill: var(--sm-surface-subtle); stroke: var(--sm-border); }
.ea-card2 { fill: var(--sm-surface); stroke: var(--sm-border-control); }
.ea-line { fill: none; stroke: var(--sm-link); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ea-dot { fill: var(--sm-link); }
.ea-bar { fill: var(--sm-border-control); }
.center { justify-content: center; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; min-height: 48px;
  background: var(--sm-brand-deep); color: #fff; border-radius: 6px; box-shadow: var(--sm-shadow-dialog); font-size: 14px; }
[data-sm-theme="dark"] .toast { background: var(--sm-surface-subtle); border: 1px solid var(--sm-border-control); }
.toast .sm-button { color: var(--sm-brand-blue); min-height: 36px; }
.toast .sm-button:hover { background: rgba(255,255,255,.1); }
.toast[hidden] { display: none; }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .top-selects label span { display: none; } }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
  .nav-group { display: none; }
  .nav-item { white-space: nowrap; }
  .two, .widgets, details.scen .two { grid-template-columns: minmax(0, 1fr); }
  main { padding: 20px 16px 48px; }
  .app-name { display: none; }
}
@media (max-width: 640px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; position: static; }
  .top-selects { margin-left: 0; width: 100%; }
  .top-selects select { max-width: none; width: 100%; min-width: 0; }
  .top-selects label { flex: 1; min-width: 0; }
  .save-btn { padding: 6px 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:last-child { grid-column: 1 / -1; }
  .hero-text { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .ch { padding: 8px 16px 12px; }
  .sm-panel-body:has(> .flow) { overflow-x: auto; }
  .flow { min-width: 760px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* countries */
.country-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.country { display: inline-flex; align-items: center; gap: 2px; }
.country .cell { width: 170px; }
.sm-check.split { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--sm-text-muted); white-space: nowrap; }
.cell-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--sm-text-muted); }
td.muted-cell { color: var(--sm-text-muted); font-size: 12px; }
tr.sub-row td { border-top: 0; padding-top: 2px; padding-bottom: 6px; }
td.sub-label { color: var(--sm-text-muted); font-size: 13px; text-align: right; padding-right: 14px; }
