@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") 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; src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") 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; }
@font-face { font-family: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/public-sans-latin-wght-normal.woff2") 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: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/public-sans-latin-ext-wght-normal.woff2") 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; }
/* Movebase Cloud dashboards. Based on the Movebase design tokens shared with the plugin and website. */

/* ------------------------------------------------------------------ Tokens */
:root {
  --brand: #01a0dc;
  --brand-hover: #0b92c7;
  --on-brand: #03202c;
  --brand-ink: #006591;
  --brand-soft: #e6f5fb;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #0e1c26;
  --ink-2: #44535f;
  --ink-3: #5f6e7a;
  --line: #e1e8ed;
  --line-2: #cfd9e0;
  --side: #0d3448;
  --side-2: #164a63;
  --side-ink: #d5e6ef;
  --side-ink-2: #9fbccb;
  --good: #13703f; --good-soft: #e7f5ec;
  --warn: #8a5a00; --warn-soft: #fff3d6;
  --bad: #b42323;  --bad-soft: #fdeaea;
  --info: #006591; --info-soft: #e6f5fb;
  --neutral-soft: #eef2f5;
  /* Chart series (validated): blue, orange, yellow; status critical for 5xx */
  --s1: #2a78d6; --s2: #eb6834; --s3: #eda100; --critical: #d03b3b;
  --grid: #e8edf1;
  --shadow: 0 1px 2px rgb(14 28 38 / .05), 0 4px 16px -8px rgb(14 28 38 / .12);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-ink: #5cc8f0; --brand-soft: #0f3142;
    --bg: #0b141a; --surface: #121e26; --surface-2: #17252f;
    --ink: #e6eef3; --ink-2: #b3c1cb; --ink-3: #93a3ae;
    --line: #22323d; --line-2: #2d404c;
    --side: #08161e; --side-2: #12303f;
    --good: #5fd391; --good-soft: #0f2d1d; --warn: #f0bd57; --warn-soft: #33260f;
    --bad: #ff8a8a; --bad-soft: #3a1818; --info: #5cc8f0; --info-soft: #0f3142; --neutral-soft: #1c2a34;
    --s1: #3987e5; --s2: #d95926; --s3: #c98500; --grid: #1f2e38;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-ink: #5cc8f0; --brand-soft: #0f3142;
  --bg: #0b141a; --surface: #121e26; --surface-2: #17252f;
  --ink: #e6eef3; --ink-2: #b3c1cb; --ink-3: #93a3ae;
  --line: #22323d; --line-2: #2d404c;
  --side: #08161e; --side-2: #12303f;
  --good: #5fd391; --good-soft: #0f2d1d; --warn: #f0bd57; --warn-soft: #33260f;
  --bad: #ff8a8a; --bad-soft: #3a1818; --info: #5cc8f0; --info-soft: #0f3142; --neutral-soft: #1c2a34;
  --s1: #3987e5; --s2: #d95926; --s3: #c98500; --grid: #1f2e38;
  --shadow: 0 1px 2px rgb(0 0 0 / .3);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 0.9375rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; margin: 0; line-height: 1.25; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.0625rem; font-weight: 650; }
h3 { font-size: 0.9375rem; font-weight: 650; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.8125rem; }
.i { flex: none; vertical-align: -0.15em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ Shell */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) 248px, transparent 248px); }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; z-index: 40; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--on-brand); }
.brand-mark .i { stroke-width: 2.6; }
.brand small { font: 600 0.6875rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--side-ink-2); margin-left: auto; padding: 4px 6px; border: 1px solid var(--side-2); border-radius: 6px; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav a .i { color: var(--side-ink-2); }
.nav a[aria-current="page"] .i, .nav a:hover .i { color: var(--brand); }
.nav-label { font: 600 0.6875rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--side-ink-2); padding: 18px 10px 8px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--side-2); display: grid; gap: 10px; font-size: 0.8125rem; color: var(--side-ink-2); }
.side-status { display: flex; align-items: center; gap: 8px; }
.side-status .pip { width: 8px; height: 8px; border-radius: 50%; background: #3ad07b; box-shadow: 0 0 0 3px rgb(58 208 123 / .2); }
.side-status .pip.warn { background: #f0bd57; box-shadow: 0 0 0 3px rgb(240 189 87 / .2); }
.side-status .pip.bad { background: #ff6b6b; box-shadow: 0 0 0 3px rgb(255 107 107 / .2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); min-height: 60px; }
.topbar .crumbs { font-size: 0.875rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar .crumbs strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.icon-btn.menu-btn { display: none; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px 4px 4px; color: var(--ink); font: inherit; cursor: pointer; }
.user-menu > button:hover { border-color: var(--line); background: var(--surface); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font: 700 0.8125rem/1 var(--body); }
.user-menu .who { text-align: left; line-height: 1.2; }
.user-menu .who small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -12px rgb(14 28 38 / .3); padding: 6px; display: grid; gap: 2px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.theme-switch { display: flex; gap: 4px; padding: 6px 8px; }
.theme-switch button { flex: 1; justify-content: center; padding: 6px; border: 1px solid var(--line); }
.theme-switch button[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }

.content { padding: 24px 28px 48px; display: grid; gap: 20px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--ink-3); margin-top: 4px; }
.page-head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ Components */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head p { color: var(--ink-3); font-size: 0.8125rem; margin-top: 2px; }
.card-body { padding: 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 0.875rem/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger.solid { background: #b42323; border-color: #b42323; color: #fff; }
.btn.ghost { border-color: transparent; background: none; }
.btn.small { min-height: 32px; padding: 5px 10px; font-size: 0.8125rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--neutral-soft); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.plain::before { display: none; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; border: 1px solid; font-size: 0.875rem; }
.notice.good { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.notice.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.notice p { color: var(--ink); }
.notice .i { margin-top: 2px; }
.notice > div { flex: 1; min-width: 0; }
.notice strong { display: block; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1360px) { .kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.kpi .label { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-3); font-weight: 500; }
.kpi .label .i { color: var(--brand-ink); }
.kpi .value { font: 700 1.75rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 0.8125rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.flat { color: var(--ink-3); }

/* Meters */
.meter { display: grid; gap: 6px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.meter-track { height: 10px; border-radius: 999px; background: var(--neutral-soft); overflow: hidden; }
.fill-svg { display: block; }
.meter-fill { fill: var(--s1); }
.meter-fill.warn { fill: #fab219; } .meter-fill.bad { fill: var(--critical); }
.meter small { color: var(--ink-3); font-size: 0.8125rem; }

/* Health list */
.health { list-style: none; margin: 0; padding: 0; display: grid; }
.health li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--line); }
.health li:first-child { border-top: 0; }
.health .state { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.health .good .state { background: var(--good-soft); color: var(--good); }
.health .warn .state { background: var(--warn-soft); color: var(--warn); }
.health .bad .state { background: var(--bad-soft); color: var(--bad); }
.health strong { display: block; font-weight: 600; }
.health small { color: var(--ink-3); font-size: 0.8125rem; }
.health .tag { margin-left: auto; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.filters .field { display: grid; gap: 4px; }
.filters label { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.input, .select, textarea { min-height: 38px; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; width: 100%; }
.select { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.search { position: relative; min-width: min(280px, 100%); }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 34px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--neutral-soft); gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(14 28 38 / .12); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 0.8125rem; font-weight: 600; background: var(--surface); }
.chip[aria-current="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.chip .count { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.table th a:hover { color: var(--ink); }
.table th[aria-sort="ascending"] a::after { content: "↑"; } .table th[aria-sort="descending"] a::after { content: "↓"; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .r { text-align: right; }
.table td.r, .table th.r { text-align: right; }
.table tr.clickable { cursor: pointer; }
.id-link { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.id-link:hover { text-decoration: underline; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); display: grid; gap: 6px; justify-items: center; }
.empty .i { color: var(--line-2); }
.empty strong { color: var(--ink); font-size: 1rem; }
details.ctx summary { cursor: pointer; color: var(--brand-ink); font-size: 0.8125rem; }
details.ctx pre { margin: 8px 0 0; padding: 10px; background: var(--surface-2); border-radius: 8px; font: 0.75rem/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; max-width: 520px; }

/* Pager */
.pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.pager .info { font-size: 0.8125rem; color: var(--ink-3); }
.pager nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pager nav a, .pager nav span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.8125rem; font-weight: 600; background: var(--surface); }
.pager nav a:hover { border-color: var(--ink-3); color: var(--ink); }
.pager nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pager nav span.gap { border-color: transparent; background: none; }
.pager nav .disabled { opacity: .4; pointer-events: none; }
.pager .per { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.pager .per .select { width: auto; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }

/* Charts */
.chart { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-plot:focus-visible { outline-offset: 4px; }
.chart-empty { display: grid; place-items: center; min-height: 160px; color: var(--ink-3); font-size: 0.875rem; border: 1px dashed var(--line-2); border-radius: 10px; }
.partial-note { font-size: 0.75rem; color: var(--ink-3); margin-top: 6px; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font: 500 11px var(--body); font-variant-numeric: tabular-nums; }
.chart .baseline { stroke: var(--line-2); }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .key { width: 12px; height: 4px; border-radius: 2px; }
.legend .total { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px -10px rgb(14 28 38 / .35); padding: 10px 12px; font-size: 0.8125rem; min-width: 160px; }
.tip strong { display: block; margin-bottom: 4px; font-weight: 600; }
.tip .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tip .sw { width: 8px; height: 8px; border-radius: 2px; }
.tip .row b { font-variant-numeric: tabular-nums; }
.view-toggle { font-size: 0.8125rem; }
.chart-table { margin-top: 12px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }

/* Bars list (funnel, endpoints) */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 6px; }
.bar-row .top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.875rem; }
.bar-row .top b { font-variant-numeric: tabular-nums; }
.bar-track { height: 12px; border-radius: 4px; background: var(--neutral-soft); }
.bar-track { overflow: hidden; }
.bar-fill { fill: var(--s1); }
.bar-row small { font-size: 0.75rem; color: var(--ink-3); }

/* Definition lists / timelines */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); margin: 0; border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 14px 20px; background: var(--surface); }
.facts dt { font-size: 0.75rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 4px 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .pt { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.timeline .done .pt { border-color: var(--good); background: var(--good); }
.timeline .off .pt { border-color: var(--bad); background: var(--bad); }
.timeline strong { display: block; font-weight: 600; }
.timeline small { color: var(--ink-3); }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; align-content: start; }
.form .row { display: grid; gap: 6px; }
.form label, .form .label { font-weight: 600; font-size: 0.875rem; }
.form .help { font-size: 0.8125rem; color: var(--ink-3); }
.form .inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form .inline .input { flex: 1; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.unit { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); overflow: hidden; }
.unit:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.unit .input { border: 0; box-shadow: none !important; min-width: 0; }
.unit span { padding: 0 12px; color: var(--ink-3); font-size: 0.8125rem; white-space: nowrap; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; background: var(--surface-2); }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); min-width: 0; }
.copy-field code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.8125rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 20px; overflow-x: auto; }
.tabs a { padding: 12px 12px; color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: 0.875rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.qr { width: 180px; height: 180px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; }
.secret { font-family: var(--mono); letter-spacing: 0.08em; word-break: break-all; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-3); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ad07b; }
.live-dot.stale::before { background: var(--line-2); }

/* Dialog */
dialog { border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -12px rgb(0 0 0 / .4); width: min(460px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(8 22 30 / .55); }
dialog form { display: grid; gap: 16px; padding: 22px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(420px, calc(100vw - 40px)); box-shadow: 0 12px 32px -12px rgb(14 28 38 / .4); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent), var(--bg); }
.auth-card { width: min(400px, 100%); padding: 28px; display: grid; gap: 20px; }
.auth-card .brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--display); color: var(--ink); text-decoration: none; }
.auth-card .form { max-width: none; }
.auth-foot { font-size: 0.8125rem; color: var(--ink-3); text-align: center; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1180px) {
  .grid-main, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgb(0 0 0 / .3); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgb(8 22 30 / .5); z-index: 35; }
  .icon-btn.menu-btn { display: inline-grid; }
  .app { background: none; }
  .topbar { padding: 10px 16px; }
  .content { padding: 20px 16px 40px; }
}
@media (max-width: 760px) {
  .grid-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .user-menu .who { display: none; }
  .kpis, .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 1.4rem; }
  h1 { font-size: 1.3rem; }
  .card-head, .card-body, .filters, .card-foot { padding-left: 16px; padding-right: 16px; }
  .health li { padding-left: 16px; padding-right: 16px; }
  .filters .field, .filters .search { flex: 1 1 100%; }
  /* Tables become stacked cards so nothing scrolls sideways. */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  /* Label on the left, value on the right. The value is normal text (not flex items), so a name and the email
     under it stay stacked, and long emails or numbers wrap instead of running off the card. */
  table.stack td { display: flow-root; padding: 4px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); float: left; margin-right: 16px; max-width: 45%; color: var(--ink-3); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; padding-top: 2px; overflow-wrap: normal; }
  table.stack td:not([data-label])::before, table.stack td[data-label=""]::before { display: none; }
  table.stack td.lead { display: block; text-align: left; font-size: 0.9375rem; padding-bottom: 6px; }
  table.stack .hide-sm { display: none !important; }
  table.stack td.lead::before { display: none; }
  table.stack tbody tr:hover td { background: none; }
  .pager { justify-content: center; }
  .pager .info { width: 100%; text-align: center; }
}
@media (max-width: 420px) {
  .kpis, .kpis.four { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .badge::before, .legend .key, .tip .sw { forced-color-adjust: none; } }

.install { width: min(560px, 100%); }
.install textarea { font-size: 0.75rem; }
.card-body > .actions { margin-top: 20px; display: flex; gap: 8px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
td .inline { justify-content: flex-end; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.page-title-id { font-family: var(--mono); font-size: 0.9em; letter-spacing: 0; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; margin-bottom: 6px; }

/* ------------------------------------------------------------------ Movebase Cloud v2 additions */
.small { font-size: 0.8125rem; }
.mono-small { font-family: var(--mono); font-size: 0.8125rem; word-break: break-all; }
.opt { font-weight: 500; color: var(--ink-3); font-size: 0.75rem; margin-left: 4px; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.error-list { margin: 4px 0 0; padding-left: 18px; color: var(--ink); }
.notice > .i { flex: none; }
.notice p strong { margin-bottom: 2px; }
.section-title { font-size: 1.0625rem; margin: 4px 0 12px; }

/* Auth */
.auth-card.wide { width: min(560px, 100%); }
.auth-card h1 { font-size: 1.375rem; }
.auth-lede { margin-top: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.small-link { font-size: 0.8125rem; }
.code-input { font: 600 1.25rem/1 var(--mono); letter-spacing: 0.3em; text-align: center; max-width: 220px; }
.auth-card .code-input { max-width: none; }
.recovery summary { margin-top: 2px; }
.recovery .form { margin-top: 12px; }
.help-row { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 0.8125rem; color: var(--ink-3); }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; color: var(--ink-3); }
.setup-steps li { display: flex; gap: 8px; align-items: center; }
.setup-steps li.done { color: var(--good); }
.side-help { display: inline-flex; gap: 8px; align-items: center; color: var(--side-ink); text-decoration: none; }
.side-help:hover { color: #fff; }

/* Forms */
.form.wide { max-width: none; }
.form h2 { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.form h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row.narrow { max-width: 320px; }
.unit .select.bare { width: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; background-color: var(--surface-2); min-height: 36px; box-shadow: none; }
.keyset { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line) !important; border-radius: 10px; background: var(--surface-2); }
.keyset legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 650; font-size: 0.875rem; }
.kept { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; padding: 4px 4px 4px 12px; border: 1px dashed var(--line-2); border-radius: 9px; background: var(--surface); }
.kept .mono-small { flex: 1; color: var(--ink-2); }
.small-check { font-size: 0.8125rem; color: var(--ink-2); gap: 6px !important; align-items: center !important; }
.small-check input { width: 16px; height: 16px; margin: 0; }
.preset-hint { margin: 0; align-items: center; }
.seg-radio { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--neutral-soft); gap: 2px; }
.seg-radio label { position: relative; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-radio span { display: block; padding: 6px 16px; border-radius: 8px; font-weight: 600; font-size: 0.875rem; color: var(--ink-2); }
.seg-radio input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(14 28 38 / .14); }
.seg-radio input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }
.switch b { font-weight: 650; }
fieldset:disabled .btn, fieldset:disabled .input { opacity: .7; }
.small-select { min-height: 32px; padding-top: 4px; padding-bottom: 4px; width: auto; }

/* Providers and gateways */
.provider-list, .gateway-list { display: grid; gap: 20px; }
.provider-title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.provider-title p { margin-top: 2px; }
.site-files { margin-bottom: 20px; }
.site-files .card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.site-files-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.site-files-form label { font-weight: 560; font-size: 13px; }
.site-files-form .select { width: auto; min-width: 220px; max-width: 100%; }
@media (max-width: 560px) { .site-files-form, .site-files-form .select, .site-files-form .btn { width: 100%; } .site-files-form .btn { justify-content: center; } .site-files .card-foot > form:last-child, .site-files .card-foot > form:last-child .btn { width: 100%; justify-content: center; } }
.provider-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.provider .facts, .card > .facts { border-radius: 0; }
.card-body.tight { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); }
.test-result { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-3); min-width: 0; flex: 1 1 280px; }
.test-result .i { margin-top: 2px; flex: none; }
.test-result.good .i, .test-result.good b { color: var(--good); }
.test-result.bad .i, .test-result.bad b { color: var(--bad); }
.test-result small { color: var(--ink-3); word-break: break-word; }
.empty-cta { display: flex; justify-content: center; padding: 0 20px 28px; }
.side-help-card { align-self: start; }
.webhook { display: grid; gap: 6px; }
.webhook .label { font-weight: 600; font-size: 0.875rem; }
.provider-mini { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.875rem; padding-top: 12px; border-top: 1px solid var(--line); }
.provider-mini > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.stack-gap { display: grid; gap: 12px; }
.facts + .grid, .facts { margin-top: 0; }

/* Customer area */
.start-steps { list-style: none; margin: 0; padding: 8px 20px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.start-steps li { display: flex; gap: 12px; align-items: flex-start; }
.start-steps .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 0.875rem; color: var(--ink-3); flex: none; }
.start-steps .is-now .n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.start-steps p { color: var(--ink-3); font-size: 0.875rem; margin: 4px 0 10px; }
.site-list { list-style: none; margin: 0; padding: 0; }
.site-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.site-list li:first-child { border-top: 0; }
.site-list li > span:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.site-list small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; }
.plan-card .card-body { flex: 1; display: grid; gap: 6px; align-content: start; }
.plan-card.is-featured { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.plan-card.is-selected { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-amount b { font: 750 1.75rem/1.1 var(--display); letter-spacing: -0.02em; }
.plan-cost { color: var(--ink-2); }
.plan-cost b { font-size: 1.0625rem; color: var(--ink); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 24px; font-size: 0.875rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 16px; height: 16px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313703f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.addon-line { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-2); font-size: 0.875rem; }
.addon-line .i { color: var(--brand-ink); }
.codes { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.codes code { display: block; padding: 6px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); text-align: center; }
.tf-setup { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.tf-setup .form { flex: 1 1 320px; }
.qr svg rect[fill="#ffffff"], .qr svg rect[fill="#fff"] { fill: #fff; }

@media (max-width: 1024px) {
  .plan-grid, .start-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-list li { padding-left: 16px; padding-right: 16px; }
  .start-steps { padding: 8px 16px 16px; }
}
.webhook .copy-field code { overflow: visible; white-space: normal; word-break: break-all; }
.plan-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1280px) { .plan-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .plan-grid.n4, .plan-grid.n2 { grid-template-columns: minmax(0, 1fr); } }
.plan-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1280px) { .plan-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .plan-grid.n4, .plan-grid.n2 { grid-template-columns: minmax(0, 1fr); } }

/* Connect approval */
.connect-pair { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 4px; }
.connect-pair .tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.connect-pair .tile.cloud { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.link-line { display: flex; gap: 6px; }
.link-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); animation: pulse 1.6s ease-in-out infinite; }
.link-line i:nth-child(2) { animation-delay: .2s; } .link-line i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { background: var(--line-2); transform: scale(1); } 50% { background: var(--brand); transform: scale(1.25); } }
.connect-lede { text-align: center; font-size: 1rem; }
.facts.compact { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); }
.facts.compact div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; }
.facts.compact dd { margin: 0; text-align: right; }
.perm { display: grid; gap: 8px; }
.perm-title { font-weight: 650; font-size: 0.875rem; }
.perm-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.perm-list li { display: flex; gap: 10px; align-items: flex-start; }
.perm-list.yes .i { color: var(--good); margin-top: 2px; }
.perm-list.no .i { color: var(--ink-3); margin-top: 2px; }
.connect-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.help.center { text-align: center; }
.inline-form { display: inline; }

/* Sites */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.site-card { display: flex; flex-direction: column; }
.site-card.is-off { opacity: .72; }
.site-card-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; }
.site-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(150deg, var(--brand), #0a6f9c); color: #fff; font: 700 1.05rem/1 var(--display); flex: none; }
.is-off .site-avatar { background: var(--neutral-soft); color: var(--ink-3); }
.site-id { min-width: 0; flex: 1; }
.site-id h2 { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-id a { font-size: 0.8125rem; color: var(--ink-3); text-decoration: none; }
.site-id a:hover { color: var(--brand-ink); text-decoration: underline; }
.site-share { height: 4px; margin: 0 18px; border-radius: 99px; background: var(--neutral-soft); overflow: hidden; }
.site-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 14px 18px 16px; }
.site-facts dt { font-size: 0.75rem; color: var(--ink-3); font-weight: 500; }
.site-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.site-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.small-value { font-size: 1.25rem !important; }
.add-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way { padding: 20px; display: grid; gap: 10px; align-content: start; }
.way + .way { border-left: 1px solid var(--line); }
.way h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.way h3 .i { color: var(--brand-ink); }
.key-box { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 60%, var(--line)); background: var(--brand-soft); }
.key-box code { flex: 1; font: 650 1.05rem/1.2 var(--mono); letter-spacing: 0.06em; color: var(--ink); word-break: break-all; }
@media (max-width: 760px) { .add-ways { grid-template-columns: minmax(0, 1fr); } .way + .way { border-left: 0; border-top: 1px solid var(--line); } .site-grid { grid-template-columns: minmax(0, 1fr); } }

/* Audience map: sequential blue ramp (validated reference palette), light → dark = few → many */
:root { --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #5598e7; --seq-4: #256abf; --seq-5: #104281; --nodata: #e6ecf0; --ocean: #f6f9fb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --seq-1: #184f95; --seq-2: #256abf; --seq-3: #3987e5; --seq-4: #86b6ef; --seq-5: #cde2fb; --nodata: #1f2e38; --ocean: #0f1a21; } }
:root[data-theme="dark"] { --seq-1: #184f95; --seq-2: #256abf; --seq-3: #3987e5; --seq-4: #86b6ef; --seq-5: #cde2fb; --nodata: #1f2e38; --ocean: #0f1a21; }
.world { position: relative; }
.world svg { display: block; width: 100%; height: auto; }
.world .sphere { fill: var(--ocean); stroke: var(--line); stroke-width: 1; }
.world .land { stroke: var(--surface); stroke-width: .6; }
.world .nodata { fill: var(--nodata); }
.world .bin-1, .map-legend .bin-1 { fill: var(--seq-1); background: var(--seq-1); }
.world .bin-2, .map-legend .bin-2 { fill: var(--seq-2); background: var(--seq-2); }
.world .bin-3, .map-legend .bin-3 { fill: var(--seq-3); background: var(--seq-3); }
.world .bin-4, .map-legend .bin-4 { fill: var(--seq-4); background: var(--seq-4); }
.world .bin-5, .map-legend .bin-5 { fill: var(--seq-5); background: var(--seq-5); }
.world path[tabindex] { cursor: pointer; outline: none; }
.world path[tabindex]:hover, .world path[tabindex]:focus-visible, .world path.is-hot { stroke: var(--ink); stroke-width: 1.4; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.8125rem; color: var(--ink-2); }
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .key { width: 18px; height: 10px; border-radius: 3px; }
.map-legend .key.nodata { background: var(--nodata); }
.flag { font-size: 1.1em; }
.share { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.share-bar { width: 70px; height: 8px; border-radius: 4px; background: var(--neutral-soft); overflow: hidden; }
.announce { align-items: flex-start; }
.announce strong { color: var(--ink); }
.announce p { margin-top: 4px; }
.announce form { margin-left: auto; }
.compact-table td, .compact-table th { padding-left: 12px; padding-right: 12px; }
.compact-table .share-bar { width: 48px; }
.site-card.is-off { opacity: 1; background: var(--surface-2); }
.audience-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); gap: 20px; align-items: start; }
.compact-table td.country { white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) { .audience-grid { grid-template-columns: minmax(0, 1fr); } }
/* Sign-ups bars: single series, brand blue, 4px rounded data-end, recessive baseline */
.bars-chart { position: relative; }
.bars-chart svg { display: block; width: 100%; height: 160px; }
.bars-chart .bar { fill: var(--s1); }
.bars-chart .hit { fill: transparent; cursor: default; }
.bars-chart .hit.is-hot + .bar, .bars-chart .bar.is-hot { fill: var(--brand-ink); }
.bars-chart .baseline { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--ink-3); }
.country-list { list-style: none; margin: 0; padding: 4px 0; }
.country-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.country-list li:first-child { border-top: 0; }

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.sum-plan { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sum-plan strong { display: block; font: 650 1.1rem/1.2 var(--display); }
.sum-plan small { color: var(--ink-3); }
.sum-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: var(--on-brand); }
.sum-lines { margin: 0; display: grid; }
.sum-lines div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.sum-lines dt { color: var(--ink-3); }
.sum-lines dd { margin: 0; text-align: right; }
.sum-lines .total { border-bottom: 0; padding-top: 16px; }
.sum-lines .total b { font: 700 1.5rem/1 var(--display); }
.sum-lines .total small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.pay-body { flex: 1; display: grid; }
.pay-body small { color: var(--ink-3); }
.pay-option .i { color: var(--ink-3); }
.paddle-wait { display: grid; gap: 12px; justify-items: start; }
/* Billing */
.current-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.current-plan h2 { font-size: 1.25rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.current-plan p { color: var(--ink-3); margin-top: 4px; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .checkout, .current-plan { grid-template-columns: minmax(0, 1fr); } .plan-actions { justify-content: flex-start; } }
.block-form { width: 100%; }
.warn-text { color: var(--warn) !important; display: flex; gap: 6px; align-items: center; }
.addon-line .btn { margin-left: auto; }
.test-mail-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.test-mail-form .input { max-width: 260px; height: 34px; }

/* Logo (light and dark artwork; follows the theme) */
.brand .logo { display: block; height: 26px; width: auto; }
.side .brand .logo { height: 24px; }
.auth-card .brand .logo { height: 30px; }
.logo-for-dark { display: none !important; }
:root[data-theme="dark"] .logo-for-light { display: none !important; }
:root[data-theme="dark"] .logo-for-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-for-light { display: none !important; } :root:not([data-theme="light"]) .logo-for-dark { display: block !important; } }

/* Site icons (the WordPress site's own icon, letter fallback underneath) */
.site-avatar { position: relative; overflow: hidden; }
.site-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; border-radius: inherit; }
.site-avatar.sm { width: 32px; height: 32px; border-radius: 9px; font-size: .9rem; }
.site-cell { display: flex; align-items: center; gap: 12px; }
.connect-pair .tile { position: relative; overflow: hidden; width: 60px; height: 60px; border-radius: 16px; }
.connect-pair .site-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.connect-pair .brand-tile { background: transparent; border: 0; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.connect-pair .brand-tile img { width: 100%; height: 100%; display: block; }
.site-avatar.xs { width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; }
.site-avatar.xs img { padding: 2px; }

/* Dashboard breadcrumbs */
.topbar .crumbs ol { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.topbar .crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.topbar .crumbs li:last-child { overflow: hidden; }
.topbar .crumbs a { color: var(--ink-3); text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.topbar .crumbs a:hover { color: var(--brand-ink); background: var(--brand-soft); }
@media (max-width: 640px) { .topbar .crumbs li:not(:last-child):not(:nth-last-child(2)) { display: none; } }

/* Loading spinner on the button or link that was used */
@keyframes mb-spin { to { transform: rotate(360deg); } }
.btn.is-loading, button.is-loading, a.is-loading { pointer-events: none; cursor: progress; opacity: .85; }
.is-loading > .i, .is-loading > svg { display: none; }
.is-loading::before { content: ""; flex: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mb-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .is-loading::before { animation-duration: 1.6s; } }

/* Sign-in pages: same blueprint frame as the website */
.auth { align-content: center; gap: 26px; overflow-x: clip; background:
  radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent),
  linear-gradient(180deg, transparent 40%, var(--bg)),
  repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand) 9%, transparent) 0 1px, transparent 1px 76px),
  repeating-linear-gradient(0deg, color-mix(in srgb, var(--brand) 9%, transparent) 0 1px, transparent 1px 76px), var(--bg); }
.auth-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .875rem; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.auth-back:hover { color: var(--brand-ink); }
.auth-frame { position: relative; isolation: isolate; border-radius: 10px; margin: 16px 0; }
.auth-frame::before { content: ""; position: absolute; inset: -16px; padding: 15px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent) 0 1px, transparent 1px 6px); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); z-index: -1; pointer-events: none; border-radius: 0; }
.auth-frame::after { content: ""; position: absolute; inset: -1px -64px; border-top: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-bottom: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); -webkit-mask: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); pointer-events: none; }
.auth-frame .fx { position: absolute; inset: -64px -1px; border-left: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-right: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); -webkit-mask: linear-gradient(180deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask: linear-gradient(180deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); pointer-events: none; }
.auth-frame .fx .d { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle, var(--brand) 0 2.5px, var(--surface) 3px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, var(--surface)), 0 0 12px rgb(1 160 220 / .5); }
.auth-frame .fx .d.tl { top: 57.5px; left: -7px; } .auth-frame .fx .d.tr { top: 57.5px; right: -7px; } .auth-frame .fx .d.bl { bottom: 57.5px; left: -7px; } .auth-frame .fx .d.br { bottom: 57.5px; right: -7px; }
.auth-frame .fx .run { position: absolute; top: 64px; bottom: 64px; width: 3px; overflow: hidden; }
.auth-frame .fx .run.l { left: -2px; } .auth-frame .fx .run.r { right: -2px; }
.auth-frame .fx .run::before { content: ""; position: absolute; left: 0; width: 3px; height: 64px; border-radius: 2px; }
.auth-frame .fx .run.l::before { bottom: -70px; background: linear-gradient(180deg, var(--brand), transparent); animation: authup 4s linear infinite; }
.auth-frame .fx .run.r::before { top: -70px; background: linear-gradient(180deg, transparent, var(--brand)); animation: authdown 4s linear infinite 1.2s; }
@keyframes authup { to { bottom: 100%; } } @keyframes authdown { to { top: 100%; } }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.035em; }
.auth .btn { border-radius: 100px; min-height: 48px; }
@media (max-width: 520px) { .auth-frame::after { inset: -1px -20px; } .auth-frame .fx { inset: -20px -1px; } .auth-frame .fx .d.tl, .auth-frame .fx .d.tr { top: 13.5px; } .auth-frame .fx .d.bl, .auth-frame .fx .d.br { bottom: 13.5px; } .auth-frame .fx .run { top: 20px; bottom: 20px; } .auth-frame::before { inset: -10px; padding: 9px; } }
@media (prefers-reduced-motion: reduce) { .auth-frame .fx .run::before { animation: none; } }
.error-code { font: 700 .8rem/1 var(--body); letter-spacing: .12em; color: var(--brand-ink); margin-bottom: 10px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.error-actions .btn { border-radius: 100px; min-height: 44px; }

/* ================================================================== v3 refresh: same brand as the website
   Calm, compact work screens: one surface per card, soft edges, pill buttons, a faint brand icon on the edge of key cards. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
:root {
  --bg: #f2f7fa; --surface: #ffffff; --surface-2: #f6fafc; --ink: #061924; --ink-2: #3a4e5b; --ink-3: #5d717e;
  --line: #e2ecf2; --line-2: #cfdee7; --side: #061924; --side-2: #10303f; --side-ink: #d3e5ee; --side-ink-2: #8fb0c0;
  --brand-ink: #00709f; --brand-soft: #e5f5fc; --on-brand: #ffffff;
  --btn: #061924; --btn-ink: #ffffff; --btn-hover: #12384c;
  --shadow: 0 1px 2px rgb(6 25 36 / .04), 0 10px 28px -20px rgb(6 25 36 / .22);
  --shadow-lift: 0 1px 2px rgb(6 25 36 / .05), 0 18px 40px -22px rgb(6 25 36 / .32);
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #051219; --surface: #0b1e29; --surface-2: #0e2532; --ink: #eaf5fb; --ink-2: #b6cad6; --ink-3: #8ba3b1;
    --line: #15313f; --line-2: #1f4255; --side: #030b10; --side-2: #0f2a38; --brand-soft: #0c2e3e; --brand-ink: #5ccaf3;
    --btn: #eaf5fb; --btn-ink: #061924; --btn-hover: #ffffff; --on-brand: #061924;
    --shadow: 0 1px 2px rgb(0 0 0 / .35); --shadow-lift: 0 18px 40px -22px rgb(0 0 0 / .8);
  }
}
:root[data-theme="dark"] {
  --bg: #051219; --surface: #0b1e29; --surface-2: #0e2532; --ink: #eaf5fb; --ink-2: #b6cad6; --ink-3: #8ba3b1;
  --line: #15313f; --line-2: #1f4255; --side: #030b10; --side-2: #0f2a38; --brand-soft: #0c2e3e; --brand-ink: #5ccaf3;
  --btn: #eaf5fb; --btn-ink: #061924; --btn-hover: #ffffff; --on-brand: #061924;
  --shadow: 0 1px 2px rgb(0 0 0 / .35); --shadow-lift: 0 18px 40px -22px rgb(0 0 0 / .8);
}
body { font-size: .9375rem; }
h1 { font-size: 1.65rem; letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }

/* Shell */
@media (min-width: 1025px) { .app { background: linear-gradient(to right, var(--side) 248px, transparent 248px); } }
.side { padding: 20px 14px; }
.side .brand { padding: 4px 8px 22px; }
.brand small { border-color: var(--side-2); border-radius: 100px; padding: 4px 8px; }
.nav a { border-radius: 100px; padding: 9px 12px; }
.nav a[aria-current="page"] { background: rgb(1 160 220 / .16); box-shadow: none; color: #fff; }
.nav a[aria-current="page"] .i { color: #4fc6f2; }
.nav-label { padding: 20px 12px 8px; font-size: .66rem; letter-spacing: .12em; }
.topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: transparent; transition: border-color .2s; }
.topbar.is-stuck { border-bottom-color: var(--line); }
.user-menu > button { border-radius: 100px; padding: 4px 10px 4px 4px; }
.avatar { background: linear-gradient(150deg, #01a0dc, #0577b0); color: #fff; }
.menu { border-radius: 14px; box-shadow: var(--shadow-lift); padding: 8px; }
.menu a, .menu button { border-radius: 10px; }
.content { position: relative; isolation: isolate; gap: 18px; padding-top: 26px; }
.page-head p { max-width: 70ch; }

/* Cards: one surface, no inner rules where spacing does the job */
.card { border-color: var(--line); box-shadow: var(--shadow); }
.card-head { border-bottom: 0; padding: 18px 20px 6px; }
.card-head + .card-body { padding-top: 12px; }
.card-head h2 { font-size: 1.05rem; }
.card-foot { border-top-color: var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card > .table-wrap:first-child table { border-radius: var(--radius) var(--radius) 0 0; }
.health li, .site-list li, .country-list li { border-top-color: color-mix(in srgb, var(--line) 70%, transparent); }

/* Buttons: pills, dark primary like the website */
.btn { border-radius: 100px; min-height: 38px; padding: 7px 16px; font-weight: 600; }
.btn.small { min-height: 32px; padding: 5px 12px; }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.brand:hover { background: #12b3ef; border-color: #12b3ef; }
.btn.light { background: #fff; border-color: #fff; color: #061924; }
.btn.light:hover { background: #e9f7fd; border-color: #e9f7fd; }
.btn.glass { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .28); color: #fff; }
.btn.glass:hover { background: rgb(255 255 255 / .24); }
.icon-btn { border-radius: 100px; }
.seg, .seg-radio { border-radius: 100px; }
.seg a, .seg-radio span { border-radius: 100px; }
.chip { border-color: var(--line); }
.input, .select, textarea { border-radius: 12px; border-color: var(--line-2); }
.copy-field, .unit, .kept { border-radius: 12px; }
dialog { border-radius: 18px; }
dialog form { padding: 24px; }

/* KPI tiles: compact, with the icon in a soft tile and a large faint copy of it on the edge */
.kpis { gap: 14px; }
.kpi { position: relative; overflow: hidden; isolation: isolate; padding: 16px 18px 15px; gap: 4px; transition: box-shadow .25s, transform .25s; }
.kpi:hover { box-shadow: var(--shadow-lift); }
.kpi .label { gap: 10px; font-size: .8125rem; color: var(--ink-2); }
.kpi .label .i { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.kpi .value { margin-top: 6px; font-size: 1.7rem; letter-spacing: -.035em; }
.kpi-mark { position: absolute; right: -22px; bottom: -26px; z-index: -1; color: var(--brand); opacity: .07; pointer-events: none; }
.kpi-mark .i { width: 112px; height: 112px; stroke-width: 1.2; }
.kpi::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--brand), transparent 70%); opacity: .55; }

/* Meters */
.meter-track { height: 8px; background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); }
.meter-fill { fill: url(#mb-meter); fill: var(--brand); }

/* Tables: quiet header, no grey band */
.table th { background: transparent; color: var(--ink-3); font-size: .7rem; letter-spacing: .07em; padding-top: 12px; padding-bottom: 10px; }
.table td { border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); }
.table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.filters { border-bottom: 0; padding-bottom: 6px; }

/* Badges */
.badge { padding: 3px 10px 3px 8px; }

/* Notices: a soft card with the icon in a round tile */
.notice { position: relative; overflow: hidden; isolation: isolate; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, currentColor 18%, var(--line)); background: color-mix(in srgb, currentColor 5%, var(--surface)); box-shadow: var(--shadow); }
.notice > .i { width: 34px; height: 34px; padding: 8px; margin: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, var(--surface)); }
.notice.good { color: var(--good); } .notice.warn { color: var(--warn); } .notice.bad { color: var(--bad); } .notice.info { color: var(--info); }
.notice.good, .notice.warn, .notice.bad, .notice.info { background: color-mix(in srgb, currentColor 6%, var(--surface)); border-color: color-mix(in srgb, currentColor 20%, var(--line)); }
.notice strong { color: var(--ink); font-weight: 650; }
.notice p { color: var(--ink-2); }
.notice > div { padding-top: 6px; }
/* Announcements from the Movebase team */
.announce { padding: 16px 18px; }
.announce::after { content: ""; position: absolute; right: -18px; bottom: -30px; width: 120px; height: 120px; z-index: -1; opacity: .08; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.announce form .btn { border-radius: 50%; width: 32px; padding: 0; }
.announce a { font-weight: 600; }

/* Toasts: dark floating card, coloured icon, auto-close bar */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 12px; width: min(420px, calc(100vw - 32px)); padding: 12px 10px 12px 12px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .08); background: #0b2230; color: #eaf5fb; box-shadow: 0 24px 50px -18px rgb(0 0 0 / .55); overflow: hidden; animation: toast-in .35s cubic-bezier(.22,.8,.24,1); }
.toast > div { flex: 1; min-width: 0; padding: 0; }
.toast p, .toast strong { color: #eaf5fb; margin: 0; font-size: .875rem; }
.toast > .i, .toast .toast-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgb(58 208 123 / .16); color: #5fe39a; margin: 0; }
.toast.warn > .i { background: rgb(240 189 87 / .16); color: #f5c76b; }
.toast.bad > .i { background: rgb(255 107 107 / .16); color: #ff8f8f; }
.toast.info > .i { background: rgb(1 160 220 / .2); color: #6fd2f6; }
.toast [data-dismiss] { flex: none; width: 32px; min-height: 32px; padding: 0; border-radius: 50%; border: 0; color: #9fbccb; background: transparent; }
.toast [data-dismiss]:hover { background: rgb(255 255 255 / .08); color: #fff; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #01a0dc, #7fdcff); transform-origin: left; animation: toast-bar var(--toast-ms, 7000ms) linear forwards; }
.toast.bad .toast-bar { display: none; }
.toast.is-leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@media (max-width: 760px) { .toast { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; } }

/* Customer overview: storage hero */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
.overview-side { display: grid; gap: 14px; align-content: start; }
.hero-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(150deg, #03a8e6 0%, #0577b0 100%); color: #e4f5fd; box-shadow: 0 24px 48px -28px rgb(1 100 150 / .7); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 36px), repeating-linear-gradient(0deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 36px); -webkit-mask: linear-gradient(200deg, #000, transparent 70%); mask: linear-gradient(200deg, #000, transparent 70%); }
.hero-card .kpi-mark { color: #fff; opacity: .1; right: -26px; bottom: -34px; }
.hero-card .kpi-mark .i { width: 170px; height: 170px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: #e4f5fd; }
.hero-label .i { width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: rgb(255 255 255 / .16); }
.hero-plan { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; background: rgb(255 255 255 / .16); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.hero-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: #fff; }
.hero-num b { font: 700 2.6rem/1 var(--display); letter-spacing: -.045em; }
.hero-num span { font-size: 1rem; color: #d3eefa; }
.hero-meter { height: 10px; border-radius: 100px; background: rgb(255 255 255 / .22); overflow: hidden; }
.hero-meter span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: #fff; box-shadow: 0 0 12px rgb(255 255 255 / .6); }
.hero-meter span.warn { background: #ffd27a; } .hero-meter span.bad { background: #ff9b9b; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: #d3eefa; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-empty { display: grid; gap: 10px; color: #fff; }
.hero-empty h2 { color: #fff; font-size: 1.35rem; }
.hero-empty p { color: #d3eefa; max-width: 46ch; }

/* Site list rows */
.site-list li { align-items: center; padding: 12px 20px; transition: background .2s; }
.site-list li:hover { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.site-list li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.site-list .num { font-weight: 600; color: var(--ink-2); }
.site-list .row-off b { color: var(--ink-3); }

/* Sites page cards */
.site-card { overflow: visible; transition: box-shadow .25s; }
.site-card:hover { box-shadow: var(--shadow-lift); }
.site-card-head { padding: 18px 18px 12px; align-items: center; }
.site-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; padding: 12px 18px 14px; }
.site-facts dd { font-size: .8125rem; }
.site-card-foot { border-top: 0; padding: 0 18px 16px; }
.site-card.is-off { background: var(--surface); }
.more { position: relative; }
.more > summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-3); cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover, .more[open] > summary { background: var(--surface-2); color: var(--ink); }
.more-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 210px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lift); }
.more-menu button, .more-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: .875rem; text-align: left; cursor: pointer; text-decoration: none; }
.more-menu button:hover, .more-menu a:hover { background: var(--surface-2); }
.more-menu .danger-item { color: var(--bad); }
.more-menu .danger-item:hover { background: var(--bad-soft); }

/* Plan cards (billing) */
.plan-card { position: relative; overflow: hidden; isolation: isolate; transition: box-shadow .25s; }
.plan-card:hover { box-shadow: var(--shadow-lift); }
.plan-card.is-featured { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.plan-card .kpi-mark .i { width: 120px; height: 120px; }
.ribbon { position: absolute; top: 18px; right: -40px; z-index: 2; width: 150px; padding: 6px 0; transform: rotate(45deg); background: #0270A1; color: #fff; text-align: center; font: 700 .66rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgb(1 100 150 / .7); }
.plan-card.is-featured .plan-top { padding-right: 56px; }
.current-plan { position: relative; overflow: hidden; isolation: isolate; }

/* Admin: setup checklist */
.setup-card { position: relative; overflow: hidden; isolation: isolate; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.setup-card .kpi-mark .i { width: 150px; height: 150px; }
.setup-progress { display: flex; align-items: center; gap: 12px; margin: 10px 20px 4px; }
.setup-progress .track { flex: 1; height: 8px; border-radius: 100px; background: color-mix(in srgb, var(--brand) 12%, var(--surface-2)); overflow: hidden; }
.setup-progress .track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #01a0dc, #38c3f2); }
.setup-progress b { font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.health .state { border-radius: 50%; }

/* Phones: compact two-up tiles, nothing stacks needlessly tall */
@media (max-width: 1024px) { .overview-grid { grid-template-columns: minmax(0, 1fr); } .overview-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .kpis, .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .label { font-size: .75rem; gap: 8px; }
  .kpi .label .i { width: 26px; height: 26px; padding: 6px; }
  .kpi .value { font-size: 1.35rem; }
  .kpi .sub { font-size: .75rem; }
  .kpi-mark .i { width: 84px; height: 84px; }
  .hero-card { padding: 18px; }
  .hero-num b { font-size: 2.1rem; }
  .page-head { align-items: flex-start; }
  .page-head .tools { width: 100%; }
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .kpis, .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* iPhone zooms into any field under 16px; keep fields at 16px on touch screens */
@media (pointer: coarse) { input, select, textarea, .input, .select { font-size: max(16px, 1em) !important; } }

/* Sign-in extras: Google button, "Last used" badge, robot trap */
.social-btn { position: relative; gap: 10px; min-height: 48px; background: var(--surface); border-color: var(--line-2); font-weight: 600; }
.social-btn:hover { background: var(--surface-2); }
.last-used { position: absolute; top: -9px; right: 14px; padding: 2px 8px; border-radius: 100px; background: var(--brand); color: #fff; font: 700 .625rem/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 10px -4px rgb(1 120 170 / .6); }
.or-line { position: relative; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .8125rem; margin: -2px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or-line .last-used { position: static; margin-left: -4px; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
/* Settings */
.card-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 4px; gap: 2px; width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.card-tabs a { border: 0; margin: 0; padding: 8px 16px; border-radius: 100px; }
.card-tabs a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
.tabs-select { display: none; }
@media (max-width: 640px) {
  .tabs-select + .card-tabs { display: none; }
  .tabs-select { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .tabs-select label { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
  .tabs-select .select { flex: 1; min-width: 0; border: 0; box-shadow: none; background-color: transparent; font-weight: 600; }
}
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.choice b { font-weight: 650; }
.choice small { display: block; margin-top: 4px; color: var(--ink-3); font-size: .8125rem; }

/* ------------------------------------------------------------------ CMS */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.editor-main, .editor-side { display: grid; gap: 18px; min-width: 0; }
.editor-side { align-self: start; }
.title-input { font: 700 1.35rem/1.3 var(--display); letter-spacing: -.02em; min-height: 52px; }
.editor-card { overflow: clip; }
@supports not (overflow: clip) { .editor-card { overflow: visible; } }
.editor-bar { position: sticky; top: 60px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.toolbar { display: flex; gap: 2px; flex-wrap: wrap; }
.tb { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; }
.tb:hover { background: var(--surface-2); color: var(--ink); }
.editor-panes { display: grid; min-height: 560px; }
.editor-panes[data-panes="write"] .md-preview { display: none; }
.editor-panes[data-panes="preview"] .md-input { display: none; }
.editor-panes[data-panes="split"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.editor-panes[data-panes="split"] .md-preview { border-left: 1px solid var(--line); max-height: 74vh; overflow: auto; }
.md-input { width: 100%; min-height: 560px; padding: 20px 22px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: 400 .95rem/1.75 var(--mono); resize: vertical; tab-size: 2; }
.md-input:focus { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent); }
.md-preview { padding: 22px 26px; }
.editor-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8125rem; background: var(--surface-2); }
.counter { display: block; text-align: right; font-size: .75rem; color: var(--ink-3); margin-top: 2px; }
.counter.over { color: var(--warn); font-weight: 600; }
.prose-admin { font-size: 1rem; line-height: 1.75; color: var(--ink-2); }
.prose-admin h2 { font-size: 1.45rem; margin: 28px 0 10px; color: var(--ink); }
.prose-admin h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--ink); }
.prose-admin p, .prose-admin ul, .prose-admin ol, .prose-admin blockquote, .prose-admin pre, .prose-admin .table-scroll { margin: 0 0 14px; }
.prose-admin img { max-width: 100%; border-radius: 10px; }
.prose-admin blockquote { padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); border: 0; }
.prose-admin blockquote.warn { background: var(--warn-soft); }
.prose-admin pre { padding: 14px; border-radius: 10px; background: #061924; color: #e6f2f8; overflow: auto; }
.prose-admin code { font-family: var(--mono); font-size: .88em; }
.prose-admin table { border-collapse: collapse; width: 100%; } .prose-admin th, .prose-admin td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose-admin .post-cta { padding: 16px; border-radius: 14px; background: #061924; color: #e6f2f8; }
.prose-admin .post-cta .btn { margin-top: 10px; }
.publish-card .card-head { display: flex; }
.schedule summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--brand-ink); }
.schedule[open] summary { margin-bottom: 10px; }
.schedule .row { margin-bottom: 8px; }
.slug-unit span { border-left: 0; border-right: 1px solid var(--line); order: -1; font-family: var(--mono); font-size: .75rem; }
.cover-pick { display: grid; gap: 8px; }
.cover-pick img { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.serp { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-family: Arial, sans-serif; }
.serp-url { font-size: .78rem; color: var(--ink-3); }
.serp-title { font-size: 1.12rem; line-height: 1.3; color: #1a0dab; }
:root[data-theme="dark"] .serp-title { color: #8ab4f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serp-title { color: #8ab4f8; } }
.serp-desc { font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.seo-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .8125rem; }
.seo-checks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.seo-checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 14px; height: 14px; border-radius: 50%; }
.seo-checks li.ok::before { background: var(--good); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--good) 30%, var(--surface)); }
.seo-checks li.todo::before { background: color-mix(in srgb, var(--warn) 70%, var(--surface)); }
.library { width: min(860px, calc(100vw - 32px)); }
.library-in { display: grid; gap: 14px; padding: 20px; }
.library-head { display: flex; justify-content: space-between; align-items: center; }
.drop { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--ink-2); cursor: pointer; background: var(--surface-2); }
.drop.is-over, .drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop .i { color: var(--brand-ink); flex: none; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 50vh; overflow: auto; }
.lib-item { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 1.3; }
.lib-item:hover, .lib-item:focus-visible { border-color: var(--brand); }
.lib-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media-item { overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { display: block; aspect-ratio: 1.5; background: var(--surface-2); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-info { display: grid; gap: 8px; padding: 12px; }
.media-info .inline { flex-wrap: nowrap; }
.upload-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.small-drop { padding: 10px 14px; }
.tax-form { display: grid; gap: 14px; padding-top: 14px; }
.tax-new { gap: 8px; } .tax-new .input { flex: 1; }
.author-form { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.author-form:last-child { border-bottom: 0; padding-bottom: 0; }
.author-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.author-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); padding: 4px; border: 1px solid var(--line); }
.author-top small { display: block; }
.code-area { font: .8125rem/1.5 var(--mono); }
.seo-page { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.seo-page:last-child { border-bottom: 0; }
.seo-page h3 { font-size: .9rem; }
.og-preview { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; margin-top: 18px; z-index: 10; }
.sticky-save .btn { box-shadow: var(--shadow-lift); }
.md-input-plain { font: .9rem/1.65 var(--mono); }
@media (max-width: 1180px) { .editor-layout { grid-template-columns: minmax(0, 1fr); } .editor-side { position: static; } }
@media (max-width: 760px) { .editor-panes[data-panes="split"] { grid-template-columns: minmax(0, 1fr); } .upload-row { grid-template-columns: minmax(0, 1fr); } .editor-bar { top: 56px; } .md-input { min-height: 420px; padding: 16px; } }
.form-grid > .span-2 { grid-column: 1 / -1; }
.llms-auto summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.llms-pre { margin: 12px 0; max-height: 320px; overflow: auto; padding: 14px 16px; border-radius: 10px; background: var(--surface-2, var(--bg)); border: 1px solid var(--line); font: 400 .78rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.pager-card { padding: 12px 18px; }
.library-search { margin: 0 0 12px; }
.library-more { display: flex; justify-content: center; margin-top: 12px; }
.library-more [hidden], .library-more .btn[hidden] { display: none; }
.library-empty { text-align: center; padding: 14px 0; }
.form-grid > .actions-row { justify-self: start; }
.tax-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.tax-edit > summary::-webkit-details-marker { display: none; }
.tax-edit > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.tax-edit > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tax-edit-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; color: var(--ink); }
.tax-edit[open] .tax-edit-btn { background: var(--surface-2, var(--bg)); }
.tax-edit > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
/* Shorter laptop screens: tighter admin menu so every item fits without scrolling */
@media (min-width: 1025px) and (max-height: 980px) {
  .side .nav a { padding-top: 6px; padding-bottom: 6px; }
  .side .nav-label { padding-top: 12px; padding-bottom: 5px; }
  .side .brand { padding-bottom: 10px; }
}
.inv-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.resend { position: relative; }
.resend > summary { list-style: none; }
.resend > summary::-webkit-details-marker { display: none; }
.resend-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; width: min(320px, 86vw); display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lift); text-align: left; white-space: normal; }
.resend-panel label { font-weight: 600; font-size: .875rem; color: var(--ink); }
.resend-panel .btn { justify-self: start; }
.mail-state { display: grid; gap: 2px; justify-items: start; }
.mail-state { width: 100%; min-width: 0; }
.mail-state small { color: var(--ink-3); font-size: .75rem; max-width: min(220px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* never wider than its column (it spilled under the buttons) */
@media (max-width: 760px) { .resend-panel { right: auto; left: 0; } .inv-actions { justify-content: flex-start; flex-wrap: wrap; } }
.steps-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.steps-list b { color: var(--ink); }
.steps-list code, .help code { font-size: .78rem; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); overflow-wrap: anywhere; }
.wrap-any { overflow-wrap: anywhere; }
.card-head .badge { flex: none; }
.plan-note { display: grid; gap: 8px; }
.info-text { color: var(--brand-ink, var(--ink)) !important; display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.refund-row { display: flex; align-items: center; gap: 16px; }
.refund-row > div { flex: 1; min-width: 0; }
.refund-row h2 { font-size: 1rem; }
.refund-row p { margin-top: 2px; font-size: .9rem; }
.refund-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 640px) { .refund-row { flex-wrap: wrap; } .refund-row .btn { width: 100%; } }
.notice-box { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft, #fff4d6); color: var(--ink); font-size: .875rem; }
.notice-box ul { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 4px; }
dialog .facts.compact { margin: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(140px, 260px) 1fr auto; gap: 12px; align-items: center; font-size: .875rem; }
.bars-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bars-track span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bars-n { min-width: 70px; text-align: right; }
@media (max-width: 640px) { .bars li { grid-template-columns: 1fr auto; } .bars-track { grid-column: 1 / -1; grid-row: 2; } }
.feedback-list { list-style: none; margin: 0; padding: 0; }
.feedback-list li { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.feedback-list li.is-new { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.fb-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-text { white-space: pre-line; color: var(--ink); }

/* Admin → Monitor */
.mon-live { gap: 12px; font-size: 0.8125rem; }
.mon-live time { font-variant-numeric: tabular-nums; }
.mon-tiles .label .badge { margin-left: auto; }
.mon-tiles .value { overflow-wrap: anywhere; }
.mon-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .mon-charts { grid-template-columns: minmax(0, 1fr); } }
.bars-chart .bar.partial { fill: color-mix(in srgb, var(--s1) 45%, var(--surface)); }
.mon-foot { font-size: 0.8125rem; }

.mon-online-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; }
.mon-online-n { display: flex; align-items: center; gap: 10px; font-size: 2.25rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); animation: mon-pulse 2s infinite; }
@keyframes mon-pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .mon-dot { animation: none; } }
.mon-online-areas { margin: 18px 0 0; display: grid; gap: 8px; }
.mon-online-areas div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.mon-online-areas dt { color: var(--ink-3); }
.mon-online-areas dd { margin: 0; font-weight: 600; }
.mon-online-h { margin: 0 0 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.mon-online-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.mon-online-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.mon-online-list li:last-child { border-bottom: 0; }
.mon-online-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.mon-online-who a { font-weight: 600; }
.mon-online-path { color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; overflow-wrap: anywhere; min-width: 0; }
.mon-online-list .mon-online-who .mon-online-path { flex-basis: 100%; }
.mon-online-empty { margin: 0; font-size: 0.875rem; }
@media (max-width: 900px) { .mon-online-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.mon-tiles .label { flex-wrap: wrap; row-gap: 6px; }
.mon-tiles .label .badge { flex: none; }
@media (max-width: 600px) { .mon-tiles .label .badge { margin-left: 0; flex-basis: auto; } .mon-tiles .label { align-items: flex-start; } }
[data-mon-overall] > span[data-mon-icon] { display: inline-flex; flex: none; }

/* ------------------------------------------------------------------ Sidebar: badges, collapse, tooltips */
.brand-icon { display: none; width: 32px; height: 32px; border-radius: 8px; }
.brand-full { display: contents; }
.nav a .nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font: 700 0.6875rem/1 var(--body); font-variant-numeric: tabular-nums; background: #4fc6f2; color: #04212e; }
.nav-badge.action { background: #f0bd57; color: #2b1d00; }
.icon-btn.side-btn { display: none; }
.side-tip { position: fixed; z-index: 60; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: #0b1b24; color: #fff;
  font: 500 0.8125rem/1.2 var(--body); white-space: nowrap; box-shadow: 0 8px 24px -8px rgb(0 0 0 / .45); transform: translateY(-50%); }

@media (min-width: 1025px) {
  .icon-btn.side-btn { display: inline-grid; }
  .app, .side, .side .nav a, .side .brand { transition: none; }
  [data-side="collapsed"] .app { grid-template-columns: 76px minmax(0, 1fr); background: linear-gradient(to right, var(--side) 76px, transparent 76px); }
  [data-side="collapsed"] .side { padding-left: 12px; padding-right: 12px; overflow-x: hidden; }
  [data-side="collapsed"] .side .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  [data-side="collapsed"] .brand-full { display: none; }
  [data-side="collapsed"] .brand-icon { display: block; }
  [data-side="collapsed"] .side .nav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-side="collapsed"] .nav-label { font-size: 0; padding: 10px 0 8px; margin: 0 10px; border-top: 1px solid var(--side-2); }
  [data-side="collapsed"] .nav-label:first-child { border-top: 0; }
  [data-side="collapsed"] .nav a { position: relative; justify-content: center; padding: 8px 0; }
  [data-side="collapsed"] .nav-badge { position: absolute; top: 2px; left: calc(50% + 5px); right: auto; min-width: 16px; height: 16px; padding: 0 4px; font-size: 0.625rem;
    box-shadow: 0 0 0 2px var(--side); }
  [data-side="collapsed"] .side-foot { padding-left: 0; padding-right: 0; justify-items: center; }
  [data-side="collapsed"] .side-status, [data-side="collapsed"] .side-help { justify-content: center; }
  [data-side="collapsed"] .side-btn { color: var(--brand-ink); }
}
@media (max-width: 1024px) { .side-tip { display: none; } }

/* Profile & security: sign-in methods */
#sign-in .health li { align-items: center; flex-wrap: wrap; }
#sign-in .health li > div { flex: 1; min-width: 180px; }
#sign-in .method-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
#sign-in .health li > .badge { margin-left: auto; }
.small-note { font-size: 0.8125rem; }

/* KPI cards that open a screen */
a.kpi-link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.kpi-link:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--brand) 55%, transparent); transform: translateY(-1px); }
a.kpi-link:hover .label { color: var(--brand-ink); }
a.kpi-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.kpi-link { transition: none; } a.kpi-link:hover { transform: none; } }

/* Admin → Customers: how they signed up */
.signup-method { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink-2); }
.signup-method .i { color: var(--ink-3); }

/* Admin → Revenue */
.revenue-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.date-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-range .input { width: auto; min-width: 150px; }
.revenue-other { font-size: 0.8125rem; margin: -6px 0 0; }
.leaderboard .rank { width: 44px; color: var(--ink-3); }
.leaderboard .share-bar { display: block; height: 6px; margin-top: 6px; margin-left: auto; max-width: 140px; border-radius: 99px; background: var(--neutral-soft); overflow: hidden; }
.leaderboard .storage-cell { min-width: 220px; }
.leaderboard .storage-cell .meter small { display: none; }
@media (max-width: 760px) { .leaderboard .rank { display: none; } .date-range .input { min-width: 0; flex: 1 1 130px; } }
@media (max-width: 480px) { .date-range { display: grid; grid-template-columns: 1fr auto 1fr; } .date-range .btn { grid-column: 1 / -1; justify-content: center; } }

/* Connection page: a long site address wraps inside the card instead of breaking it */
.auth-card h1, .connect-lede, .connect-lede b, .facts dd { overflow-wrap: anywhere; min-width: 0; }
.facts div { min-width: 0; }

/* Connection key: hidden until hovered, tapped or focused (so it doesn't show on a shared screen); Copy always works */
.key-box.is-secret { position: relative; }
.key-box.is-secret code { filter: blur(6px); user-select: none; transition: filter .15s ease; cursor: default; outline: none; }
.key-box.is-secret:hover code, .key-box.is-secret code:focus, .key-box.is-secret:focus-within code { filter: none; user-select: all; }
.key-box.is-secret code:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 6px; }
.key-hint { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); pointer-events: none; transition: opacity .15s ease; }
.key-box.is-secret:hover .key-hint, .key-box.is-secret:focus-within .key-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .key-box.is-secret code, .key-hint { transition: none; } }
@media (forced-colors: active) { .key-box.is-secret code { filter: none; } .key-hint { display: none; } }
/* The site name or address stays on one line in the intro (full text on hover and in the details below) */
.connect-lede .connect-site { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; overflow-wrap: normal; }
.facts dd:not(.mono-small) { overflow-wrap: break-word; }
@media (max-width: 520px) {
  .auth-card .facts div { display: block; }
  .auth-card .facts dd { text-align: left; margin-top: 2px; }
}

/* Export menu (Revenue, Customers, Invoices) */
.export-menu > summary.btn { width: auto; height: auto; border-radius: 999px; display: inline-flex; gap: 8px; color: var(--ink); }
.export-menu > summary.btn:hover, .export-menu[open] > summary.btn { background: var(--surface-2); }
.export-menu .more-menu { top: calc(100% + 6px); bottom: auto; min-width: 180px; }
@media (max-width: 720px) { .export-menu .more-menu { left: 0; right: auto; } }

/* File inputs: the picker button matches our buttons */
input.input[type="file"] { padding: 6px; cursor: pointer; }
input.input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
input.input[type="file"]::file-selector-button:hover { background: var(--surface); border-color: var(--line-2); }

/* Security → Delete account */
.danger-card { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.danger-card .card-head h2 { color: var(--bad); }
.danger-card .del-list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: .875rem; }
.danger-card .del-list li::marker { color: var(--ink-3); }

/* ---------- Support ---------- */
.unit span:first-child { border-left: 0; border-right: 1px solid var(--line); }
.empty-cta { display: flex; justify-content: center; margin: -6px 0 8px; }
.support-promise { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 16px; }
.support-promise p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.support-promise-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
tr.is-unread .lead a { font-weight: 700; }
.prio { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--warn); }
.prio svg { fill: currentColor; }
.ticket-head h1 { overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ticket-meta .badge { margin-left: 2px; }
.ticket-card .card-body { padding: 8px 22px; }
.ticket-layout { align-items: start; }
.ticket-main { display: grid; gap: 16px; min-width: 0; }
.ticket-side { display: grid; gap: 16px; min-width: 0; }
.reply-card { margin-top: 16px; }
.ticket-main .reply-card { margin-top: 0; }

/* Conversation */
.thread { list-style: none; margin: 0; padding: 0; }
.thread > li + li { border-top: 1px solid var(--line); }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 0; scroll-margin-top: 80px; }
.msg-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--neutral-soft); color: var(--ink-2); font-weight: 700; font-size: .875rem; }
.msg.is-team .msg-avatar { background: var(--brand-soft); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.msg-head b { color: var(--ink); }
.msg-head time { margin-left: auto; color: var(--ink-3); font-size: .8125rem; }
.msg-text { color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.msg-text a { word-break: break-all; }
.msg.is-internal { margin: 6px -14px; padding: 16px 14px; border-radius: 12px; background: var(--warn-soft); }
.thread > li.is-internal + li, .thread > li + li.is-internal { border-top: 0; }
.msg-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.msg-thumb { display: block; width: 132px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.msg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-thumb:hover { border-color: var(--brand); }
.msg-file { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: var(--surface); }
.msg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { color: var(--ink-3); white-space: nowrap; }
.msg-file:hover { border-color: var(--brand); }
.thread-event { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0; color: var(--ink-3); font-size: .8125rem; text-align: center; }
.thread-event time { color: var(--ink-3); }

/* Reply box */
.reply-tabs { margin-bottom: 4px; }
.reply-tabs span { display: inline-flex; align-items: center; gap: 6px; }
.reply-card.is-note { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.reply-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.reply-then { width: auto; min-width: 210px; }
.reply-card.is-note .reply-then { display: none; }

/* Side panels */
.inline-select { display: grid; gap: 6px; }
.inline-select label { font-weight: 600; font-size: .875rem; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-name { margin: 0 0 12px; overflow-wrap: anywhere; }
.side-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.side-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; align-items: start; }
.side-list li svg { margin-top: 3px; color: var(--ink-3); }
.side-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list small { grid-column: 2; }

/* Saved replies */
.saved-list { list-style: none; margin: 0; padding: 0; }
.saved-list > li { border-top: 1px solid var(--line); }
.saved-list details { padding: 14px 20px; }
.saved-list summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.saved-list summary::-webkit-details-marker { display: none; }
.saved-list details[open] summary { margin-bottom: 12px; }
.saved-list .form { padding: 0; margin-bottom: 10px; }
.inline-actions { display: flex; gap: 8px; }

@media (max-width: 1100px) { .ticket-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .msg { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .msg-avatar { width: 30px; height: 30px; }
  .msg-head time { margin-left: 0; width: 100%; }
  .ticket-card .card-body { padding: 4px 16px; }
  .reply-foot .btn, .reply-then { width: 100%; }
  .msg-thumb { width: 104px; height: 78px; }
}
.help.error-text { color: var(--bad); }

/* ---------- Help clips ("Show me") ---------- */
.help-tip { position: relative; display: inline-flex; vertical-align: middle; }
.help-tip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand-ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.help-tip-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.help-tip-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.help-tip-pop { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 10px); transform: translateY(4px); width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 10px; background: var(--side); color: #fff; font-size: .8125rem; font-weight: 400; line-height: 1.45; text-align: left; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; }
.help-tip-pop b { display: block; margin-top: 3px; color: #7dd3f5; font-weight: 600; }
.help-tip-pop::after { content: ""; position: absolute; top: 100%; right: 22px; border: 6px solid transparent; border-top-color: var(--side); }
.help-tip:hover .help-tip-pop, .help-tip-btn:focus-visible + .help-tip-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.card-head .help-tip, .page-head .help-tip, .section-title .help-tip { margin-left: 10px; }
@media (hover: none) { .help-tip-pop { display: none; } }

.clip-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.clip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; }
.clip-head h2 { margin: 0; font-size: 1.0625rem; }
.clip-video { position: relative; margin: 0 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 8 / 5; }
.clip-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
/* Skeleton while the clip loads: a soft shimmer behind the (still transparent) video, until the first frame shows. */
.clip-video video { transition: opacity .25s ease; }
.clip-video.is-skeleton { background: color-mix(in srgb, var(--line) 70%, var(--surface-2)); }
.clip-video.is-skeleton video { opacity: 0; }
.clip-video.is-skeleton::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface) 85%, transparent) 50%, transparent 80%) 0 0 / 220% 100%; animation: clip-shimmer 1.3s ease-in-out infinite; }
@keyframes clip-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .clip-video.is-skeleton::after { animation: none; } }
.clip-steps { margin: 16px 22px 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: .9375rem; }
.clip-steps li::marker { color: var(--brand-ink); font-weight: 700; }
.clip-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 18px 22px 20px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .clip-video, .clip-steps { margin-left: 16px; margin-right: 16px; }
  .clip-head { padding-left: 16px; }
  .clip-foot { padding: 16px; }
  .clip-foot .btn { flex: 1; justify-content: center; }
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }
.section-head { margin-bottom: 14px; }
.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.tools-form { display: flex; align-items: center; gap: 8px; }
.side-help-card .steps-list + .help { margin-top: 12px; }
/* Not enough room above (sticky top bar, top of the page): the tooltip opens below the button */
.help-tip.is-below .help-tip-pop { bottom: auto; top: calc(100% + 10px); transform: translateY(-4px); }
.help-tip.is-below:hover .help-tip-pop, .help-tip.is-below .help-tip-btn:focus-visible + .help-tip-pop { transform: translateY(0); }
.help-tip.is-below .help-tip-pop::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--side); }
/* Sign-in: a Google-only account tried a password, so point at the Google button */
.social-btn.is-suggested { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }

/* Saved replies: placeholders */
.side-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.placeholder-list { list-style: none; margin: 0; padding: 4px 20px 18px; display: grid; gap: 8px; }
.placeholder-list li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 10px; align-items: center; font-size: .8125rem; color: var(--ink-3); }
.ph-chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 3px 8px; cursor: pointer; font: inherit; color: var(--ink); }
.ph-chip:hover { border-color: var(--brand); }
.ph-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ph-chip code { font-size: .78rem; background: none; padding: 0; }

/* Suggested answers (support request) */
.suggest { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 14px 16px; display: grid; gap: 10px; }
.suggest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.suggest-head h3 { margin: 0; font-size: .9375rem; display: inline-flex; align-items: center; gap: 7px; }
.suggest-head h3 .i { color: var(--brand-ink); }
.suggest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.suggest-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.suggest-main { min-width: 0; flex: 1; display: grid; gap: 4px; }
.suggest-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suggest-title b { font-weight: 620; font-size: .9375rem; }
.suggest-preview { margin: 0; color: var(--ink-3); font-size: .875rem; overflow-wrap: anywhere; }
.suggest-full summary { cursor: pointer; color: var(--brand-ink); font-size: .8125rem; font-weight: 560; width: fit-content; }
.suggest-text { margin-top: 8px; white-space: pre-wrap; font-size: .875rem; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.suggest-item > .btn { flex: none; }
@media (max-width: 560px) { .suggest-item { flex-direction: column; } .suggest-item > .btn { width: 100%; justify-content: center; } }
.saved-list > li { display: flex; gap: 10px; align-items: flex-start; }
.saved-list > li > details { flex: 1; min-width: 0; }
.saved-delete { flex: none; padding: 12px 16px 0 0; }
