/* Rankeraxe design system.
   Palette derived from master plan §5 (navy #10243A, blue #173A63, teal #69D9C2); not a locked brand.
   Rules: no external fonts or assets (CSP: style-src 'self', img-src 'self' data:), no JavaScript, no inline styles.
   Every text/background pair below meets WCAG AA (4.5:1 for body text) in light and dark mode. */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-950: #050c19; --navy-900: #0a1628; --navy-800: #10243a; --navy-700: #173a63;
  --teal: #6ee0c8; --teal-hover: #93ebd9; --teal-ink: #032a22;

  --bg: #f7f9fc; --surface: #ffffff; --surface-2: #f1f4f9; --surface-3: #e8edf4;
  --qr-bg: #ffffff; /* B144: a QR code needs a light quiet zone in both themes */
  --ink: #0b1526; --ink-2: #334155; --muted: #586579; --line: #e2e8f0; --line-strong: #cbd5e1;
  --link: #0a6b5c; --link-hover: #064e43; --focus: #0a7d6b;
  --accent-soft: #e3f7f2; --accent-line: #a9e7da; --accent-ink: #0a5c4f;

  --crit: #b42318; --high: #c4320a; --med: #b54708; --low: #3b5a7a; --info: #55657a; --ok: #067647;
  --ok-bg: #e8f8ef; --ok-ink: #05603a; --warn-bg: #fff7e6; --warn-line: #f3d39b; --warn-ink: #6b4700;
  --err-bg: #fef1f0; --err-line: #f7c1bb; --err-ink: #a11b12; --info-bg: #eef4fb; --info-line: #c9daee; --info-ink: #1d3f66;

  --font: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 30px 80px -30px rgba(2, 8, 23, .55);
  --header-h: 68px;

  /* B77 (OA-42): one scale for type, spacing, radius, motion and line length. Components use these, not one-offs. */
  --accent-strong: #0a7d6b; --teal-line: #4fcfb4; --crit-hover: #912018;
  --focus-ring: 0 0 0 4px rgba(10, 125, 107, .15);
  --text-xs: .75rem; --text-sm: .875rem; --text-md: 1rem; --text-lg: 1.125rem; --text-xl: 1.25rem;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --radius-xs: 6px; --radius-md: 10px; --radius-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1); --dur-fast: .15s; --dur: .2s;
  --measure: 72ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060c17; --surface: #0c1524; --surface-2: #101c30; --surface-3: #16243b;
    --ink: #e8edf5; --ink-2: #c4cedc; --muted: #9babbf; --line: #1c2a40; --line-strong: #2b3b56;
    --link: #79e3cd; --link-hover: #a5eedf; --focus: #79e3cd;
    --accent-soft: #0b2a27; --accent-line: #17544b; --accent-ink: #9ff0de;
    --ok-bg: #0b2a1c; --ok-ink: #8ee6b3; --warn-bg: #2a1f0a; --warn-line: #5c4313; --warn-ink: #f6dfae;
    --err-bg: #2c1110; --err-line: #6b2620; --err-ink: #ffbdb6; --info-bg: #0f1d33; --info-line: #22395a; --info-ink: #bcd3f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .6);
    --focus-ring: 0 0 0 4px rgba(121, 227, 205, .2);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
main { display: block; min-height: 50vh; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: inherit; }
h1 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); margin: .2em 0 .45em; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
code, kbd, pre { font-family: var(--mono); font-size: .86em; }
code { word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: .08em .38em; }
pre { overflow-x: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
pre code { background: none; border: 0; padding: 0; }
.draft-body { white-space: pre-wrap; overflow-wrap: anywhere; }  /* B95: drafts of the owner consoles wrap */
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: #b8efe2; color: #04261f; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- 3. Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.section { padding-top: 40px; padding-bottom: 8px; }
.section > h2:first-child, .section > .eyebrow + h1 { margin-top: 0; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.show-xs { display: none; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 4px; }
.eyebrow a { color: inherit; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--ink-2); max-width: 46rem; }

.prose { max-width: 800px; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--muted); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: rgba(7, 16, 31, .97); border-bottom: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-md); color: var(--teal-ink);
  background: linear-gradient(140deg, #9af0de 0%, #5fd6bd 55%, #2fae96 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -6px rgba(95, 214, 189, .6);
}
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.nav-desktop { flex: 1; display: flex; justify-content: center; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; color: #c9d5e4; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .btn-ghost { color: #e2e9f2; border-color: rgba(255, 255, 255, .22); }
.site-header .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.site-header :focus-visible { outline-color: var(--teal); }

.menu { display: none; }
.menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #fff; font-weight: 600; font-size: .9rem;
  padding: 8px 10px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, .22);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255, 255, 255, .1); }
.menu-panel {
  position: absolute; right: 16px; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); }

/* B139 (P1, P14): the header keeps one line from 921px up: a wider row than the page, nothing wraps, and on app
   pages (more buttons) the compact menu takes over below 1180px. The Beta badge sits beside the logo at every width. */
.site-header .wrap.header-row { max-width: 1440px; }
.nav { flex-wrap: nowrap; }
.nav a { white-space: nowrap; }
.header-actions { flex: none; }
.header-actions .btn { white-space: nowrap; }
.header-row .beta-badge { margin-inline-start: -10px; }
@media (max-width: 1240px) {
  .header-row { gap: 14px; }
  .nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 1180px) {
  .is-app .nav-desktop { display: none; }
  .is-app .menu { display: block; }
  .is-app .header-row .beta-badge { margin-inline-end: auto; }
}
@media (max-width: 920px) { .header-row .beta-badge { margin-inline-end: auto; } }

/* ---------- 5. Buttons ---------- */
button, .btn, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; letter-spacing: -0.005em;
  border-radius: var(--radius-md); padding: 12px 20px; cursor: pointer; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
button, .btn-primary {
  background: var(--teal); color: var(--teal-ink); border-color: var(--teal-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px -8px rgba(47, 174, 150, .65);
}
button:hover, .btn-primary:hover { background: var(--teal-hover); color: var(--teal-ink); }
button:active, .btn:active, .button-secondary:active { transform: translateY(1px); }
.button-secondary, .btn-secondary, button.button-secondary {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm);
}
.button-secondary:hover, .btn-secondary:hover, button.button-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }
button.button-danger, .btn-danger { background: var(--crit); color: #fff; border-color: var(--crit); box-shadow: none; }
button.button-danger:hover, .btn-danger:hover { background: var(--crit-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn .icon { width: 1.05em; height: 1.05em; }
button:disabled { opacity: .55; cursor: not-allowed; }
p > .button-secondary, p > .btn { margin: 0 6px 8px 0; }

/* ---------- 6. Forms ---------- */
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"],
input[type="search"], input[type="date"], input[type="tel"], input[type="file"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); padding: 11px 13px; min-width: 0; max-width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: #6b7789; }
@media (prefers-color-scheme: dark) { input::placeholder, textarea::placeholder { color: #8d9aad; } }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: var(--focus-ring); }
input[aria-invalid="true"] { border-color: var(--crit); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-strong); width: 1.05em; height: 1.05em; vertical-align: -0.12em; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 16px; margin: 8px 0; min-width: 0; }
legend { font-weight: 650; padding: 0 6px; }
.stack-form { display: grid; gap: 8px; max-width: 560px; margin: 20px 0; }
.stack-form label { font-weight: 600; font-size: .94rem; margin-top: 8px; }
.stack-form fieldset label { font-weight: 450; display: block; margin-top: 6px; }
.stack-form button { justify-self: start; margin-top: 10px; }
.form-error { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0 0; }
.form-note { font-size: .875rem; color: var(--muted); margin: 8px 0 0; }
.inline-form { display: inline; }
.inline-form button { padding: 5px 12px; margin-left: 8px; font-size: .85rem; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions button, .row-actions .button-secondary { padding: 7px 13px; font-size: .86rem; }
.row-actions form { margin: 0; }
form .button-secondary { background: var(--surface); }

/* Audit form (home, free tools) */
.audit-form { margin-top: 28px; }
.audit-form label { display: block; font-weight: 650; margin-bottom: 8px; }
.audit-row { display: flex; gap: 10px; flex-wrap: wrap; }
.audit-row input { flex: 1 1 260px; font-size: 1.05rem; padding: 14px 16px; }
.audit-row button { padding: 14px 24px; font-size: 1rem; }
.section .audit-row input { border-color: var(--line-strong); }

/* ---------- 7. Badges, notices ---------- */
.badge {
  display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.5;
  border-radius: var(--radius-pill); padding: 2px 10px; vertical-align: middle; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge.live { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
/* Built and usable in the development preview; not yet verified with real customers. */
.badge.preview { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.badge.planned { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
/* B51 feature catalogue: partly built, and waiting for an owner step. */
.badge.partial { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.badge.owner { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.sev-critical { --sev: var(--crit); } .sev-high { --sev: var(--high); } .sev-medium { --sev: var(--med); }
.sev-low { --sev: var(--low); } .sev-info { --sev: var(--info); }
.cmp-good { --sev: var(--ok); } .cmp-bad { --sev: var(--med); }
.badge.sev-critical, .badge.sev-high, .badge.sev-medium, .badge.sev-low, .badge.sev-info { background: var(--sev); color: #fff; border-color: transparent; }

.notice { background: var(--info-bg); color: var(--ink); border: 1px solid var(--info-line); border-left: 4px solid var(--navy-700); padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; }
.notice p:last-child { margin-bottom: 0; }
.notice-error, .notice.error { background: var(--err-bg); border-color: var(--err-line); border-left-color: var(--crit); }
.ai-box { background: var(--accent-soft); border: 1px solid var(--accent-line); border-left: 4px solid var(--accent-strong); border-radius: var(--radius); padding: 16px 20px; }
@media (prefers-color-scheme: dark) { .notice { border-left-color: #5b8cc7; } .ai-box { border-left-color: var(--teal); } }

/* ---------- 8. Cards, lists, tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.card > :first-child { margin-top: 0; } .card > :last-child { margin-bottom: 0; }
.plain-list { list-style: none; padding: 0; margin: 12px 0; }
.plain-list li { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.grid-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.grid-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
details summary { cursor: pointer; font-weight: 600; color: var(--link); }
dl { margin: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; font-size: .9rem; background: var(--surface-2); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.plain { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.plain form { margin: 0; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 56px 0 80px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(110, 224, 200, .16) 0%, rgba(110, 224, 200, 0) 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(73, 128, 214, .22) 0%, rgba(73, 128, 214, 0) 60%),
    linear-gradient(165deg, var(--navy-900) 0%, #0d2140 55%, var(--navy-800) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; margin: 18px 0 20px; max-width: 20ch; }
.hero .lead { color: #c8d4e3; }
.hero a { color: var(--teal); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; color: var(--teal-hover); background: rgba(110, 224, 200, .09);
  border: 1px solid rgba(110, 224, 200, .28); border-radius: var(--radius-pill); padding: 6px 12px; letter-spacing: .1em;
}
.hero-form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 4px 22px 20px; margin-top: 28px; box-shadow: var(--shadow-lg); }
.hero-form .audit-form { margin-top: 18px; }
.hero .audit-form label { color: #fff; }
.hero .audit-row input { background: #fff; color: #0b1526; border-color: #fff; }
.hero .audit-row input::placeholder { color: #64748b; }
.hero .form-note { color: #ccd7e4; }  /* B65: passes on every stop of the hero gradients */
.hero .form-error { background: #fff1f0; color: #a11b12; border-color: #f7c1bb; }
.hero :focus-visible { outline-color: var(--teal); }
.hero-assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 20px 0 0; color: #c8d4e3; font-size: .92rem; }
.hero-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurances .icon { color: var(--teal); }
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 26px 26px 22px; box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hero-card-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.hero-card-head p { margin: 2px 0 0; color: #a9b8cb; }
.hero-card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(110, 224, 200, .12); color: var(--teal); }
.hero-card-icon .icon { width: 22px; height: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: #e1e8f1; font-size: .95rem; line-height: 1.45; }
.checks .icon { color: var(--teal); margin-top: 2px; }
.hero-card-foot { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #a9b8cb; }
.hero-compact { padding: 56px 0 64px; }

/* ---------- 10. Marketing sections ---------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; padding: 22px 18px; border-left: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.trust-list .icon { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }

.section-block { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; margin: 8px 0 14px; }
.section-head-left { text-align: left; margin-left: 0; }
.section-lead { font-size: 1.08rem; color: var(--muted); margin: 0 auto; }
.section-block h2 { letter-spacing: -0.03em; }

.steps-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.step h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 750;
  background: var(--navy-900); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(110, 224, 200, .3);
}
.steps { padding-left: 1.2rem; } .steps li { margin-bottom: 8px; }

.feature-grid, .pillar-grid, .plan-teaser { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 40px; }
.plan-teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 32px; }
.feature-grid .card, .pillar-grid .card, .plan-teaser .card { margin: 0; padding: 26px; border-radius: var(--radius-lg); }
.section-alt .card { background: var(--bg); }
.card h3 { margin: 16px 0 8px; font-size: 1.1rem; }
.card-feature p, .pillar p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.card-icon .icon { width: 22px; height: 22px; }
.pillar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-teaser h3 { margin-top: 0; }
.plan-teaser-line { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 8px 0 16px; }
.split-copy .section-lead { margin: 0 0 24px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.tick-list .icon { color: #fff; background: var(--accent-strong); border-radius: var(--radius-pill); padding: 3px; width: 22px; height: 22px; stroke-width: 2.6; margin-top: 2px; }

.specimen { margin: 0; position: relative; }
.specimen::before {
  content: ""; position: absolute; inset: -24px; border-radius: 28px; z-index: 0;
  background: radial-gradient(60% 60% at 70% 30%, rgba(110, 224, 200, .25), transparent 70%), radial-gradient(50% 50% at 20% 90%, rgba(73, 128, 214, .18), transparent 70%);
}
.specimen-cap { position: relative; z-index: 1; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.specimen-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--high); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow); }
.specimen-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 1.1rem; }
.specimen-head .badge { background: var(--high); color: #fff; border-color: transparent; }
.specimen-card p { color: var(--ink-2); font-size: .95rem; }
.specimen-meta { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .88rem; }
.specimen-meta div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.specimen-meta dt { color: var(--muted); font-weight: 600; }
.specimen-meta dd { margin: 0; color: var(--ink-2); }

.section-dark {
  color: #fff;
  background: radial-gradient(50% 80% at 100% 0%, rgba(110, 224, 200, .12), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.section-dark .eyebrow { color: var(--teal); }
.section-dark .section-lead { color: #b8c6d8; }
.section-dark :focus-visible { outline-color: var(--teal); }
.control-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.control-grid li { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 22px; }
.control-grid .icon { width: 26px; height: 26px; color: var(--teal); }
.control-grid h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.control-grid p { margin: 0; color: #b8c6d8; font-size: .93rem; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; color: var(--ink); font-size: 1.04rem; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--ink-2); margin: 0 4px 22px; max-width: 62ch; }

.cta-panel {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  color: #fff; border-radius: 24px; padding: 56px 56px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(110, 224, 200, .25), transparent 60%), linear-gradient(140deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-panel p { margin: 0; color: #c0cddd; max-width: 46ch; }
.cta-panel :focus-visible { outline-color: var(--teal); }

/* ---------- 11. Content pages ---------- */
.center-block, .page-hero .lead.center-block { margin-left: auto; margin-right: auto; }
.tick-list + p { margin-top: 18px; }
.center-notice { max-width: 760px; margin: 0 auto 32px; }
.beta-notices { max-width: 760px; margin: 0 auto 32px; }
.beta-notices .notice { max-width: none; margin: 0 0 12px; text-align: left; }
.split-top { align-items: start; }
.split-top h2 { margin-top: 0; }
th[scope="row"] { font-weight: 600; color: var(--ink); }
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; margin: 8px 0 14px; }
.page-hero .lead { margin: 0; }
.status-group { margin-top: 40px; }
.status-group > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.status-group > p { color: var(--muted); }
.cap-grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cap-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.cap-grid li strong { display: block; margin: 8px 0 4px; font-size: 1.02rem; }
.cap-grid li span.cap-text { color: var(--muted); font-size: .94rem; }
.fact-grid { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact-grid li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.fact-grid h3 { margin: 0 0 4px; font-size: 1rem; }
.fact-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.dont-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.dont-list li { display: flex; gap: 12px; align-items: flex-start; }
.dont-list .icon { color: var(--crit); margin-top: 3px; }

/* Pricing */
.currency-form { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 32px; }
.currency-form label { font-weight: 600; }
.currency-form button { padding: 9px 16px; }
.price-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong), var(--shadow); }
.price-card h2 { margin: 0; font-size: 1.3rem; }
.price-tag { margin: 18px 0 4px; min-height: 3.4rem; }
.price-amount { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.price-interval { color: var(--muted); font-weight: 500; }
.price-cycle { display: block; font-size: .8rem; font-weight: 650; color: var(--accent-ink); margin-bottom: 2px; }
.price-pending { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.price-alt { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.price-sub { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.price-card .btn { width: 100%; margin: 4px 0 22px; }
.price-features { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.price-features .icon { color: var(--accent-strong); margin-top: 3px; }
@media (prefers-color-scheme: dark) { .price-features .icon { color: var(--teal); } .price-card.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); } }
.ribbon { position: absolute; top: -12px; left: 28px; background: var(--navy-900); color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); }

/* Auth (sign in, sign up) */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 32px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 36px 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.auth-card .lead { font-size: 1.02rem; color: var(--muted); }
.auth-card .stack-form { max-width: none; margin: 18px 0 8px; }
.auth-card .stack-form button { justify-self: stretch; padding: 13px 20px; }
.auth-alt { text-align: center; color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
.auth-aside { padding: 28px 8px; }
.auth-aside h2 { margin-top: 0; font-size: 1.3rem; }
.auth-aside .tick-list { margin-bottom: 28px; }

/* ---------- 12. App (signed in) ---------- */
.is-app { background: var(--bg); }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.app-head h1 { margin-bottom: 6px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.meta-chips li { font-size: .82rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 12px; }
.tool-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(205px, 100%), 1fr)); gap: 14px; margin: 8px 0 8px; }
.tool-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.tool-h { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.tool-h .icon { color: var(--accent-ink); width: 18px; height: 18px; }
.tool-group ul { list-style: none; padding: 0; margin: 0; }
.tool-group a { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; border-bottom: 1px solid var(--line); }
.tool-group li:last-child a { border-bottom: 0; }
.tool-group a:hover { color: var(--link); }
.tool-group a::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 12px;
  border-top: 2px solid #8493a6; border-right: 2px solid #8493a6; border-radius: 1px; transform: rotate(45deg);
}
.ws-list li { padding: 0; border: 0; }
.ws-list li.muted { padding: 10px 0; }
.app-head form { margin: 0 0 8px; }
.site-actions { min-width: 260px; }
.stat-row { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat-value { display: block; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .84rem; }
.site-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.site-actions form { margin: 0; }
.site-actions button, .site-actions .button-secondary { padding: 6px 11px; font-size: .84rem; border-radius: 8px; }
.ws-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.ws-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.ws-list a:hover { border-color: var(--accent-strong); box-shadow: var(--shadow); }
.ws-list strong { display: block; font-size: 1.05rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); margin: 16px 0; }
.panel > :first-child { margin-top: 0; } .panel > :last-child { margin-bottom: 0; }
.panel .stack-form { margin: 8px 0 0; }

/* Report */
.report-title { margin: 4px 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); word-break: break-word; }
.counts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.count {
  position: relative; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 12px; text-transform: capitalize; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.count::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--sev, var(--line-strong)); }
.count span { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 2px; }
.top-actions { padding-left: 1.3rem; }
.top-actions li { margin-bottom: 10px; }
.finding { background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; border-radius: var(--radius); padding: 18px 22px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.sev-border-critical { border-left-color: var(--crit); } .sev-border-high { border-left-color: var(--high); }
.sev-border-medium { border-left-color: var(--med); } .sev-border-low { border-left-color: var(--low); } .sev-border-info { border-left-color: var(--info); }
.finding-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.finding h3 { margin: 0; font-size: 1.1rem; }
.finding details { margin-top: 6px; }
.evidence { padding-left: 1.1rem; }
.evidence li { margin: 6px 0; }

/* ---------- 13. Footer ---------- */
.site-footer { margin-top: 96px; background: var(--navy-950); color: #a7b5c8; padding: 64px 0 28px; font-size: .93rem; }
.is-app .site-footer { margin-top: 72px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand p { max-width: 34ch; margin: 14px 0 20px; }
.footer-brand .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.footer-brand .btn-secondary:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9d5e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; color: #94a3b8; }
.footer-bottom p { margin: 0; max-width: 70ch; }
/* W1-08: the company line holds a legal name, an address and a mailbox; links in it are underlined, long values wrap */
#footer-legal { overflow-wrap: anywhere; }
#footer-legal a { text-decoration: underline; }
/* B139 (P15): the language picker matches the dark footer: same height as its button, no white box */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-switch select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .85rem; background-color: transparent;
  color: #e2e9f2; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); }
.lang-switch select option { color: var(--ink); background: var(--surface); }
.lang-switch .lang-go { min-height: 34px; margin: 0; padding: 4px 12px; font-size: .85rem; background: transparent; color: #e2e9f2;
  border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.lang-switch .lang-go:hover { background: rgba(255, 255, 255, .08); color: #fff; }
/* B139 (P16): on app pages the breadcrumb already names the workspace and the page, so the eyebrow above the title is
   not repeated, and the first section starts close under the help box */
body:has(.crumb-bar .breadcrumbs) main > section.section:first-of-type .eyebrow:first-child { display: none; }
main > .help-box-wrap + section.section, main > .help-box-wrap + .wrap + section.section { padding-top: var(--space-4); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { border-left: 0; padding-left: 0; }
}
@media (max-width: 920px) {
  .nav-desktop, .hide-sm { display: none; }
  .menu { display: block; }
  .hero-grid, .split, .faq-wrap, .auth-wrap, .footer-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .steps-grid, .plan-teaser, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .cap-grid, .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-block { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .cta-panel { padding: 40px 28px; }
  .price-grid { max-width: 520px; margin: 0 auto; }
  .auth-wrap { padding-top: 32px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .feature-grid, .pillar-grid, .trust-list, .control-grid, .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .trust-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .trust-list li:last-child { border-bottom: 0; }
  .hero h1 { font-size: 2.05rem; }
  .hero-form { padding: 2px 16px 16px; }
  .audit-row button { width: 100%; }
  .auth-card { padding: 26px 20px 22px; }
  .wrap.auth-wrap { padding-top: 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen-meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .specimen::before { inset: -12px; }
  .footer-cols { gap: 28px; }
  .section-block { padding: 56px 0; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .menu-label { display: none; }
  .brand { font-size: 1.05rem; }
  .header-row { gap: 10px; }
  .header-row .beta-badge { margin-inline-start: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 15. Print (progress report: browser Print → Save as PDF) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 12px 0; }
  a { color: inherit; text-decoration: none; }
  .table-wrap, .card, .finding, .count, .panel { box-shadow: none; }
  table { page-break-inside: auto; } tr { page-break-inside: avoid; }
}

/* White-label accent palette for client reports (no inline styles under the CSP; each >= 4.5:1 on white). */
.brand-blue { --brand: #1f4fd1; } .brand-teal { --brand: #0b6b6b; } .brand-green { --brand: #19692c; }
.brand-purple { --brand: #5b2a9e; } .brand-red { --brand: #b42318; } .brand-orange { --brand: #a3420a; }
.brand-navy { --brand: #13294b; } .brand-charcoal { --brand: #2f3437; }
.branded h1, .branded h2, .branded .brand-name { color: var(--brand); }
.branded .brand-bar { border-top: 6px solid var(--brand); padding-top: 12px; }
@media (prefers-color-scheme: dark) { .branded h1, .branded h2, .branded .brand-name { color: inherit; } }
@media print { .branded h1, .branded h2, .branded .brand-name { color: var(--brand); } }

/* B53 (OA-11): the printable audit report (/report/{id}/print). The browser's "Save as PDF" makes the PDF; there is
   no server-side renderer. Light on screen and paper, A4 or Letter margins, headings kept with their text, tables
   that repeat their header row on each page, and no navigation or buttons on paper. */
.print-doc {  /* always the light tokens, like paper, whatever the reader's colour scheme */
  color-scheme: light; background: #fff; color: #111;
  --bg: #fff; --surface: #fff; --surface-2: #f1f4f9; --ink: #0b1526; --ink-2: #334155; --muted: #4a5568;
  --line: #e2e8f0; --link: #0a6b5c; --link-hover: #064e43; --focus: #0a7d6b;
  --warn-bg: #fff7e6; --warn-line: #f3d39b; --warn-ink: #6b4700; --err-bg: #fef1f0; --err-line: #f7c1bb;
  --err-ink: #a11b12; --info-bg: #eef4fb; --info-line: #c9daee; --info-ink: #1d3f66;
}
@media (prefers-color-scheme: dark) { .print-doc.branded h1, .print-doc.branded h2, .print-doc .brand-name { color: var(--brand); } }
.print-page { max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; }
.print-head h1 { margin: 8px 0 4px; font-size: 1.8rem; }
.print-section { margin-top: 24px; }
.print-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.print-table th, .print-table td { border: 1px solid #c9ced6; padding: 6px 8px; text-align: start; vertical-align: top; }
.print-table thead { display: table-header-group; }
.print-finding { border-top: 1px solid #c9ced6; padding: 10px 0; }
.print-finding h3 { margin: 0 0 4px; font-size: 1.05rem; }
.print-finding code, .print-table code { overflow-wrap: anywhere; }
.print-foot { margin-top: 32px; border-top: 1px solid #c9ced6; padding-top: 8px; color: #333; }
@page { margin: 16mm 14mm; }
@media print {
  .print-page { max-width: none; padding: 0; }
  .print-doc .brand-name, .print-doc .print-head { display: block !important; }
  .print-section h2, .print-finding h3 { break-after: avoid; page-break-after: avoid; }
  .print-finding, .print-table tr { break-inside: avoid; page-break-inside: avoid; }
  .print-doc a { color: inherit; text-decoration: none; }
  .print-doc img { max-height: 40px; }
}

/* Decision forms inside report tables: the reason box takes the cell's width and the buttons wrap below it, so the
   action table stays narrow. .table-wrap is position: relative so the forms' visually hidden labels are clipped by
   its scroll box; without it they widened the whole page (53 px with wider fonts, the CI browser failure). */
.decide { display: flex; flex-wrap: wrap; gap: 6px; min-width: 12rem; max-width: 18rem; }
.decide input:not([type=hidden]) { flex: 1 1 100%; min-width: 0; }
.decide button { flex: 0 0 auto; }

/* ---------- B51 feature catalogue (/features and the in-app hub) ---------- */
.feature-counts { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.feature-counts li { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.feature-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; align-items: end; margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feature-filter label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.feature-filter input, .feature-filter select { width: 100%; }
.feature-filter-go { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.feature-groups > h3 { margin-top: 28px; }
.feature-list { list-style: none; padding: 0; margin: 8px 0 24px; }
.feature-list li { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feat-id { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.feat-meta { display: block; font-size: .88rem; color: var(--muted); }

/* B58 (OA-19): the split test timeline, a server-rendered SVG chart (no script); its figures are also in a table. */
.chart { margin: 12px 0; }
.chart-svg { width: 100%; max-width: 640px; height: auto; display: block; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-mark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-control { fill: none; stroke: var(--muted); stroke-width: 2; }
.chart-variant { fill: none; stroke: var(--link); stroke-width: 2.5; }
.chart-control-dot { fill: var(--muted); }
.chart-variant-dot { fill: var(--link); }
.chart-key { display: inline-block; width: 14px; height: 3px; vertical-align: middle; }
.chart-key-control { background: var(--muted); }
.chart-key-variant { background: var(--link); }
/* ---------- B59 topical authority map (OA-23) and Ask Rankeraxe (OA-24) ---------- */
.topic-map { margin: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.topic-map svg { display: block; width: 100%; height: auto; max-width: 680px; margin: 0 auto; }
.tm-cluster { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 2; }
.tm-single { fill: var(--warn-bg); stroke: var(--med); stroke-width: 2; }
.tm-none { fill: var(--err-bg); stroke: var(--crit); stroke-width: 2; stroke-dasharray: 6 4; }
.tm-pillar { fill: var(--link); }
.tm-page { fill: var(--ink-2); }
.tm-linked { stroke: var(--ink-2); stroke-width: 1.5; }
.tm-unlinked { stroke: var(--crit); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tm-label { fill: var(--ink); font-size: 14px; font-weight: 650; text-anchor: middle; }
.tm-sub { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.tm-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.tm-key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 2px solid; }
.tm-key-cluster { background: var(--ok-bg); border-color: var(--ok); }
.tm-key-single { background: var(--warn-bg); border-color: var(--med); }
.tm-key-none { background: var(--err-bg); border-color: var(--crit); border-style: dashed; }
.tm-evidence { margin: 0; padding-left: 18px; }
.tm-evidence li, .wrap-anywhere { overflow-wrap: anywhere; }
.ask-form input[type=text] { width: 100%; }
.ask-answer p { margin: 6px 0; overflow-wrap: anywhere; }
.ask-records { padding-left: 20px; }
.ask-records li { margin: 6px 0; overflow-wrap: anywhere; }

/* ---------- B75 (OA-40): the guided setup and the "Finish setup" card ---------- */
.setup-count { font-weight: 650; color: var(--ink-2); margin: 0 0 10px; }
.setup-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.setup-step > a, .setup-step > span { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 48px; padding: 8px 4px; border-radius: var(--radius-sm); text-align: center; text-decoration: none; color: var(--ink-2); border-top: 4px solid var(--line-strong); font-size: .9rem; line-height: 1.25; }
.setup-step > a:hover { background: var(--surface-2); color: var(--ink); }
.setup-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 700; background: var(--surface); color: var(--ink); }
.setup-label { overflow-wrap: anywhere; }
.setup-step.is-done > a, .setup-step.is-done > span { border-top-color: var(--ok); }
.setup-step.is-done .setup-num { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok); }
.setup-step.is-attention .setup-num { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--med); }
.setup-step.is-current > a, .setup-step.is-current > span { border-top-color: var(--navy-700); color: var(--ink); font-weight: 700; }
.setup-step.is-current .setup-num { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
@media (prefers-color-scheme: dark) { .setup-step.is-current .setup-num { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); } .setup-step.is-current > a, .setup-step.is-current > span { border-top-color: var(--teal); } }
.setup-panel { padding: 24px; }
.setup-panel h2 { margin-top: 0; }
.setup-panel .btn-lg, .setup-panel button.btn-lg { min-height: 48px; }
.setup-form button, .setup-form .btn { min-height: 48px; }
.setup-ok { font-size: 1.1rem; font-weight: 650; color: var(--ok-ink); background: var(--ok-bg); border-radius: var(--radius-sm); padding: 12px 16px; }
.setup-warn { color: var(--err-ink); }
.setup-suggest { font-size: 1.05rem; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 12px 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; border: 0; padding: 0; margin: 6px 0 16px; }
.choice-grid legend { font-size: 1rem; margin-bottom: 8px; padding: 0; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; }
.choice:hover { border-color: var(--muted); background: var(--surface-2); }
.choice input[type="radio"] { width: 22px; height: 22px; flex: none; }
.choice:has(input:checked) { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus) inset; }
.setup-list { padding-left: 1.4rem; }
.setup-list li { margin-bottom: 14px; }
.setup-list .btn { margin-top: 8px; }
.setup-inline { margin: 8px 0 0; }
.setup-live { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.code-input { width: 100%; font-family: var(--mono); }
.connect-list { list-style: none; padding: 0; margin: 0 0 16px; }
.connect-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.connect-item.is-done .connect-state { color: var(--ok-ink); }
.connect-item.is-attention .connect-state { color: var(--err-ink); font-weight: 650; }
.connect-action form { margin: 0; }
.connect-action button, .connect-action .button-secondary { min-height: 44px; }
.setup-card { border-left: 4px solid var(--navy-700); }
.setup-card h2 { margin: 0 0 4px; }
.setup-checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.check-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.check-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 700; flex: none; }
.check-item.is-attention .check-mark { border-color: var(--crit); color: var(--err-ink); }
.check-text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.check-item .inline-form button { min-height: 40px; margin-left: 0; }

/* ---------- 16. B77 (OA-42): one professional standard for the console shell and the shared components ----------
   The workspace and console sub-navigation, console dashboards, status chips, data source rows, empty states,
   breadcrumbs, pagination and table helpers. Built only from the tokens in section 1; no script, no inline style. */

/* Sub-navigation under the site header: the workspace and the owner and operations consoles. It scrolls inside
   itself on narrow screens, so the page never scrolls sideways. */
.console-nav { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.console-nav-row { display: flex; align-items: center; gap: var(--space-4); min-height: 52px; }
.console-nav-label { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.console-nav-label .icon { width: 16px; height: 16px; }
.console-nav ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 6px 2px; overflow-x: auto; scrollbar-width: thin; min-width: 0; }
.console-nav li { flex: none; }
.console-nav a {
  display: block; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.console-nav a:hover { background: var(--surface-2); color: var(--ink); }
.console-nav a[aria-current="page"], .console-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.console-nav a:focus-visible { outline-offset: -3px; }
@media (min-width: 921px) { .console-nav { position: sticky; top: var(--header-h); z-index: 40; } }
@media (max-width: 600px) { .console-nav-label { display: none; } }

/* Breadcrumbs: where a page sits, with every level above it a link. */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-2); padding: 0; font-size: var(--text-sm); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--muted); }
.breadcrumbs a { display: inline-block; padding: 3px 0; color: var(--muted); text-decoration: none; font-weight: 550; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* Status chips: connected, not connected, needs attention, test access and neutral facts. A dot in the text colour
   leads each chip; the words carry the meaning, never the colour alone. */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; line-height: 1.4;
  border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; vertical-align: middle;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.chip-off { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); }
.chip-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.chip-err { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.chip-test { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; }

/* Console dashboards (the owner and operations homes): grouped cards with an icon, a short description, status
   chips and the group's pages. */
.page-intro { max-width: var(--measure); color: var(--ink-2); }
.console-grid { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); }
.console-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-2); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.console-card:hover, .console-card:focus-within { border-color: var(--accent-line); box-shadow: var(--shadow); }
.console-card-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.console-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.console-icon .icon { width: 20px; height: 20px; }
.console-card-title { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.console-card-desc { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.console-links { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--line); }
.console-links a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 40px; padding: 6px 0;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; border-bottom: 1px solid var(--line);
}
.console-links li:last-child a { border-bottom: 0; }
.console-links a:hover { color: var(--link); }
.console-links a::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.console-links a:hover::after { border-color: var(--link); }

/* Data sources: a friendly card per source with an icon, its status chip, the next step, the last sync and the
   actions. The card's top edge carries the state colour; the chip's words carry the meaning. */
.source-grid { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); }
.source-card {
  display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong); border-radius: var(--radius); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm);
}
.source-card.is-ok { border-top-color: var(--ok); }
.source-card.is-warn { border-top-color: var(--med); }
.source-main { display: flex; gap: var(--space-3); align-items: center; min-width: 0; }
.source-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.source-icon .icon { width: 20px; height: 20px; }
.source-name { font-weight: 650; font-size: 1.02rem; }
.source-meta { display: block; color: var(--muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.source-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); font-size: var(--text-sm); color: var(--muted); }
.source-next { margin: 0; font-size: .92rem; color: var(--ink-2); }
.source-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.source-actions form { margin: 0; }
.source-actions button { padding: 8px 16px; font-size: .9rem; min-height: 40px; }

/* The next step: one line on what the page is for, and one primary button. */
.next-step {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin: var(--space-4) 0;
  padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.next-step-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--teal); }
.next-step-icon .icon { width: 20px; height: 20px; }
.next-step-text { flex: 1 1 260px; margin: 0; color: var(--ink-2); }
.next-step-text strong { color: var(--ink); }
.next-step .btn { flex: none; }

/* KPI tiles with a usage ring or an icon. */
.kpi-row { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.kpi { display: flex; align-items: center; gap: var(--space-3); }
.kpi > div { min-width: 0; }
.ring { flex: none; width: 52px; height: 52px; }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 3.5; }
.ring-value { fill: none; stroke: var(--accent-strong); stroke-width: 3.5; }
.ring-high .ring-value { stroke: var(--med); }
.ring-full .ring-value { stroke: var(--crit); }
.ring-text { fill: var(--ink-2); font-size: 9px; font-weight: 700; }
.kpi-icon { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.kpi-icon .icon { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .ring-value { stroke: var(--teal); } }

/* Workspace tools grouped by task. */
.tool-groups { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.tool-desc { margin: 0 0 var(--space-2); color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tool-groups .tool-h { font-size: .8rem; color: var(--ink); }
.tool-groups .tool-h .icon { width: 20px; height: 20px; padding: 3px; border-radius: var(--radius-xs); background: var(--accent-soft); box-sizing: content-box; }

/* Site cards: each site's dashboard on the workspace page. */
.site-cards { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-5); }
.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-sm); }
.site-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.site-id { flex: 1 1 200px; min-width: 0; }
.site-host { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.site-id .muted { overflow-wrap: anywhere; }
.site-kpis { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: var(--space-3); }
.site-kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.kpi-num { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.trend .icon { width: 14px; height: 14px; }
.trend-good { color: var(--ok-ink); }
.trend-bad { color: var(--err-ink); }
.icon.trend-down { transform: rotate(90deg); }
.icon.trend-up { transform: rotate(-90deg); }
.spark { width: 100%; max-width: 160px; height: 36px; display: block; }
.spark-line { fill: none; stroke: var(--link); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.sev-bar { width: 100%; height: 12px; display: block; border-radius: var(--radius-pill); overflow: hidden; margin: 10px 0 6px; }
.bar-critical { fill: var(--crit); } .bar-high { fill: var(--high); } .bar-medium { fill: var(--med); } .bar-low { fill: var(--low); } .bar-info { fill: var(--info); }
.site-monitor { margin: var(--space-4) 0 0; }
.site-monitor form { margin: 0; }
.site-monitor-h { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; }
.site-card .site-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--space-3) var(--space-5); align-items: start; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); min-width: 0; }
.site-run { grid-column: 1 / -1; }
.site-run button { padding: 10px 18px; font-size: .95rem; border-radius: var(--radius-md); }
.site-tools { min-width: 0; }
.site-tools .tool-h { margin-bottom: 4px; }
.site-tools ul { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.site-tools a { display: flex; align-items: center; min-height: 32px; padding: 3px 0; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .93rem; border-bottom: 1px solid var(--line); }
.site-tools li:last-child a { border-bottom: 0; }
.site-tools a:hover { color: var(--link); text-decoration: underline; }
.site-tools form button { padding: 7px 13px; font-size: .86rem; }

/* Console navigation icons. */
.console-nav a { display: inline-flex; align-items: center; gap: 6px; }
.console-nav a .icon { width: 16px; height: 16px; }

/* Empty states: say what is missing and, where there is one, the next step. */
.empty-state { text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--space-8) var(--space-6); margin: var(--space-4) 0; color: var(--muted); }
.empty-state p { margin: 0 auto var(--space-2); max-width: 56ch; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state .btn { margin-top: var(--space-2); }

/* Pagination. */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); list-style: none; margin: var(--space-6) 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination a:hover { background: var(--surface-2); }
.pagination [aria-current="page"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Notices: success and warning next to information and error. */
.notice-ok { background: var(--ok-bg); border-color: var(--ok-bg); border-left-color: var(--ok); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--med); }

/* Tables: numbers line up on the right; a tall table keeps its header row in view while it scrolls. */
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap.table-tall { max-height: 70vh; overflow: auto; }

/* Readable line length for running text, and a status panel of short facts. */
.section > p, .panel > p, .card > p { max-width: var(--measure); }
.status-panel p { margin: 0 0 var(--space-2); }
.status-panel p:last-child { margin-bottom: 0; }

/* Public home: the dashboard illustration and the three steps as a connected graphic. */
.preview-block { padding-top: 72px; overflow: hidden; }  /* the glow behind the illustration never widens the page */
.ill-figure { margin: 0; position: relative; }
.ill-figure::before { content: ""; position: absolute; inset: -20px; border-radius: 28px; z-index: 0; background: radial-gradient(60% 60% at 70% 30%, rgba(110, 224, 200, .22), transparent 70%), radial-gradient(50% 50% at 20% 90%, rgba(73, 128, 214, .16), transparent 70%); }
.ill { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(15, 23, 42, .16)); }
.ill-figure figcaption { position: relative; z-index: 1; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--muted); text-align: center; }
.ill-frame { fill: var(--surface); stroke: var(--line-strong); }
.ill-bar { fill: var(--surface-2); }
.ill-dot-r { fill: #f87171; } .ill-dot-y { fill: #fbbf24; } .ill-dot-g { fill: #34d399; }
.ill-side { fill: var(--surface-2); }
.ill-nav-on { fill: var(--accent-soft); stroke: var(--accent-line); }
.ill-nav, .ill-line { fill: var(--surface-3); }
.ill-line-strong { fill: var(--line-strong); }
.ill-card { fill: var(--surface); stroke: var(--line); }
.ill-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.ill-ring { fill: none; stroke: var(--accent-strong); stroke-width: 7; }
.ill-up { fill: var(--ok); }
.ill-sev-c { fill: var(--crit); } .ill-sev-h { fill: var(--high); } .ill-sev-m { fill: var(--med); } .ill-sev-l { fill: var(--low); }
.ill-area { fill: var(--accent-soft); }
.ill-spark { fill: none; stroke: var(--accent-strong); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ill-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.ill-ok { fill: var(--ok); } .ill-warn { fill: var(--med); } .ill-off { fill: var(--line-strong); }
.ill-btn { fill: var(--teal); }
@media (prefers-color-scheme: dark) { .ill-ring, .ill-spark { stroke: var(--teal); } }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.step-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.step-icon .icon { width: 20px; height: 20px; }
@media (min-width: 921px) {
  .steps-grid .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 12px; z-index: 1;
    border-top: 3px solid var(--accent-line); border-right: 3px solid var(--accent-line); transform: rotate(45deg);
  }
}

/* "Details" disclosures: advanced detail stays one click away instead of in long paragraphs. */
details.more { margin: var(--space-3) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 var(--space-4); }
details.more > summary { display: flex; align-items: center; min-height: 44px; }
details.more[open] { padding-bottom: var(--space-3); }

/* Tabs without script (_tabs.html): links to the page's sections or to sub-routes. The tab of the section the
   address points at is highlighted (:target with :has()), the first one while none is; a sub-route tab is
   highlighted by aria-current. Nothing is hidden. */
.page-tabs { margin: var(--space-4) 0 var(--space-2); border-bottom: 1px solid var(--line); }
.page-tabs ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 0; overflow-x: auto; scrollbar-width: thin; }
.page-tabs li { flex: none; }
.page-tabs .tab {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 14px; margin-bottom: -1px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
  border-bottom: 3px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.page-tabs .tab .icon { width: 17px; height: 17px; }
.page-tabs .tab:hover { color: var(--ink); background: var(--surface-2); }
.page-tabs .tab:focus-visible { outline-offset: -3px; }
.page-tabs .tab[aria-current="page"],
body:not(:has(:target)) .page-tabs .tab-default,
body:has(#overview:target) .tab[data-tab="overview"], body:has(#tools:target) .tab[data-tab="tools"],
body:has(#sites:target) .tab[data-tab="sites"], body:has(#sources:target) .tab[data-tab="sources"],
body:has(#team:target) .tab[data-tab="team"], body:has(#activity:target) .tab[data-tab="activity"],
body:has(#console:target) .tab[data-tab="console"], body:has(#workspaces:target) .tab[data-tab="workspaces"],
body:has(#reports:target) .tab[data-tab="reports"], body:has(#weights:target) .tab[data-tab="weights"],
body:has(#ai-eval:target) .tab[data-tab="ai-eval"], body:has(#incidents:target) .tab[data-tab="incidents"],
body:has(#controls:target) .tab[data-tab="controls"], body:has(#kpis-h:target) .tab[data-tab="kpis-h"],
body:has(#pages-h:target) .tab[data-tab="pages-h"], body:has(#owners-h:target) .tab[data-tab="owners-h"],
body:has(#profile:target) .tab[data-tab="profile"], body:has(#security:target) .tab[data-tab="security"],
body:has(#language:target) .tab[data-tab="language"], body:has(#data:target) .tab[data-tab="data"],
body:has(#password:target) .tab[data-tab="password"], body:has(#sessions:target) .tab[data-tab="sessions"] {
  color: var(--accent-ink); border-bottom-color: var(--accent-strong); background: var(--accent-soft);
}
@media (prefers-color-scheme: dark) { .page-tabs .tab[aria-current="page"], body:not(:has(:target)) .page-tabs .tab-default { border-bottom-color: var(--teal); } }
:target { scroll-margin-top: calc(var(--header-h) + 72px); }
.crumb-bar { padding-top: var(--space-4); }
.crumb-bar .breadcrumbs ol { margin: 0; }
.crumb-bar .page-tabs { margin-top: var(--space-2); }

/* Help box (B78's "How this works" boxes): an icon, a title, short steps and a link to the full guide.
   Markup: <aside class="help-box"><span class="help-box-icon" aria-hidden="true">(icon)</span><div>
   <h2 class="help-box-title">…</h2><ol class="help-box-steps"><li>…</li></ol><a class="help-box-link" href="…">…</a>
   </div></aside> */
.help-box {
  display: flex; gap: var(--space-4); align-items: flex-start; margin: var(--space-5) 0; padding: var(--space-5) var(--space-6);
  background: var(--info-bg); border: 1px solid var(--info-line); border-radius: var(--radius-lg); color: var(--ink);
}
.help-box-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--info-ink); border: 1px solid var(--info-line); }
.help-box-icon .icon { width: 20px; height: 20px; }
.help-box > div { min-width: 0; }
.help-box-title { margin: 0 0 var(--space-2); font-size: 1.05rem; }
.help-box-steps { margin: 0 0 var(--space-3); padding-left: 1.3rem; color: var(--ink-2); }
.help-box-steps li { margin-bottom: var(--space-1); }
.help-box-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 650; color: var(--link); }
.help-box p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .help-box { flex-direction: column; padding: var(--space-4); } }
/* --- B78 (OA-43): help center, downloads and the in-app help box (minimal; B77 may restyle) --- */
.help-box-wrap { padding-top: 12px; }
details.help-box { display: block; margin: 0 0 var(--space-2); padding: var(--space-3) var(--space-5); border-left: 4px solid var(--info-ink); border-radius: var(--radius-md, var(--radius-sm)); }
.help-box summary { min-height: 32px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
.help-box p { margin: 8px 0; }
.help-box p:last-child { margin-bottom: 4px; }
.help-result { color: var(--ink-2); }
.help-list { list-style: none; padding-left: 0 !important; }
.help-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.download-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 12px 0; }
.download-facts dt { font-weight: 600; }
.download-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* The plugin card stacks its button, facts and note: the help box's side-by-side row squeezed the facts to nothing. */
.download-box { display: block; }
.help-code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
@media (max-width: 480px) { .download-facts { grid-template-columns: minmax(0, 1fr); } .download-facts dd { margin-bottom: 8px; } }
/* --- end B78 --- */
/* --- B82 (OA-47): Your results and the Connect next panel (tokens only) --- */
.results-home { margin: var(--space-5) 0; padding: var(--space-5) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.results-head h2, .connect-next h2 { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; }
.results-head h2 .icon, .connect-next h2 .icon { width: 22px; height: 22px; color: var(--accent-ink); }
.result-site { margin-top: var(--space-4); }
.result-site-h { font-size: 1rem; margin: var(--space-4) 0 var(--space-2); overflow-wrap: anywhere; }
.result-tiles { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: var(--space-3); }
.result-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); overflow-wrap: anywhere; }
.result-tile.result-missing { border-style: dashed; background: var(--surface); }
.result-label { font-weight: 650; color: var(--ink-2); }
.result-source { margin-top: auto; }
.result-card { margin: var(--space-4) 0; }
.result-audit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--space-3) var(--space-5); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.result-bars p { margin: 0; }
.timeline { list-style: none; padding: 0; margin: var(--space-3) 0; border-left: 2px solid var(--line-strong); }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 2px var(--space-3); padding: var(--space-2) 0 var(--space-2) var(--space-4); overflow-wrap: anywhere; }
.timeline-item > .small { grid-column: 2; }
.timeline-dot { position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-strong); border: 2px solid var(--surface); }
.timeline-item.is-test .timeline-dot, .timeline-item.is-growth .timeline-dot, .timeline-item.is-keyword .timeline-dot { background: var(--ok); }
.timeline-date { font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .timeline-item { grid-template-columns: minmax(0, 1fr); } .timeline-item > .small { grid-column: 1; } }
.connect-next { border-left: 4px solid var(--accent-strong); margin: var(--space-5) 0; }
.connect-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.connect-item { padding: var(--space-3) 0; border-top: 1px solid var(--line); min-width: 0; }
.connect-item.is-attention { border-left: 3px solid var(--crit); padding-left: var(--space-3); }
.connect-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.connect-name { margin: 0; font-size: 1.02rem; }
.connect-unlocks { margin: var(--space-1) 0; }
.connect-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.connect-actions .inline-form button { margin-left: 0; min-height: 40px; }
.connect-actions > a.small { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-1); }
/* --- end B82 --- */
/* --- B80 (OA-45): the grouped platform picker, the platform index and the install step's plugin tools --- */
.platform-picker { border: 0; padding: 0; margin: 6px 0 8px; min-width: 0; }
.platform-picker > legend { font-size: 1.05rem; font-weight: 650; margin-bottom: 4px; padding: 0; }
.platform-picker .choice-grid legend { font-size: .95rem; font-weight: 650; color: var(--ink-2); margin: 10px 0 6px; }
.platform-picker .choice-grid { margin-bottom: 8px; min-width: 0; }
.choice > span { min-width: 0; overflow-wrap: anywhere; }
.platform-group { margin: 14px 0 4px; }
.platform-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
.platform-links li { border-bottom: 0; padding: 0; }
.platform-links a { display: inline-flex; align-items: center; min-height: 36px; }
.place-group { margin-top: var(--space-6); }
.setup-tools { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.setup-tools h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.setup-check { margin: 10px 0; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.setup-check dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 8px 0; }
.setup-check dt { font-weight: 600; }
.setup-check dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .setup-check dl { grid-template-columns: minmax(0, 1fr); } .setup-check dd { margin-bottom: 6px; } }
.setup-next { margin-top: 20px; }
/* --- end B80 --- */
/* --- B87: profiles filled from the site --- */
.profile-list dt { font-weight: 600; margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.profile-list dd { margin: var(--space-1) 0 0; min-width: 0; overflow-wrap: anywhere; }
.profile-list .profile-value { margin: 0; font-size: 1.05rem; }
.profile-list .small { margin: var(--space-1) 0 0; }
/* --- end B87 --- */
/* B89 (OA-50): which state each data source is in (_data_status.html) */
.data-status { margin: var(--space-4) 0; }
.data-status .small-h { font-size: 1rem; margin: 0 0 var(--space-2); }
.ds-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.ds-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.data-status-compact { margin: var(--space-2) 0 0; }
.data-status-compact .ds-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }

/* B89 (OA-50): the five-step journey, the three lines, the field guides */
.journey-steps { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.journey-step { display: flex; align-items: center; gap: var(--space-2); }
.three-lines { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: var(--space-1); }
.field-guide { border-left: 3px solid var(--line-strong); padding-left: var(--space-3); margin: var(--space-1) 0 var(--space-3); }
.field-guide p { margin: 0 0 var(--space-1); }
.field-example { white-space: pre-line; }
.all-tools li > a, .site-all-tools li > a { display: inline-block; min-height: 24px; padding: 3px 0; }
.journey h3, .journey h2 { font-size: 1rem; margin: 0 0 var(--space-2); }
/* B99 (OA-64): Free vs Pro, the plan badge on each automation and Home's one upgrade card */
.badge.plan-free { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.badge.plan-pro, .badge.plan-agency { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.plan-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-3); }
.plan-compare .tick-list { gap: 10px; }
.plan-scale { margin: var(--space-1) 0 0; }
.upgrade-offer .btn { margin-top: var(--space-2); }
/* B104 (D-057): Home is data first; every control is together under Manage, and the plugin hint says where else */
.site-health ul li, .next-recs ul li { margin-bottom: var(--space-1); }
.manage-box > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.manage-box > summary h2 { display: inline; margin: 0; }
.manage-box[open] > summary { margin-bottom: var(--space-3); }
.manage-part { margin-top: var(--space-4); }
.manage-site { border-top: 1px solid var(--line); padding-top: var(--space-2); }
.plugin-hint ul { margin: var(--space-1) 0 0; }

/* B118: integration rows with a status pill (a coloured dot): the same states in every plugin, module and app */
.rx-group { margin: var(--space-6) 0 var(--space-2); font-size: var(--text-lg); }
.rx-integrations { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.rx-integration { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rx-integration .rx-name { flex: 1 1 260px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-pill); padding: 2px 10px; border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
.pill-connected { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.pill-connected::before { background: var(--ok); }
.pill-checking { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.pill-checking::before { background: var(--accent-strong); }
.pill-attention, .pill-reconnect { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.pill-attention::before, .pill-reconnect::before { background: var(--med); }
.pill-not_connected { background: var(--surface-2); color: var(--ink-2); }
.pill-locked { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.pill-locked::before { background: var(--info-ink); }

/* ---------- B127 (D-066, second design pass): metric-family accents, change pills, the summary band ----------
   Tokens only here (the rules are at the end of the file, after the chart kit). Each metric family keeps one accent
   everywhere (rankeraxe/charts.py FAMILIES): search teal, search reach violet, visitors blue, conversions and sales
   orange, money and work done green, findings in the status colours. The accent is the family's chart slot (the
   validated --viz-* values); -soft is its chip ground and -ink the chip's icon, at least 4.5:1 on -soft. The summary
   band is navy in both colour schemes, so its tints are the same in both. tests/test_b127_theme.py computes the WCAG
   contrast of every pair below in light and dark. */
:root {
  --fam-search: #0f9b84; --fam-search-soft: #e3f7f2; --fam-search-ink: #0a5c4f;
  --fam-reach: #6250d6; --fam-reach-soft: #efedfc; --fam-reach-ink: #4a3aa7;
  --fam-visits: #2a78d6; --fam-visits-soft: #e7f0fc; --fam-visits-ink: #1c5cab;
  --fam-sales: #eb6834; --fam-sales-soft: #fdefe8; --fam-sales-ink: #a3420a;
  --fam-money: #008300; --fam-money-soft: #e5f4e5; --fam-money-ink: #0a630a;
  --fam-health: #b54708; --fam-health-soft: #fff4e2; --fam-health-ink: #8a3606;
  --fam-urgent: #b42318; --fam-urgent-soft: #fef1f0; --fam-urgent-ink: #a11b12;
  --pill-good-bg: #e3f6ea; --pill-good-ink: #05603a; --pill-bad-bg: #fde8e6; --pill-bad-ink: #a11b12;
  --pill-flat-bg: #eef2f7; --pill-flat-ink: #334155;
  --zebra: #f8fafc; --nav-active: #0a7d6b;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -14px rgba(15, 23, 42, .22);
  --band-1: #0a1628; --band-2: #173a63; --band-ink: #ffffff; --band-muted: #c3d0e0; --band-line: rgba(255, 255, 255, .12);
  --band-tile: rgba(255, 255, 255, .06);
  --band-teal: #6ee0c8; --band-blue: #8ab8f2; --band-green: #86d99a; --band-violet: #b9b0f5; --band-orange: #f6a77f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fam-search: #109e86; --fam-search-soft: #0b2a27; --fam-search-ink: #7fe3cf;
    --fam-reach: #9085e9; --fam-reach-soft: #1d1b3f; --fam-reach-ink: #c3bbff;
    --fam-visits: #3987e5; --fam-visits-soft: #0f2340; --fam-visits-ink: #9cc4f5;
    --fam-sales: #d95926; --fam-sales-soft: #2e1910; --fam-sales-ink: #ffb08a;
    --fam-money: #2f9e44; --fam-money-soft: #0d2a14; --fam-money-ink: #8fdc9a;
    --fam-health: #e08a3c; --fam-health-soft: #2a1f0a; --fam-health-ink: #f6c58e;
    --fam-urgent: #f0645a; --fam-urgent-soft: #2c1110; --fam-urgent-ink: #ffbdb6;
    --pill-good-bg: #0b2a1c; --pill-good-ink: #8ee6b3; --pill-bad-bg: #2c1110; --pill-bad-ink: #ffbdb6;
    --pill-flat-bg: #16243b; --pill-flat-ink: #c4cedc;
    --zebra: #0f1a2c; --nav-active: #6ee0c8;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --band-1: #08111f; --band-2: #133154;
  }
}

/* B130b (D-069): the switch, mode ring and Premium badge tokens (rules in the B130b block at the end). */
:root {
  --switch-off: #64748b; --switch-on: #0a7d6b; --switch-knob: #ffffff;
  --mode-ring: #0a7d6b; --premium-bg: #efedfc; --premium-ink: #4a3aa7;
  --hero-band: radial-gradient(120% 140% at 100% 0%, rgba(110, 224, 200, .18) 0%, transparent 55%),
               linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --switch-off: #7d8ca3; --switch-on: #2fbfa3; --switch-knob: #0b1526; --mode-ring: #6ee0c8;
          --premium-bg: #1d1b3f; --premium-ink: #c3bbff; }
}

/* B168 (D-066 tokens): Home's live scene (--ls-*) and the editable proposal cards' field badges (--fld-*). Rules in
   the B168 blocks at the end use only these and the tokens above; the gradients are tokens too, built on :root from
   the light or dark values, so the rules carry no colour of their own. */
:root {
  --ls-glass-a: rgba(255, 255, 255, .92); --ls-glass-b: rgba(241, 246, 252, .78);
  --ls-sky-a: #eef7f5; --ls-sky-b: #eaf1fb; --ls-grid: rgba(42, 120, 214, .08);
  --ls-wire-a: var(--viz-1); --ls-wire-b: var(--viz-3); --ls-off: #a7b3c4; --ls-glow: rgba(15, 155, 132, .35);
  --ls-core-a: #8ff0dc; --ls-core-b: #0f9b84; --ls-mark: #ffffff; --ls-site-line: #dfe7f1;
  --ls-packet-tip: #ffffff; --ls-mask-ink: #000000;
  --fld-title: #1b56a0; --fld-title-bg: #e8f1fc; --fld-desc: #0a6b5c; --fld-desc-bg: #e3f6f1;
  --fld-alt: #8f420a; --fld-alt-bg: #fdf0e4; --fld-name: #6a32b0; --fld-name-bg: #f2eafc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ls-glass-a: rgba(20, 33, 53, .92); --ls-glass-b: rgba(12, 21, 36, .82);
    --ls-sky-a: #081a1d; --ls-sky-b: #0b1424; --ls-grid: rgba(110, 224, 200, .07);
    --ls-off: #4a5b75; --ls-glow: rgba(110, 224, 200, .32);
    --ls-core-a: #a5f3e3; --ls-core-b: #109e86; --ls-mark: #032a22; --ls-site-line: #22324b;
    --fld-title: #8ab9f2; --fld-title-bg: #10243f; --fld-desc: #7fe0cb; --fld-desc-bg: #0b2a25;
    --fld-alt: #f3b37a; --fld-alt-bg: #2c1a0b; --fld-name: #c9a6f5; --fld-name-bg: #23143a;
  }
}
:root {
  --ls-grid-lines: linear-gradient(var(--ls-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ls-grid) 1px, transparent 1px);
  --ls-fade-mask: linear-gradient(180deg, transparent, var(--ls-mask-ink) 30%, var(--ls-mask-ink) 70%, transparent);
  --ls-rail: linear-gradient(180deg, transparent, var(--ls-wire-a), var(--ls-wire-b), transparent);
  --ls-glass: linear-gradient(150deg, var(--ls-glass-a), var(--ls-glass-b));
  --ls-glass-tilt: linear-gradient(160deg, var(--ls-glass-a), var(--ls-glass-b));
  --ls-dash-x: repeating-linear-gradient(90deg, var(--ls-off) 0 6px, transparent 6px 12px);
  --ls-dash-y: repeating-linear-gradient(180deg, var(--ls-off) 0 6px, transparent 6px 12px);
  --ls-flow-x: linear-gradient(90deg, var(--ls-wire-a), var(--ls-wire-b));
  --ls-flow-y: linear-gradient(180deg, var(--ls-wire-a), var(--ls-wire-b));
  --ls-packet: linear-gradient(90deg, transparent, var(--ls-wire-a) 60%, var(--ls-packet-tip));
  --ls-num-ink: linear-gradient(135deg, var(--accent-ink), var(--link));
  --fld-title-edge: linear-gradient(180deg, var(--fld-title), color-mix(in srgb, var(--fld-title) 35%, transparent));
  --fld-desc-edge: linear-gradient(180deg, var(--fld-desc), color-mix(in srgb, var(--fld-desc) 35%, transparent));
  --fld-alt-edge: linear-gradient(180deg, var(--fld-alt), color-mix(in srgb, var(--fld-alt) 35%, transparent));
  --fld-name-edge: linear-gradient(180deg, var(--fld-name), color-mix(in srgb, var(--fld-name) 35%, transparent));
}

/* B177 (D-066 tokens): the live scene in colour, one B127 family per source (Search Console teal, Analytics blue,
   Bing violet, the store orange, the plugin green), its floor plane, the core's shadow, and the scan page's states.
   Every gradient is a token here, so the B177 rules at the end carry no colour of their own; light and dark follow
   the family tokens. */
:root {
  --ls-src-sc: var(--fam-search); --ls-src-sc-soft: var(--fam-search-soft); --ls-src-sc-ink: var(--fam-search-ink);
  --ls-src-ga: var(--fam-visits); --ls-src-ga-soft: var(--fam-visits-soft); --ls-src-ga-ink: var(--fam-visits-ink);
  --ls-src-bing: var(--fam-reach); --ls-src-bing-soft: var(--fam-reach-soft); --ls-src-bing-ink: var(--fam-reach-ink);
  --ls-src-store: var(--fam-sales); --ls-src-store-soft: var(--fam-sales-soft); --ls-src-store-ink: var(--fam-sales-ink);
  --ls-src-plugin: var(--fam-money); --ls-src-plugin-soft: var(--fam-money-soft); --ls-src-plugin-ink: var(--fam-money-ink);
  --ls-flow-sc: linear-gradient(90deg, var(--fam-search), var(--viz-3));
  --ls-flow-ga: linear-gradient(90deg, var(--fam-visits), var(--viz-1));
  --ls-flow-bing: linear-gradient(90deg, var(--fam-reach), var(--viz-3));
  --ls-flow-store: linear-gradient(90deg, var(--fam-sales), var(--viz-4));
  --ls-flow-plugin: linear-gradient(90deg, var(--fam-money), var(--viz-1));
  --ls-pk-sc: linear-gradient(90deg, transparent, var(--fam-search) 60%, var(--ls-packet-tip));
  --ls-pk-ga: linear-gradient(90deg, transparent, var(--fam-visits) 60%, var(--ls-packet-tip));
  --ls-pk-bing: linear-gradient(90deg, transparent, var(--fam-reach) 60%, var(--ls-packet-tip));
  --ls-pk-store: linear-gradient(90deg, transparent, var(--fam-sales) 60%, var(--ls-packet-tip));
  --ls-pk-plugin: linear-gradient(90deg, transparent, var(--fam-money) 60%, var(--ls-packet-tip));
  --ls-floor: radial-gradient(70% 80% at 50% 40%, var(--ls-sky-b), transparent 72%),
              linear-gradient(180deg, transparent 0%, var(--ls-grid) 100%);
  --ls-core-shade: radial-gradient(50% 50% at 50% 50%, var(--ls-glow), transparent 72%);
  --ls-scan-band: linear-gradient(90deg, var(--fam-search-soft), var(--fam-visits-soft), var(--fam-reach-soft));
}

/* ---------- B126 (D-066): the chart kit (rankeraxe/charts.py, templates/_charts.html) ----------
   Categorical slots 1-8 in a fixed order, the brand teal first: validated with the dataviz palette validator for
   lightness band, chroma floor, colour-vision separation (worst adjacent dE 10.4 light, 12.4 dark) and the
   normal-vision floor (19.6 / 19.3); in light mode slots 4 and 5 sit below 3:1 on white, so every chart ships its
   figures as a table (Show figures). The ordinal ramp (evidence tiers) is one teal hue, darker = more in light mode
   and lighter = more in dark mode. Severity keeps the reserved status colours (.bar-critical etc.). Text never takes
   a series colour: it uses the ink tokens. */
:root {
  --viz-1: #0f9b84; --viz-2: #eb6834; --viz-3: #2a78d6; --viz-4: #eda100;
  --viz-5: #e87ba4; --viz-6: #008300; --viz-7: #6250d6; --viz-8: #e34948;
  --viz-o1: #0a5c4f; --viz-o2: #0f8f79; --viz-o3: #4cbfa8;
  --viz-ink-light: #ffffff; --viz-ink-dark: #0b1526;
  --viz-o1-ink: var(--viz-ink-light); --viz-o2-ink: var(--viz-ink-light); --viz-o3-ink: var(--viz-ink-dark);
  --viz-grid: #e8edf4; --viz-axis: #cbd5e1; --viz-track: #e3f7f2; --viz-area: .12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --viz-1: #109e86; --viz-2: #d95926; --viz-3: #3987e5; --viz-4: #c98500;
    --viz-5: #d55181; --viz-6: #008300; --viz-7: #9085e9; --viz-8: #e66767;
    --viz-o1: #7fe3cf; --viz-o2: #2fae96; --viz-o3: #1a7466;
    --viz-o1-ink: var(--viz-ink-dark); --viz-o2-ink: var(--viz-ink-dark); --viz-o3-ink: var(--viz-ink-light);
    --viz-grid: #16243b; --viz-axis: #2b3b56; --viz-track: #0b2a27; --viz-area: .18;
  }
}
.viz { margin: 0 0 var(--space-4); min-width: 0; }
.viz-title { display: block; margin: 0 0 var(--space-2); font-weight: 650; font-size: var(--text-sm); color: var(--ink); }
.viz-svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-grid line { stroke: var(--viz-grid); stroke-width: 1; }
.viz-axis { stroke: var(--viz-axis); stroke-width: 1; }
.viz-ticks text, .viz-tick-x { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-area { fill-opacity: var(--viz-area); }
.viz-dot { stroke: var(--surface); stroke-width: 2; }
.viz-end, .viz-value { fill: var(--ink-2); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.viz-label { fill: var(--ink); font-size: 13px; }
.viz-hit { fill: transparent; }
.viz-hit:hover { fill: var(--ink); fill-opacity: .06; }
.viz-track { fill: var(--surface-2); }
.viz-bar:hover, .viz-seg:hover { opacity: .82; }
.viz-seg-text { font-size: 12px; font-weight: 700; }
.viz-s1 { stroke: var(--viz-1); } .viz-s2 { stroke: var(--viz-2); } .viz-s3 { stroke: var(--viz-3); } .viz-s4 { stroke: var(--viz-4); }
.viz-s5 { stroke: var(--viz-5); } .viz-s6 { stroke: var(--viz-6); } .viz-s7 { stroke: var(--viz-7); } .viz-s8 { stroke: var(--viz-8); }
.viz-f1 { fill: var(--viz-1); } .viz-f2 { fill: var(--viz-2); } .viz-f3 { fill: var(--viz-3); } .viz-f4 { fill: var(--viz-4); }
.viz-f5 { fill: var(--viz-5); } .viz-f6 { fill: var(--viz-6); } .viz-f7 { fill: var(--viz-7); } .viz-f8 { fill: var(--viz-8); }
.viz-o1 { fill: var(--viz-o1); } .viz-o2 { fill: var(--viz-o2); } .viz-o3 { fill: var(--viz-o3); }
.viz-seg-text { fill: var(--viz-ink-light); }
.viz-ink-viz-f4 { fill: var(--viz-ink-dark); }
.viz-ink-viz-o1 { fill: var(--viz-o1-ink); } .viz-ink-viz-o2 { fill: var(--viz-o2-ink); } .viz-ink-viz-o3 { fill: var(--viz-o3-ink); }
.viz-legend { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--text-sm); color: var(--ink-2); }
.viz-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--muted); }
.viz-key-line { width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; }
.viz-key.viz-f1 { background: var(--viz-1); } .viz-key.viz-f2 { background: var(--viz-2); } .viz-key.viz-f3 { background: var(--viz-3); }
.viz-key.viz-f4 { background: var(--viz-4); } .viz-key.viz-f5 { background: var(--viz-5); } .viz-key.viz-f6 { background: var(--viz-6); }
.viz-key.viz-f7 { background: var(--viz-7); } .viz-key.viz-f8 { background: var(--viz-8); }
.viz-key.viz-o1 { background: var(--viz-o1); } .viz-key.viz-o2 { background: var(--viz-o2); } .viz-key.viz-o3 { background: var(--viz-o3); }
.viz-key.bar-critical { background: var(--crit); } .viz-key.bar-high { background: var(--high); } .viz-key.bar-medium { background: var(--med); }
.viz-key.bar-low { background: var(--low); } .viz-key.bar-info { background: var(--info); }
.viz-figures { margin-top: var(--space-2); }
.viz-figures > summary { cursor: pointer; font-size: var(--text-sm); color: var(--link); }
.viz-figures table { margin-top: var(--space-2); }
.viz-figures td { font-variant-numeric: tabular-nums; }
.viz-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--space-3) var(--space-4); background: var(--surface); }
.viz-empty p { margin: 0; }
.viz-meter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: var(--space-2); }
.viz-meter-head .viz-title { margin: 0; }
.viz-meter-value { font-size: var(--text-lg); }
.viz-meter-svg { height: 12px; }
.viz-track-fill { fill: var(--viz-track); }
.viz-tone-accent { fill: var(--viz-1); } .viz-tone-ok { fill: var(--ok); } .viz-tone-med { fill: var(--med); } .viz-tone-crit { fill: var(--crit); }
.viz-ring-ok .ring-value { stroke: var(--ok); } .viz-ring-med .ring-value { stroke: var(--med); } .viz-ring-crit .ring-value { stroke: var(--crit); }
.spark { overflow: visible; }
.viz-spark-dot { fill: var(--link); stroke: var(--surface); stroke-width: 1.5; }
/* Cards: one chart each, auto-fit columns; one column at phone width (no horizontal scroll). */
.viz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); margin: var(--space-4) 0; }
.viz-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); container: viz-card / inline-size; }
.viz-card > .viz:last-child { margin-bottom: 0; }
.viz-card-wide { grid-column: 1 / -1; }
.viz-card-h { margin: 0 0 var(--space-3); font-size: var(--text-md); display: flex; align-items: center; gap: var(--space-2); }
.viz-card-h .icon { color: var(--accent-strong); }
.viz-sub { margin: -6px 0 var(--space-3); }
.result-tile .spark { margin-top: 2px; }
.viz-mini { margin: 4px 0; }
.viz-mini-svg { max-width: 160px; height: 36px; }
.viz-mini-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.viz-mini-row > div { min-width: 0; }
/* An SVG scales its text with its width: at phone width the chart text is drawn larger so it stays readable. */
@media (max-width: 640px) {
  .viz-svg text { font-size: 20px; }
  .viz-svg .viz-label { font-size: 21px; }
  .viz-share-svg text { font-size: 17px; }
}
/* A chart in a narrow card (a third of the page, or a phone) is drawn smaller: its text is drawn larger to match. */
@container viz-card (max-width: 460px) {
  .viz-svg text { font-size: 18px; }
  .viz-svg .viz-label { font-size: 18px; }
  .viz-share-svg text { font-size: 16px; }
  .viz-mini-svg text { font-size: 12px; }
}
@media (forced-colors: active) {
  .viz-line { stroke: CanvasText; } .viz-bar, .viz-seg, .viz-area, .viz-dot { fill: CanvasText; }
}

/* ---------- B127 (D-066): metric tiles, change pills, the summary band, section chips, cards, tables, navigation ----
   Colours come only from the B127 and B126 tokens above (light and dark). Classes are added beside the B82/B90 ones,
   never renamed: .result-tile, .kpi-num, .trend, .stat, .spark keep their meaning. */
.fam-search { --fam: var(--fam-search); --fam-soft: var(--fam-search-soft); --fam-ink: var(--fam-search-ink); }
.fam-reach { --fam: var(--fam-reach); --fam-soft: var(--fam-reach-soft); --fam-ink: var(--fam-reach-ink); }
.fam-visits { --fam: var(--fam-visits); --fam-soft: var(--fam-visits-soft); --fam-ink: var(--fam-visits-ink); }
.fam-sales { --fam: var(--fam-sales); --fam-soft: var(--fam-sales-soft); --fam-ink: var(--fam-sales-ink); }
.fam-money, .fam-work { --fam: var(--fam-money); --fam-soft: var(--fam-money-soft); --fam-ink: var(--fam-money-ink); }
.fam-health { --fam: var(--fam-health); --fam-soft: var(--fam-health-soft); --fam-ink: var(--fam-health-ink); }
.fam-urgent { --fam: var(--fam-urgent); --fam-soft: var(--fam-urgent-soft); --fam-ink: var(--fam-urgent-ink); }

/* Metric tiles: the family's colour on the top edge, its icon chip, a big number, the change as a pill, a sparkline
   in the family colour with a soft gradient under it (SVG defs), and the source and period in a small footer. */
.result-tiles { gap: var(--space-4); }
.result-tile {
  position: relative; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--fam, var(--line-strong)); border-radius: var(--radius); padding: var(--space-4) var(--space-4) var(--space-3);
  box-shadow: var(--card-shadow);
}
.result-tile.result-missing { background: var(--surface); border-style: dashed; border-top-style: solid; box-shadow: none; }
.tile-head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.tile-chip { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--fam-soft, var(--surface-2)); color: var(--fam-ink, var(--ink-2)); }
.tile-chip .icon { width: 16px; height: 16px; stroke-width: 2; }
.result-tile .result-label { font-size: .84rem; font-weight: 650; line-height: 1.3; color: var(--ink-2); min-width: 0; }
.result-tile .kpi-num { font-size: 1.85rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.result-tile .kpi-num.muted { color: var(--muted); }
.trend-pill {
  align-self: flex-start; max-width: 100%; padding: 2px 9px 2px 6px; border-radius: var(--radius-pill); line-height: 1.45;
  background: var(--pill-flat-bg); color: var(--pill-flat-ink); font-size: .78rem; font-weight: 650;
}
.trend-pill.trend-good { background: var(--pill-good-bg); color: var(--pill-good-ink); }
.trend-pill.trend-bad { background: var(--pill-bad-bg); color: var(--pill-bad-ink); }
.trend-pill .small { font-size: inherit; font-weight: 600; }
.result-tile .spark { width: 100%; max-width: 100%; height: auto; margin: 2px 0 0; }
.spark-area { stroke: none; }
.spark-stop { stop-color: var(--fam, var(--link)); }
.result-tile .spark-line { stroke: var(--fam); stroke-width: 2; }
.result-tile .viz-spark-dot { fill: var(--fam); }
.tile-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--line); line-height: 1.4; }
.tile-foot .small { font-size: var(--text-xs); }
.tile-foot .result-source { margin-top: 0; }
.stat-row.result-tiles .stat-value { display: block; }

/* The summary band at the top of a page: the headline numbers on navy, each with its own coloured icon. */
.hero-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-lg); color: var(--band-ink); box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 100%);
}
.hero-stats .stat { background: var(--band-tile); border: 1px solid var(--band-line); box-shadow: none; padding: var(--space-3) var(--space-4); }
.hero-stats .stat-value { color: var(--band-ink); font-size: 1.3rem; }
.hero-stats .stat-label { color: var(--band-muted); }
.hero-stats .kpi-icon { background: color-mix(in srgb, var(--band-c) 18%, transparent); color: var(--band-c); }
.hero-stats .ring-track { stroke: var(--band-line); }
.hero-stats .ring-value { stroke: var(--band-c); }
.hero-stats .ring-text { fill: var(--band-ink); }
.band-teal { --band-c: var(--band-teal); } .band-blue { --band-c: var(--band-blue); }
.band-green { --band-c: var(--band-green); } .band-violet { --band-c: var(--band-violet); } .band-orange { --band-c: var(--band-orange); }

/* Section headers: the heading's icon sits in a chip; a section of one family takes that family's chip. */
.results-head h2 .icon, .connect-next h2 .icon, .viz-card-h .icon {
  box-sizing: border-box; width: 36px; height: 36px; padding: 8px; border-radius: var(--radius-md);
  background: var(--fam-soft, var(--accent-soft)); color: var(--fam-ink, var(--accent-ink));
}
.results-head h2 { gap: var(--space-3); }
#sales-leads { --fam-soft: var(--fam-sales-soft); --fam-ink: var(--fam-sales-ink); }
.results-head + .small, .results-head + p { margin-top: var(--space-2); }
.result-site-h { display: flex; align-items: center; gap: var(--space-2); }

/* Cards: one radius, one soft shadow. */
.results-home, .site-card, .viz-card, .is-app .panel, .is-app .card { box-shadow: var(--card-shadow); }
.viz-card { border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.viz-area-g { fill-opacity: 1; }
.viz-c1 { stop-color: var(--viz-1); } .viz-c2 { stop-color: var(--viz-2); } .viz-c3 { stop-color: var(--viz-3); }
.viz-c4 { stop-color: var(--viz-4); } .viz-c5 { stop-color: var(--viz-5); } .viz-c6 { stop-color: var(--viz-6); }
.viz-c7 { stop-color: var(--viz-7); } .viz-c8 { stop-color: var(--viz-8); }

/* Tables in the app: zebra rows; status chips keep their colours. */
.is-app tbody tr:nth-child(even) > td, .is-app tbody tr:nth-child(even) > th { background: var(--zebra); }
.is-app tbody tr:hover > td, .is-app tbody tr:hover > th { background: var(--surface-2); }
.is-app thead th { color: var(--ink-2); }

/* Navigation: the current page is a filled tab with a coloured underline. */
.console-nav a[aria-current="page"], .console-nav a[aria-current="true"] {
  font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent-line), inset 0 -3px 0 var(--nav-active);
}
@media (forced-colors: active) {
  .viz-area-g { fill-opacity: .2; }
  .result-tile { border-top-color: CanvasText; }
}
.viz-cards { align-items: start; }
/* At phone width two tiles share a row, so a sparkline stays a line and not a block. */
@media (max-width: 600px) {
  .result-tiles { grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: var(--space-3); }
  .site-card.result-card, .results-home { padding: var(--space-4); }
  .result-tile { padding: var(--space-3); }
  .result-tile .kpi-num { font-size: 1.5rem; }
  .tile-head { gap: 6px; }
  .tile-chip { width: 24px; height: 24px; }
  .tile-chip .icon { width: 14px; height: 14px; }
  .result-tile .result-label { font-size: .8rem; overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .trend-pill { font-size: .72rem; }
  .hero-stats { padding: var(--space-3); }
}
/* Sparklines take the colour of the metric family around them (the link colour elsewhere). */
.spark-line { stroke: var(--fam, var(--link)); }
.viz-spark-dot { fill: var(--fam, var(--link)); }
/* The hosted apps' figure list (_hosted_parity.html): each figure edged in its family colour. */
.hosted-figures { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.hosted-figures li { border-left: 4px solid var(--fam, var(--line-strong)); background: var(--surface); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); box-shadow: var(--card-shadow); }
.hosted-num { font-size: var(--text-lg); }
.hosted-figures .spark { display: inline-block; vertical-align: middle; width: 120px; height: 32px; }

/* Owner report 2026-11-02 ("customer sign in not showing"): Sign in stays in the header at every width, on one line */
.header-actions .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding-left: 10px; padding-right: 10px; }
  .brand-word { display: none; }  /* the link keeps its name through aria-label */
}

/* ---------- B128 (D-067): the conversion pages (home, pricing) and the hosted apps' Premium card ----------
   Rules only: every colour is an existing token (the B127 metric-family accents for the chips, the navy band and
   teal of the brand), so tests/test_b127_theme.py's contrast checks cover them. Phone width: every grid becomes one
   column and the comparison table becomes one card per task, so nothing scrolls sideways at 360px. */
.hero-second { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 0; color: var(--band-muted); font-size: .95rem; }
.btn-on-dark { background: transparent; color: var(--band-ink); border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.btn-on-dark:hover, .btn-on-dark:focus-visible { background: rgba(255, 255, 255, .1); color: var(--band-ink); border-color: var(--band-ink); }
.hero a.btn-on-dark, .cta-panel a.btn-on-dark { color: var(--band-ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.section-tight { padding-top: 0; }

/* What an agency does vs what Rankeraxe does */
.vs-wrap { max-width: 1040px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); overflow: hidden; }
.vs-table { font-size: .95rem; font-variant-numeric: normal; }
.vs-table thead th { background: var(--surface-2); color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px; }
.vs-table thead th.vs-us { background: var(--accent-soft); color: var(--accent-ink); }
.vs-table th, .vs-table td { padding: 16px 18px; }
.vs-table tbody th { width: 26%; font-weight: 650; color: var(--ink); }
.vs-table tbody th, .vs-table tbody td { vertical-align: middle; }
.vs-table td { color: var(--muted); }
.vs-table td.vs-us { color: var(--ink); background: color-mix(in srgb, var(--accent-soft) 45%, transparent); border-left: 3px solid var(--accent-line); }
.vs-table tbody tr:last-child > * { border-bottom: 0; }
.vs-task { display: flex; align-items: center; gap: 10px; }
.vs-task .vs-chip { margin-right: 0; flex: none; }
.vs-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; vertical-align: middle; border-radius: var(--radius-sm); background: var(--fam-soft, var(--accent-soft)); color: var(--fam-ink, var(--accent-ink)); }
.vs-chip .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .vs-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vs-table tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); margin: 0 0 12px; overflow: hidden; }
  .vs-table tbody th { width: auto; padding: 14px 16px 6px; border: 0; }
  .vs-table td { padding: 6px 16px 12px; border: 0; }
  .vs-table td.vs-us { border-left: 0; border-top: 1px solid var(--accent-line); padding-top: 12px; }
  .vs-table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .vs-table td.vs-us::before { color: var(--accent-ink); }
}

/* SEO, GEO and AEO */
.gaa-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gaa-grid .card.gaa-card { margin: 0; padding: 26px; border-radius: var(--radius-lg); border-top: 4px solid var(--fam); box-shadow: var(--card-shadow); }
.gaa-chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fam-soft); color: var(--fam-ink); }
.gaa-chip .icon { width: 22px; height: 22px; }
.gaa-tag { margin: 14px 0 0; font-size: .78rem; font-weight: 750; letter-spacing: .12em; color: var(--fam-ink); }
.gaa-card h3 { margin: 4px 0 8px; }
.gaa-card p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 920px) { .gaa-grid { grid-template-columns: minmax(0, 1fr); } }
.section-dark .control-grid .icon { flex: none; }

/* Free vs Premium on the home page: the shared block sits inside the section's own spacing */
.home-plans #free-vs-pro { padding-top: 0; padding-bottom: 8px; }

/* Pricing: benefit lines, Free for good, what Premium unlocks, money and cancellation */
.price-pitch { font-weight: 650; color: var(--ink); margin: 8px 0 6px; }
.price-benefits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.price-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.price-benefits .icon { flex: none; color: var(--accent-ink); margin-top: 3px; }
.money-line { max-width: 980px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.money-line li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); font-size: .92rem; color: var(--ink-2); }
.money-line li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.money-line .icon { flex: none; width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: var(--radius-sm); background: var(--fam-soft, var(--accent-soft)); color: var(--fam-ink, var(--accent-ink)); }
.unlock-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.unlock-col { margin: 0; padding: 26px 28px; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
.unlock-col h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.3rem; }
.unlock-col h2 .icon { box-sizing: border-box; width: 34px; height: 34px; padding: 8px; border-radius: var(--radius-md); background: var(--fam-soft, var(--accent-soft)); color: var(--fam-ink, var(--accent-ink)); }
.unlock-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.unlock-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.unlock-list li > .icon { flex: none; color: var(--fam-ink, var(--accent-ink)); margin-top: 3px; }
.unlock-list .badge { margin-left: 4px; }
.unlock-premium .unlock-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.unlock-scale { margin-top: 18px; }
@media (max-width: 920px) {
  .unlock-grid, .money-line { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .unlock-premium .unlock-list { grid-template-columns: minmax(0, 1fr); } .unlock-col { padding: 20px; } }

/* The hosted apps' Premium card (_hosted_parity.html) */
.rx-offer { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--accent-line); border-left: 5px solid var(--accent-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); box-shadow: var(--card-shadow); }
.rx-offer h2 { margin: 4px 0 6px; }
.rx-offer-tag { display: inline-block; margin: 0; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--navy-900); color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rx-offer-items { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--space-2); }
.rx-offer-items li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rx-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rx-offer-actions form { margin: 0; }

/* WCAG 2.5.8: the "Recommended next" links and the growth plan link below them are at least 24 px tall */
.next-recs .plain-list a, .next-recs p.small a { display: inline-block; min-height: 24px; line-height: 24px; }

/* ---------- B129 (D-068): the home page's hooks ----------
   Existing tokens only (the brand teal and navy band, the B127 metric families), so test_b127_theme's contrast checks
   cover every pair. Motion runs only under prefers-reduced-motion: no-preference; the resting frame is complete. */
.hero .hook-title { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; margin: 18px 0 18px; text-wrap: balance; }
.hook-line { display: inline; }
.hook-accent {
  color: var(--band-teal);
  background: radial-gradient(140% 260% at 0% 50%, var(--band-teal) 0%, var(--band-blue) 50%, var(--band-violet) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .hook-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; color: var(--band-muted); }
.hook-pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hook-pills li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill); background: var(--band-tile); border: 1px solid rgba(110, 224, 200, .35);
  color: var(--band-ink); font-weight: 650; font-size: .95rem;
}
.hook-where { display: block; margin-top: 6px; color: var(--band-ink); font-weight: 650; }
.hook-pills .icon { width: 18px; height: 18px; color: var(--band-teal); flex: none; }
.engine-row { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--band-line); display: grid; gap: 12px; justify-items: center; text-align: center; }
.engine-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
.engine-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.engine-list li { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--band-tile); border: 1px solid var(--band-line); color: var(--band-ink); font-size: .92rem; font-weight: 600; }
.engine-list .icon { width: 15px; height: 15px; color: var(--band-teal); }
.engine-note { margin: 0; font-size: .78rem; color: var(--band-muted); }

/* What Rankeraxe does for you: SEO, AEO and GEO in the B127 families */
.wwd-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wwd-col {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 28px 26px 22px; border-radius: var(--radius-lg);
  background: radial-gradient(130% 55% at 50% 0%, var(--fam-soft) 0%, var(--surface) 100%); border: 1px solid var(--line);
  border-top: 5px solid var(--fam); box-shadow: var(--card-shadow);
}
.wwd-head { display: flex; align-items: center; gap: 14px; }
.wwd-icon { display: inline-grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--fam); color: var(--surface); box-shadow: var(--shadow-sm); }
.wwd-icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.wwd-tag { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--fam-ink); }
.wwd-head h3 { margin: 4px 0 0; font-size: .95rem; line-height: 1.3; font-weight: 650; color: var(--ink-2); }
.wwd-promise { margin: 0; font-size: 1.12rem; font-weight: 650; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.wwd-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wwd-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.wwd-ticks .icon { flex: none; width: 20px; height: 20px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: var(--fam-soft); color: var(--fam-ink); margin-top: 2px; stroke-width: 3; }
.wwd-where { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: .84rem; font-weight: 650; color: var(--fam-ink); }
.wwd-local { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 26px auto 0; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.wwd-local .icon { flex: none; width: 22px; height: 22px; color: var(--fam-health-ink); margin-top: 2px; }
.wwd-local strong { color: var(--ink); }

/* The loop: audit, fix, publish, measure, improve */
.loop-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: loop; }
.loop-step { position: relative; min-width: 0; padding: 22px 18px 18px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); text-align: center; counter-increment: loop; }
.loop-step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -16px; width: 14px; height: 14px; z-index: 1;
  border-top: 3px solid var(--line-strong); border-right: 3px solid var(--line-strong); transform: rotate(45deg);
}
.loop-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fam-soft); color: var(--fam-ink); border: 2px solid var(--fam); }
.loop-icon .icon { width: 24px; height: 24px; }
.loop-step h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.loop-step h3::before { content: counter(loop) ". "; color: var(--fam-ink); }
.loop-step p { margin: 0; font-size: .92rem; color: var(--muted); }
.loop-sleep { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 28px auto 0; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink-2); }
.loop-sleep .icon { flex: none; width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.loop-sleep strong { color: var(--ink); }

/* The repeated call to action */
.cta-band-wrap { padding-top: 56px; padding-bottom: 8px; }
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  padding: 32px 40px; border-radius: var(--radius-lg); color: var(--band-ink);
  background: radial-gradient(70% 160% at 0% 0%, rgba(110, 224, 200, .16), transparent 60%), radial-gradient(150% 260% at 100% 100%, var(--band-2) 0%, var(--band-1) 75%);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: var(--band-ink); }
.cta-band a.btn-on-dark { color: var(--band-ink); }
.cta-band :focus-visible { outline-color: var(--teal); }

@media (max-width: 1020px) {
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-step:not(:last-child)::after { display: none; }
}
@media (max-width: 920px) { .wwd-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .loop-grid { grid-template-columns: minmax(0, 1fr); }
  .loop-step { text-align: left; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  .loop-step .loop-icon { grid-row: span 2; }
  .loop-step h3 { margin-top: 2px; }
  .cta-band { padding: 26px 20px; }
  .wwd-col { padding: 22px 18px 18px; }
  .hook-pills li { font-size: .9rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hook-accent { background-size: 200% 100%; animation: hook-shine 9s var(--ease) infinite alternate; }
  .hook-live .icon { animation: hook-glow 3.2s ease-in-out infinite; }
  .wwd-col, .loop-step { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .wwd-col:hover, .loop-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
@keyframes hook-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes hook-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- B130b (D-069): the app's simple-first components (templates/_ui.html) ----------
   A page hero band with 3-4 headline numbers, colourful action cards with icon chips, CSS-only switches over real
   checkboxes, big segmented mode buttons, status badges and an "Advanced" disclosure. No script and no inline style:
   state comes from :checked and <details>. Colours are the B127 families and status tokens; the switch tokens below
   (defined before the B127 rules, with the other colour tokens) are checked by tests/test_b130b_design.py (3:1 for the switch against its ground, 4.5:1 for text). Every target is
   at least 24px (most are 44px). */

/* The page hero band: what this page is, and its headline numbers on navy. */
.app-hero {
  margin: var(--space-4) 0 var(--space-2); padding: var(--space-6); border-radius: var(--radius-lg); color: var(--band-ink);
  background: var(--hero-band); box-shadow: var(--shadow);
}
.app-hero .eyebrow, .app-hero .eyebrow a { color: var(--band-teal); }
.app-hero h1 { margin: 2px 0 6px; color: var(--band-ink); }
.app-hero .hero-lead { color: var(--band-muted); max-width: 60ch; margin: 0 0 var(--space-4); }
.app-hero a { color: var(--band-ink); }
.app-hero :focus-visible { outline-color: var(--teal); }
.hero-nums { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
             grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.hero-num {
  --band-c: var(--band-teal);
  display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius); background: var(--band-tile); border: 1px solid var(--band-line);
}
.hero-num-icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
                 background: color-mix(in srgb, var(--band-c) 20%, transparent); color: var(--band-c); }
.hero-num-icon .icon { width: 22px; height: 22px; }
.hero-num-text { display: flex; flex-direction: column; min-width: 0; }
.hero-num-value { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; color: var(--band-ink); }
.hero-num-label { font-size: .85rem; color: var(--band-ink); line-height: 1.35; }  /* band-muted falls under 4.5:1 on the tinted tiles */
.hero-num a { color: var(--band-ink); text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* Status badges: green on, grey off, amber needs you, violet Premium. Text, not colour alone, carries the state. */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; border: 1px solid transparent;
  background: var(--pill-flat-bg); color: var(--pill-flat-ink);
}
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status-badge .icon { width: 14px; height: 14px; }
.status-badge:has(.icon)::before { display: none; }
.status-on { background: var(--ok-bg); color: var(--ok-ink); }
.status-off { background: var(--pill-flat-bg); color: var(--pill-flat-ink); border-color: var(--line-strong); }
.status-needs { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.status-premium { background: var(--premium-bg); color: var(--premium-ink); }

/* Switches: a real checkbox drawn as a switch (role="switch" names the state), 48 by 28px, keyboard and form intact. */
input.switch {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0;
  border-radius: var(--radius-pill); background: var(--switch-off); cursor: pointer; border: 0;
  transition: background var(--dur-fast) var(--ease);
}
input.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--switch-knob); box-shadow: 0 1px 3px rgba(2, 8, 23, .35); transition: transform var(--dur-fast) var(--ease);
}
input.switch:checked { background: var(--switch-on); }
input.switch:checked::before { transform: translateX(20px); }
input.switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input.switch:disabled { opacity: .45; cursor: not-allowed; }
@media (forced-colors: active) {
  input.switch { border: 2px solid CanvasText; background: Canvas; }
  input.switch:checked { background: Highlight; }
  input.switch::before { background: CanvasText; }
}

/* Colourful action cards: the family colour on the top edge and in the icon chip, one sentence, a footer row. */
.action-cards { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-4);
                grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.action-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0;
  padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--line);
  border-top: 5px solid var(--fam, var(--accent-strong)); border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
}
.action-card.is-on { border-color: var(--fam, var(--accent-strong)); box-shadow: inset 0 0 0 1px var(--fam, var(--accent-strong)), var(--card-shadow); }
.action-card-head { display: flex; align-items: flex-start; gap: var(--space-3); }
.icon-chip { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-md);
             background: var(--fam-soft, var(--accent-soft)); color: var(--fam-ink, var(--accent-ink)); }
.icon-chip .icon { width: 22px; height: 22px; stroke-width: 2; }
.action-card-title { flex: 1; min-width: 0; margin: 0; font-size: 1.05rem; line-height: 1.3; }
.action-card-title label { cursor: pointer; }
.action-card-line { margin: 0; color: var(--ink-2); font-size: .95rem; }
.action-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto;
                    padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.action-card-foot .last { flex: 1 1 140px; min-width: 0; }
.action-card .switch { margin-top: 8px; }
a.action-card { color: inherit; text-decoration: none; }
a.action-card:hover { box-shadow: var(--shadow); }
a.action-card:hover .action-card-title { text-decoration: underline; }

/* Big segmented mode buttons: real radios, the chosen one filled and ringed. */
.mode-picker { border: 0; margin: var(--space-4) 0; padding: 0; min-width: 0; }
.mode-picker legend { font-weight: 700; font-size: 1.1rem; margin-bottom: var(--space-3); padding: 0; }
.mode-options { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.mode-opt { position: relative; display: block; cursor: pointer; }
.mode-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mode-face {
  display: flex; align-items: flex-start; gap: var(--space-3); height: 100%; min-height: 72px; padding: var(--space-4);
  border: 2px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.mode-face strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.mode-face .small { display: block; color: var(--ink-2); line-height: 1.4; }
.mode-opt:hover .mode-face { border-color: var(--fam, var(--mode-ring)); }
.mode-opt input:checked + .mode-face {
  border-color: var(--mode-ring); background: var(--fam-soft, var(--accent-soft));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mode-ring) 30%, transparent), var(--shadow-sm);
}
.mode-opt input:checked + .mode-face .mode-tick { visibility: visible; }
.mode-tick { visibility: hidden; margin-left: auto; color: var(--mode-ring); }
.mode-opt input:focus-visible + .mode-face { outline: 3px solid var(--focus); outline-offset: 2px; }
.mode-more { margin-top: var(--space-3); }
.mode-more .mode-options { margin-top: var(--space-3); }
.mode-more .mode-face { min-height: 56px; padding: var(--space-3); }

/* One big Save bar under the cards. */
.save-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin: var(--space-4) 0;
            padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface);
            border: 1px solid var(--accent-line); box-shadow: var(--card-shadow); }
.save-bar .small { flex: 1 1 260px; margin: 0; color: var(--muted); }
.save-bar button { min-height: 48px; padding: 12px 28px; font-size: 1.05rem; }

/* "Advanced": everything technical, collapsed by default. */
details.advanced { margin: var(--space-8) 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
                   background: var(--surface-2); }
details.advanced > summary {
  list-style: none; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-5);
  font-size: 1.05rem; color: var(--ink); border-radius: var(--radius-lg);
}
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid currentColor;
                                    border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none; }
details.advanced[open] > summary::after { transform: rotate(-135deg); }
details.advanced > summary .small { font-weight: 500; color: var(--muted); }
details.advanced[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.advanced-body { padding: 0 var(--space-5) var(--space-5); }
.advanced-body > .section { padding-top: var(--space-6); }
.advanced-body h2 { font-size: 1.25rem; }
.policy-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

@media (max-width: 600px) {
  .app-hero { padding: var(--space-4); border-radius: var(--radius); }
  .hero-num { padding: var(--space-3); }
  .hero-num-icon { width: 36px; height: 36px; }
  .action-card { padding: var(--space-4); }
  .save-bar { padding: var(--space-4); }
  .save-bar button { width: 100%; }
  details.advanced > summary { padding: var(--space-3) var(--space-4); }
  .advanced-body { padding: 0 var(--space-3) var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { input.switch, input.switch::before, .mode-face { transition: none; } }

/* B130b (D-069): the three-screen setup on the hosted apps' screens (_hosted_parity.html), as in the plugins. */
.setup-screens { margin: var(--space-6) 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg);
                 background: var(--surface); box-shadow: var(--card-shadow); }
.setup-progress-title { margin: 0 0 var(--space-3); font-size: 1.25rem; }
.setup-steps { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-2);
               grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); counter-reset: none; }
.setup-step { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-3);
              border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: .92rem;
              border-bottom: 4px solid var(--line-strong); }
.setup-step.is-done { background: var(--ok-bg); color: var(--ok-ink); border-bottom-color: var(--fam-money); }
.setup-step.is-current { background: var(--accent-soft); color: var(--accent-ink); border-bottom-color: var(--accent-strong); }
.setup-dot { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
             background: var(--surface); border: 2px solid currentColor; font-weight: 750; }
.setup-screen h3 { margin-top: 0; }
.agree-summary { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.agree-summary > div { padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.agree-summary h4 { margin: 0 0 var(--space-2); }
.agree-summary ul { margin: 0; padding-left: 1.2rem; }
.agree-does { background: var(--ok-bg); color: var(--ok-ink); }
.agree-never { background: var(--warn-bg); color: var(--warn-ink); }
.agree-scroll { max-height: 260px; overflow-y: auto; margin: var(--space-3) 0; padding: var(--space-3) var(--space-4);
                border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); font-size: .9rem; }
.agree-card { margin: var(--space-4) 0 0; padding: var(--space-4) var(--space-5); border: 2px solid var(--accent-line);
              border-radius: var(--radius-lg); background: var(--accent-soft); }
.agree-card-line { font-size: 1.05rem; }
.setup-standing { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 4px solid var(--fam-reach);
                  background: var(--fam-reach-soft); color: var(--fam-reach-ink); border-radius: var(--radius-sm); font-weight: 600; }
.auto-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-5);
             border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.auto-card > div { flex: 1 1 240px; min-width: 0; }
.auto-card h3 { margin: 0 0 4px; }
.auto-card.is-locked { border-style: dashed; color: var(--ink-2); }
.auto-card.is-open { background: var(--surface); border: 2px solid var(--fam-money); box-shadow: var(--card-shadow); }
@media (max-width: 600px) { .setup-screens { padding: var(--space-4); } .agree-card { padding: var(--space-4); } }

/* B130b: the section pages' head is the hero band; their three lines are its tiles (and a band of their own on Home). */
.app-head.app-hero { display: block; }
.app-head.app-hero > div { min-width: 0; }
.three-lines { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-3);
                margin: var(--space-4) 0; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--hero-band); }
.app-hero .three-lines { margin: 0; padding: 0; background: none; }
.three-lines .hero-num-label { display: block; font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; font-weight: 700; }
.three-lines .hero-num-line { color: var(--band-ink); font-weight: 600; line-height: 1.4; }
/* B130b: connection cards carry their state in colour on the top edge as well as in words. */
.source-card.is-ok { border-top: 4px solid var(--fam-money); }
.source-card.is-off { border-top: 4px solid var(--fam-visits); }
.source-card.is-warn { border-top: 4px solid var(--fam-urgent); }
.app-hero + .journey, .app-head.app-hero + * { margin-top: var(--space-5); }
.app-hero .meta-chips li { background: var(--band-tile); color: var(--band-ink); border-color: var(--band-line); }

/* ---------- B140 (F-31, F-32; D-081): Rankeraxe at work, before and now, markets, and the sorted site pages ----------
   Compact and professional: 13px labels and values on one line, slim bars, page titles instead of full addresses;
   panels with subtle depth (a layered soft shadow, a 1px border, a gradient top accent drawn as SVG defs, 10px
   corners). The pulse on a
   working stage and on the heartbeat runs only under prefers-reduced-motion: no-preference. */
.control-room { display: grid; gap: var(--space-4); margin: var(--space-4) 0; }
.bar-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: 6px; }
.bar-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--space-3); font-size: 13px;
  line-height: 1.35; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.bl-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.bl-value { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bl-words { flex-basis: 100%; color: var(--muted); }
.bn-good .bl-value { color: var(--ok-ink); } .bn-bad .bl-value { color: var(--err-ink); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 4px; }
.compact-table { font-size: 13px; }
.compact-table th, .compact-table td { padding: 6px 8px; vertical-align: top; }
.site-pages .row-off { opacity: .6; }
.site-group { margin-bottom: var(--space-3); }
.bulk-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-2) 0; }
button.switch { min-width: 52px; border-radius: 999px; }
button.switch-on { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok); }
/* B144 (F-7): the two-factor QR code, always dark on white so phones can read it in dark mode too */
.qr-code { display: inline-block; background: var(--qr-bg); padding: 4px; border-radius: 4px; line-height: 0; }
.qr-code svg { max-width: 100%; height: auto; }

/* B150 (F-35): Your next steps (Now, Next, Later), one guide on Home, the hosted app screens and the plugins. */
.next-steps { border-color: var(--accent-line); }
.ns-group { margin: var(--space-4) 0 var(--space-2); font-size: 1rem; }
.ns-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ns-item { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); background: var(--surface); }
.ns-now { border-left: 4px solid var(--accent-strong); }
.ns-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ns-why { margin: var(--space-1) 0; color: var(--ink-2); }
.ns-how ol { margin: var(--space-2) 0 0; padding-left: 1.4em; }
.ns-act { margin-top: var(--space-2); }
.ns-act .inline-form button { margin-left: 0; }
.ns-done { margin-top: var(--space-3); }
.next-steps-card ol { margin: var(--space-1) 0 var(--space-2); padding-left: 1.4em; }

/* B154: one Changes view on every channel: three groups, each change as a card with what is on the site now beside
   what Rankeraxe suggests (words that go struck through, words that come marked; no JavaScript). */
.cv-group { margin: var(--space-6) 0 var(--space-2); font-size: 1.15rem; }
.cv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.cv-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); background: var(--surface); }
.cv-waiting { border-left: 4px solid var(--accent-strong); }
.cv-undone { border-left: 4px solid var(--warn-line); }
.cv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-2); }
.cv-what { font-weight: 650; }
.cv-page { color: var(--ink-2); overflow-wrap: anywhere; }
.cv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: var(--space-2) 0; }
@media (max-width: 640px) { .cv-pair { grid-template-columns: 1fr; } }
.cv-side { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); overflow-wrap: anywhere; }
.cv-side h4 { margin: 0 0 var(--space-1); font-size: .85rem; color: var(--muted); text-transform: none; }
.cv-new { background: var(--ok-bg); }
.cv-side del { background: var(--warn-bg); color: var(--warn-ink); }
.cv-side ins { background: var(--surface); color: var(--ok-ink); text-decoration: none; font-weight: 650; border-bottom: 2px solid var(--ok-ink); }
.cv-fields { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--space-3); }
.cv-fields dt { color: var(--muted); }
.cv-fields dd { margin: 0; overflow-wrap: anywhere; }
.cv-why, .cv-protect, .cv-state, .cv-next { margin: var(--space-1) 0; }
.cv-protect { color: var(--ink-2); }
.cv-act { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.cv-act .inline-form button { margin-left: 0; }
.cv-confirm { border-color: var(--accent-line); }
/* B163: the approvals inbox, separated: a summary line, pills that are plain links (what the page is, then the kind of
   change, each with its count), sections by page group and kind, one compact row per change and the full why in
   Details. Tokens only; wraps at phone width. */
.cv-summary { margin: var(--space-2) 0 var(--space-3); overflow-wrap: anywhere; }
.cv-pills ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; }
.cv-pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
.cv-pills a:hover { border-color: var(--muted); }
.cv-pills a.is-active, .cv-pills a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 650; }
.cv-pills-kind a { font-size: .85rem; min-height: 32px; }
.cv-count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 650; text-align: center; }
.cv-sec { margin: var(--space-4) 0; }
.cv-sec-head { margin: 0 0 var(--space-2); font-size: 1.05rem; display: flex; align-items: center; gap: var(--space-2); }
.cv-kind { margin: 0 0 var(--space-4); }
.cv-kind-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-2); }
.cv-kind-head h5 { margin: 0; font-size: .95rem; color: var(--ink-2); display: flex; align-items: center; gap: var(--space-2); }
.cv-bulk { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cv-bulk .inline-form button { margin-left: 0; }
.cv-row { padding: var(--space-2) var(--space-3); }
.cv-row .cv-head { margin: 0 0 4px; }
.cv-row .cv-page { font-weight: 600; color: var(--ink); }
.cv-oldnew { margin: 2px 0; overflow-wrap: anywhere; }
.cv-oldnew del { background: var(--warn-bg); color: var(--warn-ink); }
.cv-oldnew ins { color: var(--ok-ink); text-decoration: none; font-weight: 650; border-bottom: 2px solid var(--ok-ink); }
.cv-old { color: var(--ink-2); }
.cv-arrow { color: var(--muted); padding: 0 2px; }
.cv-label { color: var(--muted); }
.cv-row .cv-why { margin: 2px 0; color: var(--ink-2); }
.cv-row .cv-act { margin-top: var(--space-1); }
.cv-details { margin-top: var(--space-1); }
.cv-details[open] { border-top: 1px solid var(--line); padding-top: var(--space-2); }
.cv-details .cv-fields { margin-top: var(--space-2); }
.cv-confirm-list { margin: var(--space-2) 0; padding-left: 1.4em; overflow-wrap: anywhere; }
.cv-held { margin: var(--space-1) 0 var(--space-2); padding-left: 1.2em; overflow-wrap: anywhere; }
.fix-src { margin: var(--space-5) 0 var(--space-2); font-size: 1.05rem; display: flex; align-items: center; gap: var(--space-2); }
.ns-area { font-size: .75rem; }
.cv-more > summary { cursor: pointer; margin: var(--space-2) 0; color: var(--accent-ink); font-weight: 600; }

/* ---------- D-085: six navigation items, the phone's bottom bar and the Progress dashboard ----------
   One look with the WordPress plugin (assets/css/admin.css): layered shadows, a 1px border, a gradient top edge
   drawn as an SVG and a 10px radius. Motion is CSS only and runs once (rise-in, ring fill, line draw, segment fill);
   only a stage that is really working pulses. Every animation sits inside prefers-reduced-motion: no-preference,
   and the resting frame is complete without it. Text sits on solid surfaces; gradients are edges only. */
:root {
  --depth-1: 0 1px 1px rgba(15, 23, 42, .04), 0 2px 4px rgba(15, 23, 42, .04), 0 10px 24px -12px rgba(15, 23, 42, .18);
  --depth-2: 0 1px 1px rgba(15, 23, 42, .05), 0 4px 8px rgba(15, 23, 42, .06), 0 16px 32px -14px rgba(15, 23, 42, .26);
  --depth-3: 0 2px 2px rgba(15, 23, 42, .06), 0 8px 16px rgba(15, 23, 42, .08), 0 24px 48px -18px rgba(15, 23, 42, .32);
  --depth-edge: inset 0 1px 0 rgba(255, 255, 255, .7);
  --pd-radius: 10px; --bar-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --depth-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -14px rgba(0, 0, 0, .7);
    --depth-2: 0 2px 4px rgba(0, 0, 0, .45), 0 14px 30px -14px rgba(0, 0, 0, .75);
    --depth-3: 0 4px 8px rgba(0, 0, 0, .5), 0 22px 44px -18px rgba(0, 0, 0, .8);
    --depth-edge: inset 0 1px 0 rgba(255, 255, 255, .05);
  }
}

/* Navigation: six items that wrap, never scroll sideways */
.ws-nav ul.ws-sections { flex-wrap: wrap; overflow: visible; }
.ws-nav .nav-short { display: none; }
@media (max-width: 760px) {
  .is-app main { padding-bottom: calc(var(--bar-h) + 16px); }
  .is-app .site-footer { padding-bottom: calc(var(--bar-h) + 28px); }
  .ws-nav { position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; border-top: 1px solid var(--line-strong);
    border-bottom: 0; box-shadow: 0 -6px 18px -12px rgba(15, 23, 42, .35); padding-bottom: env(safe-area-inset-bottom); }
  .ws-nav .wrap { padding: 0; max-width: none; }
  .ws-nav .console-nav-row { min-height: var(--bar-h); }
  .ws-nav ul.ws-sections { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; gap: 0;
    padding: 4px 2px; flex-wrap: nowrap; }
  .ws-nav li { min-width: 0; }
  .ws-nav a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; width: 100%;
    padding: 4px 1px; font-size: .6875rem; line-height: 1.1; text-align: center; white-space: normal; border-radius: 8px; }
  .ws-nav a .icon { width: 20px; height: 20px; }
  .ws-nav .nav-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ws-nav .nav-short { display: block; overflow-wrap: anywhere; }
  .ws-nav .staff-link { display: none; }
}

/* Every page: one line saying what it is and what to do here */
.page-line { margin: 0 0 var(--space-2); color: var(--ink-2); max-width: var(--measure); }
.page-line-next strong { color: var(--ink); }

/* Progress dashboard */
.pd-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); margin: var(--space-4) 0; }
@media (min-width: 1100px) {
  .pd-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pd-grid > * { grid-column: span 12; }
  .pd-grid > .achievements, .pd-grid > .data-health { grid-column: span 6; }
}
.pd-card, .progress-home .next-steps { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pd-radius); padding: var(--space-5) var(--space-5) var(--space-4); box-shadow: var(--depth-1), var(--depth-edge);
  overflow: hidden; min-width: 0; margin: 0; }
.pd-accent { position: absolute; inset: 0 0 auto 0; width: 100%; height: 3px; display: block; }
.pd-card h2 { font-size: 1.1rem; margin: 0; }
.pd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-3); }
.pd-sub { font-size: .9rem; margin: 0 0 var(--space-2); text-transform: none; }
.pd-hero h1 { margin-bottom: var(--space-1); }
.pd-more { margin-top: var(--space-2); }
.pd-empty .stack-form { max-width: 520px; }

/* 1. setup bar: five segments */
.setup-bar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.setup-bar-head h2 { font-size: 1rem; }
.setup-bar-next { margin: 0; color: var(--ink-2); }
.setup-segs { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
.setup-seg { display: grid; gap: 6px; min-width: 0; }
.setup-seg-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.setup-seg-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent-strong);
  transform: scaleX(0); transform-origin: left center; }
.setup-seg.is-done .setup-seg-bar::after { transform: scaleX(1); }
.setup-seg.is-next .setup-seg-bar { box-shadow: inset 0 0 0 2px var(--accent-strong); }
.setup-seg.is-soon .setup-seg-bar { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.setup-seg-label { color: var(--ink-2); }
.setup-seg.is-next .setup-seg-label { color: var(--ink); font-weight: 650; }
.setup-bar-act { margin: var(--space-3) 0 0; }

/* 2. next steps on Progress: cards in a light stack */
.progress-home .ns-item { box-shadow: var(--depth-1), var(--depth-edge); border-radius: var(--pd-radius); }
.progress-home .ns-item:focus-within { box-shadow: var(--depth-2), var(--focus-ring); }

/* 3. Rankeraxe at work: the pipeline */
.pd-beat { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.beat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.stage-flow { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(124px, 100%), 1fr)); }
.stage { position: relative; display: grid; gap: 2px; align-content: start; font-size: 13px; padding: 10px 10px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 6px -3px rgba(15, 23, 42, .25), var(--depth-edge); }
.stage::after { content: ""; position: absolute; top: 18px; inset-inline-end: calc(-1 * var(--space-3)); width: var(--space-3);
  height: 2px; background: var(--line-strong); }
.stage:last-child::after { display: none; }
.stage.is-done { border-color: var(--accent-line); }
.stage.is-working { border-color: var(--ok); }
.stage.is-waiting { border-color: var(--warn-line); }
.stage-top { display: flex; align-items: center; gap: 6px; }
.stage-dot { width: 18px; height: 18px; flex: none; }
.stage-dot circle { fill: var(--line-strong); }
.stage-dot .stage-dot-done { fill: var(--ok); } .stage-dot .stage-dot-working { fill: var(--viz-1); } .stage-dot .stage-dot-waiting { fill: var(--med); }
.stage-tick { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage-name { font-weight: 650; color: var(--ink); }
.stage-state { color: var(--ink-2); }
.stage-when { color: var(--muted); font-size: 12px; }
.stage-packet { position: absolute; top: 15px; inset-inline-end: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); z-index: 1; }
.stage:last-child .stage-packet { display: none; }
.pd-split { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.counters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: var(--space-2); }
.counter { display: grid; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.counter-num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.counter-lab { font-size: 12px; color: var(--ink-2); }
.feed { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 6px; }
.feed li { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.feed-ago { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* 4. Before → Now cards */
.bn-site + .bn-site { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.bn-grid { list-style: none; margin: var(--space-2) 0; padding: 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); perspective: 900px; }
.bn { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: var(--space-3); border-radius: 8px;
  border: 1px solid var(--line); border-inline-start: 4px solid var(--line-strong); background: var(--surface);
  box-shadow: var(--depth-1); min-width: 0; }
.bn.is-good { border-inline-start-color: var(--ok); }
.bn.is-bad { border-inline-start-color: var(--crit); }
.bn-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bn-now { font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.bn-now.bn-wait { color: var(--ink-2); font-size: 1.25rem; }
.bn-arrow { font-size: .9rem; }
.bn.is-good .bn-arrow { color: var(--ok-ink); } .bn.is-bad .bn-arrow { color: var(--err-ink); }
.bn-before, .bn-words { color: var(--ink-2); }

/* 5. achievements: a time line and badges */
.ach-line { display: block; width: 100%; height: 2px; margin: 0 0 var(--space-3); overflow: visible; }
.ach-line line { stroke: var(--accent-strong); stroke-width: 2; }
.ach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ach { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-2); align-items: center; }
.ach-badge { grid-row: span 2; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok-ink); border: 2px solid var(--ok); font-weight: 700; font-size: 14px; }
.ach.is-next .ach-badge { background: var(--surface); border: 2px dashed var(--line-strong); }
.ach-text { font-weight: 600; color: var(--ink); }
.ach.is-next .ach-text { color: var(--ink-2); }
.ach-day { color: var(--ink-2); }

/* 6. data health: a ring that fills and one line per source */
.dh-body { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.pd-ring { flex: none; width: 64px; height: 64px; }
.pd-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 3.5; }
.pd-ring-value { fill: none; stroke: var(--accent-strong); stroke-width: 3.5; stroke-linecap: round; }
.dh-sum { margin: 0; }
.dh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.dh-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--space-2); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dh-src { color: var(--ink); }

/* hover lifts a card a little (pointer devices only) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pd-card, .bn, .progress-home .ns-item { transition: transform .16s ease, box-shadow .16s ease; }
  .pd-card:hover, .progress-home .ns-item:hover { transform: translateY(-2px); box-shadow: var(--depth-2), var(--depth-edge); }
  .bn:hover { transform: translateY(-2px); box-shadow: var(--depth-2); }
}
/* one-time motion */
@media (prefers-reduced-motion: no-preference) {
  .pd-grid > .pd-card, .pd-grid > .next-steps { animation: pd-rise .42s var(--ease) both; }
  .pd-grid > :nth-child(2) { animation-delay: .06s; } .pd-grid > :nth-child(3) { animation-delay: .12s; }
  .pd-grid > :nth-child(4) { animation-delay: .18s; } .pd-grid > :nth-child(5) { animation-delay: .24s; }
  .pd-grid > :nth-child(n+6) { animation-delay: .3s; }
  .bn { animation: pd-flip .5s var(--ease) both; transform-origin: top center; }
  .bn:nth-child(2) { animation-delay: .06s; } .bn:nth-child(3) { animation-delay: .12s; } .bn:nth-child(4) { animation-delay: .18s; }
  .bn:nth-child(n+5) { animation-delay: .24s; }
  .bn-now, .counter-num { animation: pd-fade .6s ease-out .2s both; }
  .setup-seg.is-done .setup-seg-bar::after { animation: pd-fill .7s var(--ease) both; }
  .pd-ring-value { animation: pd-ring 1s var(--ease) .15s both; }
  .ach-line line { stroke-dasharray: 100; animation: pd-draw 1.2s var(--ease) .1s both; }
  .ach.is-reached .ach-badge { animation: pd-pop .4s var(--ease) both; }
  .ach.is-new .ach-badge { animation: pd-pop .4s var(--ease) both, pd-pulse 1.8s ease-in-out 3; }
  /* live only: a stage that is really working */
  .stage.is-working .stage-dot circle, .pd-beat.is-live .beat-dot { animation: pd-pulse 1.8s ease-in-out infinite; }
  .stage.is-working .stage-packet { animation: pd-travel 1.6s ease-in-out infinite; }
}
@keyframes pd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pd-flip { from { opacity: 0; transform: rotateX(8deg) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pd-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pd-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pd-pop { from { transform: scale(.85); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pd-travel { from { transform: translateX(-8px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(10px); opacity: 0; } }
@media (forced-colors: active) {
  .setup-seg-bar, .pd-card, .bn { border: 1px solid CanvasText; }
  .setup-seg.is-done .setup-seg-bar::after { background: CanvasText; }
}
.settings-jump ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 var(--space-4); }
.settings-jump a { display: inline-flex; align-items: center; min-height: 32px; }
.next-step .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---------- B156 (D-085, batches 3 and 4): the section pages in the Progress look ----------
   The light head of Progress on every section page; cards with the same depth tokens; compact rows; groups that
   open with <details>. B156 retired the .aw-* duplicates: the hosted apps' control room uses these classes too. */
.sec-head { margin-bottom: var(--space-2); }
.sec-line { max-width: 70ch; }
.plugin-hint { margin: 0 0 var(--space-3); }
.plugin-hint p { margin: 0; color: var(--ink-2); }
.pd-card h2 .icon, .pd-card h2 > svg { width: 18px; height: 18px; flex: none; }
.auto-top .pd-head h2, .conn-card h2, .res-card h2, .set-card h2 { display: flex; align-items: center; gap: 8px; }
.conn-card h2, .res-card h2, .set-card h2 { font-size: 1.1rem; margin: 0 0 var(--space-2); }
.auto-doing { margin: 0 0 var(--space-3); }
.auto-counters { margin-bottom: var(--space-2); }
#autopilot-next { margin: var(--space-3) 0 0; }
.auto-group { border-top: 1px solid var(--line); }
.auto-group > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px;
  padding: 6px 0; font-weight: 650; color: var(--ink); }
.auto-group .automation-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.auto-row { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); min-width: 0; }
.auto-row.is-ok { border-inline-start: 3px solid var(--ok); }
.auto-row p { margin: 0; }
.auto-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.auto-row-name { font-weight: 650; color: var(--ink); }
.auto-row-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.auto-row-act form { margin: 0; }
.conn-cards, .res-cards, .set-cards { display: grid; gap: var(--space-4); margin: var(--space-4) 0;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.res-wide, .set-wide, .set-cards > details, .set-cards > #activity, .set-cards > .manage-part:not(.pd-card) { grid-column: 1 / -1; }
.set-cards { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); grid-auto-flow: row dense; }
.set-card .check-grid { grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); }
.res-card > section.results-home { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.conn-rows { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.conn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.conn-row:last-child { border-bottom: 0; padding-bottom: 0; }
.conn-name { font-weight: 600; overflow-wrap: anywhere; }
.conn-note { flex-basis: 100%; color: var(--ink-2); }
.conn-row .inline-form { margin: 0; }
.ads-pick { display: grid; gap: 6px; margin-top: var(--space-3); }
.ads-pick-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ads-pick select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.res-card p, .set-card > p { margin-top: 0; }
.res-more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; }
.res-acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.res-card .plain-list li + li { margin-top: var(--space-2); }
.set-card .manage-part { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.set-card .manage-part h3 { margin-top: 0; }
.set-card .stack-form { max-width: none; }
.set-danger { border-color: var(--err-line); }
.settings-jump { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 4px 0; }
.set-cards > [id], .set-card [id] { scroll-margin-top: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .conn-cards > .pd-card, .res-cards > .pd-card, .set-cards > .pd-card { animation: pd-rise .42s var(--ease) both; }
  .conn-cards > :nth-child(2), .res-cards > :nth-child(2), .set-cards > :nth-child(2) { animation-delay: .05s; }
  .conn-cards > :nth-child(n+3), .res-cards > :nth-child(n+3), .set-cards > :nth-child(n+3) { animation-delay: .1s; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .auto-row { transition: box-shadow .16s ease, transform .16s ease; }
  .auto-row:hover { box-shadow: var(--depth-1); transform: translateY(-1px); }
  .set-card:hover { transform: none; }
}

/* ---------- B158 (owner 2026-11-09: "world standard system layout"): page header, summary tiles, tab panels, the
   fix list, illustrations and empty states shared by the screens split into tabs. Tokens only, light and dark. ---- */
:root { --ph-art-bg: var(--accent-soft); --tile-min: 210px; }
.ph { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4) var(--space-6);
      margin: var(--space-6) 0 var(--space-4); padding: var(--space-5) var(--space-6); background: var(--surface);
      border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ph-art { width: 96px; height: 96px; border-radius: var(--radius-lg); background: var(--ph-art-bg); display: grid; place-items: center; }
.ph-art svg { width: 80px; height: 80px; }
.ph-main { min-width: 0; }
.ph-eyebrow { margin: 0 0 2px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ph-eyebrow a { color: inherit; }
.ph-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.ph-title h1 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); overflow-wrap: anywhere; }
.ph-purpose { margin: var(--space-2) 0 0; color: var(--ink-2); max-width: 70ch; }
.ph-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.ph-actions form { margin: 0; }
.ph-actions .btn, .ph-actions button { white-space: nowrap; }
@media (max-width: 760px) {
  .ph { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .ph-art { display: none; }
  .ph-actions { justify-content: flex-start; }
}
.status-bad { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.status-work { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
/* tabs that are links (?tab=): the current one is marked by aria-current */
.page-tabs.tabs-links { margin: var(--space-2) 0 var(--space-5); }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill);
             background: var(--surface-3); color: var(--ink-2); font-size: var(--text-xs); font-weight: 700; }
.tab[aria-current="page"] .tab-count { background: var(--accent-strong); color: var(--surface); }
@media (prefers-color-scheme: dark) { .tab[aria-current="page"] .tab-count { background: var(--teal); color: var(--teal-ink); } }
.tab-panel { min-width: 0; }
.tab-panel > h2:first-child, .tab-panel > .panel-head:first-child h2 { margin-top: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-3); }
.panel-head h2 { margin: 0; font-size: 1.25rem; }
.panel-head p { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); }
/* summary tiles: the three or four numbers that matter, each with an icon */
.sum-tiles { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3);
             grid-template-columns: repeat(auto-fit, minmax(min(var(--tile-min), 100%), 1fr)); }
.sum-tile { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; padding: var(--space-4); background: var(--surface);
            border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sum-tile .icon-chip { width: 40px; height: 40px; }
.sum-tile .icon-chip .icon { width: 20px; height: 20px; }
.sum-body { min-width: 0; display: grid; gap: 2px; }
.sum-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sum-value { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.sum-note { font-size: var(--text-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.sum-note a { font-weight: 600; }
.sum-tile .status-badge { justify-self: start; margin-top: 2px; }
/* a calm banner that says the state in one sentence */
.state-banner { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4);
                border-radius: var(--radius); border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info-ink); }
.state-banner p { margin: 0; color: var(--ink); }
.state-banner .icon { width: 22px; height: 22px; flex: none; }
.state-banner.is-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.state-banner.is-bad { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.state-banner.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
/* the "Fix these" list: one row per problem, its one-click repair on the right, the steps folded */
.fix-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.fix-item { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sev, var(--line-strong));
            border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); min-width: 0; }
.fix-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.fix-title { margin: 0; font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.fix-item > p { margin: var(--space-2) 0 0; color: var(--ink-2); }
.fix-act { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.fix-act form { margin: 0; }
.fix-item details { margin-top: var(--space-2); }
.fix-item summary, .fold > summary { cursor: pointer; font-weight: 600; color: var(--link); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.fix-item summary::-webkit-details-marker, .fold > summary::-webkit-details-marker { display: none; }
.fix-item summary::before, .fold > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); margin-right: 2px; }
@media (prefers-reduced-motion: no-preference) { .fix-item summary::before, .fold > summary::before { transition: transform var(--dur-fast) var(--ease); } }
.fix-item details[open] > summary::before, .fold[open] > summary::before { transform: rotate(45deg); }
.fix-item ol { margin: var(--space-2) 0 0; padding-left: 1.3em; }
.fold { margin: var(--space-3) 0; }
.fold > div, .fold > ul, .fold > .fold-body { margin-top: var(--space-3); }
.term { border-bottom: 1px dotted var(--muted); cursor: help; }
.plain-help { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted); }
/* friendly empty state with an illustration and one action */
.ux-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-2); padding: var(--space-8) var(--space-5);
            background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.ux-empty svg { width: 120px; height: 96px; }
.ux-empty h3 { margin: var(--space-2) 0 0; }
.ux-empty p { margin: 0; max-width: 52ch; color: var(--ink-2); }
.ux-empty .btn { margin-top: var(--space-2); }
/* "what it does for you": short benefit rows with a tick */
.does-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.does-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.does-list .icon { color: var(--ok); margin-top: 3px; }
.two-col { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.two-col > .card { margin: 0; }
.card h2, .card h3 { margin-top: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.card-actions form { margin: 0; }
/* settings overview: one tile per area, each a link to its tab */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.area-tile { display: flex; gap: var(--space-3); align-items: flex-start; height: 100%; padding: var(--space-4); background: var(--surface);
             border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.area-tile:hover { border-color: var(--accent-line); color: var(--ink); text-decoration: none; }
.area-tile strong { display: block; }
.area-tile .small { color: var(--ink-2); }
/* the illustrations (inline SVG, colours from tokens) */
.art-bg { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.art-soft { fill: var(--accent-soft); }
.art-line { fill: var(--surface-3); }
.art-strong { fill: var(--accent-strong); }
.art-stroke { fill: none; stroke: var(--accent-strong); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-ok { fill: var(--ok); } .art-warn { fill: var(--med); } .art-bad { fill: var(--crit); }
.art-ink { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-white { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .art-strong { fill: var(--teal); } .art-stroke { stroke: var(--teal); } }
.tab-panel .cv-list { margin-top: var(--space-2); }
.tab-panel .section#changes { padding-top: 0; padding-left: 0; padding-right: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); }
.form-card { max-width: 760px; }
.form-card .stack-form { max-width: none; margin: var(--space-3) 0 0; }
.form-card fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: var(--space-2) 0; display: grid; gap: 8px; min-width: 0; }
.form-card legend { font-weight: 700; padding: 0 6px; }
.form-hint { font-size: var(--text-sm); color: var(--muted); margin: -4px 0 4px; }
/* B158: Progress's top: the overview and "Needs you" side by side; the steps and numbers of the work are links */
.pd-top { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); align-items: start; min-width: 0; }
.pd-top-main { display: grid; gap: var(--space-4); min-width: 0; }
@media (min-width: 1100px) {
  .pd-top { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
  .pd-top > .pd-top-main { grid-column: 1; grid-row: 1; }
  .pd-top > .needs-you { grid-column: 2; grid-row: 1; }
}
.needs-you { border-top: 4px solid var(--fam-health, var(--med)); }
.needs-you h2 { margin: 0 0 var(--space-3); font-size: 1.15rem; display: flex; align-items: center; gap: var(--space-2); }
.needs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.need { display: grid; gap: 4px; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.need:first-child { padding-top: 0; border-top: 0; }
.need-title { line-height: 1.35; }
.need-why { color: var(--ink-2); }
.need-act { margin-top: 4px; }
.need-act .btn, .need-act button { padding: 8px 14px; font-size: .9rem; }
.need-clear { color: var(--ok-ink); margin: 0; }
.all-steps .next-steps { box-shadow: none; border: 0; padding: 0; }
.all-steps .next-steps > h2 { display: none; }
.counter-link, .stage-link { display: grid; gap: 2px; align-content: start; color: inherit; text-decoration: none; height: 100%; }
.counter:has(.counter-link):hover, .stage:has(.stage-link):hover { border-color: var(--accent-line); }
.counter-link:hover, .stage-link:hover { color: inherit; text-decoration: none; }
.counter-link:hover .counter-lab, .stage-link:hover .stage-name { text-decoration: underline; }
@media (min-width: 1100px) {
  .pd-top-main .stage-flow { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2); }
  .pd-top-main .stage { padding: 8px 7px; font-size: 12px; }
  .pd-top-main .stage-name { overflow-wrap: anywhere; }
}
/* ---------- B161 (owner 2026-11-09: world-class, plain, honest): the word diff of a change (the words that go
   struck through, the words that come highlighted), its keyword chips and why panel; "What Rankeraxe has added"
   with what was already yours beside each figure, first on Progress; the professional /added page. Tokens only,
   light and dark, no script, nothing wider than a phone. ---- */
:root { --diff-del-bg: var(--err-bg); --diff-del-ink: var(--err-ink); --diff-ins-bg: var(--ok-bg); --diff-ins-ink: var(--ok-ink); }
.change-diff .cv-side p { margin: 0; line-height: 1.6; }
.change-diff del { background: var(--diff-del-bg); color: var(--diff-del-ink); text-decoration: line-through;
                   text-decoration-thickness: 1.5px; border-radius: var(--radius-xs); padding: 0 3px; }
.change-diff ins { background: var(--diff-ins-bg); color: var(--diff-ins-ink); text-decoration: none; font-weight: 650;
                   border-bottom: 0; border-radius: var(--radius-xs); padding: 0 3px; box-shadow: inset 0 -2px 0 var(--ok); }
.change-diff .cv-new { background: var(--surface); border-color: var(--accent-line); }
.change-why { display: grid; gap: var(--space-2); margin: var(--space-2) 0; padding: var(--space-3) var(--space-4);
              background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.change-why p { margin: 0; color: var(--ink-2); }
.change-why strong { color: var(--ink); }
.change-kept, .change-added, .change-removed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kw-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 10px; border-radius: var(--radius-pill);
           border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--text-xs);
           font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.kw-chip ins, .kw-chip del { background: none; padding: 0; box-shadow: none; color: inherit; }
.kw-chip ins { text-decoration: none; }
.kw-chip del { text-decoration: line-through; }
.kw-kept { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.kw-added { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.kw-removed { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.change-risk { padding-left: var(--space-3); border-left: 3px solid var(--ok); }
.change-risk-held { border-left-color: var(--med); }
.change-data { font-size: var(--text-xs); }
/* What Rankeraxe has added: the headline, then one tile per figure with "already yours" under a quiet rule */
.growth-card { border-left: 4px solid var(--fam-search, var(--accent-strong)); }
.growth-added { display: grid; gap: var(--space-3); min-width: 0; }
.growth-card .growth-added, .ga-overview .growth-added { margin-top: var(--space-2); }
.ga-headline { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ga-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
           grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.ga-row { display: grid; gap: 4px; align-content: start; min-width: 0; margin: 0; padding: var(--space-3) var(--space-4);
          background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius-sm); }
.ga-state-added { border-left-color: var(--ok); }
.ga-state-fell { border-left-color: var(--crit); }
.ga-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ga-added { font-size: 1rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ga-added strong { font-size: 1.15rem; }
.ga-state-added .ga-added strong { color: var(--ok-ink); }
.ga-state-fell .ga-added strong { color: var(--err-ink); }
.ga-state-too_early .ga-added, .ga-state-no_data .ga-added { color: var(--ink-2); font-size: var(--text-sm); }
.ga-yours { display: block; margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line-strong); color: var(--muted); overflow-wrap: anywhere; }
.ga-note { margin: 0; }
.ga-more { font-weight: 600; white-space: nowrap; }
.ga-site + .ga-site { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
/* the professional page */
.ga-page .page-tabs { margin-top: 0; }
.ga-table th[scope="row"] { font-weight: 600; }
.ga-table td, .ga-table th { vertical-align: top; }
.ga-table .badge { white-space: nowrap; }
tr.ga-state-added td:nth-child(4) .badge { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
tr.ga-state-fell td:nth-child(4) .badge { background: var(--err-bg); color: var(--err-ink); border-color: transparent; }
.ga-method, .ga-rules { display: grid; gap: var(--space-2); max-width: var(--measure); padding-left: 1.2em; color: var(--ink-2); }
.ga-rules { list-style: none; padding: 0; }
.ga-rules li { padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ga-rules strong { display: block; color: var(--ink); }
tr.ga-stopped th { color: var(--err-ink); }
@media (max-width: 640px) {
  .ga-row { padding: var(--space-3); }
  .change-why { padding: var(--space-3); }
}
/* B161: the frame above a page head: the breadcrumb with one compact "Site tools" control beside it; the data states
   and the help inside the head as small pills and a small fold */
.crumb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.crumb-bar > .breadcrumbs { min-width: 0; }
.site-tools { position: relative; }
.site-tools > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong);
                        border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font-size: var(--text-sm);
                        font-weight: 600; cursor: pointer; list-style: none; flex-wrap: wrap; max-width: 100%; }
.site-tools > summary::-webkit-details-marker { display: none; }
.site-tools > summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor;
                               border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.site-tools[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.site-tools > summary .icon { width: 16px; height: 16px; }
.site-tools-here { color: var(--accent-ink); }
.site-tools-here::before { content: "·"; margin-right: 6px; color: var(--muted); }
.site-tools[open] > .page-tabs { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(320px, calc(100vw - 32px));
                                 margin: 0; padding: var(--space-2); background: var(--surface); border: 1px solid var(--line);
                                 border-radius: var(--radius); box-shadow: var(--shadow); }
.site-tools .page-tabs ul { display: grid; gap: 2px; margin: 0; padding: 0; overflow: visible; border: 0; flex-wrap: wrap; }
.site-tools .page-tabs .tab { display: flex; width: 100%; white-space: normal; border: 0; border-radius: var(--radius-sm); padding: 8px 10px; }
.site-tools .page-tabs .tab[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 640px) {
  .site-tools { width: 100%; }
  .site-tools[open] > .page-tabs { left: 0; right: auto; width: 100%; }
}
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-3); }
.ph-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ph-pills li { margin: 0; }
.ph-pills .chip { font-size: var(--text-xs); text-decoration: none; white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.crumb-bar .breadcrumbs ol { flex-wrap: wrap; }
.ph-meta .help-box { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: var(--text-sm); }
.ph-meta .help-box > summary { color: var(--link); font-weight: 600; font-size: var(--text-xs); padding: 0; }
.ph-meta .help-box[open] { flex-basis: 100%; }
.ph-help-body { margin-top: var(--space-2); padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--radius-sm); }
.ph-help-body p { margin: 0 0 var(--space-1); font-size: var(--text-sm); }
.recent-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.recent-changes li { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; color: var(--ink-2); }
.recent-changes .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.recent-changes .recent-undone .icon { color: var(--muted); }
/* B162: the keyword plan. Cards per page, keywords as rows with their role and state, the plan table, and the
   content map (the money page in the centre, its articles around it on wide screens, a list on a phone). */
.kp-page .page-tabs { margin-top: 0; }
.kp-card { display: grid; gap: var(--space-3); min-width: 0; }
.kp-card h2, .kp-card h3 { margin: 0; overflow-wrap: anywhere; }
.kp-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.kp-card-head input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.kp-pages { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-top: var(--space-4); }
.kp-kws { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.kp-kw { min-width: 0; padding: var(--space-2) var(--space-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kp-kw.is-held { border-color: var(--warn-line); background: var(--warn-bg); }
.kp-kw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-2); overflow-wrap: anywhere; }
.kp-role-main .kp-role { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.kp-goal, .kp-conflict { margin: 4px 0 0; }
.kp-conflict { color: var(--warn-ink); }
.kp-spark { width: 96px; height: 28px; flex: none; }
.kp-edit > summary, .kp-add > summary { cursor: pointer; }
.kp-edit[open] { margin-top: var(--space-2); }
.kp-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 4px var(--space-2) 0 0; }
.kp-form { display: grid; gap: var(--space-2); margin-top: var(--space-2); max-width: 640px; }
.kp-form textarea { width: 100%; }
.kp-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.kp-form-row select, .kp-inline select { max-width: 100%; }
.kp-sugg { border-top: 1px dashed var(--line-strong); padding-top: var(--space-2); }
.kp-sugg-row { background: var(--surface); }
.kp-bulk { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.kp-bulk textarea { width: 100%; }
.kp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.kp-chips .chip { text-decoration: none; }
.kp-table th, .kp-table td { vertical-align: top; }
.kp-table th[scope="row"] { font-weight: 600; overflow-wrap: anywhere; }
.kp-conflicts { margin: var(--space-3) 0; border-color: var(--warn-line); }
.kp-mini { display: grid; gap: var(--space-2); margin: var(--space-2) 0; }
.kp-mini p { margin: 0; }
.kp-mini-counts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.kp-mini-counts .chip { text-decoration: none; }
.kp-map { display: grid; gap: var(--space-3); margin: var(--space-4) 0; padding: var(--space-4); background: var(--surface);
          border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kp-hub { justify-self: center; text-align: center; max-width: 420px; padding: var(--space-3) var(--space-4); border: 2px solid var(--accent-line);
          border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); min-width: 0; }
.kp-hub h3 { margin: 2px 0; overflow-wrap: anywhere; }
.kp-hub p { margin: 0; }
.kp-spokes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.kp-spoke { position: relative; display: grid; gap: 4px; min-width: 0; padding: var(--space-3); border: 1px solid var(--line);
            border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; }
.kp-spoke::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--space-3)); height: var(--space-3); border-left: 2px dashed var(--accent-line); }
.kp-spoke-published { border-color: var(--ok); }
.kp-spokes-none { text-align: center; }
.kp-next { margin-top: var(--space-4); }
/* B182 (keyword_moves.py): one page's keyword panel, a keyword move as one decision for two pages, the alert card.
   Tokens only; no animation. */
.kp-panel { display: grid; gap: var(--space-4); }
.kp-panel > p { margin: 0; }
.kp-card h4 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.kp-open { margin: 0; }
.kp-open a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.kp-choice, .kp-sides { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.kp-opt, .kp-side { display: grid; gap: var(--space-2); align-content: start; min-width: 0; padding: var(--space-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kp-opt.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
.kp-opt p, .kp-side p, .kp-change p { margin: 0; }
.kp-side h4 a { overflow-wrap: anywhere; }
.kp-change { display: grid; gap: 4px; min-width: 0; padding: var(--space-2) var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kp-strong { margin: var(--space-2) 0; }
.kp-strong p { margin: 0 0 4px; }
.kp-check { display: flex; align-items: flex-start; gap: var(--space-2); font-weight: 400; }
.kp-check input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.kp-fieldset { display: grid; gap: 6px; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; }
.kp-actions { margin-top: var(--space-2); }
.kp-actions p { margin: 0; }
.kp-events .kp-kw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.kp-alerts { margin: var(--space-4) 0; }
.kp-rank td, .kp-rank th { white-space: normal; }
.chip.kp-st-holding { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.chip.kp-st-climbing { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.chip.kp-st-slipping { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.chip.kp-st-not_ranking { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); }

/* ---------- B168: the simple view (four items, More tools, Settings & help) and Home's live scene ----------
   The simple bar: Home, Approve changes, Automations, Connect, then More tools and Settings & help as small links at
   the end (on a phone: five icons at the bottom; Settings & help is one tap away on More tools). The live scene is
   CSS only: perspective, transforms and opacity (GPU-friendly, no layout animation). Only parts the records say are
   working move (.is-flowing, .is-working, .is-live); everything else is still. Every animation sits inside
   prefers-reduced-motion: no-preference; the still frame is complete and still looks three-dimensional. */

/* the simple bar */
.ws-simple ul.ws-sections { align-items: center; }
.ws-simple .ws-link a { font-size: var(--text-sm); color: var(--ink-2); }
.ws-simple .ws-link-more { margin-inline-start: auto; }
@media (max-width: 760px) {
  .ws-simple ul.ws-sections { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ws-simple .ws-link-more { margin: 0; }
  .ws-simple .ws-link a { font-size: .6875rem; }
  .ws-simple .ws-link-settings { display: none; }
}

/* Approve changes, More tools, the short automation list, More connections, the view switch */
.approve-boxes { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.approve-box .pd-head { flex-wrap: wrap; gap: var(--space-2); }
.approve-box h2 { overflow-wrap: anywhere; }
.approve-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.approve-box.has-waiting { border-color: var(--accent-line); }
.approve-unlinked { margin: var(--space-2) 0; }
.approve-how { margin-top: var(--space-4); }
.plain-steps { margin: var(--space-2) 0 0; padding-left: 1.3em; display: grid; gap: var(--space-1); }
.more-grid { display: grid; gap: var(--space-4); margin: var(--space-4) 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.more-card h2 a { color: inherit; text-decoration: none; }
.more-card h2 a:hover { text-decoration: underline; }
.more-links { columns: 1; }
.more-pro { margin-top: var(--space-4); }
.pro-switch .pro-state { margin: var(--space-2) 0; }
.auto-short-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 0; }
.auto-short { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start;
  padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.auto-short:first-child { border-top: 0; }
.auto-short-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ls-off); }
.auto-short.is-ok .auto-short-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.auto-short-main { display: grid; gap: 2px; min-width: 0; }
.auto-short-name { font-weight: 600; overflow-wrap: anywhere; }
.auto-short-what, .auto-short-last { overflow-wrap: anywhere; }
.auto-short-state { display: grid; justify-items: end; gap: 4px; text-align: end; }
.auto-detail { grid-column: 1 / -1; }
.more-conn { margin: var(--space-4) 0; }
.more-conn > summary { display: flex; align-items: center; gap: var(--space-2); }
.more-conn > summary .icon { width: 18px; height: 18px; }

/* Home's live scene */
.live-scene { overflow: clip; background:
    radial-gradient(120% 90% at 85% 0%, var(--ls-sky-b), transparent 60%),
    radial-gradient(110% 90% at 0% 100%, var(--ls-sky-a), transparent 55%), var(--surface); }
.live-scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: var(--ls-grid-lines);
  background-size: 28px 28px; -webkit-mask-image: var(--ls-fade-mask);
  mask-image: var(--ls-fade-mask); }
.live-scene > * { position: relative; }
.ls-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4); }
.ls-head h2 { display: inline-flex; align-items: center; gap: var(--space-2); overflow-wrap: anywhere; min-width: 0; }
.ls-sum { margin: 0; color: var(--ink-2); }
.ls-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ls-off); flex: none; }
.live-scene.is-live .ls-live-dot { background: var(--viz-1); box-shadow: 0 0 0 4px var(--ls-glow); }
.ls-stage { perspective: 1400px; perspective-origin: 50% 20%; margin: var(--space-4) 0 var(--space-3); }
.ls-plane { display: grid; align-items: center; gap: 0; transform-style: preserve-3d;
  grid-template-columns: minmax(0, 1.55fr) 124px minmax(22px, .45fr) minmax(0, 1fr);
  transform: rotateX(12deg) rotateY(-7deg); transform-origin: 50% 60%; }
.ls-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; transform-style: preserve-3d; }
.ls-sources::after { content: ""; position: absolute; right: 0; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
  background: var(--ls-rail); opacity: .55; }
.ls-src { display: flex; align-items: center; min-width: 0; transform-style: preserve-3d; }
.ls-card { flex: 0 1 205px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  background: var(--ls-glass); box-shadow: var(--depth-2), var(--depth-edge);
  transform: translateZ(22px); }
.ls-card:hover, .ls-card:focus-visible { transform: translateZ(34px) translateY(-1px); box-shadow: var(--depth-3), var(--depth-edge); }
.ls-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; position: relative;
  background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ls-ico .icon { width: 17px; height: 17px; }
.ls-txt { display: grid; min-width: 0; line-height: 1.25; }
.ls-name { font-weight: 600; font-size: var(--text-sm); overflow-wrap: anywhere; }
.ls-state { font-size: 12px; color: var(--ink-2); }
.ls-act { color: var(--link); font-weight: 600; text-decoration: underline; }
.ls-src.is-still .ls-ico { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ls-src.is-not_connected .ls-card, .ls-src.is-not_checked .ls-card { border-style: dashed; }
.ls-src.is-late .ls-ico, .ls-src.is-problem .ls-ico { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.ls-wire { flex: 1 1 auto; position: relative; height: 12px; min-width: 18px; overflow: hidden; }
.ls-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 2px;
  background: var(--ls-dash-x); opacity: .7; }
.ls-src.is-flowing .ls-wire::before, .ls-out.is-flowing::before {
  background: var(--ls-flow-x); opacity: .9; }
.ls-packet { position: absolute; inset: 0; width: 100%; transform: translateX(-34px); }
.ls-packet::before { content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 8px; border-radius: 4px;
  background: var(--ls-packet); box-shadow: 0 0 10px 2px var(--ls-glow); }
.ls-engine { display: grid; justify-items: center; gap: 2px; text-align: center; transform: translateZ(48px); position: relative; z-index: 1; }
.ls-core { width: 112px; height: 112px; overflow: visible; filter: drop-shadow(0 14px 18px var(--ls-glow)); }
.ls-halo { fill: var(--accent-soft); opacity: .7; }
.ls-ring circle { fill: none; stroke: url(#ls-ring); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 22 6 9 6; }
.ls-r2 circle { stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .8; }
.ls-ring, .ls-orbit, .ls-moon, .ls-ball { transform-box: view-box; transform-origin: 60px 60px; }
.ls-g1 { stop-color: var(--ls-core-a); } .ls-g2 { stop-color: var(--ls-core-b); }
.ls-mark { fill: var(--ls-mark); }
.ls-moon { fill: var(--viz-3); stroke: var(--surface); stroke-width: 1.4; }
.ls-m2 { transform: rotate(72deg); } .ls-m3 { transform: rotate(144deg); } .ls-m4 { transform: rotate(216deg); } .ls-m5 { transform: rotate(288deg); }
.ls-eng-name { font-weight: 700; letter-spacing: .02em; }
.ls-eng-state { color: var(--ink-2); }
.ls-engine:not(.is-working) .ls-core { filter: none; }
.ls-engine:not(.is-working) .ls-ring circle { stroke: var(--ls-off); }
.ls-out { align-self: center; }
.ls-site { display: grid; gap: 6px; padding: 10px 12px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ls-glass-tilt); box-shadow: var(--depth-3), var(--depth-edge);
  color: var(--ink); text-decoration: none; transform: translateZ(30px) rotateY(-12deg); transform-origin: 0 50%; min-width: 0; }
.ls-site:hover, .ls-site:focus-visible { box-shadow: var(--depth-3), 0 0 0 3px var(--accent-line); }
.ls-site-bar { display: flex; gap: 4px; }
.ls-site-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ls-site-host { font-weight: 700; overflow-wrap: anywhere; }
.ls-site-lines { display: grid; gap: 5px; }
.ls-site-lines span { height: 6px; border-radius: 3px; background: var(--ls-site-line); transform-origin: 0 50%; }
.ls-l1 { width: 90%; } .ls-l2 { width: 70%; } .ls-l3 { width: 80%; }
.ls-site.is-flowing .ls-l2 { background: var(--ls-flow-x); }
.ls-site-note { color: var(--ink-2); }
.ls-figs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ls-fig a { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--ls-glass-tilt); box-shadow: var(--depth-1), var(--depth-edge);
  color: var(--ink); text-decoration: none; }
.ls-fig a:hover, .ls-fig a:focus-visible { transform: translateY(-2px); box-shadow: var(--depth-2), var(--depth-edge); }
.ls-num { font-size: 1.6rem; font-weight: 750; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: var(--ls-num-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-lab { font-size: 12px; color: var(--ink-2); }
.ls-added { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; font-weight: 600; }
.ls-added-ico .icon { width: 18px; height: 18px; color: var(--accent-ink); }
@media (max-width: 640px) {
  .ls-plane { grid-template-columns: minmax(0, 1fr); gap: 12px; transform: rotateX(8deg); }
  .ls-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ls-sources::after, .ls-src .ls-wire { display: none; }
  .ls-card { flex: 1 1 auto; padding: 7px 8px; gap: 8px; }
  .ls-ico { width: 28px; height: 28px; }
  .ls-src.is-flowing .ls-ico::after { content: ""; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--viz-1); box-shadow: 0 0 0 2px var(--surface); }
  .ls-engine { grid-row: 2; }
  .ls-core { width: 92px; height: 92px; }
  .ls-out { grid-row: 3; justify-self: center; width: 12px; height: 26px; min-width: 0; }
  .ls-out::before { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: var(--ls-dash-y); }
  .ls-out.is-flowing::before { background: var(--ls-flow-y); }
  .ls-out .ls-packet { display: none; }
  .ls-site { grid-row: 4; transform: translateZ(20px); }
  .ls-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .ls-card, .ls-fig a { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .live-scene.is-live .ls-plane { animation: ls-float 12s ease-in-out infinite; }
  .live-scene.is-live .ls-src.is-flowing .ls-packet, .live-scene.is-live .ls-out.is-flowing .ls-packet { animation: ls-flow 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
  .ls-src.is-flowing .ls-p2, .ls-out.is-flowing .ls-p2 { animation-delay: -1.3s; }
  .ls-src:nth-child(2) .ls-packet { animation-duration: 2.9s; } .ls-src:nth-child(3) .ls-packet { animation-duration: 2.3s; }
  .ls-src:nth-child(4) .ls-packet { animation-duration: 3.1s; } .ls-src:nth-child(5) .ls-packet { animation-duration: 2.5s; }
  .live-scene.is-live .ls-engine.is-working .ls-r1 { animation: ls-spin 16s linear infinite; }
  .live-scene.is-live .ls-engine.is-working .ls-r2 { animation: ls-spin 10s linear infinite reverse; }
  .live-scene.is-live .ls-engine.is-working .ls-orbit { animation: ls-spin 7s linear infinite; }
  .live-scene.is-live .ls-engine.is-working .ls-ball { animation: ls-breathe 3.2s ease-in-out infinite; }
  .live-scene.is-live .ls-live-dot { animation: ls-pulse 2s ease-out infinite; }
  .live-scene.is-live .ls-site.is-flowing .ls-l2 { animation: ls-write 2.6s ease-in-out infinite; }
  .live-scene.is-live .ls-src.is-flowing .ls-ico::after { animation: ls-pulse 2s ease-out infinite; }
  .ls-fig { animation: ls-rise .6s var(--ease) both; }
  .ls-fig:nth-child(2) { animation-delay: .08s; } .ls-fig:nth-child(3) { animation-delay: .16s; } .ls-fig:nth-child(4) { animation-delay: .24s; }
}
@keyframes ls-float { 0%, 100% { transform: rotateX(12deg) rotateY(-7deg) translateY(0); }
  50% { transform: rotateX(9deg) rotateY(-3deg) translateY(-5px); } }
@keyframes ls-flow { from { transform: translateX(-34px); } to { transform: translateX(100%); } }
@keyframes ls-spin { to { transform: rotate(360deg); } }
@keyframes ls-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ls-pulse { 0% { box-shadow: 0 0 0 0 var(--ls-glow); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes ls-write { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
@keyframes ls-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* B168: on a phone, Home's first screen holds the one thing to do: the setup bar shows its segments and the next
   step (the labels stay for screen readers), and the workspace chips step aside */
@media (max-width: 640px) {
  .progress-home .setup-seg-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .progress-home .setup-segs { gap: 4px; margin-top: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .progress-home .meta-chips { display: none; }
  .progress-home .pd-hero .page-intro { font-size: var(--text-sm); }
}

/* B168: the editable proposal cards (one per field of a text change): a coloured badge per field, now → suggested
   with the changed words marked, the checks it passed and the suggestion in a box the customer may change. Depth
   from layered shadows and a soft gradient edge; text on solid surfaces; light and dark. */
.cv-field { --fld: var(--fld-title); --fld-bg: var(--fld-title-bg); --fld-edge: var(--fld-title-edge); position: relative; margin: var(--space-2) 0;
  padding: 10px 12px 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--depth-1), var(--depth-edge); overflow: hidden; }
.cv-field::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--fld-edge); }
.cv-f-description { --fld: var(--fld-desc); --fld-bg: var(--fld-desc-bg); --fld-edge: var(--fld-desc-edge); }
.cv-f-alt { --fld: var(--fld-alt); --fld-bg: var(--fld-alt-bg); --fld-edge: var(--fld-alt-edge); }
.cv-f-name { --fld: var(--fld-name); --fld-bg: var(--fld-name-bg); --fld-edge: var(--fld-name-edge); }
.cv-field.has-error { border-color: var(--err-line); }
.cv-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; }
.cv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--fld); background: var(--fld-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fld) 30%, transparent), 0 2px 6px -3px var(--fld); }
.cv-badge .icon { width: 15px; height: 15px; }
.cv-len { color: var(--ink-2); }
.cv-field .cv-oldnew { margin: 0 0 6px; overflow-wrap: anywhere; }
.cv-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.cv-check { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; }
.cv-check .icon { width: 13px; height: 13px; }
.cv-check.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.cv-check.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.cv-edit { display: grid; gap: 6px; margin: 0; }
.cv-edit textarea { width: 100%; min-height: 3.2em; resize: vertical; border-radius: 10px; font: inherit;
  border: 1px solid color-mix(in srgb, var(--fld) 40%, var(--line-strong)); background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06); }
.cv-edit textarea:focus-visible { outline: 2px solid var(--fld); outline-offset: 1px; }
.cv-edit button { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.cv-edit button .icon { width: 15px; height: 15px; }
.cv-edit-why { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 6px 10px; border-radius: 8px;
  background: var(--err-bg); color: var(--err-ink); font-size: var(--text-sm); }
.cv-edit-why .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cv-edited { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.cv-edited .icon { width: 14px; height: 14px; }
.ls-src.is-soon .ls-card { border-style: dashed; opacity: .85; }
/* B168: with the live scene on Home, the work card does not repeat the week's figures (they are on the scene) */
.pd-top-main:has(.live-scene) .at-work .counters { display: none; }
.pd-top-main:has(.live-scene) .at-work .pd-split { grid-template-columns: minmax(0, 1fr); }
.auto-short-more > summary { cursor: pointer; margin: var(--space-2) 0; color: var(--accent-ink); font-weight: 600; }
/* AI-C: content opportunities. The top five as cards with one action, plain lists for what not to create and what
   waits, and the professional fold: every field as a definition list, the score parts and the sources read. */
.co-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-3);
           grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.co-card { display: grid; gap: var(--space-2); align-content: start; min-width: 0; overflow-wrap: anywhere; }
.co-card h3, .co-card p { margin: 0; }
.co-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.co-act { margin: var(--space-1) 0 0; justify-self: start; }
.co-plain { margin: var(--space-2) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); overflow-wrap: anywhere; }
.co-fold > summary { cursor: pointer; font-weight: 600; }
.co-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: var(--space-2) var(--space-3);
           margin-bottom: var(--space-2); min-width: 0; overflow-wrap: anywhere; }
.co-item > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.co-score { display: inline-grid; place-items: center; min-width: 2.2em; padding: 0 6px; border-radius: 999px;
            background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); font-weight: 700; }
.co-fields { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--space-2) var(--space-3); margin: var(--space-3) 0; }
.co-fields dt { font-weight: 600; color: var(--muted); }
.co-fields dd { margin: 0; min-width: 0; }
.co-kws { margin: 0; padding-left: var(--space-4); display: grid; gap: 2px; }
.co-basis { font-size: var(--text-xs); }
.co-basis-measured { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.co-basis-estimate { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.co-basis-judgement { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.co-basis-missing { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.co-score-table, .co-sources { width: 100%; margin-top: var(--space-2); }
.co-score-table th[scope="row"], .co-sources th[scope="row"] { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .co-fields { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .co-fields dd { margin-bottom: var(--space-2); }
}
/* B184: Article Intelligence. The filters, the steps of an article (done or not yet), the counts and the plain lists.
   Colours come only from the existing tokens. */
.ai-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; margin: var(--space-3) 0; }
.ai-filters label { display: grid; gap: 2px; font-size: var(--text-sm); color: var(--muted); min-width: 0; }
.ai-filters select { max-width: 100%; }
.ai-article { display: grid; gap: var(--space-2); margin-top: var(--space-4); min-width: 0; overflow-wrap: anywhere; }
.ai-article h3, .ai-article h4, .ai-article p { margin: 0; }
.ai-steps { list-style: none; margin: var(--space-2) 0; padding: 0; display: grid; gap: var(--space-2); }
.ai-step { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; }
.ai-dot { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px;
          border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.ai-step.is-done .ai-dot { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.ai-dot .icon { width: 14px; height: 14px; }
.ai-counts { list-style: none; margin: var(--space-2) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.ai-counts li { min-width: 0; }
.ai-counts strong { font-size: var(--text-lg); }
.ai-needs, .ai-opps { margin: var(--space-2) 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); overflow-wrap: anywhere; }
.ai-chips { list-style: none; margin: var(--space-2) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ai-src { display: block; }
.ai-page .sum-tile { min-width: 0; overflow-wrap: anywhere; }
/* AI-D/AI-E: the article editor (premium_post.html) and the publishing recommendation (premium_automations.html). */
.ap-plan { grid-template-columns: minmax(8rem, max-content) 1fr; }
.ap-plan dd { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
@media (max-width: 640px) { .ap-plan { grid-template-columns: 1fr; } .ap-plan dt { font-weight: 650; } }
.ap-checks { display: grid; gap: var(--space-2); }
.ap-check { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3); background: var(--surface); }
.ap-pass { border-left-color: var(--ok); }
.ap-warn { border-left-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.ap-fail { border-left-color: var(--crit); background: var(--err-bg); color: var(--err-ink); }
.ap-not_applicable { border-left-color: var(--line-strong); color: var(--muted); }
#versions .cv-side { white-space: pre-wrap; }
.ap-rec { border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft);
  color: var(--ink); padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
.ap-rec h3 { margin: 0 0 var(--space-1); }

/* B167: the Indexing page (index_policy.html) */
.ix-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ix-findings { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ix-finding h3 { font-size: 1rem; margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.ix-finding.ix-critical { border-left: 4px solid var(--crit); }
.ix-finding.ix-high { border-left: 4px solid var(--high); }
.ix-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ix-change p { margin: 0 0 var(--space-1); overflow-wrap: anywhere; }
.ix-inline { display: inline-block; margin: var(--space-1) var(--space-2) 0 0; }
.ix-table th[scope="row"] { overflow-wrap: anywhere; min-width: 10rem; }
.ix-table td { vertical-align: top; }
.ix-row.ix-hidden th[scope="row"] { box-shadow: inset 3px 0 0 var(--err-line); }
.ix-row.ix-shown th[scope="row"] { box-shadow: inset 3px 0 0 var(--warn-line); }
.ix-why summary { cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; min-height: 24px; min-width: 24px; margin-top: 4px; }

/* B172: the "First 7 days" card on Home (home/_fast_start.html). Tokens only; light and dark through them. */
.fast-start .fs-status { margin: var(--space-1) 0 var(--space-3); }
.fs-days { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.fs-day { border-left: 3px solid var(--line-strong); padding: var(--space-1) 0 var(--space-1) var(--space-3); min-width: 0; }
.fs-day.is-today { border-left-color: var(--accent-strong); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.fs-day.is-future { opacity: .7; }
.fs-day-n { display: block; font-weight: 600; font-size: var(--text-sm); }
.fs-events, .fs-pages, .fs-wins { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.fs-ev { font-size: var(--text-sm); overflow-wrap: anywhere; }
.fs-ev-reread, .fs-ev-signal { color: var(--ok-ink); }
.fs-h3 { font-size: var(--text-md); margin: var(--space-4) 0 var(--space-1); }
.fs-page, .fs-wins li { display: grid; gap: 2px; padding: var(--space-2) 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; min-width: 0; }
.fs-badge { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.fs-honest { margin-top: var(--space-3); }
@media (prefers-color-scheme: dark) { .fs-day.is-today { border-left-color: var(--teal); } }

/* B170: the Analytics check's picture: your site → the Google tags on it → the properties they reach → what Rankeraxe
   reads, in four columns (one under the other on a phone), the node a cause points at marked. */
.ad-flow { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-step { position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.ad-step + .ad-step::before { content: "→"; position: absolute; left: calc(-1 * var(--space-3) + 1px); top: 1.9rem;
  color: var(--muted); font-size: var(--text-sm); }
.ad-step-h { font-size: var(--text-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ad-node { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: var(--text-sm);
  overflow-wrap: anywhere; }
.ad-node small { color: var(--muted); font-size: var(--text-xs); }
.ad-node.is-bad { border-color: var(--err-line); background: var(--err-bg); color: var(--err-ink); }
.ad-node.is-bad small { color: var(--err-ink); }
.ad-node.is-good { border-color: var(--accent-line); background: var(--ok-bg); color: var(--ok-ink); }
.ad-node.is-good small { color: var(--ok-ink); }
@media (max-width: 720px) {
  .ad-flow { grid-template-columns: minmax(0, 1fr); }
  .ad-step + .ad-step::before { content: "↓"; position: static; text-align: center; }
}
/* B171: the "Your brand voice" card (keyword plan, step 1) */
.bv-card { margin-top: var(--space-4); }
.bv-facts { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: 0; }
.bv-facts dt { font-weight: 600; }
.bv-facts dd { margin: 0; overflow-wrap: anywhere; }
.bv-src { font-size: .78rem; margin-left: var(--space-1); }
.bv-src-customer-provided { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.bv-src-website-derived { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); }
.bv-lang-form { display: grid; gap: var(--space-2); }
.bv-lang-row { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.bv-lang-row legend { width: 100%; padding: 0; margin-bottom: var(--space-1); }
.bv-lang { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; }
.bv-lang input { width: 18px; height: 18px; margin: 0; }
@media (max-width: 560px) { .bv-facts { grid-template-columns: minmax(0, 1fr); } .bv-facts dd { margin-bottom: var(--space-2); } }
.change-rule-list, .change-seo-list { margin: var(--space-1) 0 var(--space-2); padding-left: 1.2rem; }
.bv-facts samp { font-family: inherit; font-size: inherit; }
.native-value { font-family: inherit; font-size: inherit; } /* B171: a proposal is the site's text, not interface text */

/* ---------- B177: Sync now and Scan now, the live scan page and the live scene in colour, depth and detail ----------
   Rules only: every colour is a token (the B127 families through the --ls-src-* and B177 gradient tokens above, the
   status tokens). Each source carries its own colour by its data-source key; a line flows and a packet moves only
   on .is-flowing (a source that really receives data, or is read by the running scan: .is-reading); the task chips
   orbit only on .is-moving (Rankeraxe really works). Every animation sits inside prefers-reduced-motion:
   no-preference; the still frame keeps its colours and depth. */
.status-work { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.ls-src { --src: var(--line-strong); --src-soft: var(--surface-2); --src-ink: var(--muted); --src-flow: var(--ls-flow-x); --src-pk: var(--ls-packet); }
.ls-src[data-source="search_console"] { --src: var(--ls-src-sc); --src-soft: var(--ls-src-sc-soft); --src-ink: var(--ls-src-sc-ink); --src-flow: var(--ls-flow-sc); --src-pk: var(--ls-pk-sc); }
.ls-src[data-source="analytics"] { --src: var(--ls-src-ga); --src-soft: var(--ls-src-ga-soft); --src-ink: var(--ls-src-ga-ink); --src-flow: var(--ls-flow-ga); --src-pk: var(--ls-pk-ga); }
.ls-src[data-source="bing"] { --src: var(--ls-src-bing); --src-soft: var(--ls-src-bing-soft); --src-ink: var(--ls-src-bing-ink); --src-flow: var(--ls-flow-bing); --src-pk: var(--ls-pk-bing); }
.ls-src[data-source="store"] { --src: var(--ls-src-store); --src-soft: var(--ls-src-store-soft); --src-ink: var(--ls-src-store-ink); --src-flow: var(--ls-flow-store); --src-pk: var(--ls-pk-store); }
.ls-src[data-source="plugin"] { --src: var(--ls-src-plugin); --src-soft: var(--ls-src-plugin-soft); --src-ink: var(--ls-src-plugin-ink); --src-flow: var(--ls-flow-plugin); --src-pk: var(--ls-pk-plugin); }
.ls-stage { padding-inline-end: var(--space-3); }
.ls-plane { position: relative; grid-template-columns: minmax(0, 1.4fr) 216px minmax(18px, .3fr) minmax(0, .95fr); }
.ls-floor { position: absolute; inset: -6% -3% -10%; border-radius: 28px; pointer-events: none; background: var(--ls-floor);
  box-shadow: inset 0 0 0 1px var(--line), var(--depth-1); transform: translateZ(-70px); }
.ls-card { border-inline-start: 3px solid var(--src); }
.ls-src.is-not_connected .ls-card, .ls-src.is-not_checked .ls-card, .ls-src.is-soon .ls-card { border-inline-start-color: var(--line-strong); }
.ls-src.is-flowing .ls-ico, .ls-src.is-receiving .ls-ico, .ls-src.is-reading .ls-ico { background: var(--src-soft); color: var(--src-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--src) 45%, transparent), 0 6px 14px -8px var(--src); }
.ls-src.is-flowing .ls-wire::before { background: var(--src-flow); }
.ls-src .ls-packet::before { background: var(--src-pk); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--src) 40%, transparent); }
.ls-src.is-reading .ls-card { transform: translateZ(40px); box-shadow: var(--depth-3), 0 0 0 2px var(--src); }
.ls-count { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ls-orbit-box { position: relative; width: 216px; height: 216px; display: grid; place-items: center; }
.ls-core-shadow { position: absolute; left: 50%; top: 62%; width: 120px; height: 40px; border-radius: 50%;
  transform: translate(-50%, 0) translateZ(-30px); background: var(--ls-core-shade); filter: blur(4px); opacity: .8; }
.ls-engine:not(.is-working) .ls-core-shadow { opacity: .35; }
.ls-r2 circle { stroke: url(#ls-ring2); }
.ls-chips { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; transform-origin: 50% 50%; }
.ls-chip { position: absolute; left: 50%; top: 50%; --a: 30deg; --chip: var(--viz-1);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-94px) rotate(calc(-1 * var(--a))); }
.ls-c1 { --a: -60deg; --chip: var(--viz-1); } .ls-c2 { --a: 0deg; --chip: var(--viz-3); } .ls-c3 { --a: 60deg; --chip: var(--viz-7); }
.ls-c4 { --a: 120deg; --chip: var(--viz-2); } .ls-c5 { --a: 180deg; --chip: var(--viz-4); } .ls-c6 { --a: 240deg; --chip: var(--viz-6); }
.ls-chip span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 650; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--depth-1); }
.ls-chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip); flex: none; }
.ls-chip.is-working span { border-color: var(--chip); box-shadow: var(--depth-2), 0 0 0 3px color-mix(in srgb, var(--chip) 30%, transparent); }
.ls-chip.is-done span { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-bg); }
.ls-chip.is-done span::before { background: var(--ok-ink); }
.ls-chip.is-failed span { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.ls-chip.is-skipped span { color: var(--muted); }
.ls-engine.is-checking .ls-halo { fill: var(--ok-bg); }
.ls-site-live { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--ok-ink); background: var(--ok-bg); }
.ls-site-live .icon { width: 12px; height: 12px; }
.ls-scan-link { flex-basis: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; width: max-content; max-width: 100%;
  padding: 4px 10px; border-radius: 999px; background: var(--ls-scan-band); color: var(--ink); text-decoration: none;
  font-size: var(--text-sm); font-weight: 600; border: 1px solid var(--line); }
.ls-scan-dot, .scan-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--viz-1); flex: none; display: inline-block; }
@media (max-width: 640px) {
  .ls-plane { grid-template-columns: minmax(0, 1fr); }
  .ls-floor { inset: -2%; transform: translateZ(-40px); }
  .ls-orbit-box { width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .ls-core-shadow { display: none; }
  .ls-chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .ls-chip { position: static; transform: none; }
}
/* Sync now and Scan now on Home */
.scan-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); }
.scan-bar h2 { margin: 0 0 2px; font-size: var(--text-lg); overflow-wrap: anywhere; }
.scan-bar p { margin: 0; overflow-wrap: anywhere; }
.scan-bar-text { min-width: 0; flex: 1 1 260px; }
.scan-bar-actions, .scan-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.scan-bar-actions form, .scan-actions form, .scan-retry { margin: 0; }
.btn-scan { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); box-shadow: var(--depth-1); }
.btn-scan:hover, .btn-scan:focus-visible { background: var(--surface); color: var(--accent-ink); border-color: var(--accent-ink); }
.scan-bar.is-working { border-color: var(--accent-line); background: var(--ls-scan-band); }
/* the live scan page */
.scan-card-head h2 { margin: 0; }
.scan-card-head p { margin: 4px 0 0; }
.scan-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; }
.scan-progress progress { width: 100%; height: 10px; accent-color: var(--accent); }
.scan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.scan-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--space-3); padding: 10px 0; }
.scan-step + .scan-step::before { content: ""; position: absolute; left: 16px; top: -10px; height: 20px; width: 2px; background: var(--line-strong); }
.scan-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.scan-dot .icon { width: 16px; height: 16px; }
.scan-step.is-done .scan-dot { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-ink); }
.scan-step.is-working .scan-dot { background: var(--info-bg); color: var(--info-ink); box-shadow: inset 0 0 0 2px var(--info-ink), 0 0 0 4px var(--ls-glow); }
.scan-step.is-failed .scan-dot { background: var(--err-bg); color: var(--err-ink); box-shadow: inset 0 0 0 1px var(--err-line); }
.scan-step.grp-ai .scan-dot { box-shadow: inset 0 0 0 1px var(--fam-reach); }
.scan-step.grp-ai.is-done .scan-dot { box-shadow: inset 0 0 0 1px var(--ok-ink); }
.scan-step-main { min-width: 0; }
.scan-step-main p { margin: 0; overflow-wrap: anywhere; }
.scan-step-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.scan-step-name { font-weight: 650; }
.scan-step.is-waiting .scan-step-name, .scan-step.is-skipped .scan-step-name { color: var(--ink-2); }
.scan-note { color: var(--ink-2); margin-top: 2px; }
.scan-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: 4px; }
.scan-step.grp-ready.is-done .scan-step-name { font-size: var(--text-lg); }
@media (prefers-reduced-motion: no-preference) {
  .live-scene.is-live .ls-chips.is-moving { animation: ls-spin 60s linear infinite; }
  .live-scene.is-live .ls-chips.is-moving .ls-chip span { animation: ls-spin 60s linear infinite reverse; }
  .ls-chip.is-working span::before, .scan-step.is-working .scan-dot, .live-scene.is-scanning .ls-scan-dot,
  .scan-bar.is-working .scan-bar-dot { animation: ls-pulse 1.6s ease-out infinite; }
  .live-scene.is-live .ls-engine.is-working .ls-core-shadow { animation: ls-breathe 3.2s ease-in-out infinite; }
  .ls-src.is-reading .ls-packet { animation-duration: 1.4s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .live-scene.is-live .ls-chips.is-moving, .live-scene.is-live .ls-chips.is-moving .ls-chip span { animation: none; }
}

/* ---------- B183: About your business (templates/about_business.html): five answers, then one summary to confirm ----------
   Tokens only (light and dark come from the token blocks above). No script, nothing moves. */
.ob-page { min-width: 0; }
.ob-form { display: grid; gap: var(--space-3); max-width: 46rem; }
.ob-step { display: grid; gap: var(--space-2); border: 1px solid var(--line); min-width: 0; margin: 0; }
.ob-step legend { font-weight: 700; padding: 0 var(--space-2); }
.ob-step input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .ob-step select { width: 100%; max-width: 100%; box-sizing: border-box; }
.ob-step p { margin: 0; }
.ob-logo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ob-logo img { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); object-fit: contain; max-width: 100%; height: auto; }
.ob-check { display: inline-flex; align-items: center; gap: var(--space-2); margin-right: var(--space-3); }
.ob-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ob-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.ob-more { margin: var(--space-2) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); overflow-wrap: anywhere; }
.ob-refresh { margin: var(--space-2) 0; }
.ob-part, .ob-questions, .ob-conflicts { display: grid; gap: var(--space-2); margin-top: var(--space-3); min-width: 0; overflow-wrap: anywhere; }
.ob-part h3, .ob-part p, .ob-questions h3, .ob-conflicts h3 { margin: 0; }
.ob-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ob-conflicts .ob-lines ul { margin: var(--space-1) 0 0; padding-left: var(--space-5); }
.ob-line { display: grid; gap: var(--space-1); border-top: 1px solid var(--line); padding-top: var(--space-2); }
.ob-line:first-child { border-top: 0; padding-top: 0; }
.ob-line p { margin: 0; }
.ob-line-wrong { opacity: .7; }
.ob-line-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-start; }
.ob-line-actions .inline-form { margin: 0; }
.ob-fold > summary { cursor: pointer; font-weight: 600; }
.ob-fold .inline-form { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.ob-basis { font-size: var(--text-xs); }
.ob-basis-customer-provided, .ob-basis-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.ob-basis-website-derived, .ob-basis-independently-verified { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.ob-basis-ai-interpretation { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.ob-basis-unverified-assumption, .ob-basis-missing { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.ob-q { display: grid; gap: var(--space-1); margin-top: var(--space-2); }

/* ---------- B199: visible choices (about_business.html, article_translations.html): every "choose from a list" shows its
   list; the written way is the second way. Tokens only. */
.ob-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--space-2); }
.ob-card { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; overflow-wrap: anywhere; cursor: pointer; }
.ob-card:has(input:checked) { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-ink); }
.ob-card-found { border-color: var(--accent-line); }
.ob-card input { margin-top: .2rem; flex: none; }
.ob-pick-groups { border: 0; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: var(--space-2); min-width: 0; }
.ob-pick-groups > legend { padding: 0; font-weight: 600; margin-bottom: var(--space-1); }
.ob-pick-groups .ob-pick { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); min-width: 0; }
.ob-pick-groups .ob-pick > legend { padding: 0 var(--space-1); font-weight: 600; }
.ob-pick-groups .ob-check { margin-right: 0; overflow-wrap: anywhere; }
.pick-pair { display: grid; gap: var(--space-2); }
.pick-pair select, .pick-pair input { max-width: 100%; box-sizing: border-box; }
/* ---------- W2-05 (audit 2026-11-14, WEB-01, WEB-14): one calm Home and the live scene on a phone ----------
   Home: Your next step and Your results side by side on a wide screen, the one status line under them, then the
   live scene. On a phone (640 px and less) the scene is flat and stacked: no 3D tilt, no depth offset and no floating
   plane, so no card covers another, none is clipped by the scene's edge, and no text sits under a moving part (the
   moving packets stay hidden there). Tokens only. */
.home-result h2 { margin: 0 0 var(--space-3); font-size: 1.15rem; }
.home-result-line { margin: 0 0 var(--space-2); font-weight: 600; overflow-wrap: anywhere; }
.home-result-more { margin: 0; }
.home-status { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.home-status-part { color: var(--ink); }
.need-one .need-act .btn { padding: 10px 18px; font-size: 1rem; }
.why-differ { margin: 0; }
@media (min-width: 900px) {
  .pd-grid.home-calm > .home-action, .pd-grid.home-calm > .home-result { grid-column: span 6; }
}
@media (max-width: 640px) {
  .ls-stage { perspective: none; padding-inline-end: 0; }
  .ls-plane, .ls-engine, .ls-site, .ls-card, .ls-src.is-reading .ls-card, .ls-card:hover, .ls-card:focus-visible { transform: none; }
  .ls-plane, .ls-sources, .ls-src { transform-style: flat; }
  .ls-floor { display: none; }
  .ls-sources { grid-template-columns: minmax(0, 1fr); }
  .ls-card { flex: 1 1 auto; }
  .ls-chip span { white-space: normal; }
  .ls-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .live-scene.is-live .ls-plane { animation: none; }
}
/* W2-05 (WEB-02, WEB-04): the change card: "Now" and "New" on two lines, the reason beside a warning, the edit box
   folded, a refused change first; on Approve changes each site's cards sit in its own box. */
.cv-nownew { display: grid; gap: 4px; margin: 4px 0 6px; overflow-wrap: anywhere; }
.cv-nownew .cv-label { margin: 0; }
.cv-line { margin: 0; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: var(--space-2); align-items: baseline; }
.cv-tag { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.cv-new .cv-tag { color: var(--ok-ink); }
.cv-nownew del { background: var(--warn-bg); color: var(--warn-ink); }
.cv-nownew ins { color: var(--ok-ink); text-decoration: none; font-weight: 650; border-bottom: 2px solid var(--ok-ink); }
.cv-check-why { flex-basis: 100%; color: var(--warn-ink); }
.cv-edit-fold { margin-top: var(--space-2); }
.cv-edit-fold > summary { cursor: pointer; color: var(--accent-ink); }
.cv-refused { margin: var(--space-3) 0; }
.cv-refused .notice { margin: 0 0 var(--space-2); }
.cv-row.has-error { border-color: var(--err-line); }
.cv-inbox { margin-top: var(--space-3); }
.approve-counts { margin: 0; }
