/* agentic.agency — shared design system
   Direction: Modern Minimal (Linear / Vercel)
   Brand-neutral tokens — Brand-Name (REA-833) bleibt tauschbar via .brand */

:root {
  /* core palette */
  --bg:           oklch(99% 0.002 250);
  --surface:      oklch(100% 0 0);
  --surface-2:    oklch(97% 0.004 250);
  --surface-3:    oklch(94.5% 0.005 250);
  --fg:           oklch(18% 0.012 250);
  --fg-soft:      oklch(28% 0.012 250);
  --muted:        oklch(54% 0.012 250);
  --muted-soft:   oklch(70% 0.010 250);
  --border:       oklch(92% 0.005 250);
  --border-strong:oklch(86% 0.008 250);

  /* product accent + secondary */
  --accent:       oklch(58% 0.18 255);          /* cobalt blue — Modern Minimal verbatim */
  --accent-soft:  oklch(96% 0.022 255);
  --accent-deep:  oklch(38% 0.16 255);

  --secondary:    oklch(60% 0.15 175);          /* teal — owner-cockpit accent */
  --secondary-soft: oklch(96% 0.018 175);

  /* status */
  --success:      oklch(58% 0.15 150);
  --success-soft: oklch(96% 0.022 150);
  --warn:         oklch(68% 0.16 75);
  --warn-soft:    oklch(96% 0.030 75);
  --danger:       oklch(58% 0.20 27);
  --danger-soft:  oklch(96% 0.025 27);
  --info:         oklch(60% 0.14 230);

  /* typography */
  --font-display: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* shadow — modal only */
  --shadow-pop: 0 12px 36px -8px oklch(20% 0.04 250 / 0.18), 0 2px 6px oklch(20% 0.04 250 / 0.05);
  --shadow-card: 0 1px 0 oklch(20% 0.04 250 / 0.03);

  --wrap: 1320px;
  --wrap-tight: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--fg);
  font-weight: 650;
}
p { color: var(--fg-soft); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ───── layout ───── */
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap-tight { width: min(var(--wrap-tight), calc(100% - 48px)); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 18px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ───── typography utilities ───── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-deep);
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content:""; width:6px; height:6px; border-radius:var(--r-pill); background: var(--accent); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--muted-soft); }
.h-display { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 650; }
.h-page    { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; font-weight: 650; }
.h-card    { font-size: 18px; letter-spacing: -0.012em; font-weight: 600; }
.h-section { font-size: 22px; letter-spacing: -0.018em; font-weight: 600; }
.lead      { font-size: clamp(17px, 1.4vw, 19px); color: var(--fg-soft); line-height: 1.55; }
.fine      { color: var(--muted); font-size: 13px; }
.mono      { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num       { font-variant-numeric: tabular-nums; }

/* ───── nav ───── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 120ms, background 120ms;
}
.nav__links a:hover { color: var(--fg); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg);
}
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--fg); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.brand--ops .brand__mark { background: var(--secondary); }

/* surface-tinted top-bar for owner-cockpit */
.nav--ops { background: color-mix(in oklch, var(--surface-2) 92%, transparent); }

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 550; font-size: 14px; letter-spacing: -0.005em;
  cursor: pointer; user-select: none;
  transition: background 120ms, border-color 120ms, color 120ms, transform 80ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary  { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--fg-soft); }
.btn--accent   { background: var(--accent); color: white; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--secondary{ background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--fg); }
.btn--ghost    { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger   { background: var(--danger); color: white; }
.btn--danger:hover { background: oklch(50% 0.20 27); }
.btn--lg { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--sm { min-height: 28px; padding: 0 10px; font-size: 13px; }
.btn--full { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ───── cards ───── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  min-width: 0;
}
.card--soft   { background: var(--surface-2); }
.card--raised { box-shadow: var(--shadow-card); }
.card--dark   { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card--dark h1, .card--dark h2, .card--dark h3, .card--dark h4 { color: var(--bg); }
.card--dark p { color: color-mix(in oklch, var(--bg) 72%, transparent); }
.card--accent { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 30%, var(--border)); }
.card--warn   { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 30%, var(--border)); }
.card--danger { background: var(--danger-soft); border-color: color-mix(in oklch, var(--danger) 30%, var(--border)); }
.card--success { background: var(--success-soft); border-color: color-mix(in oklch, var(--success) 30%, var(--border)); }
.card--pad-sm { padding: 14px; }
.card--pad-lg { padding: 32px; }

/* divider line inside a card */
.divider { height: 1px; background: var(--border); border: 0; margin: 18px 0; }
.divider--strong { background: var(--border-strong); }

/* ───── chips / badges / pills ───── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
}
.chip--accent   { color: var(--accent-deep); border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); background: var(--accent-soft); }
.chip--success  { color: oklch(38% 0.12 150); border-color: color-mix(in oklch, var(--success) 35%, var(--border)); background: var(--success-soft); }
.chip--warn     { color: oklch(38% 0.13 75);  border-color: color-mix(in oklch, var(--warn) 35%, var(--border)); background: var(--warn-soft); }
.chip--danger   { color: oklch(38% 0.16 27);  border-color: color-mix(in oklch, var(--danger) 35%, var(--border)); background: var(--danger-soft); }
.chip--secondary{ color: oklch(38% 0.12 175); border-color: color-mix(in oklch, var(--secondary) 35%, var(--border)); background: var(--secondary-soft); }
.chip--dark     { color: var(--bg); background: var(--fg); border-color: var(--fg); }

.dot { width: 8px; height: 8px; border-radius: var(--r-pill); display: inline-block; background: var(--muted-soft); }
.dot--success { background: var(--success); }
.dot--warn    { background: var(--warn); }
.dot--danger  { background: var(--danger); }
.dot--accent  { background: var(--accent); }
.dot--pulse   { box-shadow: 0 0 0 0 currentColor; animation: pulse 1.6s ease-out infinite; color: var(--success); }
@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 color-mix(in oklch, currentColor 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}

/* ───── tables ───── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.tbl th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-2);
}
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--font-mono); }
.tbl--inset { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.tbl--inset th:first-child, .tbl--inset td:first-child { padding-left: 18px; }
.tbl--inset th:last-child, .tbl--inset td:last-child { padding-right: 18px; }

/* ───── inputs ───── */
.field { display: grid; gap: 6px; }
.field > label, .label {
  font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.input, .textarea, .select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--fg);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent);
}
.textarea { min-height: 96px; resize: vertical; font-family: inherit; }
.input--lg { min-height: 48px; font-size: 16px; }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ───── stat blocks ───── */
.stat {
  display: grid; gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat__label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.stat__value { font-family: var(--font-display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat__sub   { color: var(--muted); font-size: 13px; }
.stat__delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.stat__delta--up { color: var(--success); }
.stat__delta--down { color: var(--danger); }
.stat--dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.stat--dark .stat__label { color: color-mix(in oklch, var(--bg) 64%, transparent); }
.stat--dark .stat__sub { color: color-mix(in oklch, var(--bg) 64%, transparent); }

/* ───── progress / meters ───── */
.bar {
  height: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden;
}
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bar--success > i { background: var(--success); }
.bar--warn > i { background: var(--warn); }
.bar--danger > i { background: var(--danger); }
.bar--secondary > i { background: var(--secondary); }

.meter {
  display: grid; gap: 10px;
}
.meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter__name { font-weight: 550; }
.meter__num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ───── evidence-matrix (D191 4-Spalten) ───── */
.matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.matrix thead th {
  padding: 10px 8px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.matrix thead th:first-child { text-align: left; padding-left: 18px; }
.matrix tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.matrix tbody td:first-child {
  text-align: left; padding-left: 18px;
  font-weight: 550;
}
.matrix tbody tr:hover { background: var(--surface-2); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix__component { display: grid; gap: 2px; }
.matrix__component small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.matrix__cell {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
}
.matrix__cell[data-status="green"]  { background: var(--success-soft); color: oklch(35% 0.12 150); border: 1px solid color-mix(in oklch, var(--success) 30%, transparent); }
.matrix__cell[data-status="amber"]  { background: var(--warn-soft); color: oklch(38% 0.13 75); border: 1px solid color-mix(in oklch, var(--warn) 30%, transparent); }
.matrix__cell[data-status="red"]    { background: var(--danger-soft); color: oklch(38% 0.16 27); border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent); }
.matrix__cell[data-status="na"]     { background: var(--surface-2); color: var(--muted-soft); border: 1px solid var(--border); }
.matrix__gap { color: var(--muted); font-size: 12.5px; text-align: left; max-width: 320px; }

/* ───── timeline / phase strip ───── */
.phase-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
.phase-cell {
  padding: 16px 18px; border-right: 1px solid var(--border);
  display: grid; gap: 6px;
}
.phase-cell:last-child { border-right: 0; }
.phase-cell__label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.phase-cell__title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.phase-cell__meta  { font-size: 12px; color: var(--muted); }
.phase-cell[data-state="active"] { background: var(--fg); color: var(--bg); }
.phase-cell[data-state="active"] .phase-cell__label { color: color-mix(in oklch, var(--bg) 60%, transparent); }
.phase-cell[data-state="active"] .phase-cell__meta  { color: color-mix(in oklch, var(--bg) 60%, transparent); }

/* ───── sidebar layout ───── */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.side {
  border-right: 1px solid var(--border);
  background: var(--surface-2);
  padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.side__brand { padding: 4px 8px 18px; }
.side__group { margin-top: 20px; }
.side__group h6 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 0 8px 8px;
}
.side__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 120ms, background 120ms;
}
.side__item:hover { color: var(--fg); background: var(--surface); }
.side__item[aria-current="page"] {
  color: var(--fg); background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
}
.side__item .ic { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.side__item[aria-current="page"] .ic { opacity: 1; color: var(--accent); }
.side__item-meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.main { min-width: 0; padding: 32px clamp(24px, 4vw, 56px); }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.page-head__sub { color: var(--muted); margin-top: 6px; max-width: 640px; }

/* section breaks within a page */
.section + .section { margin-top: 36px; }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.section__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.section__sub { color: var(--muted); font-size: 13px; }

/* ───── icons (inline SVG class) ───── */
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ───── kpi-bar ───── */
.kpi-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
.kpi-bar > .kpi {
  padding: 18px 22px; border-right: 1px solid var(--border);
  display: grid; gap: 6px; min-width: 0;
}
.kpi-bar > .kpi:last-child { border-right: 0; }
.kpi__label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.kpi__value { font-family: var(--font-display); font-size: 30px; font-weight: 650; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.kpi__hint  { color: var(--muted); font-size: 12.5px; }
.kpi__hint.is-danger  { color: var(--danger); }
.kpi__hint.is-warn    { color: oklch(48% 0.13 75); }
.kpi__hint.is-success { color: oklch(40% 0.13 150); }

/* ───── trigger / banner row ───── */
.banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.banner__icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
  flex-shrink: 0;
}
.banner__icon.is-warn   { background: var(--warn-soft);   color: oklch(40% 0.13 75); }
.banner__icon.is-danger { background: var(--danger-soft); color: oklch(40% 0.16 27); }
.banner__icon.is-success{ background: var(--success-soft);color: oklch(38% 0.12 150); }
.banner__title { font-weight: 600; }
.banner__sub   { color: var(--muted); font-size: 13px; }

/* ───── breakpoints ───── */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-bar { grid-template-columns: repeat(2, 1fr); }
  .kpi-bar > .kpi:nth-child(2) { border-right: 0; }
  .kpi-bar > .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .phase-strip { grid-template-columns: repeat(2, 1fr); }
  .phase-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .phase-cell:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto;
    border-right: 0; border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .side__group { margin-top: 8px; }
  .side__group h6 { display: none; }
  .side__list { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .side__item { white-space: nowrap; }
  .main { padding: 24px 20px 80px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
  .matrix { font-size: 12.5px; }
  .matrix thead th, .matrix tbody td:first-child { padding-left: 12px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-tight { width: min(100% - 24px, 1320px); }
  .nav__inner { min-height: 56px; gap: 12px; }
  .nav__links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }
  .h-display { font-size: clamp(32px, 8vw, 44px); }
  .kpi-bar { grid-template-columns: 1fr; }
  .kpi-bar > .kpi { border-right: 0; border-bottom: 1px solid var(--border); }
  .kpi-bar > .kpi:last-child { border-bottom: 0; }
  .phase-strip { grid-template-columns: 1fr; }
  .phase-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .phase-cell:last-child { border-bottom: 0; }
  .card { padding: 16px; }
  .main { padding: 20px 16px 80px; }
  .tbl th, .tbl td { padding: 10px 12px; font-size: 13px; }
}

/* ───── helpers ───── */
.text-muted { color: var(--muted); }
.text-fg    { color: var(--fg); }
.text-success { color: var(--success); }
.text-warn    { color: var(--warn); }
.text-danger  { color: var(--danger); }
.text-accent  { color: var(--accent); }
.bg-surface-2 { background: var(--surface-2); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 36px; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 18px; }

/* ───── footer ───── */
.foot {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.foot__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ───── focus visible ───── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
