/* MAKIINA Cloud account console.
   The same dark showroom as makiina.com (site.css): one black room, cream type
   at controlled opacities, hairlines at low alpha, red only on the wordmark and
   on primary actions. Fonts are self hosted (fonts/OFL.txt), so the page makes
   no third party request. Text never goes below the 0.6 cream tint, which keeps
   every label at WCAG AA contrast on black. */

@font-face { font-family: Inter; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Inter-300.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/JetBrainsMono-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/SpaceGrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/SpaceGrotesk-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --black: #000000;
  --panel: #0a0a0a;
  --cream: #f4f1e9;
  --c90: rgba(244,241,233,0.9);
  --c75: rgba(244,241,233,0.75);
  --c60: rgba(244,241,233,0.62);
  --hair: rgba(244,241,233,0.14);
  --hair-soft: rgba(244,241,233,0.08);
  --hair-strong: rgba(244,241,233,0.34);
  --lift: rgba(244,241,233,0.035);
  --lift-2: rgba(244,241,233,0.06);
  /* Brand red. The fill of primary buttons is a hair darker than the wordmark
     red so white button text passes 4.5:1. */
  --red: #E6332A;
  --red-fill: #DC2E25;
  --red-press: #b32820;
  --red-text: #ff8a7f;

  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Space Grotesk", Inter, system-ui, sans-serif;

  --fs-label: 11px;
  --fs-chrome: 12px;
  --fs-body: 15px;
  --fs-lede: 17px;
  --fs-statement: clamp(20px, 0.9vw + 10px, 24px);
  --fs-display: clamp(30px, 1.5vw + 14px, 38px);
  --track: 0.2em;

  --nav-h: 70px;
  --wm-h: 50px;
  --pad: 48px;
  --radius: 12px;
  --field-h: 50px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--black); color: var(--cream);
  font-family: var(--sans); font-weight: 300; font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Focus is always visible: a cream ring with a gap, readable on black and on red. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 980px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px;
  background: var(--cream); color: var(--black); border-radius: 980px;
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-chrome); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.label, .eyebrow, .nav-a, .btn, .foot, .tag, .k, .rail-k {
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--track); text-transform: uppercase; line-height: 1.4;
}
.eyebrow { color: var(--c60); margin-bottom: 18px; }
.display {
  font-family: var(--disp); font-weight: 600; font-size: var(--fs-display);
  letter-spacing: -0.03em; line-height: 1.05; color: var(--cream);
}
.statement { font-family: var(--disp); font-weight: 500; font-size: var(--fs-statement); letter-spacing: -0.015em; line-height: 1.2; color: var(--cream); }
.lede { font-weight: 300; font-size: var(--fs-lede); line-height: 1.6; color: var(--c75); }
.body { font-weight: 400; color: var(--c90); }
.note { font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--c60); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.dim { color: var(--c60); }
.prose p + p { margin-top: 12px; }
.prose a, .link {
  color: var(--cream); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--hair-strong); transition: text-decoration-color 150ms ease-out;
}
.prose a:hover, .link:hover { text-decoration-color: var(--cream); }
.ticks li { position: relative; padding-left: 22px; color: var(--c90); font-weight: 400; }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--c75); }
strong { font-weight: 500; color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 30px; border-radius: 980px; border: 1px solid transparent;
  font-size: var(--fs-chrome); letter-spacing: 0.18em; line-height: 1; white-space: nowrap;
  background: none; cursor: pointer; text-decoration: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn:active { transform: translateY(0.5px); }
.btn-red { background: var(--red-fill); border-color: var(--red-fill); color: #ffffff; }
.btn-red:hover { background: var(--red-press); border-color: var(--red-press); }
.btn-ghost { border-color: var(--hair-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-quiet { border-color: transparent; color: var(--c75); padding: 0 14px; }
.btn-quiet:hover { color: var(--cream); }
.btn-sm { min-height: 38px; padding: 0 20px; font-size: var(--fs-label); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::after { animation: none; } }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; height: var(--nav-h);
  padding: 0 var(--pad); background: rgba(10,10,10,0.72); border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.wm { height: var(--wm-h); width: calc(var(--wm-h) * 3.333); object-fit: cover; margin-left: calc(var(--wm-h) * -0.067); }
.brand-sub { color: var(--c60); padding-left: 14px; border-left: 1px solid var(--hair); }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-a {
  font-size: var(--fs-chrome); color: var(--c75); padding: 8px 0; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 150ms ease-out; white-space: nowrap;
}
.nav-a:hover { color: var(--cream); }
.nav-a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--c75); }
.nav-end { display: flex; align-items: center; gap: 18px; margin-left: 36px; }
.nav-user { color: var(--c60); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- page ---------- */
main { flex: 1 0 auto; width: 100%; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 72px var(--pad) 96px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 88px var(--pad) 96px; }
.page-head { padding-bottom: 40px; border-bottom: 1px solid var(--hair); }
.page-head .lede { margin-top: 18px; max-width: 62ch; }
.page-head h1:focus { outline: none; }
h1:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }

/* A section: label rail on the left, content on the right (the design system's 180px rail). */
.sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px; padding: 44px 0; border-bottom: 1px solid var(--hair-soft); }
.sec:last-child { border-bottom: 0; }
.rail { padding-top: 4px; }
.rail-k { color: var(--c60); }
.rail-n { display: block; color: var(--c60); margin-bottom: 8px; }
.sec h2 { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; color: var(--cream); margin-bottom: 8px; }
.sec h2 + .note, .sec h2 + p { margin-bottom: 4px; }
.sec-body { min-width: 0; max-width: 640px; }
.sec-body.wide { max-width: none; }
.sub-h { font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--c60); margin: 32px 0 14px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; margin-top: 24px; }
.form.tight { margin-top: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > .label-text, fieldset > legend {
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-chrome); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c75); line-height: 1.3;
}
.hint { font-size: 13px; line-height: 1.5; color: var(--c60); font-weight: 400; }
.input {
  width: 100%; height: var(--field-h); padding: 0 16px; border-radius: var(--radius);
  background: var(--lift); border: 1px solid var(--hair-strong); color: var(--cream);
  font-family: var(--sans); font-size: 16px; font-weight: 400;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.input::placeholder { color: rgba(244,241,233,0.4); }
.input:hover { border-color: rgba(244,241,233,0.5); }
.input:focus { border-color: var(--cream); background: var(--lift-2); outline: none; }
.input:focus-visible { outline: none; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[readonly] { background: transparent; border-style: dashed; color: var(--c75); }
.input.code { font-family: var(--mono); font-weight: 500; letter-spacing: 0.3em; font-size: 20px; text-align: center; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c75) 50%), linear-gradient(135deg, var(--c75) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
select.input option { background: #111; color: var(--cream); }
.input-row { position: relative; }
.input-row .input { padding-right: 76px; }
.reveal {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c75);
}
.reveal:hover { color: var(--cream); }
.field-error { display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 400; color: var(--red-text); }
.field-error::before { content: ""; flex: none; width: 8px; height: 2px; background: var(--red); transform: translateY(-3px); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; color: var(--c90); }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cream); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.form-wide .btn-red { width: 100%; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .btn { min-height: var(--field-h); }

/* ---------- alerts and status ---------- */
.alert {
  border: 1px solid var(--hair); border-top: 2px solid var(--red); border-radius: 4px;
  padding: 16px 18px; background: var(--lift); color: var(--c90); font-weight: 400; font-size: 14px;
}
.alert.ok { border-top-color: var(--cream); }
.alert.info { border-top-color: var(--hair-strong); }
.alert .alert-h { display: block; font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--cream); margin-bottom: 6px; }
.alert:focus { outline: none; }
.alert:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.alert + .form, .alert + .btns { margin-top: 20px; }
* + .alert { margin-top: 20px; }
.status { min-height: 1.4em; font-size: 13px; font-weight: 400; color: var(--c75); }
.status.ok::before { content: ""; display: inline-block; width: 8px; height: 2px; background: var(--cream); margin-right: 10px; vertical-align: middle; }

/* ---------- key value lists ---------- */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; align-items: baseline; }
.kv dt { font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--c60); }
.kv dd { color: var(--c90); font-weight: 400; overflow-wrap: anywhere; }

/* ---------- tags and state dots ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 980px;
  border: 1px solid var(--hair-strong); color: var(--c90); font-size: 10px; letter-spacing: 0.16em; vertical-align: middle; white-space: nowrap;
}
.tag.solid { background: var(--cream); color: var(--black); border-color: var(--cream); }
.tag.warn { border-color: var(--cream); border-style: dashed; color: var(--cream); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--c75); }
.dot.on { background: var(--cream); border-color: var(--cream); box-shadow: 0 0 0 3px rgba(244,241,233,0.12); }
.dot.fault { background: var(--red); border-color: var(--red); }

/* ---------- lists of rows (sessions, members, robots) ---------- */
.rows { border-top: 1px solid var(--hair); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--hair-soft); }
.row-main { flex: 1 1 260px; min-width: 0; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--cream); font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.row-meta { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--c60); font-weight: 400; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.empty { padding: 22px 0; color: var(--c60); font-weight: 400; border-bottom: 1px solid var(--hair-soft); }

/* robots */
.robots { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.robot { padding: 28px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; }
.robot-name { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.robot-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.robot .kv { margin-top: 18px; }
.robot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.robot-session { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.robot-session p { font-weight: 400; color: var(--c90); }

/* ---------- secrets shown once (robot token, recovery codes) ---------- */
.secret {
  display: block; width: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed var(--hair-strong);
  background: var(--lift); font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0.02em;
  color: var(--cream); overflow-wrap: anywhere; user-select: all;
}
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 16px 18px; border: 1px dashed var(--hair-strong); border-radius: var(--radius); font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; }
.qr { width: 196px; height: 196px; padding: 12px; background: #ffffff; border-radius: 8px; }
.qr svg { width: 100%; height: 100%; }
.totp-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 32px; align-items: start; margin-top: 20px; }

/* ---------- dialogs ---------- */
dialog.dlg {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
  background: var(--panel); color: var(--cream); border: 1px solid var(--hair-strong); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
dialog.dlg::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg-in { padding: 28px 28px 24px; }
.dlg h2 { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.dlg .btns { justify-content: flex-end; }

/* ---------- loading ---------- */
.loading { display: flex; align-items: center; gap: 12px; padding: 120px var(--pad); justify-content: center; color: var(--c60); }
.loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--c60); border-right-color: transparent; animation: spin 800ms linear infinite; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding: 28px var(--pad); border-top: 1px solid var(--hair); color: var(--c60); }
.foot a { text-decoration: none; transition: color 150ms ease-out; padding: 4px 0; }
.foot a:hover { color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-biz { flex-basis: 100%; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: normal; text-transform: none; line-height: 1.7; color: var(--c60); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .nav-links { gap: 24px; }
  .nav-end { margin-left: 24px; }
  .nav-user { display: none; }
}
@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .rail { padding-top: 0; }
  .rail-n { display: inline; margin: 0 10px 0 0; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; --nav-h: 108px; --wm-h: 40px; }
  .nav { flex-wrap: wrap; height: auto; padding-top: 4px; }
  .brand { padding: 7px 0; }
  .brand-sub { display: none; }
  .nav-end { margin-left: auto; gap: 8px; }
  .nav-links {
    order: 3; flex-basis: 100%; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad); height: 46px; gap: 18px; border-top: 1px solid var(--hair-soft);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-a { font-size: var(--fs-label); letter-spacing: 0.12em; }
  .wrap { padding: 40px var(--pad) 72px; }
  .narrow { padding: 48px var(--pad) 72px; }
  .page-head { padding-bottom: 28px; }
  .form-wide .btn, .stack-sm .btn { width: 100%; }
  .robot { grid-template-columns: 1fr; }
  .robot-side { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .totp-setup { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd + dt { margin-top: 10px; }
  .row-actions { width: 100%; }
  .codes { grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 14px; }
  .dlg-in { padding: 24px 20px 20px; }
  .dlg .btns .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .btn { padding: 0 22px; }
  .codes { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .btn, .input, .tag, .alert { border: 1px solid ButtonText; }
  .dot.on { background: ButtonText; }
}
.mt { margin-top: 18px; }
.textbtn { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; font-weight: 400; }
.role-select { width: auto; height: 38px; padding-left: 14px; font-size: 14px; }

/* robots grouped by organization, admin tools in a disclosure */
.group + .group { margin-top: 56px; }
.group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-bottom: 18px; }
.group-name { font-family: var(--disp); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.robot { grid-template-columns: minmax(0, 1fr); }
details.tools { margin-top: 18px; border-top: 1px solid var(--hair-soft); }
details.tools > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 14px 0 4px;
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--track); color: var(--c75);
}
details.tools > summary::-webkit-details-marker { display: none; }
details.tools > summary::after {
  content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 150ms ease-out;
}
details.tools[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
details.tools > summary:hover { color: var(--cream); }
.tools-in { padding-bottom: 6px; }
.tools-in .btns { margin-top: 12px; }
.tools-in .sub-h { margin-top: 24px; }
.banners { max-width: 1120px; margin: 0 auto; padding: 24px var(--pad) 0; display: grid; gap: 12px; }
.banners .alert { margin: 0; }
.banners .btns { margin-top: 12px; }
.org-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 980px; border: 1px solid var(--hair-strong);
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c75); text-decoration: none;
}
.chip:hover { color: var(--cream); border-color: var(--cream); }
.chip[aria-current="page"] { background: var(--cream); color: var(--black); border-color: var(--cream); }
.steps { counter-reset: step; }
.steps li { position: relative; padding-left: 36px; color: var(--c90); font-weight: 400; counter-increment: step; }
.steps li + li { margin-top: 10px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.25em;
  font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--c60);
}
.foot-biz a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); }
.foot-biz p + p { margin-top: 4px; }
.page-head .alert { max-width: 62ch; }
.prose ul + p, .prose ol + p { margin-top: 14px; }

/* ---------- legal pages (privacy notice, terms, data processing terms) ---------- */
.legal-toc { margin-top: 28px; max-width: 72ch; }
.legal-toc .label { color: var(--c60); }
.legal-toc ol { margin-top: 10px; columns: 2; column-gap: 40px; }
.legal-toc li { break-inside: avoid; padding: 3px 0; font-size: 14px; }
.legal-toc .link { color: var(--c90); }
.legal-body > .body + .legal-list, .legal-body > .body + .legal-kv, .legal-body > .legal-list + .body,
.legal-body > .legal-kv + .body, .legal-body > .legal-list + .legal-list { margin-top: 14px; }
.legal-h3 { font-family: var(--disp); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; color: var(--cream); margin-top: 30px; }
.legal-body > h2 + .legal-h3 { margin-top: 14px; }
.legal-h3 + .legal-kv, .legal-h3 + .legal-list, .legal-h3 + .body { margin-top: 12px; }
.legal-kv { grid-template-columns: 120px minmax(0, 1fr); gap: 10px 24px; }
.legal-list strong, .legal-kv strong, .legal .body strong { font-weight: 500; color: var(--cream); }
.legal-code { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0.01em; color: var(--cream); overflow-wrap: anywhere; }
.agree { margin-top: 2px; }
@media (max-width: 760px) {
  .legal-toc ol { columns: 1; }
  .legal-kv { grid-template-columns: 1fr; }
}
@media print {
  :root { color-scheme: light; --black: #fff; --cream: #000; --c90: #000; --c75: #222; --c60: #444; --hair: #bbb; --hair-soft: #ddd; --hair-strong: #888; }
  html, body { background: #fff; }
  .nav, .foot, .skip, .legal-toc { display: none !important; }
  .wrap { padding: 0; }
  .legal .sec { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; break-inside: auto; }
  .legal .rail-n { display: inline; margin: 0 10px 0 0; }
}

/* ---------- add a robot (claim code) ---------- */
fieldset.choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
fieldset.choice > legend { padding: 0; margin-bottom: 4px; }
.new-org { margin-top: -4px; }
.robot-released { margin-top: 10px; }
.robot-released .tag { margin-right: 6px; }
