/* EventRover dashboard. Dark is the default; [data-theme] on <html> comes from the theme cookie (Pages/Theme). */

/* Inter for all text: one variable file (weights 400-700), self-hosted so it renders the
   same, and crisply, on Windows, macOS and phones (Segoe UI Variable looked jagged in Chrome). */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Michroma";
    src: url("../fonts/michroma-latin.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root, [data-theme="dark"] {
    color-scheme: dark;
    --bg: #060B14; --surface: #0C1421; --surface-2: #111C2C; --border: #1B283B;
    --text: #E8EEF6; --muted: #94A4B9; --faint: #6E7F96;
    --accent: #3EE0C5; --accent-2: #38BDF8; --accent-soft: rgba(62, 224, 197, .12); --on-accent: #03201B;
    --crit: #FF6B86; --err: #FF9F45; --warn: #FFD66B;
    --crit-soft: rgba(255, 107, 134, .14); --err-soft: rgba(255, 159, 69, .14); --warn-soft: rgba(255, 214, 107, .13);
    --crit-fill: #FF6B86; --err-fill: #FF9F45; --warn-fill: #FFD66B;
    --ok: #3EE0C5; --grid: rgba(148, 164, 185, .13); --row-hover: rgba(62, 224, 197, .05);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #F1F4F8; --border: #E2E7EF;
    --text: #0B1424; --muted: #55657B; --faint: #6F7D90;
    --accent: #0A8A7A; --accent-2: #0369A1; --accent-soft: rgba(10, 138, 122, .10); --on-accent: #FFFFFF;
    --crit: #C81E4A; --err: #C2570C; --warn: #8F6A00;
    --crit-soft: rgba(200, 30, 74, .09); --err-soft: rgba(194, 87, 12, .09); --warn-soft: rgba(185, 137, 0, .11);
    /* Chart fills: brighter than the text shades above, which are darkened to read on white */
    --crit-fill: #E8365D; --err-fill: #F27A1A; --warn-fill: #F5BE1B;
    --ok: #0A7C6E; --grid: rgba(85, 101, 123, .14); --row-hover: rgba(10, 138, 122, .05);
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    /* 450, not 400: the owner's pick on Windows (fonts test), where 400 looked thin and jagged */
    font: 450 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.mark { width: 40px; height: 34px; flex: none; }
.mark-a { stop-color: var(--accent-2); }
.mark-b { stop-color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark { font-family: "Michroma", sans-serif; font-size: 16px; letter-spacing: .06em; color: var(--text); }
.wordmark span { color: var(--accent); }
.wordmark.small { font-size: 13px; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.tagline { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
nav.main a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 550; }
nav.main a:hover { color: var(--text); background: var(--surface-2); }
nav.main a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.topbar-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar-end form { margin: 0; }
.who { color: var(--muted); font-size: 13.5px; }
.icon-link { color: var(--muted); font-weight: 550; }
.icon-link[aria-current="page"] { color: var(--accent); }

.theme-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin: 0; }
.theme-switch button {
    margin: 0; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center;
    background: transparent; color: var(--muted); transition: background .15s, color .15s;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.theme-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Page ---------- */
main { max-width: 720px; margin: 0 auto; padding: 32px 32px 64px; }
main.wide { max-width: 1360px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar h1, .toolbar h2 { margin: 0; }
.toolbar > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spaced { margin-top: 32px; }
.hint { color: var(--muted); font-size: 13.5px; }
.empty { color: var(--muted); padding: 20px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: 16px; }
.error { color: var(--crit); font-weight: 550; }
.ok { color: var(--ok); font-weight: 550; }
/* Things to check before approving a suggested fix (Stage 18d-3) */
.warning-box { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 8px; padding: .6rem .9rem; margin: .6rem 0; }
.warning-box ul { margin: .3rem 0 0; padding-left: 1.2rem; }
p.ok[role="status"] { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface-2); color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.narrow { width: 7em; }
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px; padding: 10px 18px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: var(--on-accent);
    font: inherit; font-weight: 700; transition: filter .15s, background .15s;
}
.button { margin-top: 0; }
button:hover, .button:hover { filter: brightness(1.08); color: var(--on-accent); }
button.secondary, .button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); color: var(--text); filter: none; }
button.danger, .button.danger { background: var(--crit); color: #fff; }
button:disabled, button:disabled:hover { opacity: .45; cursor: default; filter: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
button.link { margin: 0; padding: 0; background: none; color: var(--muted); font-weight: 550; border-radius: 0; }
button.link:hover { color: var(--text); filter: none; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form input[type=text] { width: auto; flex: 1; min-width: 200px; }
.inline-form button { margin: 0; }
.filters { display: flex; gap: 14px 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.filters > div { display: flex; flex-direction: column; }
.filters label { margin: 0 0 6px; }
.filters input[type=text], .filters input[type=datetime-local], .filters select { width: auto; min-width: 140px; }
.filters button { margin: 0; }
fieldset.levels { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; align-items: flex-end; }
fieldset.levels legend { font-weight: 600; font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; }
fieldset.levels label, label.check {
    display: inline-flex; gap: 6px; align-items: center; margin: 0; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 550; font-size: 13px; cursor: pointer;
}
fieldset.levels input, label.check input { accent-color: var(--accent); margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--surface); }
tbody tr:hover td { background: var(--row-hover); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 600; white-space: nowrap; }
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.events td.message { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

/* ---------- Badges and levels ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active { color: var(--ok); background: var(--accent-soft); }
.badge.revoked, .badge.expired, .badge.used-up { color: var(--muted); background: var(--surface-2); }
.badge.silent { color: var(--warn); background: var(--warn-soft); }
.badge.over-limit { color: var(--warn); background: var(--warn-soft); }
.level { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.level::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.level-1 { color: var(--crit); background: var(--crit-soft); }
.level-2 { color: var(--err); background: var(--err-soft); }
.level-3 { color: var(--warn); background: var(--warn-soft); }

/* ---------- Tiles (overview) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.tile {
    display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.tile .value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .label { color: var(--muted); font-size: 13px; }
.tile.alert { border-color: var(--warn); }
.tile.alert .value { color: var(--warn); }
.level-tile.level-1, .level-tile.level-2, .level-tile.level-3 { background: var(--surface); }
.level-tile.level-1 .value { color: var(--crit); }
.level-tile.level-2 .value { color: var(--err); }
.level-tile.level-3 .value { color: var(--warn); }
.level-tile::before { display: none; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 8px; }
.columns h2 { margin-top: 0; }

/* ---------- Facts, code, secrets ---------- */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
code, .codes li { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.secret { display: block; padding: 14px; font-size: 15px; user-select: all; border-color: var(--accent); background: var(--accent-soft); }
.codes { columns: 2; padding-left: 0; list-style: none; }
.codes li { margin: 4px 0; display: inline-block; }
.qr { display: block; width: 220px; height: 220px; margin: 16px 0; background: #fff; padding: 10px; border-radius: 12px; image-rendering: pixelated; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.6; }
pre.xml { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); padding: 14px; border-radius: 12px; max-height: 520px; overflow: auto; }
.pager { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.pager a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.pager a:hover { border-color: var(--accent); }

/* ---------- Overview and charts (SVG drawn on the server: Display/Charts.cs) ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head .hint { margin: 6px 0 0; }
.segmented { display: flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.ok { background: var(--accent); }
.dot.info { background: var(--accent-2); }
.dot.warn { background: var(--warn-fill); }
.dot.err { background: var(--err-fill); }
.dot.crit { background: var(--crit-fill); }
.dot.off { background: var(--faint); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { margin: 0 0 12px; font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head a { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); transition: border-color .15s, transform .15s; }
.kpi:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.kpi.alert { border-color: var(--warn); }
.kpi.alert .value { color: var(--warn); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .value.crit { color: var(--crit); }
.kpi-note { display: block; font-size: 12.5px; color: var(--muted); }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.spark { width: 120px; height: 40px; flex: none; overflow: visible; }
.spark .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.info .line { stroke: var(--accent-2); }
.spark.info .area { fill: var(--accent-2); opacity: .12; }
.spark.crit .line { stroke: var(--crit-fill); }
.spark.crit .area { fill: var(--crit-fill); opacity: .12; }

.split { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.chart-card { flex: 999 1 620px; }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.headline { color: var(--muted); margin-top: 4px; }
.headline .value { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; }
.legend a { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.legend-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-value { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.chart .grid { stroke: var(--grid); stroke-dasharray: 3 4; }
.chart .tick { fill: var(--faint); font-size: 11px; text-anchor: end; font-variant-numeric: tabular-nums; }
.chart .xlabel { fill: var(--faint); font-size: 11px; text-anchor: middle; }
.chart .hit { fill: transparent; }
.chart .bar { transition: opacity .15s; }
.chart:hover .bar { opacity: .35; }
.chart .bar:hover, .chart .bar:focus-visible { opacity: 1; }
.chart .bar:hover .hit { fill: var(--row-hover); }
.seg.crit { fill: var(--crit-fill); }
.seg.err { fill: var(--err-fill); }
.seg.warn { fill: var(--warn-fill); }

.ring-row { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.ring { width: 120px; height: 120px; flex: none; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ring-seg { fill: none; stroke-width: 14; stroke-linecap: round; }
.ring-seg.ok { stroke: var(--accent); }
.ring-seg.warn { stroke: var(--warn-fill); }
.ring-seg.off { stroke: var(--faint); }
.ring-value { fill: var(--text); font-size: 24px; font-weight: 700; text-anchor: middle; }
.ring-label { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.ring-legend, .share-rows { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.ring-legend a, .share-rows a { display: flex; align-items: center; gap: 8px; color: var(--text); }
.ring-legend a span:nth-child(2), .share-rows a span:nth-child(2) { flex: 1; }
.ring-legend b, .share-rows b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.share { display: block; width: 100%; height: 12px; margin: 16px 0 14px; border-radius: 6px; background: var(--surface-2); }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.meter-row { display: flex; flex-direction: column; gap: 6px; padding: 9px 0; border-top: 1px solid var(--border); color: var(--text); }
.meter-row:hover { color: var(--text); }
.meter-row:hover .meter-fill { fill: var(--accent); }
.meter-text { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.meter-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-text b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.meter-track { fill: var(--surface-2); }
.meter-fill { fill: var(--accent-2); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border); }
.activity li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.activity .hint { display: block; font-size: 12.5px; }
.activity code { font-size: 12px; }
.strip { margin-bottom: 20px; }
.strip .chart { margin-top: 4px; }

/* ---------- Sign-in and setup ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-art { flex: 1 1 520px; min-height: 360px; position: relative; overflow: hidden; background: #060A16; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 40%; padding: 24px;
    /* fade the artwork's own background into the panel */
    -webkit-mask-image: radial-gradient(ellipse 48% 42% at 50% 42%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 48% 42% at 50% 42%, #000 62%, transparent 100%);
}
.auth-points { position: relative; margin: 0; padding: 32px 40px; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: #C9D6E5; background: linear-gradient(180deg, rgba(6, 11, 20, 0) 0%, rgba(6, 11, 20, .92) 70%); }
.auth-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #3EE0C5; vertical-align: middle; }
.auth-main { flex: 1 1 460px; display: flex; flex-direction: column; padding: 24px 32px 40px; }
.auth-top { display: flex; justify-content: flex-end; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-card .panel { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.auth-card button[type=submit] { width: 100%; padding: 13px; }
.or { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-card .codes li { display: block; }

@media (max-width: 640px) {
    .topbar-inner, main { padding-left: 16px; padding-right: 16px; }
    .auth-art { min-height: 200px; flex-basis: 100%; }
    .auth-points { display: none; }
    .auth-main { padding: 16px; }
    .auth-card { padding: 24px; }
    .codes { columns: 1; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tile { padding: 14px 16px; }
    .tile .value { font-size: 26px; }
}

/* Suggested fixes (Stage 16) */
.badge.verdict-harmless { color: var(--ok); background: var(--accent-soft); }
.badge.verdict-worth_checking { color: var(--warn); background: var(--warn-soft); }
.badge.verdict-action_needed { color: var(--crit); background: var(--crit-soft); }
.solution h3 { font-size: 14px; margin: 18px 0 6px; }
.multiline { white-space: pre-line; line-height: 1.55; }
.sources { margin: 0; padding-left: 18px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.solution details { margin-top: 10px; }
.badge.review-approved { color: var(--ok); background: var(--accent-soft); }
.badge.review-rejected { color: var(--crit); background: var(--crit-soft); }
.badge.review-unreviewed { color: var(--muted); background: var(--surface-2); }
.solution .toolbar > div { gap: 6px; }
.actions { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; }
.review-note { white-space: pre-line; color: var(--text); }

/* About and privacy (Stage 17c) */
.prose .panel h2 { margin-bottom: 8px; }
.prose p, .prose li { line-height: 1.6; }
.prose .panel p:last-child { margin-bottom: 0; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 6px 0; }
.site-footer { display: flex; justify-content: center; gap: 24px; padding: 0 32px 32px; font-size: 13px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.auth-main .site-footer { padding: 20px 0 0; }
