/* Read Desk. Material Design 3: the official components (vendor/material-web.js) read the system tokens set here;
   the pieces Material has no component for (data tables, charts, the page frame) follow its type, shape and colour roles.
   Fonts are Google Sans and Roboto (both open licensed), served from this folder. Nothing is loaded from the network. */
@font-face { font-family: "Google Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/google-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Google Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/google-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Google Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/google-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/roboto-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --md-ref-typeface-brand: "Google Sans", "Roboto", system-ui, sans-serif;
  --md-ref-typeface-plain: "Roboto", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  /* Colour roles, light. */
  --md-sys-color-primary: #0b57d0; --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d3e3fd; --md-sys-color-on-primary-container: #041e49;
  --md-sys-color-secondary: #00639b; --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #c2e7ff; --md-sys-color-on-secondary-container: #001d35;
  --md-sys-color-tertiary: #146c2e; --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #c4eed0; --md-sys-color-on-tertiary-container: #072711;
  --md-sys-color-error: #b3261e; --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #f9dedc; --md-sys-color-on-error-container: #410e0b;
  --md-sys-color-background: #f0f4f9; --md-sys-color-on-background: #1f1f1f;
  --md-sys-color-surface: #ffffff; --md-sys-color-on-surface: #1f1f1f; --md-sys-color-on-surface-variant: #444746;
  --md-sys-color-surface-container-lowest: #ffffff; --md-sys-color-surface-container-low: #f8fafd; --md-sys-color-surface-container: #f0f4f9;
  --md-sys-color-surface-container-high: #e9eef6; --md-sys-color-surface-container-highest: #dde3ea;
  --md-sys-color-outline: #747775; --md-sys-color-outline-variant: #c4c7c5;
  --md-sys-color-inverse-surface: #303030; --md-sys-color-inverse-on-surface: #f2f2f2; --md-sys-color-inverse-primary: #a8c7fa;
  --md-sys-color-shadow: #000000; --md-sys-color-scrim: #000000;
  /* The page's own roles, built on the ones above. */
  --page: var(--md-sys-color-surface-container); --card: var(--md-sys-color-surface); --well: var(--md-sys-color-surface-container-low);
  --line: #e1e3e1; --good: #146c2e; --bad: #b3261e;
  --chart-line: #0b57d0; --chart-muted: #80868b; --chart-grid: #e8eaed; --chart-pending: #f5f7fa;
  --ramp-0: #e9eef6; --ramp-1: #7cacf8; --ramp-2: #4c8df6; --ramp-3: #0b57d0; --ramp-4: #062e6f;
  --elevation-2: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --z-nav: 10; --z-tip: 30;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --md-sys-color-primary: #a8c7fa; --md-sys-color-on-primary: #062e6f;
    --md-sys-color-primary-container: #0842a0; --md-sys-color-on-primary-container: #d3e3fd;
    --md-sys-color-secondary: #7fcfff; --md-sys-color-on-secondary: #003355;
    --md-sys-color-secondary-container: #004a77; --md-sys-color-on-secondary-container: #c2e7ff;
    --md-sys-color-tertiary: #6dd58c; --md-sys-color-on-tertiary: #0a3818;
    --md-sys-color-tertiary-container: #0f5223; --md-sys-color-on-tertiary-container: #c4eed0;
    --md-sys-color-error: #f2b8b5; --md-sys-color-on-error: #601410;
    --md-sys-color-error-container: #8c1d18; --md-sys-color-on-error-container: #f9dedc;
    --md-sys-color-background: #131314; --md-sys-color-on-background: #e3e3e3;
    --md-sys-color-surface: #131314; --md-sys-color-on-surface: #e3e3e3; --md-sys-color-on-surface-variant: #c4c7c5;
    --md-sys-color-surface-container-lowest: #0e0e0e; --md-sys-color-surface-container-low: #1b1b1b; --md-sys-color-surface-container: #1e1f20;
    --md-sys-color-surface-container-high: #282a2c; --md-sys-color-surface-container-highest: #333537;
    --md-sys-color-outline: #8e918f; --md-sys-color-outline-variant: #444746;
    --md-sys-color-inverse-surface: #e3e3e3; --md-sys-color-inverse-on-surface: #303030; --md-sys-color-inverse-primary: #0b57d0;
    --page: var(--md-sys-color-surface); --card: var(--md-sys-color-surface-container); --well: var(--md-sys-color-surface-container-high);
    --line: #37393b; --good: #6dd58c; --bad: #f2b8b5;
    --chart-line: #7cacf8; --chart-muted: #8e918f; --chart-grid: #2f3133; --chart-pending: #232526;
    --ramp-0: #2a2c2e; --ramp-1: #0b57d0; --ramp-2: #4c8df6; --ramp-3: #7cacf8; --ramp-4: #d3e3fd;
    --elevation-2: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 6px 2px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --md-sys-color-primary: #a8c7fa; --md-sys-color-on-primary: #062e6f;
  --md-sys-color-primary-container: #0842a0; --md-sys-color-on-primary-container: #d3e3fd;
  --md-sys-color-secondary: #7fcfff; --md-sys-color-on-secondary: #003355;
  --md-sys-color-secondary-container: #004a77; --md-sys-color-on-secondary-container: #c2e7ff;
  --md-sys-color-tertiary: #6dd58c; --md-sys-color-on-tertiary: #0a3818;
  --md-sys-color-tertiary-container: #0f5223; --md-sys-color-on-tertiary-container: #c4eed0;
  --md-sys-color-error: #f2b8b5; --md-sys-color-on-error: #601410;
  --md-sys-color-error-container: #8c1d18; --md-sys-color-on-error-container: #f9dedc;
  --md-sys-color-background: #131314; --md-sys-color-on-background: #e3e3e3;
  --md-sys-color-surface: #131314; --md-sys-color-on-surface: #e3e3e3; --md-sys-color-on-surface-variant: #c4c7c5;
  --md-sys-color-surface-container-lowest: #0e0e0e; --md-sys-color-surface-container-low: #1b1b1b; --md-sys-color-surface-container: #1e1f20;
  --md-sys-color-surface-container-high: #282a2c; --md-sys-color-surface-container-highest: #333537;
  --md-sys-color-outline: #8e918f; --md-sys-color-outline-variant: #444746;
  --md-sys-color-inverse-surface: #e3e3e3; --md-sys-color-inverse-on-surface: #303030; --md-sys-color-inverse-primary: #0b57d0;
  --page: var(--md-sys-color-surface); --card: var(--md-sys-color-surface-container); --well: var(--md-sys-color-surface-container-high);
  --line: #37393b; --good: #6dd58c; --bad: #f2b8b5;
  --chart-line: #7cacf8; --chart-muted: #8e918f; --chart-grid: #2f3133; --chart-pending: #232526;
  --ramp-0: #2a2c2e; --ramp-1: #0b57d0; --ramp-2: #4c8df6; --ramp-3: #7cacf8; --ramp-4: #d3e3fd;
  --elevation-2: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 6px 2px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--md-sys-color-on-surface); font: 400 14px/20px var(--md-ref-typeface-plain); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--md-sys-color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -80px; padding: 10px 16px; border-radius: 20px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); z-index: var(--z-tip); }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.icon-20 { width: 20px; height: 20px; }
.icon-18 { width: 18px; height: 18px; }
.icon-16 { width: 16px; height: 16px; }
md-filled-button .icon, md-filled-tonal-button .icon, md-outlined-button .icon, md-text-button .icon { width: 18px; height: 18px; }

/* Frame: a navigation drawer beside the content; a rail on medium screens; a strip on small ones. */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; }
.nav { position: sticky; top: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column; padding: 12px; z-index: var(--z-nav); }
.lockup { display: flex; align-items: center; gap: 12px; padding: 10px 16px 22px; color: var(--md-sys-color-on-surface); }
.lockup:hover { text-decoration: none; }
.lockup-mark { display: block; width: 32px; height: 32px; flex: none; }
.lockup-mark svg { display: block; width: 100%; height: 100%; }
.lockup-name { font: 500 22px/28px var(--md-ref-typeface-brand); letter-spacing: -0.2px; white-space: nowrap; }
.nav-items { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 16px; border-radius: 28px;
  color: var(--md-sys-color-on-surface-variant); font: 500 14px/20px var(--md-ref-typeface-plain); letter-spacing: 0.1px; --md-focus-ring-shape: 28px; }
.nav-item:hover { text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-weight: 700; }
.nav-icon { display: grid; place-items: center; }
.nav-foot { margin-top: auto; padding: 16px; display: grid; gap: 10px; font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.fresh { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.fresh .icon { width: 18px; height: 18px; }
.fresh b { display: block; font-weight: 500; color: var(--md-sys-color-on-surface); }
.fresh.is-off .icon, .fresh.is-off b { color: var(--bad); }
.content { min-width: 0; padding: 0 24px 56px 8px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 72px; padding: 10px 4px 10px 16px; }
.bar-title { font: 400 28px/36px var(--md-ref-typeface-brand); }
.bar-title:focus { outline: none; }
.bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scope { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 8px;
  font: 500 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); white-space: nowrap; }
.scope .icon { width: 18px; height: 18px; }
main { max-width: 1320px; }
main:focus { outline: none; }
.view { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.view > * { grid-column: span 12; min-width: 0; }
.view > .span-8 { grid-column: span 8; } .view > .span-7 { grid-column: span 7; } .view > .span-6 { grid-column: span 6; }
.view > .span-5 { grid-column: span 5; } .view > .span-4 { grid-column: span 4; }
.lead { max-width: 76ch; padding: 0 16px; font: 400 16px/24px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.meta { font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.muted { color: var(--md-sys-color-on-surface-variant); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 0 8px; }
.filter { display: flex; align-items: center; gap: 12px; }
.filter-label { font: 500 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
md-tabs { --md-primary-tab-container-color: transparent; --md-divider-color: var(--md-sys-color-outline-variant); border-radius: 16px 16px 0 0; }

/* Cards: one surface per subject, no borders, no nesting. */
.card { background: var(--card); border-radius: 16px; padding: 20px 24px 24px; }
.card > * + * { margin-top: 16px; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.card-title { font: 500 16px/24px var(--md-ref-typeface-brand); }
.card-title-large { font: 400 22px/28px var(--md-ref-typeface-brand); }
.card-sub { font: 400 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); max-width: 78ch; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > * + * { margin-top: 0; }
.card-body { padding: 16px 24px 24px; }
.card-body > * + * { margin-top: 16px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 20px; border-radius: 16px;
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font: 400 14px/20px var(--md-ref-typeface-plain); }
.banner > span { flex: 1 1 320px; }
.banner-error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); margin: 16px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--well); font: 400 14px/20px var(--md-ref-typeface-plain); }
.callout .icon { width: 20px; height: 20px; color: var(--md-sys-color-primary); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 8px; font: 500 12px/16px var(--md-ref-typeface-plain); white-space: nowrap;
  background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
.pill .icon { width: 16px; height: 16px; }
.pill-good { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.pill-info { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.pill-warn { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.delta { display: inline-flex; align-items: center; gap: 1px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta .icon { width: 16px; height: 16px; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--md-sys-color-on-surface-variant); font-weight: 400; }
.thin { color: var(--md-sys-color-on-surface-variant); }

/* The overview's metric tabs: pick a figure, the chart below follows. */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.metric { position: relative; padding: 20px 24px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; --md-focus-ring-shape: 12px; }
.metric::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: transparent; }
.metric[aria-selected="true"]::before { background: var(--md-sys-color-primary); }
.metric-label { display: block; font: 500 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.metric[aria-selected="true"] .metric-label { color: var(--md-sys-color-primary); }
.metric-value { display: block; margin-top: 6px; font: 400 32px/40px var(--md-ref-typeface-brand); letter-spacing: -0.25px; }
.metric-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.metric-foot .delta { font-size: 14px; line-height: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key-line { width: 16px; height: 2px; border-radius: 1px; background: var(--chart-line); }
.key-line.muted { background: var(--chart-muted); }
.key-tick { width: 10px; height: 4px; border-radius: 1px; background: var(--bad); }
.key-band { width: 14px; height: 10px; border-radius: 2px; background: var(--chart-pending); border: 1px solid var(--line); }

/* Insights: what needs a decision, each with its evidence and a way to it. */
.insights { list-style: none; padding: 0; }
.insight { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 16px; align-items: start; padding: 14px 0; }
.insight + .insight { border-top: 1px solid var(--line); }
.insight-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.insight-icon .icon { width: 20px; height: 20px; }
.insight-icon.traffic { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.insight-icon.test { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.insight-icon.flow { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.insight-title { font: 500 14px/20px var(--md-ref-typeface-plain); }
.insight-text { margin-top: 2px; color: var(--md-sys-color-on-surface-variant); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.insight.is-open .insight-text { display: block; }
.insight-basis { margin-top: 4px; font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.insight-more { margin-top: 2px; padding: 0; border: 0; background: none; color: var(--md-sys-color-primary); font: 500 12px/16px var(--md-ref-typeface-plain); cursor: pointer; }

/* The rewarded ad's funnel: stages in order, bars on one baseline. */
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.funnel-bar { height: 24px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--chart-line); }
.funnel-value { text-align: right; font: 500 14px/20px var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
.notes { display: grid; gap: 8px; }

/* Figures of a price group. */
.kpis { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.kpi-label { font: 500 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.kpi-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; font: 400 22px/28px var(--md-ref-typeface-brand); }
.kpi-value small { font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.kpi-value .delta { font: 500 14px/20px var(--md-ref-typeface-plain); }
.sheet { display: grid; gap: 16px; padding: 20px; border-radius: 16px; background: var(--well); }
.sheet-list { font: 500 16px/24px var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
.sheet ul { padding-left: 20px; display: grid; gap: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split .table-wrap { margin-right: 0; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.stack > * { min-width: 0; }

/* Data tables, to Material's data table measures. */
.table-wrap { margin: 0 -24px; }
.card.flush .table-wrap { margin: 0; }
.table-wrap > * + * { margin-top: 4px; }
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
.data th { height: 44px; padding: 6px 12px; text-align: left; vertical-align: bottom; font: 500 12px/16px var(--md-ref-typeface-plain); letter-spacing: 0.1px;
  color: var(--md-sys-color-on-surface-variant); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.data td { height: 48px; padding: 6px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data th:first-child, .data td:first-child { padding-left: 24px; }
.data th:last-child, .data td:last-child { padding-right: 24px; }
/* A heading cell holds its own text for screen readers (span.sr-only, placed absolutely), so that text stays inside the scrolling table. */
.data th { position: relative; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, transparent); }
.data .num { text-align: right; }
.data td.wrap { white-space: normal; min-width: 240px; max-width: 460px; }
.data td:first-child { color: var(--md-sys-color-on-surface); }
.data tr.is-total td { font-weight: 500; background: var(--well); }
.data tr.level-1 td:first-child { padding-left: 56px; }
.data tr.level-2 td:first-child { padding-left: 88px; }
.sort { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.sort .icon { width: 16px; height: 16px; opacity: 0; }
.sort:hover { color: var(--md-sys-color-on-surface); }
.sort:hover .icon { opacity: 0.5; }
th[aria-sort] .sort { color: var(--md-sys-color-on-surface); }
th[aria-sort] .sort .icon { opacity: 1; }
th.num .sort { flex-direction: row-reverse; }
.toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 4px 0 -8px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--md-sys-color-on-surface-variant); cursor: pointer; vertical-align: middle; }
.toggle:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.toggle .icon { width: 20px; height: 20px; }
.toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
.id { font: 400 13px/20px var(--mono); }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 4px 12px 0 24px; min-height: 40px; }
.empty { padding: 32px 24px !important; text-align: center; color: var(--md-sys-color-on-surface-variant); white-space: normal !important; }
.waiting { color: var(--md-sys-color-on-surface-variant); font-style: italic; }
.meter { display: inline-block; width: 88px; height: 8px; margin-left: 10px; vertical-align: middle; }
.meter i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--chart-line); }

/* The compact price strip in country rows: one cell per price step from the start price; more ads, stronger blue. */
.strip { display: flex; gap: 2px; width: 196px; }
.strip .cell { flex: 1 1 0; min-width: 0; height: 16px; border-radius: 2px; }
.s0 { background: var(--ramp-0); } .s1 { background: var(--ramp-1); } .s2 { background: var(--ramp-2); } .s3 { background: var(--ramp-3); } .s4 { background: var(--ramp-4); }
.scale { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.scale i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 2px; vertical-align: -2px; }

/* Charts. */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 400 12px var(--md-ref-typeface-plain); fill: var(--md-sys-color-on-surface-variant); }
.chart .strong { font-weight: 500; fill: var(--md-sys-color-on-surface); }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis { stroke: var(--md-sys-color-outline-variant); stroke-width: 1; }
.chart .line-after { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-before { fill: none; stroke: var(--chart-muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area-after { fill: var(--chart-line); opacity: 0.1; }
.chart .avg-after { stroke: var(--chart-line); stroke-width: 1; }
.chart .avg-before { stroke: var(--chart-muted); stroke-width: 1; }
.chart .avg-back { fill: var(--card); opacity: 0.88; }
.chart .mark-line { stroke: var(--md-sys-color-outline); stroke-width: 1; }
.chart .mark-chip rect { fill: var(--md-sys-color-inverse-surface); }
.chart .mark-chip text { fill: var(--md-sys-color-inverse-on-surface); font-weight: 500; font-size: 11px; }
.chart .pending { fill: var(--chart-pending); }
.chart .burst { fill: var(--bad); }
.chart .cross { stroke: var(--md-sys-color-outline); stroke-width: 1; }
.chart .dot { fill: var(--chart-line); stroke: var(--card); stroke-width: 2; }
.chart .bar { fill: var(--chart-line); }
.chart .bar.is-on { fill: var(--md-sys-color-on-primary-container); }
.chart .hit { fill: transparent; }
.interval text { font: 400 12px var(--md-ref-typeface-plain); fill: var(--md-sys-color-on-surface-variant); }
.interval .axis { stroke: var(--md-sys-color-outline-variant); }
.interval .zero { stroke: var(--md-sys-color-on-surface); stroke-width: 1; }
.interval .whisker { stroke: var(--chart-muted); stroke-width: 2; stroke-linecap: round; }
.interval .dot { fill: var(--chart-muted); stroke: var(--card); stroke-width: 2; }
.interval.is-sure .whisker { stroke: var(--chart-line); }
.interval.is-sure .dot { fill: var(--chart-line); }
.tip { position: fixed; z-index: var(--z-tip); max-width: 300px; padding: 10px 14px; border-radius: 12px; background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface);
  box-shadow: var(--elevation-2); font: 400 12px/16px var(--md-ref-typeface-plain); pointer-events: none; }
:root[data-theme="dark"] .tip { background: var(--md-sys-color-surface-container-highest); }
.tip b { display: block; margin-bottom: 2px; font: 500 14px/20px var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
.tip span { display: block; color: var(--md-sys-color-on-surface-variant); }

/* Lists of settings and the history. */
.kv { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: 0; }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--md-sys-color-on-surface-variant); padding-right: 24px; }
.kv dd { font-weight: 500; }
.kv dt:nth-last-child(2), .kv dd:last-child { border-bottom: 0; }
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chips span { padding: 4px 10px; border-radius: 8px; background: var(--well); font: 500 12px/16px var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
.price-chips .is-start { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.data .person-cell { display: flex; align-items: center; gap: 12px; }
.data .person-cell b { display: block; font-weight: 500; }
.data .person-cell span:not(.avatar):not(.pill) { display: block; font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.data .person-cell .pill { display: inline-flex; margin-left: 8px; }
.data td .meta { margin-top: 2px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  font: 500 14px/20px var(--md-ref-typeface-brand); }
.dense { --md-outlined-field-top-space: 8px; --md-outlined-field-bottom-space: 8px; min-width: 148px; }
.data .center { text-align: center; }
.data tr.is-group td { height: 36px; background: var(--well); font: 500 12px/16px var(--md-ref-typeface-plain); letter-spacing: 0.1px; color: var(--md-sys-color-on-surface-variant); }
.data tr.is-group:hover td { background: var(--well); }
.form { display: grid; gap: 20px; min-width: min(400px, 76vw); padding-top: 12px; }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: 12px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline .when { font: 500 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
.timeline .what { margin-top: 2px; }

@media (max-width: 1239px) {
  .app { grid-template-columns: 88px minmax(0, 1fr); }
  .nav { padding: 12px 4px; align-items: center; }
  .lockup { padding: 8px 0 20px; }
  .lockup-name, .nav-foot { display: none; }
  .nav-items { gap: 12px; width: 100%; }
  .nav-item { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 0; border-radius: 16px; font: 500 12px/16px var(--md-ref-typeface-plain); background: none !important; --md-focus-ring-shape: 16px; }
  .nav-icon { width: 56px; height: 32px; border-radius: 16px; }
  .nav-item[aria-current="page"] .nav-icon { background: var(--md-sys-color-secondary-container); }
  .view > .span-8, .view > .span-7, .view > .span-6, .view > .span-5, .view > .span-4 { grid-column: span 12; }
}
@media (max-width: 719px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { position: static; height: auto; min-width: 0; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; overflow-x: auto; }
  .lockup { padding: 0 8px 0 0; }
  .nav-items { flex-direction: row; gap: 4px; width: auto; }
  .nav-item { min-width: 72px; }
  .content { padding: 0 12px 40px; }
  .bar { padding: 8px 4px; min-height: 56px; }
  .bar-title { font-size: 24px; line-height: 32px; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 16px 16px 14px; }
  .metric::before { left: 16px; right: 16px; }
  .metric-value { font-size: 24px; line-height: 32px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .insight { grid-template-columns: 40px minmax(0, 1fr); }
  .insight > md-text-button { grid-column: 2; justify-self: start; margin-left: -12px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .toggle .icon { transition: transform 150ms ease-out; }
  .nav-item, .metric-label { transition: background-color 200ms ease-out, color 200ms ease-out; }
}

/* The period and the device in the top bar, the notices, the first load and the empty period. */
.tool { display: flex; align-items: center; gap: 4px 12px; min-width: 0; }
.tool-period { min-width: 236px; }
.tool-device { min-width: 188px; }
.tool-note { font: 400 12px/16px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.banner-top { margin: 0 0 16px; }
.banner-line { display: block; }
.loading { padding: 48px 8px; font: 400 16px/24px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); }
main[aria-busy="true"] > :not(.loading) { opacity: 0.6; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 72px 24px; text-align: center; border-radius: 16px; background: var(--card); }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.empty-icon .icon { width: 36px; height: 36px; }
.empty-state .card-sub { max-width: 52ch; }
@media (max-width: 899px) {
  .bar-tools { align-items: flex-start; }
  .tool-wide { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 719px) {
  .bar-tools { display: contents; }
  .bar-title { order: 1; flex: 1 1 auto; }
  .bar-tools > md-icon-button { order: 2; }
  .tool, .tool-wide { order: 3; flex: 1 1 100%; align-items: stretch; }
  .tool-period, .tool-device { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  main > * { transition: opacity 150ms ease-out; }
}

/* The person in the foot of the navigation: name, role and the way out. */
.nav-foot .person { display: grid; gap: 2px; justify-items: start; padding-top: 10px; border-top: 1px solid var(--line); }
.person-name { font-weight: 500; color: var(--md-sys-color-on-surface); overflow-wrap: anywhere; }
.nav-foot .person md-text-button { margin: 4px 0 0 -12px; --md-text-button-label-text-size: 13px; }
.person-problem { color: var(--md-sys-color-error); }
.person-problem:empty { display: none; }

/* Before anyone is signed in: the window holds the mark alone, a notice, or one sign-in card. */
.gate { min-height: 100dvh; display: grid; place-items: start center; padding: clamp(40px, 14dvh, 128px) 16px 24px; background: var(--page); }
.gate-quiet, .gate-problem { display: grid; justify-items: center; gap: 24px; }
.gate-quiet .gate-mark, .gate-mark { display: block; width: 40px; height: 40px; flex: none; }
.gate-mark svg { display: block; width: 100%; height: 100%; }
.gate-problem .banner { margin: 0; max-width: 520px; }
.gate-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.gate-name { font: 500 22px/28px var(--md-ref-typeface-brand); letter-spacing: -0.2px; color: var(--md-sys-color-on-surface); }
.signin { width: 100%; max-width: 400px; }
.signin-card { display: flex; flex-direction: column; gap: 16px; min-height: 456px; padding: 40px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.signin-heading { font: 400 24px/32px var(--md-ref-typeface-brand); color: var(--md-sys-color-on-surface); }
.signin-line { margin-top: -8px; font: 400 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface-variant); overflow-wrap: anywhere; }
.signin-line:empty { display: none; }
.signin-card md-outlined-text-field { width: 100%; }
.signin-show { display: flex; align-items: center; gap: 8px; width: fit-content; margin: -4px 0 0 -8px; padding-right: 12px; cursor: pointer; font: 400 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-on-surface); }
.signin-fail { display: flex; align-items: flex-start; gap: 8px; min-height: 20px; font: 400 14px/20px var(--md-ref-typeface-plain); color: var(--md-sys-color-error); }
.signin-fail .icon { width: 20px; height: 20px; }
.signin-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.signin-actions md-text-button { margin-left: -12px; }
.signin-actions.is-single { justify-content: flex-end; }
@media (max-width: 599px) {
  .gate { align-items: start; padding: 0; background: var(--card); }
  .signin { max-width: none; margin: 0; padding: 40px 24px 24px; }
  .signin-card { padding: 0; border: 0; border-radius: 0; min-height: 0; }
  .gate-quiet { align-self: center; }
}
.account { display: grid; gap: 4px; min-width: 240px; color: var(--md-sys-color-on-surface-variant); overflow-wrap: anywhere; }

/* Users: the two text buttons at the end of a person's row sit close together and wrap rather than be cut off. */
.data td .card-actions { gap: 0; flex-wrap: wrap; }
