/* Learner interface based on the supplied language-platform reference. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:#f6f8fb; --bg-2:#f0f3f8; --surface:#fff;
  --ink:#1e293b; --text:#334155; --muted:#64748b;
  --line:#e9edf4; --line-strong:#d7dfec;
  --primary:#1961d1; --primary-dark:#174faf; --primary-soft:#edf3fd;
  --gold:#f3dfa5; --gold-soft:#fffaec;
  --aqua:#eef2ff; --aqua2:#e5eaff; --aquaDeep:#6366f1;
  --green:#effaf7; --yellow:#fff6ed;
  --radius:24px; --shadow:0 8px 30px -15px rgba(15,23,42,.09);
  --shadow-lg:0 12px 32px -12px rgba(15,23,42,.12);
}
body { background:var(--bg); font-family:Inter,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
h1,h2,h3,.logo { font-family:Inter,"Segoe UI",sans-serif; color:var(--ink); letter-spacing:-.025em; }
[hidden] { display:none!important; }
.app-header { background:#fff; box-shadow:none; border-bottom:1px solid var(--line); }
.logo { overflow:hidden; border:0; background:transparent; box-shadow:none; animation:none; }
.student-sidebar .brand-text b { color:var(--primary)!important; }
.logo img { display:block; width:100%; height:100%; object-fit:contain; transform:none; }
.logo:hover { transform:none; box-shadow:none; }
.header-search-wrap { background:#f6f8fb; border-color:var(--line); border-radius:14px; }
.app-nav { background:#fff; border-bottom:1px solid var(--line); box-shadow:none; }
.nav-link { border-radius:12px; }
.nav-link.active { background:var(--primary-soft); color:var(--primary); }
.hp-fill { background:var(--primary); }
.user-badge-btn { border-radius:16px; box-shadow:none; }
.user-badge-btn:hover { transform:none; box-shadow:none; }
.user-badge-avatar { box-shadow:none; }
.app-header .mobile-menu-btn { display:none; }
.main-pane { padding:32px 24px 64px; }
.main-pane > .screen { max-width:1152px; }
.btn { border-radius:12px; min-height:42px; padding:10px 16px; font-size:13px; }
.btn.primary { background:var(--primary); border-color:var(--primary); }
.btn.primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); }
.btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(25,97,209,.08); }
.card,.panel,.review-exercise { border-color:var(--line); border-radius:24px; box-shadow:var(--shadow); }
.card:hover { border-color:var(--line-strong); transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.card:hover .card-icon { transform:none; }
.tab.active { background:var(--primary-soft); color:var(--primary); box-shadow:none; }
.tab.active::before { display:none; }
.module-title h1 { font-size:28px; }
.module-head { margin-bottom:20px; }
.profile-modal-card { border-radius:24px; }
.profile-modal-head { background:#f8f9fd; }
.api-account-panel,.profile-avatar-section,.profile-stats-card { background:#f8f9fd; border-color:var(--line); }
.api-account-role { background:var(--primary-soft); color:var(--primary); }

/* Home: hero, courses, listening, then the two lower panels. */
body[data-page="home"] #home.screen.active {
  display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  align-items:start; column-gap:24px; row-gap:32px;
}
body[data-page="home"] #home > .hero,
body[data-page="home"] #home > .section-title,
body[data-page="home"] #home > .topic-cards,
body[data-page="home"] #home > .listening-card { grid-column:1/-1; }
body[data-page="home"] #home > .mix-banner { grid-column:1; align-self:stretch; }
body[data-page="home"] #home > .progress { grid-column:2; align-self:stretch; }
.hero {
  display:grid; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);
  min-height:300px; padding:40px 48px; gap:24px;
  background:linear-gradient(105deg,#ebe7f8,#f4f2fb);
  border:1px solid #fff; border-radius:32px; box-shadow:0 2px 6px rgba(30,41,59,.035);
  animation:none;
}
.hero-tag { margin:0 0 12px; font-size:11px; font-weight:700; letter-spacing:1.5px; color:var(--muted); }
.hero h2 { max-width:540px; margin:0 0 24px; font-size:40px; font-weight:700; line-height:1.22; }
.hero h2 em { color:#6366f1; display:inline-block; white-space:nowrap; }
.hero-cta { min-height:46px; padding:12px 22px; font-size:14px; border-radius:12px; box-shadow:0 5px 14px rgba(25,97,209,.15); }
.hero-cta::before { display:none; }
.study-art { display:block; position:relative; width:260px; height:220px; max-width:none; transform:none; justify-self:center; }
.art-orbit { display:none; }
.art-book {
  position:absolute; left:60px; top:12px; display:flex; flex-direction:column;
  justify-content:center; align-items:center; width:144px; height:192px;
  border-radius:4px 16px 16px 4px; border-left:8px solid #7565eb;
  background:#5c4cdb; transform:rotate(12deg); animation:none;
  box-shadow:15px 15px 30px rgba(45,35,104,.15);
}
.art-book > span { color:#b7aef9; font-size:9px; font-weight:700; letter-spacing:2px; }
.art-book strong { color:#fff; font-size:44px; font-weight:800; letter-spacing:-2px; }
.art-book strong span { color:#dbd6ff; font-size:34px; letter-spacing:-1px; }
.book-lines { display:none; }
.art-bubble,.art-note { background:#fff; border:1px solid #edf0f6; padding:10px 16px; border-radius:100px; box-shadow:0 6px 18px rgba(45,35,104,.09); color:#475569; animation:none; z-index:3; }
.art-bubble { top:0; right:-4px; font-size:12px; font-weight:700; }
.art-bubble span { color:#d9a442; padding-left:4px; }
.art-note { bottom:0; left:8px; right:auto; transform:rotate(5deg); }
.art-note span { color:#475569; font-size:12px; }
.art-spark { color:#ad9bde; font-size:18px; }
.spark-one { left:22px; top:56px; }
.spark-two { right:0; bottom:42px; }
.section-title { margin:6px 0 -12px; }
.section-title h2 { font-size:24px; font-weight:700; }
.cards.topic-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.topic-card,.topic-card:nth-child(1),.topic-card:nth-child(2),.topic-card:nth-child(3) {
  display:grid; grid-template-columns:1fr auto;
  grid-template-rows:48px auto minmax(42px,1fr) 48px;
  grid-template-areas:"icon label" "title title" "desc desc" "cta cta";
  column-gap:10px; row-gap:12px; min-height:280px; padding:24px;
  border:1px solid var(--line); background:#fff; border-radius:32px; box-shadow:var(--shadow);
}
.topic-card .course-label { position:static; width:auto; white-space:nowrap; grid-area:label; justify-self:end; align-self:start; margin:0; padding-top:3px; font-size:10px; font-weight:700; color:#94a3b8; letter-spacing:1px; opacity:1; }
.topic-card .card-icon { grid-area:icon; width:48px; height:48px; margin:0; border-radius:16px; color:#6366f1; background:#eef2ff; }
.topic-card .card-icon .material-symbols-rounded { font-size:25px; }
.topic-card:nth-child(2) .card-icon { color:#0d9488; background:#effaf7; }
.topic-card:nth-child(3) .card-icon { color:#fb923c; background:#fff6ed; }
.topic-card h3 { grid-area:title; align-self:end; margin:2px 0 0; font-size:18px; font-weight:700; }
.topic-card p { grid-area:desc; margin:0; font-size:14px; line-height:1.65; color:var(--muted); }
.topic-cta { grid-area:cta; margin:0; min-height:48px; padding:12px 18px; font-size:14px; border-radius:12px; }
.topic-cta .material-symbols-rounded { font-size:20px; }
.listening-card { margin:0; padding:28px 32px; background:#f8f6fc; border:1px solid #eeeafa; border-radius:32px; box-shadow:none; }
.listening-card:hover,.mix-banner:hover { transform:none; }
.listening-title { gap:16px; margin:0 0 22px; }
.listening-icon { width:48px; height:48px; flex:0 0 auto; border-radius:16px; background:#eae5fa; color:#7165d6; }
.listening-title .eyebrow { font-size:10px; letter-spacing:1.5px; font-weight:700; }
.listening-title h3 { margin:3px 0 0; font-size:14px; font-weight:700; }
.listening-lang { color:#94a3b8; font-size:11px; }
.listening-card .sentence { font-size:27px; font-weight:500; margin:0 0 6px; color:var(--ink); letter-spacing:-.025em; }
.sentence-translation { margin:0 0 24px; font-size:14px; color:var(--muted); }
.simple-audio { gap:12px; }
.audio-simple-btn { min-height:42px; padding:10px 18px; border-radius:12px; font-size:13px; font-weight:600; border-color:#e2e8f0; background:#fff; color:#334155; }
.audio-simple-btn.primary { color:#fff; background:var(--primary); border-color:var(--primary); box-shadow:0 5px 12px rgba(25,97,209,.12); }
.simple-audio-status { font-size:12px; color:#94a3b8; }
.mix-banner { margin:0; min-height:160px; padding:28px; border:1px solid #ffffff80; border-radius:32px; background:linear-gradient(105deg,#e7dff5,#d6cff0); box-shadow:none; gap:18px; }
.mix-banner h3 { font-size:18px; font-weight:700; line-height:1.5; }
.banner-star { font-size:23px; color:#334155; }
.banner-cta { min-height:46px; padding:12px 20px; font-size:14px; border-radius:12px; flex-shrink:0; }
.banner-cta .material-symbols-rounded:last-child { color:#fde68a; }
.progress { margin:0; padding:24px; background:#fff; border:1px solid var(--line); border-radius:32px; box-shadow:var(--shadow); }
.progress-head { margin-bottom:16px; gap:10px; font-size:14px; }
.progress-head b { font-weight:700; }
.progress-head .small { font-size:12px; color:var(--muted); white-space:nowrap; }
.progress .bar { height:10px; margin:0 0 18px; background:#f1f5f9; border-radius:100px; }
.progress .bar span { background:var(--primary); }
.progress .mastery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:0; }
.progress .mastery-item { padding:14px; border-radius:16px; border:1px solid #edf0f6; background:#f8fafc80; }
.progress .mastery-item b { font-size:12px; line-height:1.5; margin-bottom:3px; }
.progress .mastery-item span { font-size:11px; color:var(--muted); }

@media (max-width:1100px) {
  .hero { padding:32px; }
  .hero h2 { font-size:34px; }
  .cards.topic-cards { gap:16px; }
  .topic-card,.topic-card:nth-child(1),.topic-card:nth-child(2),.topic-card:nth-child(3) { padding:20px; }
  .mix-banner { flex-direction:column; align-items:flex-start; justify-content:center; }
}
@media (max-width:900px) {
  .main-pane { padding:24px 20px 48px; }
  .app-header { grid-template-columns:minmax(150px,1fr) auto; }
  .app-header-center { display:none; }
  .hero { grid-template-columns:minmax(0,1fr) 210px; padding:28px; min-height:260px; }
  .study-art { width:220px; transform:scale(.85); }
  .hero h2 { font-size:30px; }
  .topic-card p { font-size:13px; }
  .topic-card h3 { font-size:16px; }
  .topic-cta { padding:10px 12px; font-size:13px; }
  body[data-page="home"] #home.screen.active { grid-template-columns:1fr; }
  body[data-page="home"] #home > .mix-banner,body[data-page="home"] #home > .progress { grid-column:1; }
  .mix-banner { flex-direction:row; align-items:center; justify-content:space-between; min-height:145px; }
}
@media (max-width:768px) {
  .app-header .mobile-menu-btn { display:grid; }
}
@media (max-width:640px) {
  .main-pane { padding:18px 16px 40px; }
  body[data-page="home"] #home.screen.active { row-gap:24px; }
  .hero { grid-template-columns:1fr; padding:28px 24px; gap:16px; border-radius:26px; }
  .hero h2 { max-width:420px; font-size:30px; margin-bottom:20px; }
  .study-art { display:block; width:260px; height:195px; transform:scale(.85); }
  .section-title { margin:4px 0 -8px; }
  .section-title h2 { font-size:21px; }
  .cards.topic-cards { grid-template-columns:1fr; gap:16px; }
  .topic-card,.topic-card:nth-child(1),.topic-card:nth-child(2),.topic-card:nth-child(3) { padding:24px; min-height:250px; border-radius:26px; }
  .topic-card .course-label { display:block; }
  .topic-card h3 { font-size:18px; }
  .topic-card p { font-size:14px; }
  .listening-card { padding:24px; border-radius:26px; }
  .listening-title { gap:12px; }
  .listening-title .eyebrow { letter-spacing:.8px; }
  .listening-card .sentence { font-size:23px; }
  .simple-audio { gap:8px; }
  .audio-simple-btn { flex:1 1 auto; padding:10px 12px; }
  .simple-audio-status { flex:1 1 100%; text-align:right; }
  .mix-banner { flex-direction:column; align-items:flex-start; padding:24px; border-radius:26px; }
  .banner-cta { width:100%; }
  .progress { padding:22px; border-radius:26px; }
  .progress-head { align-items:flex-start; flex-direction:column; gap:4px; }
  .user-badge-info { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .hero,.study-art,.art-book,.art-note,.art-bubble { animation:none; }
}

/* Student navigation lives in a single left rail on larger screens. */
@media (min-width:769px) {
  .student-sidebar {
    position:fixed; inset:0 auto 0 0; z-index:200; width:264px;
    display:flex; flex-direction:column; padding:24px 16px;
    background:#fff; border-right:1px solid var(--line);
    overflow-y:auto; overflow-x:hidden; scrollbar-width:thin;
  }
  .app > .app-body { margin-left:264px; min-height:100vh; }
  .student-sidebar .app-header {
    position:static; height:auto; display:flex; flex-direction:column;
    align-items:stretch; gap:20px; padding:0 0 20px;
    border-bottom:1px solid var(--line); background:transparent;
    backdrop-filter:none;
  }
  .student-sidebar .app-header-left { padding:0 4px; }
  .student-sidebar .app-header .mobile-menu-btn { display:none!important; }
  .student-sidebar .brand-text b { font-size:16px; }
  .student-sidebar .app-header-center { display:block; width:100%; max-width:none; min-width:0; }
  .student-sidebar .header-search-wrap { width:100%; }
  .student-sidebar .header-search-input { min-width:0; font-size:12px; }
  .student-sidebar .header-search-dropdown { width:100%; max-height:280px; overflow-y:auto; }
  .student-sidebar .app-header-right { display:flex; flex-wrap:wrap; gap:12px; width:100%; }
  .student-sidebar .header-progress { display:block; flex:1; min-width:0; width:auto; }
  .student-sidebar .user-badge-btn { order:3; width:100%; max-width:none; justify-content:flex-start; padding:10px; }
  .student-sidebar .user-badge-info { display:flex; min-width:0; text-align:left; }
  .student-sidebar .user-badge-info strong { max-width:170px; }
  .student-sidebar .app-nav {
    position:static; top:auto; height:auto; max-height:none; width:100%;
    display:flex; flex-direction:column; align-items:stretch; gap:16px;
    padding:20px 0 0; overflow:visible; transform:none; flex:1;
    background:transparent; border:0; box-shadow:none; backdrop-filter:none;
  }
  .student-sidebar .app-nav-links { flex-direction:column; align-items:stretch; gap:5px; width:100%; }
  .student-sidebar .nav-link { width:100%; padding:12px 14px; justify-content:flex-start; font-size:13px; }
  .student-sidebar .nav-link span:last-child { display:inline; }
  .student-profile-footer { margin-top:auto; padding-top:20px; border-top:1px solid var(--line); }
  .student-sidebar .nav-voice-panel { width:100%; margin:0; padding-top:12px; border-top:1px solid var(--line); }
  .student-sidebar .nav-voice-summary { width:100%; padding:12px 14px; }
  .student-sidebar .settings-chevron { margin-left:auto; }
  .student-sidebar .nav-voice-body { position:static; width:100%; margin-top:8px; box-shadow:none; }
  .student-sidebar .voice-grid { grid-template-columns:1fr; }
  .student-sidebar .voice-actions,.student-sidebar .audio-preset-row { flex-wrap:wrap; }
  .student-sidebar .voice-actions .btn,.student-sidebar .audio-preset-row .btn { padding:8px 10px; }
  .mobile-nav-overlay.visible { display:none; }
}
@media (min-width:769px) and (max-width:1100px) {
  .cards.topic-cards { grid-template-columns:1fr; }
  .hero { grid-template-columns:1fr; }
  .study-art { display:none; }
}
@media (max-width:768px) {
  .student-sidebar { display:contents; }
  .student-profile-footer { width:100%; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
  .student-profile-footer .user-badge-btn { width:100%; border-radius:14px; padding:10px; justify-content:flex-start; }
  .student-profile-footer .user-badge-info { display:flex; text-align:left; }
}
.student-voice-link { text-decoration:none; }
.vocab-workspace { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:20px; align-items:start; }
.vocab-main,.vocab-reference { min-width:0; }
.vocab-main > .panel { margin-top:0; }
.vocab-reference { position:sticky; top:24px; display:grid; gap:16px; max-height:calc(100dvh - 48px); overflow-y:auto; scrollbar-width:thin; padding-right:4px; }
.vocab-reference > .panel { margin:0; padding:18px; min-width:0; }
.vocab-reference .noun-reference { margin:0; padding:18px; }
.vocab-reference h3 { font-size:16px; line-height:1.5; margin:0 0 14px; }
.vocab-reference .search { display:grid; grid-template-columns:1fr; gap:8px; margin-bottom:16px; }
.vocab-reference .search input,.vocab-reference .search select { width:100%; min-width:0; padding:10px; border:1px solid var(--line); border-radius:10px; font-size:12px; }
.vocab-reference #vWrap { max-height:none; overflow:visible; padding:0; }
.vocab-reference .group-head h4 { font-size:12px; color:var(--muted); margin:16px 0 8px; }
.vocab-reference .table-scroll { overflow:visible; margin-bottom:16px; }
.vocab-reference table { display:block; width:100%; min-width:0; border:0; background:transparent; }
.vocab-reference thead { display:none; }
.vocab-reference tbody { display:grid; gap:8px; }
.vocab-reference tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.vocab-reference td { display:block; padding:10px; border:0; min-width:0; background:#f8fafc!important; font-size:12px; overflow-wrap:anywhere; }
.vocab-reference td::before { content:attr(data-label); display:block; margin-bottom:6px; font-size:10px; color:var(--muted); }
.vocab-reference td:nth-child(3) { grid-column:1/-1; border-top:1px solid var(--line); background:#fff!important; }
.vocab-reference .vocab-word { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.vocab-reference .word-link { font-size:12px; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.vocab-reference .audio-btn { width:26px; height:26px; min-width:26px; margin:0; font-size:12px; }
.vocab-reference .verb-picker { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.vocab-reference .verb-picker .btn { min-height:32px; padding:6px 8px; font-size:11px; }
.vocab-reference .verb-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.vocab-reference .verb-cell { display:flex; flex-wrap:wrap; gap:6px; padding:10px; background:#f8fafc; border-radius:10px; min-width:0; }
.vocab-reference .verb-cell label { width:100%; color:var(--muted); font-size:11px; }
.vocab-reference .verb-cell strong,.vocab-reference #verbStudy h4 { font-size:13px; overflow-wrap:anywhere; }
@media (max-width:1000px) {
  .vocab-workspace { grid-template-columns:1fr; }
  .vocab-reference { position:static; max-height:none; overflow:visible; padding:0; }
  .vocab-reference #vWrap { max-height:none; }
}
.voice-settings-card { max-width:800px; padding:28px; background:#fff; border:1px solid var(--line); border-radius:24px; }
.voice-settings-card .voice-panel { padding:0; background:transparent; }
.voice-settings-card .voice-panel-head { margin-bottom:24px; }
.voice-settings-card .voice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.voice-settings-card .voice-field select { width:100%; min-width:0; }
.voice-settings-card .voice-meta { margin-top:24px; }
.voice-settings-card .voice-actions,.voice-settings-card .audio-preset-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
@media (max-width:640px) {
  .voice-settings-card { padding:20px; }
  .voice-settings-card .voice-grid { grid-template-columns:1fr; }
}

/* One compact vocabulary frame, with no nested scrolling areas. */
body[data-module="vocab"] .main-pane { padding-top:18px; }
body[data-module="vocab"] #module.active { display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px 20px; }
body[data-module="vocab"] .module-breadcrumb { grid-column:1/-1; margin:0; font-size:12px; }
body[data-module="vocab"] .module-head { margin:0; gap:12px; }
body[data-module="vocab"] .module-title h1 { font-size:23px; }
body[data-module="vocab"] .module-title .card-icon { width:36px; height:36px; border-radius:12px; }
body[data-module="vocab"] .module-close { width:34px; height:34px; min-height:34px; padding:4px; }
body[data-module="vocab"] #module > .tabs { margin:0; justify-self:end; align-self:center; padding:4px; width:auto; }
.vocab-workspace { grid-column:1/-1; align-items:stretch; padding:24px; background:#fff; border:1px solid var(--line); border-radius:24px; gap:24px; }
.vocab-main { display:flex; flex-direction:column; }
.vocab-main .vocab-learn { display:flex; flex-direction:column; flex:1; }
.vocab-main #flashPanel { display:flex; flex-direction:column; flex:1; margin:0; padding:0; border:0; box-shadow:none; background:transparent; }
.vocab-main #flashWrap { display:flex; flex-direction:column; flex:1; min-height:340px; }
.vocab-main #flashWrap > .row:first-child { margin-top:12px; }
.vocab-main #flashWrap .flash { display:flex; align-items:center; justify-content:center; flex:1; min-height:230px; width:100%; margin:14px 0; }
.vocab-main #flashWrap .flash-nav { margin-top:auto; padding-top:6px; }
.vocab-reference { position:static; max-height:none; overflow:visible; padding:0 0 0 24px; border-left:1px solid var(--line); align-content:start; gap:14px; }
.vocab-reference .panel { margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.vocab-reference #vWrap { max-height:none; overflow:visible; }
.reference-tabs { display:flex; gap:4px; padding:4px; border-radius:12px; background:#f4f6fa; }
.reference-tabs .tab { flex:1; justify-content:center; padding:8px 10px; font-size:12px; }
.reference-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; font-size:12px; color:var(--muted); }
.reference-pagination .btn { min-height:30px; padding:4px 10px; }
@media (max-width:1000px) {
 .vocab-reference { padding:20px 0 0; border-left:0; border-top:1px solid var(--line); }
 .vocab-workspace { padding:20px; }
}
@media (max-width:640px) {
 body[data-module="vocab"] #module.active { grid-template-columns:1fr; gap:12px; }
 body[data-module="vocab"] #module > .tabs { justify-self:stretch; }
 body[data-module="vocab"] .module-head { justify-content:space-between; }
 .vocab-workspace { padding:16px; }
 .vocab-main #flashWrap { min-height:280px; }
}

/* Three parts within the vocabulary frame. */
.vocab-workspace { grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1.2fr); gap:20px; }
.vocab-reference { padding:0 20px 0 0; border-left:0; border-right:1px solid var(--line); }
.vocab-examples { min-width:0; padding-left:20px; border-left:1px solid var(--line); }
.vocab-examples h3,.vocab-main #flashPanel h3 { font-size:16px; line-height:1.5; margin:0 0 10px; }
.noun-picker-list { display:grid; gap:10px; }
.noun-picker-item { width:100%; display:grid; gap:5px; text-align:left; padding:12px; border:1px solid var(--line); border-radius:12px; background:#f8fafc; cursor:pointer; color:var(--ink); }
.noun-picker-item strong { font-size:13px; overflow-wrap:anywhere; }
.noun-picker-item span,.noun-picker-item small { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.noun-picker-item.selected { border-color:var(--primary); background:var(--primary-soft); }
#vocabExamples { display:grid; gap:10px; }
.noun-example { padding:12px; border:1px solid var(--line); border-radius:12px; background:#f8fafc; }
.noun-example > small { color:var(--primary); font-weight:700; font-size:10px; }
.noun-example p { margin:8px 0 0; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.noun-example .audio-btn { width:24px; height:24px; min-width:24px; padding:0; margin-left:5px; font-size:11px; }
.vocab-main #flashWrap .big { font-size:28px; }
@media (max-width:1100px) {
 .vocab-workspace { grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); }
 .vocab-examples { grid-column:1/-1; padding:20px 0 0; border-left:0; border-top:1px solid var(--line); }
 #vocabExamples { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .vocab-reference { border-top:0; padding:0 20px 0 0; }
}
@media (max-width:640px) {
 .vocab-workspace { grid-template-columns:1fr; }
 .vocab-reference { padding:0 0 20px; border-right:0; border-bottom:1px solid var(--line); }
 .vocab-examples { grid-column:1; }
 #vocabExamples { grid-template-columns:1fr; }
}

/* Compact noun/verb selector and six-person verb flashcard. */
.vocab-reference .reference-tabs { margin-bottom:12px; }
.verb-search { width:100%; min-width:0; padding:10px; margin-bottom:12px; border:1px solid var(--line); border-radius:10px; font-size:12px; }
.study-verb-card { flex:1; display:flex; flex-direction:column; justify-content:center; padding:16px; margin:12px 0; border-radius:16px; background:var(--primary-soft); min-height:0; }
.study-verb-card h4 { margin:0 0 16px; font-size:20px; overflow-wrap:anywhere; }
.study-verb-card .verb-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.study-verb-card .verb-cell { display:flex; flex-wrap:wrap; align-items:center; gap:5px; padding:12px; background:#fff; border-radius:12px; min-width:0; }
.study-verb-card .verb-cell label { width:100%; font-size:11px; color:var(--muted); }
.study-verb-card .verb-cell strong { font-size:15px; overflow-wrap:anywhere; }
@media (min-width:1024px) and (min-height:600px) {
 body.vocab-static-learn { height:100dvh; overflow:hidden; }
 .vocab-static-learn .app { height:100dvh; min-height:0; }
 .vocab-static-learn .app > .app-body { height:100dvh; min-height:0; }
 body.vocab-static-learn .main-pane { height:100%; min-height:0; padding:12px 18px; }
 body.vocab-static-learn #module.active { height:100%; min-height:0; max-width:none; grid-template-columns:auto minmax(0,1fr); grid-template-rows:18px 36px minmax(0,1fr); gap:10px 16px; }
 .vocab-static-learn .vocab-workspace { min-height:0; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1.25fr); padding:16px; gap:16px; }
 .vocab-static-learn .vocab-reference { min-height:0; padding:0 16px 0 0; border-top:0; border-right:1px solid var(--line); }
 .vocab-static-learn .vocab-examples { grid-column:auto; min-height:0; padding:0 0 0 16px; border-top:0; border-left:1px solid var(--line); display:flex; flex-direction:column; }
 .vocab-static-learn .vocab-main,.vocab-static-learn .vocab-learn,.vocab-static-learn #flashPanel { min-height:0; }
 .vocab-static-learn .vocab-main #flashWrap { min-height:0; }
 .vocab-static-learn .vocab-main #flashWrap .flash { min-height:0; margin:10px 0; padding:14px; }
 .vocab-static-learn .vocab-main #flashWrap .big { font-size:clamp(20px,2vw,30px); }
 .vocab-static-learn .vocab-main .flash-nav .btn { font-size:11px; padding:6px 8px; }
 .vocab-static-learn .vocab-reference h3,.vocab-static-learn .vocab-main #flashPanel h3,.vocab-static-learn .vocab-examples h3 { font-size:14px; margin-bottom:8px; }
 .vocab-static-learn .vocab-examples > .small { margin:0 0 8px; font-size:10px; }
 .vocab-static-learn #vocabExamples { min-height:0; flex:1; grid-template-columns:1fr; grid-auto-rows:minmax(0,1fr); gap:6px; }
 .vocab-static-learn .noun-example { padding:7px 9px; min-height:0; display:flex; flex-direction:column; justify-content:center; }
 .vocab-static-learn .noun-example p { font-size:11px; margin:3px 0 0; line-height:1.35; }
 .vocab-static-learn .noun-example .audio-btn { width:20px; height:20px; min-width:20px; }
 .vocab-static-learn .noun-picker-list { gap:7px; }
 .vocab-static-learn .noun-picker-item { padding:9px; gap:3px; }
 .vocab-static-learn .noun-picker-item strong { font-size:12px; }
 .vocab-static-learn .noun-picker-item span,.vocab-static-learn .noun-picker-item small { font-size:11px; }
 .vocab-static-learn .vocab-reference .search { gap:7px; margin-bottom:10px; }
 .vocab-static-learn .vocab-reference .search input,.vocab-static-learn .vocab-reference .search select,.vocab-static-learn .verb-search { padding:8px; }
 .vocab-static-learn .student-sidebar { padding:16px 12px; overflow:visible; }
 .vocab-static-learn .student-sidebar .app-header { gap:12px; padding-bottom:12px; }
 .vocab-static-learn .student-sidebar .app-nav { padding-top:12px; gap:8px; }
 .vocab-static-learn .student-sidebar .app-nav-links { gap:2px; }
 .vocab-static-learn .student-sidebar .nav-link { padding:9px 12px; }
 .vocab-static-learn .student-profile-footer { padding-top:12px; }
}

/* Only the word list scrolls; picker controls stay in place. */
.vocab-workspace.vocab-exercise-workspace { grid-template-columns:minmax(0,1fr); }
.vocab-exercise-workspace > .vocab-reference,.vocab-exercise-workspace > .vocab-examples { display:none; }
.vocab-exercise-workspace > .vocab-main { width:100%; max-width:900px; margin:0 auto; }
.vocab-exercise-workspace .vocab-main > .panel { margin:0; padding:0; border:0; box-shadow:none; background:transparent; }
.vocab-reference { display:grid; grid-template-rows:auto auto minmax(0,1fr); align-content:stretch; min-height:0; }
.vocab-reference > h3 { margin:0; }
.vocab-reference > .reference-tabs { margin:0; }
#nounReferenceView,#verbReferenceView { min-height:0; display:flex; flex-direction:column; }
#nounReferenceView .noun-reference { min-height:0; display:flex; flex-direction:column; height:100%; }
.vocab-reference .search,.vocab-reference .verb-search { flex-shrink:0; }
.vocab-reference #vWrap,.vocab-reference #verbPickerList { min-height:0; flex:1; max-height:420px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#bac9df transparent; padding-right:5px; }
.vocab-reference .noun-picker-list { align-content:start; }
@media (min-width:1024px) and (min-height:600px) {
 .vocab-static-learn .vocab-reference #vWrap,.vocab-static-learn .vocab-reference #verbPickerList { max-height:none; }
}

.vocab-session-status { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border:1px solid #dbe7fc; border-radius:14px; background:var(--primary-soft); color:var(--primary); font-size:13px; }
.vocab-session-status b { font-variant-numeric:tabular-nums; }

.module-choice-dialog { width:min(680px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:24px; border:1px solid var(--line); border-radius:24px; background:#fff; color:var(--ink); box-shadow:0 24px 80px rgba(20,40,70,.2); overflow-y:auto; }
.module-choice-dialog::backdrop { background:rgba(25,40,65,.35); backdrop-filter:blur(3px); }
.module-choice-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.module-choice-head h2 { margin:0; font-size:21px; }
.module-choice-dialog .panel { margin:0; padding:0; border:0; box-shadow:none; background:transparent; }
.module-choice-dialog .panel > h3 { display:none; }
@media (max-width:640px) { .module-choice-dialog { padding:18px; border-radius:18px; } }

/* Small mode controls beneath the title, with quieter nested surfaces. */
body[data-module="vocab"] #module > .module-head { grid-column:1/-1; }
body[data-module="vocab"] #module > .tabs { grid-column:1/-1; justify-self:start; width:auto; gap:6px; padding:0; margin:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
body[data-module="vocab"] #module > .tabs .tab { min-height:30px; padding:6px 11px; gap:5px; font-size:12px; border:1px solid transparent; border-radius:9px; background:transparent; box-shadow:none; }
body[data-module="vocab"] #module > .tabs .tab.active { background:#eaf1fd; border-color:#dce7fa; color:var(--primary); }
body[data-module="vocab"] #module > .tabs .tab:hover { background:#eef3fa; transform:none; }
body[data-module="vocab"] #module > .tabs .tab .material-symbols-rounded { font-size:16px; }
body[data-module="vocab"] #module > .tabs .tab:focus { outline:none; box-shadow:none; }
body[data-module="vocab"] #module > .tabs .tab:focus-visible { outline:2px solid #729cdb; outline-offset:2px; }
.vocab-workspace { border-radius:20px; }
.vocab-workspace .reference-tabs { padding:3px; border-radius:10px; background:#f3f5f9; }
.vocab-workspace .reference-tabs .tab { font-size:12px; padding:7px 9px; border-radius:8px; box-shadow:none; }
.vocab-workspace .noun-picker-item { box-shadow:none; border-color:#e6ebf3; background:#fafbfd; }
.vocab-workspace .noun-picker-item.selected { border-color:#aac4ec; background:#eef4ff; }
.vocab-workspace .noun-example { border:0; background:#f6f8fc; border-radius:10px; }
.vocab-main .btn { box-shadow:none; }
.vocab-main .btn:hover { transform:none; }
.module-choice-dialog { width:min(600px,calc(100vw - 32px)); padding:22px; border-radius:20px; }
.module-choice-head h2 { font-size:18px; }
.module-choice-head > .btn { width:30px; height:30px; min-height:30px; padding:0; border:0; background:#f3f5f9; border-radius:9px; font-size:22px; box-shadow:none; }
.module-choice-dialog .practice-setup-grid { grid-template-columns:110px minmax(0,1fr); gap:16px; }
.module-choice-dialog .exercise-picker { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.module-choice-dialog .setup { gap:12px; margin:0 0 14px; }
.module-choice-dialog label { font-size:12px; color:#64748b; }
.module-choice-dialog select { width:100%; min-width:0; min-height:38px; height:38px; padding:7px 10px; border:1px solid #e1e7f0; border-radius:9px; background:#fafbfd; font-size:13px; color:var(--ink); }
.module-choice-dialog fieldset { margin:12px 0; padding:12px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; }
.module-choice-dialog legend { font-size:12px; color:var(--muted); padding:0 6px 0 0; }
.module-choice-dialog .checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.module-choice-dialog .check { display:flex; align-items:center; gap:8px; padding:8px 0; border:0; background:transparent; border-radius:0; box-shadow:none; }
.module-choice-dialog .check input { flex:0 0 auto; accent-color:var(--primary); }
.module-choice-dialog .small,.module-choice-dialog .sub { font-size:12px; line-height:1.6; color:var(--muted); }
.module-choice-dialog .btn.primary { min-height:38px; padding:9px 16px; border-radius:10px; font-size:13px; box-shadow:none; }
@media (min-width:1024px) and (min-height:600px) {
 body.vocab-static-learn #module.active { grid-template-rows:18px 34px 30px minmax(0,1fr); gap:8px 16px; }
}
@media (max-width:640px) {
 .module-choice-dialog .practice-setup-grid,.module-choice-dialog .checks { grid-template-columns:1fr; }
 .module-choice-dialog { padding:18px; }
}

/* Hover menu anchored below the mode button, above the existing page. */
.module-choice-banner { position:fixed; z-index:700; margin:0; width:min(600px,calc(100vw - 32px)); box-shadow:0 12px 36px rgba(25,40,65,.16); border:1px solid #dfe7f2; border-radius:16px; padding:18px; }
.module-choice-banner .module-choice-head { margin-bottom:14px; }
.module-choice-banner .module-choice-head h2 { font-size:16px; }

/* Balanced compact setup banner. */
.module-choice-banner { width:min(480px,calc(100vw - 32px)); padding:20px; border-radius:18px; background:#fff; box-shadow:0 10px 32px rgba(35,55,85,.12); }
.module-choice-banner .module-choice-head { margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid #edf0f5; }
.module-choice-banner .module-choice-head h2 { font-size:17px; font-weight:700; letter-spacing:-.02em; }
.module-choice-banner .module-choice-head > .btn { background:transparent; color:#8190a6; width:28px; height:28px; min-height:28px; }
.module-choice-banner .practice-setup-grid { grid-template-columns:110px minmax(0,1fr); gap:14px; align-items:start; }
.module-choice-banner .exercise-picker { margin:0; min-width:0; }
.module-choice-banner .exercise-picker .setup { grid-template-columns:minmax(0,1fr); gap:12px; margin:0; }
.module-choice-banner .panel > .setup { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:14px; }
.module-choice-banner .practice-setup-field label,.module-choice-banner .setup label { display:block; margin:0 0 7px; font-size:12px; font-weight:600; color:#64748b; }
.module-choice-banner select { height:40px; min-height:40px; padding:8px 11px; border:1px solid #e4e9f2; border-radius:10px; background:#f8fafc; color:#334155; font-size:13px; }
.module-choice-banner select:focus { outline:2px solid #d6e5fd; outline-offset:1px; box-shadow:none; }
.module-choice-banner .exercise-picker > .small { margin:12px 0 0; font-size:11px; line-height:1.55; color:#8391a6; }
.module-choice-banner .practice-setup-actions,.module-choice-banner .panel > .row:last-child { margin-top:18px!important; padding-top:14px; border-top:1px solid #edf0f5; }
.module-choice-banner .btn.primary { width:100%; min-width:0; min-height:40px; padding:10px 14px; font-size:13px; font-weight:600; border-radius:10px; display:flex; justify-content:center; align-items:center; gap:8px; }
.module-choice-banner .checks { grid-template-columns:1fr; gap:3px; }
.module-choice-banner .check { padding:7px 0; font-size:12px; }
@media (max-width:420px) {
 .module-choice-banner { padding:16px; }
 .module-choice-banner .practice-setup-grid { grid-template-columns:90px minmax(0,1fr); gap:10px; }
}

/* Vocabulary practice follows the question lesson's panel layout. */
.vocab-practice-page .main-pane { padding:28px 24px 48px; }
.vocab-practice-page #module.active { display:block; }
.vocab-practice-page .module-breadcrumb { margin-bottom:16px; }
.vocab-practice-page .module-head { margin-bottom:18px; }
body.vocab-practice-page #module > .tabs { margin-bottom:20px; }
.vocab-practice-page .vocab-workspace { display:block; padding:0; border:0; background:transparent; border-radius:0; }
.vocab-practice-page .vocab-exercise-workspace > .vocab-main { max-width:none; }
.vocabulary-practice-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); align-items:start; gap:20px; }
.vocabulary-practice-main,.vocabulary-practice-guide { min-width:0; }
.vocabulary-practice-main > .panel,.vocabulary-practice-guide > .panel { margin:0; padding:22px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow); }
.vocabulary-practice-guide { display:grid; gap:16px; }
.vocabulary-practice-layout h3 { margin:0 0 14px; font-size:18px; }
.practice-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.practice-heading h3 { margin:0; }
.practice-heading .btn { font-size:12px; padding:7px 11px; min-height:34px; }
.vocabulary-practice-guide .rule { padding:14px; margin:10px 0; border-radius:12px; }
.vocabulary-practice-guide .rule p { margin:7px 0 0; font-size:13px; line-height:1.65; }
.vocabulary-practice-guide .small { font-size:12px; line-height:1.65; color:var(--muted); }
.vocabulary-practice-main .qbox { margin-top:16px; padding:18px; border-radius:16px; background:#f8fafc; border:1px solid #e8edf5; }
.vocabulary-practice-main .exercise-picker { margin:0; min-width:0; }
.vocabulary-practice-main .exercise-picker .setup { grid-template-columns:1fr; }
.vocabulary-practice-main .practice-setup-grid { grid-template-columns:110px minmax(0,1fr); gap:16px; }
@media (max-width:1000px) { .vocabulary-practice-layout { grid-template-columns:1fr; } }
@media (max-width:640px) {
 .vocab-practice-page .main-pane { padding:18px 16px 36px; }
 .vocabulary-practice-main > .panel,.vocabulary-practice-guide > .panel { padding:18px; border-radius:18px; }
 .vocabulary-practice-main .practice-setup-grid { grid-template-columns:1fr; }
 .practice-heading { align-items:flex-start; flex-direction:column; }
}

/* Consistent learner pages and a directly accessible profile page. */
body[data-page="module"]:not([data-module="vocab"]) .main-pane,body[data-page="mix"] .main-pane,body[data-page="errors"] .main-pane,body[data-page="voice"] .main-pane,body[data-page="profile"] .main-pane { padding:24px 24px 48px; }
body[data-page="module"]:not([data-module="vocab"]) .module-title h1,body[data-page="mix"] h1,body[data-page="errors"] h1,body[data-page="voice"] h1,body[data-page="profile"] h1 { font-size:25px; }
body[data-page="module"]:not([data-module="vocab"]) .module-head,body[data-page="voice"] .module-head,body[data-page="profile"] .module-head { margin-bottom:18px; }
body[data-page="module"]:not([data-module="vocab"]) #module > .tabs { width:fit-content; border:0; gap:6px; margin-bottom:20px; }
body[data-page="module"]:not([data-module="vocab"]) #module > .tabs .tab { padding:7px 12px; font-size:12px; border-radius:9px; box-shadow:none; }
body[data-page="module"]:not([data-module="vocab"]) #content > .panel,body[data-page="module"]:not([data-module="vocab"]) #content .grid2 > .panel { padding:22px; border-radius:20px; }
body[data-page="mix"] .panel,body[data-page="errors"] .panel { border-radius:20px; padding:22px; }
body[data-page="module"] .rule { border-radius:12px; box-shadow:none; }
body[data-page="errors"] .result { border-radius:12px; background:#fff; }
body[data-page="voice"] .voice-settings-card { max-width:none; padding:24px; border-radius:20px; }
#profilePageContent .profile-modal-card { width:100%; max-width:none; max-height:none; overflow:visible; margin:0; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); background:#fff; transform:none; }
#profilePageContent .profile-modal-head { display:none; }
#profilePageContent .profile-modal-body { padding:24px; overflow:visible; max-height:none; }
#profilePageContent .profile-avatar-section { padding:18px; border-radius:14px; background:#f8fafc; }
#profilePageContent .profile-stats-card { border-radius:14px; background:#f8fafc; }
#profilePageContent .profile-modal-footer { background:transparent; margin-top:18px; border-top:1px solid var(--line); padding-top:18px; }
#profilePageContent .api-account-panel { margin:0 24px 24px; border-radius:14px; background:#f8fafc; }
.student-profile-footer .user-badge-btn.active { border-color:#c3d6f3; background:#eef4ff; }
@media (max-width:640px) {
 body[data-page="module"]:not([data-module="vocab"]) .main-pane,body[data-page="mix"] .main-pane,body[data-page="errors"] .main-pane,body[data-page="voice"] .main-pane,body[data-page="profile"] .main-pane { padding:18px 16px 36px; }
 #profilePageContent .profile-modal-body { padding:18px; }
 #profilePageContent .api-account-panel { margin:0 18px 18px; }
}

/* Page navigation loads normally. Only the mobile menu has a slide transition. */
@view-transition { navigation:none; }
.app,.app-body,.main-pane,.screen { view-transition-name:none!important; animation:none!important; transition:none!important; transform:none!important; }
::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) { animation:none!important; }

/* Stable page entry and identical sidebar dimensions on every learner page. */
html { scrollbar-gutter:stable; }
.screen,.screen.screen-in,.rise { animation:none!important; opacity:1; }
.screen.screen-in,.rise { transform:none!important; }
.student-sidebar,.student-sidebar * { animation:none!important; transition:none!important; }
.student-sidebar .nav-link:hover,.student-sidebar .nav-link.active,.student-sidebar .user-badge-btn:hover { transform:none!important; }
@media (min-width:769px) {
 body .app .student-sidebar { box-sizing:border-box; width:264px; padding:16px 12px; overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; }
 body .app .student-sidebar .app-header { gap:12px; padding:0 0 12px; border-bottom:1px solid var(--line); box-shadow:none; }
 body .app .student-sidebar .app-header-left { min-height:44px; padding:0 4px; }
 body .app .student-sidebar .app-header-center { min-height:40px; }
 body .app .student-sidebar .app-header-right { min-height:44px; gap:12px; }
 body .app .student-sidebar .app-nav { padding:12px 0 0; gap:8px; }
 body .app .student-sidebar .app-nav-links { gap:2px; }
 body .app .student-sidebar .nav-link { min-height:40px; padding:9px 12px; margin:0; border:0; }
 body .app .student-sidebar .nav-link .material-symbols-rounded { width:20px; flex:0 0 20px; }
 body .app .student-sidebar .student-profile-footer { padding-top:12px; }
 body .app .student-sidebar .user-badge-btn { min-height:58px; padding:10px; }
 body .app .student-sidebar .app-header.scrolled { padding:0 0 12px; box-shadow:none; }
}

/* Shared learner typography, using the compact vocabulary page as reference. */
.app .main-pane > .screen > .panel,.app .main-pane #content > .panel,.app .main-pane #content .grid2 > .panel {
 box-sizing:border-box;
 width:100%;
 min-width:0;
 border-radius:20px;
}
body .app .main-pane > .screen {
 box-sizing:border-box;
 width:100%;
 max-width:none;
 margin-inline:auto;
}
.app .main-pane { --learner-title-size:23px; --learner-panel-title-size:14px; --learner-body-size:13px; }
.app .main-pane .module-title h1 { font-size:var(--learner-title-size)!important; font-weight:700; line-height:1.3; margin:0; }
.app .main-pane .module-title .card-icon { width:36px; height:36px; min-width:36px; border-radius:12px; margin:0; }
.app .main-pane .module-title .card-icon .material-symbols-rounded { font-size:22px; }
.app .main-pane .module-title { gap:12px; }
.app .main-pane .module-breadcrumb { font-size:12px; line-height:1.5; }
.app .main-pane .panel h3,.app .main-pane .vocab-reference h3,.app .main-pane .vocab-examples h3,.app .main-pane .voice-panel-head b,.app .main-pane #apiAccountTitle { font-size:var(--learner-panel-title-size)!important; font-weight:700; line-height:1.5; }
.app .main-pane .panel,.app .main-pane .rule,.app .main-pane .result,.app .main-pane .voice-settings-card { font-size:var(--learner-body-size); line-height:1.6; }
.app .main-pane .sub,.app .main-pane .small,.app .main-pane .rule p { font-size:12px; line-height:1.6; }
.app .main-pane table { font-size:12px; line-height:1.55; }
.app .main-pane table th { font-size:11px; }
.app .main-pane .formula { font-size:20px; line-height:1.4; }
.app .main-pane .btn { font-size:12px; }
.app .main-pane .module-close { width:34px; height:34px; min-height:34px; padding:4px; }
.app .main-pane #module > .tabs { width:fit-content!important; padding:0!important; gap:6px; background:transparent!important; border:0!important; border-radius:0; box-shadow:none; }
.app .main-pane #module > .tabs .tab { min-height:30px; padding:6px 11px!important; gap:5px; font-size:12px!important; border:1px solid transparent; border-radius:9px; box-shadow:none; }
.app .main-pane #module > .tabs .tab.active { background:#eaf1fd; border-color:#dce7fa; }
.app .main-pane #module > .tabs .tab .material-symbols-rounded { font-size:16px; }
.app .main-pane .audio-toolbar { padding:10px 14px; gap:10px; margin-bottom:16px; border-radius:14px; font-size:12px; }
.app .main-pane .audio-toolbar b { font-size:13px; }
.app .main-pane .audio-toolbar .btn { min-height:34px; padding:7px 11px; }
body:not([data-module="vocab"]) .app .main-pane .module-head { margin-bottom:10px; }
body:not([data-module="vocab"]) .app .main-pane .module-breadcrumb { margin-bottom:10px; }
body:not([data-module="vocab"]) .app .main-pane #module > .tabs { margin-bottom:12px; }
@media (min-width:769px) {
 body:not([data-module="vocab"]):not([data-page="home"]) .app .main-pane { padding:12px 18px 36px; }
}
@media (max-width:640px) {
 .app .main-pane { --learner-title-size:22px; }
}

/* Guided question and case lessons share the vocabulary visual language. */
.guided-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.guided-toolbar strong { font-size:14px; }
.guided-toolbar small { display:block; margin-top:5px; font-size:11px; color:var(--muted); }
.guided-level,.guided-type-switch { display:flex; flex-wrap:wrap; gap:6px; }
.guided-level .btn,.guided-type-switch .btn { min-height:32px; padding:6px 10px; font-size:12px; }
.guided-layout { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,1.6fr) minmax(220px,1fr); gap:16px; align-items:start; }
.app .main-pane .guided-layout > .panel { margin:0; padding:18px; border:1px solid var(--line); border-radius:20px; min-width:0; background:#fff; }
.guided-menu { display:grid; gap:7px; }
.guided-lesson-link { display:flex; align-items:center; gap:10px; width:100%; padding:12px 10px; border:1px solid transparent; border-radius:10px; background:#f8fafc; color:var(--ink); text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.guided-lesson-link small { color:var(--muted); font-size:10px; }
.guided-lesson-link.active { border-color:#c3d7f5; background:#eef4ff; color:var(--primary); }
.guided-rule { padding:12px; margin-bottom:14px; border-radius:10px; background:#f1f5fc; font-size:12px; line-height:1.7; }
.guided-example { margin-top:12px; padding:14px; background:#f8fafc; border:1px solid #edf0f5; border-radius:12px; }
.guided-example > small { color:var(--muted); font-size:10px; }
.guided-example p { font-size:13px; line-height:1.8; margin:8px 0 0; }
.guided-example .guided-sentence { font-size:17px; line-height:2; }
.guided-example.advanced { background:#fffaf0; border-color:#f4e7c7; }
.guided-mark { display:inline; padding:3px 5px; border-radius:5px; font-weight:600; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.guided-mark.verb { background:#e2edff; color:#1953ac; }
.guided-mark.question,.guided-mark.object { background:#fff0c5; color:#805d19; }
.guided-mark.subject { background:#e9f5ee; color:#357052; }
.guided-mark.guided-focus { outline:2px solid #97b8e9; outline-offset:2px; }
.guided-analysis { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.guided-analysis .btn { font-size:11px; min-height:32px; padding:7px 9px; }
.guided-legend { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; font-size:10px; }
.guided-task form { display:grid; gap:10px; }
.guided-task textarea { width:100%; min-width:0; resize:vertical; min-height:100px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; font:inherit; font-size:13px; }
.guided-task form .btn { justify-self:start; }
.guided-task > .btn { margin-top:12px; }
#guidedAnswerFeedback p { font-size:12px; line-height:1.7; }
.guided-bottom { display:flex; justify-content:space-between; gap:12px; margin-top:16px; }
.guided-reference { margin-top:20px; border-top:1px solid var(--line); padding-top:16px; }
.guided-reference > summary { cursor:pointer; color:var(--muted); font-size:12px; margin-bottom:16px; }
.grammar-path-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px; margin-bottom:12px; padding:18px 20px; border:1px solid #dce7f8; border-radius:18px; background:linear-gradient(120deg,#f8fbff,#eef5ff); }
.grammar-path-overview h2 { margin:4px 0; font-size:19px; }
.grammar-path-overview p { margin:4px 0 8px; }
.grammar-path-overview > div:first-child > small { color:var(--muted); font-size:11px; }
.grammar-path-summary { display:grid; gap:5px; justify-items:end; padding:12px 14px; border:1px solid #dce7f8; border-radius:13px; background:rgba(255,255,255,.74); color:var(--ink); font-size:12px; }
.grammar-path-summary span { color:var(--muted); font-size:10px; }
.grammar-path-progress { height:6px; margin:9px 0 4px; border-radius:10px; background:#dce7f5; overflow:hidden; }
.grammar-path-progress span { display:block; height:100%; border-radius:inherit; background:var(--primary); transition:width .18s ease; }
.grammar-path-parts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:14px; }
.grammar-path-part { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; min-height:72px; padding:10px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.grammar-path-part:hover { transform:translateY(-1px); border-color:#b8cff2; }
.grammar-path-part.active { border-color:#a9c8f2; background:#edf4ff; box-shadow:inset 0 0 0 1px #d5e5fb; }
.grammar-path-part-number { display:grid; width:32px; height:32px; place-items:center; border-radius:10px; background:#eef2f8; color:#62728a; font-size:11px; font-weight:800; }
.grammar-path-part.active .grammar-path-part-number { background:var(--primary); color:#fff; }
.grammar-path-part-copy { display:grid; min-width:0; gap:4px; }
.grammar-path-part-copy strong { font-size:11px; line-height:1.3; }
.grammar-path-part-copy small { color:var(--muted); font-size:9px; line-height:1.4; }
.grammar-path-part-count { align-self:start; color:var(--muted); font-size:9px; white-space:nowrap; }
.grammar-path-step-controls { display:flex; gap:7px; }
.grammar-path-layout .grammar-path-menu { max-height:600px; overflow-y:auto; scrollbar-width:thin; }
.grammar-path-menu .guided-lesson-link { align-items:flex-start; }
.grammar-path-menu .guided-lesson-link > span { display:grid; gap:3px; }
.grammar-path-menu .guided-lesson-link > span small { color:var(--muted); font-size:10px; }
.grammar-path-menu .guided-lesson-link.active > span small { color:var(--primary); }
.grammar-path-kicker { display:block; margin-bottom:7px; color:var(--primary); font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.grammar-path-formula { display:grid; gap:8px; margin:14px 0; padding:15px 16px; border:1px solid #c8dcf8; border-left:4px solid var(--primary); border-radius:12px; background:#edf4ff; color:#153d75; }
.grammar-path-formula small { color:var(--primary); font-size:9px; font-weight:850; letter-spacing:.09em; }
.grammar-path-formula strong { font-size:clamp(15px,2vw,20px); line-height:1.55; }
.grammar-path-method { margin:15px 0; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fafbfd; }
.grammar-path-method h4 { margin:0 0 8px; font-size:12px; }
.grammar-path-method ol { margin:0; padding-left:20px; color:var(--ink); font-size:12px; line-height:1.8; }
.grammar-path-example { margin:9px 0; }
.grammar-path-mistake { margin-top:14px; padding:14px 16px; border:1px solid #f0dfc4; border-radius:12px; background:#fffaf1; font-size:12px; line-height:1.7; }
.grammar-path-mistake > strong { display:block; margin-bottom:6px; color:#8a5a15; }
.grammar-path-mistake p { margin:4px 0; }
.grammar-path-mistake-wrong { color:#a33b37; text-decoration:line-through; }
.grammar-path-mistake-right { color:#177245; font-weight:750; }
.grammar-path-next-topics { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin-top:14px; padding:12px 16px; background:#f8fafc; font-size:11px; }
.grammar-path-next-topics span { color:var(--muted); }
@media(max-width:1000px){.grammar-path-parts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.grammar-path-overview{grid-template-columns:1fr}.grammar-path-summary{justify-items:start}}
@media(max-width:640px){.grammar-path-overview{gap:10px;padding:14px}.grammar-path-overview h2{font-size:16px}.grammar-path-parts{grid-template-columns:1fr 1fr;gap:7px}.grammar-path-part{grid-template-columns:28px minmax(0,1fr);gap:7px;min-height:74px;padding:8px}.grammar-path-part-number{width:27px;height:27px}.grammar-path-part-copy strong{font-size:10px}.grammar-path-part-copy small{font-size:8px}.grammar-path-part-count{display:none}.grammar-path-layout .grammar-path-menu{max-height:230px}.grammar-path-menu .guided-lesson-link{min-height:54px;padding:8px}.grammar-path-formula{padding:12px}.grammar-path-method,.grammar-path-mistake{padding:12px}}
@media (max-width:1100px) {
 .guided-layout { grid-template-columns:minmax(180px,.8fr) minmax(0,1.6fr); }
 .guided-task { grid-column:1/-1; }
}
@media (max-width:640px) {
 .guided-layout { grid-template-columns:1fr; }
 .guided-menu { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .guided-menu h3 { grid-column:1/-1; }
 .guided-task { grid-column:1; }
 .guided-toolbar { align-items:flex-start; }
}

body[data-module="questions"] .guided-menu { max-height:560px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
body[data-module="questions"] .guided-menu .guided-lesson-link { flex-shrink:0; }
@media (max-width:640px) { body[data-module="questions"] .guided-menu { max-height:300px; } }

.exam-music-controls { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 12px; margin-bottom:16px; background:#f3f6fc; border-radius:12px; font-size:12px; color:var(--muted); }
.exam-music-controls .btn { min-height:32px; padding:6px 10px; font-size:12px; }
.exam-music-controls input[type="range"] { width:100px; accent-color:var(--primary); }

.exercise-exit-dialog { width:min(420px,calc(100vw - 32px)); padding:26px; border:1px solid #f4ddbd; border-radius:22px; background:#fff; color:var(--ink); box-shadow:0 24px 80px rgba(28,40,65,.2); }
.exercise-exit-dialog::backdrop { background:rgba(25,35,55,.4); backdrop-filter:blur(3px); }
.exercise-exit-icon { display:grid; place-items:center; width:44px; height:44px; margin-bottom:16px; background:#fff1d7; color:#b77716; border-radius:14px; font-size:26px; font-weight:700; }
.exercise-exit-dialog h2 { margin:0 0 10px; font-size:20px; }
.exercise-exit-dialog p { margin:0; font-size:13px; line-height:1.7; color:var(--muted); }
.exercise-exit-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:24px; }
.exercise-exit-actions .btn { min-height:38px; padding:9px 14px; font-size:12px; }
.exercise-exit-actions .exit-confirm { background:#c65242; color:#fff; border-color:#c65242; }
.exercise-exit-actions .exit-confirm:hover { background:#b74435; }

/* Center the exit warning independently of page layout. */
.exercise-exit-dialog { position:fixed; inset:0; margin:auto; width:min(420px,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 32px); overflow-y:auto; box-sizing:border-box; }

/* Mix setup: one main configuration panel and a compact summary. */
.mix-setup-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(250px,.9fr); gap:20px; align-items:start; }
body[data-page="mix"] .mix-config-panel,body[data-page="mix"] .mix-summary-panel,body[data-page="mix"] .mix-question-panel { margin:0; padding:22px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow); }
.mix-config-panel > h3,.mix-summary-panel > h3 { margin:0 0 8px; }
.mix-config-section { margin-top:20px; padding-top:18px; border-top:1px solid #edf0f5; }
.mix-config-section h4 { font-size:13px; margin:0 0 12px; }
.mix-controls { display:grid; grid-template-columns:110px minmax(0,1fr); gap:14px; }
.mix-controls label { display:grid; gap:7px; font-size:12px; color:var(--muted); }
.mix-controls select { min-width:0; width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; color:var(--ink); font-size:13px; }
.mix-topic-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.mix-topic-option { display:flex; align-items:flex-start; gap:8px; padding:13px 10px; border:1px solid #e7edf6; border-radius:12px; background:#fafbfd; cursor:pointer; }
.mix-topic-option:has(input:checked) { background:#eef4ff; border-color:#c5d8f4; }
.mix-topic-option input,.mix-type-option input { accent-color:var(--primary); flex-shrink:0; margin-top:3px; }
.mix-topic-option strong { display:block; font-size:12px; }
.mix-topic-option small { display:block; margin-top:5px; font-size:10px; color:var(--muted); line-height:1.5; }
.mix-type-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.mix-type-option { display:flex; gap:8px; align-items:center; padding:10px 12px; border-radius:10px; background:#f8fafc; font-size:12px; cursor:pointer; }
.mix-summary-panel { position:sticky; top:20px; }
.mix-summary-panel .eyebrow,.mix-question-heading .eyebrow { color:var(--muted); font-size:10px; letter-spacing:.08em; }
.mix-summary-panel > h3 { margin-top:10px; }
.mix-summary-count { display:flex; align-items:baseline; gap:10px; padding:18px 0; }
.mix-summary-count strong { font-size:42px; line-height:1; color:var(--primary); font-variant-numeric:tabular-nums; }
.mix-summary-count span { font-size:12px; color:var(--muted); }
.mix-summary-line { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #edf0f5; font-size:12px; color:var(--muted); }
.mix-summary-line b { color:var(--ink); }
.mix-summary-panel .btn.primary { width:100%; margin:12px 0; display:flex; align-items:center; justify-content:center; gap:8px; }
.mix-summary-panel .btn.primary .material-symbols-rounded { font-size:18px; }
#mixSetupError { font-size:12px; line-height:1.6; }
#mixSetupError:empty { display:none; }
.mix-question-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.mix-question-heading h3 { margin:6px 0 0; }
.mix-question-count { padding:7px 10px; border-radius:9px; background:#eef4ff; color:var(--primary); font-size:12px; }
.mix-progress-track { height:6px; border-radius:6px; overflow:hidden; background:#edf1f8; margin:16px 0 20px; }
.mix-progress-track span { display:block; height:100%; background:var(--primary); }
.mix-question-panel .qbox { padding:18px; border-radius:14px; border:1px solid #edf0f5; background:#f8fafc; }
@media (max-width:1100px) { .mix-topic-options { grid-template-columns:1fr; } }
@media (max-width:900px) { .mix-setup-layout { grid-template-columns:1fr; } .mix-summary-panel { position:static; } }
@media (max-width:640px) { .mix-type-options,.mix-controls { grid-template-columns:1fr; } body[data-page="mix"] .mix-config-panel,body[data-page="mix"] .mix-summary-panel,body[data-page="mix"] .mix-question-panel { padding:18px; } }

/* Keep exercise types below the count and vocabulary group controls. */
#practiceTypePicker { grid-column: 1 / -1; min-width: 0; }

/* A complete exam on one scrollable page. */
#examSheet { display:grid; gap:16px; }
#examSheet .panel { margin:0; }
.exam-question-card h3 { margin:10px 0 16px; line-height:1.6; }
.exam-options { display:grid; gap:9px; }
.exam-option { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; cursor:pointer; background:#f8fafc; }
.exam-option:has(input:checked) { border-color:var(--primary); background:var(--primary-soft); }
.exam-option input { width:16px; height:16px; margin:0; flex-shrink:0; accent-color:var(--primary); }
.exam-submit-panel { text-align:center; }
.exam-submit-panel .btn { min-width:180px; }
#examSheet .exam-unanswered { border-color:#d78a39; background:#fffaf0; }
.exam-passed > h3 { color:#21805b; }
.exam-failed > h3 { color:#ac5448; }

/* Keep regular study pages inside the shared viewport; the active exam is allowed to scroll as a full sheet. */
body[data-page] .app { height:100dvh; min-height:0; overflow:hidden; }
body[data-page] .app-body { flex:1 1 auto; height:100dvh; min-height:0; overflow:hidden; }
body[data-page] .main-pane { min-height:0; height:100%; overflow:hidden; }
body[data-page] .main-pane > .screen.active { height:100%; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.btn:active,.btn.tap { transform:none!important; }
body:is(.goethe-running,.goethe-results) .app { height:auto; min-height:100dvh; overflow:visible; }
body:is(.goethe-running,.goethe-results) .app-body { height:auto; min-height:calc(100dvh - var(--shell-h)); overflow:visible; }
body:is(.goethe-running,.goethe-results) .main-pane { height:auto; min-height:0; overflow:visible; }
body:is(.goethe-running,.goethe-results) .main-pane > .screen.active { height:auto; overflow:visible; }

.module-close { flex:none; border:1px solid var(--line); background:#fff; color:var(--muted); }
.module-close:hover { color:var(--ink); background:#f2f6fc; }

/* Compact, single-frame Goethe setup. */
#goethe #content { width:100%; max-width:none; margin:0 auto; }
#goethe #content:has(.goethe-portal-frame) { flex:1; min-height:0; }
.goethe-portal-frame { display:grid; grid-template-rows:auto auto minmax(0,1fr); gap:16px; height:100%; min-height:450px; padding:20px; }
.goethe-portal-heading,.goethe-history-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.goethe-portal-heading h2 { margin:3px 0; font-size:20px; }
.goethe-portal-heading p { margin:3px 0 0; }
.goethe-portal-heading > a,.goethe-history-heading > a { display:inline-flex; align-items:center; gap:5px; color:var(--primary); text-decoration:none; font-size:12px; white-space:nowrap; }
.eyebrow { color:var(--muted); font-size:10px; letter-spacing:.08em; }
.goethe-config-layout { grid-template-columns:minmax(0,1.45fr) minmax(220px,.8fr); gap:12px; }
.goethe-config-panel,.goethe-outline-panel { min-width:0; padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.goethe-config-panel h3,.goethe-outline-panel h3,.goethe-history h3 { margin:0 0 10px; }
.goethe-mode-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.goethe-mode-options > label { padding:10px; gap:8px; font-size:12px; }
.goethe-mode-options small { font-size:10px; line-height:1.45; }
.goethe-config-panel .setup { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.goethe-config-panel .setup label { display:grid; gap:5px; font-size:11px; color:var(--muted); }
.goethe-config-panel select { width:100%; min-width:0; padding:8px 9px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font:inherit; font-size:11px; }
#goetheTopics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; border:0; padding:8px 0; }
#goetheTopics .check { font-size:11px; }
#goetheSetupMessage { min-height:19px; margin:9px 0; }
.goethe-outline p { display:flex; justify-content:space-between; gap:8px; margin:0; padding:8px 0; font-size:11px; line-height:1.4; }
.goethe-outline p span { color:var(--muted); text-align:right; }
.goethe-outline-panel > .small { margin:8px 0 0; }
.goethe-history { min-width:0; padding-top:12px; border-top:1px solid var(--line); }
.goethe-history-heading { margin-bottom:8px; }
.goethe-history-heading h3 { margin:0; }
.goethe-history .goethe-achievements { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 8px; }
.goethe-history .goethe-achievements > div { padding:8px 10px; gap:3px; }
.goethe-history .goethe-achievements b { font-size:18px; }
.goethe-history .goethe-achievements span { font-size:10px; }
.goethe-history > #goethePortalHistory > .small { margin:4px 0 8px; }
.goethe-history-list { max-height:70px; overflow:auto; scrollbar-width:thin; }
.goethe-history-item { padding:8px 10px; font-size:11px; }
.goethe-history-item small { font-size:10px; }

/* Error journal: analysis, status and a contained list. */
#errorContent { width:100%; max-width:none; margin:0 auto; }
.error-journal { display:grid; gap:12px; }
.error-journal-top { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 20px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.error-journal-top h2 { margin:2px 0; font-size:20px; }
.error-journal-top p { margin:3px 0 0; }
.error-journal-stats { display:grid; grid-template-columns:repeat(3,minmax(70px,1fr)); gap:8px; }
.error-journal-stats > div { display:grid; justify-items:center; gap:2px; padding:8px 12px; border-radius:12px; background:#f3f7fc; }
.error-journal-stats b { color:var(--primary); font-size:20px; line-height:1.1; }
.error-journal-stats span,.error-item-footer time { color:var(--muted); font-size:10px; }
.error-analysis { display:flex; align-items:flex-start; gap:10px; padding:11px 14px; border:1px solid #d8e7fa; border-radius:14px; background:#f2f7ff; }
.error-analysis > .material-symbols-rounded { color:var(--primary); font-size:20px; }
.error-analysis b { font-size:12px; }
.error-analysis p { margin:3px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.error-list-toolbar { display:flex; align-items:center; gap:8px; }
.error-list-toolbar label { color:var(--muted); font-size:11px; }
.error-list-toolbar select { min-width:150px; padding:8px 10px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font:inherit; font-size:11px; }
.error-list-toolbar .btn { margin-left:auto; }
.error-list-scroll { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:9px; max-height:calc(100dvh - 500px); min-height:80px; overflow:auto; padding:1px 3px 4px 1px; scrollbar-width:thin; }
.error-item { min-width:0; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 4px 14px rgba(31,51,83,.05); }
.error-item.is-done { background:#f8fbf9; border-color:#d8eadf; }
.error-item-heading,.error-item-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.error-state { color:#ae5c48; font-size:10px; }
.error-item.is-done .error-state { color:#26815d; }
.error-item h3 { margin:8px 0 5px; font-size:12px; line-height:1.5; }
.error-explanation { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.error-item-footer { margin-top:9px; }
.error-item-footer .btn { min-height:30px; padding:6px 10px; font-size:10px; }
.error-empty { grid-column:1/-1; display:grid; justify-items:center; gap:6px; padding:24px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); text-align:center; }
.error-empty > .material-symbols-rounded { font-size:25px; color:#26815d; }
.error-empty b { color:var(--ink); font-size:12px; }
.error-empty p { margin:0; font-size:11px; }
@media(max-width:760px) {
 body[data-page] .app { height:auto; min-height:100dvh; overflow:visible; }
 body[data-page] .app-body,body[data-page] .main-pane { height:auto; min-height:0; overflow:visible; }
 body[data-page] .main-pane > .screen.active { height:auto; overflow:visible; }
 .goethe-config-layout { grid-template-columns:1fr; }
 .goethe-outline-panel { display:none; }
 #goethe #content:not(:has(#goetheSheet)) { height:auto; }
 .goethe-portal-frame { height:auto; min-height:0; padding:14px; }
 .goethe-mode-options { grid-template-columns:1fr 1fr; }
 .error-journal-top { align-items:flex-start; flex-direction:column; }
 .error-journal-stats { width:100%; }
 .error-list-scroll { grid-template-columns:1fr; max-height:none; overflow:visible; }
}
@media(max-width:440px) { .goethe-config-panel .setup { grid-template-columns:1fr; } .goethe-mode-options { grid-template-columns:1fr; } .goethe-history .goethe-achievements { grid-template-columns:repeat(2,minmax(0,1fr)); } .goethe-portal-heading { align-items:flex-start; flex-direction:column; gap:4px; } }

/* Compact the standalone profile into one framed viewport. */
.profile-frame { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr); grid-template-rows:auto minmax(0,1fr); align-items:stretch; gap:12px; min-height:calc(100% - 78px); padding:14px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow); }
#profilePageContent,.profile-frame .profile-modal-card { display:contents!important; }
#profilePageContent .profile-modal-body { grid-column:1; grid-row:1 / span 2; display:grid; align-content:start; gap:10px; padding:0!important; }
#profilePageContent .profile-avatar-section { min-height:0; gap:12px; padding:10px 12px; border-radius:14px; }
#profilePageContent .avatar-preview-circle { width:52px; height:52px; min-width:52px; font-size:28px; }
#profilePageContent .avatar-choose-group { min-width:0; }
#profilePageContent .section-sublabel { margin-bottom:5px; font-size:10px; }
#profilePageContent .preset-avatars { gap:4px; }
#profilePageContent .avatar-chip { width:30px; height:30px; padding:3px; font-size:16px; }
#profilePageContent .avatar-actions-row { gap:5px; margin-top:5px; }
#profilePageContent .avatar-actions-row .btn { min-height:28px; padding:5px 8px; font-size:10px; }
#profilePageContent .profile-fields-grid { gap:8px; }
#profilePageContent .profile-field { gap:4px; }
#profilePageContent .profile-field label { font-size:10px; }
#profilePageContent .profile-field input,#profilePageContent .profile-field select { min-height:34px; padding:7px 9px; font-size:11px; }
#profilePageContent .profile-stats-card { gap:6px; padding:9px; border-radius:12px; }
#profilePageContent .profile-stat-label { font-size:8px; }
#profilePageContent .profile-stat-val { font-size:11px; }
#profilePageContent .profile-modal-footer { margin-top:0; padding:8px 0 0; }
#profilePageContent .profile-modal-footer .small-btn { min-height:30px; padding:6px 9px; font-size:10px; }
#profilePageContent .footer-right-btns button[onclick="closeProfileModal()"] { display:none; }
#profilePageContent .api-account-panel { grid-column:2; grid-row:1; min-width:0; margin:0; padding:13px; border-radius:14px; }
#profilePageContent .api-account-heading h3 { margin:2px 0; font-size:13px!important; }
#profilePageContent .api-account-panel > .small { margin:5px 0 8px; font-size:10px; }
#profilePageContent .api-account-form { gap:7px; }
#profilePageContent .api-account-form label { gap:4px; font-size:10px; }
#profilePageContent .api-account-form input { min-height:33px; padding:7px 9px; font-size:11px; }
#profilePageContent .api-account-remember { display:flex!important; align-items:center; }
#profilePageContent .api-account-form .btn { min-height:32px; padding:6px 10px; }
.profile-history-panel { grid-column:2; grid-row:2; min-width:0; margin:0; padding:13px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.profile-history-panel h2 { margin:0 0 8px; font-size:13px; }
.profile-history-panel #profileExamHistory { max-height:180px; overflow:auto; scrollbar-width:thin; font-size:11px; }
.profile-history-panel .goethe-history-list { max-height:130px; }
@media(max-width:760px) {
 .profile-frame { grid-template-columns:1fr; grid-template-rows:auto; min-height:0; }
 #profilePageContent .profile-modal-body { grid-column:1; grid-row:auto; }
 #profilePageContent .api-account-panel,.profile-history-panel { grid-column:1; grid-row:auto; }
 .profile-history-panel #profileExamHistory { max-height:none; }
}

/* One shared desktop frame, with long lists scrolling inside their own area. */
@media(min-width:769px) {
 body[data-page] .app .main-pane { padding:12px 18px; }
 #goethe.screen.active,#profile.screen.active,#errors.screen.active,#mix.screen.active,#review.screen.active,#unknown.screen.active,#voice.screen.active { display:flex; flex-direction:column; gap:10px; overflow:hidden; }
 body:is(.goethe-running,.goethe-results) #goethe.screen.active { overflow:visible; }
 #goethe .module-breadcrumb,#goethe .module-head,#profile .module-breadcrumb,#profile .module-head,#errors .module-head,#mix .module-breadcrumb,#mix .module-head,#review .module-head,#unknown .module-head,#voice .module-head { flex:none; margin:0; }
 .goethe-portal-frame { box-sizing:border-box; min-height:0; }
 .goethe-history { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
 #goethePortalHistory { flex:1; min-height:0; overflow:auto; scrollbar-width:thin; }
 #goethePortalHistory .goethe-history-list { max-height:none; }
 #errorContent,#mixContent,#reviewContent,#unknownContent,#voiceSettingsContent { flex:1; min-height:0; }
 .error-journal { box-sizing:border-box; height:100%; grid-template-rows:auto auto auto minmax(0,1fr); padding:16px; border:1px solid var(--line); border-radius:20px; background:#fff; }
 .error-journal-top { padding:0 0 8px; border:0; box-shadow:none; }
 .error-list-scroll { max-height:none; min-height:0; }
 .profile-frame { flex:1; min-height:0; }
 #profilePageContent .profile-modal-body { min-height:0; overflow:auto; scrollbar-width:thin; }
 .profile-history-panel { min-height:0; overflow:auto; scrollbar-width:thin; }
 .mix-setup-layout,.mix-question-panel { box-sizing:border-box; height:100%; }
 .mix-config-panel,.mix-summary-panel,.mix-question-panel { min-height:0; overflow:auto; scrollbar-width:thin; }
 #reviewContent { display:flex; flex-direction:column; gap:10px; }
 #reviewContent > .panel { flex:1; min-height:0; overflow:auto; scrollbar-width:thin; }
 #unknownContent > .panel { box-sizing:border-box; height:100%; min-height:0; overflow:auto; scrollbar-width:thin; }
 body[data-page="module"]:not([data-module="vocab"]) #module.active { display:grid; grid-template-rows:auto auto auto minmax(0,1fr); gap:10px; overflow:hidden; }
 body[data-page="module"]:not([data-module="vocab"]) #content { display:flex; flex-direction:column; gap:10px; min-height:0; }
 .guided-layout { flex:1; min-height:0; }
 .guided-layout > .panel { min-height:0; max-height:none; overflow:auto; scrollbar-width:thin; }
  .guided-reference { flex:none; margin:0; padding-top:8px; max-height:35%; overflow:auto; }
}

/* Desktop pages use the document scrollbar; avoid clipped content and nested panels. */
@media(min-width:769px) {
 body[data-page] { min-height:100dvh; overflow-x:hidden; overflow-y:auto; }
 body[data-page] .app,body[data-page] .app-body,body[data-page] .main-pane { height:auto; min-height:0; overflow:visible; }
 body[data-page] .app-body { min-height:calc(100dvh - var(--shell-h)); align-items:stretch; }
 body[data-page] .main-pane { align-self:stretch; }
 body[data-page] .main-pane > .screen.active { height:auto; min-height:0; overflow:visible; }
 body[data-page="module"]:not([data-module="vocab"]) #module.active { height:auto; min-height:0; grid-template-rows:auto; align-content:start; overflow:visible; }
 body[data-page="module"]:not([data-module="vocab"]) #content { min-height:0; overflow:visible; }
 .guided-layout { flex:none; min-height:0; align-items:start; }
 .guided-layout > .panel { min-height:0; max-height:none; overflow:visible; }
 .guided-reference { flex:none; max-height:none; overflow:visible; }
 #goethe.screen.active,#profile.screen.active,#errors.screen.active,#mix.screen.active,#review.screen.active,#unknown.screen.active,#voice.screen.active { height:auto; min-height:0; overflow:visible; }
 #goethePortalHistory,.goethe-history { flex:none; max-height:none; overflow:visible; }
 .goethe-history-list { max-height:none; overflow:visible; }
 #errorContent,#mixContent,#reviewContent,#unknownContent,#voiceSettingsContent { flex:none; min-height:0; }
 .error-journal { height:auto; min-height:0; grid-template-rows:auto; }
 .error-list-scroll { max-height:none; min-height:0; overflow:visible; }
 .profile-frame { flex:none; min-height:0; }
 #profilePageContent .profile-modal-body,.profile-history-panel { min-height:0; max-height:none; overflow:visible; }
 .mix-setup-layout,.mix-question-panel { height:auto; }
 .mix-config-panel,.mix-summary-panel,.mix-question-panel { min-height:0; max-height:none; overflow:visible; }
 #reviewContent { display:flex; flex-direction:column; }
 #reviewContent > .panel,#unknownContent > .panel { flex:none; height:auto; min-height:0; max-height:none; overflow:visible; }
}

/* Keep the grammar controls together and visible while its lesson list scrolls. */
@media(min-width:769px) {
 body[data-page="module"]:not([data-module="vocab"]) #module.active {
  grid-template-columns:max-content minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  grid-template-areas:"crumb title tabs" "content content content";
  column-gap:16px;
  align-content:start;
 }
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-breadcrumb { grid-area:crumb; align-self:center; margin:0; white-space:nowrap; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-head { grid-area:title; align-self:center; min-width:0; margin:0; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .tabs { grid-area:tabs; align-self:center; margin:0!important; white-space:nowrap; }
 body[data-page="module"]:not([data-module="vocab"]) #module > #content { grid-area:content; min-width:0; margin-top:12px; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-breadcrumb,
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-head,
 body[data-page="module"]:not([data-module="vocab"]) #module > .tabs {
  position:sticky;
  top:8px;
  z-index:30;
  min-height:54px;
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 94%,transparent);
  backdrop-filter:blur(12px);
 }
}
@media(max-width:768px) {
 body[data-page="module"]:not([data-module="vocab"]) #module.active {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  grid-template-areas:"title tabs" "content content";
  align-content:start;
 }
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-breadcrumb { display:none; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-head { grid-area:title; align-self:center; min-width:0; margin:0; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .tabs { grid-area:tabs; align-self:center; width:auto!important; margin:0!important; white-space:nowrap; }
 body[data-page="module"]:not([data-module="vocab"]) #module > #content { grid-area:content; min-width:0; margin-top:10px; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .module-head,
 body[data-page="module"]:not([data-module="vocab"]) #module > .tabs {
  position:sticky;
  top:var(--header-h);
  z-index:30;
  min-height:48px;
  padding:5px 6px;
  background:color-mix(in srgb,var(--bg) 95%,transparent);
  backdrop-filter:blur(12px);
 }
 body[data-page="module"]:not([data-module="vocab"]) .module-title { gap:7px; }
 body[data-page="module"]:not([data-module="vocab"]) .module-title h1 { font-size:19px!important; white-space:nowrap; }
 body[data-page="module"]:not([data-module="vocab"]) .module-title .card-icon { width:30px; min-width:30px; height:30px; }
 body[data-page="module"]:not([data-module="vocab"]) .module-close { width:30px; min-height:30px; height:30px; }
 body[data-page="module"]:not([data-module="vocab"]) #module > .tabs .tab { min-height:34px; padding:6px 8px!important; font-size:11px!important; }
}
/* Mobile: keep the app bar and each page's own heading anchored during scroll. */
@media(max-width:768px) {
 body[data-page] .app .student-sidebar .app-header { position:sticky!important; top:0; z-index:210; }
 body[data-page] .main-pane > .screen > .module-breadcrumb,
 body[data-page="module"] #module > .module-breadcrumb { display:none; }
body[data-page] .main-pane > .screen > .module-head,
body[data-page="module"] #module > .module-head {
  position:sticky;
  top:var(--header-h);
  z-index:160;
  padding-block:7px;
  background:var(--bg);
 box-shadow:0 4px 10px rgba(20,44,80,.05);
 }
}

/* Keep the grammar introduction compact and let the selected lesson use the full width. */
.grammar-path-page .grammar-path-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.grammar-path-picker-backdrop[hidden] { display:none; }
.grammar-path-picker-backdrop { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:20px; background:rgba(27,39,56,.38); }
.grammar-path-picker-dialog { width:min(960px,100%); max-height:min(84vh,800px); overflow:auto; padding:22px; border:1px solid #dfe6ef; border-radius:18px; background:#fff; box-shadow:0 16px 48px rgba(25,43,69,.18); scrollbar-width:thin; scrollbar-color:#cbd5e1 transparent; }
.grammar-path-picker-dialog > h2 { margin:0 0 16px; color:#27364b; font-size:18px; }
.grammar-path-picker-dialog > h2::after { display:block; margin-top:4px; color:#78869a; content:"Chọn bài muốn tiếp tục học"; font-size:11px; font-weight:500; }
.grammar-path-picker-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.grammar-path-picker-group { min-width:0; padding:13px; border:1px solid #e3e9f1; border-radius:13px; background:#fbfcfe; }
.grammar-path-picker-group > h3 { display:flex; align-items:center; gap:8px; margin:0 0 10px; padding-bottom:9px; border-bottom:1px solid #e8edf3; color:#303e52; font-size:12px; }
.grammar-path-picker-group > h3 > span { display:grid; width:25px; height:25px; place-items:center; border-radius:8px; background:#edf2f8; color:#5d6e86; font-size:9px; font-weight:800; }
.grammar-path-picker-group > h3 > small { margin-left:auto; color:var(--muted); font-size:10px; }
.grammar-path-picker-lessons { display:grid; gap:7px; }
.grammar-path-lesson-choice { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; min-height:58px; padding:9px; border:1px solid #e4e9f0; border-radius:11px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; transition:border-color .12s ease,background .12s ease; }
.grammar-path-lesson-choice:hover { border-color:#b8c9df; background:#f8fafd; }
.grammar-path-lesson-choice:focus-visible { outline:2px solid rgba(36,105,210,.35); outline-offset:2px; }
.grammar-path-lesson-choice.active { border-color:#a9c8f2; background:#edf4ff; box-shadow:inset 0 0 0 1px #d5e5fb; }
.grammar-path-lesson-number { display:grid; width:27px; height:27px; place-items:center; border-radius:8px; background:#eef2f8; color:#62728a; font-size:10px; font-weight:800; }
.grammar-path-lesson-choice.active .grammar-path-lesson-number { background:#246bd2; color:#fff; }
.grammar-path-lesson-copy { display:grid; min-width:0; gap:4px; }
.grammar-path-lesson-copy strong { font-size:11px; line-height:1.35; }
.grammar-path-lesson-copy small { color:#79879b; font-size:9px; }
.grammar-path-lesson-status,.grammar-path-light { display:inline-grid; place-items:center; width:18px; height:18px; border:1px solid #c7d0dd; border-radius:50%; background:#f4f6f9; color:#728097; }
.grammar-path-lesson-status.is-done,.grammar-path-light.is-lit { border-color:#34a872; background:#dff6e9; color:#177245; box-shadow:0 0 9px rgba(52,168,114,.35); }
.grammar-path-lights { display:flex; gap:3px; }
.grammar-path-light { width:20px; height:20px; font-size:8px; font-weight:800; }
.grammar-path-exercises { display:grid; gap:10px; }
.grammar-path-exercise { padding:13px; border:1px solid var(--line); border-radius:12px; background:#fafbfd; }
.grammar-path-exercise.is-done { border-color:#b8e2c8; background:#f5fcf7; }
.grammar-path-exercise > div:first-child { display:flex; align-items:center; gap:10px; }
.grammar-path-exercise-number { color:var(--primary); font-size:11px; white-space:nowrap; }
.grammar-path-exercise p { margin:3px 0 8px; }
.grammar-path-exercise form { display:grid; gap:7px; }
.grammar-path-exercise textarea { min-height:48px; }
.grammar-path-exercise form .btn { justify-self:start; }
.grammar-path-study-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:7px; }
.grammar-path-study-heading .grammar-path-kicker { margin:0; }
.grammar-path-progress-badge { display:grid; min-width:54px; height:42px; place-items:center; padding:0 11px; border:1px solid #9bbef1; border-radius:12px; background:#eaf2ff; color:#155ac5; box-shadow:0 0 0 3px rgba(36,105,210,.08); font-size:17px; font-weight:900; letter-spacing:.02em; }
@media(min-width:769px) {
 .grammar-path-page {
  display:block;
 }
 .grammar-path-page > .grammar-path-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px; margin:0 0 12px; }
 .grammar-path-start { min-width:112px; }
 .grammar-path-content[hidden] { display:none; }
 .grammar-path-parts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:0 0 14px; }
 .grammar-path-page .guided-study,.grammar-path-page .guided-task { width:100%; padding:24px; }
 .grammar-path-page .grammar-path-part-copy strong { font-size:12px; }
 .grammar-path-page .grammar-path-part-copy small { font-size:10px; }
 .grammar-path-page .grammar-path-part-count { font-size:10px; }
 .grammar-path-page .guided-study h3 { font-size:20px; }
 .grammar-path-page .grammar-path-formula { margin:16px 0; padding:18px 20px; }
 .grammar-path-page .grammar-path-method,
 .grammar-path-page .grammar-path-mistake { padding:18px 20px; }
 .grammar-path-page .grammar-path-example { padding:16px; }
}
@media(max-width:768px) {
 .grammar-path-page { display:block; }
 .grammar-path-page > * { margin-bottom:12px; }
 .grammar-path-overview { grid-template-columns:minmax(0,1fr) auto; }
 .grammar-path-summary { display:none; }
 .grammar-path-parts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
 .grammar-path-picker-backdrop { padding:10px; }
 .grammar-path-picker-dialog { max-height:88vh; padding:17px 14px 14px; border-radius:15px; }
 .grammar-path-picker-groups { grid-template-columns:1fr; gap:9px; }
 .grammar-path-content[hidden] { display:none; }
 .grammar-path-page .grammar-path-layout { display:grid; grid-template-columns:minmax(0,1fr); }
}
/* Match standalone pages to the grammar header: route on the left, title and close beside it. */
@media(min-width:769px) {
 #profile.screen.active,#errors.screen.active,#unknown.screen.active,#review.screen.active,#mix.screen.active,#goethe.screen.active,#voice.screen.active {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  grid-auto-rows:auto;
  align-content:start;
  gap:10px 16px;
  overflow:visible;
 }
 #profile.screen.active > .module-breadcrumb,#errors.screen.active > .module-breadcrumb,#unknown.screen.active > .module-breadcrumb,#review.screen.active > .module-breadcrumb,#mix.screen.active > .module-breadcrumb,#goethe.screen.active > .module-breadcrumb,#voice.screen.active > .module-breadcrumb { grid-column:1; grid-row:1; align-self:center; margin:0; }
 #profile.screen.active > .module-head,#errors.screen.active > .module-head,#unknown.screen.active > .module-head,#review.screen.active > .module-head,#mix.screen.active > .module-head,#goethe.screen.active > .module-head,#voice.screen.active > .module-head { grid-column:2; grid-row:1; align-self:center; min-width:0; margin:0; }
 #profile.screen.active > :not(.module-breadcrumb):not(.module-head),#errors.screen.active > :not(.module-breadcrumb):not(.module-head),#unknown.screen.active > :not(.module-breadcrumb):not(.module-head),#review.screen.active > :not(.module-breadcrumb):not(.module-head),#mix.screen.active > :not(.module-breadcrumb):not(.module-head),#goethe.screen.active > :not(.module-breadcrumb):not(.module-head),#voice.screen.active > :not(.module-breadcrumb):not(.module-head) { grid-column:1/-1; min-width:0; }
 #profile.screen.active > .module-breadcrumb,#errors.screen.active > .module-breadcrumb,#unknown.screen.active > .module-breadcrumb,#review.screen.active > .module-breadcrumb,#mix.screen.active > .module-breadcrumb,#goethe.screen.active > .module-breadcrumb,#voice.screen.active > .module-breadcrumb,
 #profile.screen.active > .module-head,#errors.screen.active > .module-head,#unknown.screen.active > .module-head,#review.screen.active > .module-head,#mix.screen.active > .module-head,#goethe.screen.active > .module-head,#voice.screen.active > .module-head {
  position:sticky;
  top:8px;
  z-index:30;
  min-height:54px;
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 94%,transparent);
  backdrop-filter:blur(12px);
 }
}
/* Account action stays visible next to the student's profile. */
.student-profile-footer{display:flex;flex-direction:column;gap:8px}.student-logout-btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:10px 14px;border:1px solid #dce6f3;border-radius:12px;background:#fff;color:#677b96;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.student-logout-btn:hover{background:#fff4f4;color:#b14949;border-color:#efd4d4}.student-logout-btn:disabled{opacity:.6;cursor:wait}.student-logout-btn[hidden]{display:none!important}
/* Logout belongs to the account section of the personal page. */
.api-account-actions .student-logout-btn{width:auto;display:inline-flex}
