/* Pearson ATC app shell: menus, Training Centre, settings and dialogs (everything outside the simulation). */

:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, sans-serif;
  --bg: #0a0e0d;
  --surface-0: #0d1211;
  --surface-1: #121917;
  --surface-2: #17201d;
  --surface-3: #1e2a26;
  --border: #22302b;
  --border-strong: #31433c;
  --text: #e4ece7;
  --text-2: #a9b8b0;
  --text-3: #74857d;
  --accent: #5fe08a;
  --accent-strong: #7cf0a0;
  --accent-ink: #052012;
  --accent-soft: rgba(95, 224, 138, 0.12);
  --info: #72b6ff;
  --info-soft: rgba(114, 182, 255, 0.12);
  --amber: #f3b54a;
  --amber-soft: rgba(243, 181, 74, 0.13);
  --red: #ff6f62;
  --red-soft: rgba(255, 111, 98, 0.12);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --ring: 0 0 0 3px rgba(95, 224, 138, 0.28);
}

/* ---------------- frame ---------------- */
.app {
  position: fixed; inset: 0; z-index: 40;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-areas: "side main";
  background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.app *, .app *::before, .app *::after { box-sizing: border-box; }
.app-main { grid-area: main; overflow-y: auto; overscroll-behavior: contain; }
.view { max-width: 1060px; margin: 0 auto; padding: 36px 44px 120px; }
.view[hidden] { display: none; }
.app a:not([class]) { color: var(--info); }

/* side navigation (desktop) */
.side { grid-area: side; display: flex; flex-direction: column; gap: 2px; padding: 22px 14px 18px; background: var(--surface-0); border-right: 1px solid var(--border); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font: 650 15.5px/1.1 var(--font-display); letter-spacing: -0.01em; display: block; }
.brand span { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.04em; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 14px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--surface-3); color: var(--text); }
.nav-item[aria-current="page"] svg { color: var(--accent); }
.side .spacer { flex: 1; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); font-weight: 700; font-size: 13px; flex: none; text-transform: uppercase; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 11.5px; color: var(--text-3); }

/* phone: top bar + bottom tabs */
.mtop, .mtabs { display: none; }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "main" "tabs"; }
  .side { display: none; }
  .mtop { grid-area: top; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--surface-0); border-bottom: 1px solid var(--border); }
  .mtop .brand { padding: 0; flex: 1; }
  .mtop .icon-btn { margin-right: -6px; }
  .mtabs { grid-area: tabs; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-0); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mtabs .nav-item { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; font-weight: 600; text-align: center; justify-content: center; align-items: center; }
  .mtabs .nav-item svg { width: 22px; height: 22px; }
  .mtabs .nav-item[aria-current="page"] { background: none; color: var(--accent); }
  .view { padding: 20px 16px 40px; }
}

/* ---------------- type ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font: 680 28px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0; color: var(--text); }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.section-label { font-size: 11.5px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); margin: 34px 0 12px; }
.section-label:first-child { margin-top: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
@media (max-width: 760px) { .page-head h1 { font-size: 23px; } .page-head { margin-bottom: 18px; } }

/* ---------------- surfaces ---------------- */
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.card h3 { margin: 0; font: 640 16px/1.3 var(--font-display); }
.card p { margin: 6px 0 0; color: var(--text-2); }
.card.hero { position: relative; overflow: hidden; background: linear-gradient(140deg, #13261c 0%, var(--surface-1) 62%); border-color: #2a4535; }
.card.hero.info { background: linear-gradient(140deg, #122336 0%, var(--surface-1) 62%); border-color: #284562; }
.card .eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.card.info .eyebrow { color: var(--info); }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: 600 13.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s; }
.btn:hover { background: var(--surface-3); border-color: #3e554c; }
.btn:focus-visible, .seg button:focus-visible, .tile:focus-visible, .nav-item:focus-visible, .switch:focus-visible, .pos:focus-within { outline: none; box-shadow: var(--ring); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.info { background: var(--info); border-color: var(--info); color: #04162a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: transparent; border-color: #5a2a26; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); border: 0; background: none; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 21px; height: 21px; }

/* ---------------- pills, chips ---------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 15px; height: 15px; }
.pill.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill.amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.pill.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.pill.red { background: var(--red-soft); border-color: transparent; color: var(--red); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- segmented control ---------------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--r-md); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.35); }

/* option tiles (weather, time) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-0); color: var(--text-2); font: 600 13px/1.2 var(--font); text-align: left; cursor: pointer; }
.tile svg { width: 22px; height: 22px; color: var(--text-3); }
.tile small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.tile:hover { border-color: var(--border-strong); color: var(--text); }
.tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.tile[aria-pressed="true"] svg { color: var(--accent); }

/* ---------------- switch ---------------- */
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c9d5cf; transition: transform 0.15s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: #fff; }

/* ---------------- settings list ---------------- */
.list { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); }
.row { display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row .label { flex: 1; min-width: 0; }
.row .label b { display: block; font-weight: 600; font-size: 14px; }
.row .label span { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.row.stack { flex-direction: column; align-items: stretch; gap: 12px; }
.row[hidden] { display: none; }
label.row { cursor: pointer; }
@media (max-width: 640px) {
  .row { padding: 14px 16px; gap: 14px; }
  .row.wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .row.wrap .seg { width: 100%; }
}

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { width: 34px; height: 32px; border: 0; background: var(--surface-2); color: var(--text); font-size: 17px; cursor: pointer; }
.stepper button:hover { background: var(--surface-3); }
.stepper output { min-width: 42px; text-align: center; font-weight: 650; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.input { height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-0); color: var(--text); font: 15px var(--font); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 180px; }
.note { font-size: 13px; color: var(--text-2); min-height: 0; }
.note.ok { color: var(--accent); } .note.bad { color: var(--red); }

/* ---------------- stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; }
.stat b { display: block; font: 680 26px/1.1 var(--font-display); letter-spacing: -0.02em; }
.stat span { color: var(--text-3); font-size: 12.5px; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* ---------------- home ---------------- */
.home-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.big-number { font: 700 44px/1 var(--font-display); letter-spacing: -0.03em; margin: 4px 0 2px; }
.big-number small { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.next-step { display: flex; gap: 14px; align-items: center; }
.next-step .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.next-step .ico svg { width: 24px; height: 24px; }

.activity { display: flex; flex-direction: column; }
.act { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.act:first-child { border-top: 0; padding-top: 2px; }
.act .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.act .ico svg { width: 19px; height: 19px; }
.act .what { flex: 1; min-width: 0; }
.act .what b { display: block; font-size: 14px; font-weight: 600; }
.act .what span { font-size: 12.5px; color: var(--text-3); }
.act .score { font-weight: 700; font-size: 15px; }
.score.down { color: var(--red); } .score.up { color: var(--accent); }

/* ---------------- learn path ---------------- */
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--border); }
.step { position: relative; display: flex; gap: 16px; align-items: center; padding: 10px 0; }
.step .node { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-1); border: 2px solid var(--border-strong); color: var(--text-3); flex: none; }
.step .node svg { width: 20px; height: 20px; }
.step.done .node { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.current .node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.step .body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.step.current .body { border-color: #2f5a3f; background: linear-gradient(140deg, #13261c, var(--surface-1) 70%); }
.step .body .txt { flex: 1; min-width: 0; }
.step .body .txt b { display: block; font-weight: 640; }
.step .body .txt span { font-size: 12.5px; color: var(--text-3); }
.step .kind { font-size: 11px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 640px) {
  .path::before { left: 17px; }
  .step { gap: 12px; }
  .step .node { width: 36px; height: 36px; }
  .step .body { flex-direction: column; align-items: stretch; gap: 10px; }
}

.scn { display: flex; flex-direction: column; gap: 10px; }
.scn .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scn .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); }
.scn .ico svg { width: 19px; height: 19px; }
.scn h3 { font-size: 15px; }
.scn .actions { margin-top: auto; padding-top: 6px; }

/* ---------------- play ---------------- */
.positions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .positions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .positions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pos { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-1); cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.pos input { position: absolute; opacity: 0; pointer-events: none; }
.pos .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.pos .ico svg { width: 22px; height: 22px; }
.pos b { display: block; font-weight: 650; font-size: 14.5px; }
.pos .freq { font: 600 12px var(--font); color: var(--text-3); }
.pos p { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.pos:hover { border-color: var(--border-strong); }
.pos:has(input:checked) { border-color: var(--accent); background: linear-gradient(160deg, #142a1e, var(--surface-1) 75%); }
.pos:has(input:checked) .ico { background: var(--accent); color: var(--accent-ink); }
.play-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 16px; margin: 28px -44px -120px; padding: 16px 44px calc(16px + env(safe-area-inset-bottom)); background: rgba(10, 14, 13, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
.play-bar .sum { flex: 1; min-width: 0; color: var(--text-2); font-size: 13px; }
.play-bar .sum b { display: block; color: var(--text); font-size: 15px; }
@media (max-width: 760px) { .play-bar { margin: 24px -16px -40px; padding: 12px 16px; } .play-bar .sum { font-size: 12px; } }

/* ---------------- progress ---------------- */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.chart-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px 10px; }
.chart-card .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.chart-card .head b { font-weight: 640; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .lb-ax { fill: var(--text-3); font: 10px var(--font); }
.chart-card .lb-line { fill: none; stroke: #3fae58; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-card .lb-zero { stroke: var(--border-strong); stroke-width: 1; }
.chart-card .lb-dot { fill: #3fae58; stroke: var(--surface-1); stroke-width: 2; }
.chart-card .lb-dot.cr-ok { fill: var(--accent); } .chart-card .lb-dot.cr-bad { fill: var(--red); }
.chart-card .lb-hit { fill: transparent; }
.chart-card .lb-pt:hover .lb-dot { r: 6; }
.skills { display: flex; flex-direction: column; gap: 14px; }
.skill { display: grid; grid-template-columns: minmax(0, 1fr) 160px 44px; gap: 14px; align-items: center; }
.skill b { display: block; font-weight: 600; font-size: 13.5px; }
.skill span { display: block; font-size: 12px; color: var(--text-3); }
.skill .pct { text-align: right; font-weight: 650; }
@media (max-width: 640px) { .skill { grid-template-columns: minmax(0, 1fr) 90px 40px; } }
.table-wrap { overflow-x: auto; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 11px 16px; border-top: 1px solid var(--border); white-space: nowrap; }
table.data tr:first-child td { border-top: 0; }
table.data td.wrap { white-space: normal; min-width: 180px; color: var(--text-2); }
.empty { padding: 34px 20px; text-align: center; color: var(--text-3); }
.empty svg { width: 30px; height: 30px; display: block; margin: 0 auto 10px; }

/* ---------------- dialogs (sign-in, briefings, debrief, coach, reference) ---------------- */
.overlay { background: rgba(5, 8, 7, 0.82) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font); }
.menu-card { background: var(--surface-1) !important; border: 1px solid var(--border-strong) !important; border-radius: 18px !important; padding: 28px 30px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); font-size: 14px; }
.menu-card h1 { font: 680 24px/1.2 var(--font-display) !important; letter-spacing: -0.02em; color: var(--text) !important; }
.menu-card h2 { font: 650 18px/1.3 var(--font-display) !important; color: var(--text) !important; }
.menu-card h3 { font-size: 11.5px !important; font-weight: 650 !important; letter-spacing: 0.08em !important; color: var(--text-3) !important; }
.menu-card .sub { color: var(--text-2) !important; margin-top: 6px !important; }
.menu-card .menu-actions button, .menu-card .menu-actions .btn { height: 40px; padding: 0 18px; border-radius: var(--r-sm); font: 600 14px var(--font); }
.menu-card .menu-actions button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.menu-card table { font-size: 13px !important; }
.menu-card td, .menu-card th { padding: 8px 10px !important; border-color: var(--border) !important; }
.coach-tag { color: var(--amber) !important; }
#auth { display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 50% -10%, #12261b, var(--bg) 60%) !important; }
.auth-card { width: min(400px, 100%) !important; gap: 14px !important; padding: 34px 32px !important; }
.auth-card .auth-logo { width: 52px; height: 52px; border-radius: 14px; }
.auth-card label { font-weight: 600; font-size: 12.5px !important; color: var(--text-2) !important; }
.auth-card input { height: 44px; border-radius: var(--r-sm) !important; background: var(--surface-0) !important; border-color: var(--border-strong) !important; }
.auth-card input:focus { border-color: var(--accent) !important; box-shadow: var(--ring); }
.auth-card .menu-actions { flex-direction: column; }
.auth-card .menu-actions button { width: 100%; height: 44px; }
.offline-note { border-radius: var(--r-md) !important; }

/* ---------------- Training Centre inside the frame ---------------- */
body.training .app #tr-main { max-width: none; margin: 0; padding: 0; }
.drill { display: flex; flex-direction: column; gap: 10px; }
.drill .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); }
.drill .ico svg { width: 21px; height: 21px; }
.drill .actions { margin-top: auto; padding-top: 4px; }
.deck .meter { margin: 12px 0 8px; }
.deck .meter > i.lrn { background: var(--info); }
.deck .meter { display: flex; }
.deck .nums { font-size: 12.5px; color: var(--text-3); }
.deck .nums b { color: var(--text); }
.deck .actions { margin-top: 14px; }
@media (max-width: 640px) {
  .next-step.quick { flex-wrap: wrap; }
  .next-step.quick .actions { width: 100%; }
  .next-step.quick .actions .btn { flex: 1; }
}

/* Training Centre session screens in the app style */
body.training .tr-session { max-width: 760px; }
body.training .tr-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 26px; }
body.training .tr-shead { gap: 14px; margin-bottom: 16px; }
body.training .tr-shead .bar { height: 6px; border-radius: 99px; background: var(--surface-3); }
body.training .tr-shead .bar span { border-radius: 99px; background: var(--accent); }
body.training .tr-grade button, body.training .tr-shead button, body.training .tr-session > .tr-card > button { height: 40px; padding: 0 18px; border-radius: var(--r-sm); font: 600 13.5px var(--font); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
body.training .tr-grade button.primary, body.training .tr-card button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.training .tr-choices button { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-0); font: 500 14px/1.4 var(--font); color: var(--text); }
body.training .tr-choices button:hover { border-color: var(--border-strong); background: var(--surface-2); }
body.training .tr-input { background: var(--surface-0); border-color: var(--border-strong); border-radius: var(--r-md); }
body.training .tr-input:focus { border-color: var(--accent); box-shadow: var(--ring); }
body.training .chips button { border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border-strong); }
@media (max-width: 640px) { body.training .tr-card { padding: 18px 16px; } }
@media (max-width: 640px) { .row.wrap > .btn { width: 100%; } }
