/* Bolo — saffron, navy blue and white (green only for "done") */
:root {
  --saffron: #FF9933;
  --saffron-deep: #E8730C;
  --saffron-soft: #FFF3E6;
  --navy: #0A1E6E;
  --navy-2: #1B2F8A;
  --navy-soft: #EEF1FB;
  --white: #FFFFFF;
  --green: #138808;
  --green-soft: #E8F5E6;
  --ink: #0F1A3D;
  --muted: #5A6485;
  --line: #E3E7F2;
  --bg: #FAFBFE;
  --danger: #C62828;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(10, 30, 110, .07);
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --tabbar-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Roboto", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; flex: none; }
.i.fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: var(--white);
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--white); }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.brand-sub { font-size: 12px; opacity: .8; }
.week-badge { text-align: right; font-size: 12px; line-height: 1.2; color: #C9D2F5; }
.week-badge b { color: var(--saffron); font-size: 16px; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, var(--saffron) 0 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%); }
.tricolour { display: none; }

main { padding: 16px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px); max-width: 640px; margin: 0 auto; outline: none; }
.page-title { font-size: 26px; color: var(--navy); margin: 4px 2px 14px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; background: var(--white);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 16px rgba(10, 30, 110, .06);
}
.tabbar button {
  flex: 1; height: var(--tabbar-h); border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 12.5px; font-weight: 600; position: relative;
}
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--navy); }
.tabbar button.active svg { stroke: var(--saffron-deep); }
.tabbar button.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--saffron); }
body.onboarding .tabbar, body.onboarding .week-badge { display: none; }
body.in-session .tabbar { display: none; }

/* ---------- Cards & common ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head h3 { font-size: 18px; color: var(--navy); flex: 1; }
.card-head .i { color: var(--saffron-deep); width: 22px; height: 22px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; color: var(--saffron-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chip-saffron { background: var(--saffron-soft); color: #9A4A00; }
.chip-navy { background: var(--navy-soft); color: var(--navy); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 700; font-size: 16px; min-height: 50px; text-decoration: none; }
.btn-xl { width: 100%; min-height: 64px; font-size: 20px; letter-spacing: .6px; border-radius: 16px; }
.btn-lg { width: 100%; min-height: 56px; font-size: 17px; }
.btn-small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn-primary { background: var(--saffron); color: var(--navy); box-shadow: 0 4px 14px rgba(255, 153, 51, .4); }
.btn-primary:active { background: var(--saffron-deep); }
.btn-primary:disabled { background: #F3D9BE; box-shadow: none; color: #8C8FA8; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); width: 100%; margin-top: 6px; }
.btn-ghost { background: var(--navy-soft); color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.danger { color: var(--danger) !important; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.link-btn { background: none; border: 0; color: var(--navy-2); text-decoration: underline; font-size: 15px; padding: 10px 4px; }
.mini { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--navy-soft); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }

.banner { background: var(--saffron-soft); border-left: 5px solid var(--saffron); color: #7A3B00; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.banner-green { background: var(--green-soft); border-color: var(--green); color: #0C5205; font-weight: 500; }

/* ---------- Today hero ---------- */
.hero {
  background: var(--white); border-radius: 22px; padding: 20px 18px 18px; margin-bottom: 14px;
  border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(10, 30, 110, .09);
  border-top: 6px solid var(--saffron);
}
.hero-date { color: var(--muted); font-size: 15px; margin-top: 2px; }
.hero-label { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-title { font-size: 30px; color: var(--navy); font-weight: 800; margin-top: 2px; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 12px; margin: 4px 0 12px; }
.status-done { background: var(--green-soft); color: var(--green); }
.status-rest { background: var(--navy-soft); color: var(--navy); }
.status-todo { background: #F5F6FA; color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.hero-actions .link-btn { align-self: center; }
.phase-line { margin-top: 14px; font-size: 15px; color: var(--muted); }
.phase-line b { color: var(--navy); }
.progress-mini { display: flex; gap: 5px; margin-top: 8px; }
.progress-mini span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.progress-mini span.past { background: var(--navy-2); }
.progress-mini span.now { background: var(--saffron); }

.objective { margin: -4px 0 8px; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list > li { border-top: 1px solid var(--line); }
.activity-list > li:first-child { border-top: 0; }
.activity-list summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; }
.activity-list summary::-webkit-details-marker { display: none; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.act-main { flex: 1; display: flex; flex-direction: column; }
.act-main b { font-size: 17px; color: var(--ink); }
.act-cue { font-size: 14px; color: var(--muted); }
.act-min { font-weight: 800; color: var(--saffron-deep); white-space: nowrap; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.tag-rec .i { width: 17px; height: 17px; color: var(--navy-2); }
details[open] > summary .num { background: var(--saffron); color: var(--navy); }
.act-detail { padding: 0 4px 14px 46px; font-size: 15px; }
.act-detail ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.say-inline { background: var(--saffron-soft); border-radius: 10px; padding: 8px 12px; font-weight: 700; color: var(--navy); }
.rec-prompt { margin-top: 8px; font-style: italic; color: var(--navy-2); }

.week-list { display: flex; flex-direction: column; gap: 6px; }
.week-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px 12px; text-align: left; min-height: 56px; }
.wr-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.wr-day { width: 40px; font-weight: 800; color: var(--navy); display: flex; flex-direction: column; line-height: 1.1; }
.wr-day small { font-weight: 500; color: var(--muted); font-size: 12px; }
.wr-focus { flex: 1; font-size: 15px; }
.wr-min { font-weight: 700; color: var(--muted); font-size: 14px; }
.week-row.done .wr-dot { background: var(--green); border-color: var(--green); color: #fff; }
.week-row.done .wr-dot .i { width: 16px; height: 16px; stroke-width: 3; }
.week-row.rest .wr-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.week-row.today { border: 2px solid var(--saffron); background: var(--saffron-soft); }
.week-row.today .wr-dot { border-color: var(--saffron); }
.week-row.missed { opacity: .6; }

.weekly-cta { border: 2px dashed var(--navy-2); }
.weekly-cta h3 { color: var(--navy); margin: 4px 0; }
.weekly-mini { display: flex; gap: 12px; align-items: center; }
.weekly-mini > .i { color: var(--green); width: 28px; height: 28px; stroke-width: 3; }
.weekly-mini div { display: flex; flex-direction: column; }

.safety { border-left: 6px solid var(--saffron); }
.safety-list { margin: 0; padding-left: 20px; }
.safety-list li { margin: 3px 0; font-weight: 600; }
.safety.compact .safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 14px; }
.safety.compact .safety-list li { font-weight: 500; }

/* ---------- Onboarding ---------- */
.onb { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.onb-logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto; box-shadow: var(--shadow); }
.onb-title { text-align: center; color: var(--navy); font-size: 34px; }
.onb-lead { text-align: center; font-size: 18px; margin: 0; }
.target { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.target span { background: var(--navy); color: #fff; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.target span:nth-child(odd) { background: var(--saffron); color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; }
.field input { font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); min-height: 50px; }
.field input:focus { border-color: var(--saffron); outline: none; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; }
.field.inline input { min-width: 150px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 24px; height: 24px; accent-color: var(--saffron-deep); flex: none; }

/* ---------- Session ---------- */
#overlay { display: none; }
#overlay.active { display: block; position: fixed; inset: 0; z-index: 40; background: var(--white); }
.session { height: 100%; display: flex; flex-direction: column; padding-top: var(--safe-top); }
.s-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--navy); color: #fff; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; }
.s-count { font-size: 16px; }
.s-count b { color: var(--saffron); font-size: 18px; }
.s-day { font-weight: 800; color: var(--saffron); width: 44px; text-align: right; }
.s-progress { display: flex; gap: 4px; padding: 0 14px 10px; background: var(--navy); }
.s-progress span { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.s-progress span.done { background: #fff; }
.s-progress span.now { background: var(--saffron); }
.s-body { flex: 1; overflow-y: auto; padding: 18px 18px 10px; display: flex; flex-direction: column; align-items: stretch; }
.s-name { text-align: center; font-size: 28px; color: var(--navy); margin: 4px 0 10px; }
.ring-wrap { position: relative; width: min(64vw, 250px); aspect-ratio: 1; margin: 4px auto 8px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--navy-soft); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--saffron); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.s-time { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(52px, 17vw, 72px); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.s-state { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font-weight: 800; color: var(--saffron-deep); letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }
.s-cue { text-align: center; font-size: 20px; font-weight: 600; color: var(--ink); margin: 4px 0 14px; }
.say-box { background: var(--saffron-soft); border: 2px solid #FFD8B0; border-radius: 16px; padding: 14px; text-align: center; font-size: 21px; font-weight: 700; color: var(--navy); display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.say-pause { font-size: 15px; color: var(--saffron-deep); letter-spacing: 2px; }
.rec-card { background: var(--navy-soft); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.rec-q { text-align: center; font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.howto { border-top: 1px solid var(--line); padding-top: 8px; }
.howto summary { color: var(--navy-2); font-weight: 700; padding: 8px 0; cursor: pointer; }
.howto ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.s-safety { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.s-auto { display: none; text-align: center; padding: 6px 14px; background: var(--saffron-soft); color: var(--navy); font-size: 15px; }
.s-auto.show { display: block; }
.s-controls { display: flex; gap: 10px; padding: 12px 14px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.ctrl { border: 0; border-radius: 16px; min-height: 64px; font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.ctrl-back { width: 64px; background: var(--navy-soft); color: var(--navy); font-size: 30px; }
.ctrl-back:disabled { opacity: .35; }
.ctrl-pause { flex: 1; background: var(--navy); color: #fff; }
.ctrl-next { flex: 1; background: var(--saffron); color: var(--navy); }
.s-controls.single .ctrl-next { flex: 1; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, .6); } 50% { box-shadow: 0 0 0 10px rgba(255, 153, 51, 0); } }

/* Review */
.review-box { background: var(--navy-soft); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.score-title { font-weight: 800; color: var(--navy); margin: 12px 0 6px; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.score-row > span { font-weight: 600; font-size: 15px; }
.score-btns { display: flex; gap: 5px; }
.score-btns button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--white); font-weight: 800; color: var(--navy); }
.score-btns button.on { background: var(--saffron); border-color: var(--saffron); }

/* Finish */
.finish { background: var(--white); }
.finish-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; gap: 8px; }
.finish-check { width: 110px; height: 110px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--green-soft); margin-bottom: 14px; }
.finish-check .i { width: 60px; height: 60px; stroke-width: 3; }
.finish h2 { font-size: 30px; color: var(--navy); }
.finish-stats { display: flex; gap: 10px; margin: 16px 0; width: 100%; }
.finish-stats div { flex: 1; background: var(--navy-soft); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; }
.finish-stats b { font-size: 26px; color: var(--navy); }
.finish-stats span { font-size: 13px; color: var(--muted); }
.quote { font-size: 19px; font-style: italic; color: var(--saffron-deep); font-weight: 600; margin: 4px 0 14px; }

/* ---------- Recorder ---------- */
.recorder { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rec-btn { width: 84px; height: 84px; border-radius: 50%; border: 5px solid var(--navy); background: var(--white); display: flex; align-items: center; justify-content: center; }
.rec-dot { width: 40px; height: 40px; border-radius: 50%; background: #E53935; }
.rec-square { width: 30px; height: 30px; border-radius: 6px; background: var(--navy); }
.rec-btn.is-recording { border-color: #E53935; animation: recpulse 1.4s infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .45); } 50% { box-shadow: 0 0 0 14px rgba(229, 57, 53, 0); } }
.rec-hint { color: var(--muted); font-size: 15px; }
.rec-live { font-weight: 700; color: #C62828; display: flex; align-items: center; gap: 8px; }
.rec-live b { color: var(--navy); font-variant-numeric: tabular-nums; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #E53935; display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.meter { width: 80%; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--navy-2)); transition: width .08s; }
.rec-audio, audio { width: 100%; height: 44px; }
.rec-meta { font-size: 14px; color: var(--muted); }
.recorder .btn-row { width: 100%; }
.saved-badge { color: var(--green); font-weight: 800; }
.rec-error { color: var(--danger); text-align: center; font-weight: 600; }
.passage { font-size: 19px; line-height: 1.6; color: var(--navy); background: var(--saffron-soft); padding: 14px; border-radius: 14px; font-weight: 500; }

/* ---------- Progress ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; box-shadow: var(--shadow); border-top: 4px solid var(--saffron); }
.stat b { font-size: 30px; color: var(--navy); line-height: 1.1; }
.stat b small { font-size: 16px; color: var(--muted); }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.stat.navy { background: var(--navy); border-top-color: var(--saffron); }
.stat.navy b { color: var(--white); }
.stat.navy b small, .stat.navy span { color: #C9D2F5; }

.phases { display: flex; flex-direction: column; gap: 8px; }
.phase { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.phase.cur { border: 2px solid var(--saffron); background: var(--saffron-soft); }
.phase.past { opacity: .75; }
.ph-weeks { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--saffron-deep); text-transform: uppercase; }
.ph-goal { font-size: 18px; font-weight: 800; color: var(--navy); }
.ph-focus { font-size: 14px; color: var(--muted); }
.ph-bars { display: flex; gap: 6px; margin-top: 8px; }
.ph-bars span { flex: 1; height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ph-bars i { display: block; height: 100%; background: var(--green); }

.week-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-bottom: 12px; }
.week-pick button { border: 2px solid var(--line); background: var(--white); border-radius: 10px; padding: 8px 0; font-weight: 800; font-size: 13px; color: var(--navy); }
.week-pick button.has { border-color: var(--navy-2); }
.week-pick button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.week-pick button:disabled { opacity: .35; }
.slider-row { display: grid; grid-template-columns: 112px 1fr 30px; align-items: center; gap: 10px; padding: 7px 0; }
.sl-label { font-weight: 600; font-size: 15px; }
.slider-row output { font-weight: 800; color: var(--navy); text-align: right; font-size: 18px; }
input[type=range] { width: 100%; accent-color: var(--saffron-deep); height: 30px; }
input[type=range].unset { opacity: .45; }

.trend { display: flex; flex-direction: column; gap: 6px; }
.trend-row { display: grid; grid-template-columns: 112px 1fr; align-items: end; gap: 10px; }
.trend-row > span { font-size: 14px; font-weight: 600; }
.trend-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; height: 30px; align-items: end; }
.trend-bars i { display: block; background: var(--navy-2); border-radius: 3px 3px 0 0; }
.trend-bars i:last-child { background: var(--navy-2); }
.trend-bars i.empty { background: var(--line); }
.trend-row.axis .trend-bars { height: auto; }
.trend-row.axis em { font-style: normal; font-size: 12px; text-align: center; color: var(--muted); }

.sat-row { padding: 8px 0; border-top: 1px solid var(--line); }
.sat-row:first-of-type { border-top: 0; }
.sat-scores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sat-scores span { background: var(--navy-soft); border-radius: 8px; padding: 3px 8px; font-size: 13px; }
.sat-scores b { color: var(--saffron-deep); }

.success-list { margin-top: 12px; }
.sq { padding: 10px 0; border-top: 1px solid var(--line); }
.sq > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15.5px; }
.sq-btns { display: flex; gap: 6px; }
.sq-btns button { flex: 1; border: 2px solid var(--line); background: var(--white); border-radius: 10px; padding: 8px 0; font-weight: 700; font-size: 14px; color: var(--navy); }
.sq-btns button.on.yes { background: var(--green); color: #fff; border-color: var(--green); }
.sq-btns button.on.some { background: var(--saffron); border-color: var(--saffron); }
.sq-btns button.on.no { background: var(--navy); color: #fff; border-color: var(--navy); }
.target-line { text-align: center; font-weight: 800; color: var(--navy); margin: 14px 0 0; }

/* ---------- Recordings ---------- */
.passage-details summary { color: var(--navy-2); font-weight: 700; padding: 4px 0 10px; cursor: pointer; }
.weekly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.wk-slot { border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; text-align: left; min-height: 82px; }
.wk-slot b { color: var(--navy); font-size: 16px; }
.wk-slot span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.wk-slot.has { border-color: var(--navy-2); }
.wk-slot.empty { border-style: dashed; }
.wk-slot.empty span { color: var(--navy-2); font-weight: 700; }
.wk-slot.now { border-color: var(--saffron); background: var(--saffron-soft); }
.wk-slot.locked { opacity: .45; }
.wk-actions { display: flex; gap: 6px; margin-top: 6px; }
.now-playing { display: none; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 10px; align-items: center; gap: 8px; font-size: 15px; }
.now-playing.show { display: flex; }
.now-playing .link-btn { color: var(--saffron); margin-left: auto; }
.compare { display: flex; flex-direction: column; gap: 10px; }
.cmp-col { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--navy-soft); }
.cmp-col select { font: inherit; font-weight: 700; padding: 10px; border-radius: 12px; border: 2px solid var(--navy); color: var(--navy); background: var(--white); }
.rec-item { padding: 12px 0; border-top: 1px solid var(--line); }
.rec-item:first-of-type { border-top: 0; }
.rec-title { font-weight: 700; color: var(--navy); font-size: 15.5px; }
.rec-sub { font-size: 13.5px; color: var(--muted); margin: 2px 0 8px; }
.rec-actions { display: flex; gap: 8px; margin-top: 6px; }
.manage-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.manage-row:first-of-type { border-top: 0; }
.manage-row > span:last-child { display: flex; gap: 6px; flex: none; }
.card > .btn-primary { width: 100%; }

/* ---------- Settings ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.card-head + .switch-row { border-top: 0; }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row small { color: var(--muted); font-size: 13.5px; }
.switch { appearance: none; -webkit-appearance: none; width: 54px; height: 32px; border-radius: 999px; background: #CDD3E6; position: relative; flex: none; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--saffron); }
.switch:checked::after { transform: translateX(22px); }
.tip { background: var(--navy-soft); padding: 10px 12px; border-radius: 12px; }
.about h3 { color: var(--navy); margin-bottom: 6px; }

/* ---------- Bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 60, .45); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + var(--safe-bottom)); animation: up .22s ease-out; max-width: 640px; margin: 0 auto; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-title { font-size: 23px; color: var(--navy); margin: 4px 0 8px; }
.sheet-list { padding-left: 20px; }
.sheet-list li { margin-bottom: 8px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .topbar { padding-left: max(16px, calc(50vw - 304px)); padding-right: max(16px, calc(50vw - 304px)); }
  .tabbar { justify-content: center; }
  .tabbar button { max-width: 160px; }
}

/* ---------- v1.1: 3 daily sessions ---------- */
.time-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-trio input { font: inherit; padding: 10px 6px; border: 2px solid var(--line); border-radius: 12px; min-height: 48px; min-width: 0; background: var(--white); color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.slot { border: 2px solid var(--line); border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.slot b { color: var(--navy); font-size: 15px; }
.slot small { font-size: 12px; color: var(--muted); font-weight: 600; }
.slot-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.slot-dot .i { width: 16px; height: 16px; stroke-width: 3; }
.slot.done { border-color: var(--green); background: var(--green-soft); }
.slot.done .slot-dot { background: var(--green); color: #fff; }
.slot.done small { color: var(--green); }
.slot.next { border-color: var(--saffron); background: var(--saffron-soft); }
.slot.next .slot-dot { background: var(--saffron); }
.slot.next small { color: var(--saffron-deep); }
.slot-msg { background: var(--navy-soft); color: var(--navy); font-weight: 700; padding: 10px 14px; border-radius: 12px; margin: 6px 0; }
.week-row.partial .wr-dot { background: var(--saffron-soft); border-color: var(--saffron); color: var(--navy); font-size: 11px; }
.alarm-status { margin: 4px 0 8px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.chk > span { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.chk.ok > span { background: var(--green-soft); color: var(--green); }
.chk.bad > span { background: #FDECEA; color: var(--danger); }
.chk b { flex: 1; font-weight: 600; }

/* Reading text and topics */
.read-box { background: var(--white); border: 2px solid var(--navy); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.read-head { display: flex; justify-content: space-between; align-items: center; }
.read-head .link-btn { padding: 4px; font-weight: 700; text-decoration: none; }
.read-box h4 { margin: 4px 0 8px; color: var(--navy); font-size: 18px; }
.read-box p { margin: 0; font-size: 21px; line-height: 1.65; color: var(--ink); }
.topic-box { background: var(--saffron-soft); border: 2px solid #FFD8B0; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.topic-box p { margin: 6px 0 0; font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.rec-q.small-q { font-size: 16px; }

/* Voice feedback */
.fb-loading { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; padding: 12px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--navy-soft); border-top-color: var(--saffron); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fb { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: left; margin-top: 4px; }
.fb-na { color: var(--muted); font-weight: 600; }
.fb-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.fb-score { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 18px; flex: none; color: #fff; }
.fb-score b { font-size: 28px; line-height: 1; }
.fb-score span { font-size: 11px; opacity: .85; }
.fb-score.ok { background: var(--green); }
.fb-score.mid { background: var(--saffron); color: var(--navy); }
.fb-score.low { background: var(--navy); }
.fb-label { font-size: 20px; font-weight: 800; color: var(--navy); }
.fb-item { padding: 6px 0; }
.fb-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.fb-status { font-size: 13px; padding: 2px 8px; border-radius: 999px; }
.fb-status.ok { background: var(--green-soft); color: var(--green); }
.fb-status.mid { background: var(--saffron-soft); color: #9A4A00; }
.fb-status.low { background: var(--navy-soft); color: var(--navy); }
.fb-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 5px 0 2px; }
.fb-bar i { display: block; height: 100%; border-radius: 4px; background: var(--navy-2); }
.fb-bar i.ok { background: var(--green); }
.fb-bar i.mid { background: var(--saffron); }
.fb-val { font-size: 13px; color: var(--muted); }
.fb-tips { background: var(--saffron-soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.fb-tips b { color: var(--navy); }
.fb-tips ul { margin: 4px 0 0; padding-left: 18px; font-size: 15px; }
.fb-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.fb-details { margin: 6px 0; }
.fb-details summary { cursor: pointer; font-weight: 700; color: var(--navy-2); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.fb-get { margin: 6px 0; }
.score-chip { display: inline-block; min-width: 34px; text-align: center; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--navy); }
.score-chip.ok { background: var(--green); }
.score-chip.mid { background: var(--saffron); color: var(--navy); }
.manage-row .fb-details, .manage-row .fb-get { display: block; }
.fb-week-title { font-weight: 800; color: var(--navy); font-size: 14px; margin: 12px 0 6px; }
.fb-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.fbw { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fbw-bar { height: 60px; width: 100%; background: var(--navy-soft); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.fbw-bar i { display: block; width: 100%; background: var(--line); }
.fbw-bar i.ok { background: var(--green); }
.fbw-bar i.mid { background: var(--saffron); }
.fbw-bar i.low { background: var(--navy-2); }
.fbw b { font-size: 12px; color: var(--navy); }
.fbw em { font-style: normal; font-size: 11px; color: var(--muted); }
.s-day { width: auto; white-space: nowrap; }
.ring-wrap.compact { width: 130px; margin: 0 auto 4px; }
.ring-wrap.compact .s-time { font-size: 36px; }
.ring-wrap.compact .s-state { bottom: 14%; font-size: 11px; }

/* ---------- v1.2: body routine, pictures ---------- */
.slot-parts { display: flex; gap: 4px; justify-content: center; }
.slot-parts span { font-size: 10.5px; padding: 1px 5px; border-radius: 6px; background: var(--line); color: var(--muted); font-weight: 700; }
.slot-parts span.ok { background: var(--green); color: #fff; }

.body-hero { border-top-color: var(--navy); }
.body-hero .hero-title { font-size: 26px; }
.body-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.body-preview { width: 110px; flex: none; }
.body-list { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.body-list summary { font-weight: 700; color: var(--navy-2); padding: 8px 0; cursor: pointer; }
.phase-title { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; color: var(--saffron-deep); text-transform: uppercase; margin: 12px 0 4px; }
.move { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.move-img { width: 74px; flex: none; background: var(--navy-soft); border-radius: 12px; }
.move-main { display: flex; flex-direction: column; }
.move-main b { color: var(--ink); }
.move-main span { font-size: 13.5px; font-weight: 700; color: var(--saffron-deep); }
.move-main small { font-size: 13px; color: var(--muted); }
.body-safety { margin: 12px 0 0; }
.stat.green { border-top-color: var(--green); }

/* Pictures */
.illo-svg { width: 100%; height: auto; display: block; }
.illo-svg .lb { stroke: var(--navy); stroke-width: 7; stroke-linecap: round; }
.illo-svg .lb.far { stroke: #6F7FC4; }
.illo-svg .hd { fill: var(--navy); }
.illo-svg .ground { stroke: var(--saffron); stroke-width: 3; stroke-linecap: round; }
.illo-svg .mat { fill: #FFD8B0; }
.illo-svg .wall { stroke: #B9C2E3; stroke-width: 5; stroke-linecap: round; }
.illo-svg .face { fill: var(--saffron-soft); stroke: var(--navy); stroke-width: 4; }
.illo-svg .eye { fill: var(--navy); }
.illo-svg .mouth { fill: var(--navy); }
.illo-svg .lips { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.illo-svg .wave, .illo-svg .air { fill: none; stroke: var(--saffron); stroke-width: 4; stroke-linecap: round; }
.illo-svg .arrow { fill: none; stroke: var(--saffron); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.illo-svg .bubble-t { fill: var(--navy); font: 800 20px system-ui, sans-serif; }
.illo-svg .bubble-t.s { font-size: 15px; fill: var(--saffron-deep); }
.illo-svg .bubble-t.c { text-anchor: middle; font-size: 16px; }
.illo-svg .lung { fill: #FFE3C7; stroke: var(--navy); stroke-width: 3; transform-origin: 100px 90px; }
.illo-svg .book { fill: var(--white); stroke: var(--navy); stroke-width: 4; stroke-linejoin: round; }
.illo-svg .txt { stroke: #9AA6D6; stroke-width: 4; stroke-linecap: round; }
.illo-svg .dot { fill: var(--saffron); }
.illo-svg .mic { fill: var(--navy); }
.illo-svg .stand { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; }
.illo-svg .rec { fill: #E53935; }
.illo-svg .clock { fill: var(--white); stroke: var(--navy); stroke-width: 5; }
.illo-svg .hand { stroke: var(--saffron); stroke-width: 5; stroke-linecap: round; }
.illo-svg .pz { fill: var(--navy); }
.illo-svg .body { fill: var(--navy); }
.illo-svg .bubble { fill: var(--saffron-soft); stroke: var(--navy); stroke-width: 3; }
.illo-svg .star { fill: var(--line); }
.illo-svg .star.on { fill: var(--saffron); }

.illo { width: min(56vw, 210px); margin: 0 auto 4px; background: var(--navy-soft); border-radius: 20px; padding: 6px; }
.illo.illo-body { width: min(78vw, 300px); background: linear-gradient(180deg, #F3F5FD, var(--saffron-soft)); }
.reps { text-align: center; font-size: 24px; font-weight: 800; color: var(--saffron-deep); margin: 4px 0 2px; }
.side-label { text-align: center; font-weight: 800; color: var(--navy); background: var(--navy-soft); border-radius: 999px; padding: 4px 14px; margin: 4px auto; width: max-content; }
.side-label.flash { background: var(--saffron); animation: pulse 1.2s ease-in-out 3; }
.s-motive { text-align: center; color: var(--green); font-weight: 800; font-size: 17px; min-height: 0; opacity: 0; transition: opacity .4s; }
.s-motive.show { opacity: 1; margin-bottom: 8px; }
.form-list { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 30px; margin: 0 0 12px; font-size: 16px; }
.form-list li { margin: 3px 0; }

/* ---------- Calendar + day checklist ---------- */
.cal-title { text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.cal-cell { aspect-ratio: 1 / 1.05; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 3px 2px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; }
.cal-cell.blank { border: 0; background: none; }
.cal-d { font-size: 13px; font-weight: 800; color: var(--navy); }
.cal-segs { display: flex; gap: 2px; width: 100%; padding: 0 2px; }
.cal-segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.cal-segs i.full { background: var(--green); }
.cal-segs i.part { background: var(--saffron); }
.cal-cell.missed { background: #FDF0EF; }
.cal-cell.missed .cal-segs i { background: #F2C4C0; }
.cal-cell.all { background: var(--green-soft); border-color: #A9D8A4; }
.cal-cell.rest { background: var(--navy); }
.cal-cell.rest .cal-d { color: #fff; }
.cal-r { font-size: 9.5px; font-weight: 800; color: var(--saffron); }
.cal-cell.future, .cal-cell.before { opacity: .4; }
.cal-cell.is-today { border: 2px solid var(--saffron); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 16px; height: 7px; border-radius: 3px; margin-right: 5px; vertical-align: middle; background: var(--line); }
.cal-legend i.full { background: var(--green); }
.cal-legend i.part { background: var(--saffron); }
.cal-legend i.none { background: #F2C4C0; }
.cal-legend i.restk { background: var(--navy); }
.cal-sum { margin-top: 8px; font-size: 14px; color: var(--ink); }
.cal-sum b { color: var(--navy); }
.mark-link { display: block; margin: -4px auto 4px; font-weight: 700; }
.ds { margin: 10px 0; }
.ds-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ds-slot { flex: 1; display: flex; flex-direction: column; }
.ds-slot small { color: var(--muted); }
.ds-chk { min-width: 92px; min-height: 46px; border-radius: 12px; border: 2px solid #F2C4C0; background: #FDF0EF; color: var(--danger); font-weight: 800; font-size: 15px; }
.ds-chk.on { border-color: var(--green); background: var(--green); color: #fff; }
.ds-chk:disabled { opacity: .4; }

/* ---------- Motivation wall ---------- */
.tabbar button { font-size: 11.5px; }
.wall-eyebrow { margin: 0 2px 8px; }
.wall-card { background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; break-inside: avoid; }
.wall-card.big { margin-bottom: 16px; border: 2px solid var(--saffron); }
.wall-img { aspect-ratio: 300 / 150; overflow: hidden; }
.wall-svg { width: 100%; height: 100%; display: block; }
.wall-body { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 4px; position: relative; flex: 1; }
.wall-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.cat-fitness .wall-tag { background: var(--green-soft); color: var(--green); }
.cat-business .wall-tag { background: var(--navy-soft); color: var(--navy); }
.cat-mind .wall-tag { background: var(--saffron-soft); color: #9A4A00; }
.wall-card blockquote { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.wall-card.big blockquote { font-size: 21px; color: var(--navy); }
.wall-card cite { font-style: normal; font-size: 14px; color: var(--saffron-deep); font-weight: 700; }
.wall-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.mini.fav { background: var(--saffron); color: var(--navy); font-size: 18px; }
.wall-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.wall-filters::-webkit-scrollbar { display: none; }
.wall-chip { flex: none; border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--navy); }
.wall-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.wall-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .wall-grid { grid-template-columns: 1fr 1fr; } }
.qod { display: flex; gap: 12px; align-items: stretch; width: 100%; text-align: left; border: 0; padding: 0; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 14px; }
.qod-img { width: 110px; flex: none; }
.qod-img .wall-svg { height: 100%; }
.qod-body { padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 4px; }
.qod-body b { color: var(--navy); font-size: 16px; line-height: 1.35; }
.qod-body small { color: var(--saffron-deep); font-weight: 700; }

/* ---------- Singer warm-up + tongue twisters ---------- */
.illo-svg .key { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.illo-svg .bkey { fill: var(--navy); }
.illo-svg .tng { fill: #E5717A; }
.piano-card, .twister-card, .metro-card { background: var(--white); border: 2px solid var(--navy); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; text-align: center; }
.sing-syl { font-size: 24px; font-weight: 800; color: var(--navy); margin: 2px 0 6px; }
.piano-key { display: inline-block; background: var(--saffron-soft); color: #9A4A00; font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: 14px; min-width: 120px; }
.piano-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.twister-card { border-color: var(--saffron); background: var(--saffron-soft); }
.tw-focus { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--saffron-deep); text-transform: uppercase; }
.tw-text { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.35; margin: 6px 0 8px; }
.tw-guide { font-size: 14px; color: var(--muted); font-weight: 600; }
.metro-beats { display: flex; gap: 8px; justify-content: center; margin: 6px 0; }
.metro-beats i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .05s; }
.metro-beats i.on { background: var(--saffron); }
.metro-beats i.on.first { background: var(--navy); }
.bpm-btn { border: 2px solid var(--line); background: var(--white); color: var(--navy); border-radius: 10px; padding: 6px 10px; font-weight: 800; min-width: 52px; }
.bpm-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.voice-pick { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.voice-pick button { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-weight: 600; }
.voice-pick button small { color: var(--muted); font-weight: 500; }
.voice-pick button.on { border: 2px solid var(--saffron); background: var(--saffron-soft); }
.field.inline select { font: inherit; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); max-width: 60%; }
.btn-xl small.btn-sub { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0; opacity: .8; }
.btn-xl:has(.btn-sub) { flex-direction: column; gap: 0; }
.voice-choose { text-align: center; color: var(--muted); }
.voice-choose .link-btn { font-size: 14px; padding: 6px 2px; font-weight: 700; }

/* ---------- Coach: hear-it, tips, pitch check, word check, report ---------- */
.hear-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 8px; }
.hear-row.left { justify-content: flex-start; }
.hear-pill { border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 14px; }
.hear-pill.check { background: var(--saffron); color: var(--navy); }
.hear-btn { border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; flex: none; vertical-align: middle; }
.say-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.say-box .say-line + .say-line { border-top: 1px dashed #FFD8B0; padding-top: 8px; }
.tips-box { background: var(--navy-soft); border-radius: 14px; padding: 4px 12px; margin-bottom: 12px; text-align: left; }
.tips-box summary { font-weight: 800; color: var(--navy); padding: 8px 0; cursor: pointer; }
.tips-box ul { margin: 0 0 8px; padding-left: 18px; font-size: 15px; }
.tips-box li { margin: 5px 0; }
.rec-optional summary { font-weight: 800; color: var(--navy); cursor: pointer; padding: 2px 0 8px; text-align: center; }

.sing-card .note-row { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 6px 0; min-height: 38px; }
.nb { min-width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: var(--navy); position: relative; background: var(--white); }
.nb.now { border-color: var(--saffron); background: var(--saffron-soft); transform: scale(1.08); }
.nb.ok { background: var(--green); border-color: var(--green); color: #fff; }
.nb.close { background: var(--saffron); border-color: var(--saffron); }
.nb.off { background: #E57373; border-color: #E57373; color: #fff; }
.nb.none { opacity: .45; }
.nb[data-dir]::after { content: attr(data-dir); position: absolute; top: -10px; right: -6px; background: var(--navy); color: #fff; font-size: 11px; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.sing-status { font-weight: 800; margin: 6px 0; font-size: 17px; }
.sing-status.listen { color: var(--navy-2); }
.sing-status.turn { color: var(--saffron-deep); animation: pulse 1.2s infinite; border-radius: 10px; }
.sing-status.good { color: var(--green); }
.sing-status.work { color: #B4540A; }
.meter-pitch { position: relative; height: 26px; margin: 6px 4px; border-radius: 13px; background: linear-gradient(90deg, #E57373 0 20%, var(--saffron) 20% 37%, var(--green) 37% 63%, var(--saffron) 63% 80%, #E57373 80%); display: flex; justify-content: space-between; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 800; color: #fff; }
.needle { position: absolute; top: -4px; width: 6px; height: 34px; border-radius: 3px; background: var(--navy); left: 50%; transform: translateX(-50%); opacity: .25; transition: left .08s; }
.sing-acc-row { font-size: 14px; color: var(--muted); }
.sing-acc-row b { color: var(--navy); font-size: 16px; }

.tw-result { margin: 6px 0; }
.tw-words { font-size: 20px; font-weight: 800; line-height: 1.6; }
.tw-words .ok { color: var(--green); }
.tw-words .miss { color: #D32F2F; text-decoration: underline wavy #E57373; }
.tw-score { display: inline-block; margin: 4px 0; padding: 3px 12px; border-radius: 999px; font-weight: 800; color: #fff; background: var(--navy); }
.tw-score.ok { background: var(--green); }
.tw-score.mid { background: var(--saffron); color: var(--navy); }
.listening { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: #C62828; }

.report { width: 100%; text-align: left; background: var(--white); border: 2px solid var(--navy); border-radius: 18px; padding: 14px; margin: 8px 0; }
.report.empty { border-style: dashed; }
.rep-title { font-weight: 900; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.rep-tiles { display: flex; gap: 8px; margin-bottom: 10px; }
.rep-tile { flex: 1; border-radius: 12px; padding: 8px; text-align: center; color: #fff; background: var(--navy); }
.rep-tile b { display: block; font-size: 24px; }
.rep-tile span { font-size: 12px; opacity: .9; }
.rep-tile.ok { background: var(--green); }
.rep-tile.mid { background: var(--saffron); color: var(--navy); }
.rep-sec { border-radius: 12px; padding: 8px 12px; margin-top: 6px; }
.rep-sec ul { margin: 4px 0 0; padding-left: 18px; font-size: 15px; }
.rep-sec.good { background: var(--green-soft); }
.rep-sec.good b { color: var(--green); }
.rep-sec.work { background: var(--saffron-soft); }
.rep-sec.work b { color: #9A4A00; }
.finish-body { overflow-y: auto; justify-content: flex-start; padding-top: 30px; }
.rep-row { border-top: 1px solid var(--line); }
.rep-row summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; }
.rep-row summary > span:first-child { display: flex; flex-direction: column; }
.rep-row summary small { color: var(--muted); }
.card .rep-tile b { font-size: 20px; }
.test-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .test-row .btn { margin: 0; width: 100%; }
.body-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.body-plan > div { border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.body-plan > div span { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.body-plan > div span .i { width: 15px; height: 15px; stroke-width: 3; }
.body-plan b { color: var(--navy); font-size: 14.5px; }
.body-plan small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.body-plan .done { border-color: var(--green); background: var(--green-soft); }
.body-plan .done span { background: var(--green); color: #fff; }
.body-plan .next { border-color: var(--navy); background: var(--navy-soft); }
.body-plan .next span { background: var(--navy); color: #fff; }
.ds-none { min-width: 92px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.alarm-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.alarm-row > span { display: flex; flex-direction: column; }
.alarm-row small { color: var(--muted); font-size: 12.5px; }
.alarm-row input[type=time] { font: inherit; padding: 8px; border: 2px solid var(--line); border-radius: 12px; min-height: 44px; background: var(--white); color: var(--ink); }
.alarm-row.off b, .alarm-row.off input[type=time] { opacity: .45; }

/* ---------- Watch how + Listen ---------- */
.watch-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: #FDECEA; color: #C62828; font-weight: 800; font-size: 13.5px; text-decoration: none; }
.watch-row { margin: -4px 0 8px; }
.move-main .watch-btn { align-self: flex-start; padding: 4px 10px; font-size: 12.5px; }
.listen-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; background: linear-gradient(135deg, var(--navy), #1B3BA8); color: #fff; box-shadow: var(--shadow); }
.lc-icon { font-size: 28px; }
.listen-card span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.listen-card small { opacity: .8; font-size: 13px; }
.lc-go { font-size: 28px; color: var(--saffron); }
.listen-now { background: var(--navy); color: #fff; border-radius: 16px; padding: 16px; min-height: 90px; display: flex; flex-direction: column; justify-content: center; margin: 8px 0; transition: background .3s; }
.listen-now.your-turn { background: var(--saffron); color: var(--navy); }
.ln-text { font-size: 21px; font-weight: 700; line-height: 1.45; }
.ln-sub { font-size: 13px; opacity: .8; margin-top: 6px; }
.listen-cue { display: none; background: var(--green-soft); color: var(--green); font-weight: 700; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.listen-cue.show { display: block; }
.speakers { display: flex; flex-direction: column; gap: 8px; }
.speaker { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--ink); }
.speaker b { color: var(--navy); }
.speaker span { font-size: 14px; }
.speaker small { color: var(--saffron-deep); font-weight: 700; }

/* ======================= v1.9 — cleaner navigation ======================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.today-head { padding: 4px 2px 12px; }
.greet { font-size: 28px; color: var(--navy); margin: 2px 0; }
.goal-line { color: var(--muted); font-size: 15px; }
.goal-line b { color: var(--navy); }

.next-card { background: linear-gradient(160deg, #fff 0%, #FFF6EC 100%); border: 1px solid var(--line); border-top: 6px solid var(--saffron); border-radius: 22px; padding: 18px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(10, 30, 110, .10); }
.nc-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--saffron-deep); }
.nc-main { display: flex; gap: 14px; align-items: center; margin: 12px 0 16px; }
.nc-icon { font-size: 36px; width: 64px; height: 64px; border-radius: 18px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.next-card h2 { font-size: 23px; color: var(--navy); line-height: 1.2; }
.nc-kind { font-weight: 800; color: var(--muted); font-size: 14px; }
.nc-then { font-size: 13.5px; color: var(--saffron-deep); font-weight: 700; margin-top: 2px; }
.nc-links { display: flex; justify-content: center; gap: 6px; align-items: center; color: var(--muted); margin-top: 4px; }
.next-card.done, .next-card.rest { text-align: center; }
.next-card.done .nc-icon, .next-card.rest .nc-icon { margin: 0 auto 10px; background: var(--green-soft); }
.next-card.rest .nc-icon { background: var(--navy); }
.next-card.done p, .next-card.rest p { color: var(--muted); margin: 6px 0 12px; }

.card.slim { padding: 12px 14px; }
.card.slim .card-head { margin-bottom: 6px; }
.card.slim .slots { margin: 0; }
.card-head .link-btn { padding: 0; font-weight: 700; text-decoration: none; }

.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.quick { border: 1px solid var(--line); background: var(--white); border-radius: 18px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); }
.quick span { font-size: 26px; }
.quick b { color: var(--navy); font-size: 15px; }
.quick small { color: var(--muted); font-size: 11.5px; }

.qod-line { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 4px 14px; color: var(--ink); }
.qod-line span { display: block; font-style: italic; font-size: 16px; color: var(--navy); }
.qod-line small { color: var(--saffron-deep); font-weight: 700; }

.prow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 2px; }
.card-head + .prow, .card-sub + .prow { border-top: 0; }
.prow-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.prow-main { flex: 1; display: flex; flex-direction: column; }
.prow-main b { color: var(--ink); font-size: 16px; }
.prow-main small { color: var(--muted); font-size: 13px; }
.prow-r { color: var(--saffron-deep); font-size: 24px; font-weight: 700; }
.pr-done { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; }
.pr-done .i { width: 15px; height: 15px; stroke-width: 3; }
.card-sub { margin: -6px 0 4px; }
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { font-size: 18px; color: var(--navy); flex: 1; }
details.fold > summary::after { content: "\25BE"; color: var(--muted); margin-left: 8px; }
details.fold[open] > summary { margin-bottom: 10px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy-soft); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.segmented button { border: 0; background: none; border-radius: 10px; padding: 10px 4px; font-weight: 800; color: var(--navy); font-size: 14.5px; }
.segmented button.on { background: var(--white); box-shadow: 0 1px 4px rgba(10, 30, 110, .15); color: var(--saffron-deep); }

/* ---------- Stage tools ---------- */
.tool .s-body { padding-bottom: 30px; }
.field textarea { font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 12px; resize: vertical; min-height: 160px; line-height: 1.5; color: var(--ink); background: var(--white); }
.field input:not([type]), .field input[type=text] { font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 12px; min-height: 48px; }
.field select { font: inherit; padding: 10px; border: 2px solid var(--line); border-radius: 12px; min-height: 48px; background: var(--white); color: var(--ink); }
.field.inline input:not([type]) { min-width: 0; width: 55%; }
.rh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.warn { color: #B4540A; font-weight: 700; }
.tp-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tp-time { font-size: 28px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.tp-time.over { color: var(--danger); }
.tp-speed { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tp-speed b { color: var(--navy); }
.teleprompter { height: 42vh; overflow-y: auto; background: var(--navy); color: #fff; border-radius: 18px; padding: 0 18px; font-size: 26px; line-height: 1.55; font-weight: 600; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.teleprompter p { margin: 0 0 22px; }
.tp-pad { height: 16vh; }
.tp-pad.end { height: 30vh; text-align: center; color: var(--saffron); font-size: 18px; padding-top: 20px; }
.tp-tips { text-align: center; color: var(--muted); margin: 8px 0; }
.imp-topic { font-size: 23px; font-weight: 800; color: var(--navy); text-align: center; line-height: 1.35; margin: 6px 0; }
.center-block { display: block; margin: 0 auto 8px; }
.prep-box { background: var(--saffron-soft); border-radius: 14px; padding: 10px 14px; margin: 10px 0 14px; }
.prep-box ol { margin: 4px 0 0; padding-left: 20px; }
.hidden-rec { display: none !important; }
.em-card { background: var(--navy); color: #fff; border-radius: 18px; padding: 18px; text-align: center; margin: 8px 0 12px; }
.em-count { opacity: .7; }
.em-sentence { font-size: 25px; font-weight: 600; line-height: 1.5; margin: 10px 0; }
.em-sentence .stress { color: var(--saffron); font-weight: 900; font-size: 1.25em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; }
.em-meaning { font-size: 17px; color: #FFE3C7; font-style: italic; }
.open-tips { padding: 10px 14px; }
.open-tips ul { margin: 6px 0 0; padding-left: 18px; }
.mirror-wrap { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 48vh; margin: 0 auto 10px; }
.mirror-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mirror-wrap video.flip { transform: scaleX(-1); }
.mir-rec { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; background: #E53935; opacity: 0; }
.mir-rec.on { opacity: 1; animation: blink 1s infinite; }
.mir-topic { display: flex; flex-direction: column; gap: 2px; text-align: center; margin-bottom: 6px; }
.mir-topic b { color: var(--navy); font-size: 17px; }
.mir-checks { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.mir-checks b { color: var(--navy); }
.proj-stage { font-weight: 900; color: var(--saffron-deep); letter-spacing: 1px; text-transform: uppercase; text-align: center; margin-top: 6px; }
.proj-phrase { font-size: 22px; font-weight: 800; color: var(--navy); text-align: center; margin: 8px 0 14px; min-height: 60px; }
.proj-meter { position: relative; height: 54px; background: linear-gradient(90deg, #DDE2F0 0 28%, #C9D2F5 28% 55%, #CDEBC9 55% 82%, #F8C7C3 82%); border-radius: 14px; margin: 6px 2px 4px; }
.pm-zone { position: absolute; top: 0; bottom: 0; background: rgba(19, 136, 8, .45); border: 2px solid var(--green); border-radius: 10px; }
.pm-needle { position: absolute; top: -6px; width: 8px; height: 66px; border-radius: 4px; background: var(--navy); transform: translateX(-50%); left: 0; transition: left .06s linear; }
.pm-needle.ok { background: var(--green); }
.pm-needle.shout { background: var(--danger); }
.pm-labels { position: absolute; left: 0; right: 0; bottom: -20px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 700; }
.proj-score { text-align: center; margin: 28px 0 10px; font-size: 16px; min-height: 22px; }
.proj-score b { color: var(--green); font-size: 20px; }

/* ---------- Never wider than the phone screen ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
/* clip, not hidden, where supported: hidden turns body into its own scroll box, which breaks position:sticky
   and can stop touch scrolling in some Android WebViews */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
main, .card, .onb, .sheet-panel, .s-body { min-width: 0; }
input, select, textarea, video, audio, img, svg { max-width: 100%; box-sizing: border-box; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.field.inline input, .field.inline select { width: auto; max-width: 58%; }
.time-list { display: flex; flex-direction: column; gap: 8px; }
.time-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-weight: 600; }
.time-row:first-child { border-top: 0; }
.time-row input { font: inherit; width: 150px; max-width: 55%; min-height: 48px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.onb .card { overflow: hidden; }
.onb .check { padding-top: 4px; }
.onb .btn-xl:disabled::after { content: " — tick the box above"; font-size: 13px; font-weight: 600; }

/* ---------- Help & guidance ---------- */
.top-right { display: flex; align-items: center; gap: 10px; }
.help-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-weight: 900; font-size: 17px; }
body.onboarding .help-btn { display: none; }
.help-dot, .info-btn, .info-inline { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; font-style: italic; font-family: Georgia, serif; }
.help-dot { width: 24px; height: 24px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 14px; margin-left: 6px; vertical-align: middle; }
.prow-wrap { display: flex; align-items: center; border-top: 1px solid var(--line); }
.card-head + .prow-wrap, .card-sub + .prow-wrap { border-top: 0; }
.prow-wrap .prow { border-top: 0; flex: 1; min-width: 0; }
.info-btn { width: 34px; height: 34px; flex: none; border: 2px solid var(--navy-2); background: var(--white); color: var(--navy-2); font-size: 16px; margin-left: 4px; }
.info-inline { width: 20px; height: 20px; border: 2px solid var(--navy-2); color: var(--navy-2); font-size: 12px; vertical-align: middle; }
.start-here { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; border-left: 5px solid var(--saffron); background: var(--saffron-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; color: var(--ink); }
.start-here b { color: var(--navy); }
.start-here span { font-size: 14px; color: #7A3B00; }
.practice-intro { font-size: 14px; color: var(--muted); margin: 0 2px 12px; }

.help-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.help-ic { font-size: 30px; width: 52px; height: 52px; border-radius: 16px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.help-sec { margin: 10px 0; }
.help-sec b { color: var(--navy); display: block; margin-bottom: 2px; }
.help-sec p { margin: 0; line-height: 1.5; }
.help-sec ol, .help-sec ul { margin: 4px 0 0; padding-left: 20px; }
.help-sec li { margin: 4px 0; line-height: 1.45; }
.help-sec.why { background: var(--green-soft); border-radius: 12px; padding: 10px 12px; }
.help-sec.why b { color: var(--green); }
.help-sec.tips { background: var(--saffron-soft); border-radius: 12px; padding: 10px 12px; }
.help-sec.tips b { color: #9A4A00; }
.help-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 600; margin: 8px 0; }
.help-close { width: 100%; margin-top: 8px; }
.sheet-panel > .btn-lg { width: 100%; margin-top: 10px; }

.tour { text-align: center; padding: 6px 0; }
.tour-ic { font-size: 54px; margin: 6px 0; }
.tour p { font-size: 17px; line-height: 1.55; color: var(--ink); margin: 8px 0 16px; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.tour-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--saffron); width: 22px; border-radius: 5px; }

.intro .s-body { gap: 4px; }
.intro-hero { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.intro-hero > span { font-size: 36px; width: 64px; height: 64px; border-radius: 18px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.intro-hero h2 { color: var(--navy); font-size: 22px; }
.intro-hero small { color: var(--muted); font-weight: 700; }
.intro-steps { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0; }
.intro-steps b { color: var(--navy); }
.intro-steps ol { margin: 6px 0 0; padding-left: 20px; }
.intro-steps li { margin: 5px 0; }
.intro-steps li span { font-weight: 600; }
.intro-steps li small { color: var(--saffron-deep); font-weight: 700; margin-left: 6px; }
.intro-needs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.intro-needs span { background: var(--navy-soft); color: var(--navy); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 700; }

/* ---------- Long readings + floating encouragement ---------- */
.read-len { font-size: 12.5px; font-weight: 800; color: var(--green); }
.read-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.hear-pill.alt { background: var(--navy-soft); color: var(--navy); }
.read-box p + p { margin-top: 14px; }
.read-end { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; font-style: italic; }
.text-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.text-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 10px 12px; }
.text-item span { display: flex; flex-direction: column; }
.text-item b { color: var(--navy); }
.text-item small { color: var(--muted); font-size: 12.5px; }
.text-item em { font-style: normal; font-weight: 800; color: var(--saffron-deep); white-space: nowrap; font-size: 13.5px; }
.text-item.on { border: 2px solid var(--saffron); background: var(--saffron-soft); }
.session { position: relative; }
.s-motive { position: absolute; left: 50%; top: calc(var(--safe-top) + 70px); transform: translate(-50%, -10px); z-index: 5; background: var(--green); color: #fff; font-weight: 800; font-size: 16px; padding: 9px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; margin: 0 !important; min-height: 0; }
.s-motive.show { opacity: 1; transform: translate(-50%, 0); }

.pencil-card { background: #FFF8E1; border: 2px solid #FFD54F; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.pencil-card b { color: var(--navy); }
.pencil-card ol { margin: 6px 0; padding-left: 20px; }
.pencil-card li { margin: 4px 0; }
.pencil-card small { color: var(--muted); }
.illo-svg .pencil-body { fill: #FFC107; stroke: var(--navy); stroke-width: 1.5; }
.illo-svg .pencil-eraser { fill: #F48FB1; stroke: var(--navy); stroke-width: 1.5; }
.illo-svg .pencil-tip { fill: #FFE0B2; stroke: var(--navy); stroke-width: 1.5; }
/* Keep the state label (Paused / Time / Untimed) clear of the ring */
.s-state { bottom: 26%; line-height: 1; }
.ring-wrap.compact .s-time { font-size: 34px; padding-bottom: 12px; }
.ring-wrap.compact .s-state { bottom: 28%; font-size: 10px; letter-spacing: .5px; }

/* ---------- Levels ---------- */
.level-card { border-top: 5px solid var(--green); }
.lvl-top { display: flex; align-items: center; gap: 12px; }
.lvl-top > div { flex: 1; }
.lvl-top h3 { color: var(--navy); font-size: 22px; }
.lvl-ic { font-size: 30px; width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.lvl-next { margin: 8px 0 6px; font-size: 15px; }
.lvl-row { margin: 8px 0; }
.lvl-label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.lvl-label b { color: var(--navy); white-space: nowrap; }
.lvl-chip { border: 0; background: var(--green-soft); color: var(--green); font-weight: 800; border-radius: 999px; padding: 2px 10px; font-size: 13.5px; }
.lvl-line { background: var(--green-soft); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.lvl-line .link-btn { padding: 0; font-size: 14px; font-weight: 700; }
.lvl-pick { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.lvl-opt { display: flex; gap: 12px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px 12px; font-weight: 500; }
.lvl-opt span:last-child { display: flex; flex-direction: column; }
.lvl-opt b { color: var(--navy); font-size: 16px; }
.lvl-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.lvl-opt .lvl-ic { width: 44px; height: 44px; font-size: 24px; }
.lvl-opt.on { border-color: var(--green); background: var(--green-soft); }

/* ---------- v2.0 organisation ---------- */
.prac-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--green-soft); color: #0C5205; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.prac-head .link-btn { padding: 0; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.plan-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.plan-row.next { border-color: var(--saffron); background: var(--saffron-soft); }
.plan-row.done { border-color: #A9D8A4; background: var(--green-soft); }
.plan-n { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.plan-row.next .plan-n { background: var(--saffron); }
.plan-row.done .plan-n { background: var(--green); color: #fff; }
.plan-n .i { width: 16px; height: 16px; stroke-width: 3; }
.plan-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.plan-main b { color: var(--navy); }
.plan-main small { color: var(--muted); font-size: 13px; }
.plan-go { font-weight: 800; color: var(--saffron-deep); font-size: 14px; white-space: nowrap; }
.plan-row.done .plan-go { color: var(--green); }
.sub-fold { border-top: 1px solid var(--line); padding: 4px 0; }
.sub-fold > summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; list-style: none; }
.sub-fold > summary::-webkit-details-marker { display: none; }
.sub-fold > summary::after { content: " \25BE"; color: var(--muted); }
.slot-parts { flex-wrap: wrap; }
.stat small { font-size: 11.5px; font-weight: 600; }
.link-card { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 1px dashed var(--navy-2); background: var(--white); border-radius: 16px; padding: 14px; margin-bottom: 14px; color: var(--ink); }
.link-card b { color: var(--navy); }
.link-card span { font-size: 14px; color: var(--muted); }
.segmented { grid-template-columns: repeat(4, 1fr); }
.segmented button { font-size: 13.5px; padding: 10px 2px; }

.set-group { padding: 0; overflow: hidden; }
.set-group > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.set-group > summary::-webkit-details-marker { display: none; }
.set-group > summary::after { content: "\25BE"; color: var(--muted); margin-left: auto; transition: transform .2s; }
.set-group[open] > summary::after { transform: rotate(180deg); }
.sg-ic { font-size: 24px; width: 44px; height: 44px; border-radius: 14px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.sg-main { display: flex; flex-direction: column; min-width: 0; }
.sg-main b { color: var(--navy); font-size: 17px; }
.sg-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.sg-title { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--saffron-deep); margin: 16px 0 4px; display: flex; align-items: center; gap: 6px; }
.small-info { width: 22px; height: 22px; font-size: 12px; }

.onb-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.onb-dots i { width: 9px; height: 9px; border-radius: 5px; background: var(--line); }
.onb-dots i.on { width: 26px; background: var(--saffron); }
.onb-dots i.done { background: var(--green); }
.onb-h { color: var(--navy); font-size: 25px; text-align: center; }
.onb-points { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.onb-points > div { display: flex; gap: 12px; align-items: center; }
.onb-points span { font-size: 26px; width: 44px; height: 44px; border-radius: 14px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.onb-points p { margin: 0; font-size: 15.5px; }
.time-row > span { display: flex; flex-direction: column; }
.time-row small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.consent-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.acct { display: flex; flex-direction: column; background: var(--navy-soft); border-radius: 12px; padding: 10px 12px; }
.acct b { color: var(--navy); }
.acct small { color: var(--muted); }

.mentor-card { border-left: 5px solid var(--saffron); }
.note-item { padding: 8px 0; border-top: 1px solid var(--line); }
.card-head + .note-item { border-top: 0; }
.note-item p { margin: 0; }
.note-item small { color: var(--muted); }

/* ===== v2.1 founder tools ===== */
.s-state.warn { color: var(--danger); font-weight: 800; }
.s-state.listen { color: var(--green); font-weight: 800; }

/* =====================================================================
   v2.1 visual refresh — same tricolour, more depth, warmth and motion
   ===================================================================== */
:root {
  --radius: 20px;
  --shadow: 0 6px 22px rgba(10, 30, 110, .07), 0 1px 3px rgba(10, 30, 110, .05);
  --shadow-lift: 0 14px 34px rgba(10, 30, 110, .14);
  --grad-saffron: linear-gradient(135deg, #FFB04D 0%, #FF9933 55%, #F2811B 100%);
  --grad-navy: linear-gradient(150deg, #142C8E 0%, #0A1E6E 55%, #071650 100%);
  --soft-blue: #EEF3FF; --soft-peach: #FFF1E3; --soft-mint: #E9F7E7; --soft-lilac: #F1EEFF;
}
body { background: #F4F6FC; letter-spacing: -.1px; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(540px 320px at 110% -10%, rgba(255, 153, 51, .14), transparent 70%),
    radial-gradient(520px 360px at -20% 30%, rgba(27, 47, 138, .08), transparent 70%),
    radial-gradient(400px 300px at 80% 110%, rgba(19, 136, 8, .07), transparent 70%);
}

/* top bar */
.topbar { background: var(--grad-navy); padding-bottom: 14px; box-shadow: 0 6px 20px rgba(7, 22, 80, .25); }
.topbar::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px 120px at 85% 0%, rgba(255, 153, 51, .28), transparent 70%); }
.brand, .top-right { position: relative; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.brand-name { font-size: 22px; letter-spacing: .2px; }
.brand-sub { opacity: .72; letter-spacing: .2px; }
.week-badge b { font-size: 17px; }
.help-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }

/* page entrance */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }   /* movement only — content is never hidden */
/* No fill-mode on purpose: if animations are paused or disabled the content is simply visible */
#view > * { animation: rise .3s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { #view > * { animation: none; } }

/* cards */
.card { border: 1px solid rgba(227, 231, 242, .7); box-shadow: var(--shadow); }
.card-head h3 { letter-spacing: -.2px; }
.page-title { font-size: 28px; letter-spacing: -.5px; }

/* buttons */
.btn { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn:active, .ctrl:active, .quick:active, .prow:active, .plan-row:active { transform: scale(.975); }
.btn-primary { background: var(--grad-saffron); box-shadow: 0 8px 20px rgba(242, 129, 27, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:active { filter: brightness(.95); }
.btn-navy { background: var(--grad-navy); box-shadow: 0 8px 18px rgba(10, 30, 110, .25); }
.btn-xl { border-radius: 18px; }

/* Today — greeting and the hero card */
.greet { font-size: 31px; letter-spacing: -.7px; }
.next-card {
  position: relative; overflow: hidden; border: 0; border-top: 0;
  background: var(--grad-navy); color: #fff; border-radius: 24px; padding: 18px 18px 16px;
  box-shadow: var(--shadow-lift);
}
.next-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 153, 51, .45), transparent); }
.next-card::after { content: ""; position: absolute; width: 180px; height: 180px; left: -70px; bottom: -90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent); }
.next-card > * { position: relative; }
.nc-eyebrow { color: #FFC27A; }
.nc-icon { background: var(--grad-saffron); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.next-card h2 { color: #fff; font-size: 24px; letter-spacing: -.3px; }
.nc-kind { color: #C9D2F5; }
.nc-then { color: #FFC27A; }
.nc-links { color: #9FB0E8; }
.nc-links .link-btn { color: #DCE4FF; }
.next-card .btn-primary { color: var(--navy); }
.next-card.done, .next-card.rest { background: var(--grad-navy); }
.next-card.done .nc-icon { background: var(--green); } .next-card.rest .nc-icon { background: rgba(255, 255, 255, .12); }
.next-card.done p, .next-card.rest p { color: #C9D2F5; }
.next-card .btn-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.next-card .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; }

/* today slots */
.slot { border-radius: 16px; background: #fff; }
.slot.next { box-shadow: 0 0 0 4px rgba(255, 153, 51, .18); }
.slot.next .slot-dot { background: var(--grad-saffron); box-shadow: 0 4px 10px rgba(242, 129, 27, .4); }

/* quick tiles */
.quick { border: 0; box-shadow: var(--shadow); padding: 14px 6px; gap: 2px; }
.quick:nth-child(1) { background: linear-gradient(160deg, #fff, var(--soft-blue)); }
.quick:nth-child(2) { background: linear-gradient(160deg, #fff, var(--soft-mint)); }
.quick:nth-child(3) { background: linear-gradient(160deg, #fff, var(--soft-peach)); }
.quick span { font-size: 28px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .08)); }

.qod-line { background: linear-gradient(90deg, var(--soft-peach), transparent); border-radius: 16px; padding: 12px 14px; border-left: 4px solid var(--saffron); }
.banner { border-radius: 16px; box-shadow: var(--shadow); }

/* practice rows */
.prow-ic { font-size: 22px; background: linear-gradient(160deg, var(--soft-blue), #fff); box-shadow: inset 0 0 0 1px rgba(227, 231, 242, .9); }
.prow-wrap:nth-child(3n+1) .prow-ic { background: linear-gradient(160deg, var(--soft-peach), #fff); }
.prow-wrap:nth-child(3n+2) .prow-ic { background: linear-gradient(160deg, var(--soft-mint), #fff); }
.prow-wrap:nth-child(3n) .prow-ic { background: linear-gradient(160deg, var(--soft-lilac), #fff); }
.prow-main b { font-size: 16.5px; }
.plan-row { border-radius: 16px; }
.plan-row.next { box-shadow: 0 0 0 4px rgba(255, 153, 51, .16); }
.plan-row.next .plan-n { background: var(--grad-saffron); }
.prac-head { background: var(--soft-mint); border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; }

/* progress */
.segmented { background: rgba(10, 30, 110, .06); border-radius: 16px; }
.segmented button.on { box-shadow: 0 2px 8px rgba(10, 30, 110, .14); }
.stat { border: 0; border-top: 0; padding: 16px 14px; background: linear-gradient(160deg, #fff, var(--soft-blue)); }
.stats-grid .stat:nth-child(1) { background: linear-gradient(160deg, #fff, var(--soft-peach)); }
.stats-grid .stat:nth-child(2) { background: linear-gradient(160deg, #fff, var(--soft-mint)); }
.stats-grid .stat:nth-child(4) { background: linear-gradient(160deg, #fff, var(--soft-lilac)); }
.stat b { font-size: 32px; letter-spacing: -1px; }
.level-card { border-top: 0; background: linear-gradient(160deg, #fff 40%, var(--soft-mint)); }
.lvl-ic { box-shadow: var(--shadow); background: #fff; }
.fb-bar { height: 10px; border-radius: 6px; background: rgba(10, 30, 110, .07); overflow: hidden; }
.fb-bar i { border-radius: 6px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.fb-score { box-shadow: var(--shadow); }
.rep-tile { border-radius: 14px; }
.link-card { border-radius: 16px; }

/* settings */
.set-group > summary { padding: 16px; }
.sg-ic { background: linear-gradient(160deg, var(--soft-blue), #fff); box-shadow: inset 0 0 0 1px rgba(227, 231, 242, .9); }
.lvl-opt { border-radius: 16px; }
.lvl-opt.on { box-shadow: 0 0 0 4px rgba(19, 136, 8, .12); }

/* wall */
.wall-card { border: 0; }
.wall-card.big { box-shadow: var(--shadow-lift); }

/* tab bar — active pill */
.tabbar { border-top: 0; box-shadow: 0 -8px 24px rgba(10, 30, 110, .08); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); }
.tabbar button { gap: 3px; transition: color .2s; }
.tabbar button::before, .tabbar button.active::before { content: ""; position: absolute; top: 8px; left: 50%; right: auto; width: 54px; height: 34px; border-radius: 17px; background: var(--saffron-soft); box-shadow: none; opacity: 0; transform: translateX(-50%) scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.tabbar button.active::before { opacity: 1; transform: translateX(-50%) scale(1); }
.tabbar button svg, .tabbar button span { position: relative; }
.tabbar button svg { transition: transform .2s; }
.tabbar button.active svg { transform: translateY(-1px); }

/* session player */
.s-top, .s-progress { background: var(--grad-navy); }
.ring-fg { stroke: url(#ringGrad); filter: drop-shadow(0 0 6px rgba(255, 153, 51, .35)); }
.ring-bg { stroke: rgba(10, 30, 110, .08); }
.s-time { letter-spacing: -2px; }
.s-name { letter-spacing: -.5px; }
.ctrl-next { background: var(--grad-saffron); box-shadow: 0 8px 20px rgba(242, 129, 27, .3); }
.ctrl-pause { background: var(--grad-navy); }
.s-controls { box-shadow: 0 -8px 24px rgba(10, 30, 110, .08); border-top: 0; }
.say-box, .read-box, .twister-card, .piano-card, .metro-card, .topic-box, .rec-card { border-radius: 18px; }
.finish-check { box-shadow: 0 12px 30px rgba(19, 136, 8, .3); }

/* sheets and toasts */
.sheet-panel { border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(7, 22, 80, .25); }
.toast { border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* onboarding */
.onb-logo { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-lift); }
.onb-title { font-size: 38px; letter-spacing: -1px; }
.onb-points { border: 0; box-shadow: var(--shadow); }

/* leaderboard */
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-top: 1px solid var(--line); }
.board li.me { background: var(--saffron-soft); border-radius: 12px; border-top: 0; }
.board-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.board li:nth-child(1) .board-n { background: var(--saffron); } .board li:nth-child(2) .board-n { background: #DDE2F0; } .board li:nth-child(3) .board-n { background: #F3D9BE; }
.board b { flex: 1; color: var(--navy); }
.board small { color: var(--muted); font-size: 12px; }
.board-v { font-weight: 900; color: var(--navy); font-size: 18px; }
.board-v small { font-weight: 700; }

/* Help language picker */
.lang-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.lang-chips.center { justify-content: center; }
.lang-chip { border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: 14.5px; min-height: 36px; }
.lang-chip.on { background: var(--saffron-soft); border-color: var(--saffron); color: #9A4A00; }

/* ---------- AI role-play (interview / client call) ---------- */
.rp-scen { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.rp-sc { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.rp-sc span { font-size: 22px; grid-row: span 2; align-self: center; }
.rp-sc b { color: var(--navy); }
.rp-sc small { color: var(--muted); font-size: 13px; }
.rp-sc.on { border-color: var(--saffron); background: var(--saffron-soft); }
.rp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.seg { display: flex; background: var(--navy-soft); border-radius: 12px; padding: 3px; margin-top: 6px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; font-weight: 700; color: var(--navy); font-size: 14px; }
.seg button.on { background: var(--navy); color: #fff; }
.field textarea#rpDetails { min-height: 84px; }
.rp-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.rp-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.rp-avatar.talking { box-shadow: 0 0 0 4px var(--saffron-soft), 0 0 0 7px var(--saffron); animation: rptalk 1.2s infinite; }
@keyframes rptalk { 50% { box-shadow: 0 0 0 2px var(--saffron-soft), 0 0 0 4px var(--saffron); } }
.rp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-who b { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-who small { color: var(--muted); font-size: 13px; }
.rp-timer { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 18px; }
.rp-timer.warn { color: var(--danger); }
.rp-chat { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; min-height: 30vh; }
.rp-bubble { max-width: 88%; border-radius: 16px; padding: 10px 14px; font-size: 16px; line-height: 1.4; }
.rp-bubble p { margin: 0; }
.rp-bubble.ai { align-self: flex-start; background: var(--navy-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.rp-bubble.me { align-self: flex-end; background: var(--saffron-soft); color: var(--ink); border-bottom-right-radius: 4px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rp-chips .chip { font-size: 12px; padding: 3px 9px; }
.rp-dock { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg); }
.rp-state { font-weight: 700; color: var(--navy); min-height: 22px; }
.rp-dock .rec-btn:disabled { opacity: .4; }
.rp-done { text-align: center; padding: 20px 10px; }
.rp-big { font-size: 48px; }
.rp-report { width: 100%; }
.rep-sec.rw { background: var(--navy-soft); }
.rep-sec.rw b { color: var(--navy); }
.rp-rw { margin-top: 8px; border-top: 1px solid rgba(10, 30, 110, .1); padding-top: 6px; }
.rp-rw small { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.rp-rw p { margin: 2px 0 6px; font-size: 15px; }
.rp-rw p.said { color: var(--muted); font-style: italic; }

/* ==============================================================
   v2.2 web QA — the website on a laptop, hover states, small fixes
   ===================================================================== */
/* Help "i" inside a light sheet or card was white on white */
.sheet-panel .help-dot, .card .help-dot, .rp-done .help-dot { background: var(--navy-soft); color: var(--navy-2); }
/* Keyboard users see where they are */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.switch:focus-visible, .tabbar button:focus-visible { outline-offset: -3px; }
/* Long tool titles (e.g. "Rehearse: Pitch · 10 minutes") stay on one tidy line */
.tool .s-count { min-width: 0; text-align: center; }
.tool .s-count b { display: inline-block; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* Shorter select labels in Settings never clip */
.field.inline select { max-width: 62%; text-overflow: ellipsis; }

/* ---------- Hover states (pointer devices only; touch keeps the :active press) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
  .btn-primary:hover { box-shadow: 0 12px 26px rgba(242, 129, 27, .42), inset 0 1px 0 rgba(255, 255, 255, .35); }
  .btn-navy:hover { box-shadow: 0 12px 24px rgba(10, 30, 110, .32); }
  .btn-outline:hover { background: var(--navy-soft); }
  .btn-ghost:hover { background: #E2E8FA; }
  .btn:disabled:hover { filter: none; transform: none; }
  .link-btn:hover { color: var(--saffron-deep); }
  .prow:hover, .plan-row:hover, .week-row:hover, .lvl-opt:hover, .rp-sc:hover, .text-item:hover, .speaker:hover { background: var(--navy-soft); cursor: pointer; }
  .plan-row.next:hover, .lvl-opt.on:hover, .rp-sc.on:hover, .text-item.on:hover { filter: brightness(.985); }
  .plan-row.done:hover { background: var(--green-soft); }
  .prow-wrap:hover .prow { border-radius: 14px; }
  .quick:hover, .link-card:hover, .qod-line:hover, .wall-card:hover, .start-here:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); cursor: pointer; }
  .quick, .link-card, .qod-line, .wall-card, .start-here, .mini, .hear-pill, .info-btn, .icon-btn, .ctrl, .segmented button, .wall-chip, .lang-chip, .week-pick button, .sq-btns button, .score-btns button, .bpm-btn, .seg button, .set-group > summary, details.fold > summary, .sub-fold > summary, .tabbar button { transition: background .15s ease, color .15s ease, box-shadow .2s ease, transform .15s ease, filter .15s ease; }
  .mini:hover, .info-btn:hover, .hear-pill.alt:hover, .segmented button:not(.on):hover, .week-pick button:not(.on):not(:disabled):hover, .sq-btns button:not(.on):hover, .score-btns button:not(.on):hover, .bpm-btn:not(.on):hover, .seg button:not(.on):hover, .wall-chip:not(.on):hover, .lang-chip:not(.on):hover { background: #E2E8FA; }
  .info-btn:hover { color: var(--navy); border-color: var(--navy); }
  .hear-pill:hover, .hear-btn:hover { filter: brightness(1.12); }
  .icon-btn:hover, .help-dot:hover { background: rgba(255, 255, 255, .25); }
  .help-btn:hover { background: rgba(255, 255, 255, .22); }
  .ctrl:hover { filter: brightness(1.05); }
  .ctrl-back:not(:disabled):hover { background: #E2E8FA; }
  .tabbar button:hover { color: var(--navy); }
  .tabbar button:not(.active):hover::before { opacity: .55; transform: translateX(-50%) scale(1); }
  .set-group > summary:hover, details.fold > summary:hover, .sub-fold > summary:hover, .activity-list summary:hover, .howto summary:hover, .tips-box summary:hover { color: var(--saffron-deep); }
  .set-group > summary:hover { background: #FAFBFF; }
  .switch:hover { filter: brightness(.96); }
  .watch-btn:hover { background: #F9D9D5; }
  .wk-slot.empty:hover, .wk-slot.has:hover { border-color: var(--saffron); }
  .rec-btn:hover { box-shadow: 0 0 0 6px rgba(10, 30, 110, .08); }
  .board li:hover { background: #FAFBFF; }
}

/* ---------- Laptop / desktop: one centred app column, the chrome follows it ---------- */
@media (min-width: 900px) {
  :root { --col: 680px; }
  body::before {
    background:
      radial-gradient(640px 380px at 110% -10%, rgba(255, 153, 51, .16), transparent 70%),
      radial-gradient(620px 420px at -20% 30%, rgba(27, 47, 138, .09), transparent 70%),
      radial-gradient(480px 360px at 80% 110%, rgba(19, 136, 8, .08), transparent 70%),
      radial-gradient(rgba(10, 30, 110, .07) 1px, transparent 1.4px) 0 0 / 22px 22px;
  }
  main { max-width: var(--col); padding-top: 22px; }
  /* header: full-width navy band, content aligned to the column */
  .topbar { padding-left: calc(50vw - 340px); padding-right: calc(50vw - 340px); }
  /* tab bar: a floating dock the width of the column */
  .tabbar { left: 50%; right: auto; width: var(--col); transform: translateX(-50%); border-radius: 22px 22px 0 0; justify-content: space-between; padding: 0 10px; box-shadow: 0 -10px 30px rgba(10, 30, 110, .12), 0 0 0 1px rgba(227, 231, 242, .9); }
  .tabbar button { max-width: none; }
  .toast { bottom: calc(var(--tabbar-h) + 22px); }
  /* sessions and stage tools: a phone-shaped stage in the middle of the screen, not a 1280px-wide form */
  #overlay.active { background: #E9EDF8; }
  #overlay.active::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(640px 380px at 110% -10%, rgba(255, 153, 51, .16), transparent 70%), radial-gradient(620px 420px at -20% 30%, rgba(27, 47, 138, .09), transparent 70%); }
  .session { position: relative; max-width: var(--col); margin: 0 auto; background: var(--white); box-shadow: 0 0 0 1px rgba(227, 231, 242, .9), 0 24px 70px rgba(7, 22, 80, .18); }
  .s-motive { max-width: 80%; }
  .teleprompter { height: 46vh; }
  .mirror-wrap { max-height: 56vh; }
  /* bottom sheets become centred dialogs */
  .sheet-panel { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 26px; max-height: 86vh; padding-bottom: 22px; animation: pop .22s ease-out; }
  @keyframes pop { from { transform: translateY(-50%) scale(.96); opacity: .4; } }
  .sheet-grip { display: none; }
  /* table-like rows breathe a little more on a big screen */
  .card, .next-card { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Landing (signed-out) ---------- */
.landing .onb-lead { font-size: 19px; }
.landing-sub { margin: -6px 0 2px; font-size: 15px; max-width: 460px; align-self: center; }
.landing-card { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; margin: 4px 0 0; }
.landing-card .onb-h { font-size: 22px; }
.landing-card .btn-xl { margin-top: 4px; }
.landing-card p { margin: 0; }
.landing-foot { margin: 2px 0 10px; }
.landing-link { color: var(--navy-2); font-weight: 700; }

/* Setup wizard: Back / Next / Begin always on screen (on a phone the level cards push them below the fold,
   and Android's edge-to-edge navigation bar covers the very bottom) */
.onb > .btn-row:last-child {
  position: sticky; bottom: 0; z-index: 5; margin-top: 0;
  padding: 14px 0 max(16px, calc(var(--safe-bottom) + 12px));
  background: linear-gradient(rgba(244, 246, 252, 0), #F4F6FC 30%);
}
body.onboarding main { padding-bottom: 24px; }
/* ---------- Look the part (dress sense & grooming) ---------- */
.lp-tabs { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs button { flex: none; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 8px 14px; font-size: 14px; min-height: 38px; white-space: nowrap; }
.lp-tabs button.on { background: var(--saffron-soft); border-color: var(--saffron); color: #9A4A00; }
.lp-why { border-top: 6px solid var(--saffron); }
.lp-why b { color: var(--navy); display: block; margin-bottom: 4px; font-size: 17px; }
.lp-why p { margin: 0; line-height: 1.5; }
.lp-svgs { display: flex; gap: 10px; margin-bottom: 8px; }
.lp-svgs svg { width: 44px; height: 44px; }
.lp-occ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.lp-oc { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 10px 6px; min-height: 76px; }
.lp-oc span { font-size: 24px; }
.lp-oc b { color: var(--navy); font-size: 12.5px; line-height: 1.2; }
.lp-oc.on { border-color: var(--saffron); background: var(--saffron-soft); }
.lp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lp-head > span:first-child { font-size: 28px; }
.lp-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp-head b { color: var(--navy); }
.lp-head small { color: var(--muted); font-size: 13px; }
.lp-sec { margin: 8px 0; }
.lp-sec b { color: var(--navy); display: block; margin-bottom: 2px; }
.lp-sec ul { margin: 0; padding-left: 18px; font-size: 15px; }
.lp-sec li { margin: 4px 0; line-height: 1.45; }
.lp-sec.avoid { background: var(--saffron-soft); border-radius: 12px; padding: 8px 12px; }
.lp-sec.avoid b { color: #9A4A00; }
.lp-card .btn-outline { margin-top: 10px; }
.lp-list .check { padding: 6px 0; border-top: 1px solid var(--line); }
.lp-list .check:first-of-type { border-top: 0; }
.lp-list-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.chip-green { background: var(--green-soft); color: var(--green); }
.lp-qn { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--saffron-deep); text-transform: uppercase; margin-bottom: 6px; }
.lp-quiz h3 { color: var(--navy); font-size: 18px; margin: 0 0 12px; line-height: 1.35; }
.lp-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.lp-opt { text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; color: var(--ink); line-height: 1.35; }
.lp-opt.ok { border-color: var(--green); background: var(--green-soft); font-weight: 700; }
.lp-opt.bad { border-color: var(--danger); background: #FDECEC; }
.lp-opt.dim { opacity: .5; }
.lp-quiz .btn-primary { width: 100%; margin-top: 10px; }
.lp-priv { background: var(--navy-soft); border: 0; }
.lp-priv > b { color: var(--navy); display: block; margin-bottom: 4px; }
.lp-priv p { margin: 0 0 8px; line-height: 1.5; }
.lp-priv .btn { width: 100%; }
.lp-photo { background: var(--navy-soft); border-radius: 16px; min-height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 4px; }
.lp-photo img { max-width: 100%; max-height: 50vh; display: block; border-radius: 16px; }
.lp-drop { text-align: center; padding: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--navy); }
.lp-drop span { font-size: 40px; }
.lp-drop small { color: var(--muted); }
.lp-file { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lp-file input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.lp-verdict { font-size: 16px; font-weight: 600; color: var(--navy); margin: 4px 0 8px; line-height: 1.45; }
.lp-report .rep-tiles { justify-content: center; }
.lp-report .rep-tile { flex: 0 0 140px; }
.lp-src { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.lp-src b { color: var(--navy); }
.lp-src small { color: var(--muted); }
.lp-url { font-size: 12px; color: var(--saffron-deep); word-break: break-all; }

/* Program set by the roster (shown in setup instead of a choice) */
.track-fixed { display: flex; gap: 12px; align-items: center; }
.track-fixed > div { display: flex; flex-direction: column; min-width: 0; }
.track-fixed b { color: var(--navy); font-size: 18px; }
.track-fixed small { font-size: 13px; }

/* ---------- Welcome carousel (first open, before sign-in) ---------- */
.wc { gap: 8px; min-height: calc(100vh - 120px); }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wc-top .lang-chips { margin: 0; gap: 6px; }
.wc-top .lang-chip { padding: 5px 11px; font-size: 13.5px; min-height: 34px; }
.wc-skip, .wc-link { background: none; border: 0; padding: 8px 4px; font-weight: 700; color: var(--muted); font-size: 15px; }
.wc-link { color: var(--navy-2); font-size: inherit; padding: 4px; }
.wc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; flex: 1; }
.wc-track::-webkit-scrollbar { display: none; }
.wc-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 8px 6px 4px; }
.wc-art { width: 100%; max-width: 300px; }
.wc-art svg { display: block; width: 100%; height: auto; }
.wc-h { color: var(--navy); font-size: 27px; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.wc-p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 420px; }
.wc-slide .wc-p:first-of-type { color: var(--ink); }
.wc-nav { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.wc-nav p { margin: 0; }
