/* Brand web fonts (Phase 23) — SIL OFL 1.1, self-hosted same-origin. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/web/hanken-grotesk-400.bce77b95211a.woff2") format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/web/hanken-grotesk-500.7a09ac4f738f.woff2") format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/web/hanken-grotesk-600.e4510bb7bc40.woff2") format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/web/hanken-grotesk-700.20d2b7694df6.woff2") format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/web/hanken-grotesk-800.bc73ca1c0dd1.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/web/ibm-plex-mono-400.bd688a5bf479.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/web/ibm-plex-mono-500.b7eb8f8e6dda.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/web/ibm-plex-mono-600.4b11fd058aeb.woff2") format('woff2');
}

/* QR7 brand layer over Bootstrap 5.3 — Phase 1 (auth surface).
   Ported from Qr7_design/app/qr7.css + theme.js (VISUAL reference only).
   Tokens locked by 01-UI-SPEC: crisp theme, coral accent (#F1582C),
   comfortable density, 3px radius (pills stay pills), Hanken Grotesk.

   The React prototype applied tokens via a JS theme wrapper; here we bake the
   `crisp` + `coral` + `comfortable` defaults onto a static `.qr7-theme` wrapper
   (and :root) so server-rendered templates need no JS runtime. */

:root,
.qr7-theme {
  /* ── crisp theme (theme.js THEMES.crisp.vars) ── */
  --bg: #FCFBFA;
  --surface: #FFFFFF;
  --surface-2: #F4F1EE;
  --border: rgba(40, 30, 20, 0.12);
  --border-strong: rgba(40, 30, 20, 0.20);
  --text: #211D18;
  --text-muted: #6B6259;
  --text-faint: #9C938A;
  --shadow-sm: 0 1px 2px rgba(30, 20, 10, 0.05);
  --shadow-md: 0 4px 18px rgba(30, 20, 10, 0.07);
  --shadow-lg: 0 18px 50px rgba(30, 20, 10, 0.12);
  --font: 'Hanken Grotesk', system-ui, sans-serif;
  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pos: #1F8A5B;
  --display-weight: 700;
  --display-tracking: -0.02em;

  /* ── coral accent (theme.js ACCENTS.coral) ── */
  --accent: #F1582C;
  --accent-rgb: 241, 88, 44;
  --accent-soft: #FCE9E1;
  --accent-ink: #FFFFFF;
  --accent-deep: #C0421E;

  /* ── destructive (UI-SPEC default — not yet in theme.js) ── */
  --danger: #C0392B;

  /* ── degraded / amber semantic (Phase 39 status page, 39-UI-SPEC Color) ──
     The one net-new global token trio. #B8770B is intentionally dark enough to
     clear WCAG AA (≥4.5:1) for text/icons on the warm-paper/white surfaces (a
     "sunny" light amber would fail and is prohibited for text). Paired ALWAYS
     with a distinct shape + localized word (colorblind-safe). NEVER coral. */
  --warn: #B8770B;
  --warn-soft: #FBEFD6;
  --warn-ink: #7A4E05;

  /* ── Phase-4 analytics chart gridlines (04-UI-SPEC Visual Notes) ── */
  --chart-grid: rgba(40, 30, 20, 0.07);

  /* ── comfortable density (theme.js DENSITY.comfortable) ── */
  --pad: 24px;
  --pad-sm: 16px;
  --gap: 20px;
  --row-h: 64px;
  --ui: 14px;

  /* ── BlueprintJS-compact radius, locked across directions ── */
  --radius: 3px;
  --radius-sm: 3px;
  --radius-lg: 3px;

  /* ── Bootstrap variable overrides (cascade to all descendants) ── */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font);
  --bs-secondary-color: var(--text-muted);
  --bs-tertiary-color: var(--text-faint);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-border-color: var(--border);
  --bs-primary: var(--accent);
  --bs-primary-rgb: var(--accent-rgb);
  --bs-link-color: var(--accent-deep);
  --bs-link-color-rgb: var(--accent-rgb);
  --bs-link-hover-color: var(--accent-deep);
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--border);
  --bs-focus-ring-color: rgba(var(--accent-rgb), 0.25);
  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: var(--radius);
  --bs-border-radius-lg: var(--radius);
  --bs-border-radius-xl: var(--radius);
  --bs-border-radius-xxl: var(--radius);
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
}

/* ── Radius lock (Blueprint compact). Pills stay pills. ── */
.btn, .card, .form-control, .form-select, .input-group-text,
.dropdown-menu, .alert, .list-group, .list-group-item,
.nav-pills .nav-link, .progress, .progress-bar, .modal-content {
  border-radius: var(--radius, 3px) !important;
}
.badge { border-radius: var(--radius, 3px); }
.rounded-pill, .badge.rounded-pill, .qr7-pill { border-radius: 9999px !important; }

/* ── Type ── */
body { font-family: var(--font, 'Hanken Grotesk', system-ui, sans-serif); color: var(--text); }
.font-mono { font-family: var(--font-mono) !important; font-variant-numeric: tabular-nums; }
.font-display {
  font-family: var(--font-display);
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
}
.text-faint { color: var(--text-faint) !important; }
.text-dim { color: var(--text-muted) !important; }
.tracking-label { letter-spacing: .04em; text-transform: uppercase; }

/* ── Cards / surfaces ── */
.card { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.qr7-surface-2 { background: var(--surface-2); }

/* ── Buttons (brand variants via Bootstrap btn vars) ── */
.btn { font-weight: 600; font-size: var(--ui); }
/* Primary CTA: filled coral. ≥44px tall touch target (UI-SPEC accessibility). */
.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--accent-deep); --bs-btn-hover-border-color: var(--accent-deep);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--accent-deep); --bs-btn-active-border-color: var(--accent-deep);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-soft {
  --bs-btn-color: var(--accent-deep); --bs-btn-bg: var(--accent-soft); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--accent-deep); --bs-btn-hover-bg: var(--accent-soft); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--accent-deep); --bs-btn-active-bg: var(--accent-soft); --bs-btn-active-border-color: transparent;
}
.btn-ghost {
  --bs-btn-color: var(--text-muted); --bs-btn-bg: transparent; --bs-btn-border-color: var(--border);
  --bs-btn-hover-color: var(--text); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-active-color: var(--text); --bs-btn-active-bg: var(--surface-2); --bs-btn-active-border-color: var(--border-strong);
}

/* ── Forms ── */
.form-control, .form-select {
  background-color: var(--surface); border-color: var(--border); color: var(--text);
}
.form-control:focus, .form-select:focus {
  background-color: var(--surface); border-color: var(--accent); color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(var(--accent-rgb), .18);
}
.form-control::placeholder { color: var(--text-faint); opacity: 1; }
.form-label { color: var(--text-muted); font-weight: 600; font-size: 12px; margin-bottom: 5px; }

/* ── Inline links within auth flows (accent-deep) ── */
.qr7-link { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.qr7-link:hover { color: var(--accent-deep); text-decoration: underline; }

/* ── Auth shell: centered card on --bg, --shadow-md ── */
.qr7-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 32px 16px; /* xl outer margin / responsive gutters */
}
.qr7-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.qr7-auth-title { font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
.qr7-auth-lead { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }

/* Phase 59 — allauth theming (UI-SPEC New assets). Values come from the UI-SPEC
   table or existing tokens. No fixed width and no forced single line, so
   DE/FR labels wrap. */
/* Management screens (2FA hub, passkeys, recovery codes): lists and panels. */
.qr7-auth-card--wide { max-width: 560px; }
/* allauth h2 element and panel titles (Heading role). */
.qr7-auth-subtitle { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
/* "or" separator between the password form and the other sign-in routes. */
.qr7-auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qr7-auth-divider::before,
.qr7-auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.qr7-auth-divider > span {
  color: var(--text-faint); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; /* = .tracking-label */
}
/* Filled danger button: the _signout_modal.html recipe, ≥44px touch target. */
.btn-destructive {
  --bs-btn-color: #fff; --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--danger); --bs-btn-active-border-color: var(--danger);
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Recovery-code block (the only IBM Plex Mono use in the phase). */
.qr7-codes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 16px; font-variant-numeric: tabular-nums;
}
/* Passkey list: replaces allauth's table, which does not fit 390px. */
.qr7-passkey-list { list-style: none; margin: 0; padding: 0; }
.qr7-passkey-list__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.qr7-passkey-list__name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

/* ── Icon-only action button (38px visual, 44px touch target — UI-SPEC) ── */
.qr7-iconbtn {
  width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted); display: grid; place-items: center;
  cursor: pointer; position: relative;
}
.qr7-iconbtn::after { content: ""; position: absolute; inset: -3px; } /* pad hit area to 44px */
.qr7-iconbtn:hover { color: var(--text); border-color: var(--border-strong); }

/* ── Badges ── */
.badge { font-weight: 600; font-size: 11.5px; padding: 4px 9px; }
.badge-soft { background: var(--accent-soft); color: var(--accent-deep); }
.badge-active { background: rgba(31, 138, 91, .10); color: var(--pos); border: 1px solid rgba(31, 138, 91, .22); }
/* Phase-4 neutral status/role chips (04-UI-SPEC Visual Notes — ports of the
   locked prototype, NOT new tokens). Paused = faint; Draft/Pending/Member = muted. */
.badge-paused { background: var(--surface-2); color: var(--text-faint); border: 1px solid var(--border); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Segmented control (Phase-4 7/30/90 time-window toggle — 04-UI-SPEC). ── */
.qr7-seg {
  display: inline-flex;
  gap: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}
.qr7-seg > button {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 4px 10px;
  border-radius: calc(var(--radius) - 3px);
  cursor: pointer;
}
.qr7-seg > button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
/* Link variant (quick 261005-hx7): the Overview window toggle is plain ?window=
   links, so it needs the button look on <a>. */
.qr7-seg > a {
  padding: 4px 10px;
  border-radius: calc(var(--radius) - 3px);
  color: inherit;
  text-decoration: none;
}
.qr7-seg > a.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ── Operator KPI cards (quick 261009-m8a): each card selects the big chart.
   The charted metric gets a 2px accent border + a faint accent tint; hover and
   keyboard focus show an accent ring. The 1px card border becomes 2px, so the
   padding shrinks by 1px to keep the card contents still. ── */
.qr7-kpi-card { cursor: pointer; transition: box-shadow .12s ease; }
.qr7-kpi-card:hover { box-shadow: 0 0 0 1px rgba(241, 88, 44, .45); }
.qr7-kpi-card:focus-visible { outline: 2px solid #F1582C; outline-offset: 2px; }
.qr7-kpi-card.is-active {
  border: 2px solid #F1582C;
  background: rgba(241, 88, 44, .05);
  padding: calc(var(--pad-sm) - 1px) !important;
}
@media (prefers-reduced-motion: reduce) { .qr7-kpi-card { transition: none; } }

/* ── Sidebar nav (Plan 05 shell). Ported from Qr7_design/app/qr7.css; the
   prototype's --sidebar-* vars map onto our neutral crisp tokens here.
   Active item = accent-soft bg + accent-deep text (UI-SPEC accent reserved #2).
   nav items must NOT be width-clamped so FR/NL/DE/DE-worst-case text can wrap. ── */
.qr7-nav .nav-link {
  color: var(--text-muted);
  border-radius: var(--radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: var(--ui);
}
.qr7-nav .nav-link:hover { background: var(--surface-2); color: var(--text); }
.qr7-nav .nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

/* ── Authenticated shell layout ── */
.qr7-shell { display: flex; min-height: 100vh; background: var(--bg); }
.qr7-shell-sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--pad-sm);
  display: flex;
  flex-direction: column;
}
.qr7-shell-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.qr7-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--pad-sm);
  padding: var(--pad-sm) var(--pad);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.qr7-shell-content { padding: var(--pad); flex: 1 1 auto; }
.qr7-brandmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); padding: 8px 12px 16px; }
@media (max-width: 768px) {
  .qr7-shell { flex-direction: column; }
  .qr7-shell-sidebar { width: auto; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ════════════════════════════════════════════════════════════════════════════
   PUBLIC SURFACE (Phase 3 — the moment of truth)

   Ported 1:1 from Qr7_design/app/card.jsx LandingScreen inline styles into a
   `.public-*`-scoped block. These are COMPONENT-LEVEL dimensions, NOT new global
   tokens (03-UI-SPEC Typography FLAG): the off-scale caption sizes
   (11/11.5/12/13/14.5/15.5/23px) and the larger component radii (8/10/12/22px)
   live ONLY here, never exposed as global type utilities or CSS custom properties.
   The per-profile accent vars (--accent / --accent-deep / --accent-soft /
   --accent-ink) are set INLINE on the .public-body--card wrapper by card.html;
   the neutral page inherits the global coral. The page is mobile-first; the card
   column is centered and capped at ~480px on larger screens.
   ════════════════════════════════════════════════════════════════════════════ */

.public-body { background: #FFFFFF; margin: 0; }
.public-body--neutral { background: var(--bg); }

/* Card shell — centered mobile-first column. */
.public-card {
  max-width: 480px;
  margin: 0 auto;
  background: #FFFFFF;
  min-height: 100vh;
  padding-bottom: 36px;
  position: relative;
}
.public-card__body { padding: 0 20px; margin-top: -38px; position: relative; }

/* Brand hero — gradient band + dotted overlay (card.jsx 63-72). */
.public-hero {
  position: relative;
  padding: 64px 24px 52px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
}
.public-hero__dots {
  position: absolute; inset: 0; opacity: 0.16;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 14px 14px;
}
/* Corner brand mark (quick 260603-02j, supersedes the centered 56px logo tile +
   company eyebrow). A small ~40px logo pinned to the top-left of the band in BOTH
   states, on its own white chip + shadow so it reads over any cover photo or the
   gradient — independent of any scrim. Rendered only when a real logo exists. */
.public-hero__logo--corner {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: grid; place-items: center; overflow: hidden;
}
.public-hero__logo img { width: 40px; height: 40px; object-fit: contain; display: block; }

/* Banner / cover hero (D-64). Full-bleed 3:1 cover image; rendered as a clean
   cover with no scrim — the optional corner mark carries its own backing/shadow. */
.public-hero--banner { padding: 0; aspect-ratio: 3 / 1; overflow: hidden; }
.public-hero__banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Taller banner -> -42px identity-tile straddle (vs -38px gradient state). */
.public-card > .public-hero--banner + .public-card__body { margin-top: -42px; }

/* Identity — 84px avatar overlapping the hero (card.jsx 75-80). */
.public-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.public-identity__avatar {
  width: 84px; height: 84px; border-radius: 22px; background: var(--accent);
  border: 4px solid #fff; color: var(--accent-ink); display: flex; align-items: center;
  justify-content: center; font-size: 32px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); overflow: hidden;
}
.public-identity__avatar img { width: 84px; height: 84px; object-fit: cover; }
.public-identity__name {
  font-size: 23px; font-weight: 700; color: #15151A; margin: 12px 0 0;
  letter-spacing: -0.02em; line-height: 1.2;
}
.public-identity__title { font-size: 14.5px; color: #6A6A72; margin-top: 2px; }
.public-identity__company { font-size: 14.5px; font-weight: 600; color: #6A6A72; margin-top: 2px; }
.public-bio {
  font-size: 14px; font-weight: 400; line-height: 1.5; color: #6A6A72;
  margin: 8px auto 0; max-width: 38ch; text-align: center;
  white-space: pre-line; word-break: break-word;
}

/* Save-to-phone CTA — the one filled-accent action (card.jsx 82-85). */
.public-save-cta {
  width: 100%; margin-top: 18px; padding: 15px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); text-decoration: none;
  min-height: 44px; text-align: center;
}
.public-save-cta:hover, .public-save-cta:focus { color: var(--accent-ink); }
.public-save-cta__label { line-height: 1.3; }

/* Declared intention on the scanner's page (Phase 60, UI-SPEC S4). Rendered
   only with the switch on; every selector needs --secondary or a
   .public-actions ancestor, so the switch-off page is unchanged. */
.public-intent {
  margin: 16px auto 0; max-width: 38ch; text-align: center; font-size: 16px; font-weight: 400;
  line-height: 1.5; color: #1A1A1F; overflow-wrap: anywhere;
}
.public-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.public-actions .public-save-cta { margin-top: 0; }
.public-save-cta.public-save-cta--secondary {
  background: #fff; color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent-deep);
}
.public-save-cta.public-save-cta--secondary:hover,
.public-save-cta.public-save-cta--secondary:focus { color: var(--accent-deep); background: var(--accent-soft); }
.public-actions .public-save-cta:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* Quick actions — soft-accent tiles (card.jsx 88-94). */
.public-quick { display: flex; gap: 10px; margin-top: 12px; }
.public-quick__tile {
  flex: 1; min-width: 0; padding: 11px 4px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; min-height: 44px; justify-content: center; text-align: center;
}
.public-quick__tile:hover, .public-quick__tile:focus { color: var(--accent-deep); }
.public-quick__label { font-size: 12px; font-weight: 600; line-height: 1.3; }

/* Social monograms — padded to a 44px tap target (card.jsx 97-101). */
.public-social {
  display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap;
}
.public-social__chip {
  min-width: 44px; min-height: 44px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; text-decoration: none; padding: 0 8px;
}
.public-social__chip:hover, .public-social__chip:focus { color: var(--accent-deep); }

/* Contact-field rows — the SAME row card as a link row (quick 261005-jio): warm-paper
   surface, 1px border, 8px radius, 40px icon box on the left, label on top, value below. */
.public-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.public-field {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  min-height: 62px; min-width: 0;
  background: #F6F6F8; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 8px;
  text-decoration: none; color: inherit;
}
a.public-field:hover { background: #fff; box-shadow: var(--shadow-sm); color: inherit; }
.public-field:focus { color: inherit; }
.public-field:focus-visible {
  outline: 2px solid var(--bs-focus-ring-color, rgba(241, 88, 44, 0.25));
  outline-offset: 2px;
}
.public-field__icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.public-field__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.public-field__label {
  display: block; font-size: 12px; color: #6A6A72; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-field__value {
  display: block; font-size: 15px; color: #1A1A1F; font-weight: 500; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-field__chevron { color: #C4C4CC; flex-shrink: 0; }

/* Address -> two map links (D-65). Neutral surface, accent-deep ink, >=44px. */
.public-maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.public-maps__link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 8px 10px; border-radius: 8px;
  background: #F6F6F8; color: var(--accent-deep);
  font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.public-maps__link:hover, .public-maps__link:focus { color: var(--accent-deep); }

/* Link buttons — LinkButton (card.jsx 19-32). */
.public-links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.public-link {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border-radius: 8px; background: #F6F6F8; border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none; color: inherit; min-height: 44px;
}
.public-link:hover, .public-link:focus { color: inherit; }
.public-link__icon {
  width: 34px; height: 34px; border-radius: 7px; background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06); display: grid; place-items: center;
  color: var(--accent-deep); flex-shrink: 0;
}
.public-link__body { flex: 1; min-width: 0; }
.public-link__label {
  display: block; font-size: 14.5px; font-weight: 600; color: #1A1A1F;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-link__url {
  display: block; font-size: 12px; color: #9A9AA2; font-family: var(--font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-link__external { color: #C4C4CC; flex-shrink: 0; }

/* Link rows (quick 261005-jio; was the Layout C 2-up grid). One full-width row per
   link: brand badge on the left, network name / link label on top, handle or host
   below — the same row card as .public-field. The ONLY saturated color is the
   per-network brand badge. A favicon / logo image fills the whole badge box. */
.public-social-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.public-social-tile {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 10px 12px; min-height: 62px; min-width: 0;
  background: #F6F6F8; border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px; text-decoration: none; color: inherit;
}
.public-social-tile:hover { background: #fff; box-shadow: var(--shadow-sm); color: inherit; }
.public-social-tile:focus-visible {
  outline: 2px solid var(--bs-focus-ring-color, rgba(241, 88, 44, 0.25));
  outline-offset: 2px;
}
.public-social-tile__badge {
  width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0; color: #fff;
}
.public-social-tile__badge--image { overflow: hidden; background: transparent; }
.public-social-tile__favicon {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.public-social-tile__body {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.public-social-tile__name {
  font-size: 12px; font-weight: 600; color: #6A6A72; line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-social-tile__handle {
  font-size: 15px; font-weight: 500; color: #1A1A1F; line-height: 1.35;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* A lone name (no handle / host) reads as the row's value. */
.public-social-tile__name:last-child { font-size: 15px; font-weight: 500; color: #1A1A1F; }

/* Dashboard live preview (quick 261005-sd8). The composer renders the SAME public
   card partials (public/_hero.html + public/_card_content.html) at phone width
   (390px) and scales the whole card down with CSS zoom to the 249px preview frame,
   so the preview has no parallel style and cannot drift from /p/<slug>. */
.public-preview-frame {
  width: 249px; border-radius: 22px; overflow: hidden; background: #FFFFFF;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.public-preview-frame__zoom { width: 390px; zoom: 0.633; }
.public-card--preview { max-width: none; min-height: 0; padding-bottom: 28px; }

/* Share this card — QR + short URL re-share section (Phase 10, D-13..D-16).
   Neutral panel (the .public-link recipe); zero filled-accent controls — the
   Save CTA stays the page's only one. No transitions/animations (reduced-
   motion safe by construction). */
.public-share {
  background: #F6F6F8; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 22px; padding: 16px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.public-share__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em; color: #8A8A8E; margin: 0;
}
.public-share__qrbtn {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.public-share__qrtile {
  display: inline-block; background: #fff; border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06); padding: 10px;
}
.public-share__qrtile img { display: block; }
.public-share__url {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: #1A1A1F; margin: 0; user-select: all;
}
.public-share__hint { font-size: 12px; color: #9A9AA2; margin: 0; }
.public-share__actions { display: flex; gap: 8px; }
.public-share__chip {
  background: #fff; color: var(--accent-deep); font-size: 14px; font-weight: 600;
  border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.06); min-height: 44px;
  padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.public-share__chip--primary {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-deep);
  font-weight: 700;
}
.public-share__dialog {
  border: 0; border-radius: 8px; padding: 16px; background: #fff;
  text-align: center;
}
.public-share__dialog img {
  width: min(86vw, 360px); height: auto; display: block; margin: 0 auto 12px;
}
.public-share__dialog::backdrop { background: rgba(20, 15, 10, 0.5); }

/* ── Keep-this-card CTA (Phase 11, D-01/D-02) ─────────────────────────────
   Quiet dashed panel between the share section and the footer. The button is
   accent-SOFT background + accent-DEEP ink — NEVER filled --accent (the page's
   one filled-accent action stays "Save to phone"). */
.public-keep {
  margin-top: 22px; padding: 16px; border: 1px dashed rgba(0, 0, 0, 0.16);
  background: #FAFAFB; border-radius: 10px; display: flex;
  flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.public-keep__line { margin: 0; font-size: 12.5px; line-height: 1.45; color: #8A8A8E; }
.public-keep__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 14px; font-weight: 700; text-decoration: none;
}

/* Footer — trust line + wordmark (card.jsx 133-139). */
.public-footer {
  margin-top: 22px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 7px;
}
.public-footer__trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #9A9AA2;
}
.public-footer__brand {
  font-size: 11px; color: #B6B6BE; font-weight: 700; letter-spacing: 0.02em;
}

/* Language switcher — compact ?lang options (D-50, FRESH). */
.public-lang {
  display: flex; justify-content: flex-end; gap: 4px; padding: 10px 12px;
  flex-wrap: wrap;
}
.public-lang__opt {
  min-width: 44px; min-height: 36px; padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; background: transparent;
}
.public-lang__opt:hover, .public-lang__opt:focus { color: var(--text); background: var(--surface-2); }
.public-lang__opt[aria-current="true"] {
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 700;
}

/* In-app browser banner (Phase 67; reworks the D-41 hint). Never filled-accent:
   Save to phone stays the page's one filled action. */
.public-inapp {
  margin-top: 16px; padding: 14px 16px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.public-inapp__heading {
  font-size: 14.5px; font-weight: 700; color: #1A1A1F; margin: 0;
  cursor: pointer; display: list-item; /* keeps the disclosure marker */
  min-height: 44px; padding: 10px 0; margin-top: -10px; /* a 44px tap target, same visual offset */
}
.public-inapp__body { font-size: 13px; color: #6A6A72; margin: 6px 0 0; line-height: 1.45; }
.public-inapp__urlrow {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.public-inapp__url {
  font-family: var(--font-mono); font-size: 12.5px; color: #1A1A1F;
  word-break: break-all; user-select: all;
}
.public-inapp__copy, .public-inapp__open {
  min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  font-weight: 600; border: 1px solid var(--border); background: #fff;
  color: var(--accent-deep); display: inline-flex; align-items: center;
  gap: 6px; cursor: pointer; text-decoration: none;
}
.public-inapp__open { margin-top: 10px; }
.public-actions .public-inapp { margin-top: 0; }
.qr7-auth-card .public-inapp { margin: 0 0 16px; }

/* Draft owner-preview banner — never error-styled (D-44, FRESH). */
.public-draft {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--text);
}
.public-draft__icon { color: var(--text-muted); flex-shrink: 0; }
.public-draft__label { font-weight: 700; font-size: 14px; }
.public-draft__body { font-size: 12.5px; color: var(--text-muted); }
.public-draft__link { color: var(--accent-deep); font-weight: 600; }

/* Forwarding notice (Phase 63.1, D-09): neutral, never accent, never the card's brand colour. */
.public-forward {
  display: flex; align-items: center; gap: 8px; max-width: 480px; margin: 0 auto;
  padding: 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 14px; line-height: 1.4;
}
.public-forward__icon { color: var(--text-muted); flex-shrink: 0; }
.public-forward__text { min-width: 0; overflow-wrap: anywhere; }

/* Neutral page — no branding, global coral, one ghost CTA (D-43, FRESH). */
.public-neutral {
  max-width: 440px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center; gap: 32px;
}
.public-neutral__panel { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.public-neutral__mark { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--accent); letter-spacing: -0.02em; }
.public-neutral__heading { font-size: 20px; font-weight: 600; color: var(--text); margin: 0; }
.public-neutral__body { font-size: 16px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.public-neutral__cta {
  min-height: 44px; padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--accent); color: var(--accent-deep); background: transparent;
  font-weight: 600; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.public-neutral__cta:hover, .public-neutral__cta:focus { background: var(--accent-soft); color: var(--accent-deep); }

/* ── "Report this profile" affordance (Phase 45 UI-SPEC Surface 3, D-13) ──
   A quiet muted link in the card footer region, BELOW the scan->Save CTA. It must
   NOT compete with the Core Value action: NOT coral (not the qr7-link/accent-deep),
   NOT a button — a faint --text-muted anchor. 44px touch target on mobile. */
.public-report-affordance { text-align: center; margin-top: 8px; }
.public-report-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 12px;
  color: var(--text-muted); font-size: 13px; text-decoration: underline;
  text-underline-offset: 2px;
}
.public-report-link:hover, .public-report-link:focus { color: var(--text); }

/* ── The reply after a scan (Phase 61, 61-UI-SPEC "CSS (new rules only)") ──
   The card's reply slot and the block fetched into it (S1-S6), then the
   thank-you page (S7). Every selector sits under .public-reply or .qr7-thanks,
   so no existing page changes. Spacing is on the 4px grid; status lines wrap
   (overflow-wrap: anywhere) so the slot never widens the 480px card column.
   :has() is a progressive enhancement; no transition or animation is added. */
.public-reply { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.06); scroll-margin-top: 16px; }
.public-reply__title { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; color: #1A1A1F; }
.public-reply__lead, .public-reply__status { margin: 0 0 16px; padding: 0; font-size: 16px; line-height: 1.5; color: #6A6A72; overflow-wrap: anywhere; }
.public-reply__member {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin: 0 0 16px;
  padding: 4px 16px; background: var(--surface-2); border-radius: 8px;
  font-size: 16px; line-height: 1.5; color: #6A6A72;
}
.public-reply__member > span { padding: 8px 0; min-width: 0; overflow-wrap: anywhere; }
.public-reply__member--inapp { flex-direction: column; align-items: stretch; padding: 12px 16px; }
.public-reply__member-link { display: inline-flex; align-items: center; min-height: 44px; color: #1A1A1F; font-weight: 600; text-decoration: underline; }
.public-reply__field { margin-bottom: 16px; }
.public-reply__form .form-control { min-height: 44px; padding: 8px 12px; font-size: 16px; border-radius: 8px; }
.public-reply__form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.public-reply__form .form-control.is-invalid { border-color: var(--danger); background-image: none; padding-right: 12px; }
.public-reply__hint { margin: 4px 0 0; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--text-muted); overflow-wrap: anywhere; }
.public-reply__error { margin: 4px 0 0; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--danger); }
.public-reply__alert { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--danger); border-radius: 8px; font-size: 16px; line-height: 1.5; color: var(--danger); background: #fff; }
.public-reply__box { margin-top: 24px; }
.public-reply__box .form-check { display: flex; align-items: flex-start; gap: 8px; padding-left: 0; }
.public-reply__box .form-check-input, .public-reply__choice input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; float: none; margin: 0; }
.public-reply__box .form-check-label { font-size: 16px; line-height: 1.5; color: #1A1A1F; }
.public-reply__submit { margin-top: 24px; border: 0; font-family: inherit; cursor: pointer; }
.public-reply__submit:focus-visible, .public-reply__retry:focus-visible, .public-reply__choice:focus-within { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.public-reply__submit[aria-busy="true"] { cursor: progress; }
.public-reply__choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.public-reply__choice {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.public-reply__choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.public-reply__choice-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.public-reply__choice-name { font-size: 16px; font-weight: 600; line-height: 1.3; color: #1A1A1F; overflow-wrap: anywhere; }
.public-reply__choice-url { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--text-muted); overflow-wrap: anywhere; }
.public-reply__owner { padding: 12px 16px; background: var(--surface-2); border-radius: 8px; font-size: 16px; line-height: 1.5; color: #1A1A1F; }
.public-reply__owner p { margin: 0; }
.public-reply__owner strong { font-weight: 600; }
.public-reply__retry { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #1A1A1F; font: 600 16px/1.3 var(--font); cursor: pointer; }
.public-reply__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Thank-you page (QR7 chrome) */
.qr7-thanks .qr7-auth-title { overflow-wrap: anywhere; }
.qr7-thanks__inbox { margin: 0 0 24px; padding: 16px; background: var(--surface-2); border-radius: var(--radius); }
.qr7-thanks__upsell { margin: 24px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }

/* ── Pool editor: transient "Saved" confirmation (quick/pool-ux, finding 2) ──
   A small, brand-quiet success flash next to a saved row/identity. CSS-only
   fade-out: it appears, holds, then fades and stays hidden (fill-mode forwards)
   so it disappears without any JS after an HTMX swap. */
.qr7-saved-flash {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--accent-deep);
  margin-left: 8px; vertical-align: middle;
  animation: qr7-saved-flash 2s ease forwards;
}
@keyframes qr7-saved-flash {
  0%   { opacity: 0; }
  15%  { opacity: 1; }     /* fade in (~0.3s) */
  70%  { opacity: 1; }     /* hold (~1.1s) */
  100% { opacity: 0; }     /* fade out (~0.6s) */
}

/* Reduced motion — the public surface has no motion beyond hover/focus tints. */
@media (prefers-reduced-motion: reduce) {
  .public-save-cta, .public-quick__tile, .public-link, .public-lang__opt,
  .public-neutral__cta, .public-social__chip, .public-social-tile { transition: none !important; }
  /* The Saved flash still appears+hides, just without the eased fade. */
  .qr7-saved-flash { animation-duration: 2s; animation-timing-function: steps(1, end); }
}

/* ══════════════════════════════════════════════════════════════════════════
   Public status page — .qr7-status-* recipes (Phase 39, 39-UI-SPEC).
   Component-scoped (tokens only, 3px radii, hairline borders). Status meaning is
   the green/amber/red semantic triad + SHAPE + WORD only — NEVER coral (--accent
   stays reserved for the language switcher + inline qr7-link). Zero-JS surface.
   ══════════════════════════════════════════════════════════════════════════ */
.qr7-status { min-height: 100vh; background: var(--bg); }
.qr7-status__wrap {
  max-width: 640px; margin: 0 auto; padding: 32px 16px;
  display: flex; flex-direction: column; gap: var(--gap);
}

/* Status icon shapes — color + DISTINCT SHAPE (colorblind-safe). No text here;
   the accessible word is the adjacent chip label. */
.qr7-status-icon {
  display: inline-block; width: 12px; height: 12px; flex-shrink: 0;
  vertical-align: middle;
}
.qr7-status-icon--up { background: var(--pos); border-radius: 50%; }        /* ● circle */
.qr7-status-icon--degraded {                                                /* ◆ diamond */
  background: var(--warn); border-radius: 2px; transform: rotate(45deg);
  width: 10px; height: 10px;
}
.qr7-status-icon--down { background: var(--danger); border-radius: 2px; }   /* ■ square */
.qr7-status-icon--no-data {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%;
}
.qr7-status-icon--maintenance {
  background: var(--text-muted); border-radius: 2px; transform: rotate(45deg);
  width: 10px; height: 10px;
}

/* Overall banner — worst-of drives it; tinted SOFT, never coral. 700 headline. */
.qr7-status-banner {
  display: flex; align-items: center; gap: 10px;
  padding: var(--pad-sm); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.qr7-status-banner__headline {
  margin: 0; font-family: var(--font-display);
  font-size: 20px; font-weight: var(--display-weight); line-height: 1.2;
  color: var(--text);
}
.qr7-status-banner--up { background: rgba(31, 138, 91, .10); border-color: rgba(31, 138, 91, .22); }
.qr7-status-banner--degraded { background: var(--warn-soft); border-color: rgba(184, 119, 11, .28); }
.qr7-status-banner--down { background: rgba(192, 57, 43, .08); border-color: rgba(192, 57, 43, .24); }
.qr7-status-banner--maintenance { background: var(--surface-2); border-color: var(--border); }

/* Uptime section caption. */
.qr7-status-caption {
  margin: 0 0 4px; font-size: 11px; font-weight: 600; color: var(--text-faint);
}
.qr7-status-components { display: flex; flex-direction: column; gap: 8px; }

/* Component card row. */
.qr7-status-component {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--pad-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.qr7-status-component__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.qr7-status-component__name {
  font-size: 15.5px; font-weight: 600; color: var(--text); flex: 1 1 auto;
}
.qr7-status-component__uptime {
  font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
}

/* Status chip — icon shape + localized word. */
.qr7-status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.qr7-status-chip--up { color: var(--pos); }
.qr7-status-chip--degraded { color: var(--warn-ink); }
.qr7-status-chip--down { color: var(--danger); }
.qr7-status-chip--no-data { color: var(--text-faint); }

/* 90-day uptime strip — data-viz primitive: 3px segments, 1px gap (off the
   4-scale, declared in 39-UI-SPEC Spacing). green/amber/red/neutral. */
.qr7-status-strip {
  display: flex; align-items: flex-end; gap: 1px; overflow: hidden;
  background: var(--surface-2); border-radius: 2px; padding: 2px;
}
.qr7-status-seg {
  flex: 1 1 3px; min-width: 2px; height: 26px; border-radius: 1px;
}
.qr7-status-seg--up { background: var(--pos); }
.qr7-status-seg--degraded { background: var(--warn); }
.qr7-status-seg--down { background: var(--danger); }
.qr7-status-seg--no-data { background: #E4DED7; }

/* Legend beneath the first strip — shape + color + word key. */
.qr7-status-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 11px; color: var(--text-muted);
}
.qr7-status-legend__item { display: inline-flex; align-items: center; gap: 5px; }

/* Recent incidents. */
.qr7-status-incidents { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.qr7-status-incidents__heading { font-size: 15.5px; font-weight: 600; color: var(--text); margin: 0; }
.qr7-status-incident {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--pad); display: flex;
  flex-direction: column; gap: 6px;
}
.qr7-status-incident--empty { background: var(--surface-2); }
.qr7-status-incident__chip {
  align-self: flex-start; font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--text-muted);
}
.qr7-status-incident__chip--investigating { background: var(--warn-soft); color: var(--warn-ink); }
.qr7-status-incident__chip--identified { background: rgba(192, 57, 43, .08); color: var(--danger); }
.qr7-status-incident__chip--monitoring { background: rgba(31, 138, 91, .10); color: var(--pos); }
.qr7-status-incident__chip--resolved { background: var(--surface-2); color: var(--text-muted); }
.qr7-status-incident__title { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.qr7-status-incident__body { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; max-width: 68ch; }
.qr7-status-incident__time { font-size: 11px; color: var(--text-faint); margin: 2px 0 0; }

/* Maintenance band — neutral surface, never error/accent styling. */
.qr7-status-maintenance {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--pad);
  display: flex; flex-direction: column; gap: 6px;
}
.qr7-status-maintenance__chip { font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin: 0; }
.qr7-status-maintenance__title { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.qr7-status-maintenance__window { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.qr7-status-maintenance__body { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; max-width: 68ch; }

/* Freshness / last-good note — quiet, mono timestamp, never coral, never error. */
.qr7-status-freshness {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
  text-align: center; margin: 8px 0 0;
}

/* ── My Info ledger (B★, quick 260610-1vf) ──────────────────────────────────
   ONE page-level Edit mode: #info-page carries data-mode="view|edit". View
   mode is a pure reading surface (edit controls CSS-hidden); Edit flips the
   whole page. Tokens from the qr7 brand layer above. */
#info-page[data-mode="view"] .edit-only { display: none !important; }
#info-page[data-mode="edit"] .view-only { display: none !important; }

/* Two-column ledger: identity card (~300px) + detail table; 1fr below 992px. */
.qr7-info-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 991.98px) {
  .qr7-info-grid { grid-template-columns: 1fr; }
}

/* One ledger row: [42px icon] [130px small-caps label] [value] [auto]. */
.qr7-info-row {
  display: grid; grid-template-columns: 42px 130px 1fr auto; gap: 12px;
  align-items: center; padding: 11px 16px;
  border-top: 1px solid var(--border);
}
.qr7-info-row:first-child { border-top: 0; }
#info-page[data-mode="view"] .qr7-info-row:hover { background: var(--surface-2); }
@media (max-width: 575.98px) {
  .qr7-info-row { grid-template-columns: 42px 1fr auto; }
  .qr7-row-label { grid-column: 2; }
}

.qr7-row-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.qr7-row-label {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint); overflow-wrap: anywhere;
}
.qr7-row-value { font-size: 15px; overflow-wrap: anywhere; }
.qr7-row-error { background: rgba(192, 57, 43, 0.05); }

/* Add ghosts (edit-only): dashed border, accent-deep text, accent hover. */
#info-addrow { padding: 10px 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.qr7-addline {
  flex: 1 1 auto; min-width: 110px; padding: 8px 12px; text-align: center;
  border: 1px dashed var(--border-strong); color: var(--accent-deep);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  text-decoration: none; background: transparent;
}
.qr7-addline:hover, .qr7-addline:focus {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep);
}

/* Quiet per-row remove ✕ (edit-only). */
.qr7-row-x {
  width: 28px; height: 28px; border: 0; background: transparent;
  border-radius: var(--radius); color: var(--text-faint);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.qr7-row-x:hover, .qr7-row-x:focus { color: var(--accent); background: var(--accent-soft); }

/* ── Contacts ledger (Phase 11, D-14 — 11-UI-SPEC) ──────────────────────────
   The saved-contacts list carries the My Info ledger row recipe: grid rows,
   11px/16px padding, hairline separators, --surface-2 hover. Tokens only,
   3px radii. Accent appears ONLY on the avatar chip (the SOURCE profile's
   accent, inline style) and the ACTIVE filter chip — never on row hover,
   inactive chips, badges, or rest-state action buttons (UI-SPEC prohibitions).
   Plan 11-07 extends this block with the inline editor / confirm-strip states
   when it needs them — do not pre-build. */
.qr7-contacts__row {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px;
  align-items: center; padding: 11px 16px;
  border-top: 1px solid var(--border);
}
.qr7-contacts__row:first-child { border-top: 0; }
.qr7-contacts__row:hover { background: var(--surface-2); }

/* 34px round avatar chip — accent bg set inline from the snapshot (available
   rows); the --off variant is the dead-card fallback (no accent, D-07). */
.qr7-contacts__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.qr7-contacts__avatar--off { background: var(--surface-2); color: var(--text-faint); }

.qr7-contacts__identity { min-width: 0; }
.qr7-contacts__name {
  font-size: 15.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qr7-contacts__sub { font-size: 14px; color: var(--text-muted); }

/* Tag chips (D-06): quiet at rest; the ACTIVE filter chip is the one accent
   pairing (mirrors the nav active-state recipe). */
.qr7-contacts__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qr7-contacts__chip {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  background: var(--surface-2); color: var(--text-muted);
  border-radius: var(--radius); text-decoration: none;
}
.qr7-contacts__chip:hover, .qr7-contacts__chip:focus { color: var(--text); }
.qr7-contacts__chip--active { background: var(--accent-soft); color: var(--accent-deep); }

/* "Card unavailable" badge (D-07) — surface-2 / faint, never accent. */
.qr7-contacts__badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
  background: var(--surface-2); color: var(--text-faint);
  border-radius: var(--radius); margin-top: 4px;
}
/* Forwarded chip (Phase 63.1 D-13): a live state, not the faint "unavailable" one. */
.qr7-contacts__badge--forward { color: var(--text-muted); white-space: normal; }

.qr7-contacts__meta { display: flex; align-items: center; gap: 8px; justify-self: end; }
.qr7-contacts__stamp { font-size: 12px; color: var(--text-faint); }
.qr7-contacts__actions { display: flex; gap: 8px; }
.qr7-contacts__actions .btn {
  display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted);
}

/* Mobile (<576px): meta wraps under the identity column; actions collapse to
   icon-only 44x44 hit areas (labels hidden — aria-labels carry the name). */
@media (max-width: 575.98px) {
  .qr7-contacts__row { grid-template-columns: 42px 1fr; }
  .qr7-contacts__meta { grid-column: 2; justify-self: start; }
  .qr7-contacts__actionlabel { display: none; }
  .qr7-contacts__actions .btn {
    width: 44px; height: 44px; justify-content: center; padding: 0;
  }
}

/* === Phase 62: inbox (.qr7-inbox, .qr7-pref*) === */
/* 62-UI-SPEC "CSS (new rules only)", values unchanged. Every selector is new or
   hangs on a .qr7-inbox / .qr7-autosave-pref / --entry hook, so today's Contacts
   page does not change. The three .qr7-pref* aliases sit on the e-mail
   preference rules' selector lists further down. */
.qr7-contacts__avatar--entry { background: var(--surface-2); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); }
.qr7-inbox__reach { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-muted); overflow-wrap: anywhere; }
.qr7-inbox__reach a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.qr7-inbox__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--text-muted); }
.qr7-inbox__status .qr7-contacts__badge { margin-top: 0; }
.qr7-inbox__direction { color: var(--text-muted); }
.qr7-inbox__purge { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--text-muted); }
.qr7-inbox__stamp { color: var(--text-muted); white-space: nowrap; }
.qr7-inbox__saved { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--text-muted); }
.qr7-inbox__divider { margin: 0; padding: 4px 16px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--text-muted); }
.qr7-inbox__divider:first-child { border-top: 0; }
.qr7-inbox__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; margin-bottom: 8px; }
.qr7-inbox__toolbar .btn, .qr7-inbox__confirm-actions .btn, .qr7-inbox__foot .btn { min-height: 44px; }
.qr7-inbox__toolbar--confirm { justify-content: space-between; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.qr7-inbox__question { margin: 0; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.qr7-inbox__confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qr7-inbox__confirm-actions form { margin: 0; }
.qr7-inbox__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 16px; }
.qr7-inbox__suspects-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.qr7-inbox__suspects-link:hover, .qr7-inbox__suspects-link:focus { color: var(--text); }
.qr7-inbox__alert { margin: 0 0 8px; padding: 8px 16px; border: 1px solid var(--danger); border-radius: var(--radius); background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--danger); }
.qr7-inbox__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: 8px; }
.qr7-pref-row { flex-wrap: wrap; }
.qr7-pref-name { min-width: 0; overflow-wrap: anywhere; }
.qr7-autosave-pref .btn { min-height: 44px; }
.qr7-inbox__foot .btn { white-space: normal; text-align: start; }
@media (max-width: 575.98px) {
  .qr7-inbox__saved { min-height: 44px; }
  .qr7-contacts__row--confirm.qr7-inbox__line { grid-template-columns: 1fr; }
}
/* === end Phase 62 inbox === */

/* ── Present mode (Phase 10; redesigned per owner UAT 2026-06-11) ───────────
   The present card now renders the PUBLIC landing page's formatting (.public-*
   vocabulary — hero, identity, fields, links, share section) inside a thin
   full-viewport shell, with the QR de-emphasized in the .public-share section
   instead of being the focal point (it was redundant with the public page).
   100vh fallback line FIRST, then 100dvh (mobile URL-bar correctness); the
   safe-area handling needs viewport-fit=cover on the dashboard viewport meta
   (present, since Plan 10-02). */
.qr7-present {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
}
/* The hosted public-card column keeps its own white bg / 480px cap; on wider
   screens it floats centered on the warm dashboard paper. */
.qr7-present .public-card { box-shadow: var(--shadow-sm); }
/* Quick 261005-ev4: the sharing QR leads the Present card. It floats over the
   hero's bottom edge (the body's -38px pull) as a white panel; identity follows. */
.qr7-present .public-share--top { margin-top: 0; background: #fff; box-shadow: var(--shadow-sm); }
.qr7-present .public-share--top + .public-identity { margin-top: 18px; }

/* ✕ back-to-picker — a white corner chip (the .public-hero__logo--corner
   backing recipe) so it reads over the brand hero gradient OR a banner photo;
   absolutely positioned inside the .public-card (position:relative), 44px hit
   area, safe-area aware. */
.qr7-present__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: #1A1A1F;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.qr7-present__close:hover, .qr7-present__close:focus-visible {
  background: #fff; color: var(--accent-deep);
}

/* ── Intention step (Phase 60, UI-SPEC S1): "What do you want?" before the
   Present card. Three stacked option buttons in the 480px column; the current
   one is soft coral with a check. ── */
.qr7-intent__form { max-width: 480px; margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.qr7-intent__choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; min-height: 64px; padding: 12px 48px 12px 16px; text-align: left;
  background: var(--surface); color: var(--text); font: inherit;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.qr7-intent__choice:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
.qr7-intent__choice:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.qr7-intent__choice--current { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.qr7-intent__choice--current:hover { background: var(--accent-soft); border-color: var(--accent); }
.qr7-intent__choice:disabled { opacity: .5; cursor: not-allowed; }
.qr7-intent__label { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.qr7-intent__desc { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text-muted); }
.qr7-intent__check { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent-deep); display: inline-flex; }
.qr7-intent__hint { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); max-width: 480px; }
.qr7-intent__back { display: inline-flex; align-items: center; gap: 4px; margin-top: 24px; font-size: 14px; min-height: 44px; }

/* Present card intention strip (Phase 60, UI-SPEC S2): what was chosen, and
   Change. Above the card column, outside .public-card, so the ✕ chip never
   overlaps it; Change never leaves the row (the option name wraps first). */
.qr7-present__intent {
  display: flex; align-items: center; gap: 8px; max-width: 480px; margin: 0 auto;
  min-height: 44px; padding: 0 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; line-height: 1.5;
}
.qr7-present__intent-icon { color: var(--text-muted); flex-shrink: 0; display: inline-flex; }
.qr7-present__intent-text { min-width: 0; overflow-wrap: anywhere; }
.qr7-present__intent-text strong { font-weight: 700; }
.qr7-present__intent-change {
  margin-left: auto; flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 4px; color: var(--text); font-weight: 700; text-decoration: underline;
}
.qr7-present__intent-change:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* ── Mobile type scale (owner UAT 2026-06-11: app fonts too small on phones).
   Bumps the token-driven chrome (buttons, nav, ledger, labels) on phone-width
   screens. NOTE: the ~130 inline `font-size:` styles in app templates do NOT
   respond to these tokens — tokenizing them is logged as deferred work. ── */
@media (max-width: 575.98px) {
  /* .qr7-theme re-declares --ui, so :root alone is shadowed on every
     dashboard page (WR-01) — override at equal-or-higher specificity. */
  :root, .qr7-theme { --ui: 15.5px; }
  .form-label { font-size: 13px; }
  .badge { font-size: 12.5px; }
  .qr7-row-label { font-size: 12px; }
  .qr7-row-value { font-size: 16px; }
  .qr7-addline { font-size: 14px; }
}

/* ── Phase 26 MJML preview panel (26-UI-SPEC). Component-scoped qr7-mjml-*
   classes only — NO new global tokens. The compiled email lives INSIDE the
   sandboxed iframe and is NOT themed here; these rules style only the chrome
   AROUND it (frame, --surface-2 toolbar, .qr7-seg device toggle, single
   .btn-brand CTA, captions). The Desktop/Mobile toggle is a pure CSS width
   change driven by two hidden radios — no JS, no MJML recompile (SC#3). ── */
.qr7-mjml-preview { overflow: hidden; }

/* Two hidden radios drive the device width via :checked ~ sibling selectors. */
.qr7-mjml-device-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

/* --surface-2 toolbar band: title (left) + toggle + CTA (right). */
.qr7-mjml-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.qr7-mjml-title { font-size: 20px; line-height: 1.2; margin: 0; margin-right: auto; }

/* Segmented Desktop/Mobile toggle: label variant of .qr7-seg > button. */
.qr7-mjml-seg > label {
  border: 0; background: transparent; font: inherit; font-weight: 600;
  padding: 4px 10px; border-radius: calc(var(--radius) - 3px);
  color: var(--text-muted); cursor: pointer;
}
#qr7-mjml-desktop:checked ~ .qr7-mjml-toolbar .qr7-mjml-seg label[for="qr7-mjml-desktop"],
#qr7-mjml-mobile:checked ~ .qr7-mjml-toolbar .qr7-mjml-seg label[for="qr7-mjml-mobile"] {
  background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-sm);
}

/* Sample-data caption row (quiet, faint). */
.qr7-mjml-caption {
  margin: 0; padding: 8px 16px; font-size: 11px; color: var(--text-faint);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}

/* The stage: the preview iframe is the focal surface. A loading caption sits
   behind it (revealed only while the iframe paints) so there is a loading
   state without JS. */
.qr7-mjml-stage {
  position: relative; display: flex; justify-content: center;
  padding: 20px; background: var(--surface-2);
}
.qr7-mjml-loading {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  text-align: center; font-size: 11px; color: var(--text-muted);
}
.qr7-mjml-stage iframe {
  position: relative; width: 600px; max-width: 100%; height: 640px;
  border: 0; background: #fff; box-shadow: var(--shadow-sm);
  transition: width .2s ease;
}
/* Mobile segment -> 375px; Desktop (default) -> 600px. CSS-only, no recompile. */
#qr7-mjml-mobile:checked ~ .qr7-mjml-stage iframe { width: 375px; }

/* Send-test failure alert sits inline beside the CTA. */
.qr7-mjml-sendfail { font-size: 12px; }

/* ════════════════════════════════════════════════════════════════════════════
   Build 1 shell IA (Phase 31) — additive ONLY. The Claude-desktop bottom-left
   account element + persistent Support affordance. NOTHING here edits the locked
   recipes (.qr7-nav .nav-link, .qr7-nav .nav-link.active, .qr7-shell-sidebar,
   .qr7-iconbtn) — they stay byte-identical above. Existing tokens only; neutral
   surfaces (NO accent fill — single-accent discipline keeps accent on the active
   nav item alone).
   ════════════════════════════════════════════════════════════════════════════ */

/* The product nav grows to fill the sidebar so the Support affordance + account
   element are pinned to the bottom of .qr7-shell-sidebar (a flex column). */
.qr7-nav { flex: 1 1 auto; }
/* The staff KPI console's horizontal tab bar reuses .qr7-nav for the link look,
   but must not grow like the sidebar nav (it stretched to ~40% of the viewport). */
.qr7-nav.qr7-console-nav { flex: 0 0 auto; align-items: center; }

/* Make the desktop sidebar a fixed viewport-height flex column where ONLY the
   product nav scrolls internally, so the bottom-anchored Support + account
   element are ALWAYS visible — regardless of main-content height, nav length,
   or viewport height. The prior fix put overflow-y:auto on the WHOLE sidebar;
   on a short/zoomed viewport the sidebar's own content overflowed and the
   account element scrolled out of the sidebar's scroll region (still clipped).
   Additive: adds sticky + viewport height + nav-only scroll WITHOUT editing the
   locked .qr7-shell-sidebar recipe above. Desktop only — the ≤768px layout
   stacks the sidebar horizontally (its own media query), so this override is
   scoped above that breakpoint. */
@media (min-width: 769px) {
  /* Pin the sidebar to the viewport so it never grows past the screen. The main
     column can be far taller (content-heavy Overview) — the sidebar must not
     stretch with it. height:100vh + the nav-only internal scroll below already
     box the sidebar's own content to the viewport, so overflow stays VISIBLE:
     that lets the bottom account dropup (Bootstrap dropup) paint OUTSIDE the
     240px sidebar — over the main column and wider than the sidebar — instead of
     being clipped to the sidebar's right edge. The sidebar itself still never
     scrolls (only .qr7-nav does, below); flex containment, not the box clip,
     keeps Support + account pinned. */
  .qr7-shell-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    /* Lift the sidebar's stacking context above the main column's content
       boxes. The sticky position already makes this a stacking context at
       z-index:auto(0); the content cards are later DOM siblings at the same
       level, so without this they paint over the account dropup that now
       overflows into the main column. Kept well below Bootstrap's modal /
       offcanvas z-indexes (1040+) so the sign-out modal still overlays. */
    z-index: 30;
  }
  /* The product nav is the ONLY scroll region. min-height:0 lets this flex
     child actually shrink below its content size so overflow-y can scroll it
     (without min-height:0 a flex item refuses to shrink past content and the
     scroll never engages). */
  .qr7-nav {
    min-height: 0;
    overflow-y: auto;
  }
  /* Support (D3) + account (D1) never shrink — they stay pinned at the bottom
     and remain visible even when the sidebar's own content exceeds the viewport
     (short/zoomed laptop). */
  .qr7-sidebar-support,
  .qr7-account {
    flex: 0 0 auto;
  }
}

/* Persistent Support (D3) — separated from the product nav by a hairline top
   border; reuses the .qr7-nav .nav-link look (active recipe untouched). */
.qr7-sidebar-support {
  border-top: 1px solid var(--border);
  padding-top: var(--pad-sm);
  margin-top: var(--pad-sm);
}

/* Quick 261005-tmx — unread dot on the sidebar "News" link (neutral ink: the
   accent stays reserved for the active nav item). */
.qr7-nav-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  margin-left: 6px;
  vertical-align: middle;
}

/* Bottom account element (D1) — pinned bottom-left, hairline-separated. */
.qr7-account {
  border-top: 1px solid var(--border);
  padding-top: var(--pad-sm);
  margin-top: var(--pad-sm);
}
.qr7-account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.qr7-account-trigger:hover { background: var(--surface-2); border-color: var(--border); }
.qr7-account-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.qr7-account-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.qr7-account-name { color: var(--text); font-weight: 600; font-size: var(--ui); }
.qr7-account-org { color: var(--text-muted); font-size: 12px; }

/* The account dropup is intentionally allowed to overflow the sidebar to the
   right (the desktop sidebar is overflow:visible for exactly this). It sizes to
   its content between a comfortable floor and a bounded ceiling so long items
   (e.g. a full workspace name) get more room instead of truncating at the
   sidebar edge, while never running off the right of the screen. */
.qr7-account-menu { min-width: 240px; max-width: min(360px, 92vw); }

/* ════════════════════════════════════════════════════════════════════════════
   Build 2 team picker (Phase 31) — additive ONLY. The full-page login team-picker
   interstitial (orgs/choose.html) a ≥2-org user with no active org lands on. Uses
   existing tokens only; neutral card surfaces with a hover lift — NO accent fill
   (single-accent discipline). Nothing here edits a locked recipe.
   ════════════════════════════════════════════════════════════════════════════ */

.qr7-picker {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: var(--bg);
}
.qr7-picker-inner { width: 100%; max-width: 560px; }
.qr7-picker-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--pad);
}
.qr7-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--pad-sm);
}
.qr7-picker-cardform { margin: 0; }
.qr7-picker-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: var(--pad-sm);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.qr7-picker-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-faint);
  box-shadow: 0 4px 14px rgba(40, 30, 20, 0.08);
}
.qr7-picker-card-name { color: var(--text); font-weight: 600; font-size: var(--ui); }
.qr7-picker-card-meta { color: var(--text-muted); font-size: 12px; }
.qr7-picker-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.qr7-picker-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 7px;
}
@media (prefers-reduced-motion: reduce) {
  .qr7-picker-card { transition: none; }
  .qr7-picker-card:hover { transform: none; }
}

/* ── Build 3 settings hub (Phase 31 / D6) ──────────────────────────────────────
   Additive only. Neutral tabs whose ONLY accented surface is the active tab
   indicator (single-accent discipline); link-cards for the Account tab; per-list
   email-preference rows for the Email tab. Locked recipes untouched. */
.qr7-settings-tabs.nav-tabs {
  border-bottom: 1px solid var(--border);
  gap: 2px;
}
.qr7-settings-tabs .nav-link {
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 14px;
  font-size: var(--ui);
  font-weight: 600;
}
.qr7-settings-tabs .nav-link:hover { color: var(--text); }
.qr7-settings-tabs .nav-link.active {
  color: var(--accent-deep);
  background: transparent;
  border-bottom-color: var(--accent);
}
.qr7-settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--pad-sm);
  max-width: 760px;
}
a.qr7-settings-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
a.qr7-settings-link:hover {
  border-color: var(--text-faint);
  box-shadow: 0 4px 14px rgba(40, 30, 20, 0.08);
}
.qr7-email-prefs, .qr7-prefs { max-width: 560px; }
.qr7-email-pref-row, .qr7-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad-sm);
}
.qr7-email-pref-name, .qr7-pref-name { color: var(--text); font-size: var(--ui); }
/* Phase 61 (61-08, S9): the reply-e-mail switch keeps the 44px touch floor. */
.qr7-reply-pref { flex-wrap: wrap; }
.qr7-reply-pref .btn { min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  a.qr7-settings-link { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PHASE 32 — Contextual help (Build B)

   Additive, NEUTRAL only — zero accent (single-accent discipline: accent stays
   reserved for the active .qr7-nav item). Existing tokens only; the locked
   .qr7-iconbtn / .qr7-nav / .qr7-shell* / .qr7-account* recipes are NOT edited.
     - .qr7-screen-header : per-screen title row (title left, contextual `?` right)
     - .qr7-help-article  : CMS help-article prose column (max 680px reading measure)
     - .qr7-help-back     : neutral `← Back` control baked into the help template
   ════════════════════════════════════════════════════════════════════════════ */

/* Shared per-screen header: title left, graceful-hide `?` pinned right. */
.qr7-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad-sm);
  margin-bottom: var(--pad);
}
.qr7-screen-header > :first-child { min-width: 0; } /* title truncates/wraps; `?` stays pinned right at 390px */

/* Phase 33 D-01 — ADDITIVE extension of .qr7-screen-header (do NOT edit the locked
   recipe above). Top-aligns the right cluster to the title row when a subtitle
   and/or actions are present, so the ? stays pinned far-right while the subtitle
   flows beneath the title. Neutral only — single-accent discipline. */
.qr7-screen-header--stacked { align-items: flex-start; }
.qr7-screen-header--stacked > .qr7-screen-header__lead { min-width: 0; }
.qr7-screen-header__actions { flex: 0 0 auto; }

/* Help-article reading column — neutral prose on --surface/--bg, 3-tier scale. */
.qr7-help-article { max-width: 680px; margin-inline: auto; font-size: 16px; line-height: 1.5; }
.qr7-help-article h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.qr7-help-article h2 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.qr7-help-article > * + * { margin-top: var(--pad); } /* vertical block rhythm */

/* Smart Back control — neutral ghost/link (mirrors .btn-ghost / account-trigger hover). */
.qr7-help-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 8px 10px;
  min-height: 44px;
  margin-bottom: var(--pad);
}
.qr7-help-back:hover { color: var(--text); background: var(--surface-2); }

/* ════════════════════════════════════════════════════════════════════════════
   Phase 34-04 help-shell CMS-toolbar compensation (D-02) — ADDITIVE ONLY. Does
   NOT edit the LOCKED global `.qr7-shell-sidebar` sticky recipe (the
   `@media (min-width: 769px)` block above, lines ~957-983); it OVERRIDES it only
   in the one state that breaks the pin.

   Root cause: the in-shell help base (templates/help/base_help_shell.html →
   `.qr7-shell.qr7-help-shell`) is the ONLY authed shell that renders
   `{% cms_toolbar %}`. For a STAFF user the django CMS toolbar shifts the WHOLE
   document down by its own height — it applies `margin-top` to `<html>` and flags
   that state with the `cms-toolbar-expanded` class on `<html>` (django CMS 5.x,
   cms.toolbar.js `_show`; the height is the compile-time `$toolbar-height: 46px`).
   The locked sidebar recipe (`top:0; height:100vh; overflow:hidden`) then overflows
   the viewport by the toolbar height, so its bottom band — the `.qr7-account`
   element — is pushed past the clipped bottom edge and never pins.

   Fix: ONLY when the toolbar is present (`html.cms-toolbar-expanded`), shrink the
   sticky sidebar by the toolbar height and drop its sticky `top` by the same
   amount, so the account element stays inside the viewport and pins. django CMS
   5.x exposes NO runtime toolbar-height custom property, so `46px` is the concrete
   fallback; if a future CMS version publishes `--cms-toolbar-height` it wins
   automatically. NON-staff visitors have no toolbar / no class → this never
   applies and the sidebar degrades to the exact locked app-shell recipe
   (100vh / top:0). Neutral only — no accent fill. */
@media (min-width: 769px) {
  html.cms-toolbar-expanded .qr7-help-shell .qr7-shell-sidebar {
    height: calc(100vh - var(--cms-toolbar-height, 46px));
    top: var(--cms-toolbar-height, 46px);
  }
}

/* Phase 34-04 help-shell legal footer (D-03) — ADDITIVE, NEUTRAL. A border-top
   band inside `.qr7-shell-main`, below the help content, replicating the marketing
   footer (brandmark + copyright + build stamp on the left, the `legal` menu group
   on the right). Existing tokens only (--surface/--border/--text-muted); NO accent
   fill — single-accent discipline keeps accent on the active nav item alone. Any
   link accent comes only from the existing Bootstrap nav-link hover. */
.qr7-shell-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--pad-sm) var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--pad-sm);
  align-items: flex-start;
  justify-content: space-between;
}
.qr7-shell-footer .qr7-shell-footer-meta { color: var(--text-muted); font-size: 12px; }
.qr7-shell-footer .qr7-shell-footer-meta .qr7-brandmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  padding: 0;
}
.qr7-shell-footer nav .nav { gap: var(--pad-sm); }
@media (min-width: 769px) {
  .qr7-shell-footer { flex-direction: row; align-items: center; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Phase 34-05 — News announce bar (D-06) — ADDITIVE, NEUTRAL. A dismissible band
   rendered as the first child of .qr7-shell-main in BOTH authenticated shells.
   Existing tokens only; NO accent fill — single-accent discipline keeps accent on
   the active nav item. The ONLY warm hue is the .qr7-link "Read more" (locked
   recipe, not edited here). No animation → reduced-motion safe by construction.
   ════════════════════════════════════════════════════════════════════════════ */
.qr7-announce {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.qr7-announce-icon { color: var(--text-muted); flex: 0 0 auto; display: block; }
.qr7-announce-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--text-faint);
  flex: 0 0 auto;
}
/* Headline: chrome UI size, truncates with ellipsis on desktop. The accent-deep
   link colour comes from the locked .qr7-link recipe on the same element. */
.qr7-announce-msg {
  font-size: var(--ui);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qr7-announce-date { color: var(--text-faint); font-size: 12px; flex: 0 0 auto; }
.qr7-announce-dismiss { margin-left: auto; flex: 0 0 auto; margin-bottom: 0; }

/* <576px: let the message wrap to a second line; keep the icon + eyebrow on line 1
   and pin the ✕ top-right (align-items: flex-start). */
@media (max-width: 575.98px) {
  .qr7-announce { align-items: flex-start; flex-wrap: wrap; }
  .qr7-announce-msg { white-space: normal; flex: 1 1 100%; order: 3; }
  .qr7-announce-date { order: 4; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Public pricing page (quick 260914-tzl) — templates/marketing/pricing.html.
   Built only on existing tokens. The amounts themselves come from the catalog;
   these rules only size and colour them. No accent fill: the header's
   "Get started" stays the one filled accent control on the screen.
   ════════════════════════════════════════════════════════════════════════════ */
.qr7-pricing-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.qr7-pricing-price { margin-bottom: 4px; }
.qr7-pricing-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.qr7-pricing-gross { margin-bottom: 8px; font-size: 13px; }
.qr7-pricing-seat { margin-bottom: 4px; font-size: 12px; color: var(--accent-deep); }
.qr7-pricing-features {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  font-size: 13px;
}
.qr7-pricing-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.qr7-pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.qr7-pricing-limits {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.qr7-pricing-limits > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-top: 1px solid var(--border);
}
.qr7-pricing-limits dt { font-weight: 400; }
.qr7-pricing-limits dd { margin: 0; font-family: var(--font-mono); }
/* Monthly / Yearly switch (quick 261009-q17). Two radios in a fieldset above the
   cards; no JS. :has() hides the other interval's block; without CSS (or without
   :has support) both blocks show, each with its own /mo or /yr. */
.qr7-interval-switch {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 20px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.qr7-interval-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.qr7-interval-switch label {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.qr7-interval-switch input:checked + label {
  background: var(--accent);
  color: var(--accent-ink);
}
.qr7-interval-switch input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.qr7-pricing:has(#interval-monthly:checked) .qr7-interval--yearly,
.qr7-pricing:has(#interval-yearly:checked) .qr7-interval--monthly {
  display: none;
}
.qr7-pricing-includes { margin: 8px 0 0; font-size: 13px; font-weight: 600; }


/* === Phase 64: placeholder (.qr7-placeholder) === */
/* The D-16 / D-06 quiet placeholder (64-UI-SPEC S1 "New assets"): stands in for a
   screen or area the organisation's plan does not include. Phase 64 ships the base
   and the --block variant; Phase 64.1 appends its own size modifiers. Existing
   tokens only. Grows vertically; the body wraps and never scrolls or clips. */
.qr7-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);color:var(--text-muted);}
.qr7-placeholder--block{min-height:240px;padding:48px 24px;}
@media (max-width:575.98px){.qr7-placeholder--block{padding:32px 16px;}}
.qr7-placeholder__icon{color:var(--text-faint);line-height:0;}
.qr7-placeholder__title{margin:0;font-size:16px;font-weight:700;line-height:1.3;color:var(--text);}
.qr7-placeholder__body{margin:0;max-width:460px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.qr7-placeholder__cta{margin-top:8px;}
/* === end Phase 64 placeholder === */
/* === Phase 64.1: subscription screen (.qr7-subscreen) === */
/* The Present subscription screen (64.1 UI-SPEC S4): the offer column first, the
   card preview second, one column below 576px with a full-width 44px button. */
.qr7-subscreen{display:flex;flex-wrap:wrap;align-items:flex-start;gap:24px;max-width:760px;}
.qr7-subscreen__offer{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:16px;}
.qr7-subscreen__lead{margin:0;font-size:16px;font-weight:700;line-height:1.3;color:var(--text);overflow-wrap:anywhere;}
.qr7-subscreen__text{margin:0;font-size:14px;line-height:1.5;color:var(--text-muted);overflow-wrap:anywhere;}
.qr7-subscreen__note{margin:0;font-size:12px;line-height:1.4;color:var(--text-muted);overflow-wrap:anywhere;}
.qr7-subscreen__cta{min-height:44px;}
.qr7-subscreen__preview{flex:0 1 304px;display:flex;justify-content:center;padding:24px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);}
@media (max-width:575.98px){
  .qr7-subscreen__preview{flex-basis:100%;padding:16px;}
  .qr7-subscreen__offer form,.qr7-subscreen__cta{width:100%;}
}
/* The QR placeholder sizes (64.1 UI-SPEC "New assets", D-06): the profile card's
   76px thumbnail slot (body hidden; the region's aria-label carries it) and the
   composer's mini-card slot, which grows with its wrapped title and body. */
.qr7-placeholder--thumb{width:76px;height:76px;padding:0;gap:0;flex-shrink:0;}
.qr7-placeholder--thumb .qr7-placeholder__body{display:none;}
.qr7-placeholder--tile{min-height:148px;padding:16px;}
/* === end Phase 64.1 subscription screen === */
/* === Quick 261005-k3m: sales home page (.qr7-sales-*) === */
/* The CMS home (marketing/home.html). The copy is TextPlugin HTML seeded by
   waitlist/home_copy.py; these classes survive the djangocms-text sanitizer.
   Existing tokens only: warm paper, coral accent, 3px radius. */
.qr7-sales-eyebrow{display:inline-block;margin:0 0 12px;padding:4px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent-deep);font-size:13px;font-weight:600;}
.qr7-sales-title{font-family:var(--font-display);font-weight:var(--display-weight);letter-spacing:var(--display-tracking);font-size:clamp(32px,5vw,52px);line-height:1.08;max-width:18ch;margin:0 0 16px;}
.qr7-sales-lead{font-size:clamp(17px,2vw,20px);line-height:1.5;color:var(--text-muted);max-width:60ch;margin:0 0 24px;}
.qr7-sales-note{font-size:13px;color:var(--text-muted);margin:12px 0 0;}
.qr7-sales-cta{margin:0;}
.qr7-sales-section{padding:48px 0 8px;}
/* Header anchors (quick 261009-q17): keep the heading clear of the header. */
.qr7-sales-section[id]{scroll-margin-top:80px;}
.qr7-sales-section h2{font-weight:700;letter-spacing:var(--display-tracking);font-size:clamp(24px,3vw,32px);margin:0 0 8px;}
.qr7-sales-section-lead{color:var(--text-muted);max-width:62ch;margin:0 0 24px;}
.qr7-sales-step,.qr7-sales-benefit{height:100%;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);}
.qr7-sales-step h3,.qr7-sales-benefit h3{font-size:17px;font-weight:700;margin:0 0 6px;}
.qr7-sales-step p,.qr7-sales-benefit p{margin:0;color:var(--text-muted);font-size:15px;line-height:1.5;}
.qr7-sales-step-num{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin-bottom:12px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-family:var(--font-mono);font-weight:600;}
.qr7-sales-benefit{border-top:3px solid var(--accent);}
.qr7-sales-prices{margin-bottom:16px;}
.qr7-sales-price{display:flex;flex-direction:column;gap:4px;padding:16px;color:var(--text);text-decoration:none;}
.qr7-sales-price:hover{border-color:var(--accent);color:var(--text);}
.qr7-sales-price-name{font-weight:700;}
.qr7-sales-price-amount{font-size:22px;font-weight:700;}
.qr7-sales-faq details{padding:14px 0;border-top:1px solid var(--border);}
.qr7-sales-faq details:last-child{border-bottom:1px solid var(--border);}
.qr7-sales-faq summary{font-weight:600;cursor:pointer;}
.qr7-sales-faq details p{margin:8px 0 0;color:var(--text-muted);max-width:70ch;}
.qr7-sales-final{margin-top:56px;padding-top:40px;border-top:1px solid var(--border);}
.qr7-sales-final h2{font-weight:700;margin:0 0 8px;}
.qr7-sales-final p{color:var(--text-muted);margin:0 0 20px;max-width:60ch;}
.qr7-sales-compliance{font-size:13px;color:var(--text-faint);margin:24px 0 0;}
/* === end quick 261005-k3m === */

/* Home hero animation (docs/superpowers/specs/2026-10-10-lottie-echange-contact-design.md) */
.qr7-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .qr7-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.qr7-hero-anim { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center; }
.qr7-hero-anim__still, .qr7-hero-anim__stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.qr7-hero-anim__toggle { position: absolute; left: 8px; bottom: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--surface-2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; }
.qr7-hero-anim__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
