/* Sketcha Subscriptions admin. No inline styles/scripts anywhere (strict CSP). */
:root {
  color-scheme: light;
  --page: #f4f4f1;
  --surface: #fdfdfc;
  --surface-2: #f6f6f3;
  --border: #e4e3de;
  --border-strong: #d3d2cc;
  --ink: #141413;
  --ink-2: #52514e;
  --ink-3: #6f6e69;
  --link: #1c5cab;
  --focus: #2a78d6;
  --series-1: #2a78d6;
  --series-1-fill: rgba(42, 120, 214, 0.12);
  --series-2: #eb6834;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --bad: #d03b3b;
  --good-bg: #e7f4e6;
  --warn-bg: #fdf3dc;
  --bad-bg: #fbe8e7;
  --neutral-bg: #eeede9;
  --text-bad: #b02a2a;
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.04), 0 1px 1px rgba(20, 20, 19, 0.03);
  --radius: 12px;
  --sidebar: 236px;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #222220;
    --border: #2d2d2a;
    --border-strong: #3b3b37;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --ink-3: #9a998f;
    --link: #86b6ef;
    --focus: #5598e7;
    --series-1: #3987e5;
    --series-1-fill: rgba(57, 135, 229, 0.16);
    --series-2: #d95926;
    --good-bg: #16301a;
    --warn-bg: #352b10;
    --bad-bg: #3a1a19;
    --neutral-bg: #2a2a27;
    --text-bad: #f08a88;
    --shadow: none;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #222220;
  --border: #2d2d2a;
  --border-strong: #3b3b37;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --ink-3: #9a998f;
  --link: #86b6ef;
  --focus: #5598e7;
  --series-1: #3987e5;
  --series-1-fill: rgba(57, 135, 229, 0.16);
  --series-2: #d95926;
  --good-bg: #16301a;
  --warn-bg: #352b10;
  --bad-bg: #3a1a19;
  --neutral-bg: #2a2a27;
  --text-bad: #f08a88;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.5 var(--sans); font-feature-settings: 'tnum' 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 22px; line-height: 1.25; margin: 0; letter-spacing: -0.01em; font-weight: 650; }
h2 { font-size: 14px; margin: 0 0 12px; font-weight: 600; letter-spacing: 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.text-bad { color: var(--text-bad); }
.hint, .footnote { color: var(--ink-3); font-size: 12.5px; margin: 8px 0 0; }
.footnote { margin: -4px 0 16px; max-width: 900px; }
.empty { color: var(--ink-3); margin: 4px 0; }
ul.plain { padding-left: 18px; }

/* ---------- Shell */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--sidebar) - 1px), var(--border) calc(var(--sidebar) - 1px), var(--border) var(--sidebar), transparent var(--sidebar)); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; border-right: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 15px; padding: 0 6px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: url('/admin/assets/icon.svg') center / cover no-repeat; flex: none; }
.brand.big { font-size: 17px; margin-bottom: 18px; padding: 0; }
.brand.big .logo { width: 36px; height: 36px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--neutral-bg); color: var(--ink); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-foot button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.side-foot button:hover { background: var(--surface-2); color: var(--ink); }
.main { padding: 28px 32px 56px; min-width: 0; max-width: 1440px; }
.main.bare { grid-column: 1 / -1; max-width: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.shell:has(.main.bare) { grid-template-columns: 1fr; }
.demo-banner { background: #fdf3dc; color: #5a4300; border-bottom: 1px solid #f1d58d; padding: 8px 16px; text-align: center; font-weight: 600; font-size: 13px; }

/* ---------- Page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { margin: 4px 0 0; color: var(--ink-3); }
.head-right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumbs { color: var(--ink-3); font-size: 13px; margin-bottom: 10px; }
.segmented { display: inline-flex; background: var(--neutral-bg); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented .seg { padding: 5px 11px; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; }
.segmented .seg:hover { color: var(--ink); text-decoration: none; }
.segmented .seg.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--border); }

/* ---------- Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 520px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.more { font-size: 13px; font-weight: 500; }
.card .more { display: inline-block; margin-top: 10px; }
.card-head .more { margin-top: 0; }
section { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.empty-state { text-align: center; padding: 36px 20px; color: var(--ink-2); }

/* ---------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { color: var(--ink-3); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.2; }
.kpi-foot { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.kpi-warn { border-color: #efc761; }
.kpi-warn .kpi-value::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: 8px; vertical-align: middle; }

/* ---------- Charts */
.chart { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 12px; box-shadow: var(--shadow); min-width: 0; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.chart-title { font-weight: 600; }
.chart-sub { color: var(--ink-3); font-size: 12.5px; }
.legend { display: flex; gap: 14px; margin-left: auto; font-size: 12.5px; color: var(--ink-2); }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; flex: none; }
.swatch.rect { width: 10px; height: 10px; border-radius: 2px; }
.swatch.line { width: 14px; height: 2px; border-radius: 1px; }
.swatch.s1 { background: var(--series-1); }
.swatch.s2 { background: var(--series-2); }
.chart-body { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 168px auto; column-gap: 8px; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 11.5px; color: var(--ink-3); margin: -7px 0; }
.plot { position: relative; min-width: 0; touch-action: pan-y; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.grid span { border-top: 1px solid var(--border); }
.grid span:last-child { border-top-color: var(--border-strong); }
.x-axis { grid-column: 2; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); padding-top: 6px; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s1 { stroke: var(--series-1); }
.chart .line.s2 { stroke: var(--series-2); }
.chart .area { stroke: none; fill: var(--series-1-fill); }
.chart .mark.s1 { fill: var(--series-1); }
.chart .mark.s2 { fill: var(--series-2); }
.chart .mark.dim { opacity: 0.35; }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); pointer-events: none; }
.tooltip { position: absolute; top: 4px; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); font-size: 12.5px; min-width: 130px; white-space: nowrap; }
.tooltip .tt-label { color: var(--ink-3); margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; }
.tooltip .tt-row strong { font-weight: 650; color: var(--ink); }
.tooltip .tt-row span:last-child { color: var(--ink-2); }
.chart-empty { height: 168px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); background: var(--surface-2); border-radius: 8px; }
.chart-table { margin-top: 8px; font-size: 12.5px; }
.chart-table summary { color: var(--ink-3); cursor: pointer; width: max-content; }
.chart-table .table-wrap { max-height: 240px; overflow: auto; margin-top: 8px; }

/* ---------- Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data.compact th, table.data.compact td { padding: 7px 8px; }
table.data.compact thead th { background: none; }
.card table.data.compact { margin: 0 -8px; width: calc(100% + 16px); }
table.data th[scope='row'] { font-weight: 500; color: var(--ink-2); }
table.data .num { text-align: right; white-space: nowrap; }
table.data tr.total th, table.data tr.total td { font-weight: 650; color: var(--ink); border-top: 1px solid var(--border-strong); }
tr.not-applied td { opacity: 0.7; }
.rowlink { font-weight: 600; }

/* ---------- Badges & chips */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 550; background: var(--neutral-bg); color: var(--ink); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.badge.tone-good .dot { background: var(--good); }
.badge.tone-warn .dot { background: var(--warn); }
.badge.tone-bad .dot { background: var(--bad); }
.badge.tone-muted { color: var(--ink-2); }
.chip { display: inline-block; padding: 1px 8px; margin: 0 4px 2px 0; border-radius: 6px; font-size: 12px; font-weight: 550; background: var(--neutral-bg); color: var(--ink); white-space: nowrap; }
.chip.tone-good { background: var(--good-bg); }
.chip.tone-warn { background: var(--warn-bg); }
.chip.tone-bad { background: var(--bad-bg); }
.chip.tone-muted { color: var(--ink-3); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--ink-2); white-space: nowrap; }
.pill-sandbox { border-color: #e9b949; background: var(--warn-bg); color: var(--ink); }

/* ---------- Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-danger:hover { background: #b52f2f; }
.btn-ghost { background: transparent; }
.btn-small { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
input[type='text'], input[type='search'], input[type='password'], input[type='number'], select {
  height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; width: 100%; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
label > span { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check span { margin: 0; color: var(--ink); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.filters label { min-width: 150px; }
.filters label.grow { flex: 1 1 320px; }
.filter-actions { display: flex; gap: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; color: var(--ink-3); font-size: 13px; }
.pager .disabled { opacity: 0.5; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--good-bg); border-color: #9fd39d; }
.flash-error { background: var(--bad-bg); border-color: #eba7a5; }
.flash-info { background: var(--neutral-bg); border-color: var(--border-strong); }

/* ---------- Activity & lists */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.activity li:last-child { border-bottom: 0; }
.act-main { min-width: 0; }
.act-sum { color: var(--ink-2); font-size: 13px; margin-left: 2px; }
.act-meta { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv li:last-child { border-bottom: 0; }
.kv li > span:first-child { color: var(--ink-2); }
.kv li > span:last-child { text-align: right; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist p { margin: 2px 0 0; color: var(--ink-3); font-size: 12.5px; }
.status { width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.status.ok { background: var(--good-bg); color: #137a13; }
.status.bad { background: var(--bad-bg); color: var(--text-bad); }
.errors { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.errors li { display: grid; grid-template-columns: 90px 170px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.errors li:last-child { border-bottom: 0; }
.errors time { color: var(--ink-3); }
.errors code { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
details.raw { margin-top: 8px; }
details.raw summary { cursor: pointer; color: var(--ink-3); font-size: 12.5px; width: max-content; }
details.raw pre { margin: 8px 0 0; max-height: 360px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: 12px/1.45 var(--mono); white-space: pre; }

/* ---------- Detail */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.fact { min-width: 0; }
.fact dt { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.fact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.copy { cursor: copy; border-bottom: 1px dashed var(--border-strong); }
.copy.copied::after { content: ' copied'; color: var(--ink-3); font-family: var(--sans); font-size: 11.5px; }
.actions { list-style: none; margin: 0; padding: 0; }
.actions li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.actions li:last-child { border-bottom: 0; }
.actions p { margin: 2px 0 0; color: var(--ink-3); font-size: 12.5px; }
.actions li.disabled strong { color: var(--ink-2); }
.actions li.note strong { color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.tl-time { color: var(--ink-3); font-size: 12.5px; padding-top: 2px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.tl-src { color: var(--ink-3); font-size: 12.5px; }
.tl-body p { margin: 4px 0 0; font-size: 13px; }
.timeline li.not-applied .tl-head::after { content: 'older than current state'; font-size: 11.5px; color: var(--ink-3); border: 1px dashed var(--border-strong); border-radius: 6px; padding: 0 6px; }
.confirm { max-width: 640px; }
.confirm h1 { margin-bottom: 6px; }
.confirm.danger { border-color: #eba7a5; }
.confirm .facts { margin: 16px 0; }

/* ---------- Login */
.login { width: 100%; max-width: 380px; padding: 28px; }
.login h1 { margin-bottom: 16px; font-size: 20px; }

/* ---------- Responsive */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .grid-2, .grid-main-side, .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .activity li { flex-direction: column; gap: 4px; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav { order: 3; flex-basis: 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 7px 10px; }
  .nav a .icon { display: none; }
  .side-foot { margin-left: auto; flex-direction: row; gap: 2px; }
  .side-foot button { width: auto; padding: 7px 8px; }
  .side-foot button span { display: none; }
  .main { padding: 18px 16px 48px; }
  .main.bare { padding-top: 32px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 13px; }
  .kpi-value { font-size: 22px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .head-right { width: 100%; }
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .card { padding: 16px; }
  .facts { gap: 12px 16px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .errors li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legend { margin-left: 0; flex-basis: 100%; }
  .filters label, .filters label.grow { flex: 1 1 100%; min-width: 0; }
  .act-meta { white-space: normal; }
  /* Row tables become stacked cards. */
  table.data.subs thead, table.data.events thead { display: none; }
  table.data.subs tr, table.data.events tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  table.data.subs tbody tr:last-child, table.data.events tbody tr:last-child { border-bottom: 0; }
  table.data.subs td, table.data.events td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  table.data.subs td::before, table.data.events td::before { content: attr(data-label); color: var(--ink-3); font-size: 12.5px; text-align: left; flex: none; }
  table.data.subs tbody tr:hover td, table.data.events tbody tr:hover td { background: none; }
}
@media (max-width: 360px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .chart .mark, .swatch { forced-color-adjust: none; }
}
@media print {
  .sidebar, .filters, .pager, .head-right { display: none; }
  .shell { display: block; }
}
