/* GLIDE (the rebuilt Debate Stage). LeadGL design system: tokens from the 360 feedback app,
   brand colors as given by Toshi. Self-hosted only: no web fonts, no CDN. */
:root {
  --navy: #102187;
  --navy-d: #0a1660;
  --navy-soft: #2a3c9e;
  --navy-tint: #c9d0f0;
  --green: #3c7048;
  --green-bg: #eef4ef;
  --green-br: #c8dccb;
  --crimson: #9d001c;
  --ink: #1a1c23;
  --muted: #6b6f7d;
  --bg: #f6f6f3;
  --card: #ffffff;
  --line: #dedcd4;
  --serif: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
h1, h2 { font-family: var(--serif); color: var(--navy); line-height: 1.25; }
h1 { font-size: 1.7rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
a { color: var(--navy); }
.muted { color: var(--muted); }
.lede { color: var(--muted); max-width: 46rem; }
.note { background: #fff; border-left: 4px solid var(--green); padding: .6rem .9rem; border-radius: 6px; max-width: 46rem; font-size: .92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- shell: left rail on desktop, bottom tab bar on phones ---- */
.shell { display: flex; min-height: 100vh; }
.rail { width: 220px; flex: none; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; padding: 4px 10px 16px; }
.rail-link { display: flex; align-items: center; gap: 10px; color: var(--navy-tint); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .98rem; }
.rail-link:hover { background: var(--navy-soft); color: #fff; }
.rail-link.active { background: var(--navy-soft); color: #fff; font-weight: 700; }
.rail-link.as-button { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; text-align: left; }
.rail-spacer { flex: 1; }
.who { font-size: .82rem; color: var(--navy-tint); padding: 0 10px 4px; overflow: hidden; text-overflow: ellipsis; }
.ico { width: 18px; height: 18px; display: inline-block; border-radius: 4px; background: currentColor; opacity: .55; flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-home { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 12 3l9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E"); }
.ico-practice { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E"); }
.ico-watch { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm8 3v6l5-3z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.ico-scenes { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v3H4zm0 5h16v9H4z'/%3E%3C/svg%3E"); }
.ico-progress { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h16v-2H4zm1-4h3V9H5zm5 0h3V5h-3zm5 0h3v-5h-3z'/%3E%3C/svg%3E"); }
.ico-following { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Ccircle cx='17' cy='9' r='3'/%3E%3Cpath d='M1 20c0-4 4-6 8-6s8 2 8 6zm16-6c3 0 6 2 6 5v1h-5c0-2-.5-4-1-6z'/%3E%3C/svg%3E"); }
.ico-settings { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M11 1h2l1 4-4 0zm0 18h2l1 4h-4zM1 11h4v2H1zm18 0h4v2h-4z'/%3E%3C/svg%3E"); }
.rail-link.active .ico { opacity: 1; }
.main { flex: 1; min-width: 0; padding: 32px 40px 64px; max-width: 1200px; }
.solo { max-width: 520px; margin: 10vh auto; padding: 0 16px; }

/* ---- dashboard ---- */
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-height: 180px; }
.tile-label { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--navy); margin: 0 0 .6rem; }
.tile-next { grid-column: span 2; background: var(--navy); border-color: var(--navy); color: #fff; }
.tile-next .tile-label { color: var(--navy-tint); }
.tile-next .tile-lead { font-size: 1.15rem; max-width: 34rem; }
.tile-nice { background: var(--green-bg); border-color: var(--green-br); }
.tile-nice .tile-label { color: var(--green); }
.scene-row { display: flex; gap: 12px; text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--line); }
.scene-row:last-child { border-bottom: 0; }
.scene-row .when { color: var(--navy); font-weight: 700; min-width: 7.5em; }
.card-row { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.card-row:hover { border-color: var(--navy); }

/* ---- buttons, forms ---- */
.btn { white-space: nowrap; display: inline-block; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 999px; padding: 8px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-d); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.danger { background: var(--crimson); border-color: var(--crimson); }
.pill { display: inline-block; border-radius: 999px; padding: 6px 18px; text-decoration: none; font-weight: 700; }
.pill-light { background: #f7f6f2; color: var(--navy); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 16px 0; }
.card.narrow { max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form .row { display: flex; gap: 12px; align-items: flex-end; }
.form .actions { display: flex; gap: 12px; }
.inline { display: flex; gap: 10px; }
.danger-zone { margin-top: 8px; }
.flash { background: var(--green-bg); border: 1px solid var(--green-br); border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }

/* ---- phones ---- */
@media (max-width: 720px) {
  .shell { flex-direction: column; }
  .rail { position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: auto; height: auto; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
  .brand, .who, .rail-spacer, .rail form { display: none; }
  .rail-link { flex-direction: column; gap: 2px; font-size: .7rem; padding: 6px 4px; }
  .ico { width: 22px; height: 22px; }
  .main { padding: 20px 16px 96px; }
  .dash { grid-template-columns: 1fr; }
  .tile-next { grid-column: auto; }
  .tile { min-height: 0; }
}

/* ---- one-page memo ---- */
.crumb { margin: 0 0 2px; font-size: .9rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.small { font-size: .85rem; }
.memo-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.memo-form { margin: 0; max-width: none; }
.memo-form label.practice { border-top: 1px solid var(--line); padding-top: 14px; color: var(--green); }
.wc.over { color: var(--crimson); font-weight: 700; }
.feedback { margin: 0; position: sticky; top: 16px; }
.fb-summary { background: var(--green-bg); border-radius: 8px; padding: 8px 12px; }
.fb-points { padding-left: 1.2rem; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fb-point p { margin: .2rem 0; }
.fb-tag { font-size: .8rem; font-weight: 700; color: var(--navy); text-transform: none; }
.aspect-english .fb-tag { color: var(--crimson); }
.aspect-practice .fb-tag { color: var(--green); }
.fb-point blockquote { margin: .2rem 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
.fb-q { color: var(--ink); }
@media (max-width: 960px) { .memo-layout { grid-template-columns: 1fr; } .feedback { position: static; } }

/* ---- after the meeting ---- */
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.choices legend { font-weight: 600; margin-bottom: 4px; }
.row-choices { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.choice { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 400 !important; }
.fb-h { font-family: var(--sans); font-size: .95rem; color: var(--navy); margin: 18px 0 6px; }
.fb-h.nice { color: var(--green); }
.calib { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calib p { background: var(--bg); border-radius: 8px; padding: 8px 12px; margin: 0; }
.fb-quotes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fb-quotes p { margin: .1rem 0; }
.fb-quotes blockquote { margin: 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
.fb-quotes.nice blockquote { border-left-color: var(--green); }

.busy { display: flex; align-items: center; gap: 10px; color: var(--navy); background: #eef0f8; border-radius: 8px; padding: 8px 12px; margin: 0; }
.busy::before { content: ""; width: 16px; height: 16px; flex: none; border: 3px solid var(--navy-tint); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .busy::before { animation: none; } }

/* ---- measures ---- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.metrics p { margin: 0; background: var(--bg); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.metrics b { font-size: 1.3rem; color: var(--navy); }
.metrics span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.prog-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prog-table th, .prog-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.prog-table th { background: var(--bg); font-weight: 600; }
.prog-table td.num { font-variant-numeric: tabular-nums; }
.trend-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.trend { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.trend h3 { margin: 0 0 6px; font-size: .9rem; color: var(--navy); }
.trend svg { width: 100%; height: 60px; display: block; }
.trend .ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .metrics, .trend-row { grid-template-columns: 1fr 1fr; } .prog-table { font-size: .85rem; } }

/* ---- rehearsal ---- */
.row-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row-controls label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.row-controls select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.transcript { display: flex; flex-direction: column; gap: 6px; }
.transcript.live { max-height: 50vh; overflow-y: auto; margin-top: 12px; }
.transcript p { margin: 0; padding: 8px 12px; border-radius: 10px; max-width: 85%; }
.transcript .t-ai { background: var(--bg); align-self: flex-start; }
.transcript .t-learner { background: #eef0f8; align-self: flex-end; }
.legend { display: flex; gap: 16px; font-size: .88rem; margin: 0 0 6px; }
.key::before { content: ""; display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.key-conviction::before { background: #102187; }
.key-ownership::before { background: #3c7048; }
.key-heat::before { background: #9d001c; }
.meter-chart { width: 100%; height: auto; max-height: 260px; }
.meter-chart .grid { stroke: var(--line); stroke-width: 1; }
.meter-chart .axis { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.turn-causes { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 8px; }
.turn-causes .mini { color: var(--muted); font-size: .85rem; }
.style-eval { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.style-eval dt { font-weight: 700; color: var(--navy); }
.style-eval dd { margin: 0; }
details.card summary { cursor: pointer; font-weight: 700; color: var(--navy); }

/* ---- recorder ---- */
.recorder.on { border-color: var(--crimson); }
.rec-state { font-weight: 700; color: var(--crimson); font-variant-numeric: tabular-nums; }
.rec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.rec-row .when { color: var(--navy); font-weight: 700; min-width: 9em; }
.rec-row audio { height: 32px; flex: 1; min-width: 200px; }
.small-btn { padding: 4px 12px; font-size: .85rem; }

/* ---- coach ---- */
.ask { margin-top: 6px; }
.ask summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.ask summary:hover { color: var(--navy); }
.ask-form { margin-top: 8px; gap: 8px; }
.qa { max-width: 46rem; }
.qa blockquote { margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
.qa-open { border-left: 4px solid var(--navy); }
.answer { background: var(--green-bg); border-radius: 8px; padding: 8px 12px; }
.notice-coach { background: var(--green-bg); border: 1px solid var(--green-br); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
.ico-coach { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H8l-5 4z'/%3E%3C/svg%3E"); }


/* =====================================================================
   Layout v2: scene-centred. One step bar everywhere, wide feedback cards.
   ===================================================================== */
.main { max-width: 1080px; }
h1 { font-size: 1.85rem; }

/* step bar */
.steps { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.step a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); height: 100%; }
.step .num { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.step .label { font-weight: 700; }
.step .sub { font-size: .8rem; color: var(--muted); }
.step.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.step.next a { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(16,33,135,.15); }
.step.active a { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.active .sub { color: var(--navy-tint); }
.step.active .num { background: #fff; color: var(--navy); border-color: #fff; }
.step a:hover { border-color: var(--navy); }
.steps.compact { margin: 8px 0 0; gap: 6px; }
.steps.compact .step a { padding: 6px 8px; grid-template-rows: auto; }
.steps.compact .num { width: 22px; height: 22px; font-size: .75rem; grid-row: auto; }
.steps.compact .label { font-size: .82rem; font-weight: 600; }

.scene-head { margin-bottom: 14px; }
.scene-head h1 { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin: 0; }
.card-fields { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 10px 20px; margin: 14px 0; }
.card-fields dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.card-fields dd { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline.wrap { flex-wrap: wrap; align-items: center; }

/* home */
.hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 26px 28px; margin-bottom: 20px; }
.hero h1 { color: #fff; margin: 4px 0 6px; }
.hero h1 a { color: #fff; text-decoration: none; }
.hero-label { color: var(--navy-tint); font-weight: 700; margin: 0; font-size: .9rem; }
.hero .step a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.hero .step .sub { color: var(--navy-tint); }
.hero .step .num { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .step.done .num { background: var(--green); border-color: var(--green); }
.hero .step.next a { border-color: #fff; box-shadow: none; background: rgba(255,255,255,.16); }
.btn-light { background: #f7f6f2; color: var(--navy); border-color: #f7f6f2; }
.btn-light:hover { background: #fff; color: var(--navy); }
.home-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; align-items: start; }
.home-grid .card { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.feed-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.feed-row:first-of-type { border-top: 0; }
.feed-meta { font-size: .82rem; color: var(--navy); font-weight: 600; }
.feed-text { color: var(--muted); font-size: .92rem; }
.metrics.two { grid-template-columns: 1fr 1fr; }

/* scene list */
.list { display: flex; flex-direction: column; gap: 10px; }
.scene-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.scene-card-top { display: flex; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.scene-card-top .when { color: var(--navy); min-width: 7.5em; }

/* step cards (review) */
.step-cards { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.step-cards > li.card { margin: 0; }
.step-cards h2 { display: flex; align-items: center; gap: 10px; }
.step-cards .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-size: .9rem; flex: none; }
.step-cards-form { margin-top: 14px; }
.speaker-choices { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.choice.speaker { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.choice.speaker:has(input:checked) { border-color: var(--navy); background: #eef0f8; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 10px; z-index: 2; }

/* wide feedback */
.feedback-wide { margin-top: 26px; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.fb-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 14px 16px; }
.fb-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); font-family: var(--sans); }
.fb-card.nice, .fb-card.aspect-practice { border-left-color: var(--green); }
.fb-card.aspect-english { border-left-color: var(--crimson); }
.fb-card p { margin: .3rem 0; }
.fb-card blockquote { margin: .3rem 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
.fb-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); margin-right: 6px; font-size: .75rem; }
.memo-form { max-width: none; }

/* meet */
.goal-pill { background: var(--green-bg); border: 1px solid var(--green-br); border-radius: 10px; padding: 10px 14px; }
.recorder .row-controls .btn { font-size: 1.05rem; padding: 12px 28px; }

/* ask my coach */
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: 6px; }
.link-btn:hover { color: var(--navy); }
.ask-dialog { border: 0; border-radius: 14px; padding: 22px 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.ask-dialog::backdrop { background: rgba(10,22,96,.35); }
.ask-item { white-space: pre-line; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 0; font-size: .92rem; }

@media (max-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.compact { grid-template-columns: repeat(4, 1fr); }
  .steps.compact .label { display: none; }
  .home-grid, .two-col, .card-fields { grid-template-columns: 1fr; }
  .hero { padding: 20px; }
  .fb-grid { grid-template-columns: 1fr; }
}
.step-cards > li.form { max-width: none; }
@media (max-width: 720px) { .sticky-actions { bottom: 64px; } }

/* ---- progress charts ---- */
.progress-home { margin: 0 0 18px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 10px; }
.pchart { margin: 0; background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.pchart figcaption { font-size: .85rem; font-weight: 600; color: var(--ink); min-height: 2.4em; }
.pline { width: 100%; height: auto; display: block; margin: 6px 0 2px; overflow: visible; }
.pline .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pline .area { opacity: .12; }
.pline.up .line, .pline.up circle { stroke: var(--green); fill: var(--green); }
.pline.up .line { fill: none; }
.pline.up .area { fill: var(--green); }
.pline.down .line, .pline.flat .line { stroke: var(--navy); }
.pline.down circle, .pline.flat circle { fill: var(--navy); }
.pline.down .area, .pline.flat .area { fill: var(--navy); }
.pends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin: 0; }
.pends b { color: var(--ink); }
.pchange { margin: 4px 0 0; font-weight: 700; font-size: .9rem; }
.pchange.up { color: var(--green); }
.pchange.down { color: var(--navy); }
.pchange.flat { color: var(--muted); }
.pval { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 8px 0 0; }

.phead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.phead p { margin: 0; }
.range-nav { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.range-nav a { padding: 5px 12px; font-size: .85rem; text-decoration: none; color: var(--navy); border-left: 1px solid var(--line); }
.range-nav a:first-child { border-left: 0; }
.range-nav a.on { background: var(--navy); color: #fff; font-weight: 700; }
.pline .tick { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.paxis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: 0 0 4px; border-top: 1px solid var(--line); padding-top: 2px; }
.pempty { min-height: 60px; }
.ptarget { font-size: .75rem; color: var(--green); margin: 0; font-weight: 600; }
.pinfo summary { cursor: pointer; list-style: none; }
.pinfo summary::-webkit-details-marker { display: none; }
.pinfo .i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: .65rem; font-style: italic; font-family: Georgia, serif; margin-left: 4px; vertical-align: 1px; }
.pinfo[open] .i { background: var(--navy); border-color: var(--navy); color: #fff; }
.pinfo p { font-weight: 400; font-size: .82rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0 4px; line-height: 1.5; }

.pline .target-line { stroke: #b45309; stroke-width: 1.5; stroke-dasharray: 6 4; }
.pline .target-label { fill: #b45309; font: 700 11px var(--sans); }
.pline .area { opacity: .07; }
.ptarget { color: #b45309; }
.ptarget::before { content: ""; display: inline-block; width: 18px; border-top: 2px dashed #b45309; vertical-align: middle; margin-right: 6px; }

/* ---- daily practice ---- */
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--card); cursor: pointer; font-weight: 600; }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.tr-setup .choice select { margin-left: 6px; font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.tr-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.tr-progress .bar { height: 100%; background: var(--green); width: 0; transition: width .3s; }
.tr-card { max-width: 46rem; }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.tr-text { background: var(--bg); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.tr-text p { margin: .2rem 0; }
.tr-ja { color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.tr-answer { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.tr-input { flex: 1; min-width: 220px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.tr-q { font-weight: 700; margin-top: 14px; }
.tr-choices { display: flex; flex-direction: column; gap: 8px; }
.choice-btn { text-align: left; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.choice-btn:hover:not(:disabled) { border-color: var(--navy); }
.choice-btn.right { border-color: var(--green); background: var(--green-bg); font-weight: 700; }
.choice-btn.wrong { border-color: var(--crimson); background: #fbeced; }
.tr-result { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.tr-score { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.hits { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hits li { border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.hits .ok { background: var(--green-bg); color: var(--green); }
.hits .miss { background: #fbeced; color: var(--crimson); }
.crit { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.crit .dots { color: var(--navy); letter-spacing: 2px; }
.nice-line { color: var(--green); }
.error { color: var(--crimson); font-weight: 600; }
.tr-setup .choice > span { min-width: 0; }
.tr-setup .choice select { max-width: 100%; }
@media (max-width: 720px) { .tr-setup .choice select { display: block; margin: 6px 0 0; width: 100%; } }

/* ---- GLIDE brand ---- */
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; padding: 4px 10px 18px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .14em; line-height: 1; color: inherit; text-decoration: none; }
.tagline { font-size: .66rem; letter-spacing: .02em; color: var(--navy-tint); margin-top: 6px; line-height: 1.35; }
.rail-logo { display: block; background: #fff; border-radius: 10px; padding: 8px 10px; margin: 0 4px 10px; }
.rail-logo img { display: block; width: 100%; height: auto; }
.mobile-top { display: none; }
.solo-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 18px; color: var(--navy); text-align: center; }
.solo-brand .tagline { color: var(--muted); }
.solo-brand img { margin-top: 12px; width: 160px; height: auto; }
@media (max-width: 720px) {
  .rail-logo { display: none; }
  .mobile-top { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 14px; }
  .mobile-top .wordmark { color: var(--navy); font-size: 1.35rem; }
  .mobile-top img { width: 84px; height: auto; }
}
@media (max-width: 720px) {
  .rail .brand { display: none; }
  .range-nav { width: 100%; overflow-x: auto; }
  .range-nav a { flex: 1; text-align: center; white-space: nowrap; padding: 6px 8px; }
}
.test-notice { background: #fdf6e3; border: 1px solid #e0c169; border-radius: 8px; padding: 6px 12px; font-size: .85rem; margin: 0 0 14px; }

/* Recommended videos */
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 28px; }
.w-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.w-card:hover { border-color: #9AA1C4; }
.w-kind { font-size: 13px; color: #6A6F88; }
.w-title { font-size: 17px; line-height: 1.35; }
.w-meta { font-size: 13px; color: #4A4F6A; margin-top: auto; }
.w-wpm { font-weight: 700; color: #102187; margin-right: 6px; }
.w-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 16px; }
.w-spk { display: inline-block; font-size: 13px; background: #EDEEF3; border-radius: 6px; padding: 2px 8px; margin: 0 4px 4px 6px; }
.w-steps h2, .w-back h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.w-steps h2:first-child, .w-back h2:first-child { margin-top: 0; }
.step-no { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #102187; color: #fff; font-size: 14px; align-items: center; justify-content: center; flex: none; }
.w-open { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.w-stop { font-size: 15px; color: #7A4A06; background: #FBEFD9; border-radius: 8px; padding: 6px 12px; }
.w-back { margin-top: 16px; border-color: #3C7048; }
.w-back textarea { width: 100%; }
.w-pending { background: #FBEFD9; border-color: #E8C98E; }
.w-history { padding-left: 18px; line-height: 1.8; }
@media (max-width: 720px) {
  .rail { justify-content: stretch; }
  .rail-link { flex: 1 1 0; min-width: 0; font-size: .62rem; padding: 6px 1px; }
  .rail-link .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* 10,000 hours */
.goal h2 { margin-bottom: 6px; }
.goal-today { margin: 4px 0 6px; font-size: 1.05rem; }
.goal-bar { height: 10px; background: #EDEEF3; border-radius: 5px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: #102187; border-radius: 5px; }
.goal-reach { margin: 10px 0 2px; font-weight: 700; color: #102187; }
.goal-edit { margin-top: 10px; }
.goal-edit summary, .tr-options summary { cursor: pointer; color: #102187; font-weight: 600; }
.goal-edit .form { margin-top: 12px; }
.goal-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0; }
.goal-calc div { background: #EDEEF3; border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; }
.goal-calc b { font-size: 1.3rem; }
.btn.big { font-size: 1.05rem; padding: 12px 22px; }
.tr-options { margin-top: 8px; }
.tr-options[open] summary { margin-bottom: 10px; }

/* exercise list: names only, description on click */
.ex-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ex-group h3 { font-size: .95rem; margin: 0 0 6px; padding-left: 8px; border-left: 4px solid #9AA1C4; }
.ex-input h3 { border-color: #0F6E56; } .ex-output h3 { border-color: #102187; } .ex-communicate h3 { border-color: #5B3FA8; }
.ex { border: 1px solid var(--line, #DCDFEA); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.ex summary { cursor: pointer; font-weight: 600; }
.ex p { margin: 8px 0 2px; font-size: .92rem; color: #4A4F6A; }
.goal-edit.first > summary { display: none; }
.field .muted.small { font-weight: 400; display: block; }
.ico-discuss { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3zm-7 9h2a5 5 0 0 0 10 0h2a7 7 0 0 1-6 6.9V21h3v2H8v-2h3v-3.1A7 7 0 0 1 5 11z'/%3E%3C/svg%3E"); }

/* Discuss */
.d-desktop { margin-top: -6px; }
#d-own { width: 100%; margin-top: 6px; }
.d-live .d-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-timer { font-size: 1.4rem; font-weight: 700; color: #102187; font-variant-numeric: tabular-nums; }
.d-cap { margin-left: auto; font-size: .9rem; }
.d-log { max-height: 340px; overflow-y: auto; border: 1px solid #DCDFEA; border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: #FDFDFB; }
.d-log p { margin: 4px 0; }
.d-log .t-ai b { color: #5B3FA8; } .d-log .t-learner b { color: #102187; }
.d-log.nocap .t-ai { display: none; }
.d-help { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.d-spacer { flex: 1; }
.d-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.d-tile { background: #EDEEF3; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.d-tile b { font-size: 1.6rem; color: #102187; }
.d-cmp { font-size: .8rem; color: #6A6F88; } .d-cmp.up { color: #3C7048; } .d-cmp.down { color: #9D001C; }
.d-nice { background: #EEF4EF; border-radius: 8px; padding: 8px 12px; }
.d-better { border-top: 1px solid #DCDFEA; padding: 10px 0; }
.d-better:first-of-type { border-top: none; }
.d-target { font-size: 1.1rem; font-weight: 600; color: #102187; }
.d-target.hidden-text { filter: blur(6px); user-select: none; }
.d-out { font-size: .95rem; }
.d-miss { border-top: 1px solid #DCDFEA; padding: 6px 0; }
.d-words li { margin: 4px 0; }
.d-hist { width: 100%; border-collapse: collapse; font-size: .9rem; }
.d-hist th, .d-hist td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #EDEEF3; }
@media (max-width: 720px) { .d-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.d-voice { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; }
.d-mic { width: 64px; height: 64px; border-radius: 50%; border: none; background: #102187; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.d-mic .ico { width: 28px; height: 28px; opacity: 1; background: #fff; }
.d-mic.on { background: #9D001C; box-shadow: 0 0 0 6px rgba(157,0,28,.15); }
.d-chosen { background: #EDEEF3; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.d-chosen input { width: 100%; font-weight: 600; }
.d-ideas { margin: 6px 0 10px; }
.d-sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.d-idea { text-align: left; display: flex; flex-direction: column; gap: 4px; background: #FDFDFB; border: 1px solid #DCDFEA; border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.d-idea:hover { border-color: #9AA1C4; } .d-idea.on { border: 2px solid #102187; }
.d-idea-mode { color: #5B3FA8; }
.d-scenes, .d-type { margin: 6px 0; } .d-scenes summary, .d-type summary { cursor: pointer; color: #102187; font-weight: 600; }
.d-scene { margin: 6px 6px 0 0; }
@media (max-width: 720px) { .d-sugg { grid-template-columns: 1fr; } }
.d-ideas-head { display: flex; align-items: center; gap: 10px; }
.d-with { font-weight: 700; color: #5B3FA8; margin: 6px 0 0; }
.d-wait .busy { font-size: 1.1rem; padding: 14px 16px; }
.d-hear { margin-left: 4px; }

.d-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-toggle { display: flex; gap: 6px; }
.d-history[data-view="graph"] .d-table, .d-history[data-view="table"] .d-graph { display: none; }
.d-cefr-trend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d-lvl { display: inline-block; font-weight: 700; color: #102187; background: #E7EBF8; border-radius: 6px; padding: 1px 8px; text-decoration: none; }
.d-lvl.big { font-size: 1.3rem; padding: 2px 12px; }
.d-cefr { border: 1px solid #DCDFEA; border-radius: 10px; padding: 8px 14px; margin: 10px 0; }
.d-aspects { display: flex; flex-wrap: wrap; gap: 8px; }
.d-aspect { font-size: .85rem; background: #EDEEF3; border-radius: 6px; padding: 2px 8px; }
.d-cont { background: #E7EBF8; border-color: #C9D0F0; }
.d-next { display: flex; gap: 10px; flex-wrap: wrap; }

/* Real meetings */
.mt-quick-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.mt-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mrec-read { background: #EDEEF3; border-radius: 10px; padding: 10px 14px; font-size: 1.05rem; line-height: 1.6; margin: 8px 0; }
.mrec-consent .choice { align-items: flex-start; }
.mrec-live { text-align: center; padding: 30px 10px; }
.mrec-dot { color: #E24B4A; font-weight: 700; } .mrec-dot span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #E24B4A; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.mrec-timer { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0; }
.mrec-keep { color: #9AA1C4; }
body.mrec-dark, body.mrec-dark .main, body.mrec-dark .mrec { background: #0b0d18 !important; color: #C9D0F0; }
body.mrec-dark .rail, body.mrec-dark .page-head, body.mrec-dark .lede, body.mrec-dark .flow, body.mrec-dark .goal-pill, body.mrec-dark section:not(.mrec), body.mrec-dark .main > p { display: none !important; }
body.mrec-dark .mrec { border: none; box-shadow: none; }
.mt-moves li { margin: 6px 0; }
.mt-q { font-size: .75rem; border-radius: 6px; padding: 1px 6px; }
.mt-q-strong { background: #EEF4EF; color: #3C7048; } .mt-q-ok { background: #EDEEF3; color: #4A4F6A; } .mt-q-weak { background: #FBEFD9; color: #7A4A06; }
.mt-plan li { margin: 6px 0; }
.mt-teams { margin-top: 12px; } .mt-teams summary { cursor: pointer; color: #102187; }
.mrec-consent { border: 1px solid #DCDFEA; border-radius: 10px; padding: 8px 14px; }
.mrec-consent .choice { display: flex; gap: 10px; margin: 8px 0; line-height: 1.5; }
.mrec-consent .choice input { margin-top: 4px; flex: none; }
.mrec-upload { border-top: 1px solid #DCDFEA; margin-top: 16px; padding-top: 12px; }
.mrec-upload h3 { font-size: 1rem; margin: 0 0 4px; }
#mrec-prog { margin: 8px 0; }

.a-table td { vertical-align: top; }
.a-when { white-space: nowrap; color: #6A6F88; font-size: .85rem; }
.a-kind { font-size: .75rem; border-radius: 6px; padding: 1px 7px; white-space: nowrap; background: #EDEEF3; color: #4A4F6A; }
.a-discuss { background: #E7EBF8; color: #102187; } .a-meeting { background: #EEF4EF; color: #3C7048; } .a-rehearsal { background: #F2EEFB; color: #5B3FA8; } .a-watch { background: #FBEFD9; color: #7A4A06; }
.d-lvl-meet { background: #fff; border: 2px solid #3C7048; color: #3C7048; }
.d-h-topic { min-width: 260px; } .d-h-act { white-space: nowrap; text-align: right; }
.d-hist td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
.d-h-topic { min-width: 200px; } .d-hist th { font-size: .78rem; font-weight: 600; color: #4A4F6A; }

/* Discuss on phones */
@media (max-width: 720px) {
  .d-hist, .d-hist tbody, .d-hist tr, .d-hist td { display: block; width: auto; }
  .d-hist tr:first-child { display: none; }
  .d-hist tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; padding: 10px 0; border-bottom: 1px solid #EDEEF3; }
  .d-hist td { border: none; padding: 0; }
  .d-hist .d-h-topic { flex: 1 1 100%; min-width: 0; font-weight: 600; }
  .d-hist .a-when { flex: 1 1 100%; margin-bottom: 4px; }
  .d-hist .d-h-n { flex: 0 0 33.3%; font-weight: 700; color: #102187; }
  .d-hist .d-h-n::after { content: " " attr(data-label); font-weight: 400; font-size: .75rem; color: #6A6F88; }
  .d-hist .d-h-act { flex: 1 1 100%; text-align: left; margin-top: 6px; }
  .d-hist-head h2 { margin: 0; }
  .d-ideas-head { flex-wrap: wrap; }
  .d-ideas-head .small { flex: 1 1 100%; }
  .d-help { gap: 6px; } .d-help .d-spacer { flex-basis: 100%; height: 0; }
  .d-help #d-end { width: 100%; }
  .d-live .d-bar { gap: 6px; }
  .d-log { max-height: 50vh; }
  .d-next .btn { flex: 1 1 100%; text-align: center; }
  .d-better .btn, .d-hear { margin-top: 4px; }
  .mrec-timer { font-size: 2.6rem; }
}
@media (max-width: 720px) {
  .range-nav { flex-wrap: wrap; gap: 4px; }
  .range-nav a { padding: 4px 8px; font-size: .8rem; }
  .phead { flex-wrap: wrap; }
  .prog-table { table-layout: fixed; width: 100%; }
  .a-table td:first-child { width: 4.2em; white-space: normal; }
  .a-table td:nth-child(2) { width: 5.5em; }
  .a-table td { word-break: break-word; }
}
@media (max-width: 720px) {
  .a-table, .a-table tbody, .a-table tr, .a-table td { display: block; width: auto !important; }
  .a-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid #EDEEF3; }
  .a-table td { border: none; padding: 0; }
  .a-table td:first-child { white-space: nowrap; }
  .a-table td:nth-child(3) { flex: 1 1 100%; }
}
.d-focus select { margin-top: 6px; } .d-why { flex: 1 1 100%; margin: 4px 0 0; }
.d-fe { border: 1px solid #DCDFEA; border-radius: 10px; padding: 8px 14px; margin: 10px 0; } .d-fe-list { padding-left: 18px; } .d-fe-list li { margin: 4px 0; }

/* Where you got stuck / Practice this / Today's drills */
.mt-q-none { background: #F2F2EF; color: var(--muted); }
.d-layer { border-top: 1px solid #DCDFEA; padding: 10px 0; }
.d-layer:first-of-type { border-top: none; }
.d-layer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.d-layer-head .btn { margin-left: auto; }
.d-layer p { margin: 4px 0 0; }
.d-drills { margin-top: 8px; }
.d-drill { background: #F7F8FC; border: 1px solid #DCDFEA; border-radius: 10px; padding: 8px 14px; margin: 8px 0; }
.d-drill.done { border-color: var(--green-br); }
.d-drill-in { display: flex; gap: 8px; flex-wrap: wrap; }
.d-drill-in input { flex: 1 1 220px; min-width: 0; }
.d-choice { display: block; width: 100%; text-align: left; margin: 6px 0; white-space: normal; }
.d-choice.right { border-color: var(--green); background: var(--green-bg); }
.d-choice.wrong { border-color: var(--crimson); }
.d-drill .mt-q { margin-right: 6px; display: inline-block; margin-bottom: 4px; }
.d-today summary { cursor: pointer; }
.d-today-list { padding-left: 20px; }
.d-today-list li { margin: 8px 0; }
.d-pin { display: block; margin-top: 8px; }

/* Watch: recommended for you */
.wp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 10px 0; }
.wp-card { border: 1px solid var(--navy-tint); }
.wp-reason { font-size: .92rem; color: var(--ink); }

/* "alpha" next to the GLIDE wordmark (replaces the test-version banner) */
.alpha { display: inline-block; vertical-align: super; margin-left: 4px; font: 600 .62rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--crimson); border: 1px solid currentColor; border-radius: 4px; padding: 2px 4px; }
.login-link { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.login-link h2 { font-size: 1.05rem; }
.rail .alpha { color: #fff; opacity: .85; }
.wordmark .alpha { letter-spacing: .04em; }

/* Usage dashboard */
.u-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.u-tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.u-tile b { font-size: 1.6rem; color: var(--navy); font-family: var(--serif); }
.u-chart { display: block; max-height: 220px; }
.u-table td, .u-table th { white-space: nowrap; }
.u-table td:first-child { white-space: normal; }
.mt-q-none { background: #F2F2EF; color: var(--muted); }
.ico-admin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm10 0h8v5h-8zM3 13h8v8H3zm10-3h8v11h-8z'/%3E%3C/svg%3E"); }
.u-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Meeting recorder: keep the phone awake */
.keep-awake { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }
.mrec-lock { background: #FBEFD9; color: #5C3804; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.mrec-lock p { margin: 4px 0; }
.mrec-awake { color: #FBEFD9; }

/* Privacy page */
.pv-sec ul { padding-left: 20px; }
.pv-sec li { margin: 6px 0; }

/* Footer, What's new, feedback */
.app-foot { margin: 40px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-foot .alpha { color: var(--crimson); }
.wn-day ul { padding-left: 20px; } .wn-day li { margin: 6px 0; }
.fb-item.done { opacity: .6; }
.fb-body { white-space: normal; }
@media (max-width: 760px) { .app-foot { margin-bottom: 84px; } }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.login-pw, .login-mail { display: flex; flex-direction: column; gap: 12px; }
.login-pw[hidden], .login-mail[hidden] { display: none; }

/* Settings › Account */
.acct-who { margin: 0 0 12px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct-out { margin-top: 12px; }
.narrow-form { max-width: 520px; }

/* Practice setup: step 1 = four ways to start (1 and 3 featured); steps 2-5 = settings */
.d-setup .d-step { border: 0; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.d-setup .d-step:first-child { border-top: 0; padding-top: 0; }
.d-setup .d-step h2, .d-setup .d-step legend, .d-step-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); color: var(--navy); font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; padding: 0; }
.d-setup fieldset.d-step { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.d-setup fieldset.d-step legend { float: left; width: 100%; }
.d-step-hint { flex: 1 1 100%; margin: 0 0 4px; }
.d-setup .step-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .9rem var(--sans); }
.d-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 12px; }
.d-opt { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.d-opt h3 { margin: 0; font-size: 1.02rem; }
.d-opt-say { background: var(--navy); border-color: var(--navy); color: #fff; }
.d-opt-say h3, .d-opt-say .small { color: #fff; }
.d-opt-say .d-mic { background: #fff; width: 72px; height: 72px; }
.d-opt-say .d-mic .ico { background: var(--navy); }
.d-opt-say .d-mic.on { background: #F2B8C2; }
.d-opt-say .d-voice { margin: 0; }
.d-opt-meet { background: #FBF0F2; border-color: #E8C3CA; }
.d-opt-meet h3 { color: var(--crimson); }
.d-scene-list { display: flex; flex-direction: column; gap: 8px; }
.d-scene { text-align: left; border: 1px solid #E8C3CA; background: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.d-scene:hover, .d-scene.on { border-color: var(--crimson); box-shadow: 0 0 0 2px rgba(157,0,28,.15); }
.d-opt-ideas .d-sugg { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.d-opt-ideas .d-ideas-head { justify-content: space-between; }
.d-opt-type { justify-content: center; align-items: flex-start; background: #F7F7F4; }
.d-opt-type h3 { font-size: .95rem; color: var(--muted); }
.d-pin { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .92rem; cursor: pointer; }
.d-pin input { width: 18px; height: 18px; margin: 0; flex: none; }
.d-setup .d-why { margin: 2px 0 0; }
.d-setup #d-accent { max-width: 420px; }
.d-go { border-top: 1px solid var(--line); padding-top: 16px; }
.d-go p { margin: 4px 0; }
@media (max-width: 760px) { .d-opts { grid-template-columns: 1fr; } }
.form .d-pin, .form .d-step-title { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
.form .d-pin { font-weight: 500; }
.form .d-step-title { font-weight: 700; gap: 10px; }
.d-opts { grid-template-areas: "say ideas" "meet ideas" "type ideas"; grid-template-rows: auto auto 1fr; align-items: start; }
.d-opt-say { grid-area: say; } .d-opt-ideas { grid-area: ideas; } .d-opt-meet { grid-area: meet; } .d-opt-type { grid-area: type; }
@media (max-width: 760px) { .d-opts { grid-template-areas: "say" "ideas" "meet" "type"; grid-template-rows: none; } }
@media (max-width: 760px) { .d-opts { grid-template-areas: "say" "meet" "ideas" "type"; } }

/* Setup, round 2: compact ideas, typing inside "Say", drills in step 1, notes under controls */
.d-opts { grid-template-areas: "say ideas" "meet ideas" "today today"; grid-template-rows: auto 1fr auto; }
@media (max-width: 760px) { .d-opts { grid-template-areas: "say" "meet" "ideas" "today"; grid-template-rows: none; } }
.d-opt-today { grid-area: today; background: #F7F8FC; }
.d-opt-today summary { font-weight: 700; color: var(--navy); }
.d-type-btn { align-self: flex-start; margin-top: 4px; background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.d-type-btn:hover { background: rgba(255,255,255,.12); }
.d-opt-ideas .d-idea { padding: 10px 12px; }
.d-opt-ideas .d-idea > span { display: none; }
.d-opt-ideas .d-idea.on > span { display: block; margin-top: 4px; }
.d-step-note { flex: 1 1 100%; margin: 6px 0 0; }
.d-go .actions { margin: 0; }
.d-ideas-why { margin: 0; }
.d-opt-ideas .d-more { align-self: flex-start; }
.d-awake { background: #FBEFD9; color: #5C3804; border-radius: 8px; padding: 6px 10px; }
/* "Say what is on your mind": mic with "Or type it" right under it, text beside */
.d-opt-say { padding: 14px 16px; }
.d-opt-say .d-voice { align-items: flex-start; gap: 14px; }
.d-voice-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.d-opt-say .d-mic { width: 60px; height: 60px; }
.d-opt-say .d-mic .ico { width: 26px; height: 26px; }
.d-voice-btns .d-type-btn { margin: 0; white-space: nowrap; }
.d-opt-say h3 { margin: 2px 0 4px; }
.d-opt-say #d-say-status { margin: 0; }
/* Enough room between the mic and "Or type it" for a thumb */
.d-voice-btns { gap: 16px; }
.d-voice-btns .d-type-btn { min-height: 36px; padding: 6px 14px; }
@media (max-width: 760px) { .d-voice-btns { gap: 20px; } .d-voice-btns .d-type-btn { min-height: 40px; } }
/* What's new: plain dated lists, no boxes */
.wn-day { margin: 0 0 22px; }
.wn-day h2 { font-size: 1.05rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.wn-day ul { margin: 0; }

/* "Your rounds": compact rows whenever the full table does not fit (a narrowed computer window, tablets, phones) */
.d-table { overflow-x: auto; }
@media (max-width: 1100px) {
  .d-hist, .d-hist tbody, .d-hist tr, .d-hist td { display: block; width: auto; }
  .d-hist tr:first-child { display: none; }
  .d-hist tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; padding: 10px 0; border-bottom: 1px solid #EDEEF3; }
  .d-hist td { border: none; padding: 0; }
  .d-hist .d-h-topic { flex: 1 1 auto; min-width: 0; font-weight: 600; }
  .d-hist .a-when { flex: 0 0 auto; margin: 0 0 4px 12px; color: var(--muted); }
  .d-hist .d-h-n { flex: 0 0 16.66%; font-weight: 700; color: #102187; }
  .d-hist .d-h-n::after { content: " " attr(data-label); font-weight: 400; font-size: .75rem; color: #6A6F88; }
  .d-hist .d-h-act { flex: 1 1 100%; text-align: left; margin-top: 6px; }
}
@media (max-width: 720px) {
  .d-hist .d-h-topic { flex: 1 1 100%; }
  .d-hist .a-when { flex: 1 1 100%; margin-left: 0; }
  .d-hist .d-h-n { flex: 0 0 33.3%; }
}
/* Compact rows: title and date on the first line, the six measures together on the next */
@media (max-width: 1100px) and (min-width: 721px) {
  .d-hist .d-h-topic { flex: 1 1 calc(100% - 120px); }
  .d-hist .a-when { flex: 0 0 120px; margin: 0 0 4px; text-align: right; }
}
/* "Who you talk with": never wider than the box (the longest option is long) */
.d-setup #d-accent { width: 100%; max-width: 420px; min-width: 0; text-overflow: ellipsis; }
.d-setup .d-step { max-width: 100%; }
.d-cont-tag { font-size: .72rem; font-weight: 600; color: var(--navy); background: #E3E7F8; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
/* When and how long */
.d-hist .a-when { white-space: nowrap; }
.d-hist .a-time, .d-hist .a-dur { display: block; }
.d-hist .a-dur { color: var(--muted); font-size: .8rem; }
@media (max-width: 1100px) {
  .d-hist .a-time, .d-hist .a-dur { display: inline; }
  .d-hist .a-dur::before { content: "· "; }
}
@media (max-width: 1100px) and (min-width: 721px) {
  .d-hist .d-h-topic { flex: 1 1 calc(100% - 190px); }
  .d-hist .a-when { flex: 0 0 190px; }
}
.cs-h { font-size: 1rem; margin: 14px 0 4px; }
.pn-bar { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.pn-bar label { flex: 0 1 auto; }
.pn textarea, .pn input[type=text] { width: 100%; box-sizing: border-box; font: inherit; }
.pn textarea { line-height: 1.5; }
.cs-lang { margin: 0 0 8px; text-align: right; font-size: .95rem; }
.mrec-up-how { margin: 4px 0 8px; padding-left: 1.2em; }
.mrec-up-how li { margin: 2px 0; }
.mrec-up-tick { color: #9D001C; margin: 4px 0; }
.mrec-up-dropnote { margin: 6px 0 0; }
@media (hover: none) { .mrec-up-dropnote { display: none; } }
.mrec-upload.is-over { outline: 2px dashed #102087; outline-offset: 6px; border-radius: 6px; }
.d-wait-label { color: var(--navy); font-size: 1.1rem; font-weight: 600; margin: 0 0 10px; }
.d-wait-bar { height: 12px; background: #EDEEF3; border-radius: 6px; overflow: hidden; margin: 0 0 10px; }
.d-wait-bar span { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 6px; transition: width .25s linear; }
@media (prefers-reduced-motion: reduce) { .d-wait-bar span { transition: none; } }
.wn-date { font-weight: 400; color: var(--muted, #6B7080); font-size: .9rem; margin-left: 6px; }
.app-ver { color: inherit; text-decoration: none; }
/* Step 1 without the meeting box: Say and ideas side by side, drills below */
.d-opts { grid-template-areas: "say ideas" "today today"; grid-template-rows: auto auto; }
@media (max-width: 760px) { .d-opts { grid-template-areas: "say" "ideas" "today"; } }
/* Settings › Email addresses */
.em-card p { margin: 6px 0; }
.em-sendto { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.em-remove { margin-top: 12px; }
.acct-email .btn:not(.ghost) { white-space: nowrap; }

/* ── Pressing things (as on the Class Discussion Board and the CEFR Level Checker)
   Every button answers back, so nobody presses twice:
     :active   it moves down 1px while pressed (the same as the Board)
     .is-busy  the form was sent, or the page is working: inert, with a small spinner
   Reduced-motion users get the colour change without the movement. */
.btn:active,
button:active:not(:disabled):not(.is-busy) { transform: translateY(1px); }
.linkish:active, .link-btn:active { transform: translateY(1px); }
.btn:focus-visible,
button:focus-visible,
summary:focus-visible,
a.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn.is-busy, .btn.is-busy:hover, button.is-busy, button.is-busy:hover {
  background: #9aa0b8; border-color: #9aa0b8; color: #fff; pointer-events: none; cursor: default; transform: none;
}
.btn.ghost.is-busy, .btn.ghost.is-busy:hover { background: #f2f2ee; border-color: #d6d4ca; color: var(--muted); }
.is-busy::after {
  content: ""; width: .8em; height: .8em; margin-left: .4em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  display: inline-block; animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn:active, button:active { transform: none; }
  .is-busy::after { animation: none; }
}

/* Practice: why Start or Finish did not go ahead, shown right by the button */
.d-msg { background: #FBEFD9; color: #5C3804; border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.d-end-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.d-end-msg[hidden], .d-msg[hidden] { display: none; }
.d-needs { outline: 2px solid #E0A23B; outline-offset: 4px; border-radius: 10px; }
/* The reason Start or Finish did not go ahead: red, right under the button pressed */
.d-msg { background: #FBE9EC; color: #9D001C; border: 1px solid #E8B4BE; border-left: 4px solid #9D001C; font-weight: 600; }
.d-end-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.d-end-wrap .d-end-msg { margin: 0; max-width: 340px; justify-content: flex-end; text-align: right; }
.d-end-msg .btn { font-weight: 600; }
@media (max-width: 560px) { .d-end-wrap { width: 100%; align-items: stretch; } .d-end-wrap .d-end-msg { max-width: none; text-align: left; justify-content: flex-start; } }
.d-help { align-items: flex-start; }

/* Settings on a phone: nothing sticks out past the card */
.inline { flex-wrap: wrap; }
.acct-row > div { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.acct-row > .btn, .acct-row > a.btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .acct-row { flex-wrap: wrap; align-items: flex-start; }
  .acct-row > .btn, .acct-row > a.btn { margin-left: auto; }
}

/* ── Home: practice first ─────────────────────────────────────────────── */
.hp-now .hp-today { margin: 8px 0 6px; color: #fff; font-weight: 600; }
.hp-bar { height: 8px; background: rgba(255,255,255,.18); border-radius: 4px; overflow: hidden; max-width: 420px; margin-bottom: 16px; }
.hp-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 4px; }
.hp-now .btn.big { font-size: 1.05rem; padding: 12px 22px; }
.hp-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.hp-short { display: inline-block; max-width: 100%; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.hp-short:hover { background: rgba(255,255,255,.12); color: #fff; }
.hp-short:active { transform: translateY(1px); }
.hp-tip { color: var(--navy-tint); font-size: .85rem; margin: 12px 0 0; }

.hp-days { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0 10px; flex-wrap: wrap; }
.hp-days li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 34px; }
.hp-days .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy-tint); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem; font-weight: 700; }
.hp-days li.done .dot { background: var(--green); border-color: var(--green); }
.hp-days li.today .dot { border-color: var(--navy); }
.hp-days li.future .dot { border-style: dashed; opacity: .6; }
.hp-days .dow { font-size: .75rem; color: var(--muted); }
.hp-days li.today .dow { color: var(--navy); font-weight: 700; }
.hp-count { font-weight: 600; margin: 4px 0; }

.hp-moments { border-left: 4px solid var(--green); }
.hp-moments ul { margin: 6px 0 0; padding-left: 20px; }
.hp-moments li { margin: 4px 0; }
.hp-pair { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 8px 0 12px; }
.hp-pair figure { margin: 0; flex: 1 1 260px; }
.hp-pair figcaption { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.hp-pair audio { width: 100%; }
.hp-heard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.feed-title { display: block; font-weight: 600; color: var(--ink); }
.hp-meet .scene-row { margin-bottom: 6px; }
.d-moment { background: var(--green-bg); border: 1px solid var(--green-br); color: var(--green); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.hb-rem select { max-width: 160px; }
.ai-table td:nth-child(2) { font-weight: 600; white-space: nowrap; } .ai-cost h3 { margin: 16px 0 4px; }
