:root {
  /* Neutrals (old Namou green-tinted ground) */
  --bg: #eef2f1;
  --surface: #ffffff;
  --surface-muted: #f0f3f2;
  --hover: #f6f8f7;
  --ink: #333333;
  --ink-strong: #1f2328;
  --muted: #6d6d6d;
  --muted-2: #92979d;
  --line: #e2e7e5;
  --line-strong: #d2d9d6;
  /* Brand (Namou) — UI accents only, never chart data */
  --brand: #00b073;
  --brand-deep: #003d2e;
  --brand-text: #006b47;
  --brand-soft: #e7f5ef;
  --brand-line: rgba(0, 176, 115, 0.32);
  /* Data (charts stay blue for readability) */
  --data-1: #0077e6;
  --data-2: #519dfa;
  --green: #0f7550;
  --green-soft: #e9f7f1;
  --red: #b93838;
  --red-soft: #fff0f0;
  --amber: #89570d;
  --amber-soft: #fff6df;
  --grey: #aeb4bc;
  --radius: 14px;
  --radius-sm: 6px;
  --sidebar: 224px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 8px 24px rgba(16, 24, 40, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.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;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink-strong);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Shell */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  background: #101413;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar .brand { color: #fff; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--ink-strong);
  text-decoration: none;
}
.brand__logo { display: block; width: 34px; height: 34px; border-radius: 9px; }
.sidebar__label {
  margin: 32px 10px 8px;
  color: #8b948f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar__nav { display: grid; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 9px;
  color: #aab3ae;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition-property: background-color, color;
  transition-duration: 140ms;
}
.nav-link svg,
.menu-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link:first-child svg { fill: currentColor; stroke: none; }
.nav-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-link.is-active { background: rgba(0, 176, 115, 0.16); color: #4fe0a8; font-weight: 600; }
.sidebar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b948f;
  font-size: 12px;
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 167, 111, 0.12);
}
.app-main { min-height: 100vh; margin-inline-start: var(--sidebar); }
.mobile-bar { display: none; }
.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 28px 28px 40px; }

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-header h1 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.page-header__copy { max-width: 680px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.page-status { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 32px; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.page-status__updated, .hero__updated { color: var(--muted); font-size: 12px; white-space: nowrap; }
.icon-button,
.menu-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 140ms;
}
.icon-button:hover, .menu-button:hover { border-color: var(--line-strong); background: var(--surface-muted); color: var(--brand-text); }
.icon-button:active, .menu-button:active { transform: scale(0.96); }
.refresh.is-spinning svg { animation: spin 0.8s linear infinite; }
.refresh:disabled { cursor: wait; opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* KPI cards */
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  min-width: 0;
  min-height: 94px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.kpi__label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.kpi__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi__value {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kpi__value small { font-size: 11px; font-weight: 600; }
.kpi__sub { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.kpi__row .kpi__sub { margin: 0; }

/* Cards and filters */
.card {
  min-width: 0;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.card__title {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 22px;
}
.card__sub { max-width: 760px; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 17px; }
.card__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; color: var(--muted); font-size: 11px; }
.card__legend span { display: inline-flex; align-items: center; gap: 6px; }
.card__legend i { width: 8px; height: 8px; border-radius: 2px; }
.grid2, .charts2, .cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid2 > .card, .charts2 > .card, .cards2 > .card { margin-top: 14px; }
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.controls__group { display: flex; align-items: center; gap: 10px; }
.controls__note { color: var(--muted); font-size: 11px; line-height: 16px; }
.controls--website { margin-bottom: 14px; }
.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}
.seg__btn {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 130ms;
}
.seg__btn:hover { color: var(--ink-strong); }
.seg__btn.is-active { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }
.seg__btn:active, .chip:active { transform: scale(0.96); }
.seg--sm .seg__btn { padding-inline: 8px; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.filter { display: flex; align-items: center; gap: 7px; }
.filter__label { color: var(--muted); font-size: 11px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  transition-property: transform, border-color, color, background-color;
  transition-duration: 130ms;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink-strong); }
.chip.is-active { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-text); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; }
.csel, .search {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.csel { max-width: 260px; padding: 0 28px 0 9px; }
.search { width: 190px; padding: 0 10px; }
.csel:hover, .search:hover { border-color: var(--line-strong); }
.explorer__tools { display: flex; align-items: center; gap: 8px; }

/* Banners, badges and small labels */
.banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
}
.banner__item { color: #3f4d49; font-size: 12px; line-height: 18px; }
.banner__item::before { display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--brand); content: ""; }
.banner__item--good::before { background: var(--green); }
.banner__item--watch::before { background: var(--amber); }
.banner__item--info::before { background: var(--brand); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}
.badge--rising { background: var(--green-soft); color: var(--green); }
.badge--falling { background: var(--red-soft); color: var(--red); }
.badge--flat, .badge--low { background: var(--surface-muted); color: var(--muted); }
.badge--new { background: var(--brand-soft); color: var(--brand-text); }
.pill, .tag, .mt, .qs {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
}
.pill--muted, .tag, .mt { background: var(--surface-muted); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag--on, .qs--g { background: var(--green-soft); color: var(--green); }
.qs--a { background: var(--amber-soft); color: var(--amber); }
.qs--r { background: var(--red-soft); color: var(--red); }
.qs--n { background: var(--surface-muted); color: var(--muted); }
.cpql--good, .cpl--good { color: var(--green) !important; }
.cpql--bad, .cpl--bad, .spend-bad { color: var(--red) !important; }
.cpql--mid, .cpl--mid { color: var(--ink-strong) !important; }

/* Ranking rows shared by Meta and Google */
.rank { display: grid; }
.lrow, .prow {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.lrow:first-child, .prow:first-child { border-top: 0; }
.lrow { grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1.6fr) 92px 92px 72px; }
.lrow__name, .prow__name { min-width: 0; }
.lrow__land, .prow__title { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--ink-strong); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lrow__rank, .prow__rank {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.lrow__ad, .lrow__cap, .prow__cap, .prow__spend { margin-top: 3px; color: var(--muted); font-size: 11px; }
.lrow__bar { display: flex; align-items: center; gap: 9px; }
.lrow__track, .brow__track, .prow__track, .frow__track, .devbar {
  flex: 1 1 auto; /* fills .lrow__bar; harmless for grid-placed tracks */
  position: relative;
  display: block;
  min-width: 0;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}
.lrow__fill, .brow__fill, .prow__fill, .prow__prev, .frow__fill, .devbar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--data-1); }
.lrow__ql { min-width: 22px; color: var(--ink-strong); font-size: 12px; font-weight: 600; text-align: end; }
.lrow__metric { text-align: end; }
.lrow__big, .prow__big { color: var(--ink-strong); font-size: 15px; font-weight: 600; }
.lrow__badge, .prow__badge { text-align: end; }

.prow { grid-template-columns: minmax(200px, 1.4fr) minmax(180px, 1.6fr) 70px 100px 72px; }
.prow__bars { display: grid; gap: 7px; }
.prow__prev { background: var(--grey); }
.prow__conv, .prow__cpc { text-align: end; }

/* Meta broker and explorer */
.bboxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bbox { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-muted); }
.bbox__head { display: flex; align-items: center; gap: 6px; color: var(--ink-strong); font-size: 12px; font-weight: 600; }
.bbox__head .badge { margin-inline-start: auto; }
.bbox__lbl { color: var(--muted); font-weight: 500; }
.bbox__ql { margin-top: 10px; color: var(--ink-strong); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.bbox__ql span, .bbox__sub { color: var(--muted); font-size: 11px; font-weight: 500; }
.brank { margin-top: 12px; }
.brow { display: grid; grid-template-columns: 34px minmax(160px, 1fr) minmax(100px, 1.5fr) 40px 84px; align-items: center; gap: 10px; min-height: 46px; padding-block: 6px; border-top: 1px solid var(--line); cursor: pointer; }
.brow:hover { background: var(--hover); }
.brow__name { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.brow__ql, .brow__cpql { font-size: 12px; text-align: end; }
.tbl--head, .erow { display: grid; grid-template-columns: minmax(280px, 1.7fr) 62px 94px 86px 62px 72px; gap: 10px; align-items: center; }
.tbl--head { min-height: 30px; padding: 0 10px; border-radius: 7px; background: var(--surface-muted); color: var(--muted); font-size: 11px; font-weight: 600; }
.tbl--head .num { text-align: end; }
.explorer { display: grid; }
.erow { min-height: 44px; padding: 5px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.erow:hover { background: var(--hover); }
.erow--l1 { padding-inline-start: 26px; }
.erow--l2 { padding-inline-start: 42px; cursor: pointer; }
.erow__name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.erow__label { overflow: hidden; color: var(--ink-strong); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.erow--l0 .erow__label { font-weight: 600; }
.erow__caret { width: 10px; flex: 0 0 auto; color: var(--muted); font-size: 8px; transition: transform 140ms; }
.erow.is-open > .erow__name .erow__caret { transform: rotate(90deg); }
.erow .num { text-align: end; }
.erow__tag { display: inline-flex; padding: 1px 5px; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 10px; white-space: nowrap; }
.erow__thumb {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background-color: var(--surface-muted);
  background-position: center;
  background-size: cover;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
  outline: 1px solid rgba(0, 0, 0, 0.1);
}
.erow__thumblink:hover { outline-color: var(--brand-line); }

/* Tables */
.tbl__wrap { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th, .tbl td { min-width: 76px; padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: end; white-space: nowrap; }
.tbl th { color: var(--muted); font-size: 11px; font-weight: 600; }
.tbl th:first-child, .tbl td:first-child { min-width: 190px; text-align: start; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl__tot td { color: var(--ink-strong); font-weight: 600; }
.tbl--left th, .tbl--left td { text-align: start; }
.tbl--left td:first-child { min-width: 210px; }
.tbl__scroll { max-height: 430px; overflow: auto; }
.sub { max-width: 230px; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }

/* Google charts and funnel */
.funnel { display: grid; gap: 10px; }
.frow { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 12px; }
.frow__lab { color: var(--ink-strong); font-size: 12px; font-weight: 500; }
.frow__lab small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.frow__track { height: 28px; }
.frow__fill { display: flex; align-items: center; justify-content: space-between; min-width: 48px; padding-inline: 8px; color: #fff; font-size: 11px; }
.frow__pct { margin-inline-start: auto; }
.chartbox { position: relative; height: 230px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; min-height: 210px; }
.donut { position: relative; width: 170px; height: 170px; flex: 0 0 auto; }
.donut svg, .donut canvas { width: 100% !important; height: 100% !important; }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut__total { color: var(--ink-strong); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.donut__lab { color: var(--muted); font-size: 11px; }
.legend { display: grid; width: 100%; min-width: 0; }
.legend__i { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 30px; border-bottom: 1px solid var(--line); font-size: 11px; }
.legend__dot { width: 7px; height: 7px; border-radius: 2px; }
.legend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend__v, .legend__p { color: var(--muted); text-align: end; }
.matrix { width: 100%; overflow-x: auto; }
.mtx { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 10px; }
.mtx th { height: 24px; color: var(--muted); font-weight: 500; }
.mtx td { min-width: 33px; height: 30px; border-radius: 5px; text-align: center; }
.mtx th:first-child, .mtx td:first-child { min-width: 58px; color: var(--muted); text-align: start; }
.devgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.devbox { padding: 13px; border-radius: var(--radius-sm); background: var(--surface-muted); }
.devbox__head { display: flex; justify-content: space-between; color: var(--ink-strong); font-size: 12px; font-weight: 600; }
.devbox__share { color: var(--brand-text); }
.devbox__big { margin-top: 12px; color: var(--ink-strong); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.devbox__cap { color: var(--muted); font-size: 11px; }
.devbar { margin-top: 10px; }
.devbox__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.devbox__meta b { color: var(--ink); }

/* Movers */
.movers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mcol { min-width: 0; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-muted); }
.mcol__head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--ink-strong); font-size: 12px; font-weight: 600; }
.mcol__head i { width: 7px; height: 7px; border-radius: 50%; }
.mitem { padding: 8px 0; border-top: 1px solid var(--line); }
.mitem:first-of-type { border-top: 0; }
.mitem__name { overflow: hidden; color: var(--ink-strong); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mitem__meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.mcol__empty, .empty { padding: 18px 8px; color: var(--muted); font-size: 12px; text-align: center; }

/* Meta custom trend */
.trend { min-height: 220px; }
.trend__chart { position: relative; height: 180px; }
.trend__chart svg { width: 100%; height: 100%; overflow: visible; }
.trend__area { fill: rgba(81, 157, 250, 0.12); }
.trend__line { fill: none; stroke: var(--data-2); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.trend__avg { fill: none; stroke: var(--data-1); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.trend__flag { stroke: var(--amber); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.trend__flagt { position: absolute; inset-block-start: 2px; transform: translateX(-50%); color: var(--amber); font-size: 10px; }
.trend__guide { position: absolute; inset-block: 0; display: none; width: 1px; background: var(--line-strong); pointer-events: none; }
.trend__hdot { position: absolute; display: none; width: 9px; height: 9px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--data-1); box-shadow: 0 0 0 1px var(--data-1); pointer-events: none; }
.trend__tip { position: absolute; z-index: 2; display: none; transform: translate(-50%, calc(-100% - 10px)); padding: 6px 8px; border-radius: 7px; background: var(--ink-strong); color: #fff; font-size: 10px; white-space: nowrap; pointer-events: none; }
.trend__hot { position: absolute; inset: 0; cursor: crosshair; }
.trend__xaxis { position: relative; height: 24px; margin-inline: 8px; }
.trend__xlab { position: absolute; transform: translateX(-50%); color: var(--muted); font-size: 10px; white-space: nowrap; }
.trend__vlab { position: absolute; transform: translate(-50%, calc(-100% - 7px)); color: #555e66; font-size: 10px; font-weight: 600; pointer-events: none; }
.website-trend__value { fill: #555e66; font-family: var(--font); font-size: 10px; font-weight: 600; }

/* Website */
.intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.intent-card { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-muted); }
.intent-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.intent-card__label { color: var(--muted); font-size: 12px; font-weight: 500; }
.intent-card__value { margin-top: 14px; color: var(--ink-strong); font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 28px; }
.intent-card__note { margin-top: 3px; color: var(--muted); font-size: 10px; }
.website-trend { min-height: 230px; }
.website-trend svg { display: block; width: 100%; height: 210px; overflow: visible; }
.website-trend__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.website-trend__area { fill: rgba(81, 157, 250, 0.12); }
.website-trend__line { fill: none; stroke: var(--data-2); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.website-trend__dot { fill: var(--data-1); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.website-trend__label { fill: var(--muted); font-family: var(--font); font-size: 10px; }
.data-list { display: grid; }
.data-row { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(120px, 1fr) 64px; align-items: center; gap: 10px; min-height: 42px; border-top: 1px solid var(--line); }
.data-row:first-child { border-top: 0; }
.data-row__name { overflow: hidden; color: var(--ink-strong); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.data-row__track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-muted); }
.data-row__fill { display: block; height: 100%; border-radius: inherit; background: var(--data-1); }
.data-row__value { color: var(--ink-strong); font-size: 11px; font-weight: 600; text-align: end; }
.data-row__delta { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.device-ring-wrap { display: flex; align-items: center; gap: 22px; min-height: 220px; }
.device-ring { position: relative; width: 160px; height: 160px; flex: 0 0 auto; border-radius: 50%; }
.device-ring::after { position: absolute; inset: 24px; border-radius: 50%; background: var(--surface); content: ""; }
.device-ring__center { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; color: var(--ink-strong); font-family: var(--font-display); font-size: 18px; font-weight: 600; text-align: center; }
.device-ring__center small { display: block; color: var(--muted); font-family: var(--font); font-size: 10px; font-weight: 500; }
.device-key { display: grid; flex: 1; }
.device-key__row { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid var(--line); font-size: 11px; }
.device-key__dot { width: 7px; height: 7px; border-radius: 2px; }
.device-key__value { color: var(--muted); }
.referrer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.referrer-card { min-width: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-muted); }
.referrer-card__domain { overflow: hidden; color: var(--ink-strong); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.referrer-card__value { margin-top: 8px; color: var(--ink-strong); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.referrer-card__label { color: var(--muted); font-size: 10px; }

/* Weekly overview (Monday brief) */
.kpis.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.week-nav { display: inline-flex; align-items: center; gap: 6px; }
.week-nav__label { min-width: 150px; color: var(--ink-strong); font-size: 13px; font-weight: 600; text-align: center; }
.week-nav .icon-button:disabled { cursor: default; opacity: 0.35; }
.banner-inline { margin-bottom: 14px; padding: 10px 14px; border: 1px solid #f2caca; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red); font-size: 12px; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brief-grid > .card { margin: 0; }
.brief-card__link { flex: 0 0 auto; color: var(--brand-text); font-size: 12px; font-weight: 600; text-decoration: none; }
.brief-card__link:hover { text-decoration: underline; }
.brief-card__sub { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.brief-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brief-stat { min-width: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-muted); }
.brief-stat__label { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.brief-stat__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.brief-stat__value { color: var(--ink-strong); font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 26px; }
.brief-stat__value small { font-size: 11px; }
.brief-stat__note { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.brief-list { margin: 10px 0 0; padding: 0; list-style: none; }
.brief-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 12px; }
.brief-list li span:first-child { overflow: hidden; color: var(--ink-strong); text-overflow: ellipsis; white-space: nowrap; }
.brief-list li span:last-child { flex: 0 0 auto; color: var(--muted); }
.empty--error { color: var(--red); }
.bars__plot { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-items: end; gap: 10px; height: 230px; padding-top: 6px; }
.bars__col { display: flex; height: 100%; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.bars__stack { display: flex; min-height: 2px; flex-direction: column-reverse; overflow: hidden; border-radius: 5px 5px 0 0; background: var(--line); }
.bars__stack span { display: block; min-height: 2px; }
.bars__value { margin-bottom: 4px; color: var(--ink-strong); font-size: 11px; font-weight: 600; text-align: center; }
.bars__label { margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 10px; text-align: center; white-space: nowrap; }
@media (max-width: 1180px) {
  .brief-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .kpis.kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .kpis.kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-stats { grid-template-columns: 1fr; }
  .bars__plot { gap: 5px; }
  .bars__label { font-size: 9px; }
}

/* Meetings page — same look as the "Namou Weekly Meeting Dashboard" PDF report
   (forest / mint palette, channel tags, seniority pills, horizontal person cards). */
.mb {
  --mb-forest: #003d2e; --mb-forest-ink: #0a2e24; --mb-mint: #87c6ae; --mb-mint-white: #f7fbf8;
  --mb-mint-light: #eef6f1; --mb-mint-tint: #f2f8f5; --mb-mint-border: #c2ddd0; --mb-sage: #457c68;
  --mb-ink-2: #3a4a44; --mb-ink-3: #6b7b75; --mb-ink-4: #9aa8a3; --mb-hairline: #e4ebe7;
  --mb-blue-bg: #eef5fc; --mb-blue-bd: #c3d9ef; --mb-yellow-bg: #fcf8e9; --mb-yellow-bd: #ebdca8;
  --mb-purple-bg: #f7f3fc; --mb-purple-bd: #d9ccee;
}
.mb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.mb-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 15px 12px; border: 1.5px solid var(--mb-mint-border); border-radius: 10px; background: var(--mb-mint-white); }
.mb-kpi.c-blue { border-color: var(--mb-blue-bd); background: var(--mb-blue-bg); }
.mb-kpi.c-yellow { border-color: var(--mb-yellow-bd); background: var(--mb-yellow-bg); }
.mb-kpi.c-purple { border-color: var(--mb-purple-bd); background: var(--mb-purple-bg); }
.mb-kpi-label { color: var(--mb-sage); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
.mb-kpi-value { color: var(--mb-forest-ink); font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.1; }
.mb-kpi-sub { overflow: hidden; color: var(--mb-ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mb-d { margin-inline-start: 8px; font-size: 11px; font-weight: 600; vertical-align: 3px; }
.mb-d.up { color: var(--mb-forest); } .mb-d.down { color: #b91c1c; } .mb-d.flat { color: var(--mb-ink-4); }
.mb-section { margin-top: 14px; }
.mb-heading { display: flex; align-items: center; margin-bottom: 13px; }
.mb-eyebrow { color: var(--mb-sage); font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.mb-rule { flex: 1; height: 1px; margin-inline-start: 14px; background: var(--mb-hairline); }
.mb-tw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mb-tw-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--mb-mint-border); border-radius: 10px; background: var(--mb-mint-white); }
.mb-tw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mb-tw-name { color: var(--mb-forest-ink); font-size: 13px; font-weight: 600; }
.mb-tw-title { color: var(--mb-ink-3); font-size: 11.5px; line-height: 1.35; }
.mb-tw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.mb-tw-co { flex: 1 1 140px; overflow: hidden; color: var(--mb-ink-2); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.mb-empty { padding: 16px; border: 1.5px solid var(--mb-mint-border); border-radius: 10px; background: var(--mb-mint-white); color: var(--mb-ink-3); font-size: 12px; font-style: italic; text-align: center; }
.mb-gtag { padding: 2px 6px; border: 1px solid var(--mb-mint-border); border-radius: 4px; background: var(--mb-mint-light); color: var(--mb-sage); font-size: 10px; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap; }
.mb-chan { display: inline-block; margin-inline-end: 3px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; }
.ch-hr { border: 1px solid var(--mb-yellow-bd); background: var(--mb-yellow-bg); color: #8a6a12; }
.ch-in { border: 1px solid var(--mb-purple-bd); background: var(--mb-purple-bg); color: #6b5aa0; }
.ch-em { border: 1px solid var(--mb-blue-bd); background: var(--mb-blue-bg); color: #315b76; }
.st-b { border: 1px solid #c6dce9; background: #edf5fa; color: #315b76; }
.st-h { border: 1px solid #bfe0cd; background: #eaf6ef; color: #1a6b45; }
.st-x { border: 1px solid #eccccc; background: #fdf4f4; color: #b91c1c; }
.st-w { border: 1px solid var(--mb-yellow-bd); background: var(--mb-yellow-bg); color: #8a6a12; }
.mb-tpill { display: inline-block; padding: 3px 8px; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; }
.mb-tpill.t1 { background: var(--mb-forest); } .mb-tpill.t2 { background: var(--mb-sage); }
.mb-tpill.t3 { background: var(--mb-blue-bd); color: var(--mb-forest-ink); } .mb-tpill.t4 { background: #cbd5d0; color: var(--mb-ink-2); }
.mb-lb-row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 84px; align-items: center; gap: 12px; padding: 7px 0; }
.mb-lb-name { display: flex; align-items: center; gap: 8px; overflow: hidden; color: var(--mb-forest-ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mb-lb-barwrap { height: 14px; overflow: hidden; border-radius: 5px; background: var(--mb-mint-tint); }
.mb-lb-bar { height: 100%; border-radius: 5px; background: var(--mb-forest); }
.mb-lb-bar.t2 { background: var(--mb-mint); } .mb-lb-bar.t3 { background: var(--mb-blue-bd); } .mb-lb-bar.t4 { background: #cbd5d0; }
.mb-lb-val { color: var(--mb-forest-ink); font-size: 13px; font-weight: 700; text-align: end; }
.mb-lb-wk { display: block; color: var(--mb-sage); font-size: 10px; font-weight: 600; }
.mb-tchip { width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; }
.mb-tchip.t1 { background: var(--mb-forest); } .mb-tchip.t2 { background: var(--mb-mint); } .mb-tchip.t3 { background: var(--mb-blue-bd); } .mb-tchip.t4 { background: #cbd5d0; }
.mb-tablewrap { overflow-x: auto; }
.mb-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.mb-table thead tr { background: var(--mb-mint-white, #f7fbf8); }
.mb-table th { padding: 9px 8px; border-bottom: 1.5px solid var(--mb-mint-border, #c2ddd0); color: var(--mb-sage, #457c68); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-align: start; text-transform: uppercase; white-space: nowrap; }
.mb-table td { padding: 7px 8px; border-bottom: 1px solid var(--mb-hairline, #e4ebe7); color: var(--mb-ink-2, #3a4a44); line-height: 1.3; vertical-align: top; }
.mb-rank { color: var(--mb-ink-4); font-size: 11px; font-weight: 700; }
.mb-ln-name { color: var(--mb-forest-ink); font-size: 12.5px; font-weight: 600; }
.mb-ln-title { margin-top: 1px; color: var(--mb-ink-3); font-size: 11px; }
.mb-co { color: var(--mb-ink-2); }
.mb-date { color: var(--mb-ink-3); font-size: 11px; white-space: nowrap; }
.mb-foot { margin: 12px 0 0; color: var(--mb-ink-3); font-size: 11px; font-style: italic; }
.bars__pair { display: flex; align-items: flex-end; gap: 3px; }
.bars__pair .bars__stack { flex: 1; }
.banner-inline--note { border-color: var(--line); background: var(--surface-muted); color: var(--muted); }
.email-def { margin: -4px 0 14px; }
.sidebar__signout { margin-inline-start: auto; padding: 2px 0; border: 0; background: none; color: inherit; font-size: 11px; opacity: 0.7; cursor: pointer; }
.sidebar__signout:hover { opacity: 1; text-decoration: underline; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 16px; }
.login__card { display: grid; gap: 10px; width: min(360px, 100%); padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.login__title { margin: 6px 0 0; color: var(--ink-strong); font-family: var(--font-display); font-size: 20px; }
.login__copy { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.login__label { color: var(--ink-strong); font-size: 12px; font-weight: 600; }
.login__input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 16px; }
.login__input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.login__error { margin: 0; color: var(--red); font-size: 12px; }
.login__button { min-height: 42px; border: 0; border-radius: 8px; background: var(--brand-deep); color: #fff; font-weight: 600; cursor: pointer; }
.login__button:disabled { opacity: 0.6; cursor: wait; }
.brief-people { margin: 12px 0 0; padding: 0; list-style: none; }
.brief-people li { display: grid; gap: 1px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 12px; }
.brief-people strong { color: var(--ink-strong); }
.brief-people span { color: var(--muted); font-size: 11px; }
@media (max-width: 1000px) {
  .mb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .mb-tw-grid { grid-template-columns: 1fr; }
  .mb-lb-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .mb-lb-barwrap { grid-column: 1 / -1; grid-row: 2; }
}

.kpis.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.link-button { padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (max-width: 1180px) { .kpis.kpis--5, .kpis.kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.kpis--5, .kpis.kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Overlays and footer */
.overlay { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; background: rgba(246, 247, 249, 0.82); }
.overlay__msg { max-width: 340px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 12px; text-align: center; }
.overlay__msg--err { border-color: #f2caca; color: var(--red); }
.lightbox { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20, 25, 30, 0.72); }
.lightbox__card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 16px; background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3); }
.lightbox__close { position: absolute; z-index: 1; inset-block-start: 10px; inset-inline-end: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink-strong); font-size: 22px; cursor: pointer; }
.lightbox__img { min-height: 240px; background: var(--surface-muted); }
.lightbox__img img { display: block; width: 100%; max-height: 62vh; object-fit: contain; outline: 1px solid rgba(0, 0, 0, 0.1); }
.lightbox__meta { padding: 16px; }
.lightbox__meta h3 { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: 17px; }
.lb-actions { margin-top: 12px; }
.lb-open { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 7px; background: var(--brand-text); color: #fff; font-size: 11px; font-weight: 600; text-decoration: none; }
.lb-noad { color: var(--muted); font-size: 11px; }
.foot { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 16px; text-align: center; }
.fade, .fade.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .movers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lrow { grid-template-columns: minmax(170px, 1.2fr) minmax(140px, 1.4fr) 78px 78px 68px; }
  .bboxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 16px 0 40px rgba(16, 24, 40, 0.12); transition: transform 180ms cubic-bezier(0.2, 0, 0, 1); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .app-main { margin-inline-start: 0; }
  .mobile-bar { position: sticky; z-index: 30; inset-block-start: 0; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #101413; }
  .brand--mobile { min-height: 32px; }
  .mobile-bar .menu-button { border-color: rgba(255, 255, 255, 0.18); background: transparent; color: #aab3ae; }
  .mobile-bar .menu-button:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); color: #fff; }
  .content { padding: 22px 18px 36px; }
  .sidebar-scrim { position: fixed; z-index: 35; inset: 0; background: rgba(20, 25, 30, 0.42); }
  body.sidebar-open .sidebar-scrim { display: block !important; }
  .controls { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .controls__note { max-width: 700px; }
  .grid2, .charts2, .cards2 { grid-template-columns: 1fr; }
  .referrer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .csel { width: 100%; max-width: none; }
  .page-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .page-status { justify-content: flex-start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__head { flex-direction: column; }
  .card__legend { justify-content: flex-start; }
  .explorer__tools { width: 100%; align-items: stretch; flex-direction: column; }
  .search { width: 100%; font-size: 16px; }
  .lrow { grid-template-columns: minmax(0, 1fr) 70px 68px; gap: 8px; }
  .lrow__bar { grid-column: 1 / -1; grid-row: 2; }
  .lrow__metric:nth-of-type(2), .lrow__badge { display: none; }
  .prow { grid-template-columns: minmax(0, 1fr) 65px 84px; }
  .prow__bars { grid-column: 1 / -1; grid-row: 2; }
  .prow__badge { display: none; }
  .tbl--head { display: none; }
  .erow { grid-template-columns: minmax(0, 1fr) 42px 76px; padding-inline: 4px; }
  .erow > :nth-child(4), .erow > :nth-child(5), .erow > :nth-child(6) { display: none; }
  .erow--l1 { padding-inline-start: 16px; }
  .erow--l2 { padding-inline-start: 28px; }
  .movers { grid-template-columns: 1fr; }
  .devgrid, .intent-grid { grid-template-columns: 1fr; }
  .donut-wrap, .device-ring-wrap { align-items: flex-start; flex-direction: column; }
  .brow { grid-template-columns: 32px minmax(0, 1fr) 42px 78px; }
  .brow__track { display: none; }
  .frow { grid-template-columns: 90px minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .content { padding-inline: 12px; }
  .mobile-bar { padding-inline: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { min-height: 88px; padding: 12px; }
  .card { padding: 14px 12px; }
  .seg { max-width: 100%; overflow-x: auto; }
  .filters, .filter { width: 100%; align-items: flex-start; flex-direction: column; }
  .controls__group { width: 100%; align-items: stretch; flex-direction: column; }
  .csel { max-width: none; width: 100%; font-size: 16px; }
  .bboxes, .referrer-grid { grid-template-columns: 1fr; }
  .page-status__updated { white-space: normal; }
  .lightbox { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  :focus-visible { outline: 2px solid CanvasText; }
  .status-dot, .banner__item::before, .legend__dot, .mcol__head i { forced-color-adjust: none; }
}
