/* BodyFitnessAtHome x KaraMax: shared look for the free intake and the member app.
   Brand: sand #F3F1ED, gold #B8873F, slate #5A6068, ink #14161A (from bodyfitnessathome.com).
   Fonts are self-hosted (no request to Google). Gold is never used for small text on light
   backgrounds (contrast); small accents use --gold-deep. */
@import url("fonts.css");

:root {
  --sand: #F3F1ED; --sand-2: #E9E5DD; --paper: #FFFFFF;
  --ink: #14161A; --ink-2: #23262C; --slate: #5A6068; --line: rgba(20, 22, 26, .10);
  --gold: #B8873F; --gold-soft: #F3E6CF; --gold-deep: #8A6224; --gold-glow: rgba(184, 135, 63, .28);
  --ok: #3F7D5A; --warn: #9A5B12;
  --r: 20px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20,22,26,.04), 0 12px 32px -12px rgba(20,22,26,.18);
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* background (2026-11-23): BFAH's own silhouettes (sport, food, mindset, sleep), heavily blurred, very faint.
     Source + master: HQ repo content/bf-app-achtergrond/. */
  --pattern: url("bg/bg-pattern-light.png");
  --night: #14161A;           /* dark surfaces (stats, programme bar, pass) stay dark in both themes */
  --card: rgba(255,255,255,.78); --card-edge: rgba(255,255,255,.9);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 17.5px/1.6 var(--body); color: var(--ink); background: var(--sand); min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 85% -10%, var(--gold-glow), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(90, 96, 104, .10), transparent 60%);
  background-attachment: fixed;
}
/* the silhouette pattern starts below the logo + Today/Progress/Coach bar, fading in (Winston 2026-11-23) */
body::before { content: ""; position: fixed; top: 140px; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: var(--pattern) center top / 960px auto repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 70px); mask-image: linear-gradient(transparent, #000 70px); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.logo { height: 46px; width: auto; display: block; }
.chip { font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
        border: 1px solid rgba(184,135,63,.45); background: rgba(255,255,255,.55); padding: 8px 12px; border-radius: 999px;
        display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(8px); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
                box-shadow: 0 0 0 4px var(--gold-glow); }

.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
h1 { font: 700 clamp(2rem, 6vw, 2.9rem)/1.05 var(--display); letter-spacing: -.02em; margin: .35em 0 .3em; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold-deep), var(--gold) 60%, #D4A75E);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font: 700 1.55rem/1.15 var(--display); letter-spacing: -.01em; margin-bottom: .3em; }
h3 { font: 600 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 10px; }
.sub { color: var(--slate); font-size: 1.05rem; margin-bottom: 1.4em; max-width: 34em; }

.card { background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: var(--r);
        padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card + .card { margin-top: 16px; }

/* progress */
.bar { height: 6px; background: rgba(20,22,26,.08); border-radius: 99px; overflow: hidden; margin: 6px 0 8px; }
.bar > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), #D9B06A);
             box-shadow: 0 0 12px var(--gold-glow); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.step { color: var(--slate); font-size: .9rem; margin-bottom: 14px; }

/* questions + pickers */
.q { margin-bottom: 24px; } .q:last-of-type { margin-bottom: 8px; }
.q .title, .q label.title { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; }
.opt { display: inline-block; margin: 0 8px 10px 0; position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 11px 18px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 999px;
            cursor: pointer; background: var(--paper); font-weight: 500; transition: all .18s; user-select: none; }
.opt span:hover { border-color: var(--gold); transform: translateY(-1px); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff;
                            box-shadow: 0 0 0 4px var(--gold-glow); }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
           font: inherit; background: var(--paper); resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.opt-hint { color: var(--slate); font-weight: 400; font-size: .88rem; }

/* buttons */
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; }
button, .btn { font: 600 1rem/1 var(--body); border: none; border-radius: 999px; padding: 15px 26px; min-height: 50px;
               cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
               transition: transform .15s, box-shadow .2s, background .2s; }
.primary { background: linear-gradient(135deg, #C99A50, var(--gold) 55%, #A37530); color: var(--ink);
           box-shadow: 0 8px 22px -8px rgba(184,135,63,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(184,135,63,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.dark { background: var(--ink); color: #fff; }
.ghost { background: transparent; color: var(--slate); }
.ghost:hover { color: var(--ink); }
.wide { width: 100%; }
button:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; transform: none; }
.err { color: var(--warn); font-size: .95rem; min-height: 1.4em; margin-top: 8px; }

/* results (intake) */
.rhythm { color: var(--gold-deep); font-weight: 600; margin-bottom: 1em; }
.round { border-top: 1px solid var(--line); padding: 14px 0; }
.ex { margin: 8px 0; font-weight: 600; } .ex small { display: block; color: var(--slate); font-weight: 400; font-size: .9rem; }
.note { background: #FBF4E8; border-left: 3px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0;
        padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.tips { list-style: none; } .tips li { position: relative; padding-left: 24px; margin: 0 0 10px; }
.tips li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px;
                   background: var(--gold); transform: rotate(45deg); }
.win { background: var(--gold-soft); padding: 14px 16px; border-radius: var(--r-sm); margin: 16px 0; }
.disc { color: var(--slate); font-size: .82rem; margin-top: 18px; }
.cta { margin-top: 18px; width: 100%; }

/* member app: method strip + exercise cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.stat { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 14px 12px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 120px; height: 120px; border-radius: 50%;
               background: radial-gradient(var(--gold-glow), transparent 70%); }
.stat b { display: block; font: 700 1.7rem/1 var(--display); color: #E6C17F; }
.stat span { font-size: .8rem; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.swap { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border: 1px solid rgba(184,135,63,.35);
        border-radius: var(--r-sm); padding: 12px 14px; margin: 14px 0 4px; font-size: .95rem; }
.swap::before { content: "↗"; font-weight: 700; color: var(--gold-deep); }
.excard { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.excard:first-of-type { border-top: none; }
.num { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font: 700 1.4rem var(--display);
       color: #E6C17F; background: radial-gradient(circle at 30% 20%, #2C3038, var(--ink)); box-shadow: inset 0 0 0 1px rgba(230,193,127,.25); }
.excard h4 { font: 700 1.15rem/1.25 var(--display); margin: 4px 0 2px; }
.excard .pat { color: var(--slate); font-size: .85rem; }
.hint { font-size: .92rem; color: var(--slate); margin-top: 6px; }
.hint b { color: var(--ink); font-weight: 600; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; margin-top: 10px; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; width: 100%; border-radius: 0; color: #fff; font-weight: 600;
        background: radial-gradient(circle at 50% 45%, rgba(184,135,63,.35), transparent 55%), var(--ink); flex-direction: column; }
.play::before { content: ""; width: 0; height: 0; border-left: 20px solid #E6C17F; border-top: 13px solid transparent;
                border-bottom: 13px solid transparent; margin-bottom: 8px; filter: drop-shadow(0 0 10px rgba(230,193,127,.6)); }

/* guided session: the dark cockpit */
.cockpit { position: fixed; inset: 0; z-index: 10; background: radial-gradient(800px 600px at 50% 0%, #2A2C31, var(--ink) 70%);
           color: #fff; overflow-y: auto; }
.cockpit .wrap { padding-top: 16px; display: flex; flex-direction: column; min-height: 100%; }
.cockpit-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.7); font-size: .9rem; }
.phase { font: 700 .85rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.phase.work { background: var(--gold); color: var(--ink); box-shadow: 0 0 24px var(--gold-glow); }
.phase.reset { background: rgba(255,255,255,.12); color: #fff; }
.phase.rest { background: #3F7D5A; color: #fff; }
.ring { position: relative; width: min(64vw, 270px); aspect-ratio: 1; margin: 18px auto 8px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .t { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(3.4rem, 15vw, 4.6rem)/1 var(--display); }
.now { text-align: center; font: 700 clamp(1.4rem, 5vw, 1.9rem)/1.2 var(--display); margin: 6px 0 2px; }
.next { text-align: center; color: rgba(255,255,255,.62); font-size: .95rem; min-height: 1.5em; }
.cockpit .video { max-width: 520px; width: 100%; margin: 16px auto 0; box-shadow: 0 0 0 1px rgba(230,193,127,.2); }
.controls { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.controls .ghost { color: rgba(255,255,255,.75); }
.controls .ghost:hover { color: #fff; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.dots i { flex: 1 1 0; max-width: 22px; min-width: 4px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.16); }
.dots i.done { background: var(--gold); } .dots i.on { background: #E6C17F; box-shadow: 0 0 10px var(--gold-glow); }

/* feedback */
.rate { padding: 14px 0; border-top: 1px solid var(--line); } .rate:first-of-type { border-top: none; }
.rate h4 { font: 700 1.05rem var(--display); margin-bottom: 8px; }
.saved { color: var(--ok); font-weight: 600; }
.center { text-align: center; }
.hidden { display: none !important; }

/* weekly coach check-in */
.coach .sub.small { font-size: .95rem; margin-bottom: 1em; }
.coach textarea { min-height: 110px; }
#coach-thread { margin-top: 18px; }
.msg { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.msg p { margin: 4px 0 10px; white-space: pre-wrap; }
.msg-meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.coach-meta { color: var(--gold-deep); font-weight: 600; }
.reply { background: var(--gold-soft); border-radius: var(--r-sm); padding: 12px 14px; }
.msg-wait { color: var(--slate); font-size: .9rem; font-style: italic; margin-bottom: 10px; }
.foot { color: var(--slate); font-size: .8rem; margin-top: 22px; text-align: center; }

@media (max-width: 480px) {
  #v-session .nav, #v-done .nav { flex-direction: column-reverse; align-items: stretch; }
  #v-session .nav button, #v-done .nav button { width: 100%; }
  .card { padding: 20px 18px; } .logo { height: 38px; } .stat b { font-size: 1.4rem; }
  .excard { grid-template-columns: 44px 1fr; } .num { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
}

/* progress */
.progress .stats { margin-bottom: 16px; }
.weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 86px; align-items: end; }
.wk { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.wk i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--line); }
.wk.on i { background: linear-gradient(180deg, #D4A75E, var(--gold)); }
.wk span { font-size: .72rem; color: var(--slate); }
.p-line { color: var(--slate); margin-top: 12px; font-size: .95rem; }

/* tabs + one-question-per-screen check-in (2026-11-21) */
.tabs { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
        padding: 5px; margin: -8px 0 22px; border-radius: 999px; background: rgba(255,255,255,.72);
        border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px); }
.tabs button { position: relative; min-height: 42px; border-radius: 999px; background: transparent; color: var(--slate);
               font-weight: 600; border: 0; padding: 8px 6px; box-shadow: none; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs .dot { position: absolute; top: 8px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.done { background: var(--gold); }
.steps i.on { background: linear-gradient(90deg, var(--gold), #D4A75E); box-shadow: 0 0 0 3px var(--gold-glow); }
#checkin-card h2 { font-size: 1.35rem; margin-bottom: .2em; }
#checkin-card .q { margin-bottom: 18px; }
#checkin-card .opt-hint { margin: 0 0 12px; }
.choices { display: grid; gap: 10px; margin-top: 12px; }
.q.grid .choices { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 58px;
          border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: pointer;
          transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice:hover { border-color: var(--gold); transform: translateY(-1px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { flex: 1; display: flex; flex-direction: column; }
.choice-body b { font-weight: 600; }
.choice-body small { color: var(--slate); font-size: .88rem; }
.choice .tick { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 4px var(--gold-glow); }
.choice:has(input:checked) .tick { background: var(--gold); border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161A' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat; }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice.small { justify-content: center; text-align: center; padding: 12px 6px; }
.choice.small .tick { display: none; }
.choice.small .choice-body { align-items: center; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 16px; margin-bottom: 18px;
           border-bottom: 1px solid var(--line); }
.summary span { background: var(--sand); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 500; }
.link { background: none; border: 0; color: var(--gold-deep); font-weight: 600; text-decoration: underline;
        padding: 6px 4px; min-height: 0; box-shadow: none; }
@media (max-width: 420px) { .q.grid .choices { grid-template-columns: repeat(2, 1fr); } }

/* fitness test (2026-11-21) */
.ftest h2 { font-size: 1.35rem; }
.ftest .sub.small { font-size: .95rem; margin-bottom: 1em; }
.ft-table { display: grid; gap: 0; margin: 6px 0 14px; }
.ft-row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line);
          align-items: center; font-size: .95rem; }
.ft-row b { font-weight: 600; }
.ft-head { border-top: none; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.ft-timer { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px; }
.ft-clock { font: 700 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.ft-input { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
.ft-input input { width: 100%; padding: 12px 14px; font: inherit; font-size: 1.1rem; border: 1.5px solid var(--line);
                  border-radius: var(--r-sm); background: var(--paper); }
.ft-input input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ft-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); margin: 10px 0 4px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.ftest .choices { margin: 0 0 14px; }

/* programme track (2026-11-21) */
.prog { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; margin: 0 0 18px; box-shadow: var(--shadow); }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prog-top b { font: 700 1.3rem var(--display); color: #E6C17F; }
.prog-top span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.prog-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); margin: 10px 0 4px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #E6C17F); border-radius: 3px; }
.prog p { font-size: .9rem; color: rgba(255,255,255,.8); margin: 10px 0 0; }
.prog .dark { margin-top: 12px; background: var(--gold); color: var(--ink); }
.stack { display: grid; gap: 10px; margin-top: 8px; }
.stack .link { justify-self: center; }
.stack .btn { text-align: center; justify-content: center; display: flex; align-items: center; }

/* training days -> calendar (2026-11-21) */
.plan h2 { font-size: 1.35rem; }
.plan .sub.small { font-size: .95rem; margin-bottom: 1em; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.days .choice { padding: 12px 2px; min-height: 48px; }
.days .choice-body b { font-size: .9rem; }
#pl-note { margin-top: 12px; }

/* workout music picker (2026-11-21) */
.music .choices { display: grid; gap: 8px; }
.music .opt-hint { margin-top: 10px; }

/* home screen: launch screen + install tip (2026-11-21) */
.splash { position: fixed; inset: 0; z-index: 99; background: #14161A; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; transition: opacity .45s ease; }
.splash img { width: min(72vw, 320px); height: auto; margin-bottom: 18px; }
.splash p { color: #E6C17F; font: 600 1.25rem/1.3 var(--display, inherit); letter-spacing: .02em; margin: 4px 0 0; }
.splash.out { opacity: 0; pointer-events: none; }
.install { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--sand);
  border-radius: 16px; padding: 12px 12px 12px 16px; margin: 10px 0 14px; }
.install div { flex: 1; font-size: .92rem; line-height: 1.4; }
.install b { display: block; color: #E6C17F; }
.install .primary { padding: 10px 16px; min-height: 0; }
.install .x { background: none; border: 0; color: var(--sand); font-size: 1.5rem; line-height: 1; padding: 4px 8px; cursor: pointer; }

/* guided session: the session's exercise videos stacked, only the current one visible (2026-11-22) */
.cockpit .video iframe, .cockpit .video > div { opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.cockpit .video .on { opacity: 1; }

/* intake: free day pass / 7-day challenge (2026-11-22) */
.pass { background: var(--ink); color: var(--sand); border-radius: 18px; padding: 18px; margin: 20px 0 12px; }
.pass h3 { color: #E6C17F; margin: 0 0 6px; }
.pass .sub.small { color: rgba(243,241,237,.8); font-size: .95rem; margin: 0 0 12px; }
.pass-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pass-opt { background: rgba(255,255,255,.06); border: 1.5px solid rgba(230,193,127,.25); border-radius: 14px; color: var(--sand);
  padding: 12px 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.pass-opt b { font-size: 1rem; }
.pass-opt span { font-size: .8rem; opacity: .75; }
.pass-opt.on { border-color: #E6C17F; background: rgba(230,193,127,.14); }
.pass-email { width: 100%; box-sizing: border-box; padding: 14px; border-radius: 12px; border: 0; font: inherit; font-size: 1rem; margin-bottom: 10px; }
.pass-optin { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.4; margin-bottom: 12px; opacity: .9; }
.pass-optin input { margin-top: 3px; }
.pass .disc { color: rgba(243,241,237,.6); }
.pass .err { color: #F2A38A; }


/* dark mode (2026-11-23). html[data-theme] is set by the inline script in app.html: the member's own choice,
   otherwise the phone's setting. Tokens flip; dark surfaces that used --ink get their own dark colour. */
html[data-theme="dark"] {
  --sand: #0F1114; --sand-2: #181B20; --paper: #1C1F24;
  --ink: #F1ECE3; --ink-2: #DCD6CC; --slate: #A7ADB5; --line: rgba(255, 255, 255, .10);
  --gold-soft: rgba(230, 193, 127, .12); --gold-deep: #E6C17F; --gold-glow: rgba(184, 135, 63, .24);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --pattern: url("bg/bg-pattern-dark.png");
  --card: rgba(26, 29, 34, .84); --card-edge: rgba(255,255,255,.06);
  color-scheme: dark;
}
.card { background: var(--card); border-color: var(--card-edge); }
html[data-theme="dark"] .chip, html[data-theme="dark"] .tabs { background: rgba(26,29,34,.78); border-color: var(--card-edge); }
html[data-theme="dark"] .stat, html[data-theme="dark"] .prog, html[data-theme="dark"] .pass, html[data-theme="dark"] .install,
html[data-theme="dark"] .video, html[data-theme="dark"] .play { background-color: #23262C; }
html[data-theme="dark"] .num { background: radial-gradient(circle at 30% 20%, #33373F, #1C1F24); }
html[data-theme="dark"] .dark, html[data-theme="dark"] .tabs button[aria-selected="true"],
html[data-theme="dark"] .opt input:checked + span { background: #E6C17F; border-color: #E6C17F; color: var(--night); }
html[data-theme="dark"] .primary, html[data-theme="dark"] .phase.work, html[data-theme="dark"] .prog .dark { color: var(--night); }
html[data-theme="dark"] .install, html[data-theme="dark"] .install .x, html[data-theme="dark"] .pass { color: #F3F1ED; }
html[data-theme="dark"] .choice:has(input:checked) { border-color: #E6C17F; background: rgba(230,193,127,.12); }
html[data-theme="dark"] .note { background: rgba(154, 91, 18, .16); }
html[data-theme="dark"] .err { color: #F2A38A; }
html[data-theme="dark"] .logo { content: url("icons/splash-logo.png"); }
html[data-theme="dark"] .cockpit { background: radial-gradient(800px 600px at 50% 0%, #2A2C31, var(--night) 70%); color: #fff; }
html[data-theme="dark"] .pass-email { background: #F3F1ED; color: var(--night); }

/* theme switch in the top bar */
.top-right { display: flex; align-items: center; gap: 8px; }
.theme-btn { min-height: 38px; width: 38px; padding: 0; border-radius: 50%; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); font-size: 1.05rem; box-shadow: none; }
.theme-btn:hover { border-color: var(--gold); }
