/* Statiku's dashboard, in the Shopify admin manner of Onshipy: a dark top bar, a grey sidebar with the current page
   as a white pill, and white cards with hairline borders on a light grey page. */
/* Bricolage Grotesque (SIL Open Font License), a grotesque with a hand-made edge: its letters change shape with
   their size, calm in a table and lively in a headline. Served by Statiku itself; the extended letters load only
   for a page that has them. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url("/fonts/latin.woff2?v=jyDcyGPCyUGw") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url("/fonts/latin-ext.woff2?v=kvu3OvphqNpy") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --page: #f1f1f1;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --sidebar: #ebebeb;
  --chrome: #1a1a1a;
  --border: #e3e3e3;
  --border-2: #cfcfcf;
  --text: #303030;
  --text-2: #616161;
  --text-3: #8a8a8a;
  --link: #005bd3;
  --green: #008060;
  --green-hover: #006e52;
  --green-wash: rgba(0, 128, 96, 0.1);
  --critical: #c70a24;
  --critical-wash: #fee9e8;
  --up: #0c7f2c;
  --down: #c70a24;
  /* Charts: the current period, the previous one, and bar washes. */
  --series: #2fb3eb;
  --series-prev: rgba(47, 179, 235, 0.45);
  --series-wash: rgba(47, 179, 235, 0.12);
  --bar: rgba(47, 179, 235, 0.18);
  --grid: #ebebeb;
  --axis: #d4d4d4;
  /* The licence bar, by fixed slot (validated palette slots 1–3) and grey for an ended trial. */
  --slot-1: #2a78d6;
  --slot-2: #eb6834;
  --slot-3: #1baf7a;
  --lapsed: #c9c8c1;
  --live: #29c46b;
  --shadow: 0 1px 0 rgba(26, 26, 26, 0.07);
  --pop: 0 8px 30px rgba(0, 0, 0, 0.16);
  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --topbar: 56px;
  --sidebar-w: 240px;
  /* Washes and their text: information, success, a warning, an error, the top page. */
  --input-border: #8a8a8a;
  --info-wash: #eaf4ff;
  --ok-wash: #cdfee1;
  --ok-text: #0c5132;
  --warn-wash: #fff1e3;
  --warn-text: #5e4200;
  --critical-text: #8e1f0b;
  --gold-wash: #fff8db;
  --gold-wash-2: #fffbea;
  --callout: #eafaf1;
  color-scheme: light;
}

/* Dark: by the system's setting, or chosen in Settings (data-theme on the page). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #121314; --surface: #1b1c1e; --surface-2: #222326; --sidebar: #161719; --chrome: #0c0c0d;
    --border: #2e3033; --border-2: #3c3e42; --text: #e7e7e8; --text-2: #a7a8ab; --text-3: #7b7d81; --link: #6ea8ff;
    --green: #0f9a6a; --green-hover: #13b07a; --green-wash: rgba(19, 176, 122, .16); --critical: #ff5d5d; --critical-wash: #3a1c1c;
    --up: #45d07a; --down: #ff6b6b; --series-wash: rgba(47, 179, 235, .16); --bar: rgba(47, 179, 235, .24); --grid: #2a2c2f; --axis: #3b3d41;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4); --pop: 0 8px 30px rgba(0, 0, 0, .55); --input-border: #4b4d52; --info-wash: #15253a;
    --ok-wash: #11301f; --ok-text: #7de3a7; --warn-wash: #33260e; --warn-text: #f4c46c; --critical-text: #ff9e93;
    --gold-wash: #2e2711; --gold-wash-2: #25200e; --callout: #11301f; --tab-on: #34363a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #121314; --surface: #1b1c1e; --surface-2: #222326; --sidebar: #161719; --chrome: #0c0c0d;
  --border: #2e3033; --border-2: #3c3e42; --text: #e7e7e8; --text-2: #a7a8ab; --text-3: #7b7d81; --link: #6ea8ff;
  --green: #0f9a6a; --green-hover: #13b07a; --green-wash: rgba(19, 176, 122, .16); --critical: #ff5d5d; --critical-wash: #3a1c1c;
  --up: #45d07a; --down: #ff6b6b; --series-wash: rgba(47, 179, 235, .16); --bar: rgba(47, 179, 235, .24); --grid: #2a2c2f; --axis: #3b3d41;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4); --pop: 0 8px 30px rgba(0, 0, 0, .55); --input-border: #4b4d52; --info-wash: #15253a;
  --ok-wash: #11301f; --ok-text: #7de3a7; --warn-wash: #33260e; --warn-text: #f4c46c; --critical-text: #ff9e93;
  --gold-wash: #2e2711; --gold-wash-2: #25200e; --callout: #11301f; --tab-on: #34363a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--chrome); }
body { margin: 0; font: 450 13px/20px var(--font); color: var(--text); background: var(--chrome); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: 13px; font-weight: 650; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Shell ---------- */
.topbar { position: fixed; inset: 0 0 auto; height: var(--topbar); z-index: 50; display: flex; align-items: center; background: var(--chrome); color: #fff; }
.topbar .brand { width: var(--sidebar-w); flex: none; display: flex; align-items: center; gap: 9px; padding: 0 16px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.topbar .brand img { width: 22px; height: 22px; }
.topbar .center { flex: 1; min-width: 0; display: flex; justify-content: center; padding: 0 12px; }
.topbar .actions { display: flex; align-items: center; gap: 6px; padding: 0 14px; flex: none; }
.menu-button { display: none; border: 0; background: none; color: rgba(255, 255, 255, 0.85); padding: 6px; border-radius: 8px; cursor: pointer; }
.switcher { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); height: 36px; padding: 0 10px 0 8px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.07); color: #fff; cursor: pointer; text-align: left; }
.switcher:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.22); }
.switcher .site-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.switcher .site-domain { color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher svg { flex: none; opacity: 0.6; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #3a3a3a; color: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer; padding: 0; overflow: hidden; }
.avatar:hover { border-color: rgba(255, 255, 255, 0.4); }
.avatar img, .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A person's photo, or an empty silhouette until they add one. */
.photo { flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--border); color: var(--text-3); }
/* A site's own icon, on white so dark and transparent icons show; its first letter if it has none. */
.site-icon { flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--border); object-fit: contain; padding: 3px; display: block; }

.sidebar { position: fixed; top: var(--topbar); left: 0; bottom: 0; width: var(--sidebar-w); z-index: 40; display: flex; flex-direction: column; background: var(--sidebar); border-top-left-radius: 12px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.sidebar .foot { padding: 8px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 6px 10px; margin-bottom: 2px; border: 1px solid transparent; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 550; }
.nav-item:hover { background: rgba(0, 0, 0, 0.05); color: var(--text); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 650; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.nav-item svg { flex: none; }
.nav-item .count { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.nav-label { display: flex; align-items: center; gap: 8px; padding: 14px 10px 4px; font-size: 11px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-label span { overflow: hidden; text-overflow: ellipsis; }
.main { margin: var(--topbar) 0 0 var(--sidebar-w); min-height: calc(100vh - var(--topbar)); background: var(--page); border-top-right-radius: 12px; min-width: 0; }
.page { max-width: 1320px; margin: 0 auto; padding: 20px 24px 48px; }
.page.narrow > * { max-width: 860px; }
.overlay { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head .title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.page-head .title svg { color: var(--text-2); flex: none; }
.page-head .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 550; margin-bottom: 8px; }
.back:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); text-decoration: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-hover); }
.btn.critical { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn.plain { border-color: transparent; background: none; box-shadow: none; color: var(--link); padding: 0 6px; }
.btn.plain:hover { text-decoration: underline; }
.btn.big { height: 40px; padding: 0 18px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-weight: 550; max-width: 100%; }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .muted { font-weight: 450; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.chip button { border: 0; background: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.chip button:hover { background: var(--surface-2); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--border); color: var(--text); font-size: 12px; font-weight: 550; white-space: nowrap; }
.badge.ok { background: var(--ok-wash); color: var(--ok-text); }
.badge.wait { background: var(--warn-wash); color: var(--warn-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.dot.pulse { box-shadow: 0 0 0 0 rgba(41, 196, 107, 0.55); animation: pulse 1.8s infinite; }
.dot.idle { background: #b5b5b5; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(41, 196, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(41, 196, 107, 0); } }

/* ---------- Popovers ---------- */
.popover { position: fixed; z-index: 100; min-width: 240px; max-width: calc(100vw - 24px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--pop); padding: 6px; }
.popover .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; color: var(--text); text-decoration: none; }
.popover .item:hover, .popover .item:focus-visible { background: var(--surface-2); text-decoration: none; }
.popover .item[aria-checked="true"] { font-weight: 650; }
.popover .item .end { margin-left: auto; color: var(--text-2); }
.popover hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.popover .who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; min-width: 0; }
.popover .who div { min-width: 0; }
.popover .who b { display: block; font-weight: 650; }
.popover .who div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-range { display: grid; gap: 10px; padding: 10px; border-top: 1px solid var(--border); margin-top: 6px; }
.custom-range .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.custom-range label { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 550; }
.custom-range .input { height: 32px; padding: 0 8px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.card-body { padding: 16px 20px 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 20px 0; }
.card-head h2 { font-size: 13px; }
.card-head .sub { color: var(--text-2); }
.card-head .end { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.grid { display: grid; gap: 12px; margin-bottom: 12px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.g-globe { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: grid; gap: 12px; align-content: start; }
.empty-note { padding: 18px 0 6px; color: var(--text-2); text-align: center; }

/* KPI cards: label, value, change, sparkline. Clickable ones pick the chart's measure. */
.kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 10px; padding: 16px 20px; text-align: left; position: relative; }
button.kpi { cursor: pointer; font: inherit; color: inherit; }
button.kpi:hover { background: var(--surface-2); }
.kpi[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.kpi .label { grid-column: 1 / -1; color: var(--text-2); font-weight: 550; }
.kpi .value { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -0.02em; }
.kpi .delta { grid-column: 1; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .spark { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.kpi.hero .value { font-size: 32px; line-height: 40px; display: flex; align-items: center; gap: 10px; }
.up { color: var(--up); font-weight: 650; }
.down { color: var(--down); font-weight: 650; }

/* Charts */
.chart { position: relative; margin-top: 8px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg:focus-visible { outline-offset: 4px; }
.axis-text { fill: var(--text-3); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; box-shadow: var(--pop); white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); display: grid; gap: 4px; }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row i { width: 12px; height: 2px; border-radius: 1px; background: var(--series); }
.tip .row i.prev { background: none; border-top: 2px dashed var(--series-prev); height: 0; }
.tip .row b { margin-left: auto; padding-left: 12px; font-weight: 650; }
.tip .row span { color: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--text-2); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 2px; border-radius: 1px; background: var(--series); }
.legend i.prev { background: none; border-top: 2px dashed var(--series-prev); height: 0; }

/* Breakdown lists: a label over a wash as long as its share. */
.bars { display: grid; gap: 2px; }
.bars-head { display: flex; justify-content: space-between; color: var(--text-2); font-size: 12px; padding: 0 2px 6px; font-weight: 550; }
.bar-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; width: 100%; text-align: left; color: var(--text); }
button.bar-row { cursor: pointer; }
button.bar-row:hover { background: var(--surface-2); }
.bar-row .wash { position: absolute; inset: 3px auto 3px 0; background: var(--bar); border-radius: 4px; }
.bar-row .l, .bar-row .r { position: relative; }
.bar-row .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; display: flex; align-items: center; gap: 8px; }
.bar-row .r { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.bar-row .r small { color: var(--text-3); font-weight: 500; margin-left: 6px; display: inline-block; min-width: 2.8em; text-align: right; }
.bar-row.on { box-shadow: inset 0 0 0 1px var(--text); }
.flag { font-size: 15px; line-height: 1; width: 18px; text-align: center; flex: none; }

/* Tabs inside cards */
.tabs { display: flex; gap: 2px; }
.tabs button { border: 0; background: none; padding: 3px 8px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-weight: 550; }
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--tab-on, #e8e8e8); }

/* Tables, in the Polaris index-table manner */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: right; font-weight: 550; color: var(--text-2); font-size: 12px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
tbody tr.pick { cursor: pointer; }
tbody tr.pick:hover td { background: var(--surface-2); }
tbody tr.pick td:first-child { font-weight: 650; }
tbody tr.on td { background: #f0f7ff; }
code { font: 12px var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.est { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--border); color: var(--text-2); font-size: 10.5px; font-weight: 650; letter-spacing: 0.02em; vertical-align: 1px; }

/* The conversion steps */
.steps { display: grid; gap: 14px; }
.step-row { display: grid; gap: 6px; }
.step-row .top { display: flex; justify-content: space-between; gap: 10px; }
.step-row .top b { font-weight: 650; }
.step-row .track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.step-row .fill { height: 100%; border-radius: 5px; background: var(--series); min-width: 2px; }
.step-row .rate { color: var(--text-2); font-size: 12px; }

/* The licence bar */
.licence { display: flex; gap: 2px; height: 14px; }
.licence span { display: block; height: 100%; }
.licence span:first-child { border-radius: 4px 0 0 4px; }
.licence span:last-child { border-radius: 0 4px 4px 0; }
.key-list { display: grid; gap: 7px; margin-top: 12px; }
.key-list div { display: flex; align-items: center; gap: 8px; }
.key-list i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.key-list b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; }
.key-list small { color: var(--text-3); font-variant-numeric: tabular-nums; width: 3em; text-align: right; }

/* ---------- Sites ---------- */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.site-card { display: grid; gap: 14px; padding: 16px 20px; color: var(--text); text-decoration: none; }
.site-card:hover { text-decoration: none; border-color: var(--border-2); }
.site-card .top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-card .top .who { min-width: 0; flex: 1; }
.site-card .top b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .top .who span { color: var(--text-2); }
.site-card .nums { display: flex; align-items: flex-end; gap: 22px; }
.site-card .nums div { display: grid; }
.site-card .nums b { font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -0.02em; }
.site-card .nums span { color: var(--text-2); font-size: 12px; }
.site-card .nums svg { margin-left: auto; }
.site-card .foot { display: flex; align-items: center; gap: 8px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 12px; }
.letter { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.add-card { display: grid; place-items: center; gap: 6px; min-height: 172px; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--text-2); font-weight: 550; text-decoration: none; text-align: center; padding: 16px; }
.add-card:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 99px; background: var(--ok-wash); color: var(--ok-text); font-size: 12px; font-weight: 650; white-space: nowrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 550; }
.field .help { color: var(--text-2); font-size: 12px; }
.input, select.input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface); }
.input:focus { outline: 2px solid var(--link); outline-offset: -1px; border-color: transparent; }
.input.big { height: 44px; font-size: 15px; }
/* A password with its show and hide button inside the field, on the right (and not Edge's own as well). */
.secret { position: relative; }
.secret .input { padding-right: 42px; }
.secret input::-ms-reveal, .secret input::-ms-clear { display: none; }
.secret .reveal { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0 7px 7px 0; background: none; color: var(--text-2); cursor: pointer; }
.secret .reveal:hover { color: var(--text); }
.secret .reveal:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.error { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--critical-wash); color: var(--critical-text); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.notice.ok { background: var(--ok-wash); color: var(--ok-text); }
.notice.warn { background: var(--warn-wash); color: var(--warn-text); }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--page); }
.auth .box { width: min(420px, 100%); display: grid; gap: 18px; }
.auth .logo { display: flex; align-items: center; gap: 10px; width: fit-content; margin-inline: auto; color: var(--text); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.auth .logo img { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.auth .logo:hover span { text-decoration: underline; text-underline-offset: 3px; }
.auth .card { padding: 28px; display: grid; gap: 18px; }
.auth h1 { font-size: 22px; }
.auth .sub { color: var(--text-2); margin-top: 4px; }
.auth .switch { text-align: center; color: var(--text-2); }
.auth .promise { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; color: var(--text-3); font-size: 12px; }

/* ---------- Setup ---------- */
.code-block { position: relative; background: #1a1a1a; color: #f0f0f0; border-radius: 10px; padding: 14px 92px 14px 16px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }
.code-block .copy { position: absolute; top: 10px; right: 10px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.platforms button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 550; }
.platforms button:hover { background: var(--surface-2); }
.platforms button svg { flex: none; }
/* The chosen one keeps its logo's colours, so it's marked with a ring rather than a fill. */
.platforms button[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); font-weight: 650; }
ol.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; }
ol.how li { counter-increment: how; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
ol.how li::before { content: counter(how); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.status-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; }
.status-card .icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.status-card .icon.ok { background: var(--ok-wash); color: var(--ok-text); }
.status-card .icon.wait { background: var(--surface-2); }
.status-card .what { flex: 1; min-width: 220px; }
.status-card .what b { display: block; font-size: 14px; font-weight: 650; }
details.more { border-top: 1px solid var(--border); }
details.more summary { cursor: pointer; padding: 14px 20px; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "›"; display: inline-block; transition: transform 0.15s; font-size: 16px; color: var(--text-2); }
details.more[open] summary::before { transform: rotate(90deg); }
details.more .card-body { padding-top: 0; display: grid; gap: 12px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how-steps div { display: grid; gap: 4px; }
.how-steps b { font-weight: 650; }

/* ---------- Live view ---------- */
.globe-card { position: relative; background: #111315; border-color: #111315; color: #fff; overflow: hidden; min-height: 460px; display: grid; }
.globe-card canvas { width: 100%; height: 100%; min-height: 460px; display: block; cursor: grab; touch-action: none; }
.globe-card canvas:active { cursor: grabbing; }
.globe-card .over { position: absolute; left: 0; top: 0; right: 0; padding: 16px 20px 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; background: linear-gradient(rgba(17, 19, 21, 0.9), rgba(17, 19, 21, 0)); border-radius: 12px 12px 0 0; }
.globe-card .where { display: grid; gap: 4px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; pointer-events: auto; color: rgba(255, 255, 255, 0.45); font-size: 12px; }
.crumbs button { border: 0; background: none; padding: 1px 4px; margin: 0 -4px; border-radius: 5px; color: rgba(255, 255, 255, 0.75); cursor: pointer; font: inherit; }
.crumbs button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.crumbs b { color: #fff; font-weight: 650; }
.crumbs .region { color: rgba(255, 255, 255, 0.75); }
.globe-controls { position: absolute; right: 14px; bottom: 44px; display: grid; gap: 1px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.globe-controls button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: rgba(30, 34, 38, 0.92); color: #fff; cursor: pointer; }
.globe-controls button:hover { background: rgba(60, 66, 72, 0.95); }
.globe-card .over b { font-weight: 650; }
.globe-card .over span { color: rgba(255, 255, 255, 0.6); }
.globe-card .caption { position: absolute; left: 0; bottom: 0; right: 0; padding: 32px 70px 14px 20px; color: rgba(255, 255, 255, 0.6); font-size: 12px; pointer-events: none; background: linear-gradient(rgba(17, 19, 21, 0), rgba(17, 19, 21, 0.9)); border-radius: 0 0 12px 12px; }
.globe-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 10px; box-shadow: var(--pop); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; display: grid; gap: 2px; }
.globe-tip b { font-weight: 650; }
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.feed-row:last-child { border-bottom: 0; }
.feed-row .what { min-width: 0; }
.feed-row .what span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .what small { color: var(--text-2); }
.feed-row time { color: var(--text-3); font-size: 12px; white-space: nowrap; }

/* ---------- Account settings ---------- */
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.person-row:last-child { border-bottom: 0; }
.person-row .who { flex: 1; min-width: 0; }
.person-row .who b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .who span { display: block; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .end { display: flex; align-items: center; gap: 6px; flex: none; }
.photo-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.link-box { display: flex; gap: 8px; }
.link-box .input { flex: 1; min-width: 0; font: 12.5px var(--mono); }

/* The location card a site's visitors see, as a preview in its settings. */
.ask-preview { max-width: 320px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1d1d1f; }
.ask-preview p { margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.ask-preview div { display: flex; gap: 8px; justify-content: flex-end; }
.ask-preview span { font-weight: 600; border-radius: 9px; padding: 7px 14px; background: #ececf0; }
.ask-preview span.yes { background: #0071e3; color: #fff; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 550; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.globe-card .osm { position: absolute; right: 14px; bottom: 14px; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.globe-card .osm a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Dialogs ---------- */
.dialog-back { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(440px, 100%); background: var(--surface); border-radius: 14px; box-shadow: var(--pop); display: grid; }
.dialog .head { padding: 18px 20px 0; }
.dialog .head h2 { font-size: 15px; }
.dialog .body { padding: 12px 20px 18px; display: grid; gap: 12px; color: var(--text-2); }
.dialog .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* ---------- Toasts ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; background: var(--chrome); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 550; box-shadow: var(--pop); max-width: calc(100vw - 32px); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-globe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --topbar: 52px; }
  html, body { background: var(--page); }
  .topbar .brand { width: auto; padding: 0 4px 0 8px; }
  .topbar .brand span { display: none; }
  .menu-button { display: block; margin-left: 6px; }
  .topbar .center { padding: 0 8px; }
  .switcher .site-domain { display: none; }
  .topbar .actions { padding: 0 10px 0 0; }
  .sidebar { top: 0; width: 280px; border-radius: 0; transform: translateX(-100%); transition: transform 0.22s ease; z-index: 70; }
  .sidebar.open { transform: none; box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3); }
  .overlay.open { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.4); }
  .main { margin-left: 0; border-radius: 0; }
  .page { padding: 16px 16px 40px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .card-head, .card-body, .kpi { padding-left: 16px; padding-right: 16px; }
  .globe-card, .globe-card canvas { min-height: 380px; }
}
@media (max-width: 480px) {
  .kpi { padding: 12px 14px; }
  .kpi .spark { display: none; }
  .kpi.hero .value { font-size: 26px; line-height: 34px; }
  .input-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .dot.pulse { animation: none; }
  .sidebar { transition: none; }
}
.auth .forgot { margin-top: -6px; text-align: center; }
.auth .forgot a { color: var(--text-2); }

/* Import history */
.lede { color: var(--text-2); font-size: 14px; margin: -4px 0 16px; max-width: 70ch; }
.history-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--info-wash); color: #00527c; font-weight: 500; }
.history-note svg { flex: none; }
.history-note a { color: inherit; font-weight: 650; }
.import-sources .card-head { align-items: flex-start; gap: 12px; }
.import-sources .card-head h2 { font-size: 14px; }
.import-sources .card-head .sub { display: block; margin: 2px 0 0; }
.import-source .logo, .import-row .logo { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); }
.import-source .form { gap: 12px; }
.drop { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border: 1.5px dashed var(--border); border-radius: 12px; text-align: center; transition: background .15s, border-color .15s; }
.drop.over { background: var(--info-wash); border-color: var(--link); }
.drop .btn { margin-top: 6px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 12px; font-weight: 550; }
.tools span { display: inline-flex; align-items: center; gap: 6px; }
.imports { display: grid; }
.import-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.import-row:first-child { border-top: 0; }
.import-row .what { flex: 1; min-width: 0; display: grid; gap: 2px; }
.import-row .what b { font-weight: 650; overflow-wrap: anywhere; }
.import-row .small { font-size: 12px; }
.import-row .bad { color: var(--down); }
.import-sources .card-head { flex-wrap: nowrap; }
.import-sources .card-head > div { flex: 1; min-width: 0; }

/* Plans and billing */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(1320px - 48px); padding: 10px 16px; margin: 20px auto -4px; width: calc(100% - 48px); border-radius: 10px; background: var(--warn-wash); color: var(--warn-text); font-weight: 550; }
.banner.bad { background: #fee8eb; color: #8e0b21; }
.banner a { color: inherit; font-weight: 700; text-decoration: underline; }
.meter { display: grid; gap: 6px; }
.meter-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.meter-bar i { display: block; height: 100%; background: var(--live); border-radius: 99px; }
.meter-bar i.over { background: var(--down); }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.plan { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.plan.current { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.plan b { font-size: 14px; font-weight: 650; }
.plan .price span { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { margin-left: 4px; color: var(--text-2); }
.plan .btn { margin-top: 6px; }
@media (max-width: 767px) { .banner { width: calc(100% - 32px); } }
.plan-summary { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 18px 28px; padding: 20px 22px; }
.plan-summary .what, .plan-summary .usage { display: grid; gap: 4px; min-width: 0; }
.plan-summary .label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.plan-summary b { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.plan-summary .usage .meter-bar { margin: 4px 0 2px; }
.included { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 20px; }
.included li { display: flex; gap: 8px; align-items: flex-start; }
.included svg { flex: none; margin-top: 2px; color: var(--green); }
@media (max-width: 767px) { .plan-summary { grid-template-columns: 1fr; } }

/* ---------- Numbers ---------- */
.number-tile .label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.number-tile .label > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.number-tile .kind { flex: none; font-size: 11px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.number-tile .label .btn { margin-left: auto; height: 24px; padding: 0 4px; color: var(--text-3); }
.number-tile .value { font-size: 28px; line-height: 34px; font-variant-numeric: tabular-nums; }
.number-tile .spark-host { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.number-tile .small { grid-column: 1 / -1; font-size: 12px; }
.number-tile.flash { animation: number-flash 1.2s ease-out; }
@keyframes number-flash { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 45%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.code-block.small { padding-right: 16px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .number-tile.flash { animation: none; } }

/* ---------- Momentum ---------- */
.momentum { display: grid; gap: 10px; }
.wave { width: 100%; height: auto; display: block; }
.wave .axis { stroke: var(--border); stroke-width: 1; }
.wave .up { fill: var(--green); }
.wave .down { fill: #c9c9c9; }
.wave .even { fill: var(--border); }
.wave-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-3); }
.wave-legend span:nth-child(2) { text-align: center; }
.attackers-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
.attackers { display: grid; }
.attacker { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5em; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.attacker .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attacker .trend { text-align: right; font-size: 12px; color: var(--text-3); }
.attacker .trend.up { color: var(--green); }
.attacker .trend.down { color: #b42318; }

/* ---------- Match view: dark, big, for a TV across the room ---------- */
.match { --m-bg: #070c0b; --m-panel: #101816; --m-line: rgba(255, 255, 255, .08); --m-text: #f2f5f4; --m-dim: rgba(242, 245, 244, .6);
  min-height: 100vh; padding: clamp(14px, 2.5vw, 32px); display: grid; gap: clamp(12px, 2vw, 24px); align-content: start;
  background: radial-gradient(1200px 600px at 20% -10%, #0e2a22 0%, transparent 60%), var(--m-bg); color: var(--m-text); font-variant-numeric: tabular-nums; }
.match .quiet { color: var(--m-dim); }
.match-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.match-top .who { display: flex; align-items: center; gap: 10px; font-size: 18px; flex: 1; min-width: 0; }
.match-top .clock { font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: .02em; }
.match-top .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.match .btn.ghost { background: rgba(255, 255, 255, .06); color: var(--m-text); border-color: var(--m-line); box-shadow: none; }
.match .btn.ghost[aria-pressed="true"] { background: rgba(41, 196, 107, .18); border-color: rgba(41, 196, 107, .5); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 69, 58, .15); color: #ff6b5f; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.live-pill .dot { background: #ff453a; }
.board { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(10px, 1.5vw, 18px); }
.board .stat, .match .panel { background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 18px; padding: clamp(14px, 2vw, 24px); display: grid; gap: 8px; align-content: start; min-width: 0; }
.board .stat > span, .match .panel h2 { color: var(--m-dim); font-weight: 650; text-transform: uppercase; letter-spacing: .07em; font-size: clamp(11px, 1vw, 13px); }
.board .big { font-size: clamp(32px, 4.5vw, 64px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.board .huge { font-size: clamp(56px, 8vw, 120px); line-height: .95; letter-spacing: -.03em; color: #5ee69a; }
.match-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(10px, 1.5vw, 18px); }
.match .number-tile { background: var(--m-panel); border-color: var(--m-line); color: var(--m-text); }
.match .number-tile .label > span:first-child { color: var(--m-text); }
.match .number-tile .value { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.match .number-tile .delta, .match .number-tile .muted, .match .number-tile .kind { color: var(--m-dim); }
.match-main { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vw, 18px); }
.match .panel { gap: 14px; }
.match .wave .axis { stroke: var(--m-line); }
.match .wave .down { fill: rgba(255, 255, 255, .22); }
.match .wave-legend, .match .attackers-head { color: var(--m-dim); }
.match .attacker { border-color: var(--m-line); font-size: 16px; }
.match .attacker .trend.down { color: #ff8a80; }
.match .feed { list-style: none; margin: 0; padding: 0; display: grid; max-height: 52vh; overflow: auto; }
.match .feed li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--m-line); align-items: baseline; animation: feed-in .6s ease; }
.match .feed li.quiet { display: block; border: 0; }
.match .feed time { color: var(--m-dim); font-weight: 600; }
.match .feed .where { color: var(--m-dim); }
.match .feed li.goal b, .match .feed .money { color: #5ee69a; font-weight: 750; }
.match .feed li.number b { color: #ffd60a; }
@keyframes feed-in { from { background: rgba(94, 230, 154, .14); } to { background: transparent; } }
.match-foot { display: flex; justify-content: center; }
.match-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--m-dim); text-decoration: none; font-size: 13px; }
.match-error { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.goal-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: rgba(4, 10, 8, .74); backdrop-filter: blur(4px); pointer-events: none; }
.goal-overlay.play { animation: goal-fade 4.2s ease forwards; }
.goal-card { display: grid; justify-items: center; gap: 8px; text-align: center; color: #f2f5f4; animation: goal-pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.goal-card b { font-size: clamp(64px, 12vw, 180px); line-height: .9; letter-spacing: -.03em; color: #5ee69a; text-shadow: 0 0 60px rgba(94, 230, 154, .5); }
.goal-card span { font-size: clamp(18px, 2.4vw, 32px); font-weight: 700; }
.goal-card .where { color: rgba(242, 245, 244, .65); font-weight: 500; font-size: clamp(14px, 1.6vw, 22px); }
.goal-card .ball { font-size: clamp(40px, 6vw, 80px); animation: goal-spin 1.2s ease-out; }
.confetti { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 2px; background: var(--c); animation: confetti 1.6s ease-out forwards; }
@keyframes confetti { from { transform: rotate(var(--a)) translateX(0); opacity: 1; } to { transform: rotate(var(--a)) translateX(calc(var(--d) * 2.4)) rotate(320deg); opacity: 0; } }
@keyframes goal-pop { from { transform: scale(.4); opacity: 0; } }
.goal-card .amount { font-size: clamp(30px, 4.4vw, 60px); font-weight: 800; color: #f2f5f4; }
@keyframes goal-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.share-box { padding: 12px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr 1fr; } .match-main { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .goal-card, .goal-card .ball, .match .feed li { animation: none; } .confetti { display: none; } }
.match .number-tile { grid-template-columns: minmax(0, 1fr); }
.match .number-tile .spark-host { grid-column: 1; grid-row: auto; }
.match .number-tile .spark-host svg { width: 100%; height: 44px; }

/* ---------- Assists and player ratings ---------- */
.stack.tight { gap: 10px; }
.motm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gold-wash); }
.motm .star { color: #e0a800; font-size: 18px; }
.motm code { font-weight: 650; }
.motm .rating { margin-left: auto; }
.rating { display: inline-block; min-width: 2.6em; padding: 2px 6px; border-radius: 6px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; color: #fff; }
.rating.r-top { background: #0a7d43; }
.rating.r-good { background: #34a853; }
.rating.r-ok { background: #e3a008; }
.rating.r-low { background: #d9534f; }
table.ratings th, table.ratings td { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
table.ratings td.path { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
table.ratings tr.best td { background: var(--gold-wash-2); }

/* ---------- Heatmaps ---------- */
.tools-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tools-row select.input { width: auto; max-width: 320px; }
.heat-grid { align-items: start; }
.heat-stage { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.heat-stage.blank { background: repeating-linear-gradient(0deg, #f6f6f6 0 1px, #fff 1px 48px); }
.heat-inner { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; }
.heat-inner iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; }
.heat-page { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.heat-layer { position: absolute; inset: 0; pointer-events: none; }
.scroll-marks { position: absolute; inset: 0; pointer-events: none; }
.scroll-mark { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(0, 0, 0, .45); }
.scroll-mark span { position: absolute; right: 12px; top: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 22px; font-weight: 650; }
.heat-legend { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.heat-legend i { flex: 1; max-width: 220px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3b5bff, #00d0ff, #3ddc84, #ffe03d, #ff3b30); }

/* ---------- Injuries ---------- */
.vital .grade { grid-column: 1 / -1; justify-self: start; }
.grade { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.grade.good { background: var(--ok-wash); color: var(--ok-text); }
.grade.fair { background: var(--warn-wash); color: var(--warn-text); }
.grade.poor { background: var(--critical-wash); color: var(--critical-text); }
h3.minor { font-size: 13px; font-weight: 650; margin: 0 0 6px; color: var(--text-2); }
td.err { font-family: var(--mono); font-size: 12px; max-width: 360px; overflow-wrap: anywhere; }
td.path { font-family: var(--mono); font-size: 12.5px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Revenue and payments ---------- */
.revenue-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big-money { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.callout { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--callout); color: var(--ok-text); }
.provider { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text-2); }
.badge.ok { background: var(--ok-wash); color: var(--ok-text); }
.input-row .secret { flex: 1; min-width: 0; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Ask your data ---------- */
.ask-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-row .input { flex: 1 1 280px; min-width: 0; }
.ask-answer { display: grid; gap: 8px; }
.ask-answer .ai { margin: 0; font-size: 15px; line-height: 1.55; }
.changes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.home-numbers { margin-top: 28px; display: grid; gap: 12px; }
.home-numbers .section-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.number-group { display: grid; gap: 8px; }

/* ---------- The pitch: visitors moving through the site's pages ---------- */
.pitch-wrap { display: grid; gap: 10px; }
.pitch { position: relative; height: 340px; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #eaf7ef, #dff2e6); border: 1px solid #cfe8d8; }
.pitch-lines { position: absolute; inset: 10px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 8px; pointer-events: none; }
.pitch-lines i { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid rgba(255, 255, 255, .85); }
.pitch-lines b { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.pitch-zones, .pitch-dots { position: absolute; inset: 10px; }
.pitch-zone { position: absolute; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .05); transition: left .6s, top .6s, width .6s, height .6s; }
.pitch-zone .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.3 var(--mono); color: #1f3d2c; }
.pitch-zone b { font-size: 13px; color: #1f3d2c; }
.walker { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: left 1.3s cubic-bezier(.45, 0, .2, 1), top 1.3s cubic-bezier(.45, 0, .2, 1), opacity .6s, transform .6s; }
.walker.gone { opacity: 0; transform: scale(.3); }
.kick { position: absolute; width: 0; height: 0; pointer-events: none; }
.kick::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ffd60a; animation: kick 1s ease-out forwards; }
.kick em { position: absolute; left: 12px; top: -30px; padding: 2px 8px; border-radius: 99px; background: rgba(17, 17, 17, .85); color: #fff; font: 600 11px/1.5 var(--font); font-style: normal; white-space: nowrap; animation: kick-label 2.4s ease forwards; }
@keyframes kick { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes kick-label { 0% { opacity: 0; transform: translateY(6px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.pitch-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #2b5a3e; font-weight: 550; }
.pitch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.pitch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pitch-legend i { width: 10px; height: 10px; border-radius: 50%; }
.pitch.dark { height: 380px; background: radial-gradient(900px 400px at 50% 0%, #12402c, #0b2219); border-color: rgba(255, 255, 255, .08); }
.pitch.dark .pitch-lines, .pitch.dark .pitch-lines i, .pitch.dark .pitch-lines b { border-color: rgba(255, 255, 255, .14); }
.pitch.dark .pitch-zone { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .07); }
.pitch.dark .pitch-zone .name, .pitch.dark .pitch-zone b { color: rgba(242, 245, 244, .85); }
.pitch.dark .walker { border-color: #0b2219; box-shadow: 0 0 12px currentColor; }
.pitch.dark .pitch-empty { color: rgba(242, 245, 244, .6); }
.match .pitch-legend { color: rgba(242, 245, 244, .7); }
.pitch-panel { gap: 12px; }
@media (prefers-reduced-motion: reduce) { .walker, .pitch-zone { transition: none; } .kick::before, .kick em { animation: none; } }
.board .big.money { white-space: nowrap; overflow-wrap: normal; font-size: clamp(26px, 3.3vw, 54px); }
.number-tile .value.word { font-size: 22px; line-height: 30px; overflow-wrap: anywhere; }
.number-tile .before { grid-column: 1 / -1; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.number-tile .spark-host:has(.before) { grid-column: 1 / -1; grid-row: auto; }
.match .number-tile .value.word { font-size: clamp(22px, 2.6vw, 36px); }

/* ---------- A tracker's page ---------- */
a.number-tile.link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
a.number-tile.link:hover { border-color: var(--text-3); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.grid.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chart-controls select.input { width: auto; height: 32px; }
.page-head .back { padding: 0 6px; }
.donut { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.donut svg { flex: none; }
.donut-total { font: 700 20px var(--font); fill: var(--text); }
.donut-legend { display: grid; gap: 6px; min-width: 220px; }
.donut-legend .row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 3.2em; gap: 8px; align-items: center; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; }
.donut-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend small { color: var(--text-3); text-align: right; }
.goal-card .amount { margin-top: 14px; }
.profile-view { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-view .who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.profile-view .who b { font-size: 15px; }
.profile-view .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The pitch, in dark mode, as on the TV view. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pitch:not(.dark) { background: radial-gradient(900px 400px at 50% 0%, #12402c, #0b2219); border-color: rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] .pitch:not(.dark) { background: radial-gradient(900px 400px at 50% 0%, #12402c, #0b2219); border-color: rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pitch-zone { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .07); } :root:not([data-theme="light"]) .pitch-zone .name, :root:not([data-theme="light"]) .pitch-zone b, :root:not([data-theme="light"]) .pitch-empty { color: rgba(242, 245, 244, .85); } }
:root[data-theme="dark"] .pitch-zone { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .pitch-zone .name, :root[data-theme="dark"] .pitch-zone b, :root[data-theme="dark"] .pitch-empty { color: rgba(242, 245, 244, .85); }

/* ---------- Getting started ---------- */
.checklist { margin-bottom: 16px; }
.checklist .meter-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 10px; }
.checklist .meter-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }
.steps-done { list-style: none; margin: 0; padding: 0; display: grid; }
.steps-done li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.steps-done li:last-child { border-bottom: 0; }
.steps-done .tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2); color: #fff; }
.steps-done li.ok .tick { background: var(--green); border-color: var(--green); }
.steps-done li.ok .what { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }
.steps-done .what { flex: 1; font-weight: 550; }
