/* Slyra - sign-up and sign-in screens (split layout: questions on the left, pitch panel on the right).
   Loaded after main.css by setup/index.html and login/index.html. Tokens come from main.css. */

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ══ Split layout: questions (left) · pitch (right) ══ */
.ob { display: grid; grid-template-columns: minmax(440px, 46%) 1fr; min-height: 100vh; }
.ob-left {
  display: flex; flex-direction: column;
  min-width: 0; padding: 44px 56px 40px;
  background: var(--bg);
}
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Slyra_name.png is a 1000×1000 square with the logo centred in it (56% wide, 20% tall, from
   21.9% of the width): it is shown through a window cut to the logo. --logo-w sets the size
   (the side of the square as displayed).
   The logo is not a link here: nothing on these screens leads away from the form by accident. */
.ob-logo {
  --logo-w: 160px;
  display: block; flex-shrink: 0; overflow: hidden;
  width: calc(var(--logo-w) * 0.582); height: calc(var(--logo-w) * 0.33);
}
.ob-logo img {
  display: block; width: var(--logo-w); max-width: none; height: 100%;
  margin-left: calc(var(--logo-w) * -0.21); object-fit: cover;
}
.ob-login { font-size: 13px; color: var(--text-dim); text-align: right; }
.ob-login[hidden] { display: none; }
.ob-login a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ob-login a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ob-login a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ob-body { width: 100%; max-width: 460px; margin-top: 104px; display: flex; flex-direction: column; gap: 18px; }
.ob-body.login-shake { animation: loginShake 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Progress: "1 OUT OF 4" + step name + one segment per step.
   The current segment fills with each answered question of its step (--fill, 0 to 1). ── */
.ob-progress { display: flex; flex-direction: column; gap: 3px; }
.ob-count { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.ob-section { font-size: 14px; font-weight: 700; color: var(--text); }
.ob-segments { display: flex; gap: 8px; margin-top: 10px; }
.ob-seg { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--progress-idle); position: relative; overflow: hidden; }
.ob-seg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink); transform: scaleX(var(--fill, 0)); transform-origin: left;
  transition: transform 0.45s ease;
}

/* ── "Email confirmed" / "Signed in as" chip: top right of the header once the account
   exists, where the login link was (it takes no room in the questions) ── */
.ob-google {
  display: none; align-items: center; gap: 8px; min-width: 0;
  padding: 7px 12px; border: 1px solid var(--border-hov); border-radius: 999px;
  font-size: 12.5px; color: var(--text-dim); white-space: nowrap;
}
.ob-google b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-google svg { flex-shrink: 0; }
.ob-google .ob-chip-mail { display: none; color: var(--ink); }
.ob-google.is-email .ob-chip-google { display: none; }
.ob-google.is-email .ob-chip-mail { display: block; }
/* "Sign out" under the chip: the way out of this account. It hangs below the header
   without taking any room, so the questions do not move. */
.ob-account { position: relative; display: flex; justify-content: flex-end; min-width: 0; }
.ob-signout {
  position: absolute; top: 100%; right: 4px; margin-top: 4px; padding: 3px 4px;
  background: none; border: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text-dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.ob-signout:hover { color: var(--text); }
.ob-signout:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.ob-signout[hidden] { display: none; }

/* ── One question per screen ── */
.st-step { display: none; flex-direction: column; }
.st-step.active { display: flex; animation: st-fadein 0.22s ease; }
.st-step.back   { animation: st-fadeback 0.22s ease; }
@keyframes st-fadein   { from { opacity: 0; transform: translateX(14px); }  to { opacity: 1; transform: none; } }
@keyframes st-fadeback { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.ob-q {
  margin: 20px 0 0;
  font-size: clamp(26px, 2.9vw, 34px); font-weight: 800; line-height: 1.18; letter-spacing: -0.8px;
  color: var(--text); text-wrap: balance;
}
.ob-q:focus { outline: none; } /* receives focus on each new screen so it is announced */
.ob-q-sub { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.ob-q-sub b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ob-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.ob-note[hidden] { display: none; }

/* ── Underlined fields with a floating label ──
   At rest the label sits on the line like a placeholder; on focus, or once the
   field has a value, it slides above the value and shrinks (20px → 13px). */
.ob .login-field { margin-top: 34px; }
.ob .login-field + .login-field { margin-top: 14px; }
.ob .login-field[hidden] { display: none; }
.ob .login-input-outline {
  position: relative; height: auto; padding: 22px 0 10px;
  display: flex; flex-direction: column; align-items: stretch;
  border: none; border-bottom: 1.5px solid var(--border-hov); border-radius: 0;
  transition: border-color 0.2s;
}
.ob .login-input-outline:focus-within { border-bottom-color: var(--ink); }
.ob .login-input-outline.input-error  { border-bottom-color: var(--danger-border); }
.ob .login-input-outline .login-label {
  position: absolute; top: 22px; left: 0; padding: 0; background: none;
  font-size: 20px; font-weight: 500; line-height: 30px; white-space: nowrap;
  color: var(--text-muted); pointer-events: none;
  transform: none; transform-origin: left top;
  transition: transform 0.2s ease, color 0.2s ease;
}
.ob .login-input-outline:focus-within .login-label,
.ob .login-input-outline.has-value .login-label {
  top: 22px; font-size: 20px; font-weight: 500; background: none;
  color: var(--text-dim); transform: translateY(-22px) scale(0.65);
}
/* Same lifted state for a value filled in by the browser */
.ob .login-input-outline:has(.login-input:-webkit-autofill) .login-label {
  color: var(--text-dim); transform: translateY(-22px) scale(0.65);
}
.ob .login-input-outline.input-error .login-label { color: var(--danger); }
/* Leading icon of a field: it stays on the line, the label and the value start after it */
.ob .login-input-outline.has-ico { padding-left: 32px; }
.ob .login-input-outline.has-ico .login-label { left: 32px; }
.ob-field-ico {
  position: absolute; left: 0; top: 27px; width: 20px; height: 20px;
  color: var(--text-muted); pointer-events: none; transition: color 0.2s;
}
.ob .login-input-outline:focus-within .ob-field-ico,
.ob .login-input-outline.has-value .ob-field-ico,
.ob .login-input-outline:has(.login-input:-webkit-autofill) .ob-field-ico { color: var(--ink); }
.ob .login-input-outline.input-error .ob-field-ico { color: var(--danger); }
.ob .login-input { height: 30px; font-size: 20px; font-weight: 600; color: var(--text); caret-color: var(--text); }
/* The hint (format, example) only appears once the label has moved out of the way */
.ob .login-input::placeholder { color: transparent; font-weight: 500; transition: color 0.2s; }
.ob .login-input:focus::placeholder { color: var(--text-muted); }
/* Edge adds its own "reveal password" eye: ours is enough */
.ob .login-input::-ms-reveal,
.ob .login-input::-ms-clear { display: none; }
.ob .login-pw-toggle { color: var(--text-muted); }
.ob .login-pw-toggle:hover,
.ob .login-pw-toggle.active { color: var(--ink); }
.ob .login-field-error { font-size: 12px; color: var(--danger); min-height: 0; }
.st-field-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--text-dim); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
}

/* Number + unit (height, weight) */
.ob-unit-wrap { display: flex; align-items: baseline; gap: 8px; }
.ob-unit-wrap[hidden] { display: none; }
.ob-unit-wrap .login-input { min-width: 0; }
#st-height-imp .login-input { flex: 0 0 2.4em; width: 2.4em; }
#st-height-imp .ob-unit { margin-right: 14px; }
#st-height-imp .login-input::placeholder { color: var(--text-muted); opacity: 1; }
.ob-unit-wrap .login-input { flex: 1; }
.ob-unit { font-size: 15px; font-weight: 600; color: var(--text-muted); }

/* ── Choice lists (one answer) ── */
.ob-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.ob-choices.is-row { flex-direction: row; gap: 10px; }
.ob-choice, .ob-choice-write {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 50px; padding: 8px 14px 8px 16px;
  border: 1.5px solid var(--border-hov); border-radius: 12px; background: var(--card);
  font-family: var(--font); text-align: left; color: var(--text); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ob-choices.is-row .ob-choice { flex: 1 1 0; min-width: 0; }
.ob-choice:hover { border-color: var(--text-muted); }
.ob-choice[aria-checked="true"] { border-color: var(--ink); background: var(--bg-2); }
.ob-choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-choice[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.ob-choice[aria-disabled="true"]:hover { border-color: var(--border-hov); }
.ob-choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ob-choice-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ob-choice-desc { font-size: 12.5px; line-height: 1.35; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ob-choice-dot {
  position: relative; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-hov); transition: border-color 0.2s;
}
.ob-choice[aria-checked="true"] .ob-choice-dot { border-color: var(--ink); }
.ob-choice[aria-checked="true"] .ob-choice-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink);
}
/* An answer completed in writing ("Other"): the option is a row holding the radio (icon and
   label), then a text field, then the dot. The row carries the looks of an option. */
.ob-choice-write > .ob-choice,
.ob-choice-write > .ob-choice[aria-checked="true"] {
  flex: 0 0 auto; width: auto; min-height: 0; padding: 0; border: 0; background: none;
}
.ob-choice-write > .ob-choice:focus-visible { outline: none; }
.ob-choice-write:hover { border-color: var(--text-muted); }
.ob-choice-write:has(> .ob-choice[aria-checked="true"]) { border-color: var(--ink); background: var(--bg-2); }
.ob-choice-write:has(> .ob-choice:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-choice-write > .ob-choice-dot { margin-left: auto; }
.ob-choice-write > .ob-choice[aria-checked="true"] ~ .ob-choice-dot { border-color: var(--ink); }
.ob-choice-write > .ob-choice[aria-checked="true"] ~ .ob-choice-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink);
}
.ob-choice-input {
  flex: 1; min-width: 0; height: 30px; padding: 0 2px;
  border: none; border-bottom: 1.5px solid var(--border-hov); border-radius: 0; outline: none; background: none;
  font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--text); caret-color: var(--text);
  transition: border-color 0.2s;
}
.ob-choice-input:focus { border-bottom-color: var(--ink); }
.ob-choice-input::placeholder { color: var(--text-muted); font-weight: 400; }
.ob-choice-input[hidden] { display: none; }
/* One icon per answer (shapes: ICONS in scripts/account/setup.js). Icons and marks are never black:
   grey at rest, then the graphite of the buttons (--ink) once chosen or filled. */
.ob-choice-ico, .ob-field-ico, .ob-sleep-ico {
  flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ob-choice-ico { width: 20px; height: 20px; color: var(--text-dim); transition: color 0.2s; }
.ob-choice[aria-checked="true"] .ob-choice-ico { color: var(--ink); }
/* Compact row (pace, meals a day): centered, no radio dot */
.ob-choices.is-compact .ob-choice { justify-content: center; gap: 8px; padding: 8px 6px; text-align: center; }
.ob-choices.is-compact .ob-choice-text { flex: 0 1 auto; }
.ob-choices.is-compact .ob-choice-ico { width: 16px; height: 16px; }
.ob-choices.is-compact .ob-choice-dot { display: none; }
.ob-pace .ob-choices { margin-top: 0; }
/* Several answers: two columns. The icon leads each option and a tick lands on the corner
   of the chosen ones (it takes no room, so the labels keep their single line). */
.ob-choices.is-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ob-choices.is-grid .ob-choice { position: relative; gap: 8px; padding-left: 12px; padding-right: 10px; }
.ob-choices.is-grid .ob-choice-ico { width: 18px; height: 18px; }
.ob-choice-tick {
  position: absolute; z-index: 1; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--bg);
  transform: scale(0); transition: transform 0.18s ease;
}
.ob-choice-tick::after {
  content: ''; position: absolute; left: 4.5px; top: 2px; width: 3px; height: 6.5px;
  border: solid var(--card); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
.ob-choice[aria-checked="true"] .ob-choice-tick { transform: scale(1); }
.ob-pace { margin-top: 20px; }
.ob-pace[hidden] { display: none; }

/* ── Country of residence: flags in the choices, "Other country" on its own row ── */
.ob-choice .cs-flag { font-size: 18px; }
/* A country picked from the full list takes the whole row, with its way to change it */
.ob-choice-other:has(.ob-choice-more) { grid-column: 1 / -1; }
.ob-choice-globe { flex-shrink: 0; color: var(--text-dim); }
.ob-choice-more { font-size: 12.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

/* Full country list with a filter (native <dialog>, opened by "Other country").
   Fixed size: it keeps the same dimensions while the filter shortens the list.
   It never exceeds the window, so it stays usable at any zoom level. */
.ob-dialog {
  width: min(420px, calc(100vw - 32px)); height: 560px; max-height: calc(100vh - 32px);
  margin: auto; /* main.css resets every margin, which would pin the dialog to the top-left corner */
  padding: 0; border: 1px solid var(--border-hov); border-radius: 16px;
  background: var(--card); color: var(--text); font-family: var(--font);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22); overflow: hidden;
}
.ob-dialog[open] { display: flex; flex-direction: column; animation: ob-dialog-in 0.18s ease; }
.ob-dialog::backdrop { background: rgba(12,12,13,0.45); }
@keyframes ob-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ob-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 12px 20px; }
.ob-dialog-title { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; color: var(--text); }
.ob-dialog-close {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border: none; border-radius: 9px; background: none;
  color: var(--text-dim); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.ob-dialog-close:hover { background: var(--card-hover); color: var(--ink); }
.ob-dialog-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-dialog-search {
  display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 0 12px;
  border: 1.5px solid var(--border-hov); border-radius: 10px; color: var(--text-muted);
  transition: border-color 0.15s;
}
.ob-dialog-search:focus-within { border-color: var(--ink); }
.ob-dialog-search input {
  flex: 1; min-width: 0; height: 42px; border: none; outline: none; background: none;
  font-family: var(--font); font-size: 15px; color: var(--text);
}
.ob-dialog-search input::placeholder { color: var(--text-muted); }
.ob-dialog-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 12px; scrollbar-width: thin; }
.ob-dialog-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px;
  border: none; border-radius: 9px; background: none; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 500; text-align: left; color: var(--text);
  transition: background 0.1s;
}
.ob-dialog-option:hover { background: var(--card-hover); }
.ob-dialog-option:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ob-dialog-option[aria-current="true"] { background: var(--bg-2); font-weight: 700; }
.ob-dialog-option .cs-flag { font-size: 18px; }
.ob-dialog-empty { padding: 8px 20px 0; font-size: 14px; color: var(--text-dim); }
.ob-dialog-empty[hidden] { display: none; }

/* "Custom" macros (setup.js drawMacroOwn): a row per share, − value +, the total under them */
.ob-macro-own { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); }
.ob-macro-own[hidden] { display: none; }
.ob-macro-row { display: flex; align-items: center; gap: 10px; }
.ob-macro-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.ob-macro-val { min-width: 52px; font-size: 16px; font-weight: 700; text-align: center; color: var(--text); font-variant-numeric: tabular-nums; }
.ob-macro-btn {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1.5px solid var(--border-hov); border-radius: 50%; background: var(--card); cursor: pointer;
  font-family: var(--font); font-size: 18px; font-weight: 600; line-height: 1; color: var(--text);
}
.ob-macro-btn:hover:not(:disabled) { border-color: var(--ink); }
.ob-macro-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-macro-btn:disabled { opacity: 0.35; cursor: default; }
.ob-macro-total { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; }
.ob-macro-total.is-ok { color: var(--text-dim); }
.ob-macro-total.is-off { color: var(--danger); }

/* Estimated daily target */
.ob-target {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--bg-2);
  font-size: 13px; color: var(--text-dim);
}
.ob-target[hidden] { display: none; }
.ob-target b { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Sleep slider ── */
.ob-sleep { margin-top: 26px; }
.ob-sleep-head { display: flex; align-items: center; gap: 12px; }
.ob-sleep-ico { width: 28px; height: 28px; color: var(--text-dim); }
.ob-sleep-val { display: block; font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--text); font-variant-numeric: tabular-nums; }
.ob-range {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 24px; margin: 14px 0 0; background: none; cursor: pointer;
}
.ob-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ink) var(--pct, 50%), var(--progress-idle) var(--pct, 50%));
}
.ob-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--progress-idle); }
.ob-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.ob-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ob-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ob-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.ob-range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-muted); }

/* ── Phone: dial code + number on one baseline ── */
.ob-phone-row { display: flex; align-items: flex-end; gap: 14px; }
.ob-phone-code { width: 116px; flex-shrink: 0; }
.ob-phone-row .login-input-outline { flex: 1; }

/* ── Password strength + requirements ── */
.st-strength { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.st-strength-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.st-strength-fill { height: 100%; border-radius: 2px; width: 0%; transition: width 0.35s ease, background-color 0.35s ease; }
.st-strength-label { font-size: 11px; font-weight: 700; min-width: 60px; text-align: right; letter-spacing: 0.02em; transition: color 0.35s; }
.st-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); }
.st-req { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); transition: color 0.2s; }
.st-req.met { color: var(--text); font-weight: 700; }
.st-req svg { flex-shrink: 0; }
.st-req:not(.met) .r-check { display: none; }
.st-req:not(.met) .r-cross  { display: block; }
.st-req.met .r-check { display: block; }
.st-req.met .r-cross  { display: none; }

/* ── Back / Continue ── */
.ob-actions { display: flex; align-items: center; margin-top: 34px; }
.ob-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 6px 10px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: color 0.2s;
}
.ob-back:hover { color: var(--text); }
.ob-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
a.ob-back { text-decoration: none; }
.ob-next {
  position: relative; overflow: hidden; margin-left: auto;
  min-width: 132px; height: 48px; padding: 0 26px; border: none; border-radius: 12px;
  background: var(--ink); color: var(--card);
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0.2px; cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.ob-next:hover { background: var(--ink-hover); }
.ob-next:active { transform: scale(0.97); }
.ob-next:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Greyed out until the current question is answered */
.ob-next:disabled { background: var(--progress-idle); color: var(--text-muted); box-shadow: none; transform: none; cursor: default; }
.ob-next.submitting:disabled { background: var(--ink); color: var(--card); }
.ob-next.submitting > span { opacity: 0; }
.ob-next.submitting::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.30); border-top-color: var(--card);
  border-radius: 50%; animation: st-spin-btn 0.7s linear infinite;
}
@keyframes st-spin-btn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Account screen: captcha, Google, terms ── */
.ob-captcha { margin-top: 20px; min-height: 65px; }
/* Google first, then "or", then the email fields */
.ob-sso { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.ob .ob-sso + .login-field,
.ob .ob-sso + .ob-exists + .login-field { margin-top: 6px; }
.ob-account-extra { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.ob-account-extra[hidden] { display: none; }
.ob-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.ob-divider::before, .ob-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-hov); }
.ob-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border-hov);
  font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ob-google-btn:hover { background: var(--card-hover); border-color: var(--text-muted); }
.ob-google-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ob-google-btn:disabled { cursor: not-allowed; opacity: 0.6; }
.ob-terms { font-size: 11.5px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.ob-terms a { color: var(--text); font-weight: 500; text-decoration: none; }
.ob-terms a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Existing account */
.ob-exists {
  display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 14px;
  border: 1px solid var(--border-hov); border-radius: 12px; background: var(--bg-2);
  font-size: 13px; line-height: 1.6; color: var(--text-dim);
}
.ob-exists[hidden] { display: none; }
.ob-exists b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ob-exists-btn {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px;
  background: var(--ink); color: var(--card); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.ob-exists-btn:hover { background: var(--ink-hover); }
.ob-exists-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* "Check your inbox" */
.ob-sent-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.ob-link-btn {
  padding: 6px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: underline; text-underline-offset: 3px;
}
.ob-link-btn:hover { color: var(--text-dim); }
.ob-link-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ob-link-btn:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }
/* SMS code: digits spaced out so six of them read at a glance */
.ob .ob-code { letter-spacing: 0.22em; font-variant-numeric: tabular-nums; }

/* ── Loading / invalid / success ── */
.st-spinner { width: 32px; height: 32px; border: 2.5px solid var(--border); border-top-color: var(--text-dim); border-radius: 50%; animation: st-spin 0.75s linear infinite; margin: 16px auto; }
@keyframes st-spin { to { transform: rotate(360deg); } }
#st-invalid { text-align: center; padding: 4px 0; }
.st-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--card);
  display: flex; align-items: center; justify-content: center;
}
#st-success .ob-next { margin-left: 0; margin-top: 18px; align-self: flex-start; }
/* End states of the password pages (link sent, password saved, invalid link):
   icon, title, text, then one button */
.ob-final { flex-direction: column; align-items: flex-start; }
.ob-final .ob-next { margin-left: 0; margin-top: 24px; }
.st-success-icon.is-warn { background: none; border: 1.5px solid var(--danger-border); color: var(--danger); }
/* "Still having trouble? Contact us", under the buttons */
.ob-help { margin-top: 22px; }
.ob-help a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Custom flag select (underlined trigger, opens downward) ── */
select.login-input { appearance: none; -webkit-appearance: none; cursor: pointer; }
.cs-wrap { position: relative; width: 100%; }
.cs-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: auto; padding: 0 0 10px; box-sizing: border-box;
  background: none; border: none; border-bottom: 1.5px solid var(--border-hov); border-radius: 0;
  color: var(--text); font-size: 20px; font-weight: 600; font-family: var(--font);
  cursor: pointer; text-align: left;
  transition: border-color 0.15s;
}
.cs-trigger:hover { border-bottom-color: var(--text-muted); }
.cs-trigger:focus-visible,
.cs-trigger[aria-expanded="true"] { outline: none; border-bottom-color: var(--ink); }
.cs-trigger.input-error { border-bottom-color: var(--danger-border); }
.cs-trigger-text { flex: 1; min-height: 30px; line-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-flag { font-size: 17px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.cs-arrow { margin-left: auto; flex-shrink: 0; opacity: 0.45; transition: transform 0.15s; }
.cs-trigger[aria-expanded="true"] .cs-arrow { transform: rotate(180deg); }
.cs-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: var(--cs-min-w, 220px);
  background: var(--card); border: 1px solid var(--border-hov);
  border-radius: 10px; z-index: 400;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden; animation: cs-in 0.12s ease;
}
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-search-wrap { padding: 10px 10px 8px; }
.cs-search {
  width: 100%; box-sizing: border-box; padding: 8px 11px;
  background: var(--bg-2); border: 1px solid var(--border-hov);
  border-radius: 7px; color: var(--text); font-size: 13px; font-family: var(--font);
  outline: none; transition: border-color 0.15s;
}
.cs-search::placeholder { color: var(--text-muted); }
.cs-search:focus { border-color: var(--ink); }
.cs-list { max-height: 190px; overflow-y: auto; scrollbar-width: none; padding: 4px 6px 6px; }
.cs-list::-webkit-scrollbar { display: none; }
.cs-option {
  display: flex; align-items: center; gap: 9px;
  padding: 8px; font-size: 13.5px; font-family: var(--font); cursor: pointer;
  border-radius: 7px; transition: background 0.1s; color: var(--text);
}
.cs-option:hover  { background: var(--card-hover); }
.cs-option.active { background: var(--bg-2); font-weight: 600; }
.cs-option-text   { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── DOB Calendar popup ── */
.st-cal-popup {
  position: fixed; z-index: 700;
  background: #fff; border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px; padding: 12px 16px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14); width: 280px; height: 320px;
  animation: st-cal-restore 0.24s cubic-bezier(0.15,0,0.3,1) forwards;
  user-select: none; display: flex; flex-direction: column;
}
/* setup.js also sets the separate `scale` property on the popup when the window is smaller
   than the calendar (very high zoom): it combines with these animations. */
@keyframes st-cal-restore {
  from { transform: scale(0.02); opacity: 0; }
  15%  { opacity: 1; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes st-cal-minimize {
  from { transform: scale(1);    opacity: 1; }
  85%  { opacity: 1; }
  to   { transform: scale(0.02); opacity: 0; }
}
.st-cal-popup.closing { animation: st-cal-minimize 0.18s cubic-bezier(0.7,0,0.9,0.5) forwards; }

.st-cal-nav { display:flex; align-items:stretch; gap:8px; margin-bottom:12px; }
.st-cal-nav-left {
  flex:1; min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:0;
  background: #fff; border:1px solid rgba(0,0,0,0.10);
  border-radius:10px; padding:0; overflow:hidden;
}
.st-cal-nav-btn {
  background:none; border:none; cursor:pointer; color:#888;
  width:32px; height:32px; border-radius:0;
  display:flex; align-items:center; justify-content:center;
  transition:background 0.12s, color 0.12s; flex-shrink:0;
}
.st-cal-nav-btn:hover { background:rgba(0,0,0,0.05); color:var(--ink); }
.st-cal-label-btn {
  flex:1; justify-content:center; background:none; border:none; cursor:pointer;
  color:#555; font-size:14px; font-weight:700; font-family:var(--font);
  padding:2px 8px; border-radius:0; display:flex; align-items:center; gap:4px; transition:color 0.12s;
}
.st-cal-label-btn:hover, .st-cal-label-btn.picker-active { background:none; color:#111; }
.st-cal-year-pill {
  background: rgba(0,0,0,0.05); color:#333;
  border:1px solid rgba(0,0,0,0.12); cursor:pointer;
  font-size:13px; font-weight:700; font-family:var(--font);
  border-radius:10px; padding:0 14px; display:flex; align-items:center;
  transition:background 0.12s, border-color 0.12s;
}
.st-cal-year-pill:hover, .st-cal-year-pill.picker-active { background: rgba(0,0,0,0.09); border-color:rgba(0,0,0,0.25); }
.st-cal-year-pill.picker-inactive { background:rgba(0,0,0,0.03); border-color:rgba(0,0,0,0.10); color:#888; }
.st-cal-month-dot { display:inline-block; width:5px; height:5px; background:#2a2a2a; border-radius:50%; margin-left:3px; vertical-align:middle; flex-shrink:0; }
.st-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.st-cal-dow { text-align:center; font-size:10px; font-weight:700; color:#999; padding:4px 0; text-transform:uppercase; letter-spacing:0.4px; }
.st-cal-day {
  text-align:center; font-size:13px; font-family:var(--font); color:#111;
  aspect-ratio:1; border-radius:50%; cursor:pointer;
  transition:background 0.1s, color 0.1s;
  display:flex; align-items:center; justify-content:center;
}
.st-cal-day:hover { background: rgba(0,0,0,0.06); color:#111; }
.st-cal-day.today { background:#2a2a2a; color:#fff; font-weight:700; }
.st-cal-day.today:hover { background:#2a2a2a; color:#fff; }
.st-cal-day.selected { background:#2a2a2a; color:#fff; font-weight:700; }
.st-cal-day.selected:hover { background:#2a2a2a; }
.st-cal-day.empty { cursor:default; }
.st-cal-day.empty:hover { background:none; }
.st-cal-day.disabled { color:#bbb; opacity:0.35; cursor:default; pointer-events:none; }
button.st-cal-picker-cell:disabled { opacity:0.35; cursor:default; pointer-events:none; }
.st-cal-picker-grid { display:grid; gap:4px; margin-top:8px; flex:1; min-height:0; }
.st-cal-month-picker-grid { grid-template-columns:repeat(2,1fr); grid-auto-rows:36px; flex:none; }
.st-cal-year-picker-grid  { grid-template-columns:repeat(3,1fr); grid-auto-rows:36px; flex:none; height:196px; align-content:start; }
.st-cal-year-bottom-nav { display:flex; gap:8px; margin-top:8px; }
.st-cal-year-bottom-nav .st-cal-nav-btn { flex:1; border-radius:8px; height:32px; }
.st-cal-picker-cell {
  background:#fff; border:1px solid rgba(0,0,0,0.10); cursor:pointer;
  color:#111; font-size:13px; font-family:var(--font);
  border-radius:10px; padding:0;
  display:flex; align-items:center; justify-content:center;
  transition:background 0.12s, border-color 0.12s;
}
.st-cal-month-picker-grid .st-cal-picker-cell { background:#fff; border-color:rgba(0,0,0,0.10); }
.st-cal-year-picker-grid  .st-cal-picker-cell { border-color:rgba(0,0,0,0.10); background:#fff; }
.st-cal-picker-cell:hover { background:#2a2a2a; border-color:#2a2a2a; color:#fff; }
.st-cal-year-picker-grid .st-cal-picker-cell:hover { background:rgba(0,0,0,0.05); border-color:#2a2a2a; color:#111; }
.st-cal-picker-cell.active { background:#2a2a2a; color:#fff; border-color:#2a2a2a; }
.st-cal-year-picker-grid .st-cal-picker-cell.active { background:#2a2a2a; color:#fff; border-color:#2a2a2a; }
.st-cal-year-picker-grid .st-cal-picker-cell.today  { background:#2a2a2a; color:#fff; border-color:#2a2a2a; }

/* ══ Pitch panel (dark island) ══ */
.ob-right {
  position: sticky; top: 0; align-self: start;
  height: 100vh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 48px 52px; text-align: center;
  background: var(--bg); color: var(--text-dim);
}
.ob-right::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 72% 8%, var(--accent-glow), transparent 70%);
}

/* The app as it is (pitch-panel.js): the Overview on a computer (the curve, the families of foods under it),
   running off the right edge, and on a phone in front — real screens of the app in its dark theme, those of
   the top of the homepage. Decorative, fades into the words. */
/* One fade for both (--fade: where it starts): the computer and the phone in front of it go out at the same level */
.ob-right { --fade: 74%; }
.ob-mock {
  position: absolute; top: 6%; left: 0; right: 0; height: 60%;
  container-type: inline-size;   /* the phone is placed after the computer's own size (cqw, below) */
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--fade), transparent 99%);   /* the families of foods, under the curve, still in view */
          mask-image: linear-gradient(to bottom, #000 var(--fade), transparent 99%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  pointer-events: none; text-align: left;
}
.ob-mock img { display: block; width: 100%; height: auto; }
/* Each screen in the frame of its device: a wide bezel for the computer (it runs off the right edge,
   its opened side bar in view on the left), a narrower one for the phone, in front on the right, of the
   panel's surface grey, with a hairline around */
.ob-win {
  position: absolute; top: 0; left: 9%; width: 92%;   /* still past the right edge */
  padding: 16px 0 0 16px;
  border-radius: 24px 0 0 0;   /* no hairline: the frame is its grey alone */
  background: var(--card);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.ob-win img { border-radius: 10px 0 0 0; }
/* The phone, on the left, in front of the computer — the same screen as at the top of the homepage: the recipe
   with its photo, then the day. It fades out with the computer (it is in the same layer). Its top at the level
   of "Calendar" in the side bar of the computer, whatever the size: the computer's picture starts 16px down
   (its frame), is 92 % of the layer wide less 16px, 1900/2596 as high, and "Calendar" is 23.5 % down it — what
   the fade takes of the foot of the phone (the day, its macros), it takes. As wide as a fifth of the panel or so
   (--pw), its screen narrow so that its words read at this size. */
.ob-right { --pw: clamp(185px, min(12.5vw, 31vh), 250px); }
.ob-phone {
  position: absolute; z-index: 1; left: 15%; width: var(--pw); aspect-ratio: 736 / 1840;   /* the screen (720 × 1824) and its padding */
  top: calc(16px + (92cqw - 16px) * 0.732 * 0.235);
  padding: 8px; border-radius: 34px;   /* no hairline either */
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.ob-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 26px; }

.ob-pitch { position: relative; z-index: 1; max-width: 560px; }
.ob-pitch-title {
  font-size: clamp(30px, 3.3vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -1.4px;
  color: var(--text); text-wrap: balance;
}
.ob-pitch-title .ob-accent { color: var(--accent); }
.ob-pitch-sub { max-width: 440px; margin: 16px auto 0; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.ob-badges { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.ob-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; line-height: 1.4; color: var(--text-dim); text-wrap: balance; }
.ob-badge svg { color: var(--accent); }

/* ── Responsive ──
   Three height tiers: the space above the logo, under the logo and under the question
   stays generous, and tightens just enough to keep Continue above the fold. */
@media (max-height: 820px) {
  .ob-left { padding-top: 30px; }
  .ob-body { margin-top: 64px; }
  .ob-q { margin-top: 14px; }
  .ob .login-field { margin-top: 30px; }
  .ob-choices { margin-top: 18px; gap: 6px; }
  .ob-choice, .ob-choice-write { min-height: 46px; padding-top: 6px; padding-bottom: 6px; }
  .ob-actions { margin-top: 24px; }
  .ob-badges { margin-top: 28px; }
  .ob-mock { height: 54%; }   /* the screens fade out before the words begin */
}
/* Small laptops (viewport about 600 to 700px high): the long lists are compacted instead of the header */
@media (max-height: 700px) and (min-width: 901px) {
  .ob-left { padding-top: 26px; padding-bottom: 14px; }
  .ob-logo { --logo-w: 132px; }
  .ob-body { margin-top: 50px; gap: 14px; }
  .ob-q { margin-top: 12px; font-size: 26px; }
  .ob-q-sub { margin-top: 6px; }
  .ob .login-field { margin-top: 26px; }
  .ob .login-field + .login-field { margin-top: 12px; }
  .ob-choices { margin-top: 14px; }
  .ob-choice, .ob-choice-write { min-height: 42px; padding-top: 3px; padding-bottom: 3px; }
  .ob-choice-title { font-size: 14.5px; }
  .ob-choice-desc { font-size: 12px; }
  .st-requirements { margin-top: 10px; padding: 8px 12px; gap: 4px 16px; }
  .ob-pace { margin-top: 14px; }
  .ob-target { margin-top: 12px; padding-top: 9px; padding-bottom: 9px; }
  .ob-captcha { margin-top: 14px; }
  .ob-actions { margin-top: 18px; }
  .ob-next { height: 44px; }
  .ob-sso { gap: 14px; margin-top: 16px; }
  .ob-account-extra { gap: 12px; margin-top: 14px; }
  .ob-google-btn { height: 44px; }
  .ob-mock { top: 6%; height: 46%; }
  .ob-right { --pw: 160px; --fade: 76%; }   /* little height: a smaller phone, a later fade, its card still whole */
}
@media (max-width: 900px) {
  .ob { grid-template-columns: 1fr; }
  .ob-right { display: none; }
  .ob-left { padding: 26px 22px 32px; }
  .ob-body { margin-top: 52px; max-width: none; }
}
@media (max-width: 480px) {
  .ob .login-input, .cs-trigger { font-size: 18px; }
  .ob .login-input-outline .login-label { font-size: 18px; }
  .ob .login-input-outline:focus-within .login-label,
  .ob .login-input-outline.has-value .login-label { font-size: 18px; transform: translateY(-22px) scale(0.72); }
  .ob .login-input-outline:has(.login-input:-webkit-autofill) .login-label { transform: translateY(-22px) scale(0.72); }
  .ob-choices.is-grid { grid-template-columns: 1fr; }
  .st-requirements { grid-template-columns: 1fr; }
  .ob-logo { --logo-w: 136px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-step.active, .st-step.back { animation: none; }
  .st-cal-popup, .st-cal-popup.closing { animation: none; }
  .ob-dialog[open] { animation: none; }
  .ob-seg::after { transition: none; }
  .ob .login-input-outline .login-label { transition: none; }
  .ob-choice-tick { transition: none; }
}

/* ══ On a phone, the sign-in and the sign-up lead to the app (scripts/account/app-only.js, 26 October): the page is
   hidden (the cookie banner stays), its screen shows the two stores, that of the phone first ══ */
html.app-only body > :not(.app-gate):not([id^="axeptio"]) { display: none !important; }
.app-gate { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 32px 24px 28px; background: var(--bg); }
.app-gate .ob-logo { --logo-w: 140px; }
.app-gate-body { display: flex; flex-direction: column; gap: 14px; margin: auto 0; padding: 40px 0; }
.app-gate-title { margin: 0; font-size: clamp(26px, 7.5vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.8px; color: var(--text); text-wrap: balance; }
.app-gate-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.app-gate-stores { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.app-gate-store {
  display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; border-radius: 14px;
  background: var(--ink); color: var(--card); text-decoration: none; transition: background 0.15s, transform 0.1s;
}
.app-gate-store:hover { background: var(--ink-hover); }
.app-gate-store:active { transform: scale(0.98); }
.app-gate-store:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.app-gate-store svg { flex-shrink: 0; width: 26px; height: 26px; fill: currentColor; }
.app-gate-store span { display: flex; flex-direction: column; line-height: 1.15; }
.app-gate-store small { font-size: 11.5px; font-weight: 500; opacity: 0.75; }
.app-gate-store b { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.app-gate-store.is-soon { background: var(--progress-idle); color: var(--text-dim); }
.app-gate-note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.app-gate-back { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.app-gate-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* cm or imperial, kg or imperial: the pill slides under the two words (as the switches of the simulators) */
.ob-units { position: relative; display: grid; width: max-content; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin-top: 20px; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.ob-units::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4.5px); border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(17, 17, 19, 0.1); transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.ob-units:has(button:last-child[aria-pressed="true"])::before { transform: translateX(calc(100% + 3px)); }
.ob-units button { position: relative; min-height: 36px; padding: 0 16px; border: none; border-radius: 999px; background: none; color: var(--text-muted); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.2s; }
.ob-units button[aria-pressed="true"] { color: var(--text); }
.ob-units button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html.in-app .ob-units { display: none; }
@media (prefers-reduced-motion: reduce) { .ob-units::before, .ob-units button { transition: none; } }

/* The tick of an option among several: drawn, in the very middle of its round */
html:not(.in-app) .ob-choice-tick { box-sizing: border-box; width: 20px; height: 20px; }
html:not(.in-app) .ob-choice-tick::after { inset: 0; width: 11px; height: 11px; margin: auto; border: 0; background: var(--card); transform: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6 4.8 8.9 10 3.1' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6 4.8 8.9 10 3.1' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
