/* FluentPath Academy - soft, light design. */
:root {
  --bg: #f7f4ee; --panel: #fff; --ink: #1d2433; --muted: #6b7280; --line: #e7e3da; --soft: #fbfaf7;
  --brand: #2f5d50; --brand-2: #e8f0ec; --brand-3: #cfe5da; --accent: #9fd3b8;
  --warn: #a15c07; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2; --good: #15803d; --good-bg: #dcfce7; --gold: #c88a12; --gold-bg: #fdf1d6;
  --radius: 14px; --shadow: 0 1px 2px rgba(31, 41, 55, .04), 0 4px 14px rgba(31, 41, 55, .05);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--brand); }
svg.ic { vertical-align: -3px; flex-shrink: 0; }
.ico { display: inline-flex; align-items: center; }

/* ---------- navigation (light) ---------- */
#nav { width: 236px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; z-index: 30; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink); } .brand span { color: var(--brand); } .brand .small { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
#nav nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin: 12px 10px 4px; }
#nav a { color: #374151; text-decoration: none; padding: 7px 10px; border-radius: 9px; display: flex; align-items: center; gap: 9px; font-size: 14px; }
#nav a svg { color: var(--brand); opacity: .85; }
#nav a:hover { background: var(--brand-2); } #nav a.active { background: var(--brand); color: #fff; font-weight: 600; } #nav a.active svg { color: #fff; opacity: 1; }
.badge { background: var(--brand-2); color: var(--brand); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
#nav .small { color: var(--muted); }
#topbar { display: none; }
main { flex: 1; padding: 26px 36px 70px; max-width: 1100px; min-width: 0; }
main:focus { outline: none; }

/* ---------- basics ---------- */
h1 { margin: 0 0 4px; font-size: 27px; letter-spacing: -0.4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } h2 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } h3 { font-size: 15px; margin: 16px 0 6px; } h4 { margin: 14px 0 6px; font-size: 14px; color: var(--brand); }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
button, .btn { font: inherit; border: 1px solid var(--brand); background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; transition: transform .1s, box-shadow .15s, background .15s; }
button:hover:not(:disabled), .btn:hover { box-shadow: 0 2px 8px rgba(47, 93, 80, .25); }
button:active:not(:disabled) { transform: translateY(1px); }
button.ghost, .btn.ghost { background: #fff; color: var(--brand); } button:disabled { opacity: 0.5; cursor: not-allowed; }
button.rec { background: var(--bad); border-color: var(--bad); animation: pulse 1.4s infinite; } button.small, .btn.small { padding: 4px 10px; font-size: 13px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.small { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; background: var(--brand-2); color: var(--brand); font-weight: 600; text-decoration: none; }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.good { background: var(--good-bg); color: var(--good); }
.stat { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 6px; } .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.prompt { font-size: 17px; font-weight: 600; margin: 6px 0 12px; }
.transcript { min-height: 60px; background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }
.transcript .interim { color: var(--muted); }
.timer { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; }
.bar { height: 8px; background: #ece9e1; border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: 99px; transition: width .6s ease; } .bar.big { height: 12px; margin: 8px 0; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; } .msg.them { background: var(--brand-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.coach { align-self: flex-end; max-width: 78%; background: var(--warn-bg); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.fix { border-left: 3px solid var(--warn); padding: 5px 10px; margin: 6px 0; background: #fffbeb; border-radius: 0 8px 8px 0; }
.fix s, s { color: var(--bad); } .fix b { color: var(--good); }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.notice { background: var(--warn-bg); border: 1px solid #fcd34d; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.okbox { background: var(--good-bg); border: 1px solid #86efac; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.word-ok { color: var(--good); font-weight: 600; } .word-bad { color: var(--bad); text-decoration: underline wavy; font-weight: 600; }
select, input[type=text], input[type=password], textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); max-width: 100%; }
textarea { width: 100%; min-height: 200px; line-height: 1.6; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } .tabs button { background: #fff; color: var(--brand); } .tabs button.on { background: var(--brand); color: #fff; }
.step { display: flex; gap: 12px; align-items: flex-start; } .step .n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.step.done .n { background: var(--good); color: #fff; }
.phrase { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.phrase.link { text-decoration: none; color: inherit; border-radius: 8px; padding: 10px 8px; } .phrase.link:hover { background: var(--soft); }
svg.chart text { font-size: 11px; fill: var(--muted); }
.hidden { display: none !important; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.crumbs { margin-bottom: 10px; } .crumbs a { text-decoration: none; }

/* ---------- illustrations ---------- */
figure { margin: 0 0 12px; }
.scene svg, .visual svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.scene figcaption, .visual figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.scene { max-width: 640px; } .grid .scene { max-width: none; }
.vocab-pic { width: 96px; height: 96px; border-radius: 18px; background: linear-gradient(145deg, var(--brand-2), #fff); border: 1px solid var(--brand-3); display: grid; place-items: center; color: var(--brand); margin: 0 auto 8px; }

/* ---------- learning map ---------- */
.month { position: relative; } .month-locked { opacity: .75; background: var(--soft); }
.month-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; }
.month-prog { min-width: 160px; display: flex; align-items: center; gap: 8px; } .month-prog .bar { flex: 1; }
.path { display: flex; align-items: stretch; gap: 0; margin-top: 16px; overflow-x: auto; padding: 4px 2px 8px; }
.node { flex: 1 1 0; min-width: 150px; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; }
.node:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.node-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: var(--brand); }
.node-t b { font-size: 14px; line-height: 1.3; display: block; }
.connector { flex: 0 0 22px; align-self: center; height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.connector.done { background: var(--good); }
.node.st-completed { border-color: #86efac; background: #f6fdf8; } .node.st-completed .node-dot { background: var(--good); color: #fff; }
.node.st-in-progress { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-2); } .node.st-in-progress .node-dot { background: var(--brand); color: #fff; animation: pulse 2s infinite; }
.node.st-unlocked { border-color: var(--accent); }
.node.st-locked { background: #f4f3ef; color: #9ca3af; border-style: dashed; } .node.st-locked .node-dot { background: #e5e7eb; color: #9ca3af; }
.node.final { border-width: 2px; } .node.final.st-unlocked, .node.final.st-in-progress { border-color: var(--gold); } .node.final .node-dot { background: var(--gold-bg); color: var(--gold); } .node.final.st-completed .node-dot { background: var(--gold); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.st-completed .status, .status.st-completed { background: var(--good-bg); color: var(--good); }
.status.st-in-progress { background: var(--brand-2); color: var(--brand); } .status.st-unlocked { background: #eef6ff; color: #1d4ed8; } .status.st-locked { background: #f1f1ef; color: #6b7280; }
.continue { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 4px solid var(--brand); flex-wrap: wrap; }

/* ---------- lessons ---------- */
.lesson-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.lesson-ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; } .lesson-ic.big { width: 60px; height: 60px; }
.lesson-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .lesson-card.st-locked { opacity: .7; } .lesson-card.st-completed .lesson-ic { background: var(--good-bg); color: var(--good); }
.rules { padding-left: 20px; } .rules li { margin: 6px 0; }
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.word-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--soft); }
.ex-sent { font-size: 13px; margin: 6px 0; }
.ex-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.ex-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; transition: border-color .2s, background .2s; }
.ex-card.ok { border-color: #86efac; background: #f7fdf9; } .ex-card.bad { border-color: #fca5a5; background: #fffafa; }
.ex-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .ex-num { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-2); color: var(--brand); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.ex-q { font-weight: 600; margin-bottom: 8px; } .blank { color: var(--brand); letter-spacing: 1px; } .wrong-sent { color: var(--bad); font-style: italic; }
.ex-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { background: #fff; color: var(--ink); border: 1.5px solid var(--line); } .opt:hover { border-color: var(--brand); } .opt.sel { border-color: var(--brand); background: var(--brand-2); color: var(--brand); font-weight: 600; }
.opt.right { border-color: var(--good); background: var(--good-bg); color: var(--good); } .opt.wrongpick { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.ex-input { width: 100%; }
.chip { background: #fff; color: var(--ink); border: 1.5px solid var(--brand-3); border-radius: 99px; padding: 4px 12px; } .chip:disabled { opacity: .35; }
.order-out { min-height: 38px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.ex-feedback:empty { display: none; } .ex-feedback { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.verdict { font-weight: 700; display: flex; align-items: center; gap: 6px; } .ok .verdict { color: var(--good); } .bad .verdict { color: var(--bad); }
.why { display: flex; gap: 6px; } .evidence { background: #f0f7f4; border-radius: 8px; padding: 6px 8px; display: flex; gap: 6px; cursor: pointer; } .trap { color: var(--warn); display: flex; gap: 6px; }

/* reading */
.reading-wrap { position: relative; }
.reading-text { font-size: 16px; line-height: 1.8; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.reading-text .w { cursor: pointer; border-radius: 3px; } .reading-text .w:hover { background: var(--brand-2); }
.reading-text .gl { cursor: pointer; border-bottom: 2px dotted var(--brand); } .reading-text .evid { background: #fdf1b8; }
.word-pop { position: absolute; z-index: 20; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); font-size: 14px; }

/* listening player */
.player { border: 1px solid var(--brand-3); background: #f6fbf8; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.transcript-box { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; } .line { padding: 3px 6px; border-radius: 6px; } .line.now { background: var(--brand-2); }

/* writing & feedback */
.writing-box textarea { min-height: 240px; background: #fffdf8; }
.teacher { margin-top: 14px; } .teacher mark.err { background: #fde2e2; border-bottom: 2px solid var(--bad); padding: 0 2px; } .teacher mark sup { color: var(--bad); font-weight: 700; }
.crit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0; }

/* homework */
.hw-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; } .hw-card:hover { border-color: var(--brand); }

/* academies */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: left; align-items: stretch; box-shadow: var(--shadow); }
.tile:hover { transform: translateY(-2px); } .tile-art { max-height: 150px; overflow: hidden; } .tile-art figure { margin: 0; } .tile-art svg { border: 0; border-radius: 0; } .tile-art figcaption { display: none; }
.tile-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; } .tile.st-locked { opacity: .6; filter: grayscale(.6); }
.activity { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; } .activity:hover { border-color: var(--brand); }
.hero { border-left: 4px solid var(--brand); }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rung { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 13px; }
.rung.st-completed { background: var(--good-bg); border-color: #86efac; } .rung.st-in-progress { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-2); } .rung.st-locked { color: #9ca3af; background: #f6f5f1; }
.steps-list li { margin: 4px 0; }

/* goals & badges */
.goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.goal { display: flex; gap: 10px; align-items: center; }
.ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: var(--brand); background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), #ece9e1 0); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ach { border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; background: var(--soft); }
.badge-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #ececea; color: #9ca3af; }
.ach.got { background: #fffdf5; border-color: #f3d98a; } .ach.got .badge-ic { background: linear-gradient(145deg, #f8d77a, var(--gold)); color: #fff; box-shadow: 0 4px 14px rgba(200, 138, 18, .35); }
.ach .bar { width: 100%; }
.daily { background: linear-gradient(120deg, #fff, var(--brand-2)); }

/* celebrations & dialogs */
.overlay { position: fixed; inset: 0; background: rgba(29, 36, 51, .35); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .2s; }
.celebrate { position: relative; background: #fff; border-radius: 20px; padding: 26px 28px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.badge-big { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--accent), var(--brand)); box-shadow: 0 8px 24px rgba(47, 93, 80, .35); }
.badge-big.small-badge { width: 46px; height: 46px; margin: 0; }
.xp-pop { display: inline-flex; align-items: center; gap: 4px; background: var(--gold-bg); color: var(--gold); font-weight: 700; padding: 4px 12px; border-radius: 99px; animation: pop .5s .2s both; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.4s ease-in forwards; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 110; display: flex; gap: 6px; align-items: center; transition: all .3s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 93, 80, .35); } 50% { box-shadow: 0 0 0 8px rgba(47, 93, 80, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* notifications */
.notif-wrap { position: relative; } .bell-count { position: absolute; top: -4px; right: -4px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 6px; }
.notif-panel { position: absolute; right: 0; top: 44px; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 60; overflow: hidden; }
.notif { display: flex; gap: 8px; padding: 10px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; } .notif:hover { background: var(--soft); } .notif.warn svg { color: var(--bad); }

/* ---------- desktop top bar (stats + bell) ---------- */
@media (min-width: 901px) {
  #topbar { display: flex; position: fixed; top: 12px; right: 18px; gap: 10px; align-items: center; z-index: 40; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 10px; box-shadow: var(--shadow); }
  #topbar .brand, #menuBtn { display: none; }
  main { padding-top: 64px; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  body { display: block; }
  #topbar { display: flex; position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding: 8px 12px; align-items: center; gap: 10px; }
  #topbar .brand { flex: 1; font-size: 19px; } #topStats .pill { font-size: 11px; }
  #nav { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.nav-open #nav { transform: none; }
  #scrim { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 25; }
  main { padding: 16px 14px 60px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { flex-direction: column; overflow: visible; } .node { min-width: 0; flex-direction: row; align-items: center; flex-wrap: wrap; } .node-meta { margin-left: auto; }
  .connector { flex: 0 0 14px; width: 4px; height: 14px; margin-left: 30px; align-self: flex-start; background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 8px); }
  .connector.done { background: var(--good); }
  h1 { font-size: 22px; } .notif-panel { position: fixed; left: 10px; right: 10px; width: auto; top: 56px; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .goals { grid-template-columns: 1fr; }
  .card { padding: 14px; } .msg, .coach { max-width: 92%; } .month-prog { min-width: 0; width: 100%; }
  .word-grid, .tile-grid, .badge-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- authentication ---------- */
body.auth-mode #nav, body.auth-mode #topbar, body.auth-mode #scrim { display: none !important; }
body.auth-mode main { max-width: none; padding: 0; }
.boot { padding: 60px; text-align: center; color: var(--muted); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: linear-gradient(160deg, var(--brand-2), #fff 70%); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.auth-art .scene { max-width: 520px; } .auth-art figcaption { display: none; }
.auth-quote { font-size: 20px; line-height: 1.5; color: var(--brand); max-width: 460px; font-weight: 600; }
.auth-card { align-self: center; justify-self: center; width: min(420px, 92vw); margin: 40px 20px; padding: 30px 30px 24px; }
.auth-card .brand { font-size: 24px; margin-bottom: 18px; } .auth-card h1 { font-size: 24px; }
.auth-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.auth-field input, .auth-field select, .auth-input { width: 100%; padding: 10px 12px; font-size: 15px; }
button.wide { width: 100%; justify-content: center; padding: 11px; font-size: 15px; margin-top: 4px; }
.auth-msg:empty { display: none; } .auth-msg { border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 6px 0 10px; }
.auth-msg.bad { background: var(--bad-bg); color: var(--bad); } .auth-msg.warn { background: var(--warn-bg); color: var(--warn); } .auth-msg.ok { background: var(--good-bg); color: var(--good); }
.auth-done { text-align: center; } .auth-done .badge-big { margin: 10px auto; }
.auth-foot { margin-top: 14px; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--brand-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* Phase 7: drag-and-drop exercises */
.dnd-bank { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 8px; margin: 10px 0; border: 1px dashed var(--line); border-radius: 10px; background: #fcfcfb; }
.dnd-slot { display: inline-flex; align-items: center; min-width: 96px; min-height: 34px; margin: 2px 4px; padding: 2px 6px; border-bottom: 2px dashed var(--brand-3); border-radius: 6px; vertical-align: middle; cursor: pointer; }
.dnd-zone { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 80px; padding: 8px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; }
.dnd-slot.over, .dnd-zone.over, .dnd-bank.over { background: var(--brand-2); border-color: var(--brand); }
.chip.picked { background: var(--brand-2); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chip.right, .dnd-slot.right { border-color: var(--good); background: var(--good-bg); }
.chip.wrongpick, .dnd-slot.wrongpick { border-color: var(--bad); background: var(--bad-bg); }
.match-list { display: grid; gap: 6px; margin: 8px 0; }
.match-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sort-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.gaps-text { line-height: 2.4; }
.chip { cursor: grab; }
