/* AI Gateway admin console. Same brand family and base styles as the AI Governance Center and the AI Workflow
   Survey (red #E4003A, black, light grey panels, heavy uppercase headings). Light and dark themes are token sets;
   gateway-specific components are at the end of the file. */

:root {
    color-scheme: light;
    --brand: #E4003A;
    --brand-dark: #B8002F;
    --brand-tint: #FDECF1;
    --ink: #0b0b0b;
    --text: #3a3a38;
    --muted: #6b6a66;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --soft: #F5F5F4;
    --line: #E4E3E0;
    --grid: #E9E8E5;
    --ok: #0a7a0a;
    --ok-tint: #E7F4E7;
    --warn: #8a5a00;
    --warn-tint: #FFF4DB;
    --bad: #b42323;
    --bad-tint: #FCEAEA;
    --s1: #2a78d6;
    --s2: #eb6834;
    --s3: #1baf7a;
    --s4: #eda100;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 12px rgba(0, 0, 0, .05);
    --font: "ProximaNova", "Proxima Nova", "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --wrap: 1280px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --brand: #FF2E5F;
        --brand-dark: #FF5C80;
        --brand-tint: #3A1420;
        --ink: #f0efec;
        --text: #d6d5d0;
        --muted: #a3a29b;
        --bg: #121211;
        --surface: #1a1a19;
        --soft: #232322;
        --line: #33332f;
        --grid: #2c2c29;
        --ok: #5cc95c;
        --ok-tint: #17301a;
        --warn: #f0b542;
        --warn-tint: #352a10;
        --bad: #f07272;
        --bad-tint: #3a1919;
        --s1: #3987e5;
        --s2: #d95926;
        --s3: #199e70;
        --s4: #c98500;
        --shadow: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.5 var(--font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; padding-bottom: 48px; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
code { font: 13px var(--mono); background: var(--soft); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Header, navigation, footer --------------------------------------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 32px; flex: none; }
.brand-mark { fill: var(--brand); }
.brand-cut { fill: var(--surface); }
.brand-name { font-size: 19px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.brand-name b { color: var(--brand); font-weight: 900; }

.header-meta { font-size: 13px; font-weight: 700; display: flex; gap: 16px; align-items: center; }
.header-meta a { color: var(--ink); text-decoration: none; }
.header-meta a:hover, .header-meta a.active { color: var(--brand); }

.main-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.main-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a {
    padding: 12px 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

.site-footer { background: var(--soft); color: var(--muted); font-size: 13px; }
.site-footer .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---- Page structure ---------------------------------------------------- */

.page-head { padding: 28px 0 16px; }
.page-head .lead { font-size: 16px; color: var(--text); max-width: 860px; }
.page-head.with-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px; }
.crumbs { margin: 20px 0 0; font-size: 13px; }
.crumbs a { text-decoration: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card.flush { padding: 0; }
.card.placeholder { background: var(--soft); box-shadow: none; border-style: dashed; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2 > .card, .grid-2 > div > .card:last-child { margin-bottom: 0; }
.grid-2 { margin-bottom: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- Notices ----------------------------------------------------------- */

.notice { border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; background: var(--soft); border-left: 4px solid var(--muted); color: var(--ink); }
.notice-ok { background: var(--ok-tint); border-left-color: var(--ok); }
.notice-error { background: var(--bad-tint); border-left-color: var(--bad); }
.error { color: var(--bad); font-size: 13px; margin: 4px 0 0; }
.warn { color: var(--warn); font-size: 13px; }

/* ---- Buttons and forms ------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 18px; border: 2px solid var(--brand); border-radius: var(--radius);
    background: var(--brand); color: #fff; font: 800 13px/1 var(--font); text-transform: uppercase; letter-spacing: .03em;
    text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--s1); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); border-color: var(--muted); }
.btn-small { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.header-meta button.link { color: var(--ink); text-decoration: none; font-weight: 700; }
.header-meta button.link:hover { color: var(--brand); }

form.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form { max-width: 100%; }
.form.narrow { max-width: 480px; }
.field { display: block; font-weight: 700; color: var(--ink); font-size: 13px; margin: 14px 0 6px; }
.form .field:first-of-type { margin-top: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="file"], select {
    width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); font: inherit;
}
.inline-form input, .inline-form select, .filters input, .filters select { width: auto; min-width: 140px; }
input[aria-invalid="true"] { border-color: var(--bad); }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.form-actions .push, .filters .push { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.req { font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; }

.choices { border: 0; padding: 0; margin: 0 0 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice input { margin-top: 4px; }
.choice-group { margin: 14px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.choice-group:first-of-type { margin-top: 0; }
.suggestion { margin-top: 6px; }
.match-more { margin-top: 6px; }
.match-more[open] > *:not(summary) { margin-top: 8px; }
.table .inline-form input[type="email"] { min-width: 200px; }
.result-list, .plain-list, .quote-list { list-style: none; margin: 0; padding: 0; }
.result-list li, .plain-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.result-list li:first-child, .plain-list li:first-child { border-top: 0; }
.quote-list li { margin-bottom: 14px; }
.quote-list blockquote { margin: 0 0 4px; padding-left: 12px; border-left: 3px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.tabs a.active { border-color: var(--brand); font-weight: 700; }
.table.compare th[scope="row"] { width: 22%; font-weight: 600; vertical-align: top; }
.table.compare td { vertical-align: top; }
.tips { margin-top: 12px; }
.tip { display: block; margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--line); }
.tips li.tip { border-top: 0; padding: 2px 0 2px 10px; }
.tip-save { border-left-color: var(--bad); }
.tip-upgrade { border-left-color: var(--ok); }
.answer-list { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 16px; margin: 0; }
.answer-list dt { color: var(--muted); font-size: 13px; }
.answer-list dd { margin: 0; }
.bulk-match h2 { margin-top: 0; }
.bulk-match .inline-form + .inline-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.table .pick { width: 1%; padding-right: 0; }
.table .pick input { width: 18px; height: 18px; }
pre.code { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: 12px/1.5 var(--mono); color: var(--ink); overflow-x: auto; white-space: pre; user-select: all; }
h3 { font-size: 14px; margin-top: 4px; }
.steps-list { padding-left: 18px; }
.steps-list li { margin-bottom: 6px; }

.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }

.login-box { max-width: 420px; margin: 56px auto; }

/* ---- Tables ------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--soft); font-weight: 800; white-space: nowrap; }
.table thead th a { color: inherit; text-decoration: none; }
.table thead th a.sorted { color: var(--ink); }
.table thead th a.sorted::after { content: " ↓"; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover td { background: var(--soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact th, .table.compact td { padding: 6px 8px; }
.table td.actions { white-space: nowrap; }
.table td.actions > * { margin-right: 4px; }
tr.is-off td { color: var(--muted); }
.map-table th[scope="row"] { width: 34%; }
.map-table select { min-width: 220px; }
.diff th { width: 30%; }
.old { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.new { color: var(--ok); font-weight: 600; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--soft); color: var(--muted); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.status-active, .status-committed, .status-create { background: var(--ok-tint); color: var(--ok); }
.status-leaver, .status-discarded, .status-unchanged { background: var(--soft); color: var(--muted); }
.status-update, .status-mapped, .status-uploaded { background: var(--warn-tint); color: var(--warn); }
.status-error, .status-failed { background: var(--bad-tint); color: var(--bad); }
.status-active::before, .status-committed::before, .status-create::before { content: "● "; }
.status-error::before, .status-failed::before { content: "▲ "; }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; font-size: 14px; }

details summary { cursor: pointer; }
details.popover { display: inline-block; position: relative; }
details.popover summary { list-style: none; }
details.popover summary::-webkit-details-marker { display: none; }
details.popover[open] > form { position: absolute; right: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); width: 320px; }

dl.facts, dl.roles { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt, dl.roles dt { font-weight: 700; color: var(--muted); font-size: 13px; }
dl.facts dd, dl.roles dd { margin: 0; }

ul.plain { list-style: none; margin: 0 0 12px; padding: 0; }
ul.plain li { padding: 4px 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .check { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.checklist li.done .check { border-color: var(--ok); background: var(--ok); color: #fff; }
.card > ul.checklist li:not(:has(.check))::before { content: "○"; color: var(--muted); }

/* ---- Stat tiles and steps ---------------------------------------------- */

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
a.stat:hover { border-color: var(--muted); color: var(--text); }
.stat.active { border-color: var(--ink); }
.stat-value { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-bad .stat-value { color: var(--bad); }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; counter-reset: step; flex-wrap: wrap; }
.steps li { counter-increment: step; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--soft); }
.steps li::before { content: counter(step); display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; margin-right: 6px; background: var(--line); color: var(--ink); font-size: 12px; }
.steps li.current { color: var(--ink); }
.steps li.current::before { background: var(--brand); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.sticky-actions { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- Charts (server-rendered SVG) -------------------------------------- */

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.chart text.label { fill: var(--text); font-size: 13px; }
.chart text.value { fill: var(--ink); font-size: 13px; font-weight: 700; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .line, .spark .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .line { stroke-width: 1.5; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--ink); fill-opacity: .04; }
.line.s1 { stroke: var(--s1); } .line.s2 { stroke: var(--s2); } .line.s3 { stroke: var(--s3); } .line.s4 { stroke: var(--s4); }
.dot.s1, .bar.s1 { fill: var(--s1); } .dot.s2, .bar.s2 { fill: var(--s2); } .dot.s3, .bar.s3 { fill: var(--s3); } .dot.s4, .bar.s4 { fill: var(--s4); }
.spark { width: 96px; height: 24px; vertical-align: middle; }
.legend { display: flex; gap: 16px; list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--text); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 10px; height: 10px; }
.chart-table { margin-top: 10px; font-size: 13px; }
.chart-table summary { color: var(--muted); }

@media print {
    .main-nav, .site-header .header-meta, .filters, .form-actions, .btn { display: none !important; }
    .card { box-shadow: none; }
}
.text-bad { color: var(--bad); font-weight: 700; }

/* ==== AI Gateway components ============================================== */

textarea {
    width: 100%; min-height: 96px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); font: inherit; resize: vertical;
}
textarea.code, input.code { font: 13px/1.5 var(--mono); }
textarea.tall { min-height: 420px; }
input[type="number"], input[type="datetime-local"] {
    width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); font: inherit;
}
.help { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.check-row { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; font-weight: 600; color: var(--ink); font-size: 14px; }
.check-row input { margin-top: 3px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.check-grid .check-row { margin: 6px 0; font-weight: 500; }
fieldset.section { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin: 16px 0; }
fieldset.section legend { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 6px; }
.js [data-show-for]:not(.shown) { display: none; }
.mono { font-family: var(--mono); font-size: 13px; }
.nowrap-cell { white-space: nowrap; }
.right { text-align: right; }
.sub-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.sub-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700; }
.sub-nav a.active { border-color: var(--brand); color: var(--brand); }

/* Status and badges */
.status-ok, .status-pass, .status-enforce, .status-done { background: var(--ok-tint); color: var(--ok); }
.status-monitor, .status-warn, .status-running, .status-draft { background: var(--warn-tint); color: var(--warn); }
.status-fail, .status-blocked, .status-revoked, .status-expired, .status-off { background: var(--bad-tint); color: var(--bad); }
.status-info, .status-archived, .status-report { background: var(--soft); color: var(--muted); }
.stage { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.decision-ok { color: var(--ok); font-weight: 700; }
.decision-blocked, .decision-error, .decision-withheld { color: var(--bad); font-weight: 700; }
.decision-limited, .decision-rejected, .decision-invalid, .decision-aborted { color: var(--warn); font-weight: 700; }

/* One-time secret display */
.secret-box { border: 2px solid var(--brand); background: var(--brand-tint); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.secret-box code { display: block; font-size: 15px; padding: 10px; margin: 8px 0; word-break: break-all; user-select: all; background: var(--surface); }

/* Budget and progress bars */
meter, progress { width: 100%; height: 10px; }
.bar-cell { min-width: 140px; }
.bar-cell .small { display: block; }

/* Rule test bench */
.trace td { font-size: 13px; }
.outcome { font-weight: 800; font-size: 12px; text-transform: uppercase; }
.outcome-no_match, .outcome-skipped { color: var(--muted); font-weight: 600; }
.outcome-redact, .outcome-flag, .outcome-route, .outcome-instruct, .outcome-buffer, .outcome-allow { color: var(--s1); }
.outcome-monitor { color: var(--warn); }
.outcome-block, .outcome-error { color: var(--bad); }
pre.result { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: 13px/1.5 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; margin: 0; }

/* KPI board */
.kpi-table td.value { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-table td.target { white-space: nowrap; color: var(--muted); }
.kpi-pass td.value { color: var(--ok); }
.kpi-fail td.value { color: var(--bad); }
.env-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.env-list li { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--soft); }
.progress-line { display: flex; gap: 12px; align-items: center; }
.progress-line progress { flex: 1; }

.danger-zone { border-color: var(--bad); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); opacity: .85; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-actions form { display: inline; }
.mt { margin-top: 16px; }
.kpi-table td.value a { color: inherit; text-decoration: none; }
.kpi-table td.value a:hover { text-decoration: underline; }
.sticky-actions { background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line); margin-bottom: 0; }
