/* ---------------------------------------------------------------------------
   BeforeHand ODO Assistant — admin console styles.

   Quiet by design: one typeface, one accent (Ember terracotta), warm neutral
   surfaces, and colour only where it means something — green is working,
   amber needs you, red is a problem. Components read the semantic tokens
   below, never the raw palette, so dark mode is just a second set of values.
   --------------------------------------------------------------------------- */

:root {
  /* Ember palette */
  --brand-50: #FBF1EC; --brand-100: #F6E0D5; --brand-200: #EFC7B2; --brand-300: #E6A98A;
  --brand-500: #D97757; --brand-600: #C25E3E; --brand-700: #A04A30; --brand-800: #7D3A26;
  --sand-50: #FAF8F5; --sand-100: #F3EFE9; --sand-200: #E8E2D9; --sand-300: #D6CDBF; --sand-400: #B0A290;
  --sand-500: #897D6E; --sand-600: #6B6052; --sand-700: #4E453A; --sand-800: #332D25; --sand-900: #1F1A17;

  /* surfaces & text */
  --bg: var(--sand-50);
  --surface: #fff;
  --surface-2: var(--sand-100);
  --hover: var(--sand-100);
  --line: var(--sand-200);
  --line-strong: var(--sand-300);
  --text: var(--sand-900);
  --text-2: var(--sand-600);
  --text-3: #857A6C;
  --input-bg: #fff;

  /* accent */
  --accent: var(--brand-700);
  --accent-hover: var(--brand-800);
  --accent-soft: var(--brand-50);
  --accent-soft-2: var(--brand-100);
  --accent-text: var(--brand-700);
  --on-accent: #fff;
  --ring: rgba(194, 94, 62, .28);

  /* meaning */
  --ok: #2F6A42; --ok-soft: #E6F2E9; --ok-dot: #4F9D69;
  --warn: #7A5410; --warn-soft: #FAF0D7; --warn-dot: #D69A22;
  --bad: #97271F; --bad-soft: #FBE9E6; --bad-dot: #D6453B; --bad-solid: #AD3C34; --bad-solid-hover: #97271F;
  --info: #1F5C59; --info-soft: #E1F0EE; --info-dot: #38908C;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(31, 26, 23, .05);
  --shadow-pop: 0 12px 32px rgba(31, 26, 23, .14), 0 2px 6px rgba(31, 26, 23, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 248px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161311;
    --surface: #1E1A17;
    --surface-2: #272220;
    --hover: #2A2522;
    --line: #342E29;
    --line-strong: #4A423B;
    --text: #F3EEE8;
    --text-2: #B5AA9C;
    --text-3: #8C8174;
    --input-bg: #1A1614;
    --accent: #E08A6C;
    --accent-hover: #EAA187;
    --accent-soft: #2E211C;
    --accent-soft-2: #3B2820;
    --accent-text: #EFA788;
    --on-accent: #1F1A17;
    --ring: rgba(224, 138, 108, .35);
    --ok: #8FD0A3; --ok-soft: #1C2B21; --ok-dot: #5FAE78;
    --warn: #F0C766; --warn-soft: #2F2715; --warn-dot: #E6B23F;
    --bad: #F2A39C; --bad-soft: #351C19; --bad-dot: #E3766E; --bad-solid: #C4483F; --bad-solid-hover: #D65A50;
    --info: #8CCFCB; --info-soft: #172B2A; --info-dot: #4FAAA5;
    --shadow: none;
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; color: var(--text); font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .88em; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--text-2); }
.spinner { width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* A small label above a heading. Sentence case: it's read, not decoded. */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mb { margin-bottom: 16px; }

/* ---------- buttons ---------- */
.btn { font: 600 14px/1 var(--font); height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad-dot); }
.btn.solid-danger { background: var(--bad-solid); border-color: var(--bad-solid); color: #fff; }
.btn.solid-danger:hover { background: var(--bad-solid-hover); border-color: var(--bad-solid-hover); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; transform: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-text); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }

/* ---------- fields ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field .opt { font-weight: 500; color: var(--text-3); font-size: 13px; }
.field .hint { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.field .error { font-size: 13px; color: var(--bad); display: none; align-items: center; gap: 6px; }
.field.invalid .error { display: flex; }
.input, .field input:not([type=checkbox]):not([type=color]), .field select, .field textarea {
  font: 15px/1.4 var(--font); color: var(--text); background: var(--input-bg); width: 100%;
  height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { height: auto; min-height: 110px; padding: 11px 14px; resize: vertical; line-height: 1.55; }
.field textarea.code { min-height: 360px; font: 13.5px/1.6 var(--mono); }
.field select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23897D6E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field input:disabled, .field select:disabled { opacity: .6; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--bad-dot); }

.secret { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 44px; padding: 5px 6px 5px 14px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-sm); }
.secret .val { flex: 1 1 160px; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.secret .val svg { color: var(--ok-dot); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .18s var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.color-row { display: flex; gap: 8px; }
.color-row input[type=color] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--input-bg); cursor: pointer; flex: none; }
.picker { display: flex; gap: 8px; }
.picker > input, .picker > select { flex: 1; min-width: 0; }
.picker > .btn { height: 44px; flex: none; }
.field .hint.models { color: var(--ok); display: flex; align-items: center; gap: 6px; }
.field .hint.models.bad { color: var(--bad); }
.field .hint.warn { color: var(--warn); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { font: 600 13px/1 var(--font); height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
.presets button:hover { background: var(--hover); color: var(--text); }
.presets button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 520px) { .picker { flex-wrap: wrap; } .picker > .btn { width: 100%; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; padding: 24px 16px; }
.auth-inner { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 400px; }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--text); }
.lockup img { width: 28px; height: 28px; flex: none; }
.lockup .name, .lockup .sub { display: block; }
.lockup .name { font-weight: 700; font-size: 16px; line-height: 1.15; letter-spacing: -.01em; }
.lockup .sub { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.auth .lockup { justify-content: center; margin-bottom: 24px; }
.auth .panel { padding: 32px; }
.auth h1 { font-size: 24px; margin-bottom: 6px; }
.auth .lead { color: var(--text-2); margin-bottom: 24px; }
.auth form { display: grid; gap: 16px; }
.form-error { display: none; gap: 8px; align-items: flex-start; background: var(--bad-soft); color: var(--bad); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; }
.form-error.on { display: flex; }
.auth footer { text-align: center; font-size: 13px; color: var(--text-3); padding-top: 24px; }
.code-input { font: 600 18px var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; text-align: center; }

/* ---------- shell: sidebar + content ---------- */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 50; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 12px; overflow-y: auto; }
.side .brand { padding: 2px 10px 16px; }
.side .brand:hover { text-decoration: none; }
.nav { display: grid; gap: 2px; }
.nav .group { font-size: 12.5px; font-weight: 600; color: var(--text-3); padding: 18px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background .12s var(--ease), color .12s var(--ease); }
.nav a svg.i { color: var(--text-3); }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a[aria-current=page] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav a[aria-current=page] svg.i { color: var(--accent-text); }
.nav a.danger, .nav a.danger svg.i { color: var(--bad); }
.nav a.danger[aria-current=page] { background: var(--bad-soft); }
.nav a .dot { margin-left: auto; }
.nav a .count { margin-left: auto; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.side .live { margin: 4px 4px 0; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); position: relative; }
.user-btn { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.user-btn:hover { background: var(--hover); }
.user-btn .who { flex: 1; min-width: 0; }
.user-btn .who b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .who span { display: block; font-size: 12.5px; color: var(--text-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft-2); color: var(--accent-text); font-weight: 700; font-size: 13px; flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 6px; display: none; z-index: 60; }
.menu.open { display: block; animation: rise .14s var(--ease); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font: 500 14px var(--font); color: var(--text); background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--hover); text-decoration: none; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: var(--ok-soft); font-size: 13px; font-weight: 600; color: var(--ok); }
.pulse { position: relative; width: 8px; height: 8px; flex: none; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok-dot); }
.pulse::before { animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.content { margin-left: var(--side-w); min-width: 0; }
.mobilebar { display: none; }
.side-scrim { display: none; }

/* ---------- page ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 40px 40px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .eyebrow { display: block; margin-bottom: 6px; }
.page-head p { color: var(--text-2); margin-top: 8px; max-width: 620px; font-size: 15.5px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; }
.panel-head p { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.panel-body { padding: 22px; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }

.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 17px; }
.section-head p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.stat .v { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .n { display: block; font-size: 13px; color: var(--text-3); margin-top: 4px; }
/* A figure that opens the visitors behind it (Analytics). */
button.stat { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .12s var(--ease), background .12s var(--ease); }
button.stat:hover { border-color: var(--line-strong); background: var(--hover); }
button.stat:focus-visible, button.brow:focus-visible, .linkish:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.stack { display: grid; gap: 16px; }

/* ---------- tags & notes ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.45; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.page-head h1 .tag { font-size: 13px; letter-spacing: 0; }
.tag.brand { background: var(--accent-soft-2); color: var(--accent-text); }
.tag.success { background: var(--ok-soft); color: var(--ok); }
.tag.warning { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--bad-soft); color: var(--bad); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-strong); }
.dot.ready { background: var(--ok-dot); } .dot.incomplete { background: var(--warn-dot); } .dot.off { background: var(--line-strong); }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.5; }
.note svg { margin-top: 2px; }
.note.info { background: var(--info-soft); color: var(--info); }
.note.warning { background: var(--warn-soft); color: var(--warn); }
.note.danger { background: var(--bad-soft); color: var(--bad); }
.note.success { background: var(--ok-soft); color: var(--ok); }
.note.sand { background: var(--surface); border: 1px dashed var(--line-strong); color: var(--text-2); }
.note a { color: inherit; text-decoration: underline; }
.note b { font-weight: 700; }
.note + .note, .note + .panel, .panel + .note { margin-top: 16px; }

/* ---------- setup steps (home, before she's ready) ---------- */
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s var(--ease); }
.progress-row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.progress-row .progress { flex: 1; }
.steps a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); color: inherit; transition: background .12s var(--ease); }
.steps a:last-child { border-bottom: 0; }
.steps a:hover { background: var(--hover); text-decoration: none; }
.steps .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1.5px solid var(--line-strong); color: var(--text-2); }
.steps .num.ready { background: var(--ok-dot); border-color: var(--ok-dot); color: #fff; }
.steps .num.incomplete { border-color: var(--warn-dot); color: var(--warn); }
.steps a.next .num { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.steps b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.steps .sub { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.steps .sub.missing { color: var(--warn); }
.steps .right { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13.5px; }
.steps .opt { font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.steps .req { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }

/* "How it works": three plain steps, for anyone opening this for the first time. */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how > div { padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); }
.how .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent-text); margin-bottom: 12px; }
.how b { display: block; font-size: 15px; }
.how p { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* Where she's working: one tile per channel. */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.channel { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: inherit; box-shadow: var(--shadow); transition: border-color .12s var(--ease); }
.channel:hover { border-color: var(--line-strong); text-decoration: none; }
.channel .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); flex: none; }
.channel.on .ic { background: var(--ok-soft); color: var(--ok); }
.channel.check .ic { background: var(--warn-soft); color: var(--warn); }
.channel > span:nth-child(2) { min-width: 0; flex: 1; }
.channel b { display: block; font-size: 14.5px; font-weight: 600; }
.channel .sub { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Suggestions: optional setup that makes her more useful. */
.suggest a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: inherit; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover { background: var(--hover); text-decoration: none; }
.suggest .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.suggest a > span:nth-child(2) { min-width: 0; flex: 1; }
.suggest b { display: block; font-size: 14.5px; font-weight: 600; }
.suggest .sub { display: block; font-size: 13.5px; color: var(--text-2); }
.suggest .chev { color: var(--text-3); }

/* ---------- conversations list ---------- */
.conv { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .12s var(--ease); }
.conv:last-child { border-bottom: 0; }
a.conv, a.conv:hover { text-decoration: none; }
.conv:hover { background: var(--hover); }
.conv .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.conv .main { min-width: 0; }
.conv .main b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .main .sub { display: block; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.conv.credit .main .sub { white-space: normal; }
.conv.credit:hover { background: none; }
.conv .tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.empty { padding: 48px 24px; text-align: center; color: var(--text-2); display: grid; justify-items: center; gap: 10px; }
.empty .ic { width: 48px; height: 48px; border-radius: var(--r); background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; }
.empty h3 { font-size: 16px; }
.empty p { max-width: 380px; font-size: 14px; }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: none; font: 600 13.5px var(--font); color: var(--text-2); padding: 7px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.seg button:hover, .seg a:hover { color: var(--text); text-decoration: none; }
.seg button[aria-checked=true], .seg a[aria-current=page] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(31, 26, 23, .1); }
.seg button .n { color: var(--text-3); font-weight: 600; }
.tabs { margin-bottom: 16px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search input { height: 38px; width: 260px; max-width: 100%; padding: 0 12px 0 36px; font: 14px var(--font); color: var(--text); background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

/* Grid tables (users). */
.table { width: 100%; }
.thead, .trow { display: grid; gap: 16px; align-items: center; padding: 0 20px; }
.thead { border-bottom: 1px solid var(--line); padding-top: 11px; padding-bottom: 11px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.trow { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.trow:last-child { border-bottom: 0; }
a.trow, button.trow { color: inherit; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; cursor: pointer; transition: background .12s var(--ease); }
a.trow:hover, button.trow:hover { background: var(--hover); text-decoration: none; }
.trow .primary-cell b { display: block; font-weight: 600; }
.trow .sub { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.trow .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.numbers .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 120px; }
.t-users { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 140px 150px; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.t-links { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 130px 110px; }
@media (max-width: 720px) { .t-links { grid-template-columns: minmax(0, 1fr) 100px; } .t-links .hide-sm { display: none; } }
.qr-box { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.qr-box img { width: 168px; height: 168px; flex: none; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.qr-side { flex: 1; min-width: 220px; display: grid; gap: 12px; }
.qr-side .snippet code { min-width: 0; }

/* ---------- setup sections ---------- */
.form-grid { display: grid; gap: 22px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .group-head { margin: 10px 0 -6px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.form-grid .group-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.panel-strip { padding: 20px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.strip-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.strip-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.strip-row > div { flex: 1; min-width: 200px; }
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.savebar { position: sticky; bottom: 16px; z-index: 30; margin-top: 16px; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 10px 10px 20px; border-radius: var(--r); background: var(--sand-900); color: #fff; box-shadow: var(--shadow-pop); transform: translateY(12px); opacity: 0; pointer-events: none; transition: all .2s var(--ease); }
.savebar.on { transform: none; opacity: 1; pointer-events: auto; }
.savebar span { font-size: 14px; font-weight: 600; }
.savebar .btn.ghost { color: #fff; }
.savebar .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.savebar .btn.primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.savebar .btn.primary:hover { background: var(--brand-700); border-color: var(--brand-700); }

.snippet { display: flex; align-items: center; gap: 12px; background: var(--sand-900); color: #F2ECE4; border-radius: var(--r); padding: 12px 12px 12px 18px; font: 13px/1.5 var(--mono); }
.snippet code { flex: 1; min-width: 0; word-break: break-all; font-size: 13px; }
.snippet code .t { color: #EFC7B2; } .snippet code .a { color: #93CAA5; }
.snippet .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.snippet .btn:hover { background: rgba(255, 255, 255, .16); }

.danger-zone { border-color: var(--bad-soft); }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.danger-row + .danger-row { border-top: 1px solid var(--line); }
.danger-row b { font-size: 15px; }
.danger-row p { font-size: 14px; color: var(--text-2); margin-top: 4px; max-width: 60ch; line-height: 1.5; }

/* ---------- modal sheets (report, user, role) ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 16, 14, .45); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(860px, 100%); height: min(880px, 100%); background: var(--surface); display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-pop); animation: pop .2s var(--ease); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.sheet.narrow { width: min(540px, 100%); height: auto; max-height: 100%; }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet header h2 { font-size: 17px; margin-top: 2px; }
.sheet iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.crawl-failures { margin-top: 10px; }
.crawl-failures summary { cursor: pointer; }
.crawl-failures ul { margin: 8px 0 0; padding-left: 18px; }
.crawl-failures li { margin: 4px 0; overflow-wrap: anywhere; }
.sheet-body { flex: 1; overflow-y: auto; padding: 22px; align-content: start; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- roles ---------- */
.perm-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.perm { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.perm:last-child { border-bottom: 0; }
.perm:hover { background: var(--hover); }
.perm input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.perm b { display: block; font-size: 14.5px; font-weight: 600; }
.perm span span { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: center; vertical-align: middle; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody th { text-align: left; font-weight: 400; min-width: 220px; padding-left: 20px; }
.matrix tbody th b { display: block; font-weight: 600; }
.matrix tbody th span { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.role-head { display: grid; justify-items: center; gap: 2px; width: 100%; min-width: 96px; padding: 6px 8px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; font: inherit; color: inherit; cursor: pointer; }
.role-head:hover { background: var(--hover); border-color: var(--line); }
.role-head b { font-size: 14px; }
.role-head span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.role-head svg { color: var(--text-3); }
.matrix .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.matrix .no { color: var(--text-3); }

/* ---------- talk to her ---------- */
.try { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; height: calc(100vh - 220px); min-height: 560px; }
.try .panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.try .panel + .panel { margin-top: 0; }
.convo-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.convo-head .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.convo-head .who b { display: block; font-size: 15px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.state .dot.live { background: var(--ok-dot); }
.state .dot.listening { background: var(--bad-dot); animation: blink 1s infinite; }
.state .dot.thinking { background: var(--warn-dot); animation: blink .6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.log { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: rise .16s var(--ease); }
.bubble.agent { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.caller { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 6px; }
.sys { align-self: center; font-size: 13px; color: var(--text-2); text-align: center; padding: 2px 10px; }
.sys.bad { color: var(--bad); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: bob 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.again { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; height: 46px; padding: 0 14px; font: 15px var(--font); color: var(--text); background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.composer input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.composer .btn { height: 46px; width: 46px; padding: 0; }
.start { flex: 1; display: grid; place-items: center; padding: 32px; text-align: center; background: var(--bg); }
.start .big { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft-2); color: var(--accent-text); display: grid; place-items: center; margin: 0 auto 16px; }
.start h3 { font-size: 20px; margin-bottom: 6px; }
.start p { color: var(--text-2); max-width: 380px; margin: 0 auto 22px; }
.start .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.captured { flex: 1; overflow-y: auto; }
.cap { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cap:last-child { border-bottom: 0; }
.cap h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.cap dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.cap dt { color: var(--text-2); }
.cap dd { margin: 0; word-break: break-word; font-weight: 600; }
.cap .none { font-size: 14px; color: var(--text-3); }
.cap ol { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.cap .mail { white-space: pre-wrap; font-size: 13.5px; color: var(--text-2); border-left: 3px solid var(--line); padding: 2px 12px; }
.cap.report { background: var(--accent-soft); }
.headline { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 8px 0 6px; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px;
  background: var(--sand-900); color: #fff; padding: 11px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop); transition: all .2s var(--ease); max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast svg { color: #7FC896; }
#toast.bad svg { color: #F09A92; }

/* ---------- analytics ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid-2 .panel + .panel { margin-top: 0; }
.breakdown { padding-bottom: 8px; }
.breakdown .panel-head { padding: 14px 20px; margin-bottom: 6px; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 8px 20px; font-size: 14.5px; }
.brow .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .n { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brow .n b { color: var(--text); font-size: 14.5px; margin-right: 4px; }
.brow .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.brow .bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--accent); }
button.brow { width: 100%; border: 0; background: none; font: inherit; font-size: 14.5px; color: inherit; text-align: left; cursor: pointer; }
button.brow:hover { background: var(--hover); }
.page.busy { opacity: .55; pointer-events: none; transition: opacity .15s var(--ease); }
.input.country { width: auto; min-width: 170px; height: 40px; }
.find { display: flex; gap: 8px; align-items: center; }
.find .input { width: 250px; height: 34px; font-size: 13.5px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent-text); cursor: pointer; border-radius: 4px; }
.linkish:hover { text-decoration: underline; }
/* A visit as a flow: a box per page, in order, joined by arrows. */
.visit + .visit { margin-top: 12px; }
.flow { list-style: none; margin: 0; padding: 18px 22px 20px; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.flow .node { position: relative; flex: 0 1 220px; min-width: 170px; display: grid; gap: 6px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.flow .node + .node::before { content: "\2192"; position: absolute; left: -23px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; line-height: 1; }
.flow .origin { flex-basis: 170px; align-content: center; border-style: dashed; background: none; color: var(--text-2); }
.flow .origin .pg { font: 600 13.5px var(--font); }
.flow .num { font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.flow .pg { font: 600 13.5px var(--mono); overflow-wrap: anywhere; }
.flow .time { font-size: 13px; color: var(--text-2); }
.flow .time b { color: var(--text); font-variant-numeric: tabular-nums; }
.flow .bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.flow .bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--accent); }
.flow .did { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.flow .did .tag { white-space: normal; }
.daychart .plot { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line-strong); border-top: 1px dashed var(--line); }
.daychart .ymax { position: absolute; top: 4px; left: 0; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.daychart .col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.daychart .col i { display: block; width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: var(--accent); }
.daychart .col:hover { background: var(--hover); }
.daychart .col:hover i { background: var(--accent-hover); }
.daychart .axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.facts dt { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.facts dd { font-size: 15px; font-weight: 600; margin: 2px 0 0; overflow-wrap: anywhere; }
.tl-head { font-size: 16px; margin: 28px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.timeline li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { color: var(--text-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.timeline .pg { display: block; font: 13px var(--mono); color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { padding: 32px 28px 96px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: 1fr; }
  .t-users { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 150px; }
  .t-users .hide-md { display: none; }
}
@media (max-width: 900px) {
  /* The sidebar becomes a drawer behind a menu button. */
  .content { margin-left: 0; }
  .side { transform: translateX(-100%); transition: transform .22s var(--ease); }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow-pop); }
  .shell.nav-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(20, 16, 14, .4); }
  .mobilebar { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; gap: 6px; height: 56px; padding: 0 10px;
    background: var(--surface); border-bottom: 1px solid var(--line); }
  .mobilebar .lockup .sub { display: none; }
  .mobilebar .live-pill { margin-left: auto; padding: 5px 10px; font-size: 12.5px; }
  .menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text); border-radius: var(--r-sm); cursor: pointer; }
  .menu-btn:hover { background: var(--hover); }
  .try { grid-template-columns: 1fr; height: auto; }
  .try .panel:first-child { height: 70vh; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 22px 16px 96px; }
  .page-head h1 { font-size: 24px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .form-grid .two { grid-template-columns: 1fr; }
  .conv { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 16px; }
  .conv .tags { grid-column: 2; justify-content: flex-start; }
  .numbers .trow { grid-template-columns: minmax(0, 1fr) 110px; }
  .numbers .hide-sm { display: none; }
  .t-users { grid-template-columns: minmax(0, 1fr) auto; }
  .t-users .hide-sm { display: none; }
  .steps a { grid-template-columns: 32px minmax(0, 1fr); padding: 14px 16px; }
  .steps .right { grid-column: 2; }
  .toolbar { padding: 12px 16px; }
  .search, .search input { width: 100%; }
  .panel-head, .panel-body, .panel-strip, .danger-row { padding-left: 16px; padding-right: 16px; }
  .danger-row { flex-direction: column; align-items: stretch; }
  .scrim { padding: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .flow { flex-direction: column; flex-wrap: nowrap; gap: 26px; padding: 16px; }
  .flow .node { flex: none; }
  .flow .node + .node::before { content: "\2193"; left: 18px; top: -21px; transform: none; }
  .find .input { width: 100%; }
  .section-head:has(.find) { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
