/* 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=YLq7fMXyqBJw") 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=3tKjiFuTOrpm") 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;
  color-scheme: light;
}

*, *::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: #e3e3e3; color: #8a8a8a; }
/* 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: #fff; 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: #e3e3e3; color: var(--text); font-size: 12px; font-weight: 550; white-space: nowrap; }
.badge.ok { background: #cdfee1; color: #0c5132; }
.badge.wait { background: #fff1e3; color: #5e4200; }
.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 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: #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: #e3e3e3; 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: #cdfee1; color: #0c5132; 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 #8a8a8a; 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: #8e1f0b; }
.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: #cdfee1; color: #0c5132; }
.notice.warn { background: #fff1e3; color: #5e4200; }

/* ---------- 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: #cdfee1; color: #0c5132; }
.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: #fff; 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: #eaf4ff; 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: #eaf4ff; 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: #fff1e3; color: #5e4200; 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; } }
