/* Fastbreak's front door: Join, Sign in, the email-link screens, Onboarding and Settings. Built from lab.css's
   own pieces (the tokens.btn.obj.kicker.lede.chip, the rise motion) so it reads as the same place: a dark green
   side that says what Fastbreak is, and a calm white side where you answer. Every class here starts with fd- so nothing
   on the rest of the page changes. */

/* until the door decides and a member's own world is loaded, the page under it stays hidden, so nobody ever sees the
   sample welcome as theirs, however slow the start (an 8-second fallback showed it). A slow
   start says so instead: "Loading" after a moment, then what to try. */
html.fd-gate #welcome, html.fd-gate #app { visibility: hidden; }
.fd-loading { display: none; }
html.fd-gate .fd-loading { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; gap: 10px; padding: 24px; text-align: center; pointer-events: none;
  font-family: var(--ui); color: var(--ink-2); }
html.fd-gate .fd-loading p { margin: 0; font-size: 15px; line-height: 1.5; opacity: 0; animation: fd-appear 400ms var(--glide) 1.2s forwards; }
html.fd-gate .fd-loading p.late { max-width: 32ch; color: var(--muted); font-size: 14px; animation-delay: 10s; }
@keyframes fd-appear { to { opacity: 1; } }
body.at-door .fd-loading { display: none; }
/* JavaScript off: say that, not "check your connection"; the loading words never show (the page below hides
   them with a noscript style) */
.fd-noscript { position: fixed; inset: 0; z-index: 85; display: grid; place-content: center; padding: 24px; text-align: center; font-family: var(--ui); color: var(--ink); background: var(--ground); }
.fd-noscript p { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { html.fd-gate .fd-loading p { animation-duration: 1ms; } }
body.at-door { overflow: hidden; }
body.at-door .toast { z-index: 95; }

.fd { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: clamp(360px, 36vw, 600px) minmax(0, 1fr); background: #fff; color: var(--ink); }
.fd:focus { outline: none; }

/* ================= the dark side ================= */
.fd-rail { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 0; padding: 26px clamp(30px, 3.2vw, 60px) 30px; color: var(--on-deep);
  background: linear-gradient(160deg, var(--night) 0%, var(--deep) 52%, #0A4A33 100%); }
.fd-rail::before { content: ''; position: absolute; inset: -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 30% at 24% 40%, rgba(62,224,166,.16), transparent 72%), radial-gradient(46% 40% at 92% 96%, rgba(19,160,108,.26), transparent 70%),
    radial-gradient(30% 24% at 70% 30%, rgba(255,214,176,.06), transparent 70%);
  animation: warm 14s ease-in-out infinite alternate; }
[data-calm] .fd-rail::before { animation: none; }
.fd-mark { position: absolute; z-index: -1; right: -7%; bottom: -5%; width: min(64%, 400px); height: auto; overflow: visible; color: #fff; opacity: .07; pointer-events: none;
  animation: fd-drift 18s ease-in-out infinite alternate; }
@keyframes fd-drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-10px, -14px, 0) rotate(-2deg); } }
[data-calm] .fd-mark { animation: none; }
.fd-brand { align-self: flex-start; display: inline-flex; align-items: center; padding: 8px 10px; margin: 0 0 0 -10px; border-radius: 99px; color: #fff; background: none; transition: background-color 500ms var(--glide); }
button.fd-brand:hover { background: rgba(255,255,255,.07); }
.fd-brand .logo { height: 26px; color: #fff; }
.fd-pitch { margin: auto 0; padding: 40px 0 28px; max-width: 470px; container-type: inline-size; }
.fd-kick { display: inline-flex; align-items: center; gap: 9px; font: 500 13px/1 var(--ui); letter-spacing: .02em; color: var(--spark); }
.fd-kick::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 12px var(--spark); }
/* one line, sized to the side it's in ("Build with / Claude, together" broke into two pairs of words; any two-line
   break of a four-word headline leaves two words alone on a line) */
.fd-tag { font: 650 min(clamp(34px, 3.1vw, 56px), 7.8cqi)/1.02 var(--ui); letter-spacing: -.055em; color: #fff; margin-top: 18px; white-space: nowrap; }
/* the welcome's own serif italic, in the spark green */
.fd-tag em { color: var(--spark); font-family: 'Playfair Display', var(--serif); font-weight: 600; letter-spacing: -.035em; padding-right: .06em; }
.fd-rail-p { font-size: 15.5px; color: var(--on-deep-2); margin-top: 16px; max-width: 400px; }
.fd-doors { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.fd-doors li { position: relative; padding-left: 24px; }
.fd-doors li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.fd-doors b { display: block; font: 600 16px/1.3 var(--ui); letter-spacing: -.02em; color: #fff; }
.fd-doors span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--on-deep-2); margin-top: 2px; }
.fd-foot { font-size: 13px; color: var(--on-deep-2); }
/* the four parts as glassy chips in one row (12-02), each with its own glowing dot; they rise in one after another */
.fd-doors.fd-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 32px; }
.fd-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 11px; border-radius: 99px; white-space: nowrap;
  font: 550 13.5px/1 var(--ui); letter-spacing: -.01em; color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
 }
.fd-chips li::before { position: static; flex: none; width: 7px; height: 7px; }
/* a narrow side can't fit all four in a row: two neat rows of two, never three and one left alone */
@container (max-width: 452px) { .fd-doors.fd-chips { display: grid; grid-template-columns: repeat(2, max-content); } }
.fd-link { font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fd-link.fd-link-lt { color: #fff; }
.fd-rail.fd-in .fd-brand { animation: fd-fade 900ms var(--glide) both; }
.fd-rail.fd-in .fd-pitch > * { animation: rise 900ms var(--glide) both; animation-delay: 120ms; }
.fd-rail.fd-in .fd-pitch > :nth-child(2) { animation-delay: 200ms; } .fd-rail.fd-in .fd-pitch > :nth-child(3) { animation-delay: 300ms; } .fd-rail.fd-in .fd-pitch > :nth-child(n+4) { animation-delay: 380ms; }
.fd-rail.fd-in .fd-doors li { animation: rise 820ms var(--glide) both; animation-delay: calc(380ms + var(--i, 0) * 70ms); }
.fd-doors li:nth-child(2) { --i: 1; } .fd-doors li:nth-child(3) { --i: 2; } .fd-doors li:nth-child(4) { --i: 3; }
.fd-rail.fd-in .fd-foot { animation: fd-fade 1200ms var(--glide) both; animation-delay: 500ms; }
@keyframes fd-fade { from { opacity: 0; } }

/* onboarding's steps, down the dark side */
.fd-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.fd-steps li { display: flex; align-items: center; gap: 12px; min-height: 38px; font-size: 14.5px; color: var(--on-deep-2); transition: color 500ms var(--glide); }
.fd-steps i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); font-style: normal; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18);
  transition: background-color 500ms var(--glide), color 500ms var(--glide), box-shadow 500ms var(--glide); }
.fd-steps i svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.fd-steps li.now { color: #fff; font-weight: 600; }
.fd-steps li.now i { background: var(--spark); color: var(--night); box-shadow: 0 0 0 5px rgba(62,224,166,.14); }
.fd-steps li.done { color: rgba(241,247,244,.84); }
.fd-steps li.done i { background: rgba(62,224,166,.16); color: var(--spark); box-shadow: none; }
.fd-steps li.later { opacity: .6; }

/* settings: who you are, and a list that jumps to each part */
.fd-who { display: flex; align-items: center; gap: 14px; }
.fd-who b { display: block; font: 600 18px/1.2 var(--ui); letter-spacing: -.025em; color: #fff; }
.fd-who small { display: block; font-size: 13.5px; color: var(--on-deep-2); margin-top: 3px; overflow-wrap: anywhere; }
.fd-av { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 17px/1 var(--ui); letter-spacing: 0; color: #fff; background: var(--green);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14); overflow: hidden; }
.fd-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-nav { display: grid; gap: 2px; margin-top: 30px; }
.fd-nav button { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; margin-left: -14px; border-radius: 14px; color: var(--on-deep-2); font-weight: 500; font-size: 15px; text-align: left;
  transition: background-color 500ms var(--glide), color 500ms var(--glide); }
.fd-nav button:hover, .fd-nav button:focus-visible { background: rgba(255,255,255,.07); color: #fff; }
.fd-nav svg.i { width: 18px; height: 18px; color: var(--spark); }

/* ================= the white side ================= */
.fd-main { position: relative; min-width: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column;
  background: radial-gradient(60% 46% at 100% 0%, rgba(255,214,176,.16), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(62,224,166,.08), transparent 70%), linear-gradient(180deg, #FFFFFF 0%, #FBFAF7 100%); }
.fd-top { display: flex; align-items: center; justify-content: flex-end; min-height: 90px; padding: 22px 30px; flex: none; }
.fd-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.fd-pill { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px 0 18px; border-radius: 99px; color: var(--ink); font-weight: 550; font-size: 14.5px; text-decoration: none;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--lift-1); transition: box-shadow 600ms var(--glide); }
.fd-pill:hover { box-shadow: inset 0 0 0 1px rgba(10,18,15,.12), var(--lift-2); }
.fd-pill svg.i { width: 16px; height: 16px; color: var(--green); transition: transform 600ms var(--glide); }
.fd-pill:hover svg.i { transform: translateX(3px); }
.fd-body { width: min(460px, calc(100% - 64px)); margin: auto; padding: 0 0 80px; }
.fd-body.wide { width: min(700px, calc(100% - 64px)); margin: 0 auto; padding-top: 4px; }
.fd-in > * { animation: rise 820ms var(--glide) both; }
.fd-in > :nth-child(2) { animation-delay: 60ms; } .fd-in > :nth-child(3) { animation-delay: 120ms; } .fd-in > :nth-child(4) { animation-delay: 180ms; } .fd-in > :nth-child(n+5) { animation-delay: 240ms; }

.fd-h1 { font: 650 clamp(40px, 3.3vw, 54px)/1.02 var(--ui); letter-spacing: -.055em; margin-top: 14px; text-wrap: balance; }
.fd-h1 em { color: var(--green); }
/* a three-word heading can only break as one and two words, so it stays on one line: at its widest it would run past the
   460 px column (Forgot your password? at 1440 wide) */
.fd-h1-fit { font-size: min(clamp(40px, 3.3vw, 54px), 45px); }
/* a screen's heading takes the keyboard when it opens; it isn't a control, so no ring */
.fd-h1[tabindex="-1"]:focus { outline: none; }
.fd-lede { font-size: 17px; margin-top: 14px; max-width: 460px; }
.fd-lede b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.fd-badge { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; color: var(--green);
  background: color-mix(in srgb, var(--spark) 16%, #fff); box-shadow: inset 0 0 0 1px rgba(11,122,83,.14), 0 14px 30px -16px rgba(11,122,83,.6); }
.fd-badge svg.i { width: 26px; height: 26px; }
.fd-badge + .kicker { display: flex; }

/* ---------- fields: the same quiet fills and green focus ring as Edit profile ---------- */
.fd-form { display: grid; gap: 18px; margin-top: 28px; }
.fd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fd-f { min-width: 0; }
.fd-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fd-lrow label, .fd-lbl { font: 550 14px/1.3 var(--ui); letter-spacing: -.01em; color: var(--ink-2); }
.fd-opt { font-weight: 450; color: var(--muted); margin-left: 4px; }
.fd-aside { font-size: 13.5px; font-weight: 500; color: var(--green); text-decoration: none; }
.fd-aside:hover { text-decoration: underline; text-underline-offset: 3px; }
.fd-in-wrap { position: relative; }
.fd-f input:not([type=checkbox]), .fd-f textarea { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(10,18,15,.04); transition: box-shadow 500ms var(--glide), background-color 500ms var(--glide); }
.fd-f textarea { height: auto; min-height: 124px; padding: 15px 18px; line-height: 1.45; resize: vertical; display: block; }
.fd-f input::placeholder, .fd-f textarea::placeholder { color: #8A9791; }
.fd-f input:not([type=checkbox]):focus, .fd-f textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 1.5px var(--green), 0 0 0 6px rgba(11,122,83,.1); }
.fd-f input[type=password], .fd-in-wrap input:has(+ .fd-show) { padding-right: 56px; }
.fd-f.bad input:not([type=checkbox]), .fd-f.bad textarea { background: #fff; box-shadow: 0 0 0 1.5px var(--red), 0 0 0 6px rgba(194,54,43,.08); }
.fd-show { position: absolute; right: 8px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  transition: background-color 400ms var(--glide), color 400ms var(--glide); }
.fd-show:hover { background: rgba(10,18,15,.05); color: var(--ink); }
.fd-show[aria-pressed="true"] { color: var(--green); }
.fd-hint { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.fd-hint a, .fd-small a, .fd-alert a, .fd-preview a { color: var(--green); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fd-count { text-align: right; font-variant-numeric: tabular-nums; }
.fd-rules { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fd-rules span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: color 400ms var(--glide); }
.fd-rules svg.i { width: 14px; height: 14px; stroke-width: 2.4; opacity: .35; transition: opacity 400ms var(--glide); }
.fd-rules .ok { color: var(--green); }
.fd-rules .ok svg.i { opacity: 1; }
.fd-err { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 500; color: var(--red); }
.fd-alert { padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; color: #8E2219; background: rgba(194,54,43,.07); box-shadow: inset 0 0 0 1px rgba(194,54,43,.14); }
.fd-alert:focus { outline: none; }

/* tick boxes */
.fd-ticks { display: grid; gap: 12px; margin-top: 2px; }
.fd-check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 24px; color: var(--ink); }
.fd-check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.fd-box { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--ground); box-shadow: inset 0 0 0 1.5px rgba(10,18,15,.16);
  transition: background-color 300ms var(--glide), box-shadow 300ms var(--glide); }
.fd-box svg.i { width: 16px; height: 16px; stroke-width: 2.6; color: #fff; opacity: 0; transform: scale(.6); transition: opacity 250ms var(--glide), transform 400ms var(--glide); }
.fd-check:hover .fd-box { box-shadow: inset 0 0 0 1.5px var(--green); }
.fd-check input:checked + .fd-box { background: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.fd-check input:checked + .fd-box svg.i { opacity: 1; transform: none; }
.fd-check input:focus-visible + .fd-box { box-shadow: inset 0 0 0 1.5px var(--green), 0 0 0 5px rgba(11,122,83,.16); }
.fd-cf.bad .fd-box { box-shadow: inset 0 0 0 1.5px var(--red); }
.fd-under { margin: 4px 0 0 36px; }
.fd-cf .fd-err { margin-left: 36px; }

.fd-actions { margin-top: 6px; }
/* the bot check's box: empty (and taking no room) unless Cloudflare asks for a tap */
.fd-human:empty { display: none; }
.fd-human { margin: 4px 0 2px; min-height: 0; }
.fd-actions.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fd-nextrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.btn.busy { opacity: .72; cursor: progress; }
.btn.primary.big .arrow { width: 19px; height: 19px; }
.fd-small { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.fd-small + .fd-small { margin-top: 8px; }
.fd-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 480px; }
.fd-done { margin-top: 14px; font-size: 14.5px; font-weight: 500; color: var(--green); }
.fd-done.bad { color: var(--red); }
.fd-resend { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.fd-resend .fd-small { margin: 0; }

/* the preview note: what Submit does once the real server is on */
.fd-preview { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--forest);
  background: color-mix(in srgb, var(--spark) 15%, #fff); box-shadow: inset 0 0 0 1px rgba(11,122,83,.16); }
.fd-preview svg.i { width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.fd-preview.pop { animation: rise 600ms var(--glide) both; }
.fd-done.fd-preview { color: var(--forest); }

/* ================= onboarding ================= */
.fd-prog { display: block; margin-bottom: 30px; }
.fd-prog-t { display: block; font: 550 12.5px/1 var(--ui); letter-spacing: .01em; color: var(--muted); }
.fd-prog-bar { display: block; height: 5px; margin-top: 10px; border-radius: 5px; background: rgba(10,18,15,.07); overflow: hidden; }
.fd-prog-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--hl) 70%, var(--spark)); transform-origin: left; transform: scaleX(var(--p, 0));
  animation: fd-grow 900ms var(--glide) both; }
.fd-step > .fd-prog { animation: none; }
.fd-step > * { animation-duration: 620ms; }
@keyframes fd-grow { from { transform: scaleX(calc(var(--p, 0) - .12)); } }
.fd-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.fd-kind { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 196px; padding: 22px 22px 24px; border-radius: 26px; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line), var(--lift-1); transition: box-shadow 600ms var(--glide), transform 600ms var(--glide); }
.fd-kind:hover { box-shadow: inset 0 0 0 1px rgba(10,18,15,.1), var(--lift-2); transform: translateY(-3px); }
.fd-kind[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--green), 0 22px 44px -22px rgba(6,43,29,.4); }
.fd-kind-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 12px; color: color-mix(in srgb, var(--c) 70%, #000);
  background: color-mix(in srgb, var(--c) 16%, #fff); }
.fd-kind b { font: 600 18px/1.2 var(--ui); letter-spacing: -.03em; color: var(--ink); }
.fd-kind > span:not(.fd-kind-ic) { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.fd-tick { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(10,18,15,.14);
  transition: background-color 300ms var(--glide), box-shadow 300ms var(--glide); }
.fd-tick svg.i { width: 15px; height: 15px; stroke-width: 2.6; color: #fff; opacity: 0; transition: opacity 250ms var(--glide); }
.fd-kind[aria-checked="true"] .fd-tick { background: var(--green); box-shadow: none; }
.fd-kind[aria-checked="true"] .fd-tick svg.i { opacity: 1; }
.fd-pick { display: grid; gap: 8px; }
.fd-pick button { display: flex; align-items: center; gap: 13px; min-height: 54px; padding: 10px 18px 10px 14px; border-radius: 16px; text-align: left; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  background: var(--ground); transition: background-color 400ms var(--glide), color 400ms var(--glide), box-shadow 400ms var(--glide); }
.fd-pick button:hover { background: #E9EEEB; color: var(--ink); }
.fd-pick button > svg.i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; stroke-width: 2.6; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(10,18,15,.18);
  transition: background-color 300ms var(--glide), color 300ms var(--glide), box-shadow 300ms var(--glide); }
.fd-pick button[aria-checked="true"] { background: color-mix(in srgb, var(--spark) 13%, #fff); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--green); }
.fd-pick button[aria-checked="true"] > svg.i { background: var(--green); color: #fff; box-shadow: none; }
.fd-f.bad .fd-pick button { box-shadow: inset 0 0 0 1px rgba(194,54,43,.3); }

/* the town picker */
.fd-combo { position: relative; }
.fd-combo-ic { position: absolute; left: 16px; top: 16px; z-index: 1; color: var(--muted); pointer-events: none; }
.fd-combo-ic svg.i { width: 20px; height: 20px; }
.fd-combo input { padding-left: 46px !important; }
.fd-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; max-height: 312px; overflow-y: auto; border-radius: 18px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--lift-3); }
.fd-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.fd-list li svg.i { width: 17px; height: 17px; color: var(--muted); }
.fd-list li:hover, .fd-list li[aria-selected="true"] { background: var(--ground); color: var(--ink); }
.fd-list li[aria-selected="true"] svg.i { color: var(--green); }
.fd-list li.none { cursor: default; color: var(--muted); font-size: 14px; padding: 10px 12px; }
.fd-list li.none:hover { background: none; }
.fd-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fd-quick .chip { cursor: pointer; height: 32px; font-size: 13px; transition: background-color 400ms var(--glide), color 400ms var(--glide); }
.fd-quick .chip:hover { background: rgba(11,122,83,.1); color: var(--green); }
.fd-static { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 16px; font-size: 16px; color: var(--ink-2); background: rgba(10,18,15,.03);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fd-static svg.i { width: 18px; height: 18px; color: var(--muted); }
.fd-static span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-private { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; font-weight: 500; color: var(--forest);
  background: color-mix(in srgb, var(--spark) 13%, #fff); }
.fd-private svg.i { width: 19px; height: 19px; margin-top: 1px; color: var(--green); }

/* ================= settings ================= */
.fd-card { padding: 28px 30px 30px; margin-top: 18px; border-radius: 28px; scroll-margin-top: 24px; box-shadow: inset 0 0 0 1px var(--line), var(--lift-1); }
.fd-lede + .fd-card { margin-top: 32px; }
.fd-card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--lift-2); }
.fd-card.flash { animation: fd-flash 1400ms var(--glide); }
@keyframes fd-flash { 0%, 30% { box-shadow: inset 0 0 0 2px rgba(11,122,83,.45), var(--lift-2); } }
.fd-h2 { display: flex; align-items: center; gap: 11px; font: 600 20px/1.2 var(--ui); letter-spacing: -.035em; }
.fd-h2 svg.i { width: 21px; height: 21px; color: var(--green); }
.fd-card .fd-form { margin-top: 18px; }
.fd-card .fd-form .fd-f { max-width: 460px; }
.fd-p { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 560px; }
.fd-card .fd-actions { margin-top: 18px; }
.fd-card .fd-form .fd-actions { margin-top: 4px; }
.fd-card .fd-note { margin-top: 14px; }
.fd-sws { margin-top: 6px; }
.fd-sw { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 0; cursor: pointer; position: relative; }
.fd-sws .fd-sw + .fd-sw { border-top: 1px solid var(--line); }
#set-mail .fd-sw { margin-top: 6px; }
.fd-sw-t b { display: block; font-size: 15.5px; font-weight: 550; letter-spacing: -.015em; color: var(--ink); }
.fd-sw-t small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.fd-sw input { position: absolute; right: 0; width: 48px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.fd-sw-k { position: relative; width: 48px; height: 28px; flex: none; border-radius: 99px; background: rgba(10,18,15,.16); transition: background-color 400ms var(--glide), box-shadow 300ms var(--glide); }
.fd-sw-k::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(4,27,18,.3);
  transition: transform 500ms var(--glide); }
.fd-sw input:checked + .fd-sw-k { background: var(--green); }
.fd-sw input:checked + .fd-sw-k::after { transform: translateX(20px); }
.fd-sw input:focus-visible + .fd-sw-k { box-shadow: 0 0 0 5px rgba(11,122,83,.18); }
.fd-sw input:disabled + .fd-sw-k { opacity: .6; }
/* before the member's real choices load, a switch shows neither on nor off: the knob rests in the middle */
.fd-sw-wait { cursor: progress; }
.fd-sw-wait input { cursor: progress; }
.fd-sw-wait .fd-sw-k { opacity: .55; }
.fd-sw-wait .fd-sw-k::after { transform: translateX(10px); box-shadow: none; }
.fd-nload { margin-top: 10px; font-size: 14px; }
.fd-danger .fd-h2 svg.i { color: var(--red); }
.btn.fd-red { color: #fff; background: linear-gradient(180deg, #CF4236, var(--red)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 24px -14px rgba(194,54,43,.8); }
.btn.fd-red[disabled] { opacity: .38; box-shadow: none; }
.btn.fd-red-soft { color: var(--red); background: rgba(194,54,43,.06); box-shadow: inset 0 0 0 1px rgba(194,54,43,.18); }
.btn.fd-red-soft:hover { background: rgba(194,54,43,.1); }
.fd-del { padding-top: 18px; border-top: 1px solid var(--line); }
/* the open custom plugin requests deleting cancels */
.fd-del-reqs { padding: 16px 18px; border-radius: 18px; background: rgba(194,54,43,.05); box-shadow: inset 0 0 0 1px rgba(194,54,43,.16); }
.fd-del-reqs .fd-p { margin: 0; }
.fd-del-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.fd-del-list li { display: grid; gap: 2px; }
.fd-del-list span { color: var(--muted); font-size: 14px; }

/* ================= narrower ================= */
@media (max-width: 1100px) {
  .fd-two { gap: 12px; }
  .fd-kind { min-height: 210px; }
}
/* phones come later (laptop first); below 720 the door stacks and nothing breaks */
@media (max-width: 720px) {
  .fd { display: block; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .fd::-webkit-scrollbar { display: none; }
  .fd-rail { padding: 16px 20px 22px; }
  .fd-pitch { padding: 18px 0 0; }
  .fd-tag { font-size: min(30px, 7.8cqi); margin-top: 12px; }
  .fd-doors, .fd-foot, .fd-mark, .fd-steps, .fd-rail-p, .fd-nav { display: none; }
  .fd-main { overflow: visible; }
  .fd-top { min-height: 0; padding: 14px 20px 0; }
  .fd-body, .fd-body.wide { width: calc(100% - 40px); margin: 18px auto 0; }
  .fd-h1 { font-size: 36px; }
  .fd-two, .fd-kinds { grid-template-columns: minmax(0, 1fr); }
  .fd-kind { min-height: 0; }
  .fd-card { padding: 22px 20px 24px; }
  .fd-switch { flex-wrap: wrap; justify-content: flex-end; }
}
/* Settings, Blocked members (the beta) */
.fd-blocks { display: grid; gap: 6px; margin-top: 12px; }
.fd-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--ground, #F2F5F3); }
.fd-block b { font-weight: 600; font-size: 15px; }
.fd-quiet { color: var(--muted); }

/* a shared group link names the group; the trade pick */
.fd-invite { display: flex; gap: 10px; align-items: center; margin: 6px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(11, 122, 83, .08); color: var(--ink, #0F2A22); font-size: 15px; }
.fd-invite svg { width: 20px; height: 20px; flex: none; color: var(--green, #0B7A53); }
.fd-select { width: 100%; height: 52px; border-radius: 16px; border: 1px solid rgba(15, 42, 34, .16); padding: 0 16px; font: inherit; background: #fff; }
/* Sign in: "Forgot it?" sits beside the Password label but comes after the field, so Tab goes Email, Password, then the
   link */
.fd-f.fd-aside-last { position: relative; }
.fd-f.fd-aside-last > .fd-aside { position: absolute; top: 0; right: 0; line-height: 1.3; }
/* the house rules, open right under the box you tick */
.fd-rules-peek { margin: 8px 0 0 36px; font-size: 13.5px; color: var(--ink-2); }
.fd-rules-peek summary { cursor: pointer; width: fit-content; color: var(--green); font-weight: 550; list-style-position: outside; }
.fd-rules-peek summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.fd-rules-peek ul { margin: 8px 0 0; padding: 12px 16px 12px 30px; border-radius: 14px; background: var(--ground); display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 4px; line-height: 1.45; color: var(--ink); font-weight: 550; }
.fd-rules-peek .fd-hint { margin-top: 8px; }
.fd-what span { display: block; }
.fd-what span + span { margin-top: 4px; }
.fd-rules-peek b { color: var(--ink); font-weight: 600; }
/* a town that isn't on the map yet, said in the page's flow */
.fd-town-none { color: var(--ink-2); }
/* Join: after a submit with problems the form is taller than a laptop screen, so Create my account rides along at the
   bottom of the screen until you scroll to it */
#fbdoor[data-screen="join"] .fd-form > .fd-actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -12px -16px; padding: 14px 12px 16px;
  background: linear-gradient(to bottom, rgba(251,250,247,0), #FBFAF7 34%); }
/* paragraphs and list items wrap plainly; only their last words are glued (orphans.md: never "pretty" on them) */
.fd-rules-peek li, .fd-rail-p, .fd-town-none { text-wrap: wrap; }
/* a notification that isn't in the beta yet: a Coming soon chip where its switch would be */
.fd-sw.fd-soon { cursor: default; }
.fd-soon .chip { flex: none; --c: var(--muted); }
/* an email address keeps its hyphens: it moves to a line of its own instead, and breaks only if it's longer than that */
.fd-addr { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

#fd-restart{ text-decoration: none; }

/* easy to hit: "Forgot it?" and Join free answer a 44 px tap, drawn invisibly around them (nothing moves) */
.fd-pill, .fd-aside { position: relative; }   /* (the last field's "Forgot it?" stays absolute: its own rule outranks this) */
:is(.fd-pill, .fd-aside)::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%; border-radius: 99px; }

/* ================= Sign in, Join and the email-link screens: the homepage's world =================
   No dark side any more: one light page like the welcome, simple and sleek. The words and the form on the left under a
   big logo, the homepage's web on the right with its warm light behind it. */
.fd[data-kind="auth"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: linear-gradient(180deg, #FFFFFF 0%, #FBFAF7 100%); isolation: isolate; }
.fd[data-kind="auth"]::before { content: ''; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30vw 30vw at 70% 46%, rgba(255,196,148,.26), rgba(255,214,176,.10) 45%, transparent 72%),
    radial-gradient(26vw 22vw at 82% 66%, rgba(62,224,166,.13), transparent 70%),
    radial-gradient(22vw 20vw at 60% 26%, rgba(255,231,196,.22), transparent 70%);
  animation: warm 14s ease-in-out infinite alternate; }
[data-calm] .fd[data-kind="auth"]::before { animation: none; }
.fd[data-kind="auth"] .fd-main { order: 1; position: static; background: none; }
.fd[data-kind="auth"] .fd-rail { order: 2; padding: 0; background: none; color: var(--ink); overflow: visible; }
.fd[data-kind="auth"] .fd-rail::before { content: none; }
.fd-web { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fd-web-labels .olabel { pointer-events: none; }
/* the list of the four parts: what a screen reader hears, and the picture if the 3D can't start */
.fd-parts { list-style: none; margin: auto; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; align-self: center; }
.fd-rail:not(.fd-web-on) .fd-parts { position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
.fd-parts li { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 14px; border-radius: 99px; font: 550 14.5px/1 var(--ui); letter-spacing: -.01em;
  background: rgba(255,255,255,.88); box-shadow: inset 0 0 0 1px rgba(10,18,15,.07), 0 6px 16px -10px rgba(4,27,18,.4); }
.fd-parts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.fd-web-on .fd-parts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd-rail.fd-in .fd-parts li { animation: rise 820ms var(--glide) both; }

/* the top: "Join for free" sits top right over the web, big and green */
.fd[data-kind="auth"] .fd-top { position: absolute; z-index: 3; top: 0; right: 0; min-height: 0; padding: 26px 32px; }
.fd[data-kind="auth"] .fd-switch { gap: 14px; font-size: 15px; }
.fd[data-kind="auth"] .fd-pill { height: 50px; padding: 0 20px 0 24px; font-size: 16px; gap: 9px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fd[data-kind="auth"] .fd-pill svg.i { width: 18px; height: 18px; }
.fd-pill.go { color: #fff; background: linear-gradient(180deg, #0E8A5E, var(--green, #0B7A53) 60%, #096B49);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px -14px rgba(11,122,83,.75); }
.fd-pill.go svg.i { color: #fff; }
.fd-pill.go:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 36px -14px rgba(11,122,83,.85); }
.fd-pill { transition: box-shadow 600ms var(--glide), transform 220ms var(--glide); }
.fd-pill:active { transform: scale(.97); }

/* the left: a big logo, one line, then the screen itself */
.fd[data-kind="auth"] .fd-body { width: min(460px, calc(100% - 96px)); padding: 112px 0 72px; }
.fd-hero { margin-bottom: 44px; }
.fd-logo { display: block; color: var(--ink); }
.fd-logo .logo { display: block; width: min(100%, 400px); height: auto; }
.fd-line { margin: 18px 0 0; font: 600 25px/1.15 var(--ui); letter-spacing: -.04em; color: var(--ink-2); white-space: nowrap; }
.fd-line em { color: var(--green); font-family: 'Playfair Display', var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; padding-right: .06em; }
.fd[data-kind="auth"] .fd-h1 { font-size: 38px; margin-top: 10px; }
.fd[data-kind="auth"] .fd-h1-fit { font-size: 38px; }

/* phones come after the laptop look is done: for now the web steps aside and the page reads top to bottom */
@media (max-width: 720px) {
  .fd[data-kind="auth"] .fd-rail { display: none; }
  .fd[data-kind="auth"] .fd-top { position: static; padding: 14px 20px 0; }
  .fd[data-kind="auth"] .fd-body { width: calc(100% - 40px); padding: 24px 0 48px; }
  .fd-logo .logo { width: min(100%, 280px); }
  .fd-line { font-size: 20px; }
  .fd[data-kind="auth"] .fd-pill { height: 44px; font-size: 15px; }
}
/* Join is the longest screen: a smaller logo, no line under it and less air, so a fresh form fits a 900 px laptop screen
   (on a shorter one, Create my account rides along at the bottom as before) */
#fbdoor[data-kind="auth"][data-screen="join"] .fd-body { padding-top: 40px; }
#fbdoor[data-kind="auth"][data-screen="join"] .fd-hero { margin-bottom: 22px; }
#fbdoor[data-kind="auth"][data-screen="join"] .fd-logo .logo { width: min(100%, 300px); }
#fbdoor[data-kind="auth"][data-screen="join"] .fd-line { display: none; }
