/* MAP audit console. A sidebar, one inset content panel, hairlines instead of boxes, and color only where it carries meaning. */
/* Self-hosted so the console looks the same on every machine; the files live with the sign-in pages' assets. Both are SIL OFL 1.1. */
@font-face { font-family: "Inter"; src: url("/auth-assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/auth-assets/fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --app: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #fafafb;
  --hover: rgb(15 18 25 / 0.045);
  --active: rgb(15 18 25 / 0.075);
  --ink: #1a1b1e;
  --ink-2: #3b3f47;
  --muted: #6c717b;
  --faint: #9a9ea8;
  --line: #ececef;
  --line-strong: #dcdde2;
  --accent: #5261d4;
  --accent-soft: #eef0fc;
  --btn: #5261d4;
  --btn-hover: #4654c2;
  --btn-ink: #ffffff;
  --ok: #1f8f55;
  --ok-soft: #edf8f1;
  --ok-line: #c8e9d5;
  --deny: #cf3f36;
  --deny-soft: #fdf1f0;
  --deny-line: #f5cfcb;
  --warn: #a96500;
  --warn-soft: #fff7e8;
  --warn-line: #f3dfb4;
  --consent: #7b61d9;
  --neutral: #a3a7b0;
  --shadow-sm: 0 1px 1px rgb(15 18 25 / 0.04);
  --shadow-lg: 0 18px 50px -12px rgb(15 18 25 / 0.22), 0 0 0 1px rgb(15 18 25 / 0.05);
  --scrim: rgb(15 18 25 / 0.16);
  --radius: 8px;
  --head: 48px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* Dark is the default. Light applies only when the person picks it; theme.js sets data-theme before first paint. */
:root:not([data-theme="light"]) {
  --app: #08090a; --panel: #0f1011; --panel-2: #141517;
  --hover: rgb(255 255 255 / 0.05); --active: rgb(255 255 255 / 0.085);
  --ink: #f2f3f5; --ink-2: #c9ccd2; --muted: #8b8f98; --faint: #62666f;
  --line: #1e2024; --line-strong: #2b2e34;
  --accent: #8a95f2; --accent-soft: #1a1d38;
  --btn: #5e6ad8; --btn-hover: #6b77e2; --btn-ink: #ffffff;
  --ok: #4cc38a; --ok-soft: #0f211a; --ok-line: #1c3d2d;
  --deny: #f0706a; --deny-soft: #271414; --deny-line: #4c2422;
  --warn: #e5b548; --warn-soft: #221b0a; --warn-line: #443611;
  --consent: #a08bf0; --neutral: #62666f;
  --shadow-sm: none;
  --shadow-lg: 0 24px 60px -12px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.06);
  --scrim: rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--app); color: var(--ink); font: 13px/1.5 var(--sans); letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { color: var(--ink); }
code, .mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; font-feature-settings: "calt" 0, "liga" 0; }
code { background: var(--hover); border-radius: 4px; padding: 1px 5px; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 5px; }
::selection { background: var(--accent-soft); }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink-2);
  font-weight: 500; font-size: 12.5px; box-shadow: var(--shadow-sm);
  transition: background-color 100ms, border-color 100ms, color 100ms;
}
.btn:hover { background: var(--panel-2); color: var(--ink); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-ink); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.small { height: 26px; padding: 0 8px; }
.btn.icon { width: 26px; padding: 0; }
.btn.block { width: 100%; height: 36px; font-size: 13.5px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 500; }
.linkish:hover { text-decoration: underline; text-underline-offset: 2px; }
.linkish.small { font-size: 12px; }

input[type="text"], input[type="password"], input:not([type]), select {
  height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--panel); color: var(--ink); font-size: 12.5px;
  transition: border-color 100ms, box-shadow 100ms;
}
select { padding-right: 24px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='%238b8f98' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 13px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--faint); }

.logo { width: 20px; height: 20px; flex: none; display: block; }
.logo rect { fill: var(--ink); }
.logo path { fill: none; stroke: var(--app); stroke-width: 1.6; stroke-linecap: round; }
.logo.lg { width: 36px; height: 36px; }

/* ---------- Sign-in: a bare centered column, no card ---------- */
.signin { min-height: 100%; display: grid; place-items: center; padding: 24px 20px 12vh; }
.signin-card { width: min(320px, 100%); display: grid; gap: 20px; justify-items: stretch; }
.signin-card .logo { justify-self: center; }
.signin-title { text-align: center; display: grid; gap: 6px; }
.signin-card h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.signin-card p { margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.field input { height: 36px; width: 100%; font-family: var(--mono); font-size: 13px; }
.error-text { color: var(--deny); margin: 0; font-size: 12.5px; text-align: center; }

/* ---------- Shell: sidebar and one inset panel ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100%; }
.side { display: flex; flex-direction: column; min-height: 0; padding: 10px 8px 8px 12px; }
.ident { display: flex; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; padding: 6px 8px; border-radius: 6px; min-width: 0; }
.ident:hover { background: var(--hover); }
.ident-text { display: grid; min-width: 0; line-height: 1.3; }
.product { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.log-name { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: grid; gap: 1px; margin-top: 14px; }
.tabs a { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 13px; white-space: nowrap; transition: background-color 100ms; }
.tabs a svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tabs a:hover { background: var(--hover); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--active); color: var(--ink); }
.tabs a[aria-current="page"] svg { stroke: var(--ink); }

.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 10px 0 0; }
.head-stats { display: grid; gap: 5px; padding: 10px 8px; border-top: 1px solid var(--line-strong); }
.head-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.head-stat b { color: var(--ink-2); font-weight: 500; }
.head-stat.warn b { color: var(--warn); }
.side-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.theme-toggle.corner { position: fixed; top: 12px; right: 12px; }
/* Theme toggle: shows the sun in dark mode and the moon in light mode, i.e. the theme a click switches to. */
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

.frame { min-width: 0; min-height: 0; margin: 8px 8px 8px 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; display: flex; }
.view { flex: 1; min-width: 0; overflow-y: auto; padding-bottom: 56px; }
.view > :not(.page-head):not(.bleed) { margin: 20px 24px 0; }

/* ---------- Page header: a slim title bar that stays put ---------- */
.page-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head); padding: 0 16px 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.page-head .crumb { color: var(--muted); font-weight: 400; margin-left: 8px; }
.page-actions { display: flex; gap: 8px; align-items: center; }
.view > .page-desc { margin-top: 16px; margin-bottom: -4px; color: var(--muted); max-width: 78ch; }

/* ---------- Groups ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); align-items: start; }
.grid.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.card > header h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.card > header .sub { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.card .body { padding: 16px; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.kv .mono { font-size: 12px; }
.kv .copyable { display: flex; gap: 10px; align-items: baseline; }
.kv .copyable .linkish { flex: none; }
.kv-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 9px 48px; align-items: start; }

/* ---------- Stats: one row, hairline dividers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { display: grid; gap: 4px; align-content: start; padding: 14px 16px; color: inherit; text-decoration: none; border-right: 1px solid var(--line); margin-right: -1px; transition: background-color 100ms; }
a.stat:hover { background: var(--hover); }
.stat .k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .k .evt { color: var(--muted); }
.stat .n { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .hint { font-size: 12px; color: var(--faint); }

/* ---------- Verification ---------- */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; align-items: center; }
.verdict .badge { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.verdict .badge svg { width: 14px; height: 14px; }
.verdict .title { font-weight: 600; font-size: 13.5px; }
.verdict .detail { color: var(--muted); font-size: 12px; }
.verdict.pass .badge { background: var(--ok); color: var(--panel); }
.verdict.fail .badge { background: var(--deny); color: var(--panel); }
.verdict.fail .title { color: var(--deny); }
.verdict.idle .badge { background: var(--hover); color: var(--muted); }
.verdict.idle .detail { grid-column: 2; }
.checks { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--ink-2); }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); margin: 0 3px; }
.checks b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.warnings { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.warnings li { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 12.5px; }
.warnings li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); transform: translateY(-1px); margin: 0 3px; }

/* ---------- Chart ---------- */
.chart-wrap { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; height: 160px; }
.chart-y span { line-height: 1; transform: translateY(-50%); }
.chart-y span:last-child { transform: translateY(50%); }
.chart-plot { position: relative; height: 160px; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; border-bottom: 1px solid var(--line-strong); }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart rect { shape-rendering: crispEdges; }
.chart rect:hover { opacity: 0.8; }
.chart-x { grid-column: 2; position: relative; height: 36px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-x span { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; text-align: center; line-height: 1.3; }
.chart-x small { display: block; font-size: 10.5px; color: var(--faint); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-total { margin-left: auto; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.chart .bar-ok, .legend .bar-ok { fill: var(--ok); background: var(--ok); }
.chart .bar-deny, .legend .bar-deny { fill: var(--deny); background: var(--deny); }
.chart .bar-consent, .legend .bar-consent { fill: var(--consent); background: var(--consent); }
.leaf-note { margin: -4px 0 10px; }

.stack-20 { display: grid; gap: 20px; }

/* ---------- Tables: 36px rows, hairlines, no header band ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; height: 36px; padding: 0 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { height: 32px; font-size: 12px; color: var(--muted); font-weight: 500; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background-color 60ms; }
tbody tr.clickable:hover { background: var(--hover); }
tbody tr.active { background: var(--accent-soft); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; min-width: 220px; color: var(--ink-2); padding-top: 9px; padding-bottom: 9px; }
td.soft { white-space: normal; min-width: 120px; padding-top: 9px; padding-bottom: 9px; }
td.muted, td .muted { color: var(--faint); }
td.dim { color: var(--muted); font-variant-numeric: tabular-nums; }
td.seq { color: var(--faint); font-variant-numeric: tabular-nums; }
td strong { font-weight: 500; }
.bleed th:first-child, .bleed td:first-child { padding-left: 24px; }
.bleed th:last-child, .bleed td:last-child { padding-right: 24px; }
.bleed tbody tr:last-child td { border-bottom: 1px solid var(--line); }

/* Event types: a colored dot and plain text. */
.evt { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink); }
.evt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); flex: none; }
.t-request::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok); }
.t-response::before { background: var(--ok); }
.t-denied::before, .t-error::before { background: var(--deny); }
.t-consent_granted::before { background: var(--consent); }
.t-consent_withdrawn::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--consent); }
.t-config_changed::before, .t-internal::before { background: var(--neutral); }

.status-deny { color: var(--deny); font-family: var(--mono); font-size: 12px; }
.status-ok { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.result { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.result.deny { color: var(--deny); font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.rule { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.ref { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; }
td .mono.small { color: var(--ink-2); }

/* A consent cell: a check and the version, or a dash and "Withdrawn". */
.grant { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grant::before { content: ""; flex: none; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); margin: 0 2px; }
.grant.off { color: var(--faint); }
.grant.off::before { width: 9px; height: 0; border-width: 0 0 1.5px; border-color: var(--faint); transform: none; margin: 0; }

.badge-s { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--hover); color: var(--ink-2); }
.badge-s.warn { color: var(--warn); background: var(--warn-soft); }

/* Inline bar used for per-row proportions. */
.meter { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.meter .track { flex: 1; height: 4px; border-radius: 2px; background: var(--hover); overflow: hidden; display: flex; }
.meter .fill-ok { background: var(--ok); }
.meter .fill-deny { background: var(--deny); }
.meter .n { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- Filter bar: each filter is one compact control ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.filters label { display: inline-flex; align-items: center; height: 28px; padding-left: 9px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; background: var(--panel); transition: border-color 100ms, box-shadow 100ms; }
.filters label:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters label select, .filters label input { border: 0; height: 26px; background-color: transparent; box-shadow: none; font-weight: 500; padding-left: 6px; }
.filters label select { max-width: 170px; text-overflow: ellipsis; }
.filters label select:focus, .filters label input:focus { box-shadow: none; }
.filters input.wide { width: 230px; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.filters.bare { padding: 0; border: 0; }
.filters.bare label { height: 32px; }
.filters.bare label input { height: 30px; }
.filters.bare .btn { height: 32px; padding: 0 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 24px; border-bottom: 1px solid var(--line); font-size: 12px; }
.chips:empty { display: none; }
.chip { display: inline-flex; gap: 2px; align-items: center; background: var(--hover); color: var(--ink); border-radius: 5px; padding: 0 2px 0 8px; height: 22px; font-weight: 500; }
.chip .k { color: var(--muted); margin-right: 4px; font-weight: 400; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.chip button:hover { background: var(--active); color: var(--ink); }
.chips .clear { margin-left: 6px; }
.more { padding: 16px 24px; display: flex; justify-content: center; color: var(--faint); font-size: 12px; }

pre.block { margin: 0; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; font: 11.5px/1.65 var(--mono); letter-spacing: 0; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }
td pre.block { margin: 8px 0; }

/* ---------- Detail panel ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 9; animation: fade 120ms ease-out; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(560px, calc(100vw - 16px)); background: var(--panel); border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 10; animation: slide 160ms cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--head); padding: 0 10px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-head h2 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.drawer-body { padding: 18px 20px 40px; overflow-y: auto; display: grid; gap: 20px; align-content: start; }
.drawer-body h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.drawer-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.drawer-meta .evt { font-weight: 500; }
.section + .section { border-top: 1px solid var(--line); padding-top: 18px; }
.proof { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink-2); }
.proof b { font-weight: 600; }
.proof.ok b { color: var(--ok); }
.proof.bad b { color: var(--deny); }
.mini-table { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mini-table td { height: 32px; }

@keyframes slide { from { transform: translateX(16px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.notice { padding: 10px 12px; border-radius: 6px; background: var(--deny-soft); color: var(--deny); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.loading { padding: 48px 0; text-align: center; color: var(--faint); }

@media (max-width: 1100px) {
  .grid.wide-left { grid-template-columns: 1fr; }
  .kv-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html, body { height: auto; }
  .shell { display: block; height: auto; }
  .side { position: sticky; top: 0; z-index: 6; background: var(--app); padding: 8px 8px 0; border-bottom: 1px solid var(--line-strong); }
  .ident { align-self: flex-start; padding-right: 12px; }
  .log-name, .head-stats { display: none; }
  .tabs { display: flex; gap: 2px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .tabs a svg { display: none; }
  .side-foot { position: absolute; top: 9px; right: 8px; padding: 0; margin: 0; }
  .frame { margin: 0; border: 0; border-radius: 0; display: block; overflow: visible; }
  .view { overflow: visible; }
  .page-head { position: static; padding: 0 12px 0 16px; }
  .view > :not(.page-head):not(.bleed) { margin: 16px 16px 0; }
  .filters, .chips, .more { padding-left: 16px; padding-right: 16px; }
  .bleed th:first-child, .bleed td:first-child { padding-left: 16px; }
  .grid { grid-template-columns: 1fr; }
  .filters label { flex: 1 1 140px; }
  .filters label select, .filters label input, .filters input.wide { flex: 1; min-width: 0; width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
