/* Hana Korean — "Seoul Night". Phone first; logical properties so Arabic (rtl) mirrors without overrides. */
@font-face { font-family: "HanaSans"; src: url("../fonts/HanaSans.woff2") format("woff2"); font-weight: 45 920; font-display: swap; }

:root {
  --bg: #070918; --ink: #eef0ff; --muted: #a9aed8; --line: rgba(255, 255, 255, .1); --panel: rgba(255, 255, 255, .05);
  --pink: #ff5fa2; --orange: #ff8a5c; --violet: #7b6cff; --violet-d: #5b4ce6; --mint: #5ef2c2; --red: #ff7088;
  --paper: #f7f6ff; --paper-ink: #12143a; --paper-muted: #5d6090;
  --hot: linear-gradient(135deg, var(--pink), var(--orange));
  --tabbar: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 "HanaSans", system-ui, "Segoe UI", "Noto Sans Arabic", sans-serif; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.75; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
svg { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.ko { font-family: "HanaSans", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; line-height: 1.35; }

/* ---- Layout ---- */
.shell { min-height: 100vh; min-height: 100dvh; background: radial-gradient(900px 500px at 70% -10%, #1c1f55 0%, transparent 60%), linear-gradient(#0b0e26, var(--bg)); }
.side { display: none; }
.main { padding: 16px 16px calc(var(--tabbar) + 28px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.study .main { padding-bottom: 150px; }
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; display: flex; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(11, 14, 38, .94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.tabbar .nav { flex: 1; flex-direction: column; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--muted); border-radius: 0; padding: 0; position: relative; }
.tabbar .nav i { background: none; width: auto; height: auto; font-size: 20px; }
.tabbar .nav.on { color: #fff; background: none; box-shadow: none; }
.tabbar .nav.on i { color: var(--pink); }
.tabbar .pill { position: absolute; top: 6px; inset-inline-start: calc(50% + 8px); margin: 0; }
.study .tabbar { display: none; }

.logo { display: flex; gap: 10px; align-items: center; }
.logo b { display: block; font-size: 16px; line-height: 1.2; }
.logo small { font-size: 12px; opacity: .65; }
.mark { width: 38px; height: 38px; display: grid; place-items: center; font-weight: 800; font-size: 19px; border-radius: 12px; background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; box-shadow: 0 0 22px rgba(255, 95, 162, .45); }
.nav { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; color: #c4c8ef; }
.nav i { font-style: normal; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; flex: none; background: rgba(255, 255, 255, .06); color: #fff; }
.nav em { margin-inline-start: auto; color: var(--mint); display: grid; }
.pill { margin-inline-start: auto; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 20px; background: var(--pink); color: #fff; }
.cap { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 20px 10px 6px; color: var(--muted); font-weight: 700; }
html[lang="ar"] .cap, html[lang="ar"] .eyebrow, html[lang="ar"] .kicker, html[lang="ar"] .sec span, html[lang="ar"] .lbody small, html[lang="ar"] .line small { letter-spacing: 0; }
.cap.dark { margin-inline: 2px; }
.bar { height: 6px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .1); flex: 1; }
.bar span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--pink), var(--violet)); transition: width .3s; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.seg button { min-width: 40px; height: 34px; padding: 0 8px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--paper-ink); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-align: center; transition: transform .1s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--hot); color: #fff; box-shadow: 0 10px 28px rgba(255, 95, 162, .35); }
.btn.primary:disabled { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4); box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.btn.ghost.toggle[aria-pressed="true"] { background: rgba(123, 108, 255, .35); border-color: var(--violet); }
.btn.soft { background: #ece9ff; color: var(--violet-d); min-height: 46px; padding: 10px 16px; }
.btn.soft.strong { background: var(--violet-d); color: #fff; }
.btn.danger { color: var(--red); }
.btn.wide { width: 100%; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); flex: none; font-size: 18px; }
.play { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #ece9ff; color: var(--violet-d); font-size: 15px; }
.playing { animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 7px rgba(123, 108, 255, .28); } }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.fine.dark { color: var(--paper-muted); }
.fine.foot { text-align: center; margin-top: 32px; }
.toast { position: fixed; inset-inline: 16px; bottom: 90px; z-index: 50; padding: 12px 16px; border-radius: 12px; background: #2a2d5e; color: #fff; font-size: 14px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 20px 20px 0; border-radius: 26px; background: linear-gradient(160deg, #1a1d55 0%, #12143a 55%, #0a0b22 100%); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 85% 10%, rgba(255, 95, 162, .28), transparent 70%), radial-gradient(400px 200px at 10% 0%, rgba(94, 242, 194, .14), transparent 70%); }
.sky { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 130px; opacity: .9; }
.hero-in { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; color: #ff8cc0; }
.hero h1 { font-weight: 400; }
.hero .big { display: inline-flex; align-items: center; gap: 12px; font-size: 50px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; text-shadow: 0 0 40px rgba(123, 108, 255, .5); }
.hear { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 16px; color: #fff; text-shadow: none; }
.hero .sub { display: block; margin-top: 12px; font-size: 16px; color: #c9cdf3; max-width: 30em; }
.cont { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); }
.cont > div { flex: 1; min-width: 0; }
.cont small { display: block; font-size: 12px; color: #c9cdf3; }
.cont b { display: block; font-size: 18px; line-height: 1.3; }
.cont .ko { font-size: 13px; opacity: .7; }
.cont .btn { width: 100%; }
.glyph { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 25px; font-weight: 700; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; }
.stats { position: relative; z-index: 1; display: flex; gap: 10px; margin: 22px -20px 0; padding: 14px 20px 20px; background: linear-gradient(transparent, rgba(7, 9, 24, .85) 40%); }
.stats > * { flex: 1; min-width: 0; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.stats b { display: block; font-size: 23px; font-weight: 800; line-height: 1.15; }
.stats i { font-style: normal; font-size: 14px; opacity: .6; }
.stats small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.stats.flat { margin: 22px 0 0; padding: 0; background: none; }

.welcome { min-height: 100dvh; display: grid; padding: 16px; background: linear-gradient(#0b0e26, var(--bg)); }
.hero.tall { display: grid; align-content: center; padding: 28px 22px 150px; max-width: 520px; width: 100%; margin: auto; }
.hero.tall .logo { margin-bottom: 36px; }
.pick { margin-top: 30px; font-size: 13px; color: var(--muted); }
.langs { display: grid; gap: 10px; margin-top: 10px; }
.langs .btn { font-size: 17px; }

/* ---- Home lists ---- */
.sec { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sec span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #ff8cc0; }
.sec.small { font-size: 16px; margin: 26px 0 10px; }
.grid { display: grid; gap: 10px; }
.card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-height: 76px; }
.card > span:nth-child(2) { flex: 1; min-width: 0; }
.card b { display: block; font-size: 15.5px; }
.card small { display: block; font-size: 13px; color: var(--muted); }
.card em { color: var(--mint); display: grid; font-size: 18px; }
.card .glyph { background: rgba(123, 108, 255, .18); color: #d5d0ff; }
.card.done .glyph { background: rgba(94, 242, 194, .14); color: var(--mint); }
.card.next, .lcard.next { border-color: rgba(255, 95, 162, .6); box-shadow: 0 0 0 1px rgba(255, 95, 162, .3), 0 0 30px rgba(255, 95, 162, .18); }
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lcard { display: block; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.lart { position: relative; height: 92px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2b2470, #12143a); }
.lart em { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: #06281f; font-size: 13px; }
.emo { font-size: 36px; position: relative; z-index: 1; }
.wm { position: absolute; inset-inline-end: 6px; bottom: -34px; font-size: 110px; line-height: 1; font-weight: 800; color: #fff; opacity: .12; }
.l1 .lart, .lart.l1 { background: linear-gradient(135deg, #ff5fa2, #7b3cff); } .l2 .lart, .lart.l2 { background: linear-gradient(135deg, #3c6cff, #1a1d55); }
.l3 .lart, .lart.l3 { background: linear-gradient(135deg, #12b39a, #12305a); } .l4 .lart, .lart.l4 { background: linear-gradient(135deg, #ffb347, #b3305a); }
.l5 .lart, .lart.l5 { background: linear-gradient(135deg, #8a5a3c, #2a1a3a); } .l6 .lart, .lart.l6 { background: linear-gradient(135deg, #ff6a3d, #7a1a3a); }
.l7 .lart, .lart.l7 { background: linear-gradient(135deg, #2ec4ff, #2b2470); } .l8 .lart, .lart.l8 { background: linear-gradient(135deg, #ffd23f, #3a2a6a); }
.l9 .lart, .lart.l9 { background: linear-gradient(135deg, #c86bff, #3a1a5a); } .l10 .lart, .lart.l10 { background: linear-gradient(135deg, #ff3d6e, #12143a); }
.lbody { display: block; padding: 12px 14px 14px; }
.lbody small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #ff8cc0; }
.lbody b { display: block; font-size: 15px; margin: 2px 0; line-height: 1.3; }
.lbody .ko { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.lbody .bar { height: 4px; }

/* ---- Study screens ---- */
.studybar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; margin: -16px -16px 14px; padding: 8px 12px; background: rgba(11, 14, 38, .92); backdrop-filter: blur(12px); }
.studybar .bar { height: 10px; }
.studybar small { font-size: 12.5px; color: var(--muted); min-width: 44px; text-align: end; }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 24px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.kicker { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-d); margin-bottom: 6px; }
.intro h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px; }
.body { font-size: 16px; }
.body .ko { font-weight: 700; color: var(--violet-d); font-size: 1.08em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { min-width: 50px; height: 50px; padding: 0 10px; border-radius: 14px; background: #ece9ff; color: var(--violet-d); font-size: 23px; font-weight: 700; }
.chips.big .chip { min-width: 60px; height: 60px; font-size: 28px; }
.lab .chip, .done .chip { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid var(--line); }
.chip.on { background: var(--hot); color: #fff; border-color: transparent; }
.letter { text-align: center; }
.glyph-xl { position: relative; display: grid; place-items: center; width: 100%; min-height: 230px; font-size: 150px; font-weight: 700; color: var(--paper-ink); border-radius: 20px; background: radial-gradient(closest-side, #e6e2ff, transparent); }
.glyph-xl .hear { position: absolute; bottom: 10px; inset-inline-end: 10px; background: var(--violet-d); width: 48px; height: 48px; font-size: 19px; }
.rom { display: block; font-size: 14px; color: var(--paper-muted); font-style: italic; }
.ex { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e3e0f7; text-align: start; }
.ans { display: flex; align-items: center; gap: 12px; }
.ans .k { display: block; font-size: 22px; font-weight: 700; }
.ans .tr { display: block; font-size: 14.5px; opacity: .75; }
.list .ans + .ans { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3e0f7; }
.paper.list { margin-top: 14px; }

/* lesson */
.lhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lhead > div { flex: 1; min-width: 0; }
.lhead .lart { width: 56px; height: 56px; border-radius: 18px; flex: none; }
.lhead .emo { font-size: 28px; }
.lhead h1 { font-size: 22px; overflow-wrap: anywhere; letter-spacing: -.02em; line-height: 1.25; }
.lhead h1 .ko { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }
.lhead .eyebrow { margin-bottom: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; margin-bottom: 16px; background: rgba(255, 255, 255, .06); }
.tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 42px; padding: 6px 2px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #c4c8ef; text-align: center; }
.tabs a.on { background: #fff; color: var(--paper-ink); }
.tabs svg { color: #1faf88; width: 1em; height: 1em; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.line { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; gap: 4px 8px; }
.line small { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.line.me { justify-content: end; }
.line.me small { text-align: end; color: #e2407f; }
.line.me .bubble { order: 2; }
.bubble { padding: 11px 16px; border-radius: 20px; max-width: 262px; background: #fff; box-shadow: 0 2px 10px rgba(18, 20, 58, .08); border-end-start-radius: 6px; }
.me .bubble { background: linear-gradient(135deg, var(--violet), var(--violet-d)); color: #fff; border-end-start-radius: 20px; border-end-end-radius: 6px; }
.bubble .k { display: block; font-size: 18.5px; font-weight: 600; }
.bubble .tr { display: block; font-size: 13.5px; opacity: .72; }
.line.now .bubble { outline: 3px solid var(--pink); outline-offset: 2px; }
.speak { text-align: center; }
.phrase { font-size: 30px; font-weight: 800; line-height: 1.3; margin: 6px 0; }
.speak .tr { font-size: 16px; color: var(--paper-muted); }
.row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.mic { width: 84px; height: 84px; margin: 22px auto 0; display: grid; place-items: center; border-radius: 50%; background: var(--hot); color: #fff; font-size: 30px; box-shadow: 0 12px 30px rgba(255, 95, 162, .4); }
.mic.recording { background: #e5324f; animation: pulse-red .8s ease-in-out infinite alternate; }
@keyframes pulse-red { to { box-shadow: 0 0 0 14px rgba(229, 50, 79, .22); } }
.mic-label { font-size: 13.5px; font-weight: 700; margin-top: 8px; color: var(--paper-muted); }

/* questions */
.q-title { font-size: 19px; font-weight: 800; margin: 8px 0 16px; line-height: 1.35; }
.q-prompt { display: grid; place-items: center; min-height: 120px; margin-bottom: 18px; }
.bigplay { display: flex; align-items: center; gap: 10px; flex-direction: column; font-size: 13px; color: var(--muted); }
.bigplay svg { width: 88px; height: 88px; padding: 24px; border-radius: 28px; background: linear-gradient(135deg, var(--violet), var(--violet-d)); color: #fff; box-shadow: 0 14px 36px rgba(123, 108, 255, .45); }
.bigplay.playing { animation: none; }
.bigplay.playing svg { animation: pulse .7s ease-in-out infinite alternate; }
.q-glyph { font-size: 96px; font-weight: 700; line-height: 1.1; }
.q-mean { font-size: 24px; font-weight: 700; text-align: center; line-height: 1.4; }
.opts { display: grid; gap: 10px; }
.opts.glyphs, .opts.sounds { grid-template-columns: 1fr 1fr; }
.opt { min-height: 58px; padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 2px solid var(--line); font-size: 16.5px; font-weight: 600; text-align: start; line-height: 1.4; }
.opts.glyphs .opt, .opts.sounds .opt { min-height: 96px; text-align: center; font-size: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.opts.sounds .opt { font-size: 22px; color: #d5d0ff; }
.opts.sounds .opt svg { width: 34px; height: 34px; }
.opt .ko { font-size: 1.12em; }
.opt.sel { border-color: var(--violet); background: rgba(123, 108, 255, .22); }
.opt.good { border-color: var(--mint); background: rgba(94, 242, 194, .16); }
.opt.bad { border-color: var(--red); background: rgba(255, 112, 136, .14); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 62px; padding: 8px 0; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { min-height: 46px; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--paper-ink); font-size: 19px; font-weight: 600; box-shadow: 0 3px 0 rgba(255, 255, 255, .25); }
.tile.gone { background: rgba(255, 255, 255, .07); color: transparent; box-shadow: none; display: inline-flex; align-items: center; }
.dock, .sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.dock { background: linear-gradient(transparent, var(--bg) 35%); }
.sheet { border-radius: 24px 24px 0 0; color: var(--paper-ink); box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); animation: rise .18s ease-out; }
.sheet.ok { background: #d9fbef; } .sheet.no { background: #ffe3e8; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.verdict { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.sheet.ok .verdict { color: #0c7a5b; } .sheet.no .verdict { color: #c22642; }
.sheet small { display: block; font-size: 12.5px; opacity: .7; margin-top: 4px; }
.sheet .ans { margin: 8px 0 14px; }
.sheet .play { background: rgba(18, 20, 58, .1); color: var(--paper-ink); }

/* done */
.done { text-align: center; padding-top: 28px; }
.ring { width: 96px; height: 96px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; font-size: 42px; background: var(--hot); color: #fff; box-shadow: 0 0 0 10px rgba(255, 95, 162, .16), 0 16px 40px rgba(255, 95, 162, .4); }
.ring.small { width: 60px; height: 60px; font-size: 26px; box-shadow: 0 0 0 6px rgba(255, 95, 162, .16); margin-bottom: 10px; }
.done h1 { font-size: 30px; }
.done .sub { color: var(--muted); margin-top: 4px; }
.done .sec { justify-content: center; }
.done .list { text-align: start; }
.done .chips { justify-content: center; }
.perfect { margin-top: 22px; font-size: 18px; font-weight: 800; color: var(--mint); }

/* lab */
.build { text-align: center; display: grid; justify-items: center; gap: 8px; }
.block { width: 150px; height: 150px; border-radius: 28px; font-size: 96px; font-weight: 700; color: var(--paper-ink); background: #e9e6ff; }
.block.empty { color: #b9b4e6; }
.parts { font-size: 22px; font-weight: 700; color: var(--paper-muted); display: flex; gap: 10px; align-items: center; }
.build .bigplay { flex-direction: row; color: var(--paper-muted); }
.build .bigplay svg { width: 52px; height: 52px; padding: 14px; border-radius: 18px; }

/* review + progress */
.page { font-size: 28px; letter-spacing: -.02em; margin: 6px 0 16px; }
.panel { padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; text-align: center; }
.panel.hot { background: linear-gradient(160deg, #1a1d55, #12143a); border-color: rgba(255, 95, 162, .4); }
.panel .num { display: block; font-size: 54px; font-weight: 800; line-height: 1.1; }
.panel .btn { margin-top: 14px; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start; margin: 10px 0; }
.rowline small { display: block; font-size: 12.5px; color: var(--muted); }
.panel .bar { margin-bottom: 14px; }
.week { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.week span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.week .on { background: var(--hot); color: #fff; }
.week .today { outline: 2px solid #fff; outline-offset: 2px; }
.switch { width: 52px; height: 32px; flex: none; border-radius: 20px; background: rgba(255, 255, 255, .16); position: relative; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch[aria-checked="true"] { background: var(--violet); }
.switch[aria-checked="true"]::after { inset-inline-start: 24px; }
.off { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); text-align: start; }
.off.ready { color: var(--mint); }
.grid.one { margin-top: 16px; }

/* teacher's recording room */
.btn:disabled { opacity: .4; }
.tnote { font-size: 14.5px; color: #c9cdf3; margin-bottom: 12px; }
.tnote.warn { padding: 12px 14px; border-radius: 12px; background: rgba(255, 112, 136, .16); color: #ffd0d8; }
.trow { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.trow.saved { border-color: var(--mint); }
.trow p { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.trow .k { font-size: 24px; font-weight: 700; }
.trow em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--mint); }
.tbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tbtns .btn { min-height: 46px; padding: 8px 10px; font-size: 14px; }
.tbtns .rec { background: #e5324f; color: #fff; animation: pulse-red .8s ease-in-out infinite alternate; }

/* ---- Wide screens ---- */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 280px 1fr; }
  .side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 16px; background: rgba(255, 255, 255, .025); border-inline-end: 1px solid rgba(255, 255, 255, .06); }
  .side .logo { margin-bottom: 20px; }
  .side .nav.on { background: linear-gradient(90deg, rgba(123, 108, 255, .28), rgba(123, 108, 255, .04)); color: #fff; box-shadow: inset 2px 0 var(--pink); }
  html[dir="rtl"] .side .nav.on { background: linear-gradient(270deg, rgba(123, 108, 255, .28), rgba(123, 108, 255, .04)); box-shadow: inset -2px 0 var(--pink); }
  .prog { margin-bottom: 16px; } .prog small { font-size: 12px; color: var(--muted); }
  .side-foot { margin-top: 20px; padding: 0 10px; }
  .tabbar, .hero-top { display: none; }
  .main { max-width: 1040px; width: 100%; padding: 32px 44px 56px; }
  .study .main { max-width: 760px; padding-bottom: 56px; }
  .hero { padding: 40px 40px 0; }
  .hero .big { font-size: 84px; }
  .hero .sub { font-size: 18px; }
  .sky { height: 220px; }
  .cont { max-width: 580px; flex-wrap: nowrap; } .cont .btn { width: auto; }
  .stats { margin: 28px -40px 0; padding: 18px 40px 26px; } .stats > * { padding: 16px 18px; } .stats b { font-size: 26px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .lgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .lart { height: 120px; } .emo { font-size: 44px; }
  .studybar { margin: -8px 0 20px; border-radius: 14px; }
  .dock, .sheet { position: static; margin-top: 22px; padding: 0; background: none; }
  .sheet { padding: 18px; border-radius: 20px; }
  .bubble { max-width: 440px; } .bubble .k { font-size: 21px; }
  .chat { padding: 26px; }
  .actions .btn { flex: 0 1 auto; }
  .opts.texts { grid-template-columns: 1fr 1fr; }
  .lhead .iconbtn { display: none; }
  .toast { inset-inline: auto 24px; bottom: 24px; }
}
