/* Beat the Game — public site. Direction B "All daylight" (Beat the Game design system):
   white ground, one signal-blue accent, ink for text/borders/hard shadows, Archivo +
   JetBrains Mono. Fonts are self-hosted: loading them from Google would hand every
   visitor's IP to Google. Mobile first; desktop from 900px. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --surface: #f2f2ee;
  --ink: #111118;
  --muted: #5a5a66;
  --accent: #2f4bff;
  --accent-weak: #e8ecff;
  --success: #1e7a45;
  --live: #1e9e55;
  --danger: #b3261e;
  --danger-weak: #fdecea;
  --line: rgba(17, 17, 24, 0.12);
  --gutter: 20px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Staging banner */
.envbar {
  padding: 6px var(--gutter);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

/* Placeholders for text that is waiting on the legal review — visible on purpose. */
.ph {
  display: inline;
  padding: 0 4px;
  background: #fff4cc;
  outline: 1.5px dashed #b58500;
  font-family: var(--mono);
  font-size: 0.85em;
  color: #6b4f00;
}
.ph-block { display: block; padding: 12px 14px; margin: 0 0 24px; }

/* Header */
.bar {
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand span {
  font-size: 16px;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 28px; }
.navlink {
  display: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.navlink:hover { color: var(--ink); }

/* Buttons: signal blue with a hard ink shadow; ghost = ink outline. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:hover { color: var(--white); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.wide-only { display: none; }
.btn-sm { white-space: nowrap; min-height: 40px; padding: 0 14px; font-size: 11px; letter-spacing: 0.14em; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 14px; box-shadow: 6px 6px 0 var(--ink); }
.btn-lg:hover { box-shadow: 7px 7px 0 var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Type */
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.rule { width: 28px; height: 2px; background: var(--accent); flex-shrink: 0; }
.display, .h1, .h2 {
  margin: 0;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 0.92;
}
.display { font-size: clamp(3.25rem, 1.9rem + 4.4vw, 5.5rem); }
.h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.04em; }
.h3 { margin: 0; font-size: 18px; font-weight: 800; font-stretch: 106%; text-transform: uppercase; letter-spacing: -0.01em; }
.outline { color: var(--accent); }
@supports (-webkit-text-stroke: 1px) {
  .outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
}
.lead { margin: 0; max-width: 580px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.note { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.meta { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 48px; padding-top: 32px; padding-bottom: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.ctas { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; padding-right: 6px; }
.trust {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
/* The example beside the hero: desktop only, on a phone it pushed the rest far down. */
.hero-side { display: none; position: relative; padding-right: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.accent { color: var(--accent); }
/* The example beside the hero (home.html): a client's dashboard on a phone, as me.html
   draws it, with its own ex- classes so it never mixes with the real page. The screen is
   a phone's width (375px) shown at three quarters. */
.ex { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.ex-phone { width: 300px; padding: 10px; border-radius: 40px; background: var(--ink); box-shadow: 10px 10px 0 var(--accent); transform: rotate(-3deg); }
.ex-screen { position: relative; height: 560px; border-radius: 31px; overflow: hidden; background: var(--white); }
.ex-notch { position: absolute; z-index: 1; top: 9px; left: 50%; width: 82px; height: 22px; margin-left: -41px; border-radius: 12px; background: var(--ink); }
.ex-inner { width: 375px; padding-top: 44px; transform: scale(0.7467); transform-origin: 0 0; }
.ex-bar { height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.ex-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; text-transform: uppercase; }
.ex-btn { padding: 9px 12px; border: 2px solid var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.ex-body { padding: 22px 18px; }
.ex-eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ex-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.ex-h { margin: 6px 0 0; font-size: 40px; font-weight: 900; font-stretch: 112%; letter-spacing: -0.045em; text-transform: uppercase; line-height: 0.92; }
.ex-tabs { display: flex; gap: 4px; margin-top: 14px; border-bottom: 2px solid var(--ink); }
.ex-tabs span { padding: 7px 12px; margin-bottom: -2px; border: 2px solid transparent; border-bottom: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.ex-tabs .on { color: var(--ink); background: var(--white); border-color: var(--ink); border-bottom: 2px solid var(--white); }
.ex-panel { margin-top: 16px; padding: 14px; border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.ex-panel-h { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ex-apps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ex-apps li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ex-apps picture { grid-row: span 2; }
.ex-photo { display: block; width: 84px; height: 63px; border: 2px solid var(--ink); object-fit: cover; background: var(--surface); }
.ex-main { min-width: 0; }
.ex-addr { font-size: 15px; font-weight: 800; text-decoration: underline 2px var(--accent); text-underline-offset: 3px; }
.ex-meta { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ex-status { grid-column: 2; display: grid; grid-template-columns: 10px auto; align-items: center; gap: 0 8px; font-size: 13px; }
.ex-status b { font-weight: 800; }
.ex-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.ex-since { grid-column: 2; font-size: 12px; color: var(--muted); }
.ex .sticker { top: -30px; right: 4px; left: auto; transform: rotate(4deg); }   /* on the phone's corner, clear of the page */
/* The photo credit: a small "i" by the phone's lower corner; open, a note above it. */
.ex-info { position: absolute; right: 44px; bottom: -14px; }
.ex-info summary { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 11px/1 var(--mono); color: var(--muted); cursor: pointer; list-style: none; }
.ex-info summary::-webkit-details-marker { display: none; }
.ex-info summary:hover, .ex-info details[open] summary { color: var(--ink); }
.ex-info summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-credit { position: absolute; z-index: 2; right: 0; bottom: 26px; width: 300px; margin: 0; padding: 10px 12px; border: 2px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); font-family: var(--mono); font-size: 10px; line-height: 1.55; color: var(--muted); }
.ex-credit a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 2px; }
.ex-credit a:hover { text-decoration-color: currentColor; }
.sticker {
  position: absolute;
  top: -18px;
  left: 12px;
  transform: rotate(-5deg);
  padding: 8px 12px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sections */
.band { background: var(--surface); padding: 40px 0; }
.section { padding-top: 56px; padding-bottom: 8px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }

.tiles, .levels, .data-list, .steps, .doclist { margin: 0; padding: 0; list-style: none; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px; background: var(--white); border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.tile-v { height: 34px; display: flex; align-items: flex-end; font-family: var(--mono); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.tile-soon { font-size: 20px; color: var(--muted); }
.tile-k { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; font-weight: 700; line-height: 1.35; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sq { width: 8px; height: 8px; margin-top: 3px; flex-shrink: 0; background: var(--accent); }

.levels { display: grid; grid-template-columns: 1fr; gap: 12px; }
.level { padding: 18px; border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; gap: 8px; }
.level-n { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.level h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; font-stretch: 106%; letter-spacing: -0.01em; text-transform: uppercase; }
.level p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.data-card {
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.data-card > div { display: flex; flex-direction: column; gap: 12px; }
.data-list { display: grid; gap: 16px; }
.data-list li { padding-left: 22px; position: relative; font-size: 15px; line-height: 1.5; color: var(--muted); }
.data-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--accent); }
.data-list b { display: block; color: var(--ink); }
.data-gdpr { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.data-gdpr b { display: block; color: var(--ink); }
.data-gdpr a { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--accent); }

.price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.price-big b { font-family: var(--mono); font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.price-big span { font-size: 16px; font-weight: 700; color: var(--ink); }
/* A heading on its own line, the explanation underneath (Ruben's note 12). */
.price-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; width: 100%; }
.price-list li { padding-left: 22px; position: relative; font-size: 15px; line-height: 1.5; color: var(--muted); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--accent); }
.price-list b { display: block; color: var(--ink); }
.price-list li span { display: block; }
.steps li b { display: block; color: var(--ink); }
.steps li span { display: block; }
/* Three packages (DECISIONS pricing-packages): stacked on phones, side by side on wide screens. */
.pk-nocure { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: 360px; }
.pk-nocure b { font-family: var(--mono); font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.pk-nocure span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.founding { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 0 24px; padding: 10px 14px; border: 2px solid var(--accent); background: var(--accent-weak); font-size: 15px; line-height: 1.45; color: var(--ink); }
.founding-tag { padding: 3px 8px; background: var(--accent); color: var(--white); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.packages { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
.package { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 2px solid var(--ink); background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.package-mid { box-shadow: 6px 6px 0 var(--accent); }
.pk-name { margin: 0; font-size: 22px; }
.pk-for { margin: 0; font-size: 15px; color: var(--muted); }
.pk-example { margin: auto 0 0; padding-top: 12px; border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 14px; color: var(--ink); }
.pk-after { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pk-terms { width: 100%; border-top: 2px solid var(--ink); }
.pk-terms > summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.pk-terms[open] > summary { margin-bottom: 4px; }
.pk-terms .price-list { max-width: 760px; }
.pk-small { margin: 16px 0 0; max-width: 760px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.faq { max-width: 860px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  min-height: 56px;
  padding: 14px 40px 14px 0;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  font-stretch: 106%;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; font-family: var(--mono); font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; max-width: 700px; color: var(--muted); }

.cta-band { margin-top: 56px; border-top: 2px solid var(--ink); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* Footer */
.foot {
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footnav { display: flex; gap: 20px; }
.footnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footnav a:hover { color: var(--ink); }

/* Forms */
.form-page { max-width: 760px; padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.intake, .upload { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.upload { gap: 18px; padding: 20px; border: 2px solid var(--ink); background: var(--surface); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
legend {
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sublegend { margin-bottom: 10px; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
label { font-size: 15px; font-weight: 700; }
.opt { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;               /* 16px stops iOS zooming into the field */
}
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
/* Radios and checkboxes: a ring, not the offset block (it showed as half a square behind a
   picked radio; site note 24). */
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-err { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--danger); }
.prefix { display: flex; }
.prefix span { display: inline-flex; align-items: center; padding: 0 12px; border: 2px solid var(--ink); border-right: 0; background: var(--surface); font-family: var(--mono); font-weight: 700; }
input[type="file"] { width: 100%; padding: 10px; border: 2px dashed var(--ink); background: var(--white); font: inherit; font-size: 15px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.check-grid .check { padding: 10px 12px; border: 2px solid var(--line); background: var(--white); }
.check-grid .check:has(input:checked) { border-color: var(--ink); background: var(--accent-weak); }
.consent .check { font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border: 2px solid var(--danger); background: var(--danger-weak); }
.alert p { margin: 6px 0 0; }
.alert-ok { border-color: var(--success); background: #e7f4ec; }
.notice { padding: 16px 18px; border: 2px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--accent); display: flex; flex-direction: column; gap: 8px; }
.notice p { margin: 0; color: var(--muted); }
.list-title { margin-top: 12px; }
.doclist { border-top: 2px solid var(--ink); }
.doclist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-type { font-weight: 700; }
.doc-name { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.done-form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; color: var(--accent); }
.steps b { color: var(--ink); }
.prose h2 { margin: 16px 0 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.prose p { margin: 0; color: var(--muted); max-width: 680px; }
/* Legal texts (generated from legal/ by tools/build_legal.py): long reading, so calm. */
.legal { max-width: 780px; }
.legal > * { min-width: 0; max-width: 100%; }
.legal h1 { font-size: clamp(24px, 6.4vw, 44px); overflow-wrap: anywhere; hyphens: auto; }
.legal h3 { margin: 10px 0 0; font-size: 15px; font-weight: 800; }
.legal ol, .legal ul { margin: 0; padding-left: 24px; display: grid; gap: 8px; max-width: 700px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.legal .legal-alpha { list-style: lower-alpha; margin-top: 6px; gap: 4px; }
.legal li b, .legal p b { color: var(--ink); }
.legal-note { padding: 10px 14px; border: 2px solid var(--ink); background: var(--surface); font-size: 14px; }
.legal-lang { font-size: 14px; }
.legal-lang span { color: var(--muted); }
.legal-table { width: 100%; overflow-x: auto; }
.legal-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.legal-table th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal hr { width: 100%; border: 0; border-top: 2px solid var(--ink); }

/* Desktop */
@media (min-width: 900px) {
  :root { --gutter: 80px; }
  .bar { height: 88px; }
  .brand { gap: 12px; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 19px; }
  .navlink { display: inline; }
  .wide-only { display: inline; }
  .narrow-only { display: none; }
  .btn-sm { min-height: 44px; padding: 0 20px; font-size: 12px; letter-spacing: 0.18em; box-shadow: 4px 4px 0 var(--ink); }
  .eyebrow { font-size: 12px; letter-spacing: 0.22em; gap: 14px; }
  .rule { width: 40px; }
  .outline { -webkit-text-stroke-width: 2px; }
  .lead { font-size: 19px; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; padding-top: 72px; padding-bottom: 88px; }
  .hero-copy { flex: 0 1 740px; gap: 24px; }
  .ctas { flex-direction: row; gap: 16px; }
  .trust { font-size: 12px; }
  .hero-side { display: block; flex: 0 0 440px; }
  .sticker { top: -26px; left: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 4px 4px 0 var(--ink); }
  .band { padding: 56px 0; }
  .section { padding-top: 88px; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 32px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .tile { padding: 24px; gap: 14px; }
  .tile-v { height: 52px; font-size: 52px; }
  .tile-soon { font-size: 28px; }
  .tile-k { font-size: 12px; letter-spacing: 0.18em; }
  .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .level { padding: 22px; gap: 10px; }
  .level h3 { font-size: 19px; }
  .data-card { flex-direction: row; gap: 64px; padding: 40px; box-shadow: 10px 10px 0 var(--ink); }
  .data-card > div { flex: 0 0 360px; }
  .data-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
  .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-nocure { text-align: right; }
  .cta-band { margin-top: 88px; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot { flex-direction: row; justify-content: space-between; align-items: center; font-size: 12px; }
  .form-page { padding-top: 56px; padding-bottom: 88px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .upload { padding: 28px; }
}

/* Additions: login link, affordability hint, account pages, the client's page */
.nav-account { box-shadow: none; }
@media (max-width: 599px) { .nav { gap: 14px; } }
@media (max-width: 379px) { .brand { gap: 8px; } .brand span { font-size: 14px; } .nav { gap: 10px; } }
@media (max-width: 339px) { .brand span { font-size: 12px; } .nav { gap: 8px; } .nav .btn-sm { padding: 0 10px; } }
@media (max-width: 379px) { .nav .btn-sm { padding: 0 10px; letter-spacing: 0.08em; } }
.afford { margin: 4px 0 0; padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--accent-weak); font-size: 14px; }
.afford-unlikely { border-left-color: var(--danger); background: var(--danger-weak); }
.afford-good { border-left-color: var(--success); background: #e7f4ec; }
.auth { max-width: 520px; }
.me-page { max-width: 1100px; }
.auth form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
input[type="password"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font: inherit; font-size: 16px; }
input[type="password"]:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
input[readonly] { background: var(--surface); color: var(--muted); }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.me-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
/* Where the client is (DECISIONS client-page-journey): a compact row of steps, one card. */
.journey { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.j-step { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 2px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.2; }
.j-n { flex: 0 0 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; border-radius: 50%; font-family: var(--mono); font-size: 11px; }
.j-done { color: var(--ink); }
.j-done .j-n { border-color: var(--ink); background: var(--ink); color: var(--white); }
.j-current { border-color: var(--accent); background: var(--accent-weak); color: var(--ink); }
.j-current .j-n { border-color: var(--accent); background: var(--accent); color: var(--white); }
.next-card { max-width: 720px; margin: 16px 0 28px; padding: 18px 20px; border: 2px solid var(--ink); background: var(--white); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.next-you { box-shadow: 6px 6px 0 var(--accent); }
.next-eyebrow { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.next-title { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
.next-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.next-card .btn { margin-top: 6px; }
.profile > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; cursor: pointer; list-style: none; }
.profile > summary::-webkit-details-marker { display: none; }
/* Folded sections: an arrow at the right, down to open, up to close. */
.profile > summary::after { content: ""; flex: none; align-self: center; width: 9px; height: 9px; margin: 0 4px 4px auto; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform 0.15s ease; }
.profile[open] > summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.profile > summary:hover::after { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .profile > summary::after { transition: none; } }
.profile-sum { flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.panel { padding: 18px; border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.panel h2 { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }
.apps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.apps li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.app-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-addr { font-weight: 800; overflow-wrap: anywhere; }
.app-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pill { display: inline-block; padding: 4px 10px; border: 2px solid var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--white); white-space: nowrap; }
.pill-invited, .pill-viewed, .pill-offer { background: var(--accent); color: var(--white); }
.pill-signed { background: var(--success); color: var(--white); }
.pill-rejected, .pill-withdrawn { color: var(--muted); border-color: var(--muted); }
.danger-zone { padding: 16px; border: 2px dashed var(--danger); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn-danger:hover { color: var(--danger); box-shadow: 4px 4px 0 var(--danger); }
.inline-form { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kv-note { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
/* The application letter: shown as written (plain text, line breaks kept). */
.letter-box { padding: 16px; border: 2px solid var(--ink); background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; max-height: 420px; overflow-y: auto; }
.letter-state { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.letter-state.letter-ok { color: var(--success); }
.letter-edit > summary, .app-fb > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.letter-edit form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.letter-rules { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.app-fb { flex-basis: 100%; }
.app-fb > summary { min-height: 36px; font-size: 14px; color: var(--accent); }
.app-fb form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; max-width: 560px; }
.fb-reasons { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr; }
.fb-reasons .check { min-height: 40px; padding: 6px 0; font-size: 15px; }
.fb-note-label { font-size: 14px; font-weight: 700; }
.fb-ok { margin: 0; font-size: 14px; font-weight: 700; color: var(--success); }
@media (min-width: 900px) {
  .me-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .panel-wide { grid-column: 1 / -1; }
  .fb-reasons { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* Area picker: a clickable map of Amsterdam in the form column, with the real form field
   (the checkbox list) collapsed underneath it. */
.areapicker { gap: 12px; }
.ap-frame { padding: 8px; background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.amap-svg { display: block; width: 100%; height: auto; }
.amap-base { pointer-events: none; }
/* Areas sit on the schematic as blue outlines; selecting fills them with signal blue. */
.amap-area { fill: rgba(47, 75, 255, 0); stroke: var(--accent); stroke-opacity: 0.85; stroke-width: 1.4px; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 120ms ease, stroke-opacity 120ms ease; }
.amap-area:hover, .amap-area.is-hover { fill: rgba(47, 75, 255, 0.14); stroke-opacity: 1; }
.amap-area.is-on { fill: rgba(47, 75, 255, 0.42); stroke-opacity: 1; stroke-width: 2px; }
.amap-area.is-on:hover, .amap-area.is-on.is-hover { fill: rgba(47, 75, 255, 0.55); }
/* "Show on the map" from a kind of building's "i": the areas where it's common stand out
   in ink, the rest step back. Selection (blue fill) stays visible underneath. */
.amap-svg.spotlight .amap-area { stroke-opacity: 0.25; }
.amap-svg.spotlight .amap-area.is-where { stroke: var(--ink); stroke-opacity: 1; stroke-width: 2.5px; fill: rgba(17, 17, 24, 0.10); }
.amap-svg.spotlight .amap-area.is-where.is-on { fill: rgba(47, 75, 255, 0.42); }

/* Kinds of building: cards with a line drawing, ticked by default. */
.btypes { gap: 12px; }
.bt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.bt-item { display: flex; flex-direction: column; border: 2px solid var(--line); background: var(--white); }
.bt-item:has(input:checked) { border-color: var(--ink); }
.bt-card { display: grid; grid-template-columns: 24px 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 44px 12px 12px; cursor: pointer; font-weight: 400; }
.bt-card input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.bt-ic { color: var(--ink); line-height: 0; }
.bt-card input:not(:checked) ~ .bt-ic { color: var(--muted); opacity: 0.55; }
.bt-svg { width: 48px; height: 48px; }
.bt-svg .bt-a { fill: var(--accent); stroke: var(--accent); }
.bt-card input:not(:checked) ~ .bt-ic .bt-a { fill: none; stroke: currentColor; }
.bt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-text b { font-size: 15px; }
.bt-text span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.bt-card input:not(:checked) ~ .bt-text b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.bt-item { position: relative; }
.bt-info > summary { position: absolute; top: 10px; right: 10px; list-style: none; cursor: pointer; }
.bt-info > summary::-webkit-details-marker { display: none; }
.bt-i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 13px; font-weight: 700; background: var(--white); }
.bt-info[open] .bt-i, .bt-info > summary:hover .bt-i { background: var(--ink); color: var(--white); }
.bt-info > summary:focus-visible { outline: none; }
.bt-info > summary:focus-visible .bt-i { box-shadow: 3px 3px 0 var(--accent); }
.bt-info p { margin: 0; padding: 0 12px 12px 48px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.bt-show { display: inline; margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bt-note { margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-weak); font-size: 14px; }
/* Outside space: same cards, but nothing ticked is the normal state (no preference), so
   an unticked card isn't struck through or faded, and there is no "i" to make room for. */
.otypes { gap: 12px; }
.otypes .bt-card { padding-right: 12px; }
.otypes .bt-card input:not(:checked) ~ .bt-ic { color: var(--ink); opacity: 1; }
.otypes .bt-card input:not(:checked) ~ .bt-text b { color: var(--ink); text-decoration: none; }
@media (min-width: 600px) {
  .bt-grid { grid-template-columns: 1fr 1fr; }
}
.amap-label { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; dominant-baseline: middle; fill: var(--ink); opacity: 0.7; paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.amap-label-town { font-size: 14px; letter-spacing: 0.1em; opacity: 0.6; }
/* Phones: the map is ~350px wide, so labels are drawn larger (in map units) and the
   crowded ones are nudged apart; the smallest towns go unlabelled (the caption names
   whatever you touch). */
@media (max-width: 599px) {
  .amap-label { font-size: 26px; letter-spacing: 0.06em; stroke-width: 6px; }
  .amap-label-town { font-size: 20px; }
  .amap-label[data-label="west"] { transform: translate(-24px, -24px); }
  .amap-label[data-label="centrum"] { transform: translate(20px, 12px); }
  .amap-label[data-label="duivendrecht"], .amap-label[data-label="ouderkerk"] { display: none; }
}
.ap-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
#apHover { color: var(--ink); font-weight: 700; min-height: 1.2em; }
#apCount { white-space: nowrap; }
.ap-actions { display: flex; gap: 12px; }
.ap-credit { margin: 0; font-family: var(--mono); font-size: 10px; color: var(--muted); }

.ap-details { border: 2px solid var(--ink); background: var(--white); }
.ap-details > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 44px 0 14px; position: relative; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.ap-details > summary::-webkit-details-marker { display: none; }
.ap-details > summary::after { content: "+"; position: absolute; right: 16px; font-family: var(--mono); font-size: 20px; color: var(--accent); }
.ap-details[open] > summary::after { content: "–"; }
.ap-details[open] > summary { border-bottom: 2px solid var(--ink); }
.ap-sum { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.ap-list { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 14px; }
.ap-group { display: flex; flex-direction: column; }
.ap-group-head { display: flex; justify-content: space-between; align-items: center; min-height: 32px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ap-all { padding: 6px 0 6px 12px; border: 0; background: none; font: inherit; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ap-all:hover { color: var(--ink); }
.ap-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; margin: 0 -8px; font-size: 15px; font-weight: 400; cursor: pointer; }
.ap-item input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.ap-item.is-hover, .ap-item:hover { background: var(--accent-weak); }
.ap-item:has(input:checked) span { font-weight: 700; }
@media (min-width: 600px) { .ap-list { grid-template-columns: 1fr 1fr; gap: 20px 28px; } }
/* The letter in two languages (DECISIONS letter-from-story). */
.letter-pair { display: grid; grid-template-columns: 1fr; gap: 14px; }
.letter-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.letter-lang { margin: 0; font-size: 14px; font-weight: 800; }
.letter-lang span { font-weight: 400; color: var(--muted); }
@media (min-width: 900px) { .letter-pair { grid-template-columns: 1fr 1fr; } }
/* The letter's street placeholder (crm.STREET): filled in per home when we send. */
mark.street { padding: 0 3px; background: var(--accent-weak, #e8ecff); color: var(--accent, #2f4bff); font-weight: 700; }
/* The story form, a block per person (crm.story_form). */
.story-group { margin: 28px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #2f4bff); }
.story-group:first-of-type { margin-top: 8px; }
.story-choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.story-choice legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
/* An application: the home's photo on the left (listingphotos), a house until it loads. */
.apps li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 200px; align-items: center; gap: 8px 16px; }
.app-photo { position: relative; display: grid; place-items: center; width: 120px; height: 90px; overflow: hidden; border: 2px solid var(--ink); background: var(--surface); color: var(--muted); }
.app-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apps li > .app-fb { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .apps li { grid-template-columns: 84px minmax(0, 1fr); }
  .app-photo { width: 84px; height: 63px; }
  .apps li > .app-status { grid-column: 2; justify-self: start; }
}
/* An application's status: a coloured dot, the status in bold, since when in regular text
   (public_app.APPLICATION_TONES: who acts next). No box: the photo and address lead. */
/* A fixed column, left-aligned, so the dots line up; the date sits under the label. */
.app-status { display: grid; grid-template-columns: 10px auto; align-items: center; gap: 1px 8px; justify-self: start; font-size: 14px; }
.app-status b { font-weight: 800; }
.st-since { grid-column: 2; color: var(--muted); font-size: 13px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); border: 2px solid var(--dot); box-sizing: border-box; }
.st-applied { --dot: #85b7eb; }       /* light blue */
.st-invited { --dot: #97c459; }       /* light green */
.st-accepted { --dot: #2f6b12; }      /* dark green */
.st-denied { --dot: #d6332f; }        /* red */
.app-denied .app-addr, .app-denied .app-photo { opacity: .6; }
/* "Not for me": a thumbs-down in the card's lower right corner; the form opens in a
   pop-up (feedback.js), not between the listings. */
.apps li { position: relative; }
.apps .fb-toggle { position: absolute; right: 0; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); }
.fb-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-toggle:hover, .fb-toggle:focus-visible { color: var(--accent); }
.fb-toggle.fb-given { color: var(--accent); }
.fb-toggle.fb-given svg { fill: var(--accent); stroke: var(--accent); }
.fb-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 22px 20px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.fb-dialog::backdrop { background: rgba(17, 17, 24, .45); }
.fb-x { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.fb-form { display: flex; flex-direction: column; gap: 8px; }
.fb-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.js .fb-actions > .js-only { display: inline-flex !important; }
.js-steps .fb-step2 { display: none; }
.js-steps.step2 .fb-step1 { display: none; }
.js-steps.step2 .fb-step2 { display: block; padding-top: 22px; }
.fb-q { padding: 0; margin: 0 0 8px; font-weight: 800; font-size: 15px; }
/* The client's two pages (me.html): Dashboard and My profile. */
.me-tabs { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 2px solid var(--ink); }
.me-tabs a { padding: 10px 16px; font-weight: 800; font-size: 14px; letter-spacing: .02em; text-decoration: none; color: var(--muted); border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.me-tabs a:hover { color: var(--ink); }
.me-tabs a[aria-current="page"] { color: var(--ink); background: var(--white); border-color: var(--ink); border-bottom: 2px solid var(--white); }
