/* Built by bin/build-assets.php from the zone files. Do not edit by hand. */

/* Design tokens: colours, type families. The B4 identity (17 November 2026): electric indigo is the brand (buttons,
   sources, margin notes, one large field per page), lavender a soft accent (never a text colour on white), cool
   neutrals. Archivo throughout: narrow and dense for titles, normal width for text. */
:root {
  --ink: #14161f;
  --ink-2: #1c1f2b;
  --ink-3: #3424d6;
  --paper: #ffffff;
  --haze: #f6f6f9;
  --haze-2: #ffffff;
  --line: #e7e9f0;
  --line-2: #d9dce5;
  --muted: #4f5462;
  --iris: #4433ff;
  --iris-hover: #3424d6;
  --iris-soft: #efedff;
  --iris-on-dark: #d6d1ff;
  /* Two highlighters, two meanings (17 November 2026, colorize). Lavender marks what is written: a rule, a task, the
     consultant's own lines. The warm marker marks what people actually know: the finding and its count ("9 of 12"),
     and the home heading's words for it. Neither is ever a text colour on white. */
  --lavender: #d6d1ff;
  --marker: #ffdf7a;
  --ok: #1d7a4c;
  --ok-soft: #e5f4ec;
  --wait: #8a5a00;
  --wait-soft: #fdf2dc;
  --danger: #b2382c;
  --danger-soft: #fbeceb;
  --focus: #4433ff;
  /* The page and its soft surface. */
  --page: #ffffff;
  --soft: #f6f6f9;
  --serif: "Archivo", system-ui, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Clarity scale (audit of 12 Nov 2026): six type sizes, three text levels, a field border that passes WCAG 1.4.11. */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-36: 36px;
  --text-2: #4a4f5e;
  --field-line: #8b8fa3;
  --card-line: #d9dce5;
  /* The signed-in canvas, a step darker than the page so white surfaces stand out, and their soft lift. */
  --canvas: #f1f0fb;
  --lift: 0 1px 2px rgba(20, 22, 31, .05), 0 2px 8px -2px rgba(20, 22, 31, .06);
  /* The signed-in pages' one side gutter: the top bar, the study bar, the report and the lists share this left edge
     (24px with the rail, 16px on narrow screens, set in shell.css). */
  --gutter: 32px;
  color-scheme: light;
}

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Reset and page basics. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums tabular-nums; }
img, svg { display: block; }
/* Titles: Archivo set narrow and dense, the brand's one display treatment (refonte B4, 17 November 2026). */
:where(h1, h2) { font-stretch: 74%; font-weight: 800; letter-spacing: -0.015em; }
:where(h3) { font-stretch: 85%; }
/* The product (DESIGN.md): Archivo at its normal width. The narrow display headings above are the marketing site's. */
:where(body.product, body.app) :where(h1, h2, h3) { font-stretch: 100%; font-weight: 700; letter-spacing: -0.02em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.screen { min-height: 100vh; padding-bottom: 96px; }
.screen--tint { background: var(--haze-2); }

/* Shared components: header, buttons, pills, fields, centre cards. */
/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 14px 32px 16px; }
.topbar { transition: padding .25s ease; }
/* The marketing pages' sticky header (site_header with sticky): clear at the top of the page, frosted and a little
   tighter once it scrolls (site.js sets is-scrolled). Anchors land below it. */
.site-top { position: sticky; top: 0; z-index: 40; transition: background-color .25s ease, box-shadow .25s ease; }
.site-top.is-scrolled { background: rgba(251,251,248,.88); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 rgba(20, 22, 31,.07), 0 12px 32px -22px rgba(20, 22, 31,.3); }
.site-top.is-scrolled .topbar { padding-top: 10px; padding-bottom: 10px; }
html:has(.site-top) { scroll-padding-top: 88px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand { color: var(--iris); }
.brand img, .brand .footer__mark { flex: none; border-radius: 22%; }
/* The lockup (B4, 17 November 2026): the M1 mark, then the name in lowercase, Archivo 750 at normal width, tracked in. */
.brand__word { font: 750 23px/1 var(--sans); font-stretch: 100%; letter-spacing: -.025em; text-transform: lowercase; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { padding: 10px 14px; border: 0; border-radius: 8px; background: none; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(20, 22, 31,.05); }
.nav .nav__dark { margin-left: 6px; padding: 10px 20px; background: var(--iris); color: #fff; }
.nav .nav__dark:hover { background: var(--iris-hover); color: #fff; }
.nav .nav__soft { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; background: var(--iris-soft); color: var(--iris); }
/* The EN / FR language switcher (lot 2), in the header and the footer: two small pills, the current one filled. */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch__form { display: inline-flex; margin: 0; }
.lang-switch .lang-switch__item { display: inline-block; min-width: 32px; padding: 5px 9px; border: 0; border-radius: 999px; background: none; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: .04em; text-align: center; text-decoration: none; color: var(--muted); cursor: pointer; }
.lang-switch .lang-switch__item.is-current { background: var(--iris); color: #fff; cursor: default; }
.lang-switch a.lang-switch__item:hover, .lang-switch button.lang-switch__item:hover { color: var(--ink); background: rgba(20, 22, 31,.06); }
.lang-switch .lang-switch__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lang-switch--header { margin: 0 6px; }
.lang-switch--footer { margin-top: 2px; }
.nav .nav__soft:hover { background: #e1e9dc; color: var(--iris); }
.nav .avatar { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.guest-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.flow-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.stepper { display: flex; gap: 8px; max-width: 1240px; margin: 0 auto; padding: 0 32px 18px; list-style: none; font-size: 14px; color: var(--muted); counter-reset: s; overflow-x: auto; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; counter-increment: s; }
.stepper li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 12px; font-weight: 600; }
.stepper li + li { margin-left: 8px; } .stepper li + li::after { order: -1; content: ""; width: 28px; height: 1.5px; margin-right: 8px; background: var(--line); }
.stepper .is-done::before { content: "✓"; background: var(--iris); color: #fff; box-shadow: none; }
.stepper .is-current { color: var(--ink); font-weight: 600; }
.stepper .is-current::before { background: var(--iris); color: #fff; box-shadow: none; }

/* ---------- Shared parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 10px; font-weight: 500; font-size: 16px; text-decoration: none; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.btn--primary { background: var(--iris); color: #fff; }
.btn--primary:hover { background: var(--iris-hover); }
.btn--dark { background: var(--iris); color: #fff; }
.btn--dark:hover { background: var(--iris-hover); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { padding: 6px 2px; border: 0; background: none; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: var(--muted); font-weight: 500; text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.display { margin: 0; font: 500 clamp(36px, 4.6vw, 56px)/1.04 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.lead { margin: 16px 0 0; font-size: 19px; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.h-serif { margin: 0; font: 500 26px/1.15 var(--serif); letter-spacing: -.01em; }
.h-sans { margin: 0; font: 600 18px/1.25 var(--sans); letter-spacing: -.01em; }
.small { font-size: 14px; }
.panel-light { padding: 24px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--paper); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--live { background: var(--iris); color: #fff; }
.pill--live::before { background: var(--lavender); }
.pill--done { background: var(--ok-soft); color: var(--ok); }
.pill--wait { background: var(--wait-soft); color: var(--wait); }
.pill--idle { background: var(--paper); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--text-2); }
.pill--bad { background: var(--danger-soft); color: var(--danger); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 15px; }
.notice svg { flex: none; margin-top: 2px; }
.notice--info { background: var(--iris-soft); color: #4433ff; }
.notice--wait { background: var(--wait-soft); color: #5e3d00; }
.field { display: grid; gap: 8px; margin-top: 26px; }
.field label, .field .label { font-weight: 500; font-size: 15.5px; }
.input { width: 100%; min-height: 54px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; font-size: 16.5px; }
.input:focus { outline: 0; border-color: var(--iris); box-shadow: 0 0 0 4px rgba(36, 28, 150,.15); }
.help { margin: 0; font-size: 14px; color: var(--muted); }
.help--warn { margin-top: 6px; padding: 8px 12px; border-radius: 6px; background: var(--wait-soft); color: var(--wait); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--iris); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--iris); }
.count { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
/* Wholesight's avatar: the fir square of the mark with the white W and lime dot on it (img/mark-white.svg). */
.mark-dot { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 22%; background: var(--iris); color: #fff; }
.mark-dot svg { width: 18px; height: 18px; }
/* The glyph is drawn on the mark's own 32 grid: it fills the square, so W and dot sit exactly where the logo has them. */
.mark-dot > img, .wsc-head__av > img { width: 100% !important; height: 100% !important; }
.round-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); }
.round-icon--ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Center card pages ---------- */
.center { max-width: 520px; margin: 0 auto; padding: 64px 24px 40px; text-align: center; }
.center .round-icon { margin: 0 auto 22px; }
.center h1 { margin: 0; font: 500 clamp(34px, 4vw, 46px)/1.06 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.center > p { margin: 14px 0 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.center form, .center .stack { margin-top: 28px; text-align: left; }
.center .field:first-child { margin-top: 0; }
.center .foot { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.steps-mini { display: grid; gap: 10px; margin-top: 28px; text-align: left; }
.steps-mini div { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--haze); }
.steps-mini b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.steps-mini p { margin: 0; font-size: 15px; } .steps-mini small { display: block; color: var(--muted); font-size: 14px; }
.status-list { display: grid; gap: 8px; margin-top: 28px; text-align: left; }
.status-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--haze); font-size: 15px; }

/* ---------- Production additions: replace the mockup's inline styles and helpers (CSP: no style attributes) ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 12px; }
.nav a[aria-current="page"]:not(.nav__dark) { color: var(--ink); }
/* The dark pill keeps its white label on its own page; ink on ink made "Sign in" vanish on /sign-in. */
.nav .nav__dark[aria-current="page"] { color: #fff; }
/* Site menu for phones: hidden on wider screens, where the links sit in the header (responsive.css shows it). */
.navmenu { display: none; position: relative; }
.navmenu summary { list-style: none; cursor: pointer; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.navmenu__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.navmenu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; gap: 2px; min-width: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px -24px rgba(20, 22, 31,.45); }
.nav .navmenu__item, .is-violet .nav .navmenu__item { display: block; padding: 12px 14px; border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.nav .navmenu__item:hover, .is-violet .nav .navmenu__item:hover, .nav .navmenu__item[aria-current="page"] { background: var(--haze); color: var(--ink); }
.account { position: relative; margin-left: 6px; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.account .avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.account__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; gap: 2px; min-width: 250px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px -24px rgba(20, 22, 31,.45); }
.account__who { display: grid; gap: 2px; margin: 0 0 6px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.account__who small { color: var(--muted); }
.account__who strong { font-weight: 500; overflow-wrap: anywhere; max-width: 230px; }
.account__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; text-align: left; text-decoration: none; font-size: 15px; color: var(--ink); }
.account__item:hover { background: var(--haze); }
.account__panel form { margin: 0; }
.footer__pref { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.footer__pref:hover, .footer a:hover { color: var(--ink); }
.analytics-choice { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px -24px rgba(20, 22, 31,.45); font-size: 14px; color: var(--muted); }
/* One line and two equal buttons; what is collected opens on request, so the notice never hides the page. */
.analytics-choice { gap: 8px 16px; max-width: 880px; padding: 10px 14px; border-radius: 16px; }
/* On a short screen the bar would sit on the page's first action: it takes its place in the page under it (analytics-consent.js). */
.analytics-choice.analytics-choice--inline { position: static; max-width: none; margin: 20px 0 0; box-shadow: none; }
.analytics-choice p { margin: 0; }
.analytics-choice > p { flex: 1 1 auto; color: var(--ink); }
.analytics-choice details { display: contents; }
.analytics-choice summary { order: 1; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.analytics-choice details > p { order: 3; flex-basis: 100%; font-size: 13px; line-height: 1.45; }
.analytics-choice div { order: 2; display: flex; gap: 8px; }
.analytics-choice .btn, .is-violet .analytics-choice .btn { min-height: 36px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
/* A PostHog survey question (analytics.js): a small card in the corner, in the same family as the analytics choice. */
.survey-card { position: fixed; z-index: 79; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -24px rgba(20, 22, 31,.45); font-size: 14px; color: var(--ink); }
.survey-card p { margin: 0; }
.survey-card__question { padding-right: 28px; font-weight: 600; line-height: 1.4; }
.survey-card__hint { margin-top: 4px !important; color: var(--muted); font-size: 13px; line-height: 1.45; }
.survey-card__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.survey-card__close:hover { background: var(--haze); color: var(--ink); }
.survey-card__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.survey-card__scale--wide { grid-template-columns: repeat(11, 1fr); gap: 4px; }
.survey-card__choice { min-height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.survey-card__choice:hover, .survey-card__choice:focus-visible { border-color: var(--iris); background: var(--iris-soft); color: var(--iris); }
.survey-card__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.survey-card__form { display: grid; gap: 8px; margin-top: 12px; }
.survey-card__text { width: 100%; min-height: 72px; padding: 8px 10px; border: 1px solid var(--field-line, var(--line)); border-radius: 10px; font: inherit; resize: vertical; }
.survey-card__form .btn { justify-self: end; }
.survey-card__thanks { color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .survey-card__scale--wide { grid-template-columns: repeat(6, 1fr); } }
.toast-region { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); }
.toast-region:empty { display: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; }
.notice--success { background: var(--ok-soft); color: #2a1fb8; }
.notice--error { background: var(--danger-soft); color: #7a2018; }
.notice p { margin: 0; }
.flash-wrap { max-width: 760px; margin: 12px auto 0; padding: 0 24px; }
.dictation-button { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.dictation-button:hover { background: var(--haze); }
.dictation-button.is-listening { background: var(--iris-soft); color: var(--iris); }
.dictation-panel { flex-basis: 100%; display: grid; gap: 10px; margin: 6px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--haze-2); font-size: 14px; color: var(--muted); }
.dictation-panel p { margin: 0; }
.dictation-panel select { margin-left: 6px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.dictation-panel button { justify-self: start; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.composer:has(.dictation-panel:not([hidden])) { flex-wrap: wrap; }
.strong-ink { color: var(--ink); font-weight: 600; }
.mt-24 { margin-top: 24px; }
.h-serif--section { font-size: 34px; margin-bottom: 18px; }
meter.bar { display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--haze); }
meter.bar::-webkit-meter-bar { height: 10px; border: 0; border-radius: 999px; background: var(--haze); }
meter.bar::-webkit-meter-optimum-value, meter.bar::-webkit-meter-suboptimum-value, meter.bar::-webkit-meter-even-less-good-value { border-radius: 999px; background: var(--iris); }
meter.bar::-moz-meter-bar { border-radius: 999px; background: var(--iris); }
.state-card .round-icon--warn { background: var(--wait-soft); color: var(--wait); }
.state-card .ref { display: block; margin-top: 18px; font-size: 13px; color: var(--muted); }
.center .notice { margin-top: 22px; text-align: left; }
.center .notice p + p { margin-top: 8px; }
.mt-20 { margin-top: 20px; }
.mt-12 { margin-top: 12px; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--iris); }
.center .foot svg { display: inline; vertical-align: -2px; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; cursor: pointer; }
.consent-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--iris); }
.consent-check .toggle-box { display: none; }
.consent-check a, .check a { color: var(--iris); }
.privacy-short { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.privacy-short summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.privacy-short ul { margin: 8px 0 0; padding-left: 20px; }
.stack--grid { display: grid; gap: 10px; }
.center .recap { margin-top: 26px; text-align: left; }

/* Public pages: home, how it works, pricing, trust. */
/* ---------- Home ---------- */
.notice-bar { margin: 0; padding: 8px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.notice-bar strong { color: var(--ink); font-weight: 600; }
.hero { margin: 0 20px; padding: 4px 0 60px; border-radius: 40px; background: linear-gradient(180deg, var(--haze) 0%, var(--haze-2) 72%, var(--paper) 100%); }
.hero__intro { max-width: 900px; margin: 0 auto; padding: 44px 24px 0; text-align: center; }
.hero h1 { margin: 0; font: 500 clamp(44px, 6vw, 78px)/1 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.hero__lead { max-width: 37em; margin: 20px auto 0; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); text-wrap: pretty; }
.stage { position: relative; max-width: 980px; margin: 40px auto 0; padding: 0 24px; }
.composer { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 6px; padding: 10px 10px 10px 26px; border: 1.5px solid var(--ink); border-radius: 30px; background: var(--paper); box-shadow: 0 22px 44px -22px rgba(20, 22, 31,.5); }
.composer:focus-within { box-shadow: 0 0 0 4px rgba(36, 28, 150,.18), 0 22px 44px -22px rgba(20, 22, 31,.5); border-color: var(--iris); }
.composer textarea { flex: 1; min-height: 58px; max-height: 180px; padding: 16px 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 19px; line-height: 1.4; }
.composer textarea::placeholder { color: #666b7a; }
.stage .composer { max-width: 860px; margin: 0 auto; }
.icon-btn { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: transparent; }
.icon-btn:hover { background: var(--haze); }
.send { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--iris); color: #fff; transition: background .15s; }
.send:hover { background: var(--iris-hover); }
.photo { position: relative; z-index: 1; margin-top: -46px; min-height: 620px; border-radius: 34px; overflow: hidden; background: var(--ink); }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .9s ease; }
.photo__img.is-on { opacity: 1; animation: drift 8s ease-out forwards; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.photo__tag { position: absolute; z-index: 2; right: 24px; bottom: 30px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 22, 31,.55); backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 500; }
.photo__body { transition: opacity .35s ease, transform .35s ease; }
.photo__body.is-out { opacity: 0; transform: translateY(6px); }
.photo__bar { height: 3px; margin-top: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.photo__bar i { display: block; height: 100%; width: 0; background: var(--iris); }
.photo__bar i.is-running { width: 100%; transition: width linear; }
.photo__ctrl { position: absolute; z-index: 3; right: 20px; top: 70px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(20, 22, 31,.55); color: #fff; backdrop-filter: blur(6px); }
.photo__ctrl:hover { background: rgba(20, 22, 31,.8); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 31,.25) 0%, rgba(20, 22, 31,0) 30%, rgba(20, 22, 31,0) 50%, rgba(20, 22, 31,.55) 100%); }
.photo__card { position: absolute; z-index: 2; left: 28px; bottom: 28px; width: min(440px, calc(100% - 56px)); padding: 22px 24px; border-radius: 24px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.photo__meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.photo__card h2 { margin: 8px 0 16px; font: 500 23px/1.2 var(--serif); letter-spacing: -.01em; }
.photo__finding { margin: 0 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.busy { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 40px; border-radius: 34px; background: rgba(20, 22, 31,.94); color: #fff; text-align: center; }
.busy p { max-width: 26em; margin: 18px auto 0; font-size: 17px; color: rgba(255,255,255,.85); }
.ring { width: 44px; height: 44px; margin: 0 auto; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--iris-on-dark); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.examples { max-width: 900px; margin: 26px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.examples__label { flex-basis: 100%; margin-bottom: 2px; text-align: center; font-size: 14.5px; color: var(--muted); }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14.5px; text-align: left; transition: border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip__topic { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"] .chip__topic { color: var(--iris-on-dark); }
.statement { padding: 120px 0 40px; }
.statement__lead { max-width: 21em; margin: 0; font: 500 clamp(32px, 4.4vw, 54px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: pretty; }
.token { display: inline-flex; vertical-align: -.1em; align-items: center; justify-content: center; height: .9em; padding: 0 .24em; margin: 0 .04em; border-radius: 999px; background: var(--iris-soft); color: var(--iris); }
.token svg { width: .58em; height: .58em; }
.statement__aside { max-width: 40em; margin: 30px 0 0; font-size: 18px; color: var(--muted); }
.audiences { margin-top: 96px; }
.audiences__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.audience { padding: 26px 26px 28px; border-radius: 22px; background: var(--haze); }
.audience p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin: 0; padding: 72px 0 0; list-style: none; counter-reset: step; }
.steps li { padding-top: 22px; border-top: 1.5px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 500 44px/1 var(--serif); }
.steps h3 { margin: 18px 0 8px; font: 600 18px/1.25 var(--sans); }
.steps p { margin: 0; font-size: 15.5px; color: var(--muted); }
.closing { margin: 110px 20px 20px; padding: 80px 24px; border-radius: 40px; background: var(--ink); color: #fff; text-align: center; }
.closing h2 { margin: 0 auto; max-width: 15em; font: 500 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); letter-spacing: -.025em; }
.closing p { margin: 18px 0 34px; color: rgba(255,255,255,.72); }
/* Site footer: the brand, a line and a way to start; three columns of links; the copyright under a rule. */
.footer { max-width: 1240px; margin: 0 auto; padding: 72px 32px 32px; font-size: 14.5px; color: var(--muted); }
.footer a { text-decoration: none; }
.footer__top { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.9fr); gap: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand p { max-width: 28em; margin: 16px 0 20px; line-height: 1.55; }
.footer__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--iris); }
.footer__cta svg { transition: transform .15s; }
.footer__cta:hover { color: var(--iris-hover); }
.footer__cta:hover svg { transform: translateX(2px); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer__cols h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--ink); }
.footer__cols a, .footer__cols .footer__pref { display: block; width: fit-content; padding: 6px 0; text-align: left; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13.5px; }
.footer__bottom nav { display: flex; gap: 20px; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer { padding: 56px 20px calc(24px + env(safe-area-inset-bottom)); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

/* ---------- How it works ---------- */
.hiw { display: grid; gap: 0; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: h; }
.hiw li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 280px; gap: 28px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); counter-increment: h; }
.hiw li::before { content: counter(h); font: 500 44px/1 var(--serif); }
.hiw p { margin: 8px 0 0; color: var(--muted); }
.hiw .tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--haze); color: var(--muted); font: 500 12.5px/1.6 var(--sans); vertical-align: 2px; }
.hiw img { width: 100%; height: 150px; object-fit: cover; border-radius: 18px; }
.deep-band { margin-top: 72px; padding: 44px; border-radius: 32px; background: var(--ink); color: #fff; }
.deep-band .lead { color: rgba(255,255,255,.72); }
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.rounds div { padding: 22px; border-radius: 20px; background: var(--ink-2); }
.rounds b { display: block; font: 500 30px/1 var(--serif); color: var(--iris-on-dark); }
.rounds h3 { margin: 14px 0 6px; font: 600 17px/1.3 var(--sans); }
.rounds p { margin: 0; font-size: 15px; color: rgba(255,255,255,.72); }
.deep-band ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255,255,255,.82); }
.deep-band li { display: flex; gap: 10px; } .deep-band li svg { flex: none; margin-top: 3px; color: var(--iris-on-dark); }
.faq { margin-top: 72px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; max-width: 46em; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border: 1.5px solid var(--line); border-radius: 24px; background: #fff; }
.plan--featured { border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-soft); }
.plan__ribbon { position: absolute; top: -13px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--iris); color: #fff; font-size: 12.5px; font-weight: 500; }
.plan__price { margin: 14px 0 0; font: 500 40px/1 var(--serif); letter-spacing: -.02em; }
.plan__price small { font: 400 15px var(--sans); color: var(--muted); }
.plan__allow { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.plan ul { font-size: 14.5px !important; flex: 1; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.plan li { display: flex; gap: 9px; } .plan li svg { flex: none; margin-top: 3px; color: var(--iris); }
.enterprise { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 18px; padding: 26px 28px; border-radius: 24px; background: var(--haze); }
.enterprise p { margin: 4px 0 0; color: var(--muted); }

/* Landing variant B */
.dig { display: block !important; }
.photo__pills { display: flex !important; }
.photo__proof { display: flex !important; }
.photo__card { width: min(500px, calc(100% - 56px)); }
@media (max-width: 720px) { .photo__card { width: calc(100% - 24px); } }
.photo__pills { flex-wrap: wrap; gap: 6px; }
.photo__pills span { white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--haze); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.photo__pills .is-deep { background: var(--iris-soft); color: var(--iris); }
.photo__proof { align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--haze-2); font-size: 13.5px; color: var(--ink); }
.photo__proof svg { flex: none; color: var(--iris); }
.dig { padding-top: 110px; }
.dig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.dig__card { display: flex; flex-direction: column; padding: 14px 14px 24px; border-radius: 28px; background: var(--haze); }
.dig__card h3 { margin: 22px 10px 6px; font: 600 19px/1.25 var(--sans); }
.dig__card p { margin: 0 10px; font-size: 15.5px; color: var(--muted); }
.dig__card p strong { color: var(--ink); font-weight: 600; }
.dig__scene { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 210px; padding: 18px; border-radius: 20px; background: #fff; }
.mini { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.mini--ai { align-self: flex-start; background: var(--haze); border-bottom-left-radius: 5px; }
.mini--me { align-self: flex-end; background: var(--iris); color: #fff; border-bottom-right-radius: 5px; }
.mini--file { display: flex; align-items: center; gap: 10px; }
.mini__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.2); }
.mini--file strong { display: block; font-weight: 500; }
.mini--file small { display: block; font-size: 12px; opacity: .8; }
.dig__time { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.dig__time li { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 8px 0 8px 18px; border-left: 2px solid var(--line); font-size: 14px; }
.dig__time li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dig__time li.is-deep { border-left-color: var(--iris); }
.dig__time li.is-deep::before { background: var(--iris); box-shadow: 0 0 0 4px var(--iris-soft); }
.dig__time b { font-weight: 600; }
.dig__time .is-deep span { color: var(--iris); font-weight: 500; }
.dig__card--deep .dig__scene { background: #fff; }
@media (max-width: 960px) { .dig__grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .dig { padding-top: 72px; } .dig__scene { min-height: 0; } }
/* Landing variant B, richer sections */
.dig__lead { margin: 12px 0 0; font-size: 19px; color: var(--muted); }
.rota { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 12px; }
.rota__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.rota__head span { color: var(--muted); }
.rota__grid { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 3px; }
.rota__d { text-align: center; color: var(--muted); font-weight: 500; }
.rota__n { font-weight: 500; }
.rota__c { min-height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--haze-2); font-size: 10.5px; color: var(--muted); }
.rota__c.is-on { background: var(--haze); color: var(--ink); }
.rota__c.is-moved { background: var(--iris-soft); color: var(--iris); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--iris); }
.rota__c s { display: none; }
.net { width: 100%; max-width: 520px; height: auto; }
.net__legend { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: rgba(255,255,255,.75); }
.net__legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 12px; height: 12px; border-radius: 50%; }
.lg--a { background: #fff; } .lg--f { border: 2.5px solid var(--iris-on-dark); } .lg--c { background: var(--iris-on-dark); }
.aud-b { padding-top: 110px; }
.aud-b__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.aud-b__card { overflow: hidden; border-radius: 28px; background: var(--haze); }
.aud-b__card img { width: 100%; height: 210px; object-fit: cover; }
.aud-b__card div { padding: 20px 22px 24px; }
.aud-b__card h3 { margin: 0 0 6px; font: 500 26px/1.15 var(--serif); }
.aud-b__card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.stepsband { margin: 110px 20px 0; padding: 72px 0 80px; border-radius: 40px; background: var(--ink); color: #fff; }
.trustband { margin-top: 110px; }
@media (max-width: 960px) {
  .aud-b__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rota { padding: 10px 8px; font-size: 11px; }
  .rota__grid { grid-template-columns: 34px repeat(7, 1fr); gap: 2px; }
  .rota__c { font-size: 9px; white-space: nowrap; letter-spacing: -.02em; }
  .stepsband { margin: 72px 8px 0; padding: 48px 0 56px; border-radius: 28px; }
}
.wms { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 12px; }
.wms__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wms__head span { color: var(--muted); }
.wms__grid { display: grid; grid-template-columns: 58px minmax(0, 1fr) 42px 46px 46px; gap: 3px; }
.wms__h { padding: 4px 6px; color: var(--muted); font-weight: 500; }
.wms__c { padding: 5px 6px; border-radius: 6px; background: var(--haze-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wms__c.is-bad { background: var(--iris-soft); color: #4433ff; }
.wms__c.is-bad.wms__found { box-shadow: inset 0 0 0 1.5px var(--iris); color: var(--iris); font-weight: 700; }
@media (max-width: 720px) { .wms { padding: 10px 8px; font-size: 11px; } .wms__grid { grid-template-columns: 50px minmax(0, 1fr) 36px 40px 40px; gap: 2px; } .wms__c, .wms__h { padding: 4px; } }
/* Certification seals (placeholders until the official marks are supplied) */
.seal { flex: none; width: 64px; height: 64px; }
.seals { display: flex; gap: 8px; }
.tb--seals .seal { width: 52px; height: 52px; }
.mock-note { display: inline-block; margin-top: 8px; padding: 2px 8px; border: 1px dashed #c9a24a; border-radius: 6px; background: #fffaf0; color: #8a5a00; font-size: 11.5px; }
.certrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 48px auto 0; }
.certrow__item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1.5px solid var(--line); border-radius: 24px; background: #fff; }
.certrow__item .seal { width: 84px; height: 84px; }
.certrow__item strong { display: block; font: 500 24px/1.15 var(--serif); }
.certrow__item p { margin: 6px 0 8px; font-size: 15px; color: var(--muted); }
.certrow__item .link { font-size: 14.5px; color: var(--iris); }
.certrow__item .mock-note { display: block; width: fit-content; }
@media (max-width: 720px) { .certrow { grid-template-columns: 1fr; } }
/* Landing trust panel */
.tpanel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 40px; border-radius: 40px; background: linear-gradient(135deg, var(--iris-soft), var(--haze) 55%, #fff); }
.tpanel h2 { margin: 0; font: 500 clamp(28px, 3.2vw, 40px)/1.12 var(--serif); letter-spacing: -.02em; }
.tpanel__seals { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.tpanel__seals .seal { width: 60px; height: 60px; }
.tpanel__sealtxt { display: grid; margin-left: 6px; }
.tpanel__sealtxt strong { font-weight: 600; } .tpanel__sealtxt small { font-size: 13.5px; color: var(--muted); }
.tpanel .mock-note { display: block; width: fit-content; }
.tpanel .btn { margin-top: 24px; }
.tv { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; margin: 0; }
.tv__bubble { position: relative; padding: 38px 16px 22px; border: 3px solid var(--ink); border-radius: 32px; background: #fff; }
.tv__tag { position: absolute; top: -16px; left: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }
.tv__tag svg { width: 14px; height: 14px; }
.tv__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 2px; }
.tv__node { display: grid; justify-items: center; gap: 2px; text-align: center; }
.tv__node strong { margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.tv__node small { font-size: 12px; color: var(--muted); }
.tv__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--iris-soft); color: var(--iris); }
.tv__icon svg { width: 24px; height: 24px; }
.tv__arrow { color: var(--iris); }
.tv__wall { position: relative; padding-left: 26px; }
.tv__wall::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 14px; border-left: 3px solid var(--ink); background: repeating-linear-gradient(-45deg, var(--danger-soft) 0 5px, transparent 5px 10px); }
.tv__wall p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.tv__wall ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.tv__wall li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(178,56,44,.5); }
.tv__wall li span { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-size: 10px; font-weight: 700; text-decoration: none; }
.tstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.tstats div { padding: 22px 16px; text-align: center; }
.tstats div + div { border-left: 1px solid var(--line); }
.tstats b { display: block; font: 500 clamp(38px, 4.4vw, 56px)/1 var(--serif); letter-spacing: -.02em; }
.tstats span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 1080px) { .tpanel { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .tpanel { padding: 26px 18px; border-radius: 28px; }
  .tv { grid-template-columns: 1fr; }
  .tv__row { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .tv__arrow { display: none; }
  .tstats { grid-template-columns: 1fr; }
  .tstats div + div { border-left: 0; border-top: 1px solid var(--line); }
}
/* Trust page, organised as four questions */
.trust__sub { margin: 18px auto 0; text-align: center; font-size: 19px; color: var(--muted); }
.tq-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.tq-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; background: #fff; }
.tq-nav a:hover { border-color: var(--iris); }
.tq-nav b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--iris); color: #fff; font: 600 13px/1 var(--sans); font-variant-numeric: lining-nums; }
.who2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 32px; }
.who2__card { display: grid; justify-items: center; gap: 6px; padding: 24px 14px 22px; border-radius: 24px; text-align: center; }
.who2__card.is-yes { background: var(--ok-soft); }
.who2__card.is-no { background: var(--haze); }
.who2__icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: #fff; color: var(--ink); }
.who2__icon svg { width: 30px; height: 30px; }
.who2__icon i { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px #fff; }
.is-yes .who2__icon i { background: var(--ok); }
.is-no .who2__icon i { background: var(--danger); }
.who2__card strong { margin-top: 10px; font-weight: 600; font-size: 16px; }
.who2__card small { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.is-no strong { color: var(--muted); }
.life { margin-top: 44px; padding: 34px 40px 28px; border-radius: 28px; background: var(--haze); }
.life__bar { position: relative; height: 12px; margin: 0 6px; border-radius: 999px; background: #fff; }
.life__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--iris) 0 84%, var(--wait) 84% 100%); }
.life__mark { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 4px #fff; }
.life__mark--warn { background: var(--wait); }
.life__mark--end { background: var(--ink); }
.life__above { position: relative; height: 62px; margin: 0 6px 14px; }
.life__above div { position: absolute; bottom: 0; transform: translateX(-100%); padding-right: 14px; text-align: right; }
.life__above b { display: block; font: 500 21px/1.2 var(--serif); color: var(--wait); }
.life__above span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.life__labels { position: relative; height: 70px; margin: 18px 6px 0; }
.life__labels div { position: absolute; top: 0; width: 200px; transform: translateX(-50%); text-align: center; }
.life__labels div:first-child { transform: none; text-align: left; }
.life__labels div:last-child { transform: translateX(-100%); text-align: right; }
.life__labels b { display: block; font: 500 21px/1.2 var(--serif); }
.life__labels span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.life__note { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.life__note strong { color: var(--ink); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.checks__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1.5px solid var(--line); border-radius: 24px; }
.checks__item .seal { width: 76px; height: 76px; }
.checks__item strong { display: block; font: 500 23px/1.15 var(--serif); }
.checks__item p { margin: 6px 0 8px; font-size: 15px; color: var(--muted); }
.checks__item .link { font-size: 14.5px; color: var(--iris); }
.checks__zero { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); font: 500 40px/1 var(--serif); }
@media (max-width: 1080px) { .who2 { grid-template-columns: repeat(3, 1fr); } .checks { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .who2 { grid-template-columns: 1fr 1fr; }
  .life { padding: 24px 18px; }
  .life__labels { height: auto; display: grid; gap: 12px; }
  .life__above { height: auto; margin-bottom: 16px; } .life__above div { position: static; transform: none; padding: 0; text-align: left; }
  .life__labels div, .life__labels div:first-child, .life__labels div:last-child { position: static; width: auto; transform: none; text-align: left; }
}
/* Trust page, rich layout */
/* A page's hero: the base box, white type; css/violet.css gives it the night-to-violet background and the fade. Its
   children sit above the box's own layers (the selector keeps the specificity it had when a backdrop lived inside). */
.thero { position: relative; isolation: isolate; margin: 0 12px; padding: 92px 24px 80px; border-radius: 32px; text-align: center; background: #6a5ef0; color: #fff; }
.thero > :not(.lx-sky) { position: relative; z-index: 1; }
.thero > .kicker { color: rgba(255,255,255,.82); letter-spacing: .02em; }
.thero .trust__title { color: #fff; }
.thero .trust__sub { max-width: 36em; color: rgba(255,255,255,.88); text-wrap: balance; }
/* The question links as glass chips (the home page's announcement pill), the number in a white tag. */
.thero .tq-nav { margin-top: 32px; }
.thero .tq-nav a { border: 1px solid rgba(255,255,255,.26); background: rgba(42,30,150,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; transition: border-color .2s, background .2s; }
.thero .tq-nav a:hover { border-color: rgba(255,255,255,.45); background: rgba(42,30,150,.3); }
.thero .tq-nav b { background: #fff; color: var(--iris); }
/* The figures in a glass panel: white numbers, the labels a step quieter. */
.thero .hstats { border: 1px solid rgba(255,255,255,.22); background: rgba(42,30,150,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.thero .hstats div + div { border-color: rgba(255,255,255,.2); }
.thero .hstats dd { color: rgba(255,255,255,.8); }
/* Legal pages: the title in the box, the text on the white page below it. */
.thero--doc { padding: 84px 24px 72px; }
.thero--doc .trust__title { max-width: 16em; }
/* Sign in: the form as a white card on the purple, the way the home page's question box sits on it. */
.thero--auth { display: grid; place-items: center; min-height: max(560px, calc(100svh - 230px)); padding: 64px 20px; }
.auth-card { width: min(100%, 500px); padding: 44px 36px 34px; border-radius: 28px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 0 0 5px rgba(255,255,255,.16), 0 30px 70px -28px rgba(36, 28, 150,.45); }
.thero__badges { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; padding: 12px 20px 12px 12px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px -26px rgba(20, 22, 31,.4); text-align: left; }
.thero__badges .seal { width: 54px; height: 54px; }
.thero__zero { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); font: 500 28px/1 var(--serif); }
.thero__badgetxt { display: grid; margin-left: 4px; }
.thero__badgetxt strong { font-weight: 600; font-size: 15px; } .thero__badgetxt small { font-size: 13.5px; color: var(--muted); }
.wall2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.wall2__card { display: grid; justify-items: center; gap: 4px; padding: 24px 12px 20px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 16px 36px -24px rgba(20, 22, 31,.4); }
.wall2__card:nth-child(2) { transform: translateY(18px); }
.wall2__card .seal, .wall2__card .checks__zero { width: 84px; height: 84px; }
.wall2__card .checks__zero { font-size: 44px; }
.wall2__card strong { margin-top: 10px; font-weight: 600; font-size: 15px; }
.wall2__card small { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .tfoot { grid-template-columns: 1fr; } .wall2__card:nth-child(2) { transform: none; } }
@media (max-width: 720px) {
  .thero { margin: 0 8px; padding: 60px 18px 52px; border-radius: 26px; }
  .auth-card { padding: 34px 22px 26px; border-radius: 22px; }
  .thero__badges { flex-wrap: wrap; justify-content: center; border-radius: 24px; }
  .wall2 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .wall2__card { padding: 14px 6px; } .wall2__card .seal, .wall2__card .checks__zero { width: 56px; height: 56px; } .wall2__card .checks__zero { font-size: 30px; } .wall2__card strong { font-size: 12.5px; }
}
/* Pricing page */
.phero { padding-bottom: 148px; }
.pcards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -84px; align-items: stretch; }
.pc { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1.5px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 24px 50px -36px rgba(20, 22, 31,.35); }
.pc h2 { margin: 0; font: 600 18px/1.2 var(--sans); }
.pc__price { margin: 16px 0 0; font: 500 46px/1 var(--serif); letter-spacing: -.02em; }
.pc__price small { margin-left: 6px; font: 400 15px var(--sans); color: var(--muted); }
.pc__allow { margin: 12px 0 0; font-size: 15.5px; color: var(--muted); }
.pc__allow strong { color: var(--ink); font-weight: 600; }
.pc__unit { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--iris-soft); color: var(--iris); font-size: 13px; font-weight: 500; }
.pc__intro { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pc__list { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.pc__list li { display: flex; gap: 10px; }
.pc__list svg { flex: none; margin-top: 2px; padding: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); }
.pc--best { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-14px); box-shadow: 0 30px 60px -30px rgba(36, 28, 150,.6); }
.pc--best .pc__allow, .pc--best .pc__price small { color: rgba(255,255,255,.7); }
.pc--best .pc__allow strong { color: #fff; }
.pc--best .pc__unit { background: var(--iris); color: #fff; }
.pc--best .pc__intro { border-top-color: rgba(255,255,255,.12); }
.pc--best .pc__list svg { background: var(--iris); color: #fff; }
/* A plan that cannot be bought yet shows a ghost button; on the dark card it needs light ink to be seen at all. */
.pc--best .btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.pc__ribbon { position: absolute; top: -14px; left: 24px; padding: 5px 14px; border-radius: 999px; background: var(--iris); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 4px #fff; }
.vol__head h2 { margin: 0; font: 500 clamp(28px, 3.2vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; }
.vol { margin-top: 96px; }
.vol__head p { margin: 8px 0 0; font-size: 17px; color: var(--muted); }
.vol__chart { position: relative; display: grid; gap: 14px; margin-top: 28px; padding: 30px; border: 1.5px solid var(--line); border-radius: 28px; }
.vol__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 190px; gap: 18px; align-items: center; padding: 6px 0; border-radius: 10px; outline-offset: 4px; }
.vol__name { font-weight: 600; font-size: 15.5px; }
.vol__name em { display: block; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--iris); }
.vol__track { height: 16px; border-radius: 0 4px 4px 0; background: transparent; border-left: 1.5px solid var(--line-2); }
.vol__track i { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--iris); }
.vol__row:hover .vol__track i, .vol__row:focus-visible .vol__track i { background: var(--iris-hover); }
.vol__val b { font: 500 24px/1 var(--serif); }
.vol__val small { margin-left: 4px; font-size: 14px; color: var(--muted); }
.vol__row.is-best .vol__val small { color: var(--ink); font-weight: 600; }
.vol__tip { position: absolute; z-index: 3; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; pointer-events: none; white-space: nowrap; }
@media (max-width: 1080px) { .pcards { grid-template-columns: 1fr 1fr; } .pc--best { transform: none; } .inc__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .phero { padding-bottom: 100px; }
  .pcards { grid-template-columns: 1fr; margin-top: -70px; }
  .vol { margin-top: 64px; } .vol__chart { padding: 18px; }
  .vol__row { grid-template-columns: 1fr; gap: 6px; }
}
/* Pricing: short cards and a table of differences */
.pcards .pc { padding: 26px 24px 24px; }
.pc__who { margin: 6px 0 0; min-height: 0; font-size: 15px; color: var(--muted); }
.pc--best .pc__who { color: rgba(255,255,255,.7); }
.pcards .pc__price { margin-top: 14px; }
.pcards .pc__allow { margin: 14px 0 0; font-size: 16px; }
.pcards .pc__unit { display: block; width: fit-content; margin: 8px 0 22px; }
.pcards .pc .btn { margin-top: auto; }
.pc__save { margin: -12px 0 22px; font-size: 14px; color: #d6d1ff; }
.pc__save--light { color: var(--muted); }
.pcards .pc--best { transform: none; }
.cmp { margin-top: 72px; }
.cmp h2 { margin: 0; font: 500 clamp(28px, 3.2vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; }
.cmp__wrap { margin-top: 24px; overflow-x: auto; border: 1.5px solid var(--line); border-radius: 28px; background: #fff; }
.cmp__table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp__table th, .cmp__table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp__table tbody tr:last-child th, .cmp__table tbody tr:last-child td { border-bottom: 0; }
.cmp__table thead th { position: sticky; top: 0; z-index: 1; background: #fff; font-weight: 600; font-size: 16px; }
.cmp__table thead th em { display: block; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--iris); }
.cmp__table tbody th { text-align: left; font-weight: 500; color: var(--ink); width: 30%; }
.cmp__table td { color: var(--ink); }
.cmp__table .is-best { background: var(--iris-soft); }
.cmp__table thead .is-best { border-radius: 0; }
.cmp__table tbody tr:last-child .is-best { border-bottom-left-radius: 0; }
.cmp__yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; }
.cmp__no { color: #b8bccb; font-size: 18px; }
.cmp__table tbody tr:nth-child(2) td { font: 500 20px/1 var(--serif); }
.cmp__table tbody tr:nth-child(2) td.is-best { font-weight: 600; color: var(--iris); }
@media (max-width: 720px) {
  .pc__who { min-height: 0; }
  .cmp { margin-top: 56px; }
  .cmp__table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 150px; }
}
.cmp__pick { display: none; }
@media (max-width: 720px) {
  .pcards .pc--best { transform: none; margin-top: 10px; }
  .cmp__pick { display: flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--haze); }
  .cmp__pick button { flex: 1; padding: 10px 0; border: 0; border-radius: 999px; background: transparent; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
  .cmp__pick button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 31,.12); }
  .cmp__wrap { margin-top: 12px; }
  .cmp__table { min-width: 0; table-layout: fixed; }
  .cmp__table tbody th { position: static; width: 55%; min-width: 0; }
  .cmp__table th, .cmp__table td { padding: 14px 16px; }
  .cmp:not([data-col="2"]) :is(th, td):nth-child(2),
  .cmp:not([data-col="3"]) :is(th, td):nth-child(3),
  .cmp:not([data-col="4"]) :is(th, td):nth-child(4),
  .cmp:not([data-col="5"]) :is(th, td):nth-child(5) { display: none; }
}
/* How it works page */
.hstats { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 36px auto 0; padding: 0; border-radius: 26px; background: #fff; box-shadow: 0 18px 40px -26px rgba(20, 22, 31,.4); text-align: left; }
.hstats div { padding: 16px 26px; }
.hstats div + div { border-left: 1px solid var(--line); }
.hstats dt { font: 500 24px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.hstats dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
/* The dark bands sit inside the page's column rather than across it, so only the hero spans the screen. */
@media (max-width: 720px) {
  .hstats { grid-template-columns: 1fr; width: 100%; }
  .hstats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hstats div { padding: 14px 20px; }
}
/* Trust page: one sentence, one picture, four numbers */
.trust { padding-top: 56px; }
.trust__title { max-width: 18em; margin: 0 auto; text-align: center; font: 500 clamp(36px, 4.8vw, 60px)/1.08 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.bubble-fig { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 0; align-items: center; margin: 56px 0 0; }
.bubble { position: relative; padding: 46px 26px 30px; border: 3px solid var(--ink); border-radius: 44px; background: var(--haze); }
.bubble__tag { position: absolute; top: -18px; left: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.bubble__tag svg { width: 16px; height: 16px; }
.bubble__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; }
.bubble__node { display: grid; justify-items: center; gap: 4px; text-align: center; }
.bubble__node strong { margin-top: 10px; font-weight: 600; font-size: 16px; }
.bubble__node small { font-size: 14px; color: var(--muted); }
.bubble__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: #fff; color: var(--iris); box-shadow: 0 10px 24px -14px rgba(20, 22, 31,.4); }
.bubble__icon svg { width: 30px; height: 30px; }
.bubble__arrow { color: var(--iris); }
.wall { position: relative; padding-left: 34px; }
.wall::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 20px; background: repeating-linear-gradient(-45deg, var(--danger-soft) 0 6px, transparent 6px 12px); border-left: 3px solid var(--ink); }
.wall p { margin: 0 0 10px; font-weight: 600; }
.wall ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wall li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(178,56,44,.5); }
.wall__x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 700; text-decoration: none; }
.promise4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise4 div { padding: 28px 20px; text-align: center; }
.promise4 div + div { border-left: 1px solid var(--line); }
.promise4 b { display: block; font: 500 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.promise4 span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
.trust__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; max-width: 760px; margin: 40px auto 0; font-size: 14.5px; color: var(--muted); }
.trust__legal a { color: var(--ink); }
@media (max-width: 960px) {
  .bubble-fig { grid-template-columns: 1fr; gap: 28px; }
  .bubble__row { grid-template-columns: 1fr; gap: 14px; }
  .bubble__arrow { justify-self: center; transform: rotate(90deg); }
  .promise4 { grid-template-columns: 1fr 1fr; }
  .promise4 div:nth-child(3) { border-left: 0; }
  .promise4 div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .bubble { padding: 40px 14px 22px; border-radius: 32px; }
  .bubble__row { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .bubble__arrow { display: none; }
  .bubble__icon { width: 54px; height: 54px; border-radius: 18px; }
  .bubble__node strong { font-size: 15px; }
  .bubble__node small { font-size: 13px; }
}
.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 30px; }
.state { padding: 22px; border: 1.5px solid var(--line); border-radius: 22px; background: #fff; }
.state__where { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--haze); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.state h3 { margin: 14px 0 6px; font: 500 22px/1.2 var(--serif); }
.state p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.keep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keep label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 15px; font-weight: 500; }
.keep label:has(input:checked) { border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-soft); }
.keep input { accent-color: var(--iris); width: 18px; height: 18px; margin: 0; }
.keep small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.keep .is-locked { cursor: not-allowed; color: var(--muted); background: var(--haze-2); }
@media (max-width: 720px) { .keep { grid-template-columns: 1fr 1fr; } }
.msg__body--file { display: grid; gap: 8px; }
.filechip { display: flex; align-items: center; gap: 10px; }
.filechip__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); }
.filechip strong { display: block; font-weight: 500; font-size: 15px; word-break: break-all; }
.filechip small { display: block; font-size: 12.5px; opacity: .8; }
.filechip__rm { justify-self: end; padding: 0; border: 0; background: none; color: inherit; font-size: 12.5px; text-decoration: underline; opacity: .85; }
.msg--me.is-removed .msg__body { opacity: .55; }
/* Trust */
.trustband { margin-top: 110px; }
.trustband__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.tb { padding: 22px; border-radius: 22px; background: var(--haze); }
.tb strong { display: block; margin-top: 14px; font-weight: 600; }
.tb p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.tb__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--iris); }
.tb__icon svg { width: 22px; height: 22px; }
.tb__link { display: inline-block; margin-top: 18px; font-weight: 500; color: var(--iris); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.cert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 20px; border: 1.5px solid var(--line); border-radius: 22px; }
.cert > div { min-width: 0; }
.cert strong { font: 500 24px/1.1 var(--serif); }
.cert p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.cert .btn, .cert .pill { grid-column: 2; justify-self: start; margin-top: 10px; }
.cert__icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; }
.cert__icon svg { width: 28px; height: 28px; }
.cert__icon--soft { background: var(--wait-soft); color: var(--wait); }
.journey { margin-top: 22px; }
.journey__node--region { outline: 2px dashed var(--iris); outline-offset: 6px; background: linear-gradient(180deg, var(--iris-soft), #fff 60%); }
.journey__region span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--iris); color: #fff; font-size: 13.5px; font-weight: 500; }
.journey__region svg { width: 16px; height: 16px; }
.journey__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; margin-top: 22px; padding: 6px; }
.journey__node { padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20, 22, 31,.3); }
.journey__node strong { display: block; margin-top: 12px; font-weight: 600; }
.journey__where { display: block; margin-top: 2px; font-size: 13px; color: var(--iris); font-weight: 500; }
.journey__node p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.journey__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; }
.journey__icon svg { width: 24px; height: 24px; }
.journey__arrow { align-self: center; color: var(--iris); }
.trust-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.trust-card { padding: 26px; border-radius: 24px; background: var(--haze); }
.trust-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; }
.trust-card li { display: flex; gap: 12px; }
.trust-card li::before { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.yes li::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.no li::before { content: "✕"; background: var(--danger-soft); color: var(--danger); }
.who td small { display: block; font-size: 13px; color: var(--muted); }
.who td.y { color: var(--ok); font-weight: 500; }
.who td.n { color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 26px 18px 0 0; border-top: 3px solid var(--iris); }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--iris); }
.timeline li.is-end { border-top-color: var(--ink); } .timeline li.is-end::before { background: var(--ink); }
.timeline b { display: block; font: 500 22px/1.2 var(--serif); }
.timeline span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.subs div { padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 18px; }
.subs strong { display: block; font-weight: 600; }
.subs span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.region { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.region label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; }
.region label:has(input:checked) { border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-soft); }
.region input { accent-color: var(--iris); width: 18px; height: 18px; margin: 0; }
.region strong { display: block; font-weight: 600; } .region small { color: var(--muted); font-size: 13.5px; }
.happens { margin-top: 26px; padding: 18px; border-radius: 20px; background: var(--haze); }
.happens ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.happens li { display: grid; gap: 2px; font-size: 14px; }
.happens li strong { margin-top: 8px; font-weight: 600; }
.happens li small { color: var(--muted); font-size: 13px; }
.happens .tb__icon { width: 36px; height: 36px; }
.region-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--haze); font-size: 13px; color: var(--muted); white-space: nowrap; }
.region-pill svg { width: 14px; height: 14px; }
@media (max-width: 960px) {
  .trustband__grid, .certs { grid-template-columns: 1fr 1fr; }
  .journey__row { grid-template-columns: 1fr; } .journey__arrow { justify-self: center; transform: rotate(90deg); }
  .trust-2, .timeline { grid-template-columns: 1fr; } .timeline li { padding-bottom: 18px; }
}
@media (max-width: 720px) {
  .trustband__grid, .certs, .region { grid-template-columns: 1fr; }
  .happens ol { grid-template-columns: 1fr 1fr; }
}

/* ---------- Production additions for the public pages ---------- */
.examples__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; flex-basis: 100%; }
.examples__more[hidden] { display: none; }
.examples__toggle { flex-basis: 100%; font-size: 14.5px; color: var(--muted); }
.photo__img { pointer-events: none; }
.photo__ctrl[hidden] { display: none; }
.life__mark--start { left: 0; }
.life__mark--end { left: 100%; }
.life__labels .life__label--end { left: 100%; }
.life__labels .life__label--start { left: 0; }
.vol__track { display: block; width: 100%; height: 16px; overflow: visible; }
.vol__track rect { fill: var(--iris); }
.vol__row:hover .vol__track rect, .vol__row:focus-visible .vol__track rect { fill: var(--iris-hover); }
.vol__track--svg { border-left: 1.5px solid var(--line-2); }
.cmp__table .is-best em { display: block; font-style: normal; }
@media (max-width: 720px) {
  .cmp__pick button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 31,.12); }
}
.wall2__card--certs { grid-template-columns: auto auto; column-gap: 10px; }
.wall2__card--certs strong, .wall2__card--certs small { grid-column: 1 / -1; }
.wall2:has(> :only-child), .wall2:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.life__fill--plain { background: var(--iris-on-dark); }

/* The site's body (7 October 2026): the blueprint iteration's structure in the purple direction. Below each page's
   purple hero, content sits in a frame of hairlines that runs down from the hero; numbered monospace bars name the
   sections, with crosshairs where a bar meets the frame; headings are Archivo in two tones (ink, then a grey
   grey); the product is shown as small interface mock-ups on purple tints. The structure is square on purpose: the
   hero, the buttons and the question box carry the rounded half of the look. Used by How it works, Security,
   Pricing, Privacy, Terms and the other marketing pages; each puts body.is-framed on the page so the footer closes the frame. */

:root {
  --fr-rule: rgba(36, 28, 150, .11);
  --fr-rule-2: rgba(36, 28, 150, .2);
  --fr-cross: rgba(36, 28, 150, .5);
  --fr-soft: #f6f6f9;       /* a quiet surface: table heads, meters, chips */
  --fr-soft-2: #e7e9f0;
  --fr-tone: #676c7c;       /* the second tone of a heading: large type only (4.5:1 on white) */
  --fr-deep: #4433ff;       /* the indigo panel */
  --fr-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fr-shadow: 0 1px 2px rgba(36, 28, 150, .05), 0 18px 40px -26px rgba(36, 28, 150, .38);
  /* Tints behind the mock-ups (Cabinet): cool neutrals, indigo for the colour a tab takes on each. */
  --tint-why: #f1f0fb;      --tint-why-2: #f6f6f9;      --tint-why-on: #4433ff;
  --tint-show: #f1f0fb;     --tint-show-2: #f6f6f9;     --tint-show-on: #4433ff;
  --tint-deep: #f1f0fb;     --tint-deep-2: #f6f6f9;     --tint-deep-on: #4433ff;
  --tint-findings: #f1f0fb; --tint-findings-2: #f6f6f9; --tint-findings-on: #4433ff;
  --tint-confirm: #f1f0fb;  --tint-confirm-2: #f6f6f9;  --tint-confirm-on: #4433ff;
}
body.is-framed { background: var(--page); }
body.is-framed .screen { padding-bottom: 0; }

/* ---------- The frame: hairlines down the content edges, starting at the hero's foot */
.fr-frame { width: min(1240px, calc(100% - 24px)); margin: 0 auto; padding-top: 64px; border-inline: 1px solid var(--fr-rule); }
.fr-frame--flush { padding-top: 0; }

/* A numbered section bar: rules above and below, a lavender wash, crosshairs where it meets the frame. Decorative:
   the section's own heading names it. */
.fr-bar { position: relative; display: flex; align-items: center; height: 48px; margin: 0 -1px; padding: 0 18px; border-block: 1px solid var(--fr-rule); background: linear-gradient(90deg, var(--fr-soft), rgba(255, 255, 255, 0) 70%); font: 12px/1 var(--sans); color: var(--muted); }
.fr-bar b { color: var(--iris); font-weight: 600; }
.fr-bar::before, .fr-bar::after, .fr-cross::before, .fr-cross::after { content: "+"; position: absolute; font: 300 15px/1 var(--sans); color: var(--fr-cross); }
.fr-bar::before { top: -8px; left: -5px; }
.fr-bar::after { top: -8px; right: -5px; }
.fr-cross::before { bottom: -8px; left: -5px; }
.fr-cross::after { bottom: -8px; right: -5px; }

.fr-mono { margin: 0; font: 500 11.5px/1.45 var(--sans); color: var(--muted); }
.fr-icon { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--fr-rule); background: var(--fr-soft); color: var(--iris); }
.fr-icon--lg { width: 40px; height: 40px; }

/* ---------- Sections and their headings */
.fr-section { padding-bottom: 104px; scroll-margin-top: 80px; }
.fr-head { max-width: 800px; padding: 72px 32px 44px; }
.fr-title, .fr-head h2 { margin: 0; font: 800 clamp(34px, 4.2vw, 54px)/1.04 var(--serif); font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); text-wrap: balance; }
.fr-title span, .fr-head h2 span { color: var(--fr-tone); }
.fr-head p { max-width: 34em; margin: 18px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.fr-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; max-width: none; }
.fr-head--split h2 { max-width: 14em; }
.fr-head--split p { max-width: 26em; margin: 0; }
.fr-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--iris); text-decoration: underline; text-decoration-color: rgba(36, 28, 150, .3); text-underline-offset: 5px; }
.fr-link:hover { text-decoration-color: currentColor; }
.fr-link svg { transition: transform .15s; }
.fr-link:hover svg { transform: translateX(2px); }

/* ---------- Step cards: text on white, a mock-up on a tint */
.fr-steps { display: grid; gap: 14px; margin: 0; padding: 0 32px; list-style: none; }
.fr-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 320px; border: 1px solid var(--fr-rule); background: #fff; scroll-margin-top: 96px; }
.fr-step__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 44px 44px; }
.fr-step__n { font: 500 12.5px/1 var(--sans); color: var(--iris); }
.fr-step__title { margin: 16px 0 10px; font: 800 clamp(26px, 2.5vw, 32px)/1.12 var(--serif); font-stretch: 74%; letter-spacing: -.004em; text-wrap: balance; }
.fr-step__text p { max-width: 32em; margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.fr-step__text p strong { color: var(--ink); font-weight: 600; }
.fr-step__mock { position: relative; display: grid; place-items: center; padding: 40px; border-left: 1px solid var(--fr-rule); }
.fr-step__sample { margin: 18px 0 0; font-size: 14.5px; }
.fr-ticks { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.fr-ticks li { display: flex; align-items: flex-start; gap: 10px; }
.fr-ticks svg { flex: none; box-sizing: content-box; margin-top: 1px; padding: 3px; background: var(--iris-soft); color: var(--iris); }

/* Tints behind the mock-ups: a radial wash in one shade of the purple, under a faint dot field. */
.fr-tint--why, .fr-tint--show, .fr-tint--deep, .fr-tint--findings, .fr-tint--confirm { --dot: rgba(36, 28, 150, .14); }
.fr-tint--why { background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 16px 16px, radial-gradient(70% 70% at 60% 50%, var(--tint-why), var(--tint-why-2)); }
.fr-tint--show { background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 16px 16px, radial-gradient(70% 70% at 60% 50%, var(--tint-show), var(--tint-show-2)); }
.fr-tint--deep { background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 16px 16px, radial-gradient(70% 70% at 60% 50%, var(--tint-deep), var(--tint-deep-2)); }
.fr-tint--findings { background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 16px 16px, radial-gradient(70% 70% at 60% 50%, var(--tint-findings), var(--tint-findings-2)); }
.fr-tint--confirm { background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 16px 16px, radial-gradient(70% 70% at 60% 50%, var(--tint-confirm), var(--tint-confirm-2)); }

/* ---------- Mock-ups: white cards with a hairline and a soft purple shadow */
.fr-card { width: min(100%, 390px); border: 1px solid var(--fr-rule); background: #fff; color: var(--ink); text-align: left; box-shadow: none; font-size: 13.5px; }
.fr-card__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--fr-rule); }
.fr-card__head strong { font-weight: 600; }
.fr-card__head small { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.fr-card__kicker { margin: 0; padding: 14px 16px 0; font: 500 11px/1.4 var(--sans); color: var(--iris); }
.fr-card__quote { margin: 0; padding: 8px 16px 16px; font: 700 19px/1.35 var(--serif); font-stretch: 85%; letter-spacing: -.002em; }
.fr-card__note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--fr-rule); font-size: 12.5px; color: var(--muted); }
.fr-card__note svg { flex: none; color: var(--iris); }
.fr-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--fr-rule); }
.fr-card__foot small { color: var(--muted); }
.fr-card__input { margin: 0; padding: 10px 14px; border-top: 1px solid var(--fr-rule); color: #666b7a; }
.fr-mini-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 10px; border: 1px solid var(--fr-rule-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fr-mini-btn--iris { border-color: var(--iris); background: var(--iris); color: #fff; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--fr-rule); }
.fr-row:last-child { border-bottom: 0; }
.fr-row strong { display: block; font-weight: 600; }
.fr-row small { display: block; font-size: 12px; color: var(--muted); }
.fr-row--topic { justify-content: space-between; }
.fr-row--topic.is-off > span:first-child { color: var(--fr-tone); text-decoration: line-through; }
.fr-row__mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; color: #fff; font-size: 11px; font-weight: 700; }
.fr-row__mark--yes { background: var(--ok); }
.fr-row__mark--no { background: var(--danger); }
.fr-row.is-no strong { color: var(--muted); }
.fr-tag { flex: none; margin-left: auto; padding: 2px 7px; background: var(--fr-soft); font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.fr-tag--new { background: var(--iris-soft); color: var(--iris); }
.fr-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.fr-chips span { padding: 4px 8px; border: 1px solid var(--fr-rule); background: var(--fr-soft); font: 500 12px/1.3 var(--sans); }
.fr-chips .is-more { border-style: dashed; background: transparent; color: var(--muted); }
.fr-finding { padding: 16px; }
.fr-finding__label { margin: 0; font: 500 11px/1.4 var(--sans); color: var(--iris); }
.fr-finding__answer { margin: 8px 0 14px; font: 700 20px/1.25 var(--serif); font-stretch: 85%; letter-spacing: -.002em; }
.fr-finding__meter { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--fr-rule); background: var(--fr-soft); }
.fr-finding__meter > span { font-weight: 500; }
.fr-finding__quote { margin: 12px 0; font: italic 400 16px/1.4 var(--serif); color: var(--ink); }
.fr-finding__quote small { display: block; margin-top: 4px; font: 400 12px var(--sans); color: var(--muted); }
.fr-finding .fr-card__input { margin: 0 -16px -16px; }
.is-framed .fr-card .dots { gap: 3px; }
.is-framed .fr-card .dots i { width: 9px; height: 9px; border-radius: 0; background: var(--fr-soft-2); }
.is-framed .fr-card .dots i.on { background: var(--iris); }
.is-framed .fr-card .count { font-size: 12.5px; color: var(--muted); }

/* ---------- Ruled grids: facts with an icon, the line of what never gets in, and the figures */
.fr-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 32px; border: 1px solid var(--fr-rule); background: #fff; box-shadow: none; }
.fr-facts--3 { grid-template-columns: repeat(3, 1fr); }
.fr-fact { padding: 26px 24px 28px; border-right: 1px solid var(--fr-rule); }
.fr-fact:last-child { border-right: 0; }
.fr-fact h3 { margin: 22px 0 6px; font: 600 17px/1.25 var(--sans); letter-spacing: -.01em; }
.fr-fact p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.fr-fact .fr-mono { font-size: 11px; }

/* A dark panel, in the purple: the Deep Study picture. */
.fr-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin: 0 32px; border: 1px solid var(--fr-rule); background: #fff; }
.fr-panel__text { padding: 40px 44px 44px; }
.fr-panel__media { position: relative; display: grid; place-items: center; padding: 28px 16px 64px; background: radial-gradient(80% 80% at 50% 40%, #3424d6, var(--fr-deep)); }
.fr-numbered { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: fr-n; }
.fr-numbered li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--fr-rule); counter-increment: fr-n; }
.fr-numbered li:first-child { border-top: 0; padding-top: 0; }
.fr-numbered li::before { content: counter(fr-n, decimal-leading-zero); grid-row: span 2; font: 500 13px/1.6 var(--sans); color: var(--iris); }
.fr-numbered h3 { margin: 0; font: 600 17px/1.3 var(--sans); }
.fr-numbered p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Questions: the title on the left, the answers in two columns */
.fr-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; padding: 72px 32px 0; }
.fr-faq .fr-title span { display: block; }
.fr-faq dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin: 0; }
.fr-faq dt { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.fr-faq dd { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Closing: one sentence and the way in, on a lavender wash rising from the bottom of the frame */
.fr-closing { padding: 112px 24px 128px; border-top: 1px solid var(--fr-rule); background: radial-gradient(60% 90% at 50% 100%, var(--tint-why), rgba(255, 255, 255, 0) 70%); text-align: center; }
.fr-closing .fr-title { max-width: 17em; margin: 0 auto; }
.fr-closing .fr-title span { display: block; }
.fr-closing p { max-width: 34em; margin: 18px auto 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.fr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }

/* ---------- Documents (Privacy, Terms): each section a ruled row, its number and title on the left */
.fr-doc { padding: 0 0 72px; counter-reset: fr-doc; }
.fr-doc section { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px 56px; padding: 34px 32px 36px; border-bottom: 1px solid var(--fr-rule); counter-increment: fr-doc; }
.fr-doc h2 { margin: 0; font: 800 24px/1.2 var(--serif); font-stretch: 74%; letter-spacing: -.004em; }
.fr-doc h2::before { content: counter(fr-doc, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 12px/1 var(--sans); color: var(--iris); }
.fr-doc section > :not(h2) { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.fr-doc section > * + :not(h2) { margin-top: 12px; }
/* The text starts level with the title, below its number. */
.fr-doc h2 + * { padding-top: 22px; }
.fr-doc ul { padding-left: 20px; }
.fr-doc li + li { margin-top: 6px; }
.fr-doc a { color: var(--iris); }
.fr-doc .notice { margin: 32px 32px 0; }
.fr-doc__back { margin: 32px 32px 0; }

/* ---------- Ruled tiles: one row of short facts (Pricing's "every plan includes") */
.fr-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 32px; border-top: 1px solid var(--fr-rule); border-left: 1px solid var(--fr-rule); background: #fff; }
.fr-tile { padding: 24px 22px 26px; border-right: 1px solid var(--fr-rule); border-bottom: 1px solid var(--fr-rule); }
.fr-tile h3 { margin: 20px 0 4px; font: 600 16px/1.3 var(--sans); }
.fr-tile p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
/* Six facts: two rows of three (the page for invited people). */
.fr-tiles--3 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The rules under a panel: a check and a sentence each. */
.fr-rules { margin-top: 14px; padding: 0; list-style: none; box-shadow: none; }
.fr-rules .fr-fact { display: flex; align-items: flex-start; gap: 12px; padding: 20px; }
.fr-rules .fr-fact p { color: var(--ink); font-size: 15px; }
.fr-panel__media .net__legend { bottom: 22px; }

/* ---------- Pricing's pieces, squared into the frame */
.fr-notices { padding: 0 32px; }
.fr-notices .notice { margin-top: 24px; }
.fr-frame .pcards { margin: -84px 32px 96px; gap: 0; border: 1px solid var(--fr-rule); background: #fff; box-shadow: none; }
.fr-frame .pcards .pc { padding: 30px 26px 26px; border: 0; border-right: 1px solid var(--fr-rule); border-radius: 0; box-shadow: none; }
.fr-frame .pcards .pc:last-child { border-right: 0; }
.fr-frame .pcards .pc--best { background: var(--fr-deep); color: #fff; transform: none; box-shadow: none; }
.fr-frame .pc__ribbon { top: 0; right: 0; left: auto; padding: 6px 10px; border-radius: 0; background: var(--iris); box-shadow: none; font: 500 11px/1.2 var(--sans); }
.fr-frame .pc h2 { font: 500 12px/1.2 var(--sans); color: var(--iris); }
.fr-frame .pc--best h2 { color: #d6d1ff; }
.fr-frame .pc__unit { border-radius: 0; font: 500 12px/1.4 var(--sans); }
.fr-frame .pc__save { color: #d6d1ff; }
.fr-frame .pc__save--light { color: var(--muted); }
.fr-section.cmp, .fr-section.vol { margin-top: 0; }
.fr-frame .cmp__wrap { margin: 0 32px; border: 1px solid var(--fr-rule); border-radius: 0; }
.fr-frame .cmp__table th, .fr-frame .cmp__table td { border-bottom-color: var(--fr-rule); }
.fr-frame .cmp__table thead th { background: var(--fr-soft); font: 500 12px/1.3 var(--sans); }
.fr-frame .cmp__table thead th em { margin-top: 4px; font: 500 11px/1.2 var(--sans); }
.fr-frame .cmp__table .is-best { background: var(--tint-why-2); }
.fr-frame .cmp__table thead .is-best { background: var(--tint-why); }
.fr-frame .cmp__yes { border-radius: 0; background: var(--iris-soft); color: var(--iris); }
.fr-frame .cmp__pick { margin: 0 32px; }
.fr-frame .vol__chart { margin: 0 32px; padding: 30px 32px; border: 1px solid var(--fr-rule); border-radius: 0; background: #fff; }
.fr-frame .vol__row { border-radius: 0; }
.fr-frame .vol__name em { font: 500 11px/1.4 var(--sans); }
.fr-frame .vol__tip { border-radius: 0; background: var(--fr-deep); }

/* ---------- The footer closes the frame */
.is-framed .footer { width: min(1240px, calc(100% - 24px)); max-width: none; padding: 56px 32px 32px; border: 1px solid var(--fr-rule); }
.is-framed .footer__top { border-bottom-color: var(--fr-rule); }
.is-framed .footer__cols h2 { font: 500 11.5px/1.4 var(--sans); color: var(--muted); }
.is-framed .footer__bottom { font: 12px/1.4 var(--sans); }

/* ---------- Narrower screens */
@media (max-width: 1080px) {
  .fr-facts { grid-template-columns: repeat(2, 1fr); }
  .fr-facts .fr-fact:nth-child(2n) { border-right: 0; }
  .fr-facts .fr-fact:nth-child(-n+2) { border-bottom: 1px solid var(--fr-rule); }
  .fr-facts--3 .fr-fact:nth-child(2n) { border-right: 1px solid var(--fr-rule); }
  .fr-facts--3 { grid-template-columns: 1fr; }
  .fr-facts--3 .fr-fact { border-right: 0; border-bottom: 1px solid var(--fr-rule); }
  .fr-facts--3 .fr-fact:last-child { border-bottom: 0; }
  .fr-faq { grid-template-columns: 1fr; gap: 32px; }
  .fr-panel { grid-template-columns: 1fr; }
  .fr-tiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-tile:last-child:nth-child(odd) { grid-column: span 2; }
  .fr-frame .pcards .pc { border-bottom: 1px solid var(--fr-rule); }
  .fr-frame .pcards .pc:nth-child(2n) { border-right: 0; }
  .fr-frame .pcards .pc:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 860px) {
  .fr-step { grid-template-columns: 1fr; }
  .fr-step__mock { border-left: 0; border-top: 1px solid var(--fr-rule); }
  .fr-doc section { grid-template-columns: 1fr; }
  .fr-doc section > :not(h2) { grid-column: 1; }
  .fr-doc h2 + * { padding-top: 0; }
}
@media (max-width: 720px) {
  .fr-frame { width: calc(100% - 16px); padding-top: 40px; }
  .fr-frame--flush { padding-top: 0; }
  .fr-head { padding: 52px 16px 32px; }
  .fr-steps { padding: 0 12px; }
  .fr-step__text { padding: 28px 22px 30px; }
  .fr-step__mock { padding: 28px 16px; }
  .fr-facts, .fr-panel { margin-left: 12px; margin-right: 12px; }
  .fr-facts { grid-template-columns: 1fr; }
  .fr-facts .fr-fact { border-right: 0; border-bottom: 1px solid var(--fr-rule); }
  .fr-facts .fr-fact:last-child { border-bottom: 0; }
  .fr-panel__text { padding: 28px 22px 30px; }
  .fr-faq { padding: 52px 16px 0; }
  .fr-tiles, .fr-frame .cmp__wrap, .fr-frame .cmp__pick, .fr-frame .vol__chart { margin-left: 12px; margin-right: 12px; }
  .fr-tiles { grid-template-columns: 1fr; }
  .fr-tile:last-child:nth-child(odd) { grid-column: auto; }
  .fr-notices { padding: 0 12px; }
  .fr-frame .pcards { margin: -70px 12px 64px; }
  .fr-frame .pcards .pc { border-right: 0; border-bottom: 1px solid var(--fr-rule); }
  .fr-frame .pcards .pc:nth-last-child(-n+2) { border-bottom: 1px solid var(--fr-rule); }
  .fr-frame .pcards .pc:last-child { border-bottom: 0; }
  .fr-frame .vol__chart { padding: 18px; }
  .fr-faq dl { grid-template-columns: 1fr; gap: 24px; }
  .fr-section { padding-bottom: 72px; }
  .fr-closing { padding: 80px 16px 96px; }
  .fr-doc section { padding: 28px 16px 30px; }
  .fr-doc .notice, .fr-doc__back { margin-left: 16px; margin-right: 16px; }
  .is-framed .footer { width: calc(100% - 16px); padding: 44px 18px calc(24px + env(safe-area-inset-bottom)); }
}

/* Lot 6: Security (configured facts), Client kit (documents) and Use cases (cards, illustrative note). Existing
   colours and rules only. */
.sfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--fr-rule); }
.sfacts > div { padding: 16px 18px; border-bottom: 1px solid var(--fr-rule); }
.sfacts dt { font-size: 14px; color: var(--muted); }
.sfacts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; word-break: break-word; }
.sfacts dd.sfacts__none, p.sfacts__none { font-weight: 400; color: var(--muted); font-style: italic; }
.sec-who { margin-top: 24px; max-width: 640px; }
.kit-docs .fr-tile { display: flex; flex-direction: column; gap: 6px; }
.kit-docs .fr-tile .btn { align-self: flex-start; margin-top: auto; }
.kit-docs__for { margin: 0; font-size: 14px; color: var(--muted); }
.uc-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.uc-card:hover h3 { text-decoration: underline; }
.uc-card .fr-link { margin-top: auto; }
.uc-note { font-style: italic; color: var(--muted); }
.uc-related { margin: 24px 0 0; font-size: 15px; color: var(--muted); }

/* The MCP page (/connect): the address first (copy it, or add it to Claude), the tools it works with and the requests
   a consultant can make; four numbered points; sample conversations and one tab per assistant (js/connect.js; without
   script the panels stack); the permissions card. Existing colours and rules only. */
.cx-hero .cx-url { width: min(100%, 760px); margin: 36px auto 0; text-align: left; }
.cx-url { margin: 0 32px; padding: 20px 22px; border: 1px solid var(--fr-rule); background: #fff; box-shadow: none; }
.cx-url__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cx-url__value { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--fr-rule-2); background: var(--fr-soft); font: 500 16px/46px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-url__value:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.cx-url__row .btn { flex: none; height: 48px; }
.cx-url__hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.cx-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 860px; margin: 22px auto 0; }
.cx-chips .fr-mono { margin-right: 4px; }
.cx-chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cx-points { margin-top: 0; padding: 0; list-style: none; }
.cx-points__n { font: 500 13px/1 var(--sans); color: var(--iris); }
.cx-points h3 { margin-top: 14px; }
.cx-chat { width: min(100%, 640px); font-size: 14.5px; }
.cx-chat__ask { margin: 16px 16px 0 auto; max-width: 30em; padding: 12px 14px; background: var(--fr-soft); line-height: 1.5; }
.cx-chat__tool { display: flex; align-items: center; gap: 6px; margin: 14px 16px 0; font: 500 11.5px/1.4 var(--sans); color: var(--iris); }
.cx-chat__answer { padding: 8px 16px 16px; line-height: 1.5; }
.cx-chat__answer p { margin: 0; }
.cx-chat__answer ol, .cx-msg--ai ol { counter-reset: cx-src; list-style: none; }
.cx-chat__answer ol { display: grid; gap: 10px; margin: 12px 0 14px; padding-left: 0; }
.cx-chat__answer li span { display: inline; }
.cx-chat__answer li small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cx-chat__follow { color: var(--muted); }
.cx-clients { margin: 14px 32px 0; border: 1px solid var(--fr-rule); background: #fff; scroll-margin-top: 140px; }
.cx-uses { margin-top: 0; }
.cx-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--fr-rule); background: var(--fr-soft); }
.cx-tabs[hidden] { display: none; }
.cx-tabs [role="tab"] { padding: 14px 20px; border: 0; border-right: 1px solid var(--fr-rule); background: transparent; font: 500 15px/1.2 var(--sans); color: var(--muted); cursor: pointer; }
.cx-tabs [role="tab"]:hover { color: var(--ink); }
.cx-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--iris); box-shadow: inset 0 -2px 0 var(--iris); }
.cx-tabs [role="tab"]:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cx-panel { padding: 28px 32px 30px; scroll-margin-top: 96px; }
.cx-clients:not(.is-tabbed) .cx-panel + .cx-panel { border-top: 1px solid var(--fr-rule); }
.cx-use { display: grid; justify-items: center; gap: 18px; padding: 44px 24px; }
.cx-use__title { justify-self: start; margin: 0; font: 800 24px/1.15 var(--serif); font-stretch: 74%; letter-spacing: -.004em; }
.cx-clients.is-tabbed .cx-use__title { display: none; }
.cx-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cx-panel__head h3 { margin: 0; font: 800 26px/1.15 var(--serif); font-stretch: 74%; letter-spacing: -.004em; }
.cx-panel__head small { font-size: 14px; color: var(--muted); }
.cx-steps { display: grid; gap: 12px; max-width: 46em; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: cx; }
.cx-steps li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.5; counter-increment: cx; }
.cx-steps li::before { content: counter(cx); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; background: var(--iris); color: #fff; font: 600 13px/1 var(--sans); }
.cx-code { display: flex; align-items: flex-start; gap: 10px; max-width: 46em; margin: 20px 0 0; }
.cx-code pre { flex: 1; min-width: 0; margin: 0; padding: 14px 16px; overflow-x: auto; background: var(--fr-deep); color: #fff; font: 13.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.cx-note { display: flex; align-items: flex-start; gap: 8px; max-width: 46em; margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cx-note svg { flex: none; margin-top: 3px; color: var(--iris); }
.cx-what-is { max-width: 46em; margin: 18px 32px 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cx-can { margin: 0 32px; border: 1px solid var(--fr-rule); border-bottom: 0; }
.cx-can .fr-card { width: min(100%, 560px); }
.cx-apps { margin: 18px 32px 0; }
/* The demo window in the hero: a simulated assistant (js/connect.js plays it). Neutral chrome so it reads as any
   assistant; the badge on the right names the one shown. Fixed height so the page never jumps while it plays. */
.cx-demo-wrap { width: min(100%, 1040px); margin: 40px auto 0; text-align: left; }
.cx-app { overflow: hidden; border: 1px solid #e7e9f0; border-radius: 6px; background: #fff; box-shadow: none; }
.cx-app__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid #e7e9f0; background: #f6f6f9; }
.cx-app__dots { display: flex; gap: 6px; }
.cx-app__dots i { width: 11px; height: 11px; border-radius: 50%; background: #e7e9f0; }
.cx-app__title { font-size: 13px; font-weight: 500; color: var(--muted); }
.cx-app__who { margin-left: auto; }
.cx-app__assistant { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 8px; border: 1px solid color-mix(in srgb, var(--brand) 35%, #fff); border-radius: 6px; background: color-mix(in srgb, var(--brand) 9%, #fff); font-size: 13px; font-weight: 600; }
.cx-app__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 470px; }
.cx-app__side { padding: 18px 14px; border-right: 1px solid #e7e9f0; background: #ffffff; font-size: 13px; }
.cx-app__label { margin: 0 0 8px; font: 500 10.5px/1.4 var(--sans); color: #8b8fa3; }
.cx-app__label ~ .cx-app__label { margin-top: 22px; }
.cx-app__item { margin: 0 0 4px; padding: 7px 9px; border-radius: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-app__item:first-of-type { background: #f6f6f9; }
.cx-app__conn { display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 9px; font-weight: 600; }
.cx-app__conn span { margin-left: auto; padding: 2px 7px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 600; }
.cx-app__main { display: flex; flex-direction: column; min-width: 0; }
.cx-app__thread { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 10px; overflow: hidden; font-size: 14.5px; line-height: 1.5; }
.cx-msg { margin: 0; }
.cx-msg--me { align-self: flex-end; max-width: 78%; padding: 11px 15px; border-radius: 6px 6px 4px 6px; background: #f6f6f9; animation: cx-in .3s ease-out; }
.cx-msg__tool { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border: 1px solid #e7e9f0; border-radius: 6px; font: 500 12px/1.3 var(--sans); color: var(--iris); animation: cx-in .3s ease-out; }
.cx-msg__tool svg { color: var(--ok); }
.cx-spin { width: 13px; height: 13px; border: 2px solid var(--iris-soft); border-top-color: var(--iris); border-radius: 50%; animation: cx-turn .8s linear infinite; }
.cx-msg--ai p { margin: 0; }
.cx-msg--ai ol { display: grid; gap: 9px; margin: 10px 0 12px; padding-left: 0; }
.cx-msg--ai li span { display: inline; }
.cx-msg--ai li small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 1px 7px; border-radius: 6px; background: var(--iris-soft); font-size: 11.5px; color: var(--iris); }
.cx-msg__follow { color: var(--muted); }
.cx-app .is-new { animation: cx-in .35s ease-out; }
.cx-app__composer { display: flex; align-items: center; gap: 10px; margin: 6px 22px 18px; padding: 12px 12px 12px 16px; border: 1px solid #e7e9f0; border-radius: 6px; box-shadow: none; font-size: 14.5px; color: #8b8fa3; }
.cx-app__composer > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-app__composer .is-typing { color: var(--ink); white-space: normal; }
.cx-app__composer .is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: var(--ink); animation: cx-blink 1s steps(1) infinite; }
.cx-app__send { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 6px; background: var(--iris); color: #fff; }
.cx-app__picks { display: none; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid #e7e9f0; background: #ffffff; }
.cx-app.is-live .cx-app__picks { display: flex; }
.cx-app__picks button { padding: 5px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; font: 500 12.5px/1.2 var(--sans); color: var(--muted); cursor: pointer; }
.cx-app__picks button:hover { color: var(--ink); }
.cx-app__picks button.is-on { border-color: #e7e9f0; background: #fff; color: var(--iris); }
.cx-demo-wrap__caption { margin-top: 12px; font-size: 12.5px; text-align: center; color: var(--muted); }
@keyframes cx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cx-turn { to { transform: rotate(360deg); } }
@keyframes cx-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cx-app *, .cx-app { animation: none !important; } }
@media (max-width: 860px) {
  .cx-app__body { grid-template-columns: minmax(0, 1fr); height: 480px; }
  .cx-app__side { display: none; }
  .cx-app__thread { padding: 18px 16px 8px; font-size: 14px; }
  .cx-app__composer { margin: 6px 12px 12px; }
  .cx-app__title { display: none; }
}
/* The tools' colours: each chip, tab and heading takes its tool's colour (--brand); a tool whose owner does not
   allow its mark shows a dot in that colour instead (BrandMark). */
.cx-brand--claude, .cx-brand--claudecode { --brand: #d97757; }
.cx-brand--chatgpt { --brand: #10a37f; }
.cx-brand--googlegemini { --brand: #8e75b2; }
.cx-brand--cursor, .cx-brand--modelcontextprotocol { --brand: #14161f; }
.cx-brand--mistralai { --brand: #fa520f; }
.cx-brand--vscode { --brand: #007acc; }
.brandmark { flex: none; display: block; }
.cx-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand, var(--iris)); }
.cx-hero .cx-chips:first-of-type { gap: 10px; margin-top: 30px; }
.cx-chip--brand { gap: 8px; padding: 8px 14px 8px 10px; border-color: color-mix(in srgb, var(--brand) 35%, #fff); background: color-mix(in srgb, var(--brand) 9%, #fff); font-size: 14.5px; }
.cx-tabs [role="tab"][class*="cx-brand--"] { display: inline-flex; align-items: center; gap: 8px; }
.cx-tabs [role="tab"][class*="cx-brand--"][aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brand); color: var(--ink); }
.cx-panel__head--brand { align-items: center; }
.cx-panel__head--brand .cx-dot { width: 18px; height: 18px; }
.cx-panel[class*="cx-brand--"] .cx-steps li::before { background: var(--brand); }
@media (max-width: 720px) {
  .cx-url, .cx-clients, .cx-can { margin-inline: 16px; }
  .cx-hero .cx-url { margin-inline: 0; }
  .cx-what-is, .cx-apps { margin-inline: 16px; }
  .cx-use { padding: 24px 12px; }
  .cx-panel { padding: 22px 18px; }
  .cx-url__row, .cx-code { flex-direction: column; align-items: stretch; }
  .cx-url__value { flex: none; font-size: 14px; }
  .cx-tabs [role="tab"] { flex: 1 1 auto; padding: 12px 14px; }
}

/* Client kit: the line the kit stands on, set as a highlighted phrase on the page like a marked-up document. */
.kit-principle { max-width: 34em; margin: 20px auto 0; text-align: center; font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; line-height: 1.6; color: var(--ink); }
.kit-principle mark { padding: .08em .3em; background: var(--lavender); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* The answer as a marked-up document: the finding sits on the lavender highlighter, its source is a superscript number
   (counted in CSS, so the server-rendered list and the one the demo script types read the same). */
.cx-chat__answer li, .cx-msg--ai li { counter-increment: cx-src; }
.cx-chat__answer li > span, .cx-msg--ai li > span { background: linear-gradient(transparent 42%, var(--lavender) 42%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cx-chat__answer li > span::after, .cx-msg--ai li > span::after { content: counter(cx-src); margin-left: 2px; font-size: .72em; font-weight: 700; line-height: 0; vertical-align: super; color: var(--iris); }
.cx-chat__answer li small, .cx-msg--ai li small { display: flex; width: fit-content; }

/* The marketing site's design (B4 identity, 17 November 2026): a white page, ink headings in Archivo (narrow and dense),
   indigo (#4433ff) only for links and the primary action, lavender (#d6d1ff) only as a highlighter, one 6px radius, no
   decorative shadow. The scope keeps its historical name, body.is-violet, which the marketing pages set, so the app and
   the participant pages keep their own rules. Each page opens on a calm hero on the page colour; the body is css/frame.css
   restyled: soft cards, indigo for the primary action and a hairline white button for the second. */

/* ---------- Tokens. The --vi-* names stay (css/home.css and css/resources.css read them); their values are B4. */
body.is-violet {
  --vi-night: #4433ff;   /* the indigo band (the best plan, the Deep Study panel) */
  --vi-ink: #14161f;
  --vi-deep: #3424d6;
  --vi-violet: #4433ff;  /* the accent: indigo */
  --vi-lavender: #d6d1ff;
  --vi-lilac: #efedff;
  --vi-mist: #f6f6f9;
  --vi-lime: #d6d1ff;
  --vi-muted: #4f5462;   /* 6.2:1 on the page */
  --vi-display: "Archivo", system-ui, sans-serif;
  --vi-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: var(--vi-body);
  --serif: var(--vi-display);
  --vi-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --vi-neutral: #f6f6f9; /* the soft card: most of the body sits on it */
  --vi-card-shadow: 0 1px 2px rgba(36, 28, 150, .04), 0 26px 56px -36px rgba(36, 28, 150, .3);
  /* The frame's tokens (css/frame.css): indigo for the primary action, cool greys for the soft surfaces. */
  --iris: #4433ff;
  --iris-hover: #3424d6;
  --iris-soft: #efedff;
  --focus: #4433ff;
  --fr-rule: #e7e9f0;
  --fr-rule-2: #d9dce5;
  --fr-cross: rgba(36, 28, 150, .4);
  --fr-soft: #f6f6f9;
  --fr-soft-2: #e7e9f0;
  --fr-tone: #676c7c;    /* the second tone of a heading: large type only */
  --fr-deep: #4433ff;
  --tint-why: #f1f0fb;      --tint-why-2: #f6f6f9;      --tint-why-on: #4433ff;
  --tint-show: #f1f0fb;     --tint-show-2: #f6f6f9;     --tint-show-on: #4433ff;
  --tint-deep: #f1f0fb;     --tint-deep-2: #f6f6f9;     --tint-deep-on: #4433ff;
  --tint-findings: #f1f0fb; --tint-findings-2: #f6f6f9; --tint-findings-on: #4433ff;
  --tint-confirm: #f1f0fb;  --tint-confirm-2: #f6f6f9;  --tint-confirm-on: #4433ff;
  background: var(--page);
}
body.is-violet .screen { padding-bottom: 0; }
::selection { background: #d6d1ff; color: #4433ff; }

/* ---------- Header: on the page colour, quiet links, Sign in outlined, the one action in indigo. It frosts once the page
   scrolls (site.js adds .is-scrolled past 8px). Each hero is pulled up under it by --vi-top and pads that back. */
body.is-violet { --vi-top: 74px; }
.is-violet .site-top { background: transparent; }
.is-violet .site-top.is-scrolled { background: rgba(251, 251, 248, .88); box-shadow: none; }
.is-violet .screen > .topbar { position: relative; z-index: 2; }
.is-violet .nav a, .is-violet .nav button { border-radius: 6px; font-size: 14.5px; color: var(--muted); }
.is-violet .nav a[aria-current="page"]:not(.nav__dark, .nav__line) { background: #f1f0fb; color: #4433ff; }
.is-violet .nav a:hover { background: rgba(36, 28, 150, .05); color: var(--ink); }
.is-violet .nav .nav__line { margin-left: 6px; padding: 9px 14px; border-radius: 6px; box-shadow: none; color: #4433ff; }
.is-violet .nav .nav__line:hover { box-shadow: none; background: #fff; color: #4433ff; }
.is-violet .nav .nav__dark { margin-left: 6px; padding: 9px 16px; border-radius: 6px; background: #4433ff; color: #fff; }
.is-violet .nav .nav__dark:hover { background: #3424d6; color: #fff; }

/* ---------- Buttons: the primary action in indigo, the second a white button on a hairline. Lavender never carries text. */
.is-violet .btn--primary, .is-violet .btn--dark, .is-violet .lx-use { background: #4433ff; color: #fff; }
.is-violet .btn--primary:hover, .is-violet .btn--dark:hover, .is-violet .lx-use:hover { background: #3424d6; color: #fff; }
.is-violet .btn--ghost { background: #fff; color: #4433ff; box-shadow: none; }
.is-violet .btn--ghost:hover { background: #f6f6f9; color: #4433ff; box-shadow: none; }

/* ---------- A page's hero: calm, on the page colour. The heading in ink, the lead in muted text,
   then what the page puts under it (its in-page links, its figures, a card). No gradient, no moving light. */
.is-violet .thero { margin: calc(-1 * var(--vi-top)) 0 0; padding: calc(80px + var(--vi-top)) 24px 72px; border-radius: 0; color: var(--ink); background: var(--page); }
.is-violet .thero::after { content: none; }
.is-violet .thero .trust__title, .is-violet .thero h1 { max-width: 15em; font: 800 clamp(40px, 5.6vw, 72px)/1.02 var(--vi-display); font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); }
.is-violet .thero .trust__sub { max-width: 34em; margin-top: 22px; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.55; color: var(--muted); }
.is-violet .thero > .kicker { margin-bottom: 18px; font: 500 12px/1.4 var(--sans); color: var(--muted); }
.is-violet .thero .tq-nav { margin-top: 32px; gap: 8px; }
.is-violet .thero .tq-nav a { padding: 7px 15px 7px 7px; border: 1px solid #e7e9f0; border-radius: 6px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink); font: 500 14.5px/1.3 var(--vi-body); }
.is-violet .thero .tq-nav a:hover { border-color: #4433ff; background: #fff; }
.is-violet .thero .tq-nav b { background: #4433ff; color: #d6d1ff; font: 600 13px/1 var(--vi-body); }
.is-violet .thero .hstats { margin-top: 36px; border: 1px solid #e7e9f0; border-radius: 6px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.is-violet .thero .hstats div + div { border-color: #e7e9f0; }
.is-violet .thero .hstats dt { font: 800 25px/1.1 var(--vi-display); font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); }
.is-violet .thero .hstats dd { color: var(--muted); }
.is-violet .thero__badges { border: 1px solid #e7e9f0; border-radius: 6px; box-shadow: none; }
.is-violet .thero__zero { background: #4433ff; color: #d6d1ff; font: 800 26px/1 var(--vi-display); font-stretch: 74%; }
/* Pricing: the plans rise over the hero's foot (public.css pulls them up by 84px). */
.is-violet .phero { padding-bottom: 156px; }
/* A document (privacy, terms, the resources): a shorter hero. */
.is-violet .thero--doc { padding: calc(64px + var(--vi-top)) 24px 40px; }
.is-violet .thero--doc .trust__title { max-width: 16em; font-size: clamp(38px, 4.6vw, 60px); }
/* Sign in: the white card on the page, centred in the first screen. */
.is-violet .thero--auth { min-height: max(620px, calc(100svh - 120px)); padding: calc(48px + var(--vi-top)) 20px 72px; }
.is-violet .auth-card { border: 1px solid #e7e9f0; border-radius: 6px; box-shadow: none; }
.is-violet .auth-card h1 { max-width: none; font: 800 clamp(30px, 3vw, 36px)/1.08 var(--vi-display); font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); }
.is-violet .auth-card .kicker { font: 500 12px/1.4 var(--sans); color: var(--muted); }
.is-violet .auth-card .round-icon { border-radius: 6px; background: none; color: #4433ff; }
.is-violet .auth-card .round-icon img { width: 44px; height: 44px; }
.is-violet .auth-card .input { border-radius: 6px; }
.is-violet .auth-card .input:focus { border-color: #4433ff; box-shadow: none; }
.is-violet .auth-card .btn { border-radius: 6px; }

/* ---------- The body without its rules: the frame's structure, in the same order, but no frame lines, no ruled bars or
   crosshairs, no ruled grids, and no labels above the headings. Sections are told apart by space; what sat in ruled
   boxes sits on soft, rounded cards. Styles only: the markup is the frame's. */
.is-violet .fr-frame { border-inline: 0; }
.is-violet .fr-section { padding-bottom: 24px; }
.is-violet .fr-bar { display: none; }
.is-violet .fr-bar + .fr-head, .is-violet .fr-bar + .fr-faq, .is-violet .fr-bar + .fr-doc { padding-top: 104px; }
.is-violet .thero + .fr-frame { padding-top: 0; }
.is-violet .thero + .fr-frame > .fr-section:first-child > .fr-bar + *, .is-violet .thero + .fr-frame > .fr-bar:first-child + * { padding-top: 40px; }

/* Headings in ink, the second half in a quiet grey. */
.is-violet .fr-title, .is-violet .fr-head h2 { font-family: var(--vi-display); font-weight: 800; font-stretch: 74%; letter-spacing: -.004em; line-height: 1.06; color: var(--ink); }
.is-violet .fr-step__title, .is-violet .fr-aud__card h3 { font-family: var(--vi-display); font-weight: 800; font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); }
.is-violet .fr-stats b { font-family: var(--vi-display); font-weight: 800; font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); }
.is-violet .fr-finding__answer, .is-violet .fr-card__quote { font-family: var(--vi-display); font-weight: 800; font-stretch: 74%; letter-spacing: -.004em; }
.is-violet .fr-finding__quote { font-family: var(--vi-body); font-style: normal; }

.is-violet .fr-title span, .is-violet .fr-head h2 span { display: block; }
.is-violet .fr-head h2 { max-width: 17em; }
.is-violet .fr-head--split { align-items: flex-end; }
.is-violet .fr-head--split h2 { max-width: 15em; }
.is-violet .fr-head--split p { max-width: 24em; font-size: 17px; }
.is-violet .fr-frame p, .is-violet .fr-frame dd, .is-violet .fr-frame li { text-wrap: pretty; }
.is-violet .fr-frame h3, .is-violet .fr-step__text p, .is-violet .fr-head p, .is-violet .fr-aud__card p, .is-violet .fr-fact p { text-wrap: balance; }
.is-violet .fr-step__text p { max-width: 26em; margin-top: 2px; font-size: 16.5px; line-height: 1.5; }
.is-violet .fr-step__n { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 6px; background: #fff; font-size: 12px; color: #4433ff; }
.is-violet .fr-step__title { margin: 14px 0 10px; }
.is-violet .fr-ticks { gap: 12px; margin-top: 24px; font-size: 15px; }
.is-violet .fr-ticks li { gap: 12px; align-items: center; }
.is-violet .fr-ticks svg { margin-top: 0; background: #fff; color: #4433ff; }
.is-violet .fr-fact h3 { margin-top: 26px; font: 700 21px/1.2 var(--vi-display); font-stretch: 85%; letter-spacing: -.002em; color: var(--ink); }
.is-violet .fr-stats { gap: 24px 48px; }
.is-violet .fr-stats div { align-items: center; padding: 0; }
.is-violet .fr-stats span { max-width: 11em; font-size: 16px; line-height: 1.35; color: var(--ink); }
.is-violet .fr-faq { gap: 56px; }
.is-violet .fr-faq dl { gap: 12px; }
.is-violet .fr-faq dl div { padding: 22px 24px 24px; border: 1px solid #e7e9f0; border-radius: 6px; background: #fff; }
.is-violet .fr-faq dt { font: 700 18.5px/1.3 var(--vi-display); font-stretch: 85%; letter-spacing: -.002em; color: var(--ink); }
.is-violet .fr-faq dd { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.is-violet .fr-aud__card h3 { font-size: 24px; }

/* The steps (how it works): each on a soft card, the text on the left and its mock-up on a white inset on the right. */
.is-violet .fr-steps { gap: 16px; }
.is-violet .fr-step { padding: 10px; border: 0; border-radius: 6px; background: var(--vi-neutral); }
.is-violet .fr-step__mock { border: 1px solid #e7e9f0; border-radius: 6px; background: radial-gradient(circle at 1px 1px, #e7e9f0 1px, transparent 1.4px) 0 0 / 16px 16px, #fff; }

/* Deep Study (how it works): the panel on a soft card, the network on its indigo inset, the numbers as pills. */
.is-violet .fr-panel { padding: 10px; border: 0; border-radius: 6px; background: var(--vi-neutral); }
.is-violet .fr-panel__media { border-radius: 6px; background: radial-gradient(80% 80% at 50% 40%, #3424d6, #4433ff); }
.is-violet .fr-numbered li { border-top-color: #e7e9f0; }
.is-violet .fr-numbered li::before { justify-self: start; height: fit-content; padding: 3px 9px; border-radius: 6px; background: #4433ff; font-size: 12px; line-height: 1.5; color: #fff; }
.is-violet .fr-numbered h3 { font: 700 18.5px/1.3 var(--vi-display); font-stretch: 85%; letter-spacing: -.002em; color: var(--ink); }
.is-violet .fr-rules .fr-fact { background: var(--vi-neutral); }

/* Trust's pictures, rounded: the cards, the tag as a pill, the retention bar as a rounded track. */
.is-violet .fr-step__mock .tv__bubble, .is-violet .fr-step__mock .wall2__card, .is-violet .fr-life { border-color: #e7e9f0; border-radius: 6px; box-shadow: none; }
.is-violet .fr-step__mock .tv__tag { border-radius: 6px; background: #4433ff; }
.is-violet .fr-step__mock .tv__icon { border-radius: 6px; }
.is-violet .fr-step__mock .checks__zero { border-radius: 50%; }
.is-violet .fr-life .life__bar, .is-violet .fr-life .life__fill--plain, .is-violet .fr-life .life__mark { border-radius: 6px; }
.is-violet .fr-life .life__note { border-top-color: #e7e9f0; }

/* Pricing: the plans on separate cards, the best one on an indigo band with its ribbon in lavender (ink type on lavender); prices
   in Archivo; a plan that cannot be chosen yet reads as disabled. */
.is-violet .fr-frame .pcards { gap: 16px; border: 0; background: none; box-shadow: none; }
.is-violet .fr-frame .pcards .pc { border: 1px solid #e7e9f0; border-radius: 6px; background: #fff; box-shadow: none; }
.is-violet .fr-frame .pcards .pc--best { border-color: #4433ff; background: #4433ff; }
/* The ribbon straddles the top edge of the best plan, so a long label (French) never covers the plan's name. */
.is-violet .fr-frame .pc__ribbon { top: -11px; right: 20px; max-width: calc(100% - 40px); padding: 4px 10px; border-radius: 6px; background: #d6d1ff; color: #4433ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-violet .fr-frame .pc h2 { color: var(--muted); }
.is-violet .fr-frame .pc--best h2 { color: rgba(255, 255, 255, .78); }
.is-violet .pc__price { font: 800 48px/1 var(--vi-display); font-stretch: 74%; letter-spacing: -.004em; }
.is-violet .fr-frame .pc__unit { border-radius: 6px; background: var(--vi-neutral); color: var(--ink); }
.is-violet .fr-frame .pc--best .pc__unit { background: rgba(255, 255, 255, .12); color: #fff; }
.is-violet .fr-frame .pc__save { color: #d6d1ff; }
.is-violet .fr-frame .pc__save--light { color: var(--muted); }
.is-violet .pc--best .btn--primary { background: #fff; color: #4433ff; }
.is-violet .pc--best .btn--primary:hover { background: #efedff; color: #4433ff; }
.is-violet .btn[aria-disabled="true"], .is-violet .btn[aria-disabled="true"]:hover { background: var(--fr-soft); color: var(--muted); box-shadow: none; cursor: default; }
.is-violet .pc--best .btn[aria-disabled="true"], .is-violet .pc--best .btn[aria-disabled="true"]:hover { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); }
.is-violet .fr-frame .cmp__wrap { border: 0; border-radius: 6px; background: #fff; box-shadow: none; }
.is-violet .fr-frame .cmp__table th, .is-violet .fr-frame .cmp__table td { border-bottom-color: #e7e9f0; }
.is-violet .fr-frame .cmp__table tbody tr:nth-child(2) td { font: 700 21px/1 var(--vi-display); font-stretch: 85%; letter-spacing: -.002em; }
.is-violet .fr-frame .cmp__table tbody tr:nth-child(2) td.is-best { color: #4433ff; }
.is-violet .fr-frame .cmp__table thead th em { color: #4433ff; }
.is-violet .fr-frame .cmp__yes { border-radius: 50%; background: #4433ff; color: #d6d1ff; }
.is-violet .fr-frame .vol__chart { border: 0; border-radius: 6px; background: var(--vi-neutral); }
.is-violet .fr-frame .vol__row { border-radius: 6px; }
.is-violet .vol__val b { font: 800 25px/1 var(--vi-display); font-stretch: 74%; letter-spacing: -.004em; }
.is-violet .vol__name em { color: #4433ff; }
.is-violet .fr-frame .vol__tip { border-radius: 6px; background: #4433ff; }

/* What every plan includes (pricing): soft rounded tiles instead of a ruled grid, the icon on white. */
.is-violet .fr-tiles { gap: 12px; border: 0; background: none; }
.is-violet .fr-tile { border: 0; border-radius: 6px; background: var(--vi-neutral); }
.is-violet .fr-tile .fr-icon { border-radius: 6px; background: #fff; color: #4433ff; }
.is-violet .fr-tile h3 { font: 700 18px/1.3 var(--vi-display); font-stretch: 85%; letter-spacing: -.002em; color: var(--ink); }
/* Seven tiles or more (security's nine): rows of three, so a condensed title is never squeezed into a ninth of the width. */
@media (min-width: 1081px) { .is-violet .fr-tiles:has(> :nth-child(7)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A document (privacy, terms): ink headings, the numbers as pills, hairlines between the sections. */
.is-violet .fr-doc section { border-bottom-color: #e7e9f0; }
.is-violet .fr-doc h2 { font: 800 24px/1.2 var(--vi-display); font-stretch: 74%; letter-spacing: -.004em; color: var(--ink); }
.is-violet .fr-doc h2::before { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px; background: var(--vi-neutral); color: #4433ff; }
.is-violet .fr-doc a { color: #4433ff; text-decoration-color: #a9a3f0; }

/* Who it is for, and the trust facts: separate rounded cards instead of ruled grids. */
.is-violet .fr-aud { gap: 16px; border: 0; }
.is-violet .fr-aud .fr-aud__card { overflow: hidden; border: 1px solid #e7e9f0; border-radius: 6px; background: #fff; box-shadow: none; }
.is-violet .fr-facts { gap: 16px; border: 0; background: none; box-shadow: none; }
.is-violet .fr-facts .fr-fact { border: 0; border-radius: 6px; }
.is-violet .fr-fact .fr-icon { border: 0; border-radius: 6px; background: #fff; color: #4433ff; }
.is-violet .fr-never { border: 0; border-radius: 6px; background: var(--fr-soft); }
.is-violet .fr-stats div + div { border-left: 0; }
.is-violet .footer { border: 0; }

/* The mock-ups, rounded to match. */
.is-violet .fr-card { overflow: hidden; border-color: #e7e9f0; border-radius: 6px; box-shadow: none; }
.is-violet .fr-bubble { border-color: #e7e9f0; border-radius: 6px; box-shadow: none; }
.is-violet .fr-icon { border: 0; border-radius: 6px; }
.is-violet .fr-avatar { border-radius: 50%; }
.is-violet .fr-tag, .is-violet .fr-mini-btn { border-radius: 6px; }
.is-violet .fr-chips span { border-radius: 6px; }
.is-violet .fr-finding__meter { border: 0; border-radius: 6px; }

/* A page's closing (how it works, pricing): the heading and its actions on one soft card. */
.is-violet .fr-closing { margin: 72px 32px 96px; padding: 88px 24px 96px; border: 0; border-radius: 6px; background: var(--vi-neutral); }

/* ---------- Narrower screens */
@media (max-width: 720px) {
  body.is-violet { --vi-top: 70px; }
  .is-violet .thero { padding: calc(44px + var(--vi-top)) 16px 48px; }
  .is-violet .thero .trust__title, .is-violet .thero h1 { font-size: clamp(34px, 9.8vw, 48px); line-height: 1.04; }
  .is-violet .phero { padding-bottom: 120px; }
  .is-violet .thero--doc { padding: calc(36px + var(--vi-top)) 16px 24px; }
  .is-violet .thero--doc .trust__title { font-size: clamp(32px, 9vw, 44px); }
  .is-violet .thero--auth { min-height: 0; padding: calc(28px + var(--vi-top)) 12px 56px; }
  .is-violet .fr-bar + .fr-head, .is-violet .fr-bar + .fr-faq, .is-violet .fr-bar + .fr-doc { padding-top: 72px; }
  .is-violet .thero + .fr-frame > .fr-section:first-child > .fr-bar + *, .is-violet .thero + .fr-frame > .fr-bar:first-child + * { padding-top: 28px; }
  .is-violet .fr-step { padding: 8px; border-radius: 6px; }
  .is-violet .fr-step__mock { border-radius: 6px; }
  .is-violet .fr-closing { margin: 48px 12px 64px; padding: 64px 18px 72px; border-radius: 6px; }
}

/* Study creation: topics, invitations. */
/* ---------- Topics / Invitations (two columns) ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; max-width: 1180px; margin: 0 auto; padding: 52px 32px 40px; }
.ask { padding: 22px 24px; border-radius: 22px; background: var(--haze); }
.ask__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.ask__text { margin: 8px 0 0; font: 500 28px/1.35 var(--serif); }
.flow h1 { margin: 44px 0 0; font: 500 clamp(36px, 4.4vw, 52px)/1.04 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.flow h1:first-child { margin-top: 0; }
.meta { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.meta strong { color: var(--ink); font-weight: 600; }
.group { margin-top: 40px; }
.group__detail { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.topic { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 6px 6px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, background .15s; }
.topic:hover { border-color: #b8bccb; }
.topic:focus-within { border-color: var(--iris); }
.topic input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.topic__x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); }
.topic__x:hover { background: var(--haze); color: var(--danger); }
.topic.is-off { background: var(--haze-2); border-style: dashed; }
.topic.is-off input { color: #666b7a; text-decoration: line-through; }
.topic__undo { flex: none; padding: 0 14px; height: 40px; border: 0; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; }
.add { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 10px 2px; border: 0; background: none; font-weight: 600; font-size: 16px; color: var(--iris); }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.actions__main { display: flex; flex-wrap: wrap; gap: 10px; }
.reassure { margin: 14px 0 0; text-align: right; font-size: 14px; color: var(--muted); }
.aside { position: sticky; top: 24px; align-self: start; padding: 30px 28px 28px; border-radius: 28px; background: var(--ink); color: #fff; }
.aside h2 { margin: 0; font: 500 28px/1.15 var(--serif); }
.aside ol { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: n; }
.aside li { position: relative; padding: 0 0 18px 40px; counter-increment: n; font-size: 16px; color: rgba(255,255,255,.75); }
.aside li::before { content: counter(n); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-3); color: #fff; font-size: 12px; font-weight: 600; }
.aside li strong { display: block; color: #fff; font-weight: 500; }
.aside__lock { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--ink-2); font-size: 14px; }
.aside__lock svg { flex: none; color: var(--iris-on-dark); margin-top: 2px; }
.aside__label { margin: 24px 0 10px; font-size: 14px; color: rgba(255,255,255,.62); }
.aside__msg { display: flex; gap: 12px; }
.aside__msg .mark-dot { background: var(--iris); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.aside__body { padding: 13px 16px; border-radius: 18px; border-top-left-radius: 6px; background: var(--ink-2); font-size: 16px; line-height: 1.45; }
.mail { margin-top: 4px; padding: 18px; border-radius: 18px; background: #fff; color: var(--ink); font-size: 14px; }
.mail__from { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mail__from small { display: block; color: var(--muted); }
.mail h3 { margin: 14px 0 6px; font: 500 20px/1.2 var(--serif); }
.mail p { margin: 0 0 12px; color: var(--muted); }
.mail .btn { min-height: 40px; font-size: 14px; }

.recap { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px 22px; border-radius: 20px; background: var(--haze); }
.recap small { color: var(--muted); font-size: 14px; }
.recap p { margin: 4px 0 0; font: 500 20px/1.35 var(--serif); }
.emails { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1.5px solid var(--line-2); border-radius: 18px; background: #fff; }
.emails:focus-within { border-color: var(--iris); box-shadow: 0 0 0 4px rgba(36, 28, 150,.15); }
.emails input { flex: 1; min-width: 180px; min-height: 36px; padding: 0 8px; border: 0; outline: 0; font-size: 16px; } /* 16px: iOS Safari zooms into a smaller field on focus */
.email-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--haze); font-size: 14px; }
.email-chip button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.email-chip button:hover { background: var(--line); color: var(--ink); }
.emails__count { margin-left: auto; padding: 0 8px; font-size: 14px; color: var(--muted); }
.depth { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin: 10px 0 0; padding: 0; border: 0; }
.depth legend { margin-bottom: 10px; padding: 0; font-weight: 500; font-size: 16px; }
.depth label { display: block; padding: 20px; border: 1.5px solid var(--line); border-radius: 20px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.depth label:has(input:checked) { border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-soft); }
.depth input { accent-color: var(--iris); width: 18px; height: 18px; margin: 0 0 12px; }
.depth strong { display: block; font-weight: 600; }
.depth small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.depth ol { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 14px; color: var(--muted); }
.depth ol b { color: var(--ink); font-weight: 500; }

/* Topics page: a numbered path, a sticky bar, a phone preview */
.tflow { display: block; max-width: 820px; padding-bottom: 0; }
.tflow__note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0 60px; font-size: 14px; color: var(--muted); }
.tflow__note svg { color: var(--iris); }
.tflow__ask { padding: 16px 20px; border-radius: 18px; }
.tflow__ask .ask__text { font-size: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tflow h1 { margin-top: 36px; }
.tflow__lead { margin: 14px 0 0; max-width: 36em; font-size: 16px; color: var(--muted); }
.tpath { position: relative; margin-top: 36px; counter-reset: tg; }
.tpath::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, var(--iris), var(--iris-soft)); }
.tpath .group { position: relative; margin: 0 0 18px; padding-left: 60px; counter-increment: tg; }
.tpath .group::before { content: counter(tg); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--iris); color: #fff; font: 600 16px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; box-shadow: 0 0 0 6px var(--paper); }
.tpath .group { padding-top: 0; }
.tpath .group > .group__head, .tpath .group > .topic { margin-left: 0; }
.tpath .group { display: grid; gap: 6px; }
.tpath .group__head { padding: 14px 0 8px; }
.tpath .group__head h2 { margin: 0; font-size: 20px; }
.tpath .group__detail { margin: 3px 0 0; }
.tpath .topic { margin: 0; padding: 4px 4px 4px 16px; border: 0; border-radius: 14px; background: var(--haze-2); }
.tpath .topic:hover { background: var(--haze); }
.tpath .topic:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--iris); }
.tpath .topic.is-off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tpath .topic textarea { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font: 400 16px/1.4 var(--sans); color: var(--ink); resize: none; field-sizing: content; }
.tpath .topic.is-off textarea { color: #666b7a; text-decoration: line-through; }
.tadd { display: flex; align-items: center; gap: 10px; width: calc(100% - 60px); margin: 4px 0 0 60px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: none; font-weight: 600; font-size: 16px; color: var(--iris); cursor: pointer; }
.tadd:hover { border-color: var(--iris); background: var(--iris-soft); }
.tmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 28px 0 0; font-size: 16px; line-height: 1.3; }
.tmeta span { font-size: 14px; color: var(--muted); }
.tmeta span::before { content: "·"; margin-right: 10px; }
/* The form's default button for implicit submission (Enter in a field): out of sight, out of the tab order. */
.tdefault { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .tpath::before { left: 15px; }
  .tpath .group { padding-left: 44px; }
  .tpath .group::before { width: 32px; height: 32px; top: 14px; font-size: 14px; }
  .tadd { width: calc(100% - 44px); margin-left: 44px; }
  .tflow__note { margin-left: 44px; }
  .tmeta { margin-top: 24px; }
}
/* Invite page: the people first, settings folded into one-line summaries */
.iflow .meta { margin-top: 12px; }
.sets { margin-top: 36px; border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; }
.sets h2 { margin: 0; padding: 16px 20px 12px; font: 600 16px/1.3 var(--sans); color: var(--muted); }
.set { border-top: 1px solid var(--line); }
.set summary { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; padding: 15px 20px; cursor: pointer; list-style: none; }
.set summary::-webkit-details-marker { display: none; }
.set summary:hover { background: var(--haze-2); }
.set__name { font-weight: 500; }
.set__val { color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set__edit { font-size: 14px; font-weight: 500; color: var(--iris); }
.set__chev { color: var(--muted); transition: transform .15s; }
.set[open] .set__chev { transform: rotate(180deg); }
.set[open] .set__edit { visibility: hidden; }
.set__body { display: grid; gap: 10px; padding: 4px 20px 20px; }
.set__body .help { margin: 0; }
.iflow__terms { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .set summary { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 4px 10px; padding: 14px 16px; }
  .set__val { grid-column: 1; grid-row: 2; white-space: normal; }
  .set__edit { grid-row: 1 / span 2; grid-column: 2; }
  .set__chev { grid-row: 1 / span 2; grid-column: 3; }
  .set__body { padding: 4px 16px 18px; }
}
/* Invite page, second pass */
.iflow { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-bottom: 0; }
.email-chip { padding-left: 4px; }
.email-chip__av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--iris); color: #fff; font-size: 12px; font-weight: 600; }
.iquota { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.iquota__dom { margin: 0; }
.iquota__dom strong { color: var(--ink); font-weight: 500; }
.iquota__meter { display: flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }
.iquota__meter i { display: block; width: 90px; height: 6px; border-radius: 999px; background: var(--haze); overflow: hidden; }
.iquota__meter b { display: block; height: 100%; border-radius: 999px; background: var(--iris); }
.iconfirm { margin-top: 36px; }
.iconfirm h2 { margin: 0 0 10px; font: 600 16px/1.3 var(--sans); }
.iprev { position: sticky; top: 24px; align-self: start; padding: 24px; border-radius: 28px; background: var(--haze); }
.iprev h2 { margin: 0 0 16px; font: 500 28px/1.15 var(--serif); }
.iprev .mail { box-shadow: 0 20px 44px -28px rgba(20, 22, 31,.4); }
.iprev__label { margin: 22px 0 10px; font-size: 14px; color: var(--muted); }
.iprev__photo { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.iprev__photo img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; }
.iprev__photo span { display: grid; gap: 2px; color: var(--iris); }
.iprev__photo strong { color: var(--ink); font-weight: 500; font-size: 14px; }
@media (max-width: 960px) {
  .iflow { grid-template-columns: 1fr; }
  .iprev { position: static; margin-bottom: 32px; }
}
@media (max-width: 720px) {
  .iquota { flex-wrap: wrap; gap: 6px; }
  .iquota__meter { margin-left: 0; }
}
/* Invite page states (mockup switch) */
#inv-form[data-state="new"] .only-pro, #inv-form[data-state="pro"] .only-new { display: none !important; }
.mstate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: fit-content; margin: 0 0 28px; padding: 6px 6px 6px 14px; border: 1.5px dashed #d4a72c; border-radius: 999px; background: #fff8e6; font-size: 14px; color: #6b5200; }
.mstate button { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; font: 500 13px var(--sans); color: #6b5200; cursor: pointer; }
.mstate button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--ink); }
.iabout { margin-top: 32px; }
.iabout h2 { margin: 0 0 10px; font: 600 16px/1.3 var(--sans); }
.sets__fact { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--haze-2); font-size: 14px; color: var(--muted); }
.sets__fact svg { flex: none; margin-top: 2px; color: var(--iris); }

/* ---------- Production additions: topics ---------- */
.ask__head label { font-size: 14px; color: var(--muted); }
.ask__field { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font: 500 20px/1.4 var(--serif); resize: none; field-sizing: content; }
.ask__field:focus { outline: 0; border-color: var(--iris); box-shadow: 0 0 0 4px rgba(36, 28, 150,.15); }
.ask__actions { margin-top: 10px; }
.ask__actions[hidden], .ask__field[hidden] { display: none; }
.ask__actions .btn svg { display: inline; }
.topic__toggle { flex: none; display: flex; align-items: center; cursor: pointer; }
.topic__toggle .topic__undo, .topic__state { display: none; }
.topic__state { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--haze); font-size: 12px; font-weight: 600; color: var(--muted); }
.topic.is-off .topic__state, .topic:has(input[data-topic-keep]:not(:checked)) .topic__state { display: inline-block; }
.topic.is-off .topic__undo, .topic:has(input[data-topic-keep]:not(:checked)) .topic__undo { display: inline-flex; align-items: center; }
.topic.is-off .topic__x, .topic:has(input[data-topic-keep]:not(:checked)) .topic__x { display: none; }
.tpath .topic:has(input[data-topic-keep]:not(:checked)) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tpath .topic:has(input[data-topic-keep]:not(:checked)) textarea { color: #666b7a; text-decoration: line-through; }
.topic__toggle:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; }
.topic__x svg, .tadd svg { display: inline; }
/* "Always covered" / "If time allows": a native select on its own line under the topic text, 44px tall and 16px
   text (no zoom on iOS), so it stays easy to tap at 390px. A removed topic hides it; its choice is kept. */
.tpath .topic { flex-wrap: wrap; }
.topic__cover { order: 3; flex: 0 0 100%; padding: 0 0 6px; }
.topic__select { max-width: 100%; min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362617a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; font: 500 16px/1.2 var(--sans); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.topic__select:hover { border-color: #b8bccb; }
.topic__select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.topic.is-off .topic__cover, .topic:has(input[data-topic-keep]:not(:checked)) .topic__cover { display: none; }
.tflow__cover { margin: 8px 0 0; max-width: 36em; font-size: 14px; color: var(--muted); }
.tmeta__warn { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.tmeta__warn[hidden] { display: none; }
.tadd--static { border-style: solid; color: var(--ink); }
.group[hidden] { display: none; }

/* ---------- Production additions: invitations ---------- */
.input--area { min-height: 110px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.emails[hidden] { display: none; }
.emails__chips { display: contents; }
.email-chip__avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.email-chip.is-invalid { background: var(--danger-soft); color: #7a2018; }
.set__chev { display: grid; place-items: center; color: var(--muted); transition: transform .15s; }
.set[open] .set__chev { transform: rotate(180deg); }
.region { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.region label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.region label:has(input:checked) { border-color: var(--iris); background: var(--iris-soft); }
.region input { margin-top: 3px; accent-color: var(--iris); }
.region span { display: grid; gap: 2px; }
.region small { font-size: 14px; color: var(--muted); }
.field-error { margin: 8px 0 0; font-size: 14px; color: var(--danger); }
.iquota meter.bar--small { width: 90px; height: 6px; }
.iquota meter.bar--small::-webkit-meter-bar { height: 6px; }
.iflow form .notice { margin-top: 12px; }
@media (max-width: 720px) { .region { grid-template-columns: 1fr; } }
.namecard__row--flat { margin: 0; }
.field--flat { margin: 0; }
fieldset.keep { margin: 0; padding: 0; border: 0; }
.iabout .field { margin-top: 12px; }
.iabout .help { margin-top: 6px; }
@media (max-width: 720px) { .keep { grid-template-columns: 1fr 1fr; } }
/* Lot 2: the send step's interview language, five choices that wrap on narrow screens. */
.keep.keep--lang { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ========== The creation flow, finished (17 Nov 2026) ==========
   Each step reads in one look: where you are (the stepper), what this step is (a serif title and one line), the one
   thing to fill in (a white surface with a clear border), and what happens next (the action bar, always at the bottom).
   Secondary information (settings already chosen, legends, consents) is smaller and greyer. Selectors start with
   main.flow so they outrank clarity.css and shell.css, which load after this file. */

/* ---------- Stepper: done = fir check, current = filled fir with an ink label, upcoming = muted ---------- */
.stepper { gap: 0; color: var(--muted); }
.stepper li { gap: 10px; font-weight: 500; }
.stepper li::before { width: 26px; height: 26px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--card-line); color: var(--muted); font-size: 12px; }
.stepper li + li { margin-left: 12px; }
.stepper li + li::after { width: 40px; height: 2px; margin-right: 12px; border-radius: 2px; background: var(--card-line); }
.stepper .is-done { color: var(--text-2); }
.stepper .is-done::before { content: ""; background: var(--iris) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.stepper .is-done + li::after { background: var(--iris); }
.stepper .is-current { color: var(--ink); font-weight: 600; }
.stepper .is-current::before { background: var(--iris); color: #fff; box-shadow: 0 0 0 4px rgba(36, 28, 150, .14); }

/* ---------- Step header: the title, one line of instruction ---------- */
main.flow h1 { margin: 6px 0 0; font: 500 28px/1.12 var(--serif); letter-spacing: -.02em; color: var(--ink); }
main.flow .tflow__lead, main.iflow form > .meta { max-width: 40em; margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* ---------- Guide step ---------- */
/* The question is context, not the task: a compact white strip under the title. */
main.flow .tflow__ask { margin-top: 24px; padding: 14px 18px 16px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--paper); box-shadow: var(--lift); }
main.flow .tflow__ask .ask__head, main.flow .tflow__ask .ask__head label { font-size: 14px; font-weight: 600; color: var(--text-2); }
main.flow .tflow__ask .ask__head .link { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--iris); }
main.flow .tflow__ask .ask__text { margin-top: 6px; font: 500 20px/1.4 var(--serif); color: var(--ink); -webkit-line-clamp: 3; }
main.flow .tflow__ask .ask__field { font: 500 20px/1.4 var(--serif); }
/* The count of topics and what the two coverage choices mean, on one band above the list. */
.tsum { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; margin-top: 32px; }
main.flow .tsum .tmeta { margin: 0; font-size: 16px; }
main.flow .tsum .tmeta strong { font-size: 16px; font-weight: 600; color: var(--ink); }
main.flow .tsum .tmeta span { font-size: 14px; color: var(--text-2); }
.tlegend { display: grid; gap: 3px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.tlegend div { display: flex; gap: 6px; }
.tlegend dt { flex: none; font-weight: 600; color: var(--text-2); }
.tlegend dt::after { content: "\00a0:"; }
html[lang="en"] .tlegend dt::after { content: ":"; }
.tlegend dd { margin: 0; }
main.flow .tmeta__warn { margin-top: 12px; }
main.flow .tpath { margin-top: 20px; }
main.flow .tpath .group { gap: 8px; margin-bottom: 22px; }
main.flow .tpath .group__head { padding-bottom: 4px; }
main.flow .tpath .topic { min-height: 54px; padding: 4px 6px 4px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--card-line), var(--lift); }
main.flow .tpath .topic:hover { box-shadow: inset 0 0 0 1px var(--field-line), var(--lift); }
main.flow .tpath .topic:focus-within { box-shadow: inset 0 0 0 1.5px var(--iris), 0 0 0 4px rgba(36, 28, 150, .1); }
main.flow .tpath .topic.is-off, main.flow .tpath .topic:has(input[data-topic-keep]:not(:checked)) { background: transparent; box-shadow: inset 0 0 0 1px var(--card-line); }
main.flow .tpath .topic__select { min-height: 36px; border-color: var(--card-line); background-color: var(--haze-2); font-size: 14px; color: var(--text-2); }
/* Adding a topic is an action, not a row: dashed, fir, with a filled plus. */
main.flow .tadd { justify-content: flex-start; width: 100%; min-height: 52px; margin: 0; padding: 0 16px; border: 1.5px dashed var(--field-line); border-radius: 12px; background: transparent; font-size: 16px; font-weight: 600; color: var(--iris); }
main.flow .tadd svg { display: block; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--iris); color: #fff; }
main.flow .tadd:hover { border-color: var(--iris); background: var(--iris-soft); }
main.flow .tflow__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
/* The context for the interviewer: optional, folded under the topics, a quiet card once opened. */
main.flow .tctx { margin-top: 18px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--paper); }
main.flow .tctx__head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--ink); }
main.flow .tctx__head::-webkit-details-marker { display: none; }
main.flow .tctx__head::before { content: ""; flex: none; align-self: center; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; }
main.flow .tctx[open] .tctx__head::before { transform: rotate(45deg); }
main.flow .tctx__optional { font-size: 14px; font-weight: 500; color: var(--muted); }
main.flow .tctx__body { display: grid; gap: 16px; padding: 0 16px 16px; }
main.flow .tctx__body .field { margin: 0; }
main.flow .tctx__lead { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--text-2); }
main.flow .tctx__lead svg { flex: none; margin-top: 2px; color: var(--iris); }
main.flow .tctx__label { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
main.flow .tctx__docs { margin: 0 0 8px; padding: 0; list-style: none; }
main.flow .tctx__docs .doc-row { align-items: center; }
main.flow .tctx__docs .doc-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
main.flow .tctx__docs .doc-row p { margin: 2px 0 0; }
main.flow .tctx__add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
main.flow .tctx__add .file { flex: 0 1 auto; width: auto; min-width: 0; margin-top: 0; }

/* ---------- People step ---------- */
/* The addresses are the task: a white card with the field inside. */
main.iflow .icard { margin-top: 28px; padding: 20px 20px 16px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--paper); box-shadow: var(--lift); }
main.iflow .icard > label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
main.iflow .icard .emails { min-height: 60px; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 10px; }
main.iflow .icard .emails:focus-within { border-color: var(--iris); box-shadow: 0 0 0 4px rgba(36, 28, 150, .12); }
main.iflow .icard .iquota { margin-top: 10px; }
main.iflow .iabout { margin-top: 16px; padding: 18px 20px 20px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--paper); box-shadow: var(--lift); }
main.iflow .iabout h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
main.iflow .iabout .field { margin-top: 10px; }
/* The invitation's subject and personal message (InvitationText): plain text, line breaks kept, as on the consent page. */
.itext__help { display: flex; justify-content: space-between; gap: 12px; }
.itext__count { flex: none; font-variant-numeric: tabular-nums; }
/* When the invitations leave and the response deadline: short fields, not full-width ones. */
.iwhen fieldset { margin: 0; padding: 0; border: 0; }
.iwhen legend { margin-bottom: 8px; }
.iwhen__later .input, .iwhen .iwhen__date { width: auto; max-width: 100%; justify-self: start; }
.iwhen__later[hidden] { display: none; }
.mail .mail__note { padding-left: 12px; border-left: 3px solid var(--iris-soft); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.mail h3 { overflow-wrap: anywhere; }
/* Settings already chosen, the owner's address and the consents: below the task, quieter. */
main.iflow .sets { margin-top: 32px; border: 1px solid var(--card-line); border-radius: 12px; background: transparent; }
main.iflow .sets h2 { padding: 12px 16px 10px; font-size: 14px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--text-2); }
main.iflow .set { border-top-color: var(--card-line); }
main.iflow .set summary { grid-template-columns: 170px minmax(0, 1fr) auto 16px; padding: 11px 16px; }
main.iflow .set summary:hover { background: rgba(255, 255, 255, .6); }
main.iflow .set[open] { background: var(--paper); }
main.iflow .set__name { font-size: 14px; font-weight: 500; color: var(--text-2); }
main.iflow .set__val { font-size: 14px; color: var(--muted); }
main.iflow .set__edit { font-size: 14px; color: var(--iris); }
main.iflow .sets__fact { padding: 11px 16px; background: transparent; font-size: 14px; }
main.iflow .iconfirm { margin-top: 28px; }
main.iflow .iconfirm h2 { font-size: 16px; }
main.iflow .iflow__terms { margin-top: 20px; }
main.iflow .iflow__terms .consent-check { margin-top: 10px; font-size: 14px; color: var(--text-2); }
main.iflow .iflow__terms .consent-check span, main.iflow .iflow__terms a { font-size: 14px; }
/* The preview reads as a preview: a quiet frame, a small label, the mail itself the only white surface. */
main.iflow .iprev { top: 80px; padding: 18px; border: 1px solid var(--card-line); border-radius: 16px; background: rgba(255, 255, 255, .35); box-shadow: none; }
.iprev__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--card-line); font-size: 14px; font-weight: 600; color: var(--text-2); }
main.iflow .iprev h2 { margin: 0 0 14px; font: 500 16px/1.35 var(--sans); color: var(--text-2); }
main.iflow .iprev .mail { border: 1px solid var(--card-line); box-shadow: var(--lift); }
main.iflow .iprev .mail h3 { font-size: 20px; }

/* ---------- The action bar ----------
   Sticky at the bottom of the window, as wide as the main column (its white band runs from the window's left edge to
   its right edge; the column clips it), and its content lines up
   with the form above. In the page's flow, so the end of the page is never hidden behind it. */
.app-col--flow, .screen:has(> main.flow) { overflow-x: clip; }
main.flow .tbar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px 16px; margin: 32px 0 0; padding: 14px 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); border: 0; background: none; }
main.flow .tbar::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; border-top: 1px solid var(--card-line); background: var(--paper); box-shadow: 0 -10px 24px -18px rgba(20, 22, 31, .28); }
main.flow .tbar .back { flex: none; margin-right: auto; padding: 10px 2px; font-size: 14px; color: var(--text-2); }
main.flow .tbar .back:hover { color: var(--ink); }
main.flow .tbar .btn { min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: 16px; font-weight: 500; }
main.flow .tbar .btn[aria-busy="true"] { opacity: .7; }
.tbar__main { display: flex; align-items: center; gap: 12px; }
.tbar__try { position: relative; display: inline-flex; }
main.flow .tbar .btn.ttry { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field-line); }
main.flow .tbar .btn.ttry:hover, main.flow .tbar .btn.ttry:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink); }
/* "Recommended" on the test until these topics have been tested: a small lavender tag on the button's corner. */
.tbar__tag { position: absolute; top: -11px; right: 12px; padding: 1px 8px; border-radius: 999px; background: var(--lavender); font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink); pointer-events: none; }
/* People step: who is invited, then the send button, on the right; until one address is in, the button looks off. */
main.flow .ibar .meta { display: grid; gap: 1px; margin: 0; text-align: right; font-size: 16px; line-height: 1.3; }
main.flow .ibar .meta strong { font-size: 16px; font-weight: 600; color: var(--ink); }
main.flow .ibar .meta span { font-size: 12px; color: var(--muted); }
form[data-invite-form]:has(textarea[data-email-source]:placeholder-shown) .ibar .btn--primary { background: var(--card-line); color: var(--text-2); }

/* In the shell, the page fills the column, so the bar sits at the bottom of the window even on a short page. */
.app-col--flow > .screen { flex: 1 0 auto; display: flex; flex-direction: column; }
.app .app-col--flow > .screen > main.flow { flex: 1 0 auto; width: 100%; padding-bottom: 0; }
.app-col--flow main.tflow:has(.tbar), .app-col--flow .tflow__main:has(.tbar), .app-col--flow form:has(> .tbar) { display: flex; flex-direction: column; flex: 1 0 auto; }
.app-col--flow main.flow .tbar { margin-top: auto; }
.app-col--flow form:has(> .tbar) > :nth-last-child(2) { margin-bottom: 32px; }

@media (max-width: 720px) {
  main.flow h1 { font-size: 28px; }
  .tsum { align-items: flex-start; }
  main.iflow .set summary { grid-template-columns: minmax(0, 1fr) auto 16px; }
  main.flow .tbar { flex-wrap: wrap; padding-top: 12px; }
  main.flow .tbar .back { display: none; }
  .tbar__main { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .tbar__try, .tbar__try .btn { width: 100%; }
  main.flow .tbar .btn { padding: 0 12px; }
  main.flow .ibar .meta { flex: 1 1 100%; text-align: left; }
  main.flow .ibar .btn { flex: 1 1 100%; }
}
/* People step under 961px: the preview drops below the form, so the bar is fixed to the window instead of sticky in
   the form (it would otherwise stop halfway down, above the preview). The flow has no sidebar: it starts at the edge. */
@media (max-width: 960px) {
  main.iflow .ibar { position: fixed; left: 0; right: 0; bottom: 0; padding-left: 24px; padding-right: 24px; }
  main.iflow .ibar::before { left: 0; right: 0; }
  main.iflow { padding-bottom: 96px; }
  .app .app-col--flow > .screen > main.iflow { padding-bottom: 96px; }
  main.iflow .iprev { margin: 32px 0 0; }
  .app .app-col--flow > .screen > main.iflow { flex: none; }
}
@media (max-width: 767px) {
  main.iflow .ibar { padding-left: 16px; padding-right: 16px; }
  .app .app-col--flow > .screen > main.iflow, main.iflow { padding-bottom: 150px; }
  main.iflow .icard, main.iflow .iabout { padding: 16px; }
}

/* ---------- Launched (step 4, done): white surfaces on the canvas, like the rest of the workspace ---------- */
.launch-done h1 { font: 500 28px/1.12 var(--serif); letter-spacing: -.02em; }
.launch-done > p { color: var(--text-2); }
.launch-done .recap { margin-top: 24px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--paper); box-shadow: var(--lift); text-align: left; }
.launch-done .status-list { gap: 0; margin-top: 16px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--paper); box-shadow: var(--lift); overflow: hidden; }
.launch-done .status-list div { padding: 12px 16px; border-radius: 0; background: none; font-size: 14px; }
.launch-done .status-list div + div { border-top: 1px solid var(--line); }
.launch-done .stack--grid { margin-top: 24px; }
.launch-done .btn--ghost { background: var(--paper); box-shadow: inset 0 0 0 1px var(--field-line); }

/* Full-screen chat shared by the interview and the test conversation. */
/* ---------- Chat (participant + test): header on top, messages scroll, input pinned at the bottom ---------- */
.screen--chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; padding-bottom: 0; overflow: hidden; background: var(--paper); }
.chat-head { flex: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-head .topbar { max-width: 800px; padding: 10px 24px; } /* aligned on the conversation column (DESIGN.md) */
/* The organizer's test: a way back to the interview guide and a plain "Test" label, not the participant badge. */
.topbar--test .back { min-height: 44px; color: var(--text-2); }
.topbar--test .back:hover, .topbar--test .back:focus-visible { color: var(--ink); }
.test-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); text-align: right; }
.chat-status { max-width: 800px; margin: 0 auto; padding: 0 24px 12px; }
.chat-status__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.chat-status__title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.chat-status__right { display: inline-flex; align-items: center; gap: 16px; }
.chat-status .link { font-size: 14px; color: var(--muted); white-space: nowrap; }
.chat-head { position: relative; }
.topics-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; color: var(--ink); }
.topics-btn:hover, .topics-btn[aria-expanded="true"] { border-color: var(--ink); }
.tsheet { position: absolute; z-index: 20; top: calc(100% - 4px); right: max(24px, calc((100% - 800px) / 2 + 24px)); width: 360px; padding: 18px 18px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: none; animation: rise .18s ease-out both; }
.tsheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tsheet h2 { margin: 0; font: 600 16px/1.3 var(--sans); }
.tsheet__head p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.tsheet__close { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.tsheet__close:hover { background: var(--haze); color: var(--ink); }
.tlist { margin: 12px 0 0; padding: 0; list-style: none; }
.tlist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.tlist li:first-child { border-top: 0; }
.tlist__state { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.tlist__label { flex: 1; }
.tlist__tag { font-size: 12px; color: var(--muted); }
.tlist .is-done { color: var(--muted); }
.tlist .is-done .tlist__state { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.tlist .is-now { font-weight: 500; }
.tlist .is-now .tlist__state { border-color: var(--iris); }
.tlist .is-now .tlist__state::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--iris); }
.tlist .is-now .tlist__tag { color: var(--iris); }
.tsheet-backdrop { display: none; }
/* A divider in the thread marks each new topic, like the date separators of a messaging app. */
.tdivider { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; font-size: 12px; color: var(--muted); animation: rise .25s ease-out both; }
.tdivider::before, .tdivider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tdivider b { font-weight: 500; color: var(--ink); }
.progress { height: 3px; margin-top: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: var(--iris); transition: width .4s ease; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; padding: 24px 24px 28px; }
.note { align-self: center; max-width: 34em; margin: 0 0 10px; padding: 8px 14px; border-radius: 6px; background: var(--haze); font-size: 14px; color: var(--muted); text-align: center; }
.msg { display: flex; align-items: flex-end; gap: 10px; max-width: 78%; animation: rise .25s ease-out both; }
.msg .mark-dot { width: 28px; height: 28px; }
.msg .mark-dot svg { width: 16px; height: 16px; }
.msg__body { padding: 11px 16px; border-radius: 6px; font-size: 16px; line-height: 1.5; }
.msg--ai .msg__body { background: var(--haze); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; }
.msg--me .msg__body { background: var(--iris); color: #fff; border-bottom-right-radius: 6px; }
.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .45; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.typing__hint { align-self: flex-start; margin: -4px 0 10px 34px; max-width: 30em; font-size: 14px; line-height: 1.45; color: var(--muted); }
.note--error { background: var(--danger-soft); color: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 1; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.chat-bar { flex: none; border-top: 1px solid var(--line); background: var(--paper); padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); }
.chat-bar__inner { max-width: 800px; margin: 0 auto; }
.chatbox { display: flex; align-items: flex-end; gap: 4px; padding: 6px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.chatbox:focus-within { border-color: var(--iris); box-shadow: none; }
.chatbox textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 160px; padding: 9px 10px; border: 0; outline: 0; resize: none; background: transparent; font-size: 16px; line-height: 1.4; }
.chatbox textarea:first-of-type:not(:first-child) { padding-left: 4px; }
.chatbox textarea::placeholder { color: #666b7a; }
.chatbox__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.chatbox__icon:hover { background: var(--haze); color: var(--ink); }
.chatbox__send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--iris); color: #fff; }
.chatbox__send:hover { background: var(--iris-hover); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.suggest:empty { display: none; }
.suggest button { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; }
.suggest button:hover { border-color: var(--ink); }
.chat-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.chat-tools .link { font-size: 12px; color: var(--muted); }
.done-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 8px; padding: 16px 18px; border-radius: 6px; background: var(--ok-soft); color: #2a1fb8; }
/* End of a practice conversation: what Wholesight would keep (same card family as the findings on the results page) */
.practice-card { margin-top: 8px; min-width: 0; overflow-wrap: anywhere; animation: rise .25s ease-out both; }
.practice-card .practice-card__title { margin: 0; font: 600 14px/1.35 var(--sans); color: var(--muted); }
.practice-card > .practice-card__lead { margin: 8px 0 0; font: 500 20px/1.35 var(--serif); color: var(--ink); }
.practice-card > .practice-card__label { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.practice-card .practice-card__label + blockquote { margin-top: 6px; }
.practice-card blockquote + blockquote { margin-top: 8px; }
.practice-card > .practice-card__open { margin: 14px 0 0; font-size: 16px; color: var(--ink); }
.practice-card__open strong { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.practice-card > .practice-card__meta { margin: 10px 0 0; font-size: 14px; }
.practice-card > .practice-card__scale { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.practice-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.practice-card__actions form { margin: 0; }
.practice-card__actions .link { font-size: 14px; }
.practice-note { margin-top: 8px; padding: 16px 18px; border-radius: 6px; background: var(--haze-2); overflow-wrap: anywhere; }
.practice-note p { margin: 0; }
.practice-note .practice-card__actions { margin-top: 12px; }
@media (max-width: 700px) {
  .practice-card > .practice-card__lead { font-size: 20px; }
  .practice-card__actions { flex-direction: column; align-items: stretch; }
  .practice-card__actions .btn { width: 100%; }
  .practice-card__actions form { align-self: center; }
}

.qr { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-end; justify-content: flex-end; max-width: 82%; }
.qr button { padding: 9px 16px; border: 1.5px solid var(--iris); border-radius: 6px; background: #fff; color: var(--iris); font-size: 16px; font-weight: 500; }
.qr button:hover { background: var(--iris-soft); }
.namecard { align-self: flex-end; width: min(440px, 90%); padding: 16px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; }
.namecard__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.namecard label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.namecard .input { min-height: 44px; font-size: 16px; }
/* Contact form inside the interview thread */
.ccard { align-self: flex-start; margin-left: 38px; display: grid; gap: 12px; width: min(460px, calc(100% - 38px)); padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; animation: rise .25s ease-out both; }
.ccard__title { margin: 0; font-weight: 600; font-size: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ccard__title span { font-weight: 400; font-size: 14px; color: var(--muted); }
.ccard__field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.ccard .input { min-height: 44px; font-size: 16px; }
.ccard__ask { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.ccard__ask legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.ccard__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 16px; cursor: pointer; }
.ccard__opt:has(input:checked) { border-color: var(--iris); background: var(--iris-soft); }
.ccard__opt input { accent-color: var(--iris); width: 18px; height: 18px; margin: 0; }
.ccard .namecard__row { margin: 0; }
.ccard .namecard__row label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.ccard__err { margin: 0; font-size: 14px; color: #a33a2b; }
.ccard__help { margin: 0; font-size: 14px; color: var(--muted); }
.ccard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cstart:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Production additions: chat ---------- */
h1.chat-status__title { margin: 0; font: 500 14px/1.3 var(--sans); letter-spacing: 0; }
.chat-status__right .topics-btn svg { display: inline; }
.msg .mark-dot img { width: 16px; height: 16px; }
.chat-tools form { margin: 0; }
.chat-tools .link { padding: 0; border: 0; background: none; cursor: pointer; }
.chat-tools { flex-wrap: wrap; }
.chat-share { display: inline-flex; align-items: center; gap: 8px; }
.chat-share label.link { text-decoration: underline; cursor: pointer; }
.chat-share:focus-within label.link { outline: 2px solid var(--iris); outline-offset: 2px; }
.chat-share__hint { flex: 1 1 260px; }
/* On a phone the bar keeps its actions only: the keyboard hint and the sharing rules stay for screen readers and wide screens. */
@media (max-width: 640px) {
  .chat-tools > span:first-child, .chat-share__hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-tools .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
}
.msg__body--file form { margin: 0; justify-self: end; }
.msg--error .msg__body { background: var(--danger-soft); color: #7a2018; }
.chatbox .dictation-button { width: 40px; height: 40px; }
.chatbox:has(.dictation-panel:not([hidden])) { flex-wrap: wrap; }
.chatbox__send:disabled { opacity: .5; }
.screen--chat { height: var(--chat-height, 100dvh); }
@media (max-width: 720px) {
  /* Keep the page heading for screen readers when the status title is hidden on small screens. */
  h1.chat-status__title { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* The organizer's test (simulation), finished like the rest of the flow: one header column aligned with the thread, the
   thread on the signed-in canvas with white bubbles, the composer on a white bar. The participant's interview is unchanged. */
.screen--chat:has(.topbar--test) { background: var(--canvas); }
.screen--chat:has(.topbar--test) .chat-head { border-bottom-color: var(--card-line); }
.chat-head .topbar--test { max-width: 800px; margin: 0 auto; padding: 8px 24px 0; }
.topbar--test .back { font-size: 14px; }
.topbar--test .test-badge { font-size: 14px; color: var(--muted); }
.screen--chat:has(.topbar--test) .chat-status { padding-bottom: 14px; }
.screen--chat:has(.topbar--test) h1.chat-status__title { font: 500 20px/1.25 var(--serif); }
.screen--chat:has(.topbar--test) .chat-status .link { color: var(--iris); font-weight: 500; }
.screen--chat:has(.topbar--test) .chat-scroll { background: var(--canvas); }
.screen--chat:has(.topbar--test) .note { background: var(--paper); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--text-2); }
.screen--chat:has(.topbar--test) .msg--ai .msg__body { background: var(--paper); box-shadow: inset 0 0 0 1px var(--card-line), var(--lift); }
.screen--chat:has(.topbar--test) .chat-bar { border-top-color: var(--card-line); box-shadow: none; }
.screen--chat:has(.topbar--test) .chatbox { border-color: var(--field-line); }
.screen--chat:has(.topbar--test) .chat-status__title .pill { font: 600 12px/1 var(--sans); padding: 5px 10px; }
.screen--chat:has(.topbar--test) .chat-bar__inner { max-width: 752px; }
@media (max-width: 640px) {
  /* The thread's first note already says it is a private test; the header keeps the way back. */
  .topbar--test .test-badge { display: none; }
}

/* Participant welcome and consent. */
/* ---------- Participant welcome ---------- */
.guest { max-width: 640px; margin: 0 auto; padding: 32px 24px 40px; }
.guest__card { padding: 30px 32px 32px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; }
.inviter { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 16px; }
.inviter__face { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); font-weight: 600; }
.guest h1 { margin: 0; font: 700 28px/1.15 var(--sans); letter-spacing: -.02em; }
.guest__intro { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.promises div { padding: 14px 16px; border-radius: 6px; background: var(--haze); font-size: 14px; color: var(--muted); }
.promises strong { display: block; color: var(--ink); font: 700 20px/1.2 var(--sans); }
.about { margin-top: 26px; }
.about ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.about li { display: flex; gap: 10px; font-size: 16px; } .about li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--iris); }
.consents { display: grid; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.guest details { margin-top: 18px; font-size: 14px; color: var(--muted); }
.guest summary { cursor: pointer; font-weight: 500; color: var(--ink); }

/* Consent page: one column, read from top to bottom */
.cguest .guest__card { padding: 34px 36px 30px; }
.cguest h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; text-wrap: balance; }
.cguest .inviter { margin-bottom: 18px; color: var(--muted); }
.cguest .inviter strong { color: var(--ink); }
/* The invitation's subject and the consultant's own message (InvitationText): plain text, line breaks kept. */
.csubject { margin: 0 0 8px; color: var(--iris); font-size: 14px; font-weight: 600; letter-spacing: .01em; overflow-wrap: anywhere; }
.cnote { margin: 18px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--iris-soft); }
.cnote blockquote { margin: 0; }
.cnote p { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.cnote figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.cfacts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 16px; font-weight: 500; }
.cfacts li { display: inline-flex; align-items: center; gap: 7px; }
.cfacts svg { padding: 2px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); }
.csec { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.csec h2 { margin: 0 0 14px; font: 600 16px/1.3 var(--sans); }
.ctopics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: ct; }
.ctopics li { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; border-radius: 6px; background: var(--haze-2); font-size: 16px; line-height: 1.35; counter-increment: ct; }
.ctopics li::before { content: counter(ct); flex: none; font: 600 14px/1 var(--sans); color: var(--iris); font-variant-numeric: lining-nums tabular-nums; }
/* Topics discussed only if the conversation has room: listed apart, unnumbered, lighter. */
.ctopics-more { margin: 14px 0 8px; font-size: 14px; color: var(--muted); }
.ctopics--more li { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ctopics--more li::before { content: none; }
.cflow { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cflow::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--iris-soft); }
.cflow li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.cflow__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--iris); color: #fff; box-shadow: none; }
.cflow strong { display: block; margin-top: 7px; font-weight: 600; font-size: 16px; }
.cflow div > span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.cgood { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cgood li { position: relative; padding-left: 18px; font-size: 16px; color: var(--muted); }
.cgood li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--iris); }
.cconsent { display: grid; gap: 12px; margin-top: 30px; padding: 18px; border-radius: 6px; background: var(--haze); }
.cconsent .check { font-size: 16px; }
.cconsent strong { font-weight: 600; }
.cstart { margin-top: 18px; min-height: 54px; font-size: 16px; }
.cfoot { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .cguest .guest__card { padding: 24px 20px 22px; }
  .ctopics { grid-template-columns: 1fr; }
}

/* ---------- Production additions: participant ---------- */
.inviter__face img { width: 20px; height: 20px; }
.cflow__icon svg, .cfacts svg { display: inline; }
.cfoot svg { display: inline; vertical-align: -2px; }
.cdetails { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cdetails summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.cdetails a { color: var(--iris); }
.cstart:disabled { opacity: .5; cursor: not-allowed; }
.panel-light--own { margin-top: 32px; text-align: left; }
.panel-light--own .muted { margin: 8px 0 18px; }
/* Lot 2: the interview language on the invitation and consent pages: a labelled select, or one line once it is set. */
.ilang { display: grid; gap: 6px; margin: 4px 0 14px; text-align: left; }
.ilang__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.ilang__select { width: 100%; }
.ilang__note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ilang--set { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* Lot 4: what the consultant will see of the answers, stated before the participant answers. */
.anotice { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--iris-soft); color: var(--ink); font-size: 16px; line-height: 1.45; text-align: left; }
.anotice svg { flex: none; margin-top: 2px; color: var(--iris); }

/* The signed-in pages' own content: the study page (Interviews and Analysis tabs), Deep Study, billing and settings,
   and the pieces of a mission page. Built from the shell's primitives (shell.css: .card, .badge, .seg, .btn, .tbl);
   only what is particular to a page lives here. */

/* ---------- Study page: a bar with the title and tabs, then the tab's content ---------- */
.screen--app { display: flex; flex-direction: column; height: 100vh; min-height: 0; padding-bottom: 0; overflow: hidden; }
/* The bar: title and facts at left, the page's actions at right, the tabs left-aligned under the title. */
.studybar { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "tabs tabs"; align-items: center; column-gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.studybar__left { grid-area: title; display: flex; align-items: center; min-width: 0; padding: 16px 0 12px; }
.studybar__title { display: grid; gap: 4px; min-width: 0; }
.studybar h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studybar__question { margin: 0; max-width: 72ch; font-size: 14px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.studybar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 14px; color: var(--muted); }
.studybar__right { display: contents; }
.studybar__tabs { grid-area: tabs; justify-self: start; margin: 0 0 12px; }
.studybar__right > :not(.studybar__tabs) { grid-area: actions; justify-self: end; }
.studybar__export .qmenu__panel { min-width: 240px; }

.ws { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); }
/* The report: a title, tabs to jump between its parts, then one card per part (Summary, Findings, Open questions,
   Sources). Steps: report title 20/600, card title 16/600 with its count, finding title 15/600, text 14, meta 13. */
.ws-left { min-height: 0; overflow-y: auto; padding: 0 var(--gutter) 100px; border-right: 1px solid var(--line); background: var(--canvas); }
.ws-report { max-width: 880px; }
.wsr-head { margin: 24px 0 0; }
.wsr-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.wsr-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
/* Jump links to the report's parts: quiet links, the part in view in ink (study.js). */
.rnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 14px 0 16px; }
.rnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: 14px; color: var(--muted); text-decoration: none; }
.rnav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rnav a[aria-current] { font-weight: 500; color: var(--ink); }
.rnav b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-sheet--empty { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.ws-sheet--empty p { color: var(--text-2); }
.ws-empty__title { margin: 0 0 8px; font-size: 20px; }
.ws-sample-link { margin: 16px 0 0; font-size: 14px; }
.ws-label { margin: 0 0 10px; }
/* The summary is the one passage read in full: the largest body text of the page. */
.ws-answer__text { max-width: 70ch; margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.ws-answer__text + .ws-answer__text { margin-top: 12px; }
.ws-answer__edit { margin-top: 14px; }
.ws-sheet > .notice { margin: 0 0 16px; }
.card > .blocks { padding: 0 20px 20px; }

/* A finding: a row of the Findings card. Its title, its sources numbered, how many said it (a badge); opened, the
   reading and the quote in a soft panel, then its tools. */
.find__d > summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 6px 14px; padding: 14px 20px; list-style: none; cursor: pointer; }
.find__d > summary:hover { background: var(--canvas); }
.find__d > summary::-webkit-details-marker { display: none; }
.find__d > summary::after { content: ""; grid-column: 2; grid-row: 1; width: 7px; height: 7px; margin: 6px 0 0 3px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease-out; }
.find__d[open] > summary::after { transform: rotate(-135deg); margin-top: 9px; }
.find__d[open] > summary { padding-bottom: 8px; }
.find__d > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius); }
.find__title { grid-column: 1; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.find__meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.find__signal--strong { font-weight: 500; color: var(--ink); }
.find__body { padding: 0 20px 18px; }
.find__body > p { max-width: 68ch; margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.find__quote { max-width: 68ch; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--haze); }
.find__quote p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.find__quote footer { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.find__foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 14px; }
/* The consultant's changes (ReportEdits): badges, a note, a side-by-side when the AI text moved, plain forms. */
.find__anchor { display: block; position: relative; top: -72px; visibility: hidden; }
.find__form { display: inline; margin: 0; }
.find__note { max-width: 68ch; margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.find__note strong { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.find__note p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.find__compare { margin-top: 12px; }
.find__compare > summary { width: fit-content; cursor: pointer; font-size: 14px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.compare__side { display: grid; align-content: start; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare__side p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.compare__side .compare__label { font-size: 12px; font-weight: 500; color: var(--muted); }
.compare__side .compare__title { font-weight: 600; color: var(--ink); }
.compare__side .find__form { margin-top: 4px; }
.compare__side .btn { max-width: 100%; height: auto; white-space: normal; text-align: left; }
.find__edit > summary { width: fit-content; list-style: none; cursor: pointer; }
.find__edit > summary::-webkit-details-marker { display: none; }
.find__edit[open] > summary { margin-bottom: 4px; }
.find__editor { padding: 4px 0 8px; }
.find__editor .field { margin-top: 14px; }
.find__editor .help { margin: 0; font-size: 14px; color: var(--muted); }
.find__editor .pform__actions { margin-top: 14px; }
.find__quotes { border: 0; margin: 14px 0 0; padding: 0; }
.find__quotes legend { padding: 0; font-weight: 500; }
.find__choice { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.find__choice input { margin-top: 3px; }
.find__tools { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.find__foot .find__edit { order: 0; flex: 0 1 auto; }
.find__foot .find__edit[open] { flex-basis: 100%; order: 3; }
.find__down svg { transform: rotate(180deg); }
.find--hidden .find__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 20px; }
.find--hidden .find__title { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.find--retired { padding-bottom: 12px; }
.find--retired > .find__retired-text, .find--retired > .find__note, .find--retired > .find__foot { margin-left: 20px; margin-right: 20px; }
.find--retired .find__row { padding-bottom: 4px; }
.find__retired-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.added { padding: 14px 20px; }
.added__title { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.added > p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.added > ul, .added > ol { margin: 0 0 8px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.turn__foot form { display: inline; margin: 0; }
.turn__added { padding: 5px 10px; font-size: 14px; color: var(--text-2); }
/* Superscript references: a number in the action colour, linked to the sources list. */
.fref { margin-left: 2px; font-size: 12px; font-weight: 600; line-height: 0; vertical-align: super; color: var(--iris); }
.fref a { padding: 0 2px; color: inherit; text-decoration: none; }
.fref a:hover { text-decoration: underline; }
.refs { display: grid; gap: 10px; margin: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.refs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; scroll-margin-top: 72px; }
.refs li:target { background: var(--iris-soft); border-radius: var(--radius); }
.refs strong { font-weight: 500; color: var(--ink); }
.refs__n { font-size: 12px; font-weight: 600; color: var(--iris); }
/* Disagreements and what is still unknown: soft blocks. */
.blocks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.blocks li { padding: 10px 14px; border-radius: var(--radius); background: var(--haze); font-size: 14px; line-height: 1.55; color: var(--ink); }
.docs { display: grid; gap: 0; margin: 0; }
.doc-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row svg { flex: none; margin-top: 2px; color: var(--muted); }
.doc-row strong { font-size: 14px; font-weight: 500; }
.doc-row .muted { font-size: 14px; }
.doc-row p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.doc-row p.doc-row__tag { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* The question panel beside the report. */
.ws-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.wsc-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.wsc-head__av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--radius); background: var(--iris); }
.wsc-head__av img, .turn__av img { width: 17px; height: 17px; }
.wsc-head__text { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.wsc-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.wsc-head p { margin: 0; font-size: 14px; color: var(--muted); }
.wsc-head__quota { margin-top: 6px; font-size: 12px; color: var(--muted); }
.ws-feed { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.turn { margin-top: 24px; }
.turn:first-child { margin-top: 0; }
.turn__row { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.turn--hello .turn__row { margin-top: 0; }
.turn__av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--radius); background: var(--iris); }
.turn__q { width: fit-content; max-width: 80%; margin-left: auto; padding: 8px 12px; border-radius: var(--radius-card); background: var(--haze); color: var(--ink); font-size: 14px; }
.turn__a { flex: 1; min-width: 0; padding-top: 3px; }
.turn__a p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.turn__a ul, .turn__a ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.65; }
.turn__a li + li { margin-top: 4px; }
.turn__a strong { font-weight: 600; }
.turn--hello .turn__a p { margin: 0; color: var(--text-2); }
.turn__a ul { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.65; }
.turn__a b { font-weight: 600; }
.turn__a a { color: var(--iris); }
.turn__limit { font-size: 14px !important; color: var(--muted); }
.turn__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.turn__foot div { display: flex; flex-shrink: 0; gap: 4px; white-space: nowrap; }
.turn__foot button { padding: 5px 10px; border: 0; border-radius: var(--radius); background: none; color: var(--text-2); font-size: 14px; }
.turn__foot button:hover { background: var(--haze); color: var(--ink); }
.turn__src { margin-top: 12px; }
.turn__toggle { padding: 5px 0 !important; font-weight: 500; color: var(--iris) !important; }
.src { display: flex; gap: 12px; margin-top: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.src__n { flex: none; font-size: 12px; font-weight: 600; color: var(--iris); }
.src blockquote { margin: 0; font-size: 14px; line-height: 1.5; }
.src small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.ws-compose { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.ws-compose .notice { margin: 0 0 8px; }
.ws-chat .chatbox { border: 1px solid var(--field-line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.ws-chat .chatbox:focus-within { border-color: var(--iris); box-shadow: 0 0 0 3px rgba(68, 51, 255, .18); }
.chatbox--big { padding: 6px 6px 6px 10px; }
.chatbox--big textarea { min-height: 44px; padding: 10px 6px; font-size: 14px; }
.chatbox--big .chatbox__send { width: 36px; height: 36px; border-radius: var(--radius); }
.ws-note { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
/* "Ask the mission" (mission page): the same chat in the flow of the page, framed, its thread scrolling inside. */
.mchat { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-xs); }
.mchat .ws-feed { max-height: 560px; }
.mchat .src small a { color: inherit; }
.ws-desktop { display: none; }
.ws-desktop form { margin: 0; }

/* The mission's Analysis tab: the questions are the main column, the comparison and each study's answer beside them. */
.ws--ask .ws-feed > *, .ws--ask .ws-compose > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.ws--ask .wsc-head { padding-left: max(20px, calc((100% - 760px) / 2)); padding-right: max(20px, calc((100% - 760px) / 2)); }
.ws-side { padding: 20px 20px 80px; border-right: 0; border-left: 1px solid var(--line); background: var(--canvas); }
.mside { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.mside + .mside { margin-top: 16px; }
.mside__title { margin: 0; font-size: 16px; font-weight: 600; }
.mside__lead { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.mside .macross__overview { font-size: 14px; line-height: 1.6; }
.mside__act { margin-top: 16px; }
.manswers { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.manswer { padding: 14px 0; border-top: 1px solid var(--line); }
.manswer:first-child { border-top: 0; padding-top: 4px; }
.manswer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0; }
.manswer__head strong { font-weight: 500; }
.manswer__open { display: inline-block; margin-top: 6px; font-size: 14px; }
.tabs__apart { display: flex; margin-left: 4px; padding-left: 4px; border-left: 1px solid var(--line-2); }
.manswer__text { margin: 6px 0 0; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ws-people > .mempty-sheet { max-width: 640px; }
.mempty-sheet__go { margin: 16px 0 0; }
.mhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 16px; }
.mhead .psec__title { margin: 0 0 4px; }
.mhead p { margin: 0; }
.ws-people .psec > .muted.small { margin: 0 0 12px; max-width: 72ch; }
.mbar__notice { flex: none; margin: 0; border-radius: 0; padding: 12px var(--gutter); }

/* ---------- People tab ---------- */
.ws-people { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 24px var(--gutter) 100px; background: var(--canvas); }
.ws-people .notice { margin-bottom: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.ws-people .psec__title, .teams h2, .mentions h2, .reminders h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; scroll-margin-top: 72px; }
.ws-people > .psec__title { margin: 24px 0 12px; }
.suivi-settings__body .reminders h2 { font-size: 14px; }
.teams, .mentions { margin: 16px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); scroll-margin-top: 72px; }
.reminders { scroll-margin-top: 72px; }
.ws-people > .suivi-grid { margin-top: 16px; }
/* The context given to the interviewer before launch: read-only, the consultant's own words. */
.study-context__label { margin: 12px 0 4px; font-size: 14px; font-weight: 500; color: var(--ink); }
.study-context__note { margin: 0; max-width: 72ch; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.teams .tbl-wrap, .mentions .tbl-wrap { margin-top: 12px; }
.tbl caption { caption-side: top; padding: 0 0 8px; text-align: left; font-size: 14px; color: var(--text-2); }
.mention-form { margin: 0; }
.add-people__form { display: grid; gap: 10px; }
.add-people__form textarea { width: 100%; min-height: 88px; padding: 10px 12px; resize: vertical; }
.add-people__form .btn { justify-self: start; }
.add-people__profile > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.add-people__profile > summary::-webkit-details-marker { display: none; }
.add-people__profile > summary::after { content: ""; width: 6px; height: 6px; margin-bottom: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease-out; }
.add-people__profile[open] > summary::after { transform: rotate(-135deg); margin: 3px 0 0; }
/* People tab: the row menus' help line, and what the automatic reminders do. */
.people-help { margin: 10px 0 0; }
.tbl__row [data-reminded] { display: block; margin-top: 2px; }
.tbl td [data-deadline] { display: block; margin-top: 2px; }
.reminders h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }

.reminders__list { margin: 8px 0 6px; padding-left: 18px; }
.reminders__list li + li { margin-top: 4px; }
.reminders p { margin: 0 0 12px; }
.reminders__form { margin: 0; }
/* People tab: the response deadline, and a scheduled send that can still be cancelled. */
.deadline__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.deadline__form .input { width: auto; }
.schedule { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--lavender); border-radius: var(--radius-card); background: var(--iris-soft); }
.schedule h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.schedule p { margin: 0 0 12px; }
.schedule p:last-child { margin: 10px 0 0; }
.schedule__form { margin: 0; }
.retention-row { display: grid; gap: 8px; }
.retention-row p { margin: 0; }
.retention-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.retention-form .input { width: auto; max-width: 220px; }
.input--small { min-height: 32px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: var(--radius); font-size: 14px; }
.people-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.people-foot form { margin: 0; }


.settings-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 0; }
[data-settings-language] .btn { margin-top: 4px; }

/* Closing a study: a confirmation, in the page without JavaScript (/close), in a modal dialog with it. */
.confirm { width: min(520px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(20, 22, 31, .45); }
.confirm:not(:modal) { position: static; margin: 24px 0 0; box-shadow: none; border-color: var(--danger); }
.confirm::backdrop { background: rgba(20, 22, 31, .45); }
/* Opened from a link, the dialog itself takes focus: no ring around the whole box, its buttons keep theirs. */
.confirm:focus-visible { outline: none; }
.confirm form { margin: 0; }
.confirm__title { margin: 0 0 14px; font-size: 20px; line-height: 1.25; }
.confirm__list { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.confirm__warn { margin: 0 0 22px; font-size: 16px; font-weight: 600; color: var(--danger); }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.app .btn--danger { background: var(--danger); color: #fff; }
.app .btn--danger:hover { background: #8f2b21; }

/* ---------- Deep Study ---------- */
.deep-page.app-main { max-width: 1100px; }
.deep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.deep-head__kicker { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--iris); }
.deep-head h1 { margin: 0; font-size: 28px; line-height: 1.12; }
.deep-head .lead { margin: 10px 0 4px; font-size: 20px; color: var(--text-2); }
.deep-head__act { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.deep-head__act form, .person--auto form { margin: 0; }
.deep-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 48px; margin-top: 28px; }
.deep-side { display: grid; gap: 0; align-content: start; }
.deep-card { padding: 0 0 28px; }
.deep-side .deep-card + .deep-card { padding-top: 24px; border-top: 1px solid var(--line); }
.deep-card h2 { margin: 0; font-size: 20px; }
.deep-card > p { margin: 6px 0 0; font-size: 16px; color: var(--text-2); }
.proposal { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.person__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.person__tag { font-size: 14px; font-weight: 400; color: var(--text-2); }
.person__tag--new { color: var(--wait); font-weight: 600; }
.person p { margin: 6px 0 0; font-size: 16px; color: var(--text-2); }
.person blockquote { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--iris); font-size: 16px; line-height: 1.45; }
.person__rm { align-self: start; font-size: 14px; color: var(--text-2); }
.rules { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 16px; }
.rules li { display: flex; gap: 10px; }
.rules svg { flex: none; margin-top: 3px; color: var(--iris); }
.deep-card .field span { font-size: 14px; font-weight: 600; }
/* The file field: the native control, its button drawn like the other quiet buttons. */
.file { display: block; width: 100%; max-width: 420px; margin-top: 6px; font-size: 16px; color: var(--text-2); }
.file::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--paper); font: 600 16px/1 var(--sans); color: var(--ink); cursor: pointer; }
.file::file-selector-button:hover { border-color: var(--ink); }

/* ---------- Billing and settings ---------- */
.account-page .notice { margin-top: 20px; }
/* Each settings or billing section is a card, like every other object of the back office (DESIGN.md). */
.bill { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); scroll-margin-top: 72px; }
.bill h2 { margin: 0; font-size: 16px; font-weight: 600; }
.bill > .muted { margin: 4px 0 0; font-size: 14px; }
.bill__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bill__kicker { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.bill__plan { font-size: 28px !important; line-height: 1.1; }
.bill__usage { margin: 22px 0 8px; font-size: 16px; font-weight: 600; }
.bill .help { font-size: 14px; color: var(--text-2); }
/* Settings → Logo: the current logo (or an empty frame) beside the file field. */
.logo-set { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-top: 16px; }
.logo-set__preview { display: grid; place-items: center; flex: none; width: 160px; height: 96px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.logo-set__preview--empty { border-style: dashed; background: var(--haze); text-align: center; }
.logo-set__preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-set__actions { flex: 1 1 260px; min-width: 0; }
.logo-set__actions .input[type="file"] { padding: 8px; }
.bill--row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bill--row > div { min-width: 0; }
.bill--row p { margin: 2px 0 0; overflow-wrap: anywhere; }
.bill--row form { flex: 0 0 auto; }
.profile-form .field { display: grid; gap: 6px; margin-top: 16px; }
.profile-form .field span { font-size: 14px; font-weight: 600; }
.profile-form .input { min-height: 44px; border: 1px solid var(--field-line); border-radius: 6px; font-size: 16px; }
.profile-form .help { margin: 6px 0 0; }
.email-settings { margin-top: 14px; }
.email-settings .check { font-size: 16px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.packs__item { display: grid; gap: 2px; justify-items: start; height: auto; padding: 12px 14px; text-align: left; }
.packs__item small { font-weight: 400; color: var(--text-2); }

/* ---------- Mission page: the comparison across studies and the scope alerts ---------- */
.mempty, .mnote { margin: 12px 0 0; font-size: 16px; color: var(--text-2); }
.mnote--top { margin-top: 0; }
.macross { margin-top: 8px; }
.macross__overview { margin: 0; font-size: 20px; line-height: 1.5; }
.macross h3 { margin: 28px 0 0; font-size: 16px; font-weight: 700; }
.macross__list { display: grid; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.macross__list li { padding-left: 14px; border-left: 2px solid var(--line-2); }
.macross__list strong { font-weight: 600; }
.macross__list p { margin: 4px 0 0; font-size: 16px; }
.macross__src { font-size: 14px; color: var(--text-2); }
.macross + form { margin-top: 20px; }
.mflags { display: grid; margin-top: 12px; }
.mflag { padding: 20px 0; border-top: 1px solid var(--line); }
.mflag h3 { margin: 4px 0 0; font-size: 20px; font-weight: 600; font-stretch: 100%; }
.mflag__quote { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--iris); }
.mflag__quote p { margin: 0; font-size: 16px; }
.mflag__quote footer { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.mflag__clause, .mflag__why { margin: 12px 0 0; font-size: 16px; }
.mflag__why { color: var(--text-2); }
.mflag__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.mflag__act small { margin-right: auto; font-size: 14px; color: var(--text-2); }
.mexport { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .screen--app { height: auto; overflow: visible; }
  .studybar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "tabs"; }
  .studybar__left { padding: 12px 0 8px; }
  .studybar h1 { font-size: 20px; white-space: normal; }
  .studybar__export { display: none; }
  /* Four tabs and an alert count can outgrow a phone: the track scrolls, the page never does. */
  .studybar__tabs { flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .studybar__tabs a { flex: none; }
  .ws { display: block; }
  .ws-left { overflow: visible; padding-bottom: 96px; border: 0; }
  .ws-chat, .find__ask { display: none; }
  .ws-chat.mchat { display: flex; }
  .ws--ask .ws-chat { display: flex; }
  .ws--ask .ws-feed { overflow: visible; padding: 20px 16px; }
  .ws--ask .wsc-head { padding: 14px 16px; }
  .ws--ask .ws-compose { position: sticky; bottom: 0; padding: 10px 16px 14px; }
  .ws--ask .chatbox--big textarea { min-height: 64px; }
  .ws-side { padding: 16px 16px 96px; border-left: 0; border-top: 1px solid var(--line); }
  [data-mission-page] .studybar { position: relative; }
  [data-mission-page] .studybar__title { padding-right: 52px; }
  .studybar .qmenu.mbar__menu { position: absolute; top: 10px; right: 16px; }
  .mhead { flex-direction: column; align-items: flex-start; }
  .mchat .wsc-head, .mchat .ws-feed, .mchat .ws-compose { padding-left: 16px; padding-right: 16px; }
  .ws-desktop { display: flex; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-card); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
  .ws-desktop svg { flex: none; margin-top: 2px; color: var(--iris); }
  .ws-desktop strong { display: block; font-weight: 600; }
  .ws-desktop p { margin: 4px 0 12px; font-size: 14px; color: var(--text-2); }
  .ws-people { padding-top: 20px; padding-bottom: 96px; }
  .deep-head { flex-direction: column; align-items: flex-start; }
  .deep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .ws-sheet--empty { padding: 20px 16px; }
  .ws-answer__text { font-size: 16px; }
  .find__d > summary, .find__body, .added, .card > .blocks, .find--hidden .find__row { padding-left: 16px; padding-right: 16px; }
  .rnav { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .rnav a { flex: none; white-space: nowrap; }
  .wsr-head { display: none; }
  .facts { gap: 8px 24px; }
}

/* Lifecycle (rename, archive, delete): the rename form under the study bar, the typed confirmation of a deletion. */
.studybar__form { padding: 0 var(--gutter); }
.studybar__form .pform--card { max-width: 560px; margin-top: 12px; padding-bottom: 20px; }
.studybar__rename { font-size: 14px; color: var(--text-2); }
.confirm__list--plain { padding-left: 0; list-style: none; }
.confirm__type { margin: 0 0 22px; }
.confirm__type label { display: block; margin-bottom: 8px; font-size: 16px; line-height: 1.5; }
.confirm__type strong { overflow-wrap: anywhere; }
.btn.btn--ghost.text-danger, .app .btn.btn--ghost.text-danger { color: var(--danger); }
.notice--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; }
.notice--row p { margin: 0; }
.notice--row form { margin: 0; }
.qmenu__panel form { margin: 0; }
.qmenu__button { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.qmenu .qmenu__item--danger { color: var(--danger); }
.tdiscard { margin: 28px 0 0; font-size: 14px; color: var(--text-2); }
.tdiscard summary { display: inline; cursor: pointer; }
.tdiscard form { display: grid; justify-items: start; gap: 8px; margin: 12px 0 0; }
.tdiscard .help { margin: 0; }
#edit-mission { margin-bottom: 24px; }
.studybar__form { background: var(--paper); border-bottom: 1px solid var(--line); }

/* ---------- One interview, read on screen (pages/interview.php) ----------
   The header like any page's (title, facts, the interview's rank as a badge); the conversation in a card, the
   person's answers in soft panels and the questions quieter; beside it, the findings that cite it and what the person
   shared; the interviews before and after it at the foot. */
.iv-head__context { display: none; }
.iv-head__who { overflow-wrap: anywhere; }
@media (max-width: 767px) { .phead .iv-head__who { font-size: 20px; } }
.iv-layout { display: grid; gap: 16px; align-items: start; }
.iv-layout--side { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
@media (max-width: 1100px) { .iv-layout--side { grid-template-columns: minmax(0, 1fr); } }
.iv-side { display: grid; gap: 16px; }
@media (min-width: 1101px) { .iv-side { position: sticky; top: 72px; } }
.iv-side > .card + .card { margin-top: 0; }
.iv-cited__list, .iv-docs__list { margin: 0; padding: 0; list-style: none; }
.iv-cited__list li > a, .iv-docs__list li { display: block; padding: 12px 20px; font-size: 14px; line-height: 1.45; }
.iv-cited__list li > a { font-weight: 500; color: var(--ink); text-decoration: none; }
.iv-cited__list li > a:hover { background: var(--canvas); color: var(--iris-hover); }
.iv-docs__list .link { font-weight: 500; }
.iv-turns { display: grid; gap: 14px; margin: 0; list-style: none; }
.iv-turn { max-width: 72ch; }
.iv-turn__by { margin: 0 0 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.iv-turn__text { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.iv-turn--wholesight .iv-turn__text { color: var(--text-2); }
.iv-turn--person { padding: 12px 16px; border-radius: var(--radius-card); background: var(--haze); }
.iv-turn--person .iv-turn__by { color: var(--text-2); }
.iv-turn--person .iv-turn__text { font-size: 16px; color: var(--ink); }
.iv-turn__copy { margin: 8px 0 0; padding: 4px 8px; border: 0; border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.iv-turn__copy:hover { color: var(--ink); background: var(--canvas); }
.iv-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 20px; }
.iv-pager > span { min-width: 1px; }
/* A finding reached from an interview page is highlighted, clear of the report bar above it. */
.find { scroll-margin-top: 64px; }
.find:target { box-shadow: inset 0 0 0 2px var(--lavender); }
.refs__link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.refs__link:hover { text-decoration-color: var(--iris); }
.refs__link:hover strong { color: var(--iris); }

/* Printed: the transcript alone, on as many pages as it takes. */
@media print {
  .app--interview .side, .app--interview .appbar, .app--interview .skip-link, .iv-pager, .iv-turn__copy { display: none !important; }
  .app--interview .app-shell { display: block; }
  .app--interview .app-col { height: auto; overflow: visible; }
  .interview-page.app-main { max-width: none; padding: 0; }
  .iv-layout--side { grid-template-columns: minmax(0, 1fr); }
  .iv-side { position: static; }
  .interview-page .card { border: 0; box-shadow: none; }
  .interview-page .card__head, .interview-page .card__body, .iv-cited__list li > a, .iv-docs__list li { padding-left: 0; padding-right: 0; }
  .iv-turn { max-width: none; break-inside: avoid; }
  .iv-turn--person { background: none; padding-left: 0; }
  .iv-turn--person .iv-turn__by, .iv-head__kicker { color: #000; }
  .app--interview .iv-cited a, .app--interview .iv-docs a { color: inherit; text-decoration: none; }
  .iv-head__context { display: block; margin: 0 0 4px; font-size: 14px; color: #000; }
}

/* Details about the people (ParticipantProfile): folded under "Add people", and the findings by profile on Results. */
.add-people__profile > summary { width: max-content; cursor: pointer; font-size: 14px; }
.add-people__profile-body { display: grid; gap: 8px; margin-top: 10px; }
.add-people__profile-body p { margin: 0; }
.profile-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-names legend { margin-bottom: 6px; padding: 0; }
.profile-table { margin: 12px 0 18px; overflow-x: auto; }
.profile-table .tbl thead th { height: auto; padding: 10px 12px; white-space: normal; vertical-align: bottom; }
.profile-table__caption { padding: 12px 16px 4px; font-size: 14px; font-weight: 600; color: var(--text); }
.profile-table .tbl caption.profile-table__caption { padding: 12px 16px 4px; color: var(--text); }
.profile-table > p.profile-table__caption { margin: 0; }
.profile-table > p.muted { margin: 0; padding: 0 16px 14px; }
.profile-table .tbl td, .profile-table .tbl tbody th { height: auto; padding: 10px 12px; font-size: 14px; }
.profile-table__finding { min-width: 150px; color: var(--text); }
.profile-table__num { text-align: right; white-space: nowrap; }
.profile-table .tbl thead th.profile-table__num { white-space: normal; }
.profile-table .tbl th.profile-table__num, .profile-table .tbl td.profile-table__num { text-align: right; }
@media (max-width: 640px) { .profile-names { grid-template-columns: 1fr; } }
.confirm .field + .confirm__actions { margin-top: 20px; }

/* A fieldset that only groups (Settings → Firm, disabled for colleagues who are not the owner). */
.fieldset-plain { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Settings → Firm (/firm): the people of the firm, invitations waiting, and the owner's controls opened in place. */
.firm-members__who { font-weight: 500; }
.firm-members__actions { white-space: nowrap; text-align: right; }
.firm-members__actions .firm-act { display: inline-block; text-align: left; margin-left: 6px; }
.firm-act > summary { list-style: none; cursor: pointer; }
.firm-act > summary::-webkit-details-marker { display: none; }
.firm-act[open] > summary { margin-bottom: 10px; }
.firm-act__form { white-space: normal; max-width: 420px; padding: 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--card-line); }
/* On a wide screen the opened panel floats under its button, so the row keeps its columns. */
@media (min-width: 641px) {
    .firm-members__actions .firm-act { position: relative; }
    .firm-members__actions .firm-act__form { position: absolute; right: 0; top: 100%; z-index: 5; width: 320px; box-shadow: inset 0 0 0 1px var(--card-line), 0 8px 24px rgba(15, 15, 30, .08); }
}
.firm-invites { list-style: none; margin: 12px 0 0; padding: 0; }
.firm-invites__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--card-line); }
.firm-invites__row:first-child { border-top: 0; }
.firm-invites__actions { display: flex; align-items: center; gap: 12px; }
.firm-role, .firm-members__joined { white-space: nowrap; }
.field__legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
@media (max-width: 640px) {
    .firm-members__actions { white-space: normal; text-align: left; }
    .firm-invites__row { flex-direction: column; align-items: flex-start; }
}
.firm-invite .fieldset-plain { margin-top: 6px; display: grid; gap: 8px; }
.firm-invite .fieldset-plain + div { margin-top: 8px; }
/* "Created by" under a name in the lists of a firm of several people. */
.tbl__name [data-created-by] { display: block; margin-top: 2px; font-weight: 400; }

/* « Share with the client » on the mission page (templates/pages/mission.php, ClientLinkService): the address of a new
   link shown once with its copy button, the active links with their views and actions, then the form to create one. */
.share-new { margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--ok-soft); box-shadow: inset 0 0 0 1px #bfe3cf; }
.share-new__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; color: var(--ok); }
.share-new__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-new__url { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--paper); }
.share-new .help { margin: 10px 0 0; }
.share-links { margin: 0; padding: 0; list-style: none; max-width: 860px; }
.share-link { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.share-link:last-child { border-bottom: 1px solid var(--line); }
.share-link__main { flex: 1 1 360px; min-width: 0; }
.share-link__main p { margin: 0; }
.share-link__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.share-link__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px !important; }
.share-link__views { margin-top: 6px !important; color: var(--text-2); }
.share-link__changed { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 3px 10px; border-radius: 6px; background: var(--wait-soft); color: #5e3d00; }
.share-link__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.share-link__actions form { margin: 0; }
.share-link:has(.share-link__revoke[open]) .share-link__actions { flex-basis: 100%; }
.share-create { margin-top: 20px; }
.share-create > summary { list-style: none; cursor: pointer; }
.share-create > summary::-webkit-details-marker { display: none; }
.share-create[open] > summary { display: none; }
.share-days { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.share-warning { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: #5e3d00; }
.share-warning svg { flex: none; margin-top: 2px; }

/* ---------- Interviews tab: Suivi (SuiviPresenter) ----------
   Cards: where the study stands, To do (the page's one decision), then a grid: the people (main) beside what leaves
   on its own (side); below, inviting more beside the settings and the study's lifecycle. */
.suivi { display: grid; gap: 16px; }
.suivi + .suivi-grid { margin-top: 16px; }
.suivi-grid { display: grid; gap: 16px; align-items: start; }
.suivi-grid:has(> .suivi-side) { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
@media (max-width: 1100px) { .suivi-grid:has(> .suivi-side) { grid-template-columns: minmax(0, 1fr); } }
.suivi-main, .suivi-side { display: grid; gap: 16px; min-width: 0; }
.suivi > .card + .card, .suivi-main > .card + .card, .suivi-side > .card + .card { margin-top: 0; }

.suivi-status { padding: 20px; }
.suivi-status__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); text-wrap: balance; }
.suivi-status__sub { margin: 4px 0 0; max-width: 80ch; font-size: 14px; color: var(--muted); }
.suivi-bar { display: block; width: 100%; height: 8px; margin: 16px 0 0; border-radius: 999px; overflow: hidden; background: var(--haze); }
.suivi-bar rect.suivi-bar__done { fill: var(--ok); }
.suivi-bar rect.suivi-bar__progress { fill: var(--iris); }
.suivi-bar rect.suivi-bar__waiting { fill: var(--line-2); }
.suivi-bar rect.suivi-bar__declined { fill: var(--muted); }
.suivi-bar rect.suivi-bar__problem { fill: var(--danger); }
.suivi-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.suivi-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 999px; vertical-align: 0; }
.suivi-legend .suivi-bar__done { background: var(--ok); }
.suivi-legend .suivi-bar__progress { background: var(--iris); }
.suivi-legend .suivi-bar__waiting { background: var(--line-2); }
.suivi-legend .suivi-bar__declined { background: var(--muted); }
.suivi-legend .suivi-bar__problem { background: var(--danger); }

.suivi-quiet { margin: 0; color: var(--muted); }
.suivi-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); text-align: right; }

/* To do: the page's one decision. Empty, one calm line in the card's head. */
.suivi-sec--calm .card__head { align-items: center; }
.suivi-calm { margin: 0; font-size: 14px; color: var(--muted); }
.suivi-todo { margin: 0; padding: 0; list-style: none; }
.suivi-todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 14px 20px; }
.suivi-todo__text strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.suivi-todo__text span { display: block; margin-top: 2px; max-width: 70ch; font-size: 14px; color: var(--muted); }
.suivi-todo__act form { margin: 0; }

/* What leaves without you: dated rows. */
.suivi-plan { margin: 0; padding: 0; list-style: none; }
.suivi-plan > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 20px; font-size: 14px; }
.suivi-plan__when { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.suivi-plan__when small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.suivi-plan__what { color: var(--text-2); }
.suivi-plan__what strong { color: var(--ink); font-weight: 500; }
.suivi-deep > summary { cursor: pointer; list-style: none; }
.suivi-deep > summary::-webkit-details-marker { display: none; }
.suivi-deep__toggle { margin-left: 6px; color: var(--iris); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.suivi-deep[open] .suivi-deep__toggle { color: var(--muted); }
.suivi-deep__items { margin: 10px 0 0; padding: 0; list-style: none; }
.suivi-deep__items li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.suivi-deep__items strong { color: var(--ink); overflow-wrap: anywhere; }
.suivi-deep__q { margin: 3px 0 0; color: var(--text-2); }
.suivi-deep__items form { margin: 0; flex: none; }
.suivi-deep__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.suivi-deep__acts form { margin: 0; }

/* People: a header row, then one row per person opening on what happened and the actions. */
.suivi-cols, .suivi-person > summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 0 20px; }
.suivi-cols { display: none; min-height: 36px; border-top: 1px solid var(--line); background: var(--canvas); font-size: 12px; font-weight: 500; color: var(--muted); }
@media (min-width: 720px) {
  .suivi-cols { display: grid; }
  .suivi-cols, .suivi-person > summary { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) 16px; }
}
.suivi-cols + .card__rows { border-top: 1px solid var(--line); }
.suivi-person > summary { min-height: 52px; padding-top: 8px; padding-bottom: 8px; cursor: pointer; list-style: none; scroll-margin-top: 72px; }
.suivi-person > summary::-webkit-details-marker { display: none; }
.suivi-person > summary:hover { background: var(--canvas); }
.suivi-person > summary::after { content: ""; display: none; width: 7px; height: 7px; margin: 0 0 3px 3px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease-out; }
@media (min-width: 720px) { .suivi-person > summary::after { display: block; } }
.suivi-person[open] > summary::after { transform: rotate(-135deg); margin: 3px 0 0 3px; }
.suivi-person__who { font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.suivi-person__who small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.suivi-person__state { justify-self: start; }
.suivi-person__state[data-state="completed"] { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.suivi-person__state[data-state="undeliverable"] { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.suivi-person__next { font-size: 14px; color: var(--muted); }
.suivi-person__next--you { color: var(--wait); font-weight: 500; }
.suivi-person__body { padding: 4px 20px 16px; background: var(--canvas); }
.suivi-log { margin: 0 0 10px; padding: 8px 0 0; list-style: none; font-size: 14px; color: var(--text-2); }
.suivi-log:empty { display: none; }
.suivi-person__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; }
.suivi-person__acts form { margin: 0; }
.suivi-hint--inline { display: inline; margin: 0; text-align: left; }
.suivi-person__acts .suivi-person__remove { margin-left: auto; color: var(--danger); }

/* The organisation as participants describe it (OrganisationMap), folded in its card. */
.suivi-org > summary { cursor: pointer; list-style: none; }
.suivi-org > summary::-webkit-details-marker { display: none; }
.suivi-org > summary::after, .suivi-settings > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 6px 3px 0 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease-out; }
.suivi-org[open] > summary::after, .suivi-settings[open] > summary::after { transform: rotate(-135deg); margin-top: 9px; }
.suivi-org__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.suivi-org__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 20px; font-size: 14px; }
.suivi-org__list li + li { border-top: 1px solid var(--line); }
.suivi-org__list strong { color: var(--ink); font-weight: 500; }
.suivi-org__list span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.suivi-org__blind strong { color: var(--danger); }
.suivi-org__note { margin: 0; padding: 10px 20px 16px; font-size: 14px; }

/* Settings: a card folded on its head; its parts separated by hairlines. */
.suivi-settings > summary { list-style: none; cursor: pointer; }
.suivi-settings > summary::-webkit-details-marker { display: none; }
.suivi-settings__body { border-top: 1px solid var(--line); }
.suivi-settings__body > section { margin: 0; padding: 16px 20px; border-top: 0; }
.suivi-settings__body > section + section { border-top: 1px solid var(--line); }
/* The study's lifecycle, last part of the settings: how long it is kept, then close and delete. */
.study-life { display: grid; gap: 12px; }
.study-life .people-foot { margin: 0; padding: 0; border: 0; }
/* Delete is destructive but rare: outlined in red, not a filled block competing with the page's action. */
.app .study-life .btn--danger { background: var(--paper); color: var(--danger); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs); }
.app .study-life .btn--danger:hover { background: var(--danger-soft); }
.suivi-settings > .reminders:first-of-type { margin-top: 8px; }
.deep-docs__form { display: grid; gap: 8px; margin: 12px 0 0; }

@media (max-width: 719px) {
  .suivi-status { padding: 16px; }
  .suivi-todo li { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .suivi-hint { text-align: left; }
  .suivi-plan > li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 16px; }
  .suivi-cols, .suivi-person > summary { padding-left: 16px; padding-right: 16px; }
  .suivi-person__body { padding: 4px 16px 14px; }
  .suivi-org__list li, .suivi-org__note, .suivi-settings__body > section, .study-life { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Sample studies: what is left of the long studies' stylesheet (their pages were removed on 16 November
   2026; the short studies have css/examples-short.css). These rules serve the links to a sample study and a list on the
   organizer's study page. */

/* The disclosure line: plain text in the ink colour, never faded or hidden (components/sample_study.php). */
.sample-note { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink-2); }

/* Open questions and differences on the organizer's study page (pages/study.php). */
.unknowns li > span { display: grid; gap: 4px; }
.unknowns li small { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* The organizer's link to a sample while nothing is ready (pages/study.php). */
.ws-sample-link { margin: 16px 0 0; font-size: 14px; }
.ws-sample-link .link { padding: 0; color: var(--iris); }

/* Breakpoints shared by every zone. Loaded last. */
/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .res { grid-template-columns: 1fr; }
  .askpanel { position: static; height: auto; min-height: 0; }
  .askfeed { max-height: 460px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .hiw li { grid-template-columns: 56px minmax(0, 1fr); }
  .hiw img { grid-column: 2; }
  .deep-grid { grid-template-columns: 1fr; }
}
/* The header's links stay on one line (components.css). French labels are longer: with five links, the language
   switch and two buttons they no longer fit under about 1200px, so from 1180px down the links move into the menu. */
@media (max-width: 1280px) {
  .topbar { gap: 12px; }
  .nav a, .nav button { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 1180px) {
  .nav > a:not(.nav__dark):not(.nav__soft):not(.avatar) { display: none; }
  .navmenu { display: block; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { padding: 14px 16px; }
  .nav > a:not(.nav__dark):not(.nav__soft):not(.avatar) { display: none; }
  .navmenu { display: block; }
  .sec__head { flex-direction: column; gap: 4px; }
  .notice-bar { display: none; }
  .hero { margin: 0 8px; border-radius: 28px; padding-bottom: 40px; }
  .hero__intro { padding: 32px 16px 0; }
  .stage { margin-top: 36px; padding: 0 8px; }
  .composer { padding: 8px 8px 8px 18px; border-radius: 24px; }
  .stage .composer { margin: 0 6px; }
  .stage .composer textarea { font-size: 17px; min-height: 76px; padding: 12px 0; }
  .icon-btn { width: 44px; height: 44px; }
  .send { width: 50px; height: 50px; }
  .photo { min-height: 560px; border-radius: 26px; }
  .photo__card { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
  .examples { padding: 0 16px; justify-content: flex-start; }
  .examples__label { text-align: left; }
  .wrap { padding: 0 20px; }
  .statement { padding-top: 80px; }
  .audiences__grid, .steps, .rounds, .deep-band ul, .versus, .promises { grid-template-columns: 1fr; }
  .closing { margin: 72px 8px 8px; border-radius: 28px; padding: 56px 20px; }
  .stepper { padding: 0 16px 14px; }
  /* Four labelled steps are 535px wide: on a phone only the current step keeps its label, the others their number. */
  .stepper li:not(.is-current) { font-size: 0; gap: 0; }
  .stepper li + li::after { width: 20px; }
  /* iOS Safari zooms into any field under 16px on focus. */
  .dictation-panel select { font-size: 16px; }
  /* The consent bar is the first thing a visitor from an ad sees: kept to a strip, so the question stays in view. */
  .analytics-choice { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); gap: 8px 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
  .analytics-choice > p { flex: 1 1 60%; }
  .analytics-choice div { width: 100%; }
  .analytics-choice .btn { flex: 1; justify-content: center; }
  .flow { padding: 32px 16px 40px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions__main { flex-direction: column-reverse; }
  .actions__main .btn { width: 100%; }
  .reassure { text-align: center; }
  .depth { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .enterprise, .org-head, .res__head, .callout, .nextstep { flex-direction: column; align-items: flex-start; }
  .study { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .study__act { flex-direction: row; align-items: center; justify-content: space-between; }
  .res { padding: 24px 16px 40px; }
  .answer { padding: 24px 20px; }
  .deep-band { padding: 28px 20px; }
  .guest { padding: 16px 12px 40px; }
  .guest__card { padding: 24px 20px; }
  .msg { max-width: 92%; }
  .chat, .chat-status { padding-left: 16px; padding-right: 16px; }
  .chat-bar { padding-left: 12px; padding-right: 12px; }
  .chat-head .topbar { padding: 8px 16px; }
  .chat-tools > span:first-child { display: none; }
  .chat-status__title .pill { display: none; }
  .namecard__row { grid-template-columns: 1fr; }
  .tsheet { position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: auto; padding: 20px 20px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; animation: sheet .22s ease-out both; }
  .tsheet::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 999px; background: var(--line-2); }
  .tsheet-backdrop { position: fixed; inset: 0; z-index: 19; display: block; background: rgba(20, 22, 31,.35); }
  .tsheet-backdrop[hidden] { display: none; }
  .chat-status__title { display: none; }
  .chat-status__right { flex: 1; justify-content: space-between; }
  .tsheet { z-index: 70; } .tsheet-backdrop { z-index: 69; }
  .suggest { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 10px; padding: 0 12px; scrollbar-width: none; }
  .suggest button { flex: none; white-space: nowrap; }
}
/* Phones (recette, 14 November 2026: the header ran off a 390 px screen). The header keeps the menu, the language
   switch, one button and the account; the brand keeps its mark (its link is labelled), "My engagements" its icon (the
   words stay for screen readers), and every piece is a little tighter: it fits 360 px in both languages. */
@media (max-width: 520px) {
  .topbar, .screen--app .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .topbar .brand { flex: 0 0 auto; }
  .topbar .brand__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .nav { min-width: 0; gap: 2px; }
  .topbar .lang-switch--header { margin: 0 2px; }
  .topbar .lang-switch .lang-switch__item { min-width: 28px; padding: 5px 7px; }
  .topbar .navmenu__toggle { width: 40px; height: 40px; }
  .topbar .nav .nav__dark, .is-violet .topbar .nav .nav__dark { margin-left: 2px; padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  .topbar .nav .nav__soft { margin-left: 2px; padding: 10px 12px; }
  .topbar .nav .nav__soft .nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .account { margin-left: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Clarity pass (audit of 12 Nov 2026). Last zone of the bundle: it re-states the hierarchy of the application screens
   (the creation flow) on the scale in tokens.css, without changing the brand: same faces, same
   iris, same restraint. Three rules run through it:
   1. six type sizes (--fs-12 … --fs-36) and two weights (400, 600), so that two levels never differ by half a pixel;
   2. what the reader must see first carries the weight (the answer, the count of people, the topic to check);
   3. iris is kept for the primary action, the active state, links and proportion bars.
   The public pages (home, pricing, resources) are not touched. */

/* ---------- Shared: surfaces, fields, headings of the flow ---------- */
main.flow { --line: var(--card-line); }
.flow h1 { font-size: var(--fs-28); line-height: 1.2; letter-spacing: -.02em; }
.flow .h-sans { font-size: var(--fs-20); }
.flow .meta { font-size: var(--fs-16); }
.flow .input, .flow .emails, .flow .ask__field { border-color: var(--field-line); }
.flow .input { min-height: 46px; font-size: var(--fs-16); }
.flow .input--area { min-height: 110px; }
.flow .field label, .flow .field .label { font-size: var(--fs-14); font-weight: 600; }
.flow .help, .flow .small { font-size: var(--fs-14); }
.tflow__lead { margin-top: 10px; font-size: var(--fs-16); color: var(--text-2); }
.tflow__cover { font-size: var(--fs-14); }
.tflow__note { margin-left: 0; font-size: var(--fs-14); }

/* ---------- Review step (/studies/{id}/outcomes): five topics readable in one look ---------- */
.tflow h1 { margin-top: 28px; }
.tflow .tmeta { margin-top: 14px; font-size: var(--fs-14); }
.tflow .tmeta strong { font-weight: 600; }
.tflow .tmeta span { font-size: var(--fs-14); color: var(--text-2); }
.tpath { margin-top: 24px; }
.tpath::before, .tpath .group::before { display: none; }
.tpath .group { gap: 6px; margin: 0 0 20px; padding-left: 0; }
.tpath .group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0 0 2px; }
.tpath .group__head h2 { font: 600 14px/1.3 var(--sans); font-stretch: 100%; letter-spacing: 0; color: var(--text-2); }
.tpath .group__detail { margin: 0; font-size: var(--fs-12); color: var(--muted); }
.tpath .topic { flex-wrap: nowrap; min-height: 48px; padding: 2px 4px 2px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--card-line); }
.tpath .topic:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--field-line); }
.tpath .topic:focus-within { box-shadow: inset 0 0 0 1.5px var(--iris); }
.tpath .topic textarea { padding: 8px 0; font: 600 var(--fs-16)/1.4 var(--sans); }
.tpath .topic.is-off textarea, .tpath .topic:has(input[data-topic-keep]:not(:checked)) textarea { font-weight: 400; }
.tpath .topic__cover { order: 2; flex: 0 0 auto; padding: 0; }
.tpath .topic__toggle, .tpath .topic > .topic__x { order: 3; }
.tpath .topic__select { min-height: 40px; padding-left: 10px; border-color: var(--card-line); border-radius: 10px; font-size: var(--fs-14); color: var(--text-2); }
.tadd { width: 100%; margin-left: 0; padding: 12px 14px; border-color: var(--field-line); border-radius: 12px; font-size: var(--fs-16); }
/* The optional test is an outlined button before the one primary action, inviting (spec 2026-11-16, decision 4). */
.btn.ttry { min-height: 50px; padding: 0 22px; font: 500 var(--fs-16)/1 var(--sans); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.btn.ttry:hover, .btn.ttry:focus-visible { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 600px) {
  .tpath .topic { flex-wrap: wrap; }
  .tpath .topic__cover { order: 4; flex: 0 0 100%; padding: 0 0 6px; }
}

/* ---------- People step (/studies/{id}/invitations) ---------- */
/* The preview shows what a person receives; its button is not an action of this page, so it does not look like one. */
.iprev .mail .btn { background: var(--haze); color: var(--text-2); pointer-events: none; }
.iprev h2 { font-size: var(--fs-20); }


/* ---------- Remaining text of the creation flow, put on the scale ----------
   Labels and metadata: 12. Secondary text, controls and tables: 14. Reading text and names: 16. */
.flow .back { font-size: var(--fs-14); }
.flow .ask__text, .flow .ask__field, .tflow__ask .ask__text { font-size: var(--fs-16); }

.iflow .iquota, .iflow .iquota__meter span { font-size: var(--fs-12); }
.iflow .meta span { font-size: var(--fs-14); }
.iflow .sets h2 { font-size: var(--fs-14); font-weight: 600; }
.iflow .set__name { font-size: var(--fs-16); font-weight: 600; }
.iflow .set__val, .iflow .set__edit, .iflow .sets__fact, .iflow .sets__fact span, .iflow .set__body li { font-size: var(--fs-14); }
.iflow .check, .iflow .consent-check, .iflow .consent-check span, .iflow .iflow__terms a { font-size: var(--fs-14); }
.iflow .privacy-short > summary { font-size: var(--fs-14); font-weight: 600; }
.iprev .mail, .iprev .mail p { font-size: var(--fs-14); }
.iprev .mail strong { font-weight: 600; }
.iflow small, .iprev small, .iprev .mail__from small { font-size: var(--fs-12); }
.iflow .privacy-short li { font-size: var(--fs-14); }
.iflow strong, .iprev strong { font-size: inherit; }

/* ---------- Canvas and surfaces of the creation flow ----------
   The page is a quiet grey canvas (--haze, the canvas the report already uses); white is kept for what the person
   reads closely or acts on: the header, the question box, each topic, each field, the preview. So a white surface
   means "this is the object", instead of everything sitting white on white. */
.screen:has(> main.flow) { background: var(--haze); }
.screen:has(> main.flow) .flow-top { background: var(--paper); }
.flow .ask { border: 1px solid var(--card-line); background: var(--paper); }
.flow .sets { border-color: var(--card-line); background: var(--paper); }
.flow .unknowns li, .tadd { background: var(--paper); }
.tadd:hover { background: var(--iris-soft); }
.iprev { border: 1px solid var(--card-line); background: var(--paper); }
.iprev .mail { border: 1px solid var(--card-line); box-shadow: none; }
.flow .check input, .flow .consent-check input { background: var(--paper); }
.screen:has(> main.flow) .site-footer, .screen:has(> main.flow) > footer { background: var(--paper); }

/* ---------- The signed-in shell (back-office system, 20 November 2026) ----------
   Modelled on shadcn/ui's conventions, in Wholesight's own type (Archivo) and violet: neutral greys, 14px interface
   text, 1px #e5e5e5 borders, white cards with a faint shadow on a near-white canvas, tabs as a grey track with the
   current one raised in white, compact buttons (36px, 32px small; 44px on touch screens), badges for counts and states.
   Hierarchy comes from surfaces and clear steps (page title 24/600, card title 16/600, text 14/400, meta 13 muted).
   The violet is the primary action, links and the current item; amber what waits on the consultant.
   The primitives are defined once here and used everywhere in the app: .card, .badge, .seg (tabs), .btn, .input,
   .tbl (tables), .progress. One side gutter (--gutter) for every left edge.
   Full sidebar from 1200px, a 64px rail from 768px, a drawer below (works without JavaScript through :target;
   shell.js adds Esc and focus return). Last zone of the bundle: it wins over the shared components inside .app. */
html:has(body.app) { scroll-padding-top: 72px; }
body.app {
  --ink: #0a0a0a; --ink-2: #171717; --text-2: #525252; --muted: #737373;
  --line: #e5e5e5; --line-2: #d4d4d4; --card-line: #e5e5e5; --haze: #f5f5f5; --canvas: #fafafa;
  --radius: 8px; --radius-card: 12px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  background: var(--canvas); font-size: 14px; line-height: 1.5;
}
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.app-shell--bare { grid-template-columns: minmax(0, 1fr); }

/* Headings inside the app read as structure, not display: normal width, semibold, tight. */
.app :where(h1, h2, h3, h4) { font-stretch: 100%; font-weight: 600; letter-spacing: -0.015em; }

/* Buttons: default 36px, small 32px, 14px medium; outline (btn--ghost) is white with a border and a faint shadow. */
.app .btn { min-height: 36px; padding: 0 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; gap: 8px; }
.app .btn--small { min-height: 32px; padding: 0 12px; font-size: 14px; }
.app .btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs); }
.app .btn--ghost:hover { background: var(--haze); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs); }
.app .btn--primary { background: var(--iris); color: #fff; box-shadow: var(--shadow-xs); }
.app .btn--primary:hover { background: var(--iris-hover); }
.app .btn--icon { width: 36px; padding: 0; justify-content: center; }
.app .btn--small.btn--icon { width: 32px; }
@media (pointer: coarse) { .app .btn, .app .btn--small { min-height: 44px; } .app .btn--icon, .app .btn--small.btn--icon { width: 44px; } }
.app .link { padding: 0; color: var(--iris); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.app .link:hover { color: var(--iris-hover); }
.app .input { min-height: 36px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--paper); font-size: 14px; box-shadow: var(--shadow-xs); }
.app .input:focus { border-color: var(--iris); box-shadow: 0 0 0 3px rgba(68, 51, 255, .18); }
.app .notice { border-radius: var(--radius); font-size: 14px; }
.app .notice--wait { background: var(--wait-soft); color: #5e3d00; }
/* A confirmation reads as a quiet alert: white, bordered, the check in green. */
.app .notice--success { border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-xs); }
.app .notice--success svg { color: var(--ok); }
/* Selects: the field's look with one drawn chevron. */
.app select.input { appearance: none; padding-right: 32px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
/* A flash message opening a page stands apart from the title under it. */
.app-main > .notice:first-child { margin: 0 0 20px; }
.app .help { font-size: 14px; color: var(--muted); }
.app .muted { color: var(--muted); }
.app .small { font-size: 14px; }
.app .h3 { font-size: 16px; }
.app meter.bar { height: 6px; border-radius: 3px; }
.app meter.bar::-webkit-meter-bar { height: 6px; border-radius: 3px; }
.app :is(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.app ::selection { background: #d6d1ff; color: var(--ink); }

/* Card: the one container. A head (title 16/600, description 14 muted, actions at right), a body, or rows that run
   edge to edge separated by hairlines. */
.card { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); scroll-margin-top: 72px; }
.card + .card { margin-top: 16px; }
.card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding: 18px 20px; }
.card__head--rule { border-bottom: 1px solid var(--line); }
.card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card__desc { flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.card__head > div > .card__desc { flex-basis: auto; }
.card__body { padding: 0 20px 20px; }
.card__head--rule + .card__body { padding-top: 18px; }
.card__rows > * + * { border-top: 1px solid var(--line); }
.card__head + .card__rows { border-top: 1px solid var(--line); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.card__quiet { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Badge: counts and states, 12px medium on a pill. */
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; vertical-align: middle; }
.badge--soft { border-color: transparent; background: var(--haze); color: var(--text-2); }
.badge--ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.badge--wait { border-color: transparent; background: var(--wait-soft); color: var(--wait); }
.badge--danger { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.badge--iris { border-color: transparent; background: var(--iris-soft); color: var(--iris-hover); }

/* Tabs (.seg): a grey track, the current item raised in white. Links, so they work without JavaScript. */
.seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--haze); }
.seg > a, .seg > span > a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: var(--radius); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--text-2); text-decoration: none; }
.seg > a:hover, .seg > span > a:hover { color: var(--ink); }
.seg > a :is(span, b):not(.badge), .seg > span > a :is(span, b):not(.badge) { font-size: 12px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.seg a[aria-current] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (pointer: coarse) { .seg > a, .seg > span > a { min-height: 40px; } }

/* Progress: a rounded track. */
.progress { display: flex; overflow: hidden; height: 8px; border-radius: 999px; background: var(--haze); }

/* ---------- Sidebar ---------- */
.side { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; gap: 8px; height: 100vh; height: 100dvh; padding: 12px 12px 12px; border-right: 1px solid var(--line); background: var(--canvas); color: var(--ink); }
.side__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side__firm { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 44px; padding: 6px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.side__firm:hover { background: #f0f0f0; }
.side__logo { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.side__logo--brand { border: 0; background: none; }
.side__logo--image { overflow: hidden; width: auto; min-width: 34px; max-width: 104px; padding: 3px 5px; background: #fff; }
.side__logo--image img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
/* A wide logo sits on its own line, the firm's name in full under it. */
.side__firm--logo { flex-direction: column; align-items: flex-start; gap: 6px; }
.side__firm--logo .side__logo--image { height: auto; max-width: 168px; }
.side__firm--logo .side__logo--image img { height: 34px; }
.side__hint--logo { margin-left: 6px; }
/* In the 64px rail the logo keeps the square slot. */
@media (min-width: 768px) and (max-width: 1199px) {
  .side__firm--logo { flex-direction: row; align-items: center; }
  .side__logo--image, .side__firm--logo .side__logo--image { width: 34px; max-width: 34px; height: 34px; padding: 3px; }
  .side__firm--logo .side__logo--image img { height: 100%; }
}
.side__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.25; }
.side__hint { display: block; margin: -2px 6px 0 48px; font-size: 12px; line-height: 1.35; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.side__hint:hover { color: var(--ink); text-decoration-color: currentColor; }
.side__close { display: none; }
.side__body { flex: 1 1 auto; min-height: 0; margin: 0 -4px; padding: 8px 4px 4px; overflow-y: auto; }
.app .side__new { justify-content: flex-start; width: 100%; margin: 0 0 16px; }
.side__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.side__item { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 8px; border: 0; border-radius: var(--radius); background: none; font: 400 14px/1.2 var(--sans); text-align: left; text-decoration: none; color: var(--ink-2); cursor: pointer; }
.side__item .icon { flex: none; color: var(--muted); }
.side__item:hover { background: #f0f0f0; color: var(--ink); }
.side__item[aria-current="page"] { background: #ededed; font-weight: 500; color: var(--ink); }
.side__item[aria-current="page"] .icon { color: var(--iris); }

.side__foot { display: grid; gap: 8px; flex: none; padding-top: 10px; border-top: 1px solid var(--line); }
.side__account { position: relative; }
.side__me { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius); list-style: none; cursor: pointer; }
.side__me::-webkit-details-marker { display: none; }
.side__me:hover, .side__account[open] .side__me { background: #f0f0f0; }
.side__avatar { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--radius); background: var(--ink); font-size: 12px; font-weight: 600; color: #fff; }
.side__who { display: grid; gap: 1px; min-width: 0; }
.side__who strong, .side__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__who strong { font-size: 14px; font-weight: 500; }
.side__who small { font-size: 12px; color: var(--muted); }
.side__panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 50; display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 12px 32px -16px rgba(20, 22, 31, .35); }
.side__panel .lang-switch { justify-self: start; margin: 0; }
.side__panel form { margin: 0; }

/* ---------- Main column and top bar ---------- */
.app-col { display: flex; flex-direction: column; min-width: 0; }
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.appbar__menu, .appbar__new { display: none; }
.appbar__home { display: grid; flex: none; text-decoration: none; }
.crumbs { flex: 1; min-width: 0; }
.crumbs ol { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* The current page gives way first: ancestors keep their width (a long mission name is capped, not the word Missions). */
.crumbs li:not(:last-child) { flex: none; max-width: 18em; }
.crumbs li:first-child { max-width: none; }
.crumbs li:last-child { flex: 0 1 auto; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.qchip { display: inline-flex; align-items: center; flex: none; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--text-2); }
.qchip:hover { border-color: var(--line-2); color: var(--ink); }
.qchip__short { display: none; }
/* The lists and tables use the whole width a screen gives, one gutter from the sidebar; forms and prose keep their own
   measure (.pform, 70ch). Settings-like pages stay one narrow column. */
.app-main { width: 100%; padding: 28px var(--gutter) 80px; }
.app-main--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.app-shell--bare .app-main { margin: 0 auto; }

/* ---------- Page header, next step, sections ---------- */
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.phead__text { min-width: 0; }
.phead h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.phead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.phead__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: none; }

/* The next step: one sentence in ink and the page's one filled button. */
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.next__text { flex: 1 1 360px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.next__wait, .psec__title .next__wait { display: inline-flex; align-items: center; min-height: 22px; margin-right: 8px; padding: 0 8px; border-radius: 999px; background: var(--wait-soft); font-size: 12px; font-weight: 500; color: var(--wait); vertical-align: 1px; }
.next__act { flex: none; margin: 0; }

/* On the study page the next step is a band under the study bar, across the whole width. */
.screen--app > .next { flex: none; margin: 0; padding: 10px var(--gutter); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); box-shadow: none; }

.pnav { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 20px; padding: 3px; border-radius: 10px; background: var(--haze); }
.pnav a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: var(--radius); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-2); }
.pnav a:hover { color: var(--ink); }
.psec { margin-top: 32px; padding-top: 0; scroll-margin-top: 72px; }
.psec--first, .phead + .psec, .next + .psec, .pnav + .psec { margin-top: 0; }
.psec__head { margin-bottom: 12px; }
.psec__head h2, .psec__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 1.3; color: var(--ink); }
.psec__head p { max-width: 70ch; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.psec.psec--alert { padding: 18px 20px 6px; border: 1px solid #f3dfb2; border-radius: var(--radius-card); background: var(--wait-soft); }
.pcount { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--wait-soft); font-size: 12px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--wait); }
.psub { margin-top: 28px; scroll-margin-top: 72px; }
.psub h3, .pform h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; font-stretch: 100%; color: var(--ink); }
.pquiet { margin: 12px 0 0; font-size: 14px; }
.pquiet .link { color: var(--text-2); }
.pfoot { margin: 32px 0 0; font-size: 14px; color: var(--muted); }
/* A form revealed on demand (the mission's new study): the header button links to it. Closed, it is hidden until it
   is the URL's target (works without JavaScript) or shell.js opens it. */
.preveal { margin-top: 24px; scroll-margin-top: 72px; }
.preveal--closed:not(:target):not(.is-open) { display: none; }

/* "To do" (WorkQueue): a card, one action per row. */
.attn { margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.attn__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.attn__item { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 8px 20px; }
.attn__item + .attn__item { border-top: 1px solid var(--line); }
.attn__item p { flex: 1; margin: 0; font-size: 14px; color: var(--text-2); }
.attn__item strong { color: var(--ink); font-weight: 600; }
.attn .psec__title { padding: 16px 20px; font-size: 16px; }
.attn__none { margin: 0; padding: 0 20px 16px; font-size: 14px; color: var(--muted); }
.attn__more summary { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.attn__more .attn__list { margin-top: 0; }

/* Help (/help): a list of topics, then one short section per topic ending on its screen; the "?" beside a complex part. */
.help-toc ul { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.help-toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; }
.help-toc a:hover { border-color: var(--iris); color: var(--iris-hover); }
.help-topic, .help-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.help-topic h2, .help-contact h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; color: var(--ink); }
.help-topic p, .help-contact p { max-width: 68ch; margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.help-topic:target h2 { color: var(--iris-hover); }
.help-topic__go .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.help-contact .btn { margin-top: 6px; }
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); vertical-align: middle; text-decoration: none; }
.help-q:hover, .help-q:focus-visible { color: var(--iris-hover); background: var(--iris-soft); }

/* Empty state: words on the sheet, the action is in the sidebar. */
.empty { max-width: 640px; margin: 8px 0; }
.empty h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.empty p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.empty p + p { font-size: 14px; }

/* ---------- Tables: a card, a muted header row, 52px rows, the name's link stretched over the row ---------- */
/* Search, filters and sort of a list (WorkspaceQuery): one quiet row above the table, a GET form. */
.lfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; }
.lfilter .input { width: auto; min-height: 36px; padding: 0 12px; font-size: 14px; }
.lfilter__search { flex: 1 1 260px; max-width: 420px; }
.lfilter__search .input { width: 100%; }
.lfilter select.input { padding-right: 32px; }
.lfilter__reset { font-size: 14px; color: var(--text-2); }
.lfilter__count { margin: -4px 0 12px; font-size: 14px; color: var(--text-2); }
.lfilter__none { margin: 8px 0 24px; font-size: 14px; color: var(--muted); }
.tbl__sort { color: inherit; text-decoration: none; }
.tbl__sort:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
th[aria-sort="ascending"] .tbl__sort, th[aria-sort="descending"] .tbl__sort { color: var(--ink); }
.tbl-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-xs); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl thead th { height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--canvas); font-size: 14px; font-weight: 500; text-align: left; white-space: nowrap; color: var(--muted); }
.tbl td, .tbl tbody th { height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; color: var(--text-2); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl__row { position: relative; }
.tbl__row:hover { background: var(--canvas); }
.tbl__name { min-width: 200px; font-size: 14px; font-weight: 500 !important; color: var(--ink) !important; }
.tbl__email { min-width: 0; overflow-wrap: anywhere; }
.tbl__link { color: var(--ink); text-decoration: none; }
.tbl__link::after { content: ""; position: absolute; inset: 0; }
.tbl__row:hover .tbl__link, .tbl__link:hover { color: var(--iris); text-decoration: underline; text-underline-offset: 3px; }
.tbl__link:focus-visible { outline: none; }
.tbl__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 6px; }
/* Links and controls inside a row stay clickable above the stretched link. */
.tbl__sub, .tbl .qmenu, .tbl .link, .tbl__go, .tbl form { position: relative; z-index: 1; }
/* An open row menu sits above the next rows' menus, which share its z-index. */
.tbl .qmenu[open] { z-index: 2; }
.tbl__sub { color: var(--text-2); text-decoration: none; }
.tbl__sub:hover { color: var(--ink); text-decoration: underline; }
.tbl__num { white-space: nowrap; }
.tbl__next { width: 1%; white-space: nowrap; }
.tbl__go { font-size: 14px; font-weight: 500; color: var(--iris); text-decoration: none; }
.tbl__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl__end { text-align: right !important; white-space: nowrap; }
.tbl__finding { width: 34%; min-width: 240px; }
/* A mission's studies have seven columns: tighter cells keep the row menu inside the card from 1280px up. */
.tbl--ws thead th, .tbl--ws td, .tbl--ws tbody th { padding-left: 12px; padding-right: 12px; }
.tbl--ws .tbl__name { min-width: 150px; }
.tbl--ws .tbl__finding { min-width: 180px; }
/* The main finding: two lines at most, the whole sentence in its title on hover. */
.tbl__clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }

/* Progress: interviews done out of people invited, one segment per person. */
.prog { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); }
/* One bar, whatever the number of people: the segments touch, the track is rounded. */
.prog__bar { display: inline-flex; overflow: hidden; width: 84px; height: 6px; border-radius: 999px; background: var(--haze); }
.prog__bar i { flex: 1; }
.prog__bar i.is-done { background: var(--iris); }

/* Status: a badge; amber only for what waits on the consultant. */
.stat { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.stat--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.stat--done, .stat--completed { color: var(--muted); }
.stat--preparing, .stat--draft, .stat--failed { border-color: transparent; background: var(--wait-soft); color: var(--wait); }

/* ---------- Forms in the shell ---------- */
.pform { max-width: 640px; }
.pform .field { margin-top: 18px; }
.pform > input[type="hidden"]:first-child + .field { margin-top: 0; }
.pform .field label { font-size: 14px; font-weight: 500; }
.pform .input { min-height: 36px; }
.pform .input--area { min-height: 88px; padding-top: 10px; padding-bottom: 10px; }
.pform .help { margin: 6px 0 0; }
.pform__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pform--card { margin-top: 20px; padding: 24px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.pform--card h3 + .field, .pform--card h3 + .mnote + .field { margin-top: 14px; }

/* Quiet menus (exports, row actions): native <details>, closed by Esc and outside clicks (site.js). */
.qmenu { position: relative; display: inline-block; }
.qmenu > summary { list-style: none; cursor: pointer; }
.qmenu > summary::-webkit-details-marker { display: none; }
.qmenu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; gap: 2px; width: max-content; min-width: 200px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 12px 32px -16px rgba(20, 22, 31, .35); text-align: left; white-space: normal; }
.qmenu__item { display: block; padding: 7px 8px; border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--ink); }
.qmenu__item:hover { background: var(--haze); }
.qmenu__dots { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--muted); }
.qmenu__dots:hover, .qmenu[open] .qmenu__dots { background: var(--haze); color: var(--ink); }
.qmenu--row .qmenu__panel { min-width: 280px; padding: 12px; }
.qmenu__form { display: grid; gap: 2px; margin: 0; }
button.qmenu__item { width: 100%; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.qmenu__note { margin: 0 10px 6px; font-size: 14px; color: var(--muted); }
.qmenu__item--danger { color: var(--danger); }
button.qmenu__item:disabled { color: var(--muted); background: none; cursor: default; }
.qmenu .mws__copy { display: grid; gap: 8px; margin: 0; }
.qmenu .mws__copy label { font-size: 14px; font-weight: 600; color: var(--ink); }
.qmenu .mws__copy .input { min-height: 40px; }
.qmenu .mws__copy .help { margin: 0; }

/* The public header, signed in: one way back into the workspace. */
.nav .nav__work { margin-left: 6px; padding: 9px 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); color: var(--iris); }
.nav .nav__work:hover { box-shadow: inset 0 0 0 1px var(--iris); }

/* ---------- The study page inside the shell: the column fills the window, its panels scroll inside ---------- */
.app .screen--app { flex: 1; height: auto; min-height: 0; }
.app-col--fixed { height: 100vh; height: 100dvh; overflow: hidden; }
.app-main.launch-done { max-width: 560px; margin-left: auto; margin-right: auto; padding-top: 48px; text-align: center; }

/* ---------- The creation flow without the sidebar (Renderer::FLOW_SHELL): the stepper heads a centred column ---------- */
.app-col--flow > .screen { min-height: 0; padding-bottom: 0; background: var(--haze); }
.app-steps { width: 100%; max-width: 824px; margin: 0 auto; padding: 20px 32px 0; }
.app-steps .stepper { max-width: none; margin: 0; padding: 0 0 4px; }
.app-col--flow main.flow { margin: 0 auto; padding: 24px 32px 40px; }
.app-col--flow main.tflow { max-width: 824px; }
.app-col--flow main.iflow { max-width: 1200px; }
.app-col--flow main.center { margin: 0 auto; max-width: 824px; padding: 40px 32px 48px; }
.ibar__why { flex-basis: 100%; order: -1; margin: 0; font-size: 14px; font-weight: 600; color: var(--wait); }

/* 768–1199px: a 64px rail; labels stay for screen readers and in the title. */
@media (max-width: 1199px) {
  :root { --gutter: 24px; }
  .app-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .app-shell--bare { grid-template-columns: minmax(0, 1fr); }
  .side { align-items: center; padding: 12px 8px; }
  .side__firm { justify-content: center; flex: none; width: 48px; padding: 0; }
  .side__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side__hint { display: none; }
  .side__body { display: grid; justify-items: center; align-content: start; width: 100%; }
  .side__top { justify-content: center; }
  .app .side__new { justify-content: center; width: 44px; padding: 0; }
  .side__item { justify-content: center; width: 44px; padding: 0; }
  .side__item[aria-current="page"]::before { left: -10px; }
  .side__list { justify-items: center; }
  .side__foot { justify-items: center; width: 100%; }
  .side__account { width: 100%; display: flex; justify-content: center; }
  .side__me { justify-content: center; width: 44px; padding: 6px 0; }
  /* The panel is wider than the rail: it opens to the right of the avatar, over the page. */
  .side__panel { left: 4px; right: auto; width: 240px; }
  .side__panel .side__item { justify-content: flex-start; width: 100%; padding: 0 10px; white-space: nowrap; }
  .app-main { padding-bottom: 64px; }
  .app-steps { padding: 18px 24px 0; }
  .app-col--flow main.flow, .app-col--flow main.center { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .app-col--fixed { height: auto; overflow: visible; }
  .app .rnav { top: 56px; }
}
/* Under 768px: the sidebar is a drawer, opened by the menu button at the left of the top bar. */
@media (max-width: 767px) {
  .app-shell { display: block; }
  .card__head, .card__body, .card__foot, .card__quiet, .attn__item, .attn .psec__title, .attn__none { padding-left: 16px; padding-right: 16px; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 60; align-items: stretch; width: min(300px, 86vw); padding: 12px; visibility: hidden; transform: translateX(-100%); box-shadow: 0 0 0 100vmax rgba(20, 22, 31, 0); transition: transform .2s ease, visibility 0s linear .2s, box-shadow .2s ease; }
  .side:target, .side.is-open { visibility: visible; transform: none; box-shadow: 0 0 0 100vmax rgba(20, 22, 31, .35); transition: transform .2s ease, box-shadow .2s ease; }
  .side__firm { justify-content: flex-start; flex: 1; width: auto; padding: 6px; }
  .side__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .side__hint { display: block; }
  .side__name { display: -webkit-box; }
  .side__body { display: block; }
  .side__top { justify-content: space-between; }
  .side__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; color: var(--ink); }
  .side__close:hover { background: var(--haze); }
  .app .side__new { justify-content: flex-start; width: 100%; padding: 0 14px; }
  .side__item { justify-content: flex-start; width: 100%; min-height: 44px; padding: 0 10px; }
  .side__item[aria-current="page"]::before { left: -12px; }
  .side__list { justify-items: stretch; }
  .side__foot { justify-items: stretch; }
  .side__account { display: block; }
  .side__me { justify-content: flex-start; width: auto; padding: 6px 8px; }
  .side__panel { right: 0; width: auto; }
  .appbar { gap: 8px; padding: 0 8px 0 4px; }
  /* On a phone the breadcrumb keeps its first and last items: the page's own heading names the rest. */
  .crumbs li:not(:first-child):not(:last-child) { display: none; }
  .crumbs li:first-child { flex: none; }
  .appbar__menu, .appbar__new { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 6px; color: var(--ink); }
  .appbar__new { color: var(--iris); }
  .appbar__menu:hover, .appbar__new:hover { background: var(--haze); }
  .appbar__home { padding-left: 8px; }
  /* The chip keeps a short count ("10/10"); the full sentence stays for screen readers. */
  .qchip__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .qchip__short { display: inline; }
  .app-main { padding-top: 24px; padding-bottom: 56px; }
  .app-steps { padding: 14px 16px 0; }
  .app-col--flow main.flow, .app-col--flow main.center { padding: 20px 16px 32px; }
  /* The header stacks, left-aligned: title, facts, then its quiet actions. */
  .phead { flex-direction: column; align-items: flex-start; gap: 16px; }
  .phead h1 { font-size: 28px; }
  .phead__actions { justify-content: flex-start; }
  .phead .qmenu__panel { left: 0; right: auto; }
  .next__act, .next .btn { width: 100%; }
  .next .btn { justify-content: center; white-space: normal; text-align: center; }
  /* Each row becomes a block: the name, then its facts, each with its label. */
  .tbl-wrap { border-radius: var(--radius-card); }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody { display: block; }
  .tbl tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td, .tbl tbody th { height: auto; padding: 0; border: 0; }
  .tbl tbody > tr > :first-child { flex-basis: 100%; min-width: 0; }
  .tbl__finding { min-width: 0; max-width: 100%; flex-basis: 100%; }
  .tbl__end { margin-left: auto; }
  .tbl tr:has(.tbl__next) .tbl__end { position: absolute; top: 8px; right: 6px; }
  .tbl__next { order: 1; flex-basis: 100%; }
  .tbl td[data-label]::before { content: attr(data-label); font-size: 14px; font-weight: 500; color: var(--muted); }
  .tbl td[data-label] { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
  .tbl__finding[data-label] { display: block; }
  .tbl__finding[data-label]::before { margin-right: 6px; }
  .tbl caption { display: block; padding: 12px 16px 0; }
}
@media (pointer: coarse) {
  .side__item, .qmenu__dots { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .qmenu__dots { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .side, .side:target, .side.is-open { transition: none; }
  html:has(body.app) { scroll-behavior: auto; }
}

/* Read-only access to a firm: actions shown, not usable (the server refuses them too), and one line saying why. */
.btn.is-disabled, a[aria-disabled="true"][data-readonly], summary[aria-disabled="true"][data-readonly] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.readonly-bar { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 24px; font-size: 14px; color: var(--text-2); background: var(--paper); border-bottom: 1px solid var(--card-line); }
