/* Sign-in and invitation pages. The left panel is the Stage register, the form the Desk (docs/brand/SYSTEM.md).
   Every colour, size and duration is a token; foundations come from the generated block. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  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; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2");
  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: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2") format("woff2");
  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; }
/* tokens:begin. Generated from docs/brand/tokens.json by scripts/build-tokens.mjs. Do not edit by hand. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f3; --card: #ffffff; --elev: #ffffff; --fill: #ecece8; --field: #ffffff; --ink: #1c1f23;
  --ink-2: #3f4349; --muted: #5e6268; --faint: #65696f; --line: #e2e2de; --line-strong: #cbcbc6; --control: #8c8f94;
  --teal: #0b7a68; --teal-ink: #0a6b5c; --teal-soft: #e4f3ef; --teal-bright: #43d6bc; --amber: #8a5300;
  --amber-soft: #fdf1dc; --red: #b3261e; --red-soft: #fcebe9; --info: #6a4c93; --info-soft: #f1ecf6;
  --accent: var(--teal-ink); --accent-hover: #085c4f; --accent-fill: var(--ink); --accent-fill-hover: #33373d;
  --accent-ink: #ffffff; --accent-soft: rgb(11 122 104 / 10%); --ok: var(--teal-ink); --ok-bg: var(--teal-soft);
  --bad: var(--red); --bad-bg: var(--red-soft); --flag: var(--amber); --flag-bg: var(--amber-soft); --focus: #0b7a68;
  --press: rgb(0 0 0 / 5%); --scrim: rgb(0 0 0 / 3%); --hl: rgb(0 0 0 / 7%); --knob: #ffffff; --st-ontrack: #5e6268;
  --st-notstarted: #cbcbc6;
  --st-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ramp-0: #e2e2de; --ramp-1: #b9ddd5; --ramp-2: #6fbcac; --ramp-3: #1f8c79; --ramp-4: #0b5e50; --viz-1: #6a4c93;
  --viz-2: #0b7a68; --viz-3: #9a6212; --viz-4: #a23e64; --viz-5: #6b6e73; --viz-grid: #e7e7e3; --stage: #1c1f23;
  --stage-ink: #f5f5f3; --stage-muted: #a3a6ab; --stage-line: rgb(255 255 255 / 10%); --mark-tile: #1c1f23;
  --mark-edge: #3a3d41; --mark-tick: #43d6bc; --cobrand-chip-light: #f5f5f3; --cobrand-chip: transparent;
  --photo-mask: rgb(245 245 243 / 62%); --shadow-raised: 0 1px 2px rgb(28 31 35 / 6%), 0 8px 24px rgb(28 31 35 / 8%);
  --shadow-overlay: 0 2px 6px rgb(28 31 35 / 8%), 0 24px 64px rgb(28 31 35 / 18%);
  --space-0: 2px; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px; --radius-xs: 6px; --radius-s: 8px; --radius-m: 12px;
  --radius-pill: 999px; --tap: 44px; --stroke: 1px; --stroke-2: 2px; --measure: 40em; --page: 880px;
  --page-wide: 1200px; --dim: 0.45;
  --font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; --fs-xs: 12px;
  --fs-label: 13px; --fs-s: 14px; --fs-base: 16px; --fs-read: 17px; --fs-m: 18px; --fs-lead: 19px; --fs-l: 21px;
  --fs-sec: 24px; --fs-xl: 28px; --fs-2xl: 34px; --fs-hero-s: 36px; --fs-score: 48px; --fs-hero: 54px;
  --lh-tight: 1.2; --lh: 1.47; --lh-sec: 1.25; --track-tight: -0.02em; --track-display: -0.025em;
  --track-caps: 0.06em; --w-regular: 400; --w-semibold: 600; --w-bold: 700; --dur-1: 120ms; --dur-2: 200ms;
  --dur-3: 320ms; --dur-4: 560ms; --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-settle: linear(0, 0.38 9%, 0.74 19%, 0.95 31%, 1.03 44%, 1.04 52%, 1.01 68%, 1); --stagger: 40ms;
  --rise: 8px; --press-y: 1px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121314; --card: #24272b; --elev: #2e3135; --fill: #0c0d0e; --field: #1b1d20; --ink: #ecedee;
    --ink-2: #cdcfd2; --muted: #b6b9be; --faint: #a3a6ab; --line: #45494f; --line-strong: #5a5e65; --control: #7d8187;
    --teal: #43d6bc; --teal-ink: #43d6bc; --teal-soft: #0f2a2a; --amber: #f2b54a; --amber-soft: #2a2418;
    --red: #ff8a80; --red-soft: #2c1d22; --info: #c3a6e8; --info-soft: #251e2e; --accent-hover: #6be2cc;
    --accent-fill-hover: #ffffff; --accent-ink: #121314; --accent-soft: rgb(67 214 188 / 16%); --focus: #43d6bc;
    --press: rgb(255 255 255 / 8%); --scrim: rgb(255 255 255 / 4%); --hl: rgb(255 255 255 / 12%);
    --st-ontrack: #a3a6ab; --st-notstarted: #5a5e65;
    --st-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4.2' fill='none' stroke='%23121314' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --ramp-0: #2c2e31; --ramp-1: #1d4b48; --ramp-2: #22786a; --ramp-3: #2fae97; --ramp-4: #6be2cc; --viz-1: #c3a6e8;
    --viz-2: #43d6bc; --viz-3: #e6a94a; --viz-4: #e58aae; --viz-5: #a3a6ab; --viz-grid: #26282b; --mark-edge: #4a4d52;
    --cobrand-chip: var(--cobrand-chip-light); --photo-mask: rgb(18 19 20 / 62%);
    --shadow-raised: 0 0 0 1px rgb(255 255 255 / 5%), 0 8px 24px rgb(0 0 0 / 40%);
    --shadow-overlay: 0 0 0 1px rgb(255 255 255 / 7%), 0 24px 64px rgb(0 0 0 / 60%);
  }
}
/* The footer switch (appearance/appearance.js) can choose Dark on a light device: the same values. */
:root[data-theme="dark"] {
    --bg: #121314; --card: #24272b; --elev: #2e3135; --fill: #0c0d0e; --field: #1b1d20; --ink: #ecedee;
    --ink-2: #cdcfd2; --muted: #b6b9be; --faint: #a3a6ab; --line: #45494f; --line-strong: #5a5e65; --control: #7d8187;
    --teal: #43d6bc; --teal-ink: #43d6bc; --teal-soft: #0f2a2a; --amber: #f2b54a; --amber-soft: #2a2418;
    --red: #ff8a80; --red-soft: #2c1d22; --info: #c3a6e8; --info-soft: #251e2e; --accent-hover: #6be2cc;
    --accent-fill-hover: #ffffff; --accent-ink: #121314; --accent-soft: rgb(67 214 188 / 16%); --focus: #43d6bc;
    --press: rgb(255 255 255 / 8%); --scrim: rgb(255 255 255 / 4%); --hl: rgb(255 255 255 / 12%);
    --st-ontrack: #a3a6ab; --st-notstarted: #5a5e65;
    --st-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4.2' fill='none' stroke='%23121314' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --ramp-0: #2c2e31; --ramp-1: #1d4b48; --ramp-2: #22786a; --ramp-3: #2fae97; --ramp-4: #6be2cc; --viz-1: #c3a6e8;
    --viz-2: #43d6bc; --viz-3: #e6a94a; --viz-4: #e58aae; --viz-5: #a3a6ab; --viz-grid: #26282b; --mark-edge: #4a4d52;
    --cobrand-chip: var(--cobrand-chip-light); --photo-mask: rgb(18 19 20 / 62%);
    --shadow-raised: 0 0 0 1px rgb(255 255 255 / 5%), 0 8px 24px rgb(0 0 0 / 40%);
    --shadow-overlay: 0 0 0 1px rgb(255 255 255 / 7%), 0 24px 64px rgb(0 0 0 / 60%);
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --dur-4: 0ms; --stagger: 0ms; --rise: 0px; --press-y: 0px; }
}
/* tokens:end */
:root {
  /* Sizes of the sign-in pages only. Foundations live in the generated block above. */
  --btn-l: 48px; --mark: 52px; --card-w: 420px; --pitch-w: 520px; --fs-code: 26px; --track-code: 0.4em; --code-box-h: 60px; --code-caret-w: 2px; --dur-spin: 0.8s;
  --ring: color-mix(in srgb, var(--focus) 35%, transparent); --spinner-track: var(--line-strong); --spinner-head: var(--ink);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-read)/1.47 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pitch { background: var(--stage); color: var(--stage-ink); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; justify-content: center; gap: var(--space-5); }
.pitch > * { max-width: var(--pitch-w); margin-left: auto; margin-right: auto; width: 100%; }
.logo { display: flex; align-items: center; gap: var(--space-3); margin-block: 0; font-size: var(--fs-l); letter-spacing: -0.01em; }
.logo img { border-radius: var(--radius-s); }
.logo b { font-weight: 700; color: inherit; }
.logo a { display: inline-flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; border-radius: var(--radius-s); }
.logo a:focus-visible, .home a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.home { margin: var(--space-3) 0 0; text-align: center; font-size: var(--fs-label); }
.home a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-2); color: var(--accent); font-weight: 600; text-decoration: none; border-radius: var(--radius-s); }
.home a:hover { background: var(--accent-soft); }
.pitch h2 { margin: var(--space-4) auto 0; font-size: var(--fs-hero-s); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.points { list-style: none; padding: 0; margin: var(--space-2) auto 0; display: grid; gap: var(--space-4); }
.points li { position: relative; padding-left: var(--space-6); color: var(--stage-muted); font-size: var(--fs-s); line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: var(--space-1); top: 0.72em; width: 10px; height: 2px; border-radius: 1px; background: var(--stage-muted); } /* neutral: the tick is kept for proof */
.fine { color: var(--stage-muted); font-size: var(--fs-label); border-top: 1px solid var(--stage-line); padding-top: var(--space-4); margin-top: var(--space-5); }

.card { align-self: center; justify-self: center; width: calc(100% - 2 * var(--space-5)); max-width: var(--card-w); margin: var(--space-6) 0; background: var(--card); border-radius: var(--radius-m); padding: var(--space-6) var(--space-6) var(--space-6); box-shadow: var(--shadow-raised); }
.mark { display: block; width: var(--mark); height: var(--mark); margin: 0 auto var(--space-4); border-radius: var(--radius-m); }
h1 { margin: 0; text-align: center; font-size: var(--fs-xl); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.sub { margin: var(--space-2) 0 var(--space-5); text-align: center; color: var(--muted); font-size: var(--fs-s); }
form { display: flex; flex-direction: column; }
label { font-size: var(--fs-label); font-weight: 600; color: var(--muted); margin: 0 0 var(--space-2) 2px; }
input, select {
  width: 100%; min-height: var(--btn-l); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--field); color: var(--ink);
  font: inherit; margin: 0 0 var(--space-4); transition: border-color var(--dur-1), box-shadow var(--dur-1); -webkit-appearance: none; appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
input[readonly] { color: var(--muted); }
/* The sign-in code as six boxes (as in Esvelia): one real input lies transparent over the boxes, so the code offered by
   iOS or Android from Mail or Messages, paste and password managers keep working and a screen reader reads one field.
   The boxes only draw its value (login.js drawCode). The caret is still, never blinking. */
.codebox { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); margin: 0 0 var(--space-2); }
.cbx { display: grid; place-items: center; min-height: var(--code-box-h); border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--field); color: var(--ink);
  font-size: var(--fs-code); font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color var(--dur-1), box-shadow var(--dur-1), color var(--dur-1); }
.codebox:hover .cbx:not(.filled) { border-color: var(--muted); }
.cbx.active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.cbx.active:empty::after { content: ""; width: var(--code-caret-w); height: 1.1em; border-radius: 1px; background: var(--accent); }
.codebox.busy .cbx { color: var(--muted); }
.codebox.invalid .cbx { border-color: var(--bad); }
.codebox input.code { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: var(--radius-m);
  background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: var(--fs-read); cursor: text; }
.codebox input.code:focus { box-shadow: none; }
.codebox input.code::selection { background: transparent; }
.codebox input.code[readonly] { cursor: progress; }
.code-status { margin: 0 0 var(--space-3); min-height: 1.4em; font-size: var(--fs-label); color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.toggle { position: absolute; right: var(--space-1); top: var(--space-1); height: 40px; min-width: 64px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-s); background: transparent; color: var(--accent); font: 600 14px/1 var(--font); cursor: pointer; }
.toggle:hover, .linkish:hover { background: var(--accent-soft); }
.submit, .secondary {
  position: relative; min-height: var(--btn-l); border-radius: var(--radius-s); font: 600 var(--fs-read)/1 var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--space-3); transition: background var(--dur-1), opacity var(--dur-1), border-color var(--dur-1);
}
/* One outlined button design; the main action has the stronger outline (docs/brand/SYSTEM.md). */
.submit { border: 1px solid var(--ink-2); background: transparent; color: var(--ink); }
.submit:hover { background: var(--press); border-color: var(--ink); }
.submit.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line-strong); }
.submit.quiet:hover { background: var(--accent-soft); }
.secondary { width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.secondary:hover { background: var(--press); }
.submit[disabled], .secondary[disabled] { opacity: 0.7; cursor: progress; }
.toggle:focus-visible, .submit:focus-visible, .secondary:focus-visible, .linkish:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--spinner-track); border-top-color: var(--spinner-head); animation: spin var(--dur-spin) linear infinite; }
.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Cloudflare Turnstile (turnstile/turnstile.js): invisible unless Cloudflare asks for a challenge. */
.human.active { margin-top: var(--space-3); }
.human .error { margin: var(--space-3) 0 0; }
.row { display: flex; justify-content: space-between; gap: var(--space-2); margin: var(--space-3) 0 0; }
.linkish { min-height: 40px; border: 0; background: none; color: var(--accent); font: 600 var(--fs-label)/1 var(--font); cursor: pointer; padding: 0 var(--space-2); border-radius: var(--radius-s); }
.or { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; color: var(--muted); font-size: var(--fs-label); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.error, .ok { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); font-size: var(--fs-s); font-weight: 500; }
.error { background: var(--bad-bg); color: var(--bad); }
.ok { background: var(--ok-bg); color: var(--ok); }
.hint { font-size: var(--fs-label); color: var(--muted); line-height: 1.45; margin: 0 0 var(--space-4); }
details.owner { margin-top: var(--space-5); border-top: 1px solid var(--line-strong); padding-top: var(--space-3); }
details.owner summary { cursor: pointer; color: var(--muted); font-size: var(--fs-label); font-weight: 600; min-height: 40px; display: flex; align-items: center; border-radius: var(--radius-s); }
details.owner form { margin-top: var(--space-3); }
.foot { margin: var(--space-5) 0 0; color: var(--muted); font-size: var(--fs-label); text-align: center; }
.lang { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: var(--space-3) 0 0; }
.lang label { margin: 0; }
.lang select { width: auto; min-height: 40px; margin: 0; padding: var(--space-1) var(--space-6) var(--space-1) var(--space-3); font-size: var(--fs-label); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .pitch { padding: var(--space-6) var(--space-5) var(--space-5); gap: var(--space-3); }
  .pitch h2 { font-size: var(--fs-xl); }
  .points, .fine { display: none; }
  .card { margin: calc(-1 * var(--space-3)) 0 var(--space-6); }
}
@media (max-width: 420px) { .card { padding: var(--space-6) var(--space-5) var(--space-5); width: calc(100% - 2 * var(--space-4)); } h1 { font-size: var(--fs-sec); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } * { transition: none !important; } }
.card.solo { grid-column: 1 / -1; }

/* Appearance switch under the language row (appearance/appearance.css reads the --ap-* tokens). */
:root { --ap-gap: var(--space-2); --ap-pad: 3px; --ap-pill: 999px; --ap-h: 32px; --ap-h-touch: var(--btn-l); --ap-x: var(--space-3); --ap-icon: 14px; --ap-icon-gap: 6px; --ap-fs: var(--fs-label); --ap-w: 600; --ap-dur: var(--dur-1);
  --ap-track: var(--bg); --ap-thumb: var(--card); --ap-ink: var(--ink); --ap-muted: var(--muted); --ap-line: var(--line-strong); --ap-line-strong: var(--line-strong); --ap-ring: var(--ring); }
.ap-row { display: flex; justify-content: center; margin: var(--space-3) 0 0; }

/* Invitation: explicit acceptance of the Terms of Use (shown only while a version must be accepted). Never pre-ticked. */
.terms-check { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-4); }
.terms-check input[type="checkbox"] { flex: none; -webkit-appearance: checkbox; appearance: auto; width: 1.25em; height: 1.25em; min-height: 0; padding: 0; margin: 0.1em 0 0; border-radius: 0; box-shadow: none; accent-color: var(--accent); }
.terms-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.terms-check label { margin: 0; font-weight: 400; color: var(--ink); font-size: var(--fs-label); line-height: 1.45; }
.legal-read a, .foot a { color: var(--accent); }
.legal-read a:hover, .foot a:hover { color: var(--accent-hover); }
/* Connection check page (/check/). */
.check-list { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-2); font-size: var(--fs-s); }
.check-list li { padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--field); }
.check-list .ok { color: var(--ok); } .check-list .bad { color: var(--bad); background: var(--bad-bg); }
#it textarea { width: 100%; font: var(--fs-label)/1.5 var(--font); margin: var(--space-2) 0; }
