/* The Edit · Dashboard */

:root {
  color-scheme: light;
  --page: #f4f3ef;
  --surface: #fcfcfb;
  --surface-2: #f4f3ef;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --wash: rgba(11, 11, 11, 0.045);
  --accent: #0b0b0b;
  --accent-ink: #fcfcfb;
  --good-text: #006300;
  --bad-text: #c23434;
  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-serious: #ec835a;
  --status-critical: #d03b3b;
  --status-idle: #a9a8a1;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #6250d6;
  --s8: #e34948;
  --other: #b9b8b0;
  --ramp-1: #86b6ef;
  --ramp-2: #5598e7;
  --ramp-3: #2a78d6;
  --ramp-4: #1c5cab;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #222220;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --wash: rgba(255, 255, 255, 0.06);
    --accent: #f0efec;
    --accent-ink: #0b0b0b;
    --good-text: #0ca30c;
    --bad-text: #f07a7a;
    --status-idle: #6b6a65;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s6: #0ca30c;
    --s7: #9085e9;
    --s8: #e66767;
    --other: #5a5955;
    --ramp-1: #184f95;
    --ramp-2: #256abf;
    --ramp-3: #3987e5;
    --ramp-4: #6da7ec;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #222220;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --wash: rgba(255, 255, 255, 0.06);
  --accent: #f0efec;
  --accent-ink: #0b0b0b;
  --good-text: #0ca30c;
  --bad-text: #f07a7a;
  --status-idle: #6b6a65;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #0ca30c;
  --s7: #9085e9;
  --s8: #e66767;
  --other: #5a5955;
  --ramp-1: #184f95;
  --ramp-2: #256abf;
  --ramp-3: #3987e5;
  --ramp-4: #6da7ec;
  --shadow: none;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 var(--font);
  min-height: 100vh;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 15px; }
h3 { font-size: 13px; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- topo ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px 6px;
  max-width: 1360px;
  margin: 0 auto;
}

.brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex-wrap: wrap; }
.wordmark { font-weight: 700; letter-spacing: 0.32em; font-size: 15px; }
.brand-sub { color: var(--ink-2); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions form { margin: 0; }
.account-chip { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover { background: var(--wash); }
.btn:focus-visible, .seg-btn:focus-visible, .tabs button:focus-visible, select:focus-visible, input:focus-visible, .th-btn:focus-visible {
  outline: 2px solid var(--s1);
  outline-offset: 2px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); opacity: 0.88; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-icon { width: 34px; padding: 0; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- filtros e abas ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 10px 32px 14px;
  max-width: 1360px;
  margin: 0 auto;
}
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.field select, .field input, .control {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 10px;
  color: var(--ink);
  min-width: 0;
}
.updated { color: var(--muted); font-size: 12px; align-self: center; margin-left: auto; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 0 32px;
  max-width: 1360px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0;
  background: none;
  padding: 10px 12px 12px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.banner {
  max-width: 1296px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--status-critical);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.banner::before {
  content: "!";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--status-critical);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.banner[hidden] { display: none; }
.banner.is-warning { border-color: var(--status-warning); }
.banner.is-warning::before { background: var(--status-warning); color: #0b0b0b; }

main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  transition: opacity 0.2s;
}
main.is-loading { opacity: 0.55; pointer-events: none; }

.footer { max-width: 1360px; margin: 0 auto; padding: 0 32px 32px; color: var(--muted); font-size: 12px; }

.tab-panel { display: flex; flex-direction: column; gap: 16px; }
.tab-panel[hidden] { display: none; }

/* ---------- cards e 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-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head .sub { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.card-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-hero { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 -4px; }
.section-title h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-weight: 600; }
.section-title span { color: var(--muted); font-size: 12px; }

.hero { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.hero-label { color: var(--ink-2); font-size: 13px; }
.hero-value { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-top: 6px; overflow-wrap: anywhere; }
.hero-meta { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); font-size: 13px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.tiles.flat .tile { box-shadow: none; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-label { color: var(--ink-2); font-size: 12px; }
.tile-value { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tile-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12px; color: var(--ink-2); }
.tile-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

.delta { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.good { color: var(--good-text); }
.delta.bad { color: var(--bad-text); }
.delta.neutral { color: var(--ink-2); }
.delta.none { color: var(--muted); font-weight: 400; }
.vs { color: var(--muted); font-size: 11px; }

/* ---------- controles ---------- */

.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--wash); padding: 3px; border-radius: 999px; max-width: 100%; }
.seg-btn {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .grow { flex: 1 1 200px; }
.search { height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); padding: 0 12px; width: 100%; max-width: 320px; }

/* ---------- gráficos ---------- */

.chart { position: relative; width: 100%; min-height: 200px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:focus-visible { fill: var(--wash); }
.chart .bar { transition: opacity 0.12s; }
.chart.has-hover .bar { opacity: 0.45; }
.chart.has-hover .bar.is-hover { opacity: 1; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: 0.1; }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart-empty { display: grid; place-items: center; min-height: 200px; color: var(--muted); }

.f-s1 { fill: var(--s1); } .f-s2 { fill: var(--s2); } .f-s3 { fill: var(--s3); } .f-s4 { fill: var(--s4); }
.f-s5 { fill: var(--s5); } .f-s6 { fill: var(--s6); } .f-s7 { fill: var(--s7); } .f-s8 { fill: var(--s8); }
.f-other { fill: var(--other); }
.st-s1 { stroke: var(--s1); } .st-s2 { stroke: var(--s2); } .st-s3 { stroke: var(--s3); } .st-s4 { stroke: var(--s4); }
.bg-s1 { background: var(--s1); } .bg-s2 { background: var(--s2); } .bg-s3 { background: var(--s3); } .bg-s4 { background: var(--s4); }
.bg-s5 { background: var(--s5); } .bg-s6 { background: var(--s6); } .bg-s7 { background: var(--s7); } .bg-s8 { background: var(--s8); }
.bg-other { background: var(--other); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-item strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.legend.stack { flex-direction: column; gap: 8px; }
.legend.stack .legend-item { justify-content: space-between; width: 100%; }
.legend.stack .legend-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

.segbar { display: flex; gap: 2px; height: 28px; width: 100%; margin: 4px 0 16px; }
.segbar-part {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
  outline: none;
}
.segbar-part.ink-dark { color: #0b0b0b; }
.segbar-part:hover, .segbar-part:focus-visible { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink-2); }

.tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  min-width: 140px;
  max-width: 280px;
}
.tt-title { color: var(--ink-2); margin-bottom: 4px; }
.tt-row { display: flex; align-items: center; gap: 8px; }
.tt-row strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.tt-row span:last-child { color: var(--ink-2); }
.tt-key { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.tt-key:not([class*="bg-"]) { background: var(--ink-2); }

/* ---------- funil ---------- */

.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; align-items: stretch; }
.funnel-step { padding: 4px 16px 4px 0; position: relative; }
.funnel-step + .funnel-step { padding-left: 16px; border-left: 1px solid var(--grid); }
.funnel-label { color: var(--ink-2); font-size: 12px; }
.funnel-value { font-size: 24px; font-weight: 600; margin: 2px 0; }
.funnel-rate { font-size: 12px; color: var(--ink-2); }
.funnel-rate strong { color: var(--ink); }
.funnel-meter { height: 8px; border-radius: 999px; background: var(--wash); margin-top: 8px; overflow: hidden; }
.funnel-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--ramp-3); }

/* ---------- tabelas ---------- */

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--grid); white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
table.data th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; background: var(--surface); }
table.data th:first-child, table.data td:first-child { text-align: left; padding-left: 0; }
table.data td.left, table.data th.left { text-align: left; }
table.data tbody tr:hover td { background: var(--wash); }
table.data tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--axis); }
table.data .name-cell { white-space: normal; min-width: 240px; max-width: 420px; }
table.data .name { font-weight: 500; overflow-wrap: anywhere; }
table.data .meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
table.data tr.child td { background: var(--surface-2); }
table.data tr.child .name-cell { padding-left: 34px; }
table.data .cell-sub { display: block; color: var(--muted); font-size: 11px; }
.th-btn { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.th-btn:hover { color: var(--ink); }
.sort-ind { font-size: 9px; }
.expander { all: unset; cursor: pointer; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; margin-right: 8px; color: var(--ink-2); flex: none; }
.expander:hover { background: var(--wash); }
.expander:focus-visible { outline: 2px solid var(--s1); }
.expander span { display: inline-block; font-size: 16px; line-height: 1; transition: transform 0.15s; }
.expander[aria-expanded="true"] span { transform: rotate(90deg); }
.name-row { display: flex; align-items: flex-start; }

.share { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 130px; }
.share-track { width: 80px; height: 8px; border-radius: 999px; background: var(--wash); overflow: hidden; flex: none; }
.share-track > span { display: block; height: 100%; background: var(--s1); border-radius: 999px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-idle); flex: none; }
.status-dot.good { background: var(--status-good); }
.status-dot.warning { background: var(--status-warning); }
.status-dot.critical { background: var(--status-critical); }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--wash); color: var(--ink-2); white-space: nowrap; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.empty { color: var(--muted); padding: 24px 0; text-align: center; margin: 0; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* ---------- criativos ---------- */

.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); min-width: 0; }
.ad-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-thumb .status { position: absolute; top: 10px; left: 10px; background: var(--surface); padding: 3px 8px; border-radius: 999px; box-shadow: 0 0 0 1px var(--border); }
.ad-thumb .rank { position: absolute; top: 10px; right: 10px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 11px; padding: 3px 8px; border-radius: 999px; box-shadow: 0 0 0 1px var(--border); }
.ad-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ad-name { font-weight: 600; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ad-path { color: var(--muted); font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-top: 2px; }
.ad-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin: 0; }
.ad-metrics div { min-width: 0; }
.ad-metrics dt { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-metrics dd { margin: 0; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-link { font-size: 12px; color: var(--ink-2); margin-top: auto; text-decoration: none; }
.ad-link:hover { color: var(--ink); text-decoration: underline; }

/* ---------- login ---------- */

.login-page { display: grid; place-items: center; padding: 16px; }
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 20px; margin: 18px 0 6px; }
.login-card .muted { margin: 0 0 22px; font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.login-form label { font-size: 12px; color: var(--ink-2); }
.login-form input { height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); padding: 0 12px; }
.login-form .btn { height: 42px; justify-content: center; margin-top: 8px; }
.login-error { color: var(--bad-text); font-size: 13px; margin: 2px 0 0; }

/* ---------- responsivo ---------- */

@media (max-width: 1020px) {
  .grid-hero, .grid-2-1, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 16px 4px; }
  .brand-sub, .account-chip { display: none; }
  .filters { padding: 8px 16px 12px; }
  .filters .field { flex: 1 1 130px; }
  .filters .field select, .filters .field input { width: 100%; }
  .updated { margin-left: 0; width: 100%; }
  .tabs { padding: 0 16px; }
  main { padding: 16px 16px 24px; }
  .footer { padding: 0 16px 24px; }
  .banner { margin: 12px 16px 0; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .hero-value { font-size: 40px; }
  .tiles, .tiles.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .funnel-step:nth-child(odd) { border-left: 0; padding-left: 0; }
  table.data .name-cell { min-width: 200px; }
}

@media (forced-colors: active) {
  .segbar-part, .legend-swatch, .tile-key, .status-dot { forced-color-adjust: none; border: 1px solid CanvasText; }
}
