/* =============================================================================
   The iOS app's onboarding and auth screens on the web: /welcome (sign-up
   and setup, templates/welcome.html + static/js/welcome.js) and /login
   (templates/auth/login.html). Loaded only by those two templates, after
   welcome.css / auth.css, and scoped under .ob (welcome) and .ao-login.

   Drawn from ios/SportsIndex/SportsIndex/Features/Auth (AuthKit.swift: the
   nav row, the title ramp, mono-caps field labels, raised 50pt fields, the
   52pt primary button, the banner) and Features/Onboarding (the floating
   pill button, the team grid, the plan list, the exchange offers).
   Terminal Light tokens only (css/tl/tokens.css carries the app's palette),
   so light and dark both follow.
   ============================================================================= */

@keyframes ao-pop { from { opacity: 0; scale: 0.3; } }

/* ---- the column: one phone-width screen on the pixel field ---- */
@media (min-width: 721px) {
  .ob-col { width: 484px; margin-left: -242px; padding: 0 12px; }
  .ob-scrim { background: radial-gradient(ellipse 340px 72% at 50% 48%, rgba(var(--ob-page-rgb), 0.96) 55%, rgba(var(--ob-page-rgb), 0.6) 78%, rgba(var(--ob-page-rgb), 0) 100%); }
  .ob-cap.is-left { right: calc(50% + 260px); }
  .ob-cap.is-right { left: calc(50% + 260px); }
}
.ob[data-step="intro"] .ob-cap, .ob[data-step="school"] .ob-cap { display: none; }
.ob-col { top: 52px; }
.ob-col-in { justify-content: flex-start; padding: clamp(14px, 4vh, 44px) 0 28px; }
.ob-view { gap: 22px; min-height: min(calc(100dvh - 52px - clamp(14px, 4vh, 44px) - 28px), 720px); }
@media (max-width: 720px) {
  .ob-col-in { padding: 12px 24px 24px; }
  .ob-view { min-height: calc(100dvh - 52px - 36px); }
}

/* ---- the nav row: "‹ Back", "STEP n / N" and its dots, Later ---- */
.ob-bar { height: 52px; padding: 0 12px; }
.ob-bar-start { display: flex; align-items: center; justify-self: start; min-width: 0; }
.ob .ob-back {
  flex: none; height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px;
  border: 0; border-radius: 8px; background: none; font-size: 15px; font-weight: 400; color: var(--tl-ink-70); cursor: pointer; white-space: nowrap;
}
.ob .ob-back:hover { color: var(--tl-ink); }
.ob-brand { padding: 0 8px; }
.ob-phases { display: flex; align-items: center; gap: 8px; height: auto; min-height: 44px; margin: 0; font: 400 10.5px/1 var(--tl-mono); letter-spacing: 1.2px; color: var(--tl-ink-50); white-space: nowrap; }
.ob-phases .ob-dots { gap: 4px; }
.ob-phases .ob-dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--tl-line-14); transition: width 250ms var(--tl-ease); }
.ob-phases .ob-dots i.is-done { background: rgba(var(--tl-ink-rgb), 0.3); }
.ob-phases .ob-dots i.is-on { width: 18px; background: var(--tl-ink); }
.ob .ob-exit { height: 44px; padding: 0 8px; gap: 5px; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--tl-ink-55); }
.ob .ob-exit:hover { color: var(--tl-ink); }

/* ---- the title ramp (AuthTitle / OBHeading): leading, heavy, tight ---- */
.ob-head { align-items: flex-start; gap: 8px; text-align: left; }
.ob-head.is-center { align-items: center; text-align: center; }
.ob-h1 { font-size: 34px; font-weight: 750; letter-spacing: -1.1px; line-height: 1.08; text-wrap: balance; }
.ob[data-step="school"] .ob-h1 { font-size: 30px; letter-spacing: -1px; }
.ob[data-step="account"] .ob-h1 { font-size: 32px; letter-spacing: -1px; }
.ob[data-step="plan"] .ob-h1 { letter-spacing: -1.3px; }
.ob-h1.is-offer { margin-top: 10px; font-size: 40px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; }
.ob-dek { max-width: none; font-size: 15px; line-height: 1.5; color: var(--tl-ink-62); }
.ob[data-step="plan"] .ob-dek { font-size: 16px; }
.ob-head.is-center .ob-dek { max-width: 320px; font-size: 15.5px; font-weight: 500; color: var(--tl-ink-70); }
.ob-eyebrow { font-size: 10.5px; }
.ob-summary { justify-content: flex-start; }

/* ---- the button ----
   Auth screens: the 52pt primary button, full width. Team, plan and offer
   steps: the app's floater, the button in a glass capsule that stays at the
   foot of the screen while the page scrolls under it, a quiet link beside it. */
.ob-foot { gap: 10px; padding-top: 0; border-top: 0; }
.ob-foot.is-pill { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 4; margin-top: auto; }
.ao-cta { display: flex; align-items: center; }
.ob .ao-cta .ob-next {
  flex: 1; min-width: 0; height: 52px; min-height: 0; max-width: none; margin: 0; padding: 0 16px; justify-content: center;
  border-radius: 12px; font-size: 16px; font-weight: 650; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ob .ao-cta .ob-next:hover:not(:disabled) { transform: none; background: var(--tl-ink-hover); }
.ob .ao-cta .ob-next:disabled { background: var(--tl-line-08); color: var(--tl-ink-45) !important; }
.ao-cta.is-pill {
  box-sizing: border-box; height: 62px; padding: 6px; border-radius: 32px; border: 1px solid var(--tl-line-10);
  background: color-mix(in srgb, var(--tl-page) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--tl-float-shadow);
}
.ob .ao-cta.is-pill .ob-next { height: 50px; border-radius: 999px; font-size: 15px; }
.ob .ao-sec { flex: none; height: 50px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 600; color: var(--tl-ink-70); white-space: nowrap; cursor: pointer; }
.ob .ao-sec:hover { color: var(--tl-ink); }
@media (max-width: 480px) {
  /* The quiet link keeps its full width; the button's label gives way (the app shrinks it too). */
  .ob .ao-cta.is-pill:has(.ao-sec) .ob-next { padding: 0 8px; font-size: 12.5px; letter-spacing: -0.1px; }
  .ob .ao-sec { padding: 0 12px 0 10px; font-size: 13px; }
}
.ob-links { flex: none; justify-content: center; gap: 2px 16px; text-align: center; }
.ob .ob-links a, .ob .ob-links button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; font-size: 13.5px; font-weight: 500; color: var(--tl-ink-55); text-align: center; }
.ob .ob-links b { margin-left: 4px; font-weight: 500; color: var(--tl-ink); }
.ob .ob-links a:hover, .ob .ob-links button:hover { color: var(--tl-ink); }
.ob .ob-foot.is-pill .ob-links button { width: 100%; height: 40px; font-weight: 600; color: var(--tl-ink-60); }
.ob-legal { font-size: 12px; line-height: 1.5; color: var(--tl-ink-50); text-align: center; }
.ob .ob-legal a { font-weight: 500; color: var(--tl-ink); text-decoration: none; }
.ob .ob-legal a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* "All signed up?  Not yet  Yes, done": asked in place, under the pill. */
.ao-ask { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; font-size: 13.5px; font-weight: 500; color: var(--tl-ink-70); }
.ao-ask > span { flex: 1; min-width: 0; }
.ob .ao-ask button { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--tl-raised); box-shadow: inset 0 0 0 1px var(--tl-line-12); font-size: 13.5px; font-weight: 650; color: var(--tl-ink); cursor: pointer; }
.ob .ao-ask button.is-strong { background: var(--tl-ink); box-shadow: none; color: var(--tl-on-ink); }

/* ---- the banner (AuthBanner): a mono tag and a line ---- */
.ao-banner {
  display: flex; align-items: baseline; gap: 10px; padding: 11px 12px; border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--tl-down) 18%, transparent); background: var(--tl-down-bg);
  font-size: 13px; line-height: 1.45; color: var(--tl-down); text-align: left;
}
.ao-banner[hidden] { display: none; }
.ao-banner > b { flex: none; font: 700 10px/1.75 var(--tl-mono); letter-spacing: 0.6px; white-space: nowrap; }
.ao-banner > span { flex: 1; min-width: 0; }
.ao-banner a, .ao-banner .ao-banner-act { display: block; min-height: 28px; margin: 4px 0 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; line-height: 28px; color: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ao-banner .ao-banner-act[hidden] { display: none; }
.ao-banner.is-ok { border-color: color-mix(in srgb, var(--tl-up) 25%, transparent); background: var(--tl-up-bg); color: var(--tl-up); }
.ob .ob-error.ao-banner { color: var(--tl-down); }
.ob .ob-error.ao-banner.is-ok { color: var(--tl-up); }

/* ---- shared pieces: symbols, the selector pills, mastheads ---- */
.ao-ic { display: block; flex: none; }
.ao-pills { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.ao-pill {
  flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--tl-line-10);
  font: 500 12.5px/1 var(--tl-font); white-space: nowrap; color: var(--tl-ink-62); cursor: default;
}
.ao-pill .ao-ic { display: none; }
.ao-pill.is-on { border-color: var(--tl-ink); background: var(--tl-raised); color: var(--tl-ink); font-weight: 650; }
.ao-pill.is-on .ao-ic { display: block; animation: ao-pop 0.4s var(--tl-ease); }
.ao-mast { display: flex; align-items: center; gap: 8px; margin: 0; padding: 30px 0 10px; font: 600 10px/1 var(--tl-mono); letter-spacing: 0.8px; text-transform: uppercase; color: var(--tl-ink); }
.ao-mast.is-first { padding-top: 4px; }
.ao-mast-t { flex: none; white-space: nowrap; }
.ao-mast-ic { flex: none; display: inline-grid; place-items: center; width: 16px; color: var(--tl-ink-60); }
.ao-mast-logo { flex: none; width: 16px; height: 16px; border-radius: 4px; }
.ao-mast-rule { flex: 1; min-width: 12px; height: 1px; margin-left: 4px; background: var(--tl-line-08); }
.ao-fine { margin: 28px 0 0; font: 400 11.5px/1.45 var(--tl-font); color: var(--tl-ink-45); }
.ao-fine.is-center { margin-top: 18px; padding: 0 8px; font-weight: 500; text-align: center; }

/* ---- 01 Welcome: the name, the logo in pixels, the pills, the buttons ---- */
.ao-welcome { flex: 1; display: flex; flex-direction: column; padding-top: 8px; }
.ao-wordmark { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; }
.ao-mark { flex: none; width: 60px; height: 60px; }
.ao-word { margin: 0; font: italic 750 46px/1.15 var(--tl-font); letter-spacing: -1.8px; white-space: nowrap; color: var(--tl-ink); border-radius: 6px; outline: none; }
.ao-word:focus-visible { box-shadow: none; }
.ao-stage { flex: 1; min-height: 190px; display: grid; place-items: center; padding: 14px 0; }
.ao-pixel { display: block; max-width: 100%; }
.ao-welcome .ao-pills {
  flex-wrap: nowrap; gap: 8px; height: 36px; margin: 0 -24px; padding: 2px 24px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ao-welcome .ao-pill { gap: 6px; height: 32px; padding: 0 12px; font-size: 13px; }
.ao-welcome-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.ob .ao-btn {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 12px; font-size: 16px; font-weight: 650; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background 150ms, transform 120ms;
}
.ob .ao-btn:active { transform: scale(0.985); }
.ob .ao-btn.is-primary { background: var(--tl-ink); color: var(--tl-on-ink); }
.ob .ao-btn.is-primary:hover { background: var(--tl-ink-hover); }
.ob .ao-btn.is-secondary { background: var(--tl-raised); box-shadow: inset 0 0 0 1px var(--tl-line-10); font-weight: 600; color: var(--tl-ink); }
.ob .ao-btn.is-secondary:hover { box-shadow: inset 0 0 0 1px rgba(var(--tl-ink-rgb), 0.25); }
.ob .ao-later { align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 64px; min-height: 30px; margin-top: -4px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--tl-ink-55); }
.ob .ao-later:hover { color: var(--tl-ink); }
@media (max-width: 420px) {
  .ao-word { font-size: 40px; letter-spacing: -1.5px; }
  .ao-mark { width: 52px; height: 52px; }
}

/* ---- the team step: search, conferences, the grid; then the pick ---- */
.ob-picker { gap: 12px; }
.ob-search { flex: none; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--tl-line-10); background: var(--tl-raised); box-shadow: none; }
.ob-search input { height: 100%; margin: 0; padding: 0; font-size: 15px; -webkit-appearance: none; appearance: none; }
.ao-confs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ao-confs::-webkit-scrollbar { display: none; }
.ao-confs button { flex: 1 0 auto; justify-content: center; }
.ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: none; margin: 2px 0 0; padding: 0 0 6px; overflow: visible; }
.ob-grid > .ob-none { grid-column: 1 / -1; padding: 28px 0; font-size: 13.5px; color: var(--tl-ink-55); text-align: center; }
.ob-tile { height: auto; min-height: 56px; padding: 8px 12px; gap: 10px; border: 1px solid var(--tl-line-08); border-radius: 10px; background: var(--tl-raised); box-shadow: none; }
.ob-tile:hover { transform: none; border-color: rgba(var(--tl-ink-rgb), 0.28); }
.ob-tile img, .ob-tile-ph { flex: none; width: 30px; height: 30px; object-fit: contain; }
.ob-tile-ph { border-radius: 50%; background: var(--tl-fill-06); }
.ob-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ob-tile-name { flex: none; font-size: 13px; font-weight: 650; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.ob-tile-sub { font: 500 9.5px/1.4 var(--tl-mono); letter-spacing: 0.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tl-ink-50); }
.ao-chosen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; }
.ao-chosen-logo { width: 240px; max-width: 100%; min-height: 150px; display: grid; place-items: center; }
.ao-chosen .ao-pixel { opacity: 0; transform: scale(0.94); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.ao-chosen .ao-pixel.is-in { opacity: 1; transform: none; }
.ao-chosen-img { width: 168px; height: 168px; object-fit: contain; }
.ao-chosen-name { margin-top: 18px; font-size: 22px; font-weight: 750; letter-spacing: -0.6px; line-height: 1.2; text-align: center; }
.ao-chosen-sub { margin-top: 4px; font: 500 10px/1.4 var(--tl-mono); letter-spacing: 1px; color: var(--tl-ink-50); }
.ob .ao-change { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; margin-top: 10px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 500; color: var(--tl-ink-55); cursor: pointer; }
.ob .ao-change:hover { color: var(--tl-ink); }

/* ---- the plan step: one outlined list of radio rows, Free closing it ---- */
.ao-plan { display: flex; flex-direction: column; }
.ao-plans { border: 1px solid var(--tl-line-14); border-radius: 14px; }
.ob .ao-plan-row {
  box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 0 14px;
  border: 0; background: none; color: var(--tl-ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ob .ao-plan-row:first-child { border-radius: 13px 13px 0 0; }
.ob .ao-plan-row:last-child { border-radius: 0 0 13px 13px; }
.ao-plan-row + .ao-plan-row::before { content: ''; position: absolute; left: 48px; right: 0; top: 0; height: 1px; background: var(--tl-line-08); }
.ao-plan-row:hover { background: var(--tl-fill-03); }
.ao-radio { flex: none; position: relative; box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--tl-ink-35); }
.ao-plan-row[aria-checked="true"] .ao-radio { border-color: var(--tl-ink); }
.ao-plan-row[aria-checked="true"] .ao-radio::after { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--tl-ink); }
.ao-plan-name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 650; line-height: 1.2; }
.ao-pro { flex: none; display: inline-flex; align-items: center; height: 17px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--tl-pro-line); font: 700 9px/1 var(--tl-mono); letter-spacing: 0.6px; color: var(--tl-pro); }
.ao-save { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; background: var(--tl-up-bg); font: 700 9.5px/1 var(--tl-mono); letter-spacing: 0.6px; font-variant-numeric: tabular-nums; color: var(--tl-up); }
.ao-plan-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.ao-plan-price b { font-size: 16px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ao-plan-price small { font: 400 10.5px/1.2 var(--tl-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tl-ink-50); }
.ao-perk { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.ao-perk + .ao-perk { border-top: 1px solid var(--tl-line-08); }
.ao-perk-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--tl-fill-05); color: var(--tl-ink); }
.ao-perk-text { flex: 1; min-width: 0; }
.ao-perk-title { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 0; font: 650 14.5px/1.3 var(--tl-font); letter-spacing: 0; color: var(--tl-ink); }
.ao-tag { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--tl-fill-045); font: 600 9.5px/1 var(--tl-mono); letter-spacing: 0.6px; color: var(--tl-ink-55); }
.ao-perk-line { margin: 4px 0 0; font: 400 13px/1.5 var(--tl-font); color: var(--tl-ink-62); }
.ao-plan .ao-fine { margin-bottom: 8px; }
@media (max-width: 720px) {
  /* The free row is one line that scrolls sideways, edge to edge. */
  .ao-plan .ao-pills { flex-wrap: nowrap; margin: 0 -24px; padding: 1px 24px; overflow-x: auto; scrollbar-width: none; }
  .ao-plan .ao-pills::-webkit-scrollbar { display: none; }
}

/* ---- 03 Create account: the picks row, mono-caps labels, raised fields ---- */
.ao-sum { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 12px; border-radius: 10px; border: 1px solid var(--tl-line-08); background: var(--tl-raised); font-size: 14px; }
.ao-sum-logo { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tl-logo-chip); }
.ao-sum-logo img { width: 17px; height: 17px; object-fit: contain; }
.ao-sum > b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-sum > i { flex: none; width: 1px; height: 16px; background: var(--tl-line-10); }
.ao-sum > span:not(.ao-sum-logo) { flex: 1; white-space: nowrap; color: var(--tl-ink-65); }
.ob .ao-sum button { flex: none; min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 500; color: var(--tl-ink-55); cursor: pointer; }
.ob .ao-sum button:hover { color: var(--tl-ink); }
.ob .ob-google { min-height: 52px; margin: 0; border-radius: 12px; font-size: 16px; font-weight: 600; }
.ao-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--tl-ink-45); }
.ao-or::before, .ao-or::after { content: ''; flex: 1; height: 1px; background: var(--tl-line-08); }
/* The fields sit on the page, as in the app: no card around the form. */
.ob-form { gap: 15px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ao-field { display: flex; flex-direction: column; gap: 7px; }
.ao-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 13px; font: 400 10px/1.3 var(--tl-mono); letter-spacing: 1px; color: var(--tl-ink-50); }
.ao-label .ob-note { font-weight: 400; letter-spacing: 1px; text-align: right; }
.ao-input {
  display: flex; align-items: center; gap: 2px; min-height: 50px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--tl-line-10); background: var(--tl-raised); transition: border-color 150ms, box-shadow 150ms;
}
.ao-input:focus-within { border-color: rgba(var(--tl-ink-rgb), 0.34); box-shadow: 0 0 0 3px var(--tl-line-06); }
.ao-field.is-err .ao-input { border-color: color-mix(in srgb, var(--tl-down) 45%, transparent); box-shadow: none; }
.ob .ao-input input { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.ob .ao-input input:focus-visible { box-shadow: none; }
.ao-prefix { font-size: 16px; color: var(--tl-ink-40); }
.ao-input.is-code { min-height: 46px; }
.ob .ao-input.is-code input { height: 44px; font-family: var(--tl-mono); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.ob .ao-input.is-code input::placeholder { text-transform: none; }
.ob .ao-show, .ao-login .ao-show { flex: none; min-width: 44px; min-height: 34px; margin-right: -8px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font: 600 10.5px/1 var(--tl-mono); letter-spacing: 0.6px; color: var(--tl-ink-55); cursor: pointer; }
.ob .ob-help-line { font-size: 12px; line-height: 1.45; color: var(--tl-ink-55); }
/* "I'm 18 or older.": the app's square, filled once it is ticked. */
.ob .ob-age { min-height: 44px; margin-top: 0; font-size: 14.5px; font-weight: 500; }
.ob .ob-age input {
  -webkit-appearance: none; appearance: none; position: relative; width: 19px !important; height: 19px !important;
  border: 1.5px solid var(--tl-ink-40); border-radius: 4px; background: transparent; cursor: pointer;
}
.ob .ob-age input:checked { border-color: var(--tl-ink); background: var(--tl-ink); }
.ob .ob-age input:checked::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid var(--tl-on-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- 04 Verify: the status card, six boxes over one field, the links ---- */
.ob-status { gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--tl-line-08); background: var(--tl-raised); box-shadow: none; }
.ob-mail { font-size: 10.5px; letter-spacing: 0.6px; }
.ob-status-copy b { font-size: 15px; font-weight: 650; }
.ob-status-copy span { font: 400 12px/1.4 var(--tl-mono); color: var(--tl-ink-55); }
.ao-code { position: relative; height: 56px; }
.ob .ao-code input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; font-size: 16px; opacity: 0; cursor: text; }
.ao-code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 100%; }
.ao-code-boxes i { box-sizing: border-box; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--tl-line-14); background: var(--tl-raised); font: normal 700 24px/1 var(--tl-mono); color: var(--tl-ink); }
.ao-code:focus-within .ao-code-boxes i.is-at { border: 1.5px solid var(--tl-ink); }
.ao-vlinks { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ob .ao-vlinks button { min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; font-size: 14px; font-weight: 500; color: var(--tl-ink-60); cursor: pointer; }
.ob .ao-vlinks button.is-strong { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tl-ink); }
.ob .ao-vlinks button:disabled { color: var(--tl-ink-40); cursor: default; }
.ao-vnote { margin: -6px 0 0; font-size: 12.5px; color: var(--tl-ink-50); }

/* ---- the exchange offers: the code is the one box on the page ---- */
.ao-xlogo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.ao-offer { display: flex; flex-direction: column; }
.ob .ao-codebox { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--tl-line-10); border-radius: 14px; background: var(--tl-raised); text-align: left; cursor: pointer; }
.ao-codebox-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ao-codebox-text small { font: 600 9.5px/1 var(--tl-mono); letter-spacing: 1px; color: var(--tl-ink-50); }
.ao-codebox-text b { font: 700 24px/1.1 var(--tl-mono); letter-spacing: 1.5px; overflow-wrap: anywhere; }
.ao-codebox-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--tl-fill-06); font-size: 14px; font-weight: 650; }
.ao-steps { margin: 16px 0 0; padding: 0; list-style: none; }
.ao-steps li { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 9px 0; }
.ao-steps li > span { flex: none; width: 22px; font: 700 12px/1.4 var(--tl-mono); color: var(--tl-ink-55); }
.ao-steps li > p { flex: 1; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--tl-ink-90); }
/* Why the exchange: a pull quote, a blue rule down its left, no box. */
.ao-why { display: flex; gap: 12px; margin: 16px 2px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--tl-pro); border-radius: 1.5px; }
.ao-why > .ao-ic { width: 28px; color: var(--tl-pro); }
.ao-why b { display: block; font-size: 14.5px; font-weight: 700; }
.ao-why p { margin: 2px 0 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--tl-ink-70); }

@media (prefers-reduced-motion: reduce) {
  .ao-pill.is-on .ao-ic { animation: none; }
  .ao-chosen .ao-pixel { transition: none; }
}

/* =============================================================================
   /login (templates/auth/login.html, inside auth/_base.html's .tla shell):
   the app's Log in screen. The fields sit on the page, no card around them.
   ============================================================================= */
.tla-card:has(.ao-login) { isolation: isolate; width: min(400px, 100%); padding: 0 4px; background: transparent; box-shadow: none; }
/* The pixel field stays clear behind the form, as the app clears it. */
.tla-card:has(.ao-login)::before { content: ''; position: absolute; z-index: -1; inset: -48px -72px; border-radius: 50%; background: radial-gradient(closest-side, var(--tl-page) 62%, transparent); pointer-events: none; }
.tla-card:has(.ao-login) .tla-top { margin-bottom: 22px; }
.tla-card:has(.ao-login) .tla-step { font-size: 10.5px; letter-spacing: 1.2px; }
.ao-login .tla-title { margin: 0 0 8px; font-size: 34px; font-weight: 750; letter-spacing: -1.1px; line-height: 1.08; }
.ao-login .tla-dek { margin: 0 0 26px; font-size: 15px; line-height: 1.5; color: var(--tl-ink-62); }
.ao-login .tla-form { gap: 16px; }
.ao-login .tla-field { gap: 7px; }
.ao-login .tla-field label { font: 400 10px/1.3 var(--tl-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--tl-ink-50); }
.ao-login .ao-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ao-login .ao-label-row .tla-link { font-size: 12.5px; font-weight: 500; color: var(--tl-ink-70); }
/* input.tl-input: one step over the shell's own .tl-input rules (tl/components.css, tl/shell.css). */
.tla .ao-login input.tl-input { height: 50px !important; margin: 0; padding: 0 14px !important; border-radius: 10px !important; border-color: var(--tl-line-10) !important; background: var(--tl-raised) !important; font-size: 16px !important; }
.tla .ao-login input.tl-input:focus { border-color: rgba(var(--tl-ink-rgb), 0.34) !important; box-shadow: 0 0 0 3px var(--tl-line-06) !important; }
.tla .ao-login input.tl-input[aria-invalid="true"] { border-color: color-mix(in srgb, var(--tl-down) 45%, transparent) !important; }
.ao-login .ao-pw { position: relative; }
.tla .ao-login .ao-pw input.tl-input { padding-right: 64px !important; }
.ao-login .ao-pw .ao-show { position: absolute; right: 12px; top: 8px; margin: 0; }
.ao-login .ao-banner .tla-err { display: inline; color: inherit; font-size: 13px; line-height: 1.45; }
.ao-login .tla-check { align-items: center; font-size: 13.5px; color: var(--tl-ink-60); }
.tla .ao-login .tla-btn { height: 52px; border-radius: 12px; font-size: 16px; font-weight: 650; }
.tla .ao-login .tla-btn.is-idle:not(:disabled) { background: var(--tl-line-08); border-color: transparent; color: var(--tl-ink-40); }
.ao-login .tla-or { margin: 20px 0 16px; font-family: var(--tl-font); font-size: 12.5px; letter-spacing: 0; text-transform: lowercase; color: var(--tl-ink-45); }
.ao-login .tla-foot { gap: 2px; margin: 20px 0 0; padding: 0; border-top: 0; font-size: 14px; color: var(--tl-ink-60); }
.ao-login .tla-foot p { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; }
.ao-login .tla-foot a { font-weight: 650; }
.ao-login .tla-foot a.tla-link { font-size: 13px; font-weight: 500; }
@media (max-width: 720px) {
  .tla-card:has(.ao-login) { padding: 0 8px; }
  .ao-login .tla-title { font-size: 32px; }
}
