/* Retailstub v2 — design system */
:root {
  /* Black · purple · white. Light: white cards on Apple grey; dark: true black with graphite cards. */
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #f5f5f7; --surface-3: #e8e8ed; --border: rgba(0, 0, 0, .08); --border-strong: rgba(0, 0, 0, .16);
  --text: #1d1d1f; --text-2: #424245; --muted: #86868b;
  --primary: #7c3aed; --primary-hover: #6d28d9; --primary-soft: rgba(124, 58, 237, .09); --on-primary: #ffffff;
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #c084fc 100%);
  --ink-grad: linear-gradient(145deg, #000000 0%, #1d1033 55%, #4c1d95 100%);
  --success: #1f8f4e; --success-soft: rgba(31, 143, 78, .1); --warning: #b25e09; --warning-soft: rgba(255, 159, 10, .14); --danger: #d70015; --danger-soft: rgba(255, 59, 48, .1);
  --info: #6d28d9; --info-soft: rgba(124, 58, 237, .09);
  --chart: #7c3aed; --chart-2: #ddd0fb;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .18);
  --glass: rgba(255, 255, 255, .72);
  --sidebar: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #111113; --surface-2: #1c1c1e; --surface-3: #2c2c2e; --border: rgba(255, 255, 255, .09); --border-strong: rgba(255, 255, 255, .18);
    --text: #f5f5f7; --text-2: #c7c7cc; --muted: #8e8e93;
    --primary: #a78bfa; --primary-hover: #c4b5fd; --primary-soft: rgba(167, 139, 250, .14); --on-primary: #0b0614;
    --success: #30d158; --success-soft: rgba(48, 209, 88, .14); --warning: #ffb340; --warning-soft: rgba(255, 159, 10, .16); --danger: #ff6961; --danger-soft: rgba(255, 69, 58, .16);
    --info: #c4b5fd; --info-soft: rgba(167, 139, 250, .14);
    --chart: #a78bfa; --chart-2: #3b2a63;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .7);
    --glass: rgba(17, 17, 19, .72);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* buttons and flex boxes must not override the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.shell > div { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 15px; color: var(--text); }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #8b5cf6); display: grid; place-items: center; color: #fff; font-size: 14px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.on { background: var(--primary-soft); color: var(--primary); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 6px; font-weight: 600; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 6px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .who a { font-size: 12px; color: var(--muted); }
.topbar-mobile { display: none; }
main { min-width: 0; padding: 28px 36px 64px; max-width: 1280px; width: 100%; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; } .kpi .value { font-size: 20px; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { display: flex; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
  .topbar-mobile { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
  main { padding: 20px 16px 48px; }
}

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- cards & grid ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; font-weight: 650; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 20px; }
.grid-kpi { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.grid-even { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
section + section { margin-top: 20px; }

.kpi { padding: 18px 20px; }
.kpi .label { color: var(--text-2); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .hint { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.kpi .hint.good { color: var(--success); }
.kpi .hint.bad { color: var(--danger); }
.kpi.accent { background: linear-gradient(160deg, var(--primary), #7c3aed); border: 0; color: #fff; }
.kpi.accent .label, .kpi.accent .hint { color: rgba(255,255,255,.82); }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid transparent; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert .grow { flex: 1; }
.alert.ok { background: var(--success-soft); color: var(--success); }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.warn { background: var(--warning-soft); color: var(--warning); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .9; }
.pill.active { color: var(--success); background: var(--success-soft); border-color: transparent; }
.pill.pending { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.pill.paused { color: var(--info); background: var(--info-soft); border-color: transparent; }
.pill.frozen, .pill.rejected, .pill.failed { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.pill.plain::before { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; }
td .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
td.name a { font-weight: 600; color: var(--text); }
td.name a:hover { color: var(--primary); }
tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--text-2); }
.empty .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .icon svg { width: 22px; height: 22px; }
.empty h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.empty p { margin: 0 auto 16px; max-width: 420px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
form.inline { display: inline; }
button.link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- forms ---------- */
.form-section { padding: 22px 24px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.form-section:last-of-type { border-bottom: 0; }
.form-section > .intro h3 { font-size: 14px; font-weight: 650; }
.form-section > .intro p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .form-section { grid-template-columns: 1fr; gap: 10px; } }
.fields { display: grid; gap: 16px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .fields.two { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.field .help { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.field .error { color: var(--danger); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=date], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
textarea { height: auto; min-height: 140px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
input[disabled] { background: var(--surface-2); color: var(--muted); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-prefix input, .field .input-prefix input[name] { padding-left: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 99px; font-weight: 500; color: var(--text-2); background: var(--surface); user-select: none; }
.chip input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.switch input { width: 36px; height: 20px; appearance: none; background: var(--border-strong); border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 99px; background: #fff; top: 2px; left: 2px; transition: left .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 18px; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: var(--surface-2); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.summary { position: sticky; top: 24px; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dt { color: var(--muted); font-size: 12.5px; }
.summary dd { margin: 2px 0 0; font-weight: 650; font-size: 15px; }
.summary .big { font-size: 22px; }

/* ---------- detail lists ---------- */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; padding: 20px; }
.props dt { color: var(--muted); font-size: 12.5px; }
.props dd { margin: 3px 0 0; font-weight: 600; word-break: break-word; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .count { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ---------- chart ---------- */
.chart { padding: 8px 20px 16px; }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .grid line { stroke: var(--border); }
.chart .bar { fill: var(--chart); }
.chart .bar:hover { fill: var(--primary-hover); }
.chart .bar.light { fill: var(--chart-2); }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.spark { width: 96px; height: 28px; display: block; }
.spark path { fill: none; stroke: var(--chart); stroke-width: 1.6; }
.spark .area { fill: var(--chart-2); stroke: none; opacity: .6; }

/* ---------- misc ---------- */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--primary); margin-top: 6px; flex: none; }
.list .dot.warn { background: var(--warning); } .list .dot.bad { background: var(--danger); } .list .dot.ok { background: var(--success); }
.list .grow { flex: 1; min-width: 0; }
.list .meta { color: var(--muted); font-size: 12.5px; }
.copy { display: inline-flex; align-items: center; gap: 8px; }
.ref { font: 600 18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 8px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
details.more summary { cursor: pointer; color: var(--primary); font-weight: 600; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a { padding: 6px 12px; border-radius: 99px; color: var(--text-2); font-weight: 600; font-size: 13px; border: 1px solid var(--border); background: var(--surface); }
.filters a.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.filters a:hover { text-decoration: none; border-color: var(--border-strong); }
.bar-meter { height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar-meter span { display: block; height: 100%; background: var(--chart); }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 400px; padding: 28px; }
.auth .brand { justify-content: center; padding-bottom: 8px; }
.auth h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.auth p.lead { text-align: center; color: var(--text-2); margin: 0 0 20px; }

/* confirm dialog */
dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(10, 10, 20, .45); }
dialog .body { padding: 22px 22px 8px; }
dialog h3 { font-size: 16px; margin-bottom: 6px; }
dialog p { margin: 0; color: var(--text-2); }
dialog .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }

/* ---------- public site ---------- */
body.site { background: var(--surface); }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-nav .site-wrap { height: 64px; }
.site-links { display: flex; gap: 18px; align-items: center; }
.site-links a:not(.btn) { color: var(--text-2); font-weight: 500; }
.site-main { min-height: 60vh; }
.site-hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 20% -10%, var(--primary-soft), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-grid h1, .site-section h2, .help h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0; }
.site-section h2 { font-size: clamp(24px, 3vw, 34px); }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.6; }
.hero-img { width: 100%; height: auto; border-radius: 16px; }
.site-band { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--primary); margin: 0 0 12px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: center; }
.logo-row img { height: 30px; width: auto; filter: grayscale(1); opacity: .75; }
.site-section { padding: 64px 0; }
.site-section.alt { background: var(--surface-2); }
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.feature-grid h3 { font-size: 16px; margin-bottom: 6px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.blog-card:hover { text-decoration: none; border-color: var(--primary); }
.site-cta { padding: 56px 0; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; text-align: center; }
.site-cta h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 10px; }
.site-cta p { opacity: .9; margin: 0 0 22px; }
.site-cta .btn.primary { background: #fff; color: #3730a3; border-color: #fff; }
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--surface-2); }
.site-footer p { line-height: 1.9; }
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 48px; font-size: 16px; line-height: 1.7; }
.prose h1 { font-size: 34px; margin-bottom: 8px; } .prose h2 { font-size: 22px; margin: 28px 0 8px; } .prose h3 { font-size: 17px; margin: 20px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.site-wrap.help { padding-top: 40px; padding-bottom: 56px; }
.help h2 { margin: 32px 0 8px; font-size: 20px; }
.help-search { display: flex; gap: 8px; max-width: 520px; margin: 18px 0 8px; }
.help-list { margin: 8px 0 0; padding-left: 18px; line-height: 2; }
.help-article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.help-article .prose { padding-top: 8px; }
@media (max-width: 900px) { .hero-grid, .help-article { grid-template-columns: 1fr; } .site-links a:not(.btn) { display: none; } }
main.site-main { max-width: none; padding: 0; }
@media (prefers-color-scheme: dark) { .logo-row img { filter: grayscale(1); opacity: .9; background: #f4f4f6; padding: 6px 10px; border-radius: 8px; height: 40px; } }
th a.sort { color: inherit; text-decoration: none; white-space: nowrap; }
th a.sort:hover { color: var(--text); }
th a.sort.on { color: var(--primary); }
th a.sort .arrow { display: inline-block; width: 1.1em; margin-left: 3px; text-align: center; font-size: .85em; opacity: .4; }
th a.sort:hover .arrow, th a.sort.on .arrow { opacity: 1; }
/* ---------- home page ---------- */
.site-wrap.narrow { max-width: 860px; }
.narrow-p { max-width: 720px; }
.hero-facts { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.hero-facts li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.hero-facts svg { color: var(--success); flex: none; }
.report-mock { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(30, 27, 75, .12); padding: 16px 18px; min-width: 0; }
.report-mock figcaption { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.report-mock table { width: 100%; border-collapse: collapse; font-size: 14px; }
.report-mock th { font-size: 12px; text-align: left; color: var(--text-2); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.report-mock td { padding: 9px 4px; border-bottom: 1px solid var(--border); }
.report-mock tr:last-child td { border-bottom: 0; }
.report-mock .r { text-align: right; }
.report-mock .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; display: block; }
.report-mock .sub { display: block; font-size: 12px; color: var(--text-2); }
.report-mock tr.off td:not(:last-child) { opacity: .45; text-decoration: line-through; }
.pain-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 24px; }
.pain { border-left: 3px solid var(--primary); padding: 4px 0 4px 16px; }
.pain .q { font-weight: 700; margin: 0 0 6px; font-size: 16px; }
.pain .a { margin: 0; color: var(--text-2); line-height: 1.6; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.steps h3 { font-size: 16px; margin: 12px 0 6px; }
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts th, table.facts td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: 0; }
table.facts th { width: 34%; font-weight: 600; color: var(--text-2); font-size: 14px; text-transform: none; letter-spacing: 0; background: none; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 14px 0; list-style-position: outside; }
.faq details p { margin: 0 0 16px; color: var(--text-2); line-height: 1.7; }
@media (max-width: 600px) { .hero-facts { grid-template-columns: 1fr; } table.facts th { width: 40%; } table.facts th, table.facts td { padding: 10px 12px; } }
.bid-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; white-space: nowrap; }
.bid-form label { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-size: 12.5px; }
.bid-form input { width: 64px; height: 28px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.bid-form .sub { width: 100%; margin: 0; }
.bid-form input.cap { width: 72px; }
/* ---------- premium catalog ---------- */
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.brand-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.brand-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.brand-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.brand-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 4px; }
.brand-facts dt { font-size: 11.5px; color: var(--muted); }
.brand-facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
[data-premium-form] tr.off td:not(:first-child) { opacity: .45; }
.brand-card.mine { border-color: color-mix(in srgb, var(--info) 55%, var(--border)); }

/* =====================================================================
   Theme layer — Apple-style, black · purple · white (overrides the base above)
   ===================================================================== */
::selection { background: color-mix(in srgb, var(--primary) 28%, transparent); }
h1, h2, h3 { letter-spacing: -0.022em; }
code { background: var(--surface-2); border: 0; border-radius: 7px; }

/* shell: frosted sidebar */
.sidebar { background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-right: 1px solid var(--border); padding: 22px 14px 16px; }
.brand { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; padding: 2px 10px 22px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink-grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 14px rgba(124,58,237,.35); font-weight: 700; }
.nav { gap: 1px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.nav a svg { width: 17px; height: 17px; opacity: .8; }
.nav a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.on svg { opacity: 1; }
.nav .count { background: var(--primary); color: var(--on-primary); }
.sidebar .btn.primary { border-radius: 12px; height: 38px; }
.sidebar-foot { border-top: 1px solid var(--border); }
.avatar { background: var(--ink-grad); color: #fff; }
main { padding: 40px 48px 80px; max-width: 1440px; margin: 0 auto; }
.topbar-mobile { background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
@media (max-width: 900px) { main { padding: 22px 16px 56px; } }

/* page header: big, tight titles */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.page-head p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.crumbs, .crumbs a { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .page-head h1 { font-size: 26px; } }

/* cards */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.card-pad { padding: 22px; }
section + section { margin-top: 24px; }
.grid-kpi { gap: 16px; }
.kpi { padding: 20px 22px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; margin-top: 8px; }
.kpi.accent { background: var(--ink-grad); color: #fff; border: 0; box-shadow: 0 16px 40px rgba(76, 29, 149, .28); }
.kpi.accent .label, .kpi.accent .hint, .kpi.accent a { color: rgba(255, 255, 255, .75); }

/* buttons: pills */
.btn { height: 36px; padding: 0 16px; border-radius: 980px; border: 0; background: var(--surface-3); color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; transition: background .15s, transform .08s, box-shadow .15s; }
.btn:hover { background: color-mix(in srgb, var(--surface-3) 80%, var(--text) 8%); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 18%, transparent); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
button.link { color: var(--primary); }

/* forms */
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=date], input:not([type]), select, textarea {
  height: 40px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); padding: 0 13px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { padding: 11px 13px; border-radius: 13px; }
.form-section { padding: 26px 28px; }
.form-section > .intro h3 { font-size: 15px; letter-spacing: -0.015em; }
.form-foot { background: transparent; border-top: 1px solid var(--border); padding: 18px 28px; }
.chip span { height: 34px; padding: 0 14px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500; transition: all .15s; }
.chip input:checked + span { background: var(--text); color: var(--surface); border-color: var(--text); }
.switch input:checked { background: var(--primary); }

/* tables: calm, airy */
th, td { padding: 13px 16px; border-bottom: 1px solid var(--border); }
th { background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: color-mix(in srgb, var(--text) 2.5%, transparent); }
tfoot td { background: transparent; }

/* segmented control for filters */
.filters { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 11px; flex-wrap: wrap; }
.filters a { border: 0; background: transparent; color: var(--text-2); padding: 6px 13px; border-radius: 8px; font-size: 13px; font-weight: 550; }
.filters a:hover { color: var(--text); }
.filters a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { .filters a.on { background: #3a3a3c; } }

/* tabs */
.tabs { gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs a { padding: 12px 0; font-weight: 550; color: var(--muted); }
.tabs a.on { color: var(--text); border-bottom-color: var(--primary); }

/* pills, alerts, misc */
.pill { border: 0; padding: 3px 10px 3px 9px; font-weight: 600; background: var(--surface-3); }
.alert { border: 0; border-radius: 14px; padding: 14px 18px; }
.alert.info { background: var(--primary-soft); color: var(--text); }
.alert.info svg, .alert.info a { color: var(--primary); }
.empty .icon { background: var(--primary-soft); color: var(--primary); border-radius: 14px; }
.bar-meter { background: var(--surface-3); border: 0; height: 5px; }
.bar-meter span { background: var(--accent-grad); }
.chart .bar { fill: var(--chart); }
dialog { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); }
.auth { background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%), var(--bg); }
.auth .card { border-radius: 24px; padding: 36px 32px; box-shadow: var(--shadow-lg); }
.auth h1 { font-size: 26px; letter-spacing: -0.03em; }
.brand-card { border-radius: var(--radius); }
.brand-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 14px 36px color-mix(in srgb, var(--primary) 16%, transparent); }
.bid-form input { border-radius: 9px; height: 30px; }

/* ---------- public site: black hero, white sections, purple accents ---------- */
body.site { background: var(--surface); }
.site-nav { background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.site-nav .site-wrap { height: 56px; }
.site-links a:not(.btn) { font-size: 13.5px; color: var(--text-2); }
.site-hero { background: radial-gradient(900px 480px at 75% 0%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(168, 85, 247, .18), transparent 70%), #000; color: #f5f5f7; padding: 96px 0 88px; }
.site-hero .lead { color: #a1a1a6; }
.site-hero .pill.plain { background: rgba(255,255,255,.08); color: #d6ccff; }
.site-hero .hero-facts li { color: #f5f5f7; }
.site-hero .hero-facts svg { color: #a78bfa; }
.site-hero .btn:not(.primary) { background: rgba(255,255,255,.1); color: #fff; }
.site-hero .btn.primary { background: #fff; color: #000; box-shadow: none; }
.site-hero .btn.primary:hover { background: #e8e8ed; }
.hero-grid h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.hero-grid h1, .site-section h2 { background: none; }
.site-hero h1 { background: linear-gradient(180deg, #ffffff 30%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.report-mock { background: rgba(28, 28, 30, .72); border: 1px solid rgba(255,255,255,.1); color: #f5f5f7; box-shadow: 0 30px 80px rgba(76, 29, 149, .45); backdrop-filter: blur(20px); border-radius: 22px; }
.report-mock th { color: #8e8e93; border-color: rgba(255,255,255,.08); }
.report-mock td { border-color: rgba(255,255,255,.08); }
.report-mock .sub, .report-mock .muted { color: #8e8e93; }
.site-band { background: var(--surface); border: 0; padding: 36px 0; }
.eyebrow { color: var(--primary); letter-spacing: .02em; text-transform: none; font-size: 15px; font-weight: 600; }
.site-section { padding: 96px 0; }
.site-section.alt { background: var(--bg); }
.site-section h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.feature-grid { gap: 20px; margin-top: 36px; }
.feature-grid .card { border: 0; background: var(--surface); box-shadow: var(--shadow); }
.site-section:not(.alt) .feature-grid .card { background: var(--bg); box-shadow: none; }
.feature-grid h3 { font-size: 19px; letter-spacing: -0.02em; }
.pain { border-left: 0; padding: 22px; border-radius: var(--radius); background: var(--bg); }
.pain .q { font-size: 17px; letter-spacing: -0.015em; }
.steps li { border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; }
.steps .n { background: var(--ink-grad); color: #fff; }
.faq details { border-color: var(--border); }
.faq summary { font-size: 18px; letter-spacing: -0.015em; padding: 18px 0; }
table.facts th { color: var(--muted); }
.site-cta { background: radial-gradient(700px 300px at 50% 120%, rgba(124, 58, 237, .55), transparent 70%), #000; padding: 96px 0; }
.site-cta h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.035em; }
.site-cta p { color: #a1a1a6; opacity: 1; }
.site-cta .btn.primary { background: #fff; color: #000; }
.site-footer { background: var(--bg); border-top: 1px solid var(--border); font-size: 13px; }
.logo-row img { opacity: .55; }
@media (prefers-color-scheme: dark) {
  .site-section:not(.alt) .feature-grid .card, .pain { background: var(--surface); }
  .site-section.alt { background: #0a0a0b; }
}

/* Admin view / User view switch */
.viewbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 48px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.viewbar.on { background: var(--ink-grad); color: #fff; border-bottom: 0; }
.viewbar .segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-3); }
.viewbar.on .segmented { background: rgba(255, 255, 255, .14); }
.viewbar .segmented > *, .viewbar .segmented button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .75; }
.viewbar .segmented form { padding: 0; opacity: 1; }
.viewbar .segmented .on { background: var(--surface); color: var(--text); opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.14); cursor: default; }
.viewbar.on .segmented .on { background: #fff; color: #000; }
.viewbar .segmented svg { width: 15px; height: 15px; }
.viewbar-pick select { height: 34px; min-width: 260px; border-radius: 10px; font-size: 13px; }
.viewbar.on .viewbar-pick select { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.viewbar.on .viewbar-pick option { color: #000; }
.viewbar-note { font-size: 13px; opacity: .85; }
@media (max-width: 900px) { .viewbar { padding: 10px 16px; top: 49px; } .viewbar-note { display: none; } .viewbar-pick select { min-width: 0; width: 100%; } .viewbar-pick { flex: 1; } }
.period-picker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.period-custom { display: flex; gap: 6px; align-items: center; }
.period-custom input[type=date] { width: 150px; height: 32px; }
.campaign-list .input-prefix.quick { width: 96px; margin-left: auto; }
.campaign-list .input-prefix.quick input, .campaign-list .quick-cap { height: 32px; font-variant-numeric: tabular-nums; }
.campaign-list .quick-cap { width: 104px; }
.campaign-list .input-prefix.quick span { left: 10px; }
.campaign-list .input-prefix.quick input { padding-left: 22px; text-align: right; }
.campaign-list .cap-hit { color: var(--danger); font-weight: 600; }
.campaign-list tr.changed td { background: var(--primary-soft); }
.drop-zone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); margin: 18px 22px 22px; padding: 22px; background: var(--surface-2); }
.drop-zone.over { border-color: var(--primary); background: var(--primary-soft); }
.drop-zone > div { display: flex; align-items: center; gap: 8px; }
.drop-zone svg { width: 18px; height: 18px; color: var(--primary); }
.drop-zone [data-picked] { flex: 1; }
.link-like { color: var(--primary); font-weight: 600; cursor: pointer; }
.code-block { margin: 0; padding: 14px 16px; border-radius: 12px; background: #0b0614; color: #e9e2ff; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
details.skips { text-align: left; max-width: 520px; margin-left: auto; }
details.skips summary { cursor: pointer; color: var(--primary); font-weight: 600; text-align: right; }
details.skips ul { margin: 6px 0; padding-left: 18px; font-size: 12.5px; }
details.skips .mono-list { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; }

/* Icons: a safe default size wherever no rule sizes them (an unsized SVG grows to 300×150). */
:where(svg[viewBox="0 0 24 24"]) { width: 1.15em; height: 1.15em; flex: none; }
.chip span { white-space: nowrap; }
.chip span svg { width: 16px; height: 16px; }

/* ---------- Support chat ---------- */
.chat { display: grid; grid-template-columns: minmax(0, 1fr); height: calc(100vh - 230px); min-height: 480px; overflow: hidden; position: relative; }
.chat.chat-admin { grid-template-columns: 300px minmax(0, 1fr); }
.chat.dropping::after { content: "Drop files to share"; position: absolute; inset: 8px; border: 2px dashed var(--primary); border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 10%, transparent); display: grid; place-items: center; font-weight: 600; color: var(--primary); pointer-events: none; }
.chat-threads { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.chat-search, .chat-new { padding: 12px 12px 0; }
.chat-search input, .chat-new select { width: 100%; }
.chat-new { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.chat-thread-list { overflow-y: auto; flex: 1; padding: 6px; }
.chat-thread { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.chat-thread:hover { background: var(--surface-2); }
.chat-thread.on { background: var(--primary-soft); }
.chat-thread b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread .grow { min-width: 0; flex: 1; }
.chat-preview { display: block; color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chat-meta .count { background: var(--primary); color: var(--on-primary); border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.chat-none { padding: 16px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; position: relative; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 99px; background: var(--border-strong); border: 2px solid var(--surface); }
.avatar .dot.on { background: #22c55e; }
.brand-av { background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; }
.presence { color: var(--muted); }
.presence.on { color: #16a34a; font-weight: 600; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-main.chat-empty { justify-content: center; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-title { display: flex; align-items: center; gap: 10px; }
.chat-title b { font-size: 15px; }
.chat-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chat-actions { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 99px; }
.icon-btn svg { width: 19px; height: 19px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 4px; }
.chat-loading, .chat-start { margin: auto; text-align: center; max-width: 420px; }
.chat-day { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 12px; border-radius: 99px; margin: 12px 0 6px; }
.chat-msg { display: flex; }
.chat-msg.mine { justify-content: flex-end; }
.chat-msg .bubble { max-width: min(560px, 78%); padding: 9px 13px 6px; border-radius: 18px; background: var(--surface-2); color: var(--text); overflow-wrap: anywhere; }
.chat-msg.mine .bubble { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; }
.chat-msg.theirs .bubble { border-bottom-left-radius: 6px; }
.chat-msg .from { font-size: 12px; font-weight: 600; opacity: .75; margin-bottom: 2px; }
.chat-msg .text { white-space: pre-wrap; line-height: 1.45; }
.chat-msg .text a { color: inherit; text-decoration: underline; }
.chat-msg .meta { font-size: 11px; opacity: .65; text-align: right; margin-top: 3px; }
.chat-img { display: block; margin: 2px -6px 4px; }
.chat-img img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; }
.chat-file { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin: 2px -4px 4px; border-radius: 12px; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; text-decoration: none; min-width: 200px; }
.chat-file svg { width: 26px; height: 26px; }
.chat-file b { display: block; font-size: 13px; }
.chat-file small { display: block; font-size: 12px; opacity: .7; }
.chat-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); background: var(--surface-2); padding: 5px 12px; border-radius: 99px; margin: 6px 0; }
.chat-sys svg { width: 15px; height: 15px; }
.chat-typing { display: flex; gap: 4px; padding: 0 22px 8px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 99px; background: var(--muted); animation: chatdot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-compose { border-top: 1px solid var(--border); padding: 10px 14px 8px; }
.chat-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-row textarea { flex: 1; resize: none; min-height: 40px; max-height: 160px; border-radius: 20px; padding: 9px 14px; line-height: 1.4; }
.chat-hint { font-size: 11px; color: var(--muted); padding: 6px 4px 0; }
.chat-pending { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.chat-chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--border-strong); border-radius: 12px; max-width: 260px; background: var(--surface); }
.chat-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.chat-chip svg { width: 22px; height: 22px; }
.chat-chip .grow { min-width: 0; }
.chat-chip b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-chip small { font-size: 11px; color: var(--muted); }
.chat-chip-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
.chat-chip-x svg { width: 16px; height: 16px; }
.chat-progress { font-size: 12px; color: var(--primary); padding-bottom: 6px; }
.chat-toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: 360px; }
.chat-toast { display: block; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); text-decoration: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .5s, transform .5s; }
.chat-toast.bad { background: var(--danger); color: #fff; white-space: normal; }
.chat-toast.out { opacity: 0; transform: translateY(8px); }
@media (max-width: 900px) {
  .chat { height: calc(100vh - 170px); }
  .chat.chat-admin { grid-template-columns: minmax(0, 1fr); }
  .chat.chat-admin[data-thread=""] .chat-main, .chat.chat-admin:not([data-thread=""]) .chat-threads { display: none; }
  .chat-hint { display: none; }
}

/* ---------- Calls ---------- */
.call-rings { position: fixed; top: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.call-ring { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 340px; max-width: calc(100vw - 32px); border-radius: 20px; background: #111014; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: ringin .35s ease; }
.call-ring .grow { min-width: 0; flex: 1; }
.call-ring b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-ring small { color: rgba(255,255,255,.65); }
.call-ring-icon { width: 42px; height: 42px; border-radius: 99px; background: #7c3aed; display: grid; place-items: center; animation: pulse 1.4s infinite; flex: none; }
.call-ring-icon svg { width: 20px; height: 20px; }
.call-ring .btn { width: 42px; height: 42px; padding: 0; border-radius: 99px; border: 0; display: grid; place-items: center; flex: none; }
.call-ring .btn svg { width: 20px; height: 20px; }
.call-ring .call-no { background: #ef4444; color: #fff; }
.call-ring .call-yes { background: #22c55e; color: #fff; }
@keyframes ringin { from { transform: translateY(-12px); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,58,237,.6); } 100% { box-shadow: 0 0 0 14px rgba(124,58,237,0); } }
.call-panel { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 380px; max-width: calc(100vw - 24px); background: #0b0a0f; color: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; display: flex; flex-direction: column; }
.call-panel.big { inset: 24px; width: auto; max-width: none; }
.call-stage { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 35%, #2e1065, #0b0a0f 70%); }
.call-panel.big .call-stage { flex: 1; aspect-ratio: auto; }
/* One tile per other person in the call; click a tile to make it big (e.g. a shared screen). */
.call-tiles { position: absolute; inset: 0; display: grid; gap: 3px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); }
.call-tiles[data-n="2"], .call-tiles[data-n="3"], .call-tiles[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call-tiles[data-n="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.call-tiles.focused { grid-template-columns: repeat(var(--rest), minmax(0, 1fr)); grid-template-rows: minmax(0, 3fr) minmax(0, 1fr); grid-auto-rows: auto; }
.call-tiles.focused .focus { grid-column: 1 / -1; grid-row: 1; }
.call-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.call-tiles:not([data-n="1"]) .call-tile { background: rgba(255, 255, 255, .05); cursor: pointer; }
.call-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none; }
.call-tile.has-video video { display: block; }
.call-tile.has-video .call-avatar { display: none; }
.call-tile audio { display: none; }
.call-tile em { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 9px; border-radius: 99px; background: rgba(0, 0, 0, .6); font-style: normal; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-tiles[data-n="1"] em { display: none; }
.call-tile.weak { opacity: .5; }
.call-panel.has-peers .call-wait { display: none; }
.call-tiles:not([data-n="1"]) .call-avatar span { width: 60px; height: 60px; font-size: 20px; }
.page-update { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; padding: 10px 12px 10px 18px; border-radius: 99px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; white-space: nowrap; }
.page-update button { margin-left: 8px; border: 0; border-radius: 99px; padding: 5px 14px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; cursor: pointer; }
/* Calls other admins are in: join from any page, or from the bar in that conversation. */
.call-active { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 340px; max-width: calc(100vw - 32px); border-radius: 18px; background: #111014; color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.call-active .grow, .chat-live .grow { min-width: 0; flex: 1; }
.call-active b, .call-active small, .chat-live b, .chat-live small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-active small { color: rgba(255, 255, 255, .65); }
.chat-live { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, #22c55e 14%, transparent); }
.chat-live b { font-size: 13px; } .chat-live small { font-size: 12px; color: var(--muted); }
.live-dot { width: 10px; height: 10px; border-radius: 99px; background: #22c55e; flex: none; animation: pulse 1.4s infinite; }
.btn.call-join { background: #22c55e; color: #06210f; border-color: transparent; flex: none; }
.call-hide { border: 0; background: none; color: rgba(255, 255, 255, .6); cursor: pointer; padding: 4px; display: grid; }
.call-hide svg { width: 16px; height: 16px; }
.call-avatar { position: absolute; inset: 0; display: grid; place-items: center; }
.call-avatar span { width: 84px; height: 84px; border-radius: 99px; background: linear-gradient(135deg, #7c3aed, #a78bfa); display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.call-panel:not(.live) .call-avatar span { animation: pulse 1.6s infinite; }
.call-local { position: absolute; right: 10px; bottom: 10px; width: 30%; max-width: 180px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #000; border: 2px solid rgba(255,255,255,.2); display: none; transform: scaleX(-1); }
.call-sharing { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, .72); font-size: 13px; }
.call-sharing[hidden] { display: none; }
.call-sharing b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-sharing button { border: 0; border-radius: 99px; padding: 6px 12px; background: #ef4444; color: #fff; font: inherit; font-weight: 600; cursor: pointer; flex: none; }
.call-panel.has-local-video .call-local { display: block; }
.call-info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px 4px; }
.call-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-status { color: rgba(255,255,255,.65); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call-controls { display: flex; justify-content: center; gap: 7px; padding: 10px 12px 16px; }
.call-blur { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 14px; margin: 8px 16px 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 13px; }
.call-blur[hidden], .call-blur small[hidden] { display: none; }
/* While choosing the blur: see yourself bigger. */
.call-panel.has-local-video:has(.call-blur:not([hidden])) .call-local { width: 72%; max-width: 620px; }
.call-switch { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.call-switch.wide { grid-column: 1 / -1; }
.call-switch small { font-weight: 400; color: rgba(255, 255, 255, .6); }
.call-switch input { width: 16px; height: 16px; margin: 0; accent-color: #a78bfa; }
.call-blur input[type=range] { flex: 1; min-width: 110px; padding: 0; accent-color: #a78bfa; }
.call-blur input[type=range]:disabled { opacity: .35; }
.call-blur small { grid-column: 1 / -1; color: rgba(255, 255, 255, .6); }
.call-btn { width: 43px; height: 43px; flex: none; border-radius: 99px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 18px; transition: background .15s; }
.call-btn:hover { background: rgba(255,255,255,.2); }
.call-btn svg { width: 20px; height: 20px; }
.call-btn.off { background: #fff; color: #0b0a0f; }
.call-btn.on { background: #7c3aed; }
.call-btn.end { background: #ef4444; }
.call-btn.end:hover { background: #dc2626; }
.call-panel.ended { pointer-events: none; }
.call-panel.ended .call-controls { opacity: .4; }
@media (max-width: 600px) { .call-panel { right: 12px; left: 12px; bottom: 12px; width: auto; } }

/* ---------- Upcoming meetings (admin chat) ---------- */
.nav .count.meet, .meet-n { background: #f59e0b; color: #231400; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.nav .count.meet:not([hidden]) { display: inline-flex; align-items: center; gap: 4px; }
.nav .count.meet svg { width: 11px; height: 11px; color: inherit; opacity: 1; }
.nav .count.meet:not([hidden]) + .count { margin-left: 6px; }
.meet-n { display: inline-block; line-height: 18px; margin-left: 4px; }
.chat-meetings { padding: 12px; border-bottom: 1px solid var(--border); flex: none; }
.chat-meetings-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.chat-meetings small { font-size: 12px; }
.chat-meetings-list { max-height: 174px; overflow-y: auto; margin: 0 -6px; scrollbar-width: thin; }
.chat-meeting { display: flex; gap: 10px; padding: 7px 6px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.chat-meeting:hover { background: var(--surface-2); }
.chat-meeting.on { background: var(--primary-soft); }
.chat-meeting .when { flex: none; width: 82px; }
.chat-meeting .grow { min-width: 0; flex: 1; }
.chat-meeting b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meeting small { display: block; color: var(--muted); }
.chat-meeting small.pending { color: var(--warning, #b45309); }
.chat-meeting small.approved { color: #16a34a; }

/* ---------- Call booking ---------- */
.chat-actions .btn svg { width: 16px; height: 16px; }
.chat-bookings { display: flex; flex-direction: column; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chat-booking { display: flex; align-items: center; gap: 10px; }
.chat-booking > svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.chat-booking .grow { min-width: 0; flex: 1; }
.chat-booking b { display: block; font-size: 13px; }
.chat-booking small { display: block; font-size: 12px; color: var(--muted); }
.chat-booking small.note { font-style: italic; }
.chat-booking.pending small:first-of-type { color: var(--warning, #b45309); }
.chat-booking.approved small:first-of-type { color: #16a34a; }
.chat-booking.open { background: color-mix(in srgb, #22c55e 14%, transparent); border-radius: 12px; padding: 8px 10px; margin: -4px -6px; }
.chat-booking.open small:first-of-type { font-weight: 600; }
.chat-sys.event svg { color: var(--primary); }
.book-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--border); border-radius: 20px; padding: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.book-dialog::backdrop { background: rgba(10, 8, 20, .55); backdrop-filter: blur(3px); }
.book-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.book-head h3 { margin: 0; font-size: 18px; }
.book-intro { font-size: 13px; margin: 4px 0 14px; }
.book-notice { background: var(--primary-soft); color: var(--primary); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
.book-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.book-day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 82px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.book-day b { font-size: 13px; white-space: nowrap; }
.book-day small { font-size: 11px; color: var(--muted); }
.book-day.on { border-color: var(--primary); background: var(--primary-soft); }
.book-day.on b { color: var(--primary); }
.book-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.book-slot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.book-slot b { font-size: 14px; }
.book-slot small { font-size: 11px; color: var(--muted); }
.book-slot.free:hover { border-color: var(--primary); }
.book-slot.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.book-slot.on small { color: var(--on-primary); opacity: .85; }
.book-slot:disabled { cursor: not-allowed; opacity: .45; }
.book-slot.pending:disabled, .book-slot.approved:disabled { opacity: 1; border-style: dashed; border-color: var(--primary); }
.book-slot.pending small, .book-slot.approved small { color: var(--primary); }
.book-note { width: 100%; resize: vertical; margin-bottom: 12px; }
.book-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.book-pick { font-size: 13px; }
@media (max-width: 600px) { .chat-actions [data-book-open] { padding: 0 10px; } .chat-actions [data-book-open] svg + * { display: none; } }

/* ---------- Pages of a list, country field, fixed values ---------- */
.anchor, [data-paged] { scroll-margin-top: 90px; }
.anchor { margin-top: 20px; }
.anchor > section:first-child { margin-top: 0; }
.anchor:focus { outline: none; }
[data-paged][aria-busy=true] { opacity: .55; pointer-events: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; }
.pager-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager .on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.pager .off { opacity: .4; pointer-events: none; }
.pager .gap { color: var(--muted); }
.fixed-value { display: flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 600; }
.geo { position: relative; }
.geo input { width: 100%; padding-right: 36px; }
.geo-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.geo-clear[hidden] { display: none; }
.geo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.geo-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.geo-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.geo-item small { color: var(--muted); }
.geo-item:hover, .geo-item.on { background: var(--surface-2); }
.geo-item[aria-selected=true] { color: var(--primary); font-weight: 600; }
.geo-item.all { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; }
.geo-none { padding: 10px; color: var(--muted); font-size: 13px; }
.chat-msg.announcement .tag { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.chat-msg.announcement .tag svg { width: 15px; height: 15px; }
.chat-msg.announcement .bubble { outline: 1.5px solid var(--primary); }

/* ---------- home page: value grid and channels ---------- */
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.split-intro h2 { margin-bottom: 0; }
.split-intro .lead { margin: 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.value { padding: 28px 24px 8px 0; border-right: 1px solid var(--border); }
.value + .value { padding-left: 24px; }
.value:last-child { border-right: 0; }
.value .n { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; }
.value h3 { margin: 10px 0 8px; font-size: 18px; letter-spacing: -0.015em; }
.value p { margin: 0; line-height: 1.6; }
.channel-group { margin: 36px 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.channel { border-left: 3px solid var(--primary); }
.channel.intent { border-left-color: #a78bfa; }
.channel.reach { border-left-color: var(--border-strong); }
.channel h4 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.channel p { margin: 0; line-height: 1.55; font-size: 14px; }
.site-section .note { margin-top: 22px; font-size: 14px; }
@media (max-width: 900px) { .split-intro { grid-template-columns: 1fr; gap: 14px; } .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value:nth-child(2n) { border-right: 0; } .value:nth-child(3) { padding-left: 0; } .value { border-bottom: 1px solid var(--border); padding-bottom: 24px; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } .value, .value + .value { padding-left: 0; border-right: 0; } }


/* Feature tutorial videos: button at the top of the page, player in a pop-up */
.tutorials { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tut-btn { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 5px; border: 0; border-radius: 980px; background: var(--primary-soft); color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, transform .08s; }
.tut-btn:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.tut-btn:active { transform: scale(.98); }
.tut-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tut-play { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.tut-play svg { width: 11px; height: 11px; margin-left: 2px; fill: currentColor; stroke: none; }
.tut-time { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
dialog.tut-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: #000; color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
dialog.tut-dialog::backdrop { background: rgba(10, 8, 20, .7); backdrop-filter: blur(4px); }
.tut-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: #111113; }
.tut-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #f5f5f7; }
.tut-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.tut-x:hover { background: rgba(255, 255, 255, .2); }
.tut-dialog video { display: block; width: 100%; max-height: calc(100vh - 32px - 52px); aspect-ratio: 16 / 9; background: #000; }
