@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/manrope-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Manrope", sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Manrope", sans-serif;
  --ink: #17342f;
  --ink-2: #35544e;
  --muted: #71827e;
  --paper: #f6f3eb;
  --white: #fffdf8;
  --green: #1f695c;
  --green-dark: #123c35;
  --mint: #b8dfc9;
  --mint-soft: #e7f2e9;
  --coral: #f27c63;
  --yellow: #f3c969;
  --blue: #87b7df;
  --line: rgba(23, 52, 47, .12);
  --shadow: 0 20px 60px rgba(23, 52, 47, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, .88fr) 1.12fr;
  background:
    radial-gradient(circle at 78% 20%, rgba(243, 201, 105, .28), transparent 22%),
    radial-gradient(circle at 58% 92%, rgba(184, 223, 201, .36), transparent 25%),
    var(--paper);
}
.login-panel { display: flex; flex-direction: column; padding: 34px clamp(32px, 5.5vw, 90px); background: var(--white); overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; font-size: 21px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px 13px 13px 5px; color: #fff; background: var(--green); box-shadow: inset 0 -4px 0 rgba(0,0,0,.09); }
.brand-mark svg { width: 21px; }
.brand-image { display: inline-flex; align-items: center; overflow: hidden; background: #fff; }
.brand-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.login-brand { width: min(310px,100%); height: 76px; border-radius: 8px; }
.login-card { width: 100%; max-width: 440px; margin: auto; padding: 54px 0 60px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
.login-card h1 { margin: 17px 0 14px; font: 750 clamp(42px, 5vw, 68px)/1.04 var(--font-apple); letter-spacing: -.045em; }
.login-card > p { max-width: 390px; color: var(--muted); line-height: 1.75; font-size: 14px; }
.login-form { margin-top: 34px; display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.input-wrap input, .field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); outline: none; transition: .2s ease;
}
.field .input-wrap input { height: 54px; padding: 0 48px; }
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { min-height: 130px; padding: 14px; resize: vertical; }
.input-wrap input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,105,92,.10); }
.show-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; }
.login-options { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 16px; font-size: 12px; color: var(--muted); }
.remember { display: flex; gap: 8px; align-items: center; }
.remember input { accent-color: var(--green); }
.btn { border: 0; border-radius: 13px; min-height: 46px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 24px rgba(31,105,92,.22); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--mint-soft); color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-coral { background: var(--coral); color: #fff; }
.login-submit { min-height: 54px; margin-top: 2px; }
.demo-access { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.demo-access strong { color: var(--ink); }
.login-visual { position: relative; overflow: hidden; margin: 18px; border-radius: 30px; background: var(--green-dark); color: #fff; }
.visual-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.25) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.25) 1px,transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom right, #000, transparent 80%); }
.visual-orbit { position: absolute; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -160px; top: -110px; }
.visual-orbit::before, .visual-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; inset: 55px; }
.visual-orbit::after { inset: 115px; }
.visual-content { position: relative; z-index: 2; min-height: calc(100vh - 36px); padding: 8vh clamp(38px, 5vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.visual-content h2 { max-width: 650px; margin: 24px 0 20px; font: 750 clamp(42px, 5.7vw, 83px)/1.03 var(--font-apple); letter-spacing: -.048em; }
.visual-content > p { max-width: 560px; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.8; }
.skill-cloud { position: relative; height: 270px; margin-top: 36px; }
.skill-bubble { position: absolute; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 99px; font-size: 12px; font-weight: 800; backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.13); animation: float 5s ease-in-out infinite; }
.skill-bubble span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.skill-bubble svg { width: 17px; }
.bubble-1 { left: 2%; top: 8%; background: rgba(242,124,99,.22); }
.bubble-1 span { background: var(--coral); }
.bubble-2 { left: 43%; top: 0; background: rgba(184,223,201,.15); animation-delay: -1.2s; }
.bubble-2 span { background: var(--green); }
.bubble-3 { left: 16%; top: 48%; background: rgba(243,201,105,.17); animation-delay: -2.1s; }
.bubble-3 span { background: #c89525; }
.bubble-4 { left: 57%; top: 55%; background: rgba(135,183,223,.17); animation-delay: -.7s; }
.bubble-4 span { background: #3975a7; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* White navy platform system */
:root{color-scheme:light;--bg:#f6f8fc;--sidebar:#081b3a;--surface-1:#fff;--surface-2:#eef3f9;--surface-3:#dce7f5;--line:#d8e1ed;--text:#10213d;--text-secondary:#41527a;--text-muted:#5b6c89;--blue:#1e5dbd;--blue-strong:#174a98;--orange:#f26a2e;--success:#16794a;--danger:#b42318;--ink:var(--text);--ink-2:var(--text-secondary);--muted:var(--text-secondary);--paper:var(--bg);--white:#fff;--green:var(--blue);--green-dark:var(--sidebar);--mint:var(--blue);--mint-soft:var(--surface-2);--coral:var(--orange);--yellow:#f5c451;--shadow:0 12px 30px rgba(8,27,58,.08);--font-ui:"Manrope",system-ui,sans-serif;--font-apple:var(--font-ui)}
html,body,#app{background:var(--bg);color:var(--text);overflow-x:hidden}body{font-size:14px;line-height:1.55}h1,h2,h3,h4,h5,h6,strong{color:var(--text)}p,small,.panel-subtitle{color:var(--text-secondary)}
.app-shell{grid-template-columns:260px minmax(0,1fr);background:var(--bg)}.sidebar{width:260px;background:var(--sidebar)!important;border-right:1px solid #183762}.topbar{background:#fff!important;border-color:var(--line)!important}.content{max-width:1480px!important;background:var(--bg)!important;padding:clamp(22px,3vw,44px)}.nav-label{font-size:12px;color:#afc0d8}.nav-btn{min-height:44px;height:auto;color:#d3deec!important;font-size:13px}.nav-btn.active{background:var(--blue)!important;color:#fff!important}
.panel,.next-lesson-card,.assignment-mini-card,.practice-skill-card,.test-card,.feedback-card,.admin-tabs{background:#fff!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important}.field label,.admin-field label{font-size:14px}.mini-assignment-main>p,.practice-skill-copy>p,.next-lesson-card p{font-size:12px}.student-table th{font-size:12px}.toast{left:14px;right:14px;bottom:max(14px,env(safe-area-inset-bottom));max-width:none;z-index:70;font-size:13px}.sidebar-overlay{z-index:60}.sidebar{z-index:61}.drawer-open{overflow:hidden}.demo-ai-note{display:inline-flex;padding:8px 10px;border:1px solid #f0c47a;border-radius:8px;background:#fff8e1;color:#805b00;font-size:12px;font-weight:800}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 26px 18px; z-index: 20; display: flex; flex-direction: column; background: var(--green-dark); color: #fff; }
.sidebar .brand { padding: 0 10px 26px; }
.sidebar-brand { width: 100%; height: 52px; margin-bottom: 22px; padding: 3px 5px; border-radius: 8px; }
.sidebar .brand-mark { background: var(--coral); }
.nav-label { margin: 16px 12px 8px; color: rgba(255,255,255,.62); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav-btn { position: relative; width: 100%; height: 45px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.63); font-weight: 700; font-size: 12px; text-align: left; transition: .2s ease; }
.nav-btn svg { width: 18px; flex: 0 0 auto; }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-btn.active { color: #fff; background: rgba(255,255,255,.11); }
.nav-btn.active::after { content: ""; position: absolute; right: -18px; width: 4px; height: 23px; border-radius: 4px 0 0 4px; background: var(--coral); }
.sidebar-bottom { margin-top: auto; padding-top: 12px; }
.mini-profile { display: flex; gap: 11px; align-items: center; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.14); }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--yellow); color: var(--green-dark); font-weight: 800; }
.mini-profile strong { display: block; max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.sidebar .mini-profile strong { color: #fff; }
.sidebar .mini-profile small { color: rgba(255,255,255,.92); font-size: 10px; }
.mini-profile small { color: rgba(255,255,255,.92); font-size: 10px; }
.logout-btn { margin-left: auto; width: 44px; height: 44px; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #fff; }
.logout-btn:hover { color: #fff; background: rgba(255,255,255,.1); border-radius: 12px; }
.sidebar .btn-outline { color: #dbe6f5; border-color: rgba(255,255,255,.4); }
.sidebar .btn-outline:hover { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); }
.sidebar .mini-profile { color: #fff; }
.sidebar-bottom .workspace-back { width: 100%; }
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 99px; }
.logout-btn svg { width: 16px; }
.main { grid-column: 2; min-width: 0; }
.topbar { height: 74px; padding: 0 clamp(22px,4vw,58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(246,243,235,.88); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 15; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); }
.mobile-menu svg { width: 23px; }
.topbar-title { font: 700 20px/1.2 var(--font-apple); letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.icon-btn svg { width: 17px; }
.notification-btn { position: relative; }
.notification-btn i { position: absolute; right: 5px; top: 4px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #ff5a1f; }
.top-avatar { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#dbe8ff,#9fc0f4); color: #0b2a63; font-size: 11px; font-weight: 800; }
.top-streak { display: flex; gap: 8px; align-items: center; padding: 0 13px; height: 39px; border-radius: 12px; background: #fff1d5; font-size: 11px; font-weight: 800; }
.top-streak svg { width: 16px; color: #d58221; }
.content { padding: clamp(25px,4vw,52px) clamp(22px,4vw,58px) 70px; max-width: 1540px; margin: 0 auto; }
.page { /* ROOT FIX (washed-out grading screenshots): removed `reveal .45s ease both` fade. Prior rule restarted a 0.45s opacity fade on every render() (which rebuilds #app), so non-initial views like the pending Writing grading panel were photographed/snapped at ~0.18 opacity (whole main content faded). `.page` must never render below opacity:1. */ }
@keyframes reveal { from { opacity: 0; } }
.page-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 28px; }
.page-heading h1 { margin: 8px 0 6px; font: 750 clamp(34px,4vw,53px)/1.04 var(--font-apple); letter-spacing: -.042em; }
.page-heading p { margin: 0; max-width: 630px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-kicker { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel h3 { margin: 8px 0 6px; font-size: 16px; }
.panel-subtitle { color: var(--muted); font-size: 11px; line-height: 1.6; }
.dashboard-page .page-heading { align-items: center; margin-bottom: 30px; }
.dashboard-page .page-heading > div { max-width: 820px; }
.dashboard-primary-action { min-width: 150px; flex: 0 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 0 0 20px; }
.stat-card { min-height: 134px; padding: 21px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(23,52,47,.08); }
.stat-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; margin-bottom: 15px; }
.stat-icon svg { width: 17px; }
.stat-card:nth-child(1) .stat-icon { background: #fff0ec; color: var(--coral); }
.stat-card:nth-child(2) .stat-icon { background: #eef6fd; color: #4d86b6; }
.stat-card:nth-child(3) .stat-icon { background: #fdf3d9; color: #b17b14; }
.stat-card:nth-child(4) .stat-icon { background: var(--mint-soft); color: var(--green); }
.stat-card strong { display: block; margin-top: auto; font: 750 27px/1.15 var(--font-apple); letter-spacing: -.035em; }
.stat-card small { color: var(--muted); font-size: 10px; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,.8fr); gap: 20px; align-items: stretch; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.dashboard-bottom > .panel { min-height: 325px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.continue-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.continue-item:first-of-type { border-top: 0; }
.lesson-number { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--mint-soft); color: var(--green); font: 750 18px/1 var(--font-apple); letter-spacing: -.03em; }
.continue-item strong { display: block; font-size: 12px; margin-bottom: 5px; }
.continue-item small { color: var(--muted); font-size: 9px; }
.item-progress { width: 90px; height: 5px; overflow: hidden; border-radius: 99px; background: #e7e8e4; }
.item-progress span { display: block; height: 100%; background: var(--coral); }
.activity-panel { display: flex; flex-direction: column; }
.activity-total { padding: 7px 10px; border-radius: 99px; background: #fff1d5; color: #93671a; font-size: 9px; font-weight: 800; white-space: nowrap; }
.week-chart { height: 190px; display: flex; align-items: stretch; gap: 12px; padding-top: 20px; margin-top: auto; }
.bar-wrap { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.bar { position: relative; flex: 0 0 auto; width: 100%; min-height: 7px; border-radius: 8px 8px 3px 3px; background: var(--mint); transition: height .5s ease; }
.bar.today { background: var(--coral); }
.bar-wrap small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }

/* Dashboard follows the compact navy, blue and orange visual language of the reference. */
.dashboard-mode .sidebar { background: #061a3d; }
.dashboard-mode .sidebar .brand-mark { background: #fff; color: #1354d9; box-shadow: none; }
.dashboard-mode .nav-btn { color: rgba(255,255,255,.72); }
.dashboard-mode .nav-btn:hover { background: rgba(43,101,221,.18); color: #fff; }
.dashboard-mode .nav-btn.active { background: linear-gradient(135deg,#1f64e9,#1550dc); color: #fff; box-shadow: 0 10px 24px rgba(7,66,181,.35); }
.dashboard-mode .nav-btn.active::after { display: none; }
.dashboard-mode .avatar { background: #d9e7ff; color: #10449d; border-radius: 50%; }
.dashboard-mode .topbar { background: #fff; border-bottom-color: #e3e8f1; backdrop-filter: none; }
.dashboard-mode .top-streak { background: #fff; border: 1px solid #e5e9f1; color: #071a3c; }
.dashboard-mode .icon-btn { border-color: #e3e8f1; background: #fff; color: #102449; border-radius: 50%; }
.dashboard-mode .content { max-width: none; min-height: calc(100vh - 74px); padding-top: 25px; background: #f4f7fc; }
.dashboard-page { color: #071a3c; }
.dashboard-greeting { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.dashboard-date { display: block; margin-bottom: 6px; color: #596a87; font-size: 11px; font-weight: 600; }
.dashboard-greeting h1 { margin: 0 0 5px; font: 750 clamp(24px,2.2vw,31px)/1.08 var(--font-apple); letter-spacing: -.035em; }
.dashboard-greeting p { margin: 0; color: #677690; font-size: 11px; }
.dashboard-route-link { min-height: 44px; padding: 0; display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #1759d7; font-size: 11px; font-weight: 800; white-space: nowrap; }
.dashboard-route-link svg { width: 16px; }
.dashboard-lessons { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(300px,1fr); gap: 18px; }
.next-lesson-card, .listening-lesson-card { height: 222px; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(18,44,84,.10); }
.next-lesson-card { display: grid; grid-template-columns: minmax(280px,1fr) 45%; }
.next-lesson-copy { position: relative; z-index: 2; padding: 20px 0 18px 20px; }
.lesson-chip { display: inline-flex; padding: 5px 8px; border-radius: 4px; background: #edf3ff; color: #1654c8; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.next-lesson-card h2, .listening-lesson-card h2 { margin: 10px 0 5px; font: 750 clamp(19px,2vw,25px)/1.08 var(--font-apple); letter-spacing: -.035em; }
.next-lesson-card p, .listening-lesson-card p { margin: 0; color: #65738c; font-size: 10px; font-weight: 600; }
.next-lesson-card p i { display: inline-block; width: 3px; height: 3px; margin: 0 8px 2px; border-radius: 50%; background: #8b98ad; }
.lesson-percentage { margin-top: 9px; display: flex; align-items: baseline; gap: 8px; }
.lesson-percentage strong { color: #1659d7; font: 750 22px/1 var(--font-apple); letter-spacing: -.035em; }
.lesson-percentage span { color: #75829a; font-size: 9px; font-weight: 600; }
.lesson-progress { width: min(280px,90%); height: 7px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #dfe5ed; }
.lesson-progress span { display: block; height: 100%; border-radius: inherit; background: #185bdf; }
.dashboard-orange-btn, .dashboard-outline-btn { height: 38px; margin-top: 14px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.dashboard-orange-btn { border: 0; background: #ff5a1f; color: #fff; box-shadow: 0 7px 15px rgba(255,90,31,.22); }
.dashboard-outline-btn { border: 1.5px solid #1d60dd; background: #fff; color: #1758d2; }
.dashboard-orange-btn svg, .dashboard-outline-btn svg { width: 15px; }
.restaurant-illustration { display: flex; align-items: flex-end; justify-content: flex-end; min-width: 0; }
.restaurant-illustration svg { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.listening-lesson-card { padding: 18px; display: grid; grid-template-columns: minmax(160px,1fr) 43%; gap: 4px; }
.listening-lesson-card h2 { font-size: clamp(18px,1.7vw,23px); }
.listening-lesson-card .lesson-progress { width: 100%; max-width: 175px; }
.headphones-illustration { min-width: 0; display: flex; align-items: center; justify-content: center; }
.headphones-illustration svg { width: 100%; max-width: 175px; }
.dashboard-section-title { margin: 16px 0 9px; font: 750 17px/1.2 var(--font-apple); letter-spacing: -.025em; }
.dashboard-activity-card { min-height: 166px; margin-top: 16px; padding: 18px; display: grid; grid-template-columns: 190px minmax(0,1fr) 170px; gap: 22px; align-items: stretch; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(18,44,84,.08); }
.activity-summary h3 { margin: 0 0 7px; font-size: 13px; }
.activity-summary p { margin: 0 0 15px; color: #748198; font-size: 10px; }
.activity-summary > strong { color: #1659d7; font: 750 31px/1 var(--font-apple); letter-spacing: -.04em; }
.activity-summary > strong span { font-size: 11px; font-weight: 650; letter-spacing: 0; }
.dashboard-chart { min-width: 0; display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.chart-scale { padding-bottom: 19px; display: flex; flex-direction: column; justify-content: space-between; color: #748198; font-size: 8px; text-align: right; }
.chart-bars { height: 130px; padding: 3px 7px 0; display: flex; align-items: flex-end; gap: clamp(10px,2vw,28px); border-bottom: 1px solid #dfe5ed; background-image: repeating-linear-gradient(to bottom,#e5eaf2 0 1px,transparent 1px 42px); }
.chart-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart-column { width: min(31px,100%); min-height: 5px; border-radius: 4px 4px 0 0; background: #1b5dde; }
.chart-column.today { background: #ff5a1f; }
.chart-day small { height: 19px; padding-top: 5px; color: #53617a; font-size: 8px; }
.chart-day:has(.today) small { color: #ff5a1f; font-weight: 800; }
.streak-summary { padding-left: 20px; display: flex; flex-direction: column; align-items: center; border-left: 1px solid #e3e8f0; }
.streak-summary > strong { font-size: 11px; white-space: nowrap; }
.streak-ring { --streak: 82; width: 92px; height: 92px; margin-top: 14px; position: relative; display: grid; place-items: center; border-radius: 50%; color: #ff5a1f; background: conic-gradient(#ff5a1f calc(var(--streak)*1%),#ffe3d8 0); }
.streak-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.streak-ring svg { position: relative; z-index: 1; width: 32px; fill: #ff5a1f; }

.curriculum-page { color: #071a3c; }
.curriculum-section-heading { margin: 0 0 13px; font: 750 20px/1.2 var(--font-apple); letter-spacing: -.025em; }
.current-program-card { min-height: 290px; display: grid; grid-template-columns: minmax(390px,.95fr) minmax(360px,1.05fr); overflow: hidden; border: 1px solid #dfe5ef; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(18,44,84,.09); }
.current-program-copy { position: relative; z-index: 2; padding: 20px; }
.current-program-badge { display: inline-flex; padding: 5px 10px; border-radius: 5px; background: #1760df; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.current-program-copy h2 { margin: 10px 0 7px; font: 750 clamp(23px,2.2vw,31px)/1.08 var(--font-apple); letter-spacing: -.04em; }
.current-program-description { margin: 0; color: #66758e; font-size: 11px; }
.current-program-meta { margin-top: 17px; display: flex; align-items: center; gap: 14px; color: #52627e; font-size: 10px; font-weight: 650; }
.current-program-meta span { display: inline-flex; align-items: center; gap: 7px; }
.current-program-meta svg { width: 18px; color: #365887; }
.current-program-meta i { width: 1px; height: 18px; background: #d8e0ec; }
.current-program-progress { margin-top: 17px; display: flex; align-items: center; gap: 14px; }
.current-program-progress > strong { flex: 0 0 auto; color: #1659d7; font: 750 38px/1 var(--font-apple); letter-spacing: -.045em; }
.current-progress-track { width: min(330px,72%); height: 8px; overflow: hidden; border-radius: 99px; background: #dfe5ed; }
.current-progress-track span { display: block; height: 100%; border-radius: inherit; background: #175cdf; }
.completed-lessons { margin: 8px 0 0; color: #42516c; font-size: 10px; font-weight: 650; }
.current-program-actions { margin-top: 17px; display: flex; align-items: center; gap: 16px; }
.program-primary-btn { min-width: 140px; height: 39px; border: 0; border-radius: 6px; background: #ff5a1f; color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 7px 15px rgba(255,90,31,.2); }
.program-text-btn { height: 39px; padding: 0 12px; border: 0; background: transparent; color: #1555ca; font-size: 10px; font-weight: 800; }
.current-program-art { min-width: 0; padding: 13px 20px 0 0; display: flex; align-items: flex-end; justify-content: center; }
.current-program-art svg { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.other-programs-heading { margin: 21px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.other-programs-heading h2 { margin: 0; font: 750 19px/1.2 var(--font-apple); letter-spacing: -.025em; }
.other-programs-heading button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #1555ca; font-size: 10px; font-weight: 800; }
.other-programs-heading svg { width: 15px; }
.program-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.program-card { min-width: 0; padding: 13px 15px 14px; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; box-shadow: 0 3px 9px rgba(18,44,84,.08); }
.program-art { height: 105px; display: flex; align-items: center; justify-content: center; }
.program-art svg { width: 100%; height: 100%; max-width: 220px; }
.program-level { display: inline-flex; margin-top: 1px; padding: 4px 8px; border-radius: 4px; background: #1760df; color: #fff; font-size: 8px; font-weight: 800; }
.program-card h3 { margin: 7px 0 5px; overflow: hidden; color: #071a3c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.program-card > p { margin: 0; color: #607089; font-size: 9px; font-weight: 600; }
.program-outline-btn { width: 100%; height: 34px; margin-top: 10px; border: 1.5px solid #2a68dc; border-radius: 5px; background: #fff; color: #1656cc; font-size: 9px; font-weight: 800; }

.skills-assignment-page { color: #071a3c; }
.skills-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.skills-page-intro h1 { margin: 0 0 6px; font: 750 25px/1.1 var(--font-apple); letter-spacing: -.035em; }
.skills-page-intro p { margin: 0; max-width: 700px; color: #4d5e7c; font-size: 10px; line-height: 1.6; }
.assignment-sync { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cfe5d8; border-radius: 99px; background: #eff9f3; color: #218751; font-size: 9px; font-weight: 800; white-space: nowrap; }
.assignment-sync svg { width: 14px; }
.skills-section-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.skills-section-heading > div { display: flex; align-items: baseline; gap: 10px; }
.skills-section-heading h2 { margin: 0; font: 750 18px/1.2 var(--font-apple); letter-spacing: -.025em; }
.skills-section-heading span { color: #5c6d89; font-size: 9px; }
.skills-section-heading > button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #1555ca; font-size: 9px; font-weight: 800; }
.skills-section-heading > button svg { width: 14px; }
.featured-assignment { min-height: 232px; padding: 20px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 28px; border: 1px solid #dfe5ef; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(18,44,84,.09); }
.featured-assignment-copy { min-width: 0; }
.assignment-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.assignment-labels > span { min-height: 23px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; font-size: 8px; font-weight: 800; }
.assignment-labels svg { width: 11px; }
.status-in-progress { background: #eaf1ff; color: #1657d0; text-transform: uppercase; }
.status-new { display: inline-flex; align-items: center; width: fit-content; padding: 4px 11px; border-radius: 99px; border: 1px solid transparent; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.st-ready { background: #eaf1ff; color: #1657d0; border-color: #cdddf7; }
.st-submitted, .st-reviewed { background: #e9f8ef; color: #1e7a45; border-color: #c6e8d4; }
.st-archived, .st-draft { background: #eef1f5; color: #5b6b85; border-color: #dde3ec; }
.status-completed { background: #e9f8ef; color: #22884f; }
.assignment-scope { background: #f2f4f8; color: #66758c; }
.featured-assignment-copy h2 { margin: 11px 0 6px; font: 750 clamp(21px,2vw,27px)/1.08 var(--font-apple); letter-spacing: -.038em; }
.featured-assignment-copy > p { margin: 0; max-width: 620px; color: #69778e; font-size: 10px; line-height: 1.55; }
.assignment-meta { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: #586984; font-size: 9px; font-weight: 650; }
.assignment-meta span { display: inline-flex; align-items: center; gap: 6px; }
.assignment-meta svg { width: 14px; color: #31578e; }
.assignment-progress-row { margin-top: 13px; display: flex; align-items: center; gap: 11px; }
.assignment-progress-row > strong { color: #1659d7; font: 750 22px/1 var(--font-apple); }
.assignment-progress { width: min(270px,52%); height: 7px; overflow: hidden; border-radius: 99px; background: #dfe5ed; }
.assignment-progress span { display: block; height: 100%; border-radius: inherit; background: #175cdf; }
.assignment-progress-row small { color: #7b889d; font-size: 8px; }
.assignment-primary-btn { height: 38px; margin-top: 13px; padding: 0 15px; display: inline-flex; align-items: center; gap: 14px; border: 0; border-radius: 6px; background: #ff5a1f; color: #fff; font-size: 9px; font-weight: 800; box-shadow: 0 7px 15px rgba(255,90,31,.2); }
.assignment-primary-btn svg { width: 14px; }
.assigned-skill-map { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; border-radius: 10px; background: #f3f7fd; }
.map-caption { grid-column: 1 / -1; margin-bottom: 1px; color: #66758d; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.assigned-skill { min-width: 0; padding: 9px; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 7px; border: 1px solid #dfe6f1; border-radius: 8px; background: #fff; }
.assigned-skill > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #eaf1ff; color: #1558d4; }
.assigned-skill > span svg { width: 15px; }
.assigned-skill > div { min-width: 0; }
.assigned-skill strong, .assigned-skill small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assigned-skill strong { font-size: 9px; }
.assigned-skill small { margin-top: 2px; color: #8a96a8; font-size: 7px; }
.assigned-skill > svg { width: 13px; color: #21a05b; }
.assigned-skill.done { border-color: #bfe5ce; background: #f5fcf7; }
.assigned-skill.done > span { background: #e1f5e9; color: #218c50; }
.assignment-mini-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assignment-mini-card { min-height: 100px; padding: 14px; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid #dfe5ef; border-radius: 10px; background: #fff; box-shadow: 0 3px 9px rgba(18,44,84,.07); }
.mini-assignment-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 11px; }
.mini-assignment-icon svg { width: 23px; }
.mini-assignment-icon.blue { color: #1659d7; background: #eaf1ff; }
.mini-assignment-icon.orange { color: #ff5a1f; background: #fff0e9; }
.mini-assignment-main { min-width: 0; }
.mini-assignment-main h3 { margin: 7px 0 4px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mini-assignment-main > p { margin: 0; color: #54657e; font-size: 8px; }
.mini-assignment-btn { height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #2766dc; border-radius: 5px; background: #fff; color: #1656cf; font-size: 8px; font-weight: 800; }
.mini-assignment-btn svg { width: 12px; }
.assignment-result { text-align: center; }
.assignment-result strong { color: #218751; font: 750 23px/1 var(--font-apple); }
.assignment-result small { color: #75839a; font-size: 8px; }
.assignment-result button { display: block; margin: 6px auto 0; border: 0; background: transparent; color: #1555ca; font-size: 8px; font-weight: 800; }
.practice-heading { margin-top: 17px; }
.practice-skill-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.practice-skill-card { min-width: 0; min-height: 126px; padding: 13px; display: grid; grid-template-columns: 42px minmax(0,1fr) 44px; align-items: start; gap: 10px; border: 1px solid #dfe5ef; border-radius: 10px; background: #fff; box-shadow: 0 3px 9px rgba(18,44,84,.07); }
.practice-skill-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; }
.practice-skill-icon svg { width: 20px; }
.practice-skill-icon.color-1 { color: #1659d7; background: #eaf1ff; }
.practice-skill-icon.color-2 { color: #ff5a1f; background: #fff0e9; }
.practice-skill-icon.color-3 { color: #28a65f; background: #e9f8ef; }
.practice-skill-icon.color-4 { color: #d59b00; background: #fff8df; }
.practice-skill-copy { min-width: 0; }
.practice-skill-copy h3 { margin: 1px 0 4px; font-size: 12px; }
.practice-skill-copy > p { height: 30px; margin: 0; overflow: hidden; color: #55667f; font-size: 8px; line-height: 1.45; }
.practice-meta { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; color: #76849a; font-size: 7px; }
.practice-meta strong { color: #071a3c; font-size: 8px; }
.practice-skill-card > button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d6e0ef; border-radius: 50%; background: #fff; color: #1658d3; }
.practice-skill-card > button svg { width: 16px; }

.course-toolbar { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.search { position: relative; flex: 1; max-width: 420px; }
.search svg { position: absolute; width: 16px; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); outline: none; }
.level-pill { padding: 10px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 10px; font-weight: 800; }
.level-pill.active { background: var(--green); color: #fff; border-color: var(--green); }
.module-list { display: grid; gap: 16px; }
.module-card { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); transition: .2s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.module-art { height: 88px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 17px; }
.module-art svg { width: 31px; position: relative; z-index: 1; }
.module-art::after { content: ""; position: absolute; width: 70px; height: 70px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; right: -20px; top: -22px; }
.module-card:nth-child(4n+1) .module-art { background: #f7c0b5; color: #7c3728; }
.module-card:nth-child(4n+2) .module-art { background: #bdd8ee; color: #295b82; }
.module-card:nth-child(4n+3) .module-art { background: #f4d88e; color: #795813; }
.module-card:nth-child(4n) .module-art { background: #b8dfc9; color: #215e50; }
.module-info .meta { display: flex; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 700; }
.module-info h3 { margin: 8px 0 7px; font-size: 15px; }
.module-info p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.module-progress { min-width: 120px; text-align: right; }
.module-progress strong { display: block; margin-bottom: 7px; font-size: 11px; }
.module-progress button { margin-top: 12px; }

.skill-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 22px; }
.diagnostic { padding: 28px; border-radius: 25px; color: #fff; background: var(--green); }
.diagnostic h2 { margin: 13px 0 8px; font: 750 31px/1.08 var(--font-apple); letter-spacing: -.04em; }
.diagnostic p { color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.7; }
.diagnostic-meta { display: flex; gap: 18px; margin: 22px 0; color: var(--mint); font-size: 10px; }
.test-tip { padding: 27px; border-radius: 25px; background: #fff1d5; }
.test-tip .tip-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--yellow); }
.test-tip .tip-icon svg { width: 21px; }
.test-tip h3 { margin: 20px 0 8px; font-size: 15px; }
.test-tip p { color: #826b3c; font-size: 10px; line-height: 1.7; }
.skill-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.skill-card { min-height: 270px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--white); transition: .25s ease; }
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.skill-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; }
.skill-icon svg { width: 23px; }
.skill-card:nth-child(1) .skill-icon { background: #eef6fd; color: #3975a7; }
.skill-card:nth-child(2) .skill-icon { background: #fff0ec; color: var(--coral); }
.skill-card:nth-child(3) .skill-icon { background: #fff4d9; color: #ac7615; }
.skill-card:nth-child(4) .skill-icon { background: var(--mint-soft); color: var(--green); }
.skill-card h3 { margin: 20px 0 7px; font-size: 15px; }
.skill-card p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.skill-score { display: flex; justify-content: space-between; margin-top: auto; margin-bottom: 14px; color: var(--muted); font-size: 9px; }
.skill-score strong { color: var(--ink); font-size: 11px; }

.test-screen { max-width: 860px; margin: 0 auto; }
.test-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.back-btn { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.back-btn svg { width: 17px; }
.test-step { color: var(--muted); font-size: 10px; font-weight: 800; }
.test-card { padding: clamp(25px,5vw,48px); border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.test-card h2 { margin: 12px 0 8px; font: 750 clamp(28px,4vw,42px)/1.08 var(--font-apple); letter-spacing: -.04em; }
.test-card > p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.audio-box { margin: 26px 0; padding: 26px; display: flex; align-items: center; gap: 18px; border-radius: 20px; background: var(--green-dark); color: #fff; }
.play-btn { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--coral); color: #fff; }
.play-btn svg { width: 21px; }
.audio-wave { display: flex; gap: 4px; align-items: center; height: 32px; flex: 1; }
.audio-wave i { display: block; width: 3px; border-radius: 4px; background: rgba(255,255,255,.65); }
.audio-wave.playing i { animation: wave .65s ease-in-out infinite alternate; }
.audio-wave i:nth-child(3n) { height: 24px; animation-delay: -.2s; }
.audio-wave i:nth-child(3n+1) { height: 12px; animation-delay: -.4s; }
.audio-wave i:nth-child(3n+2) { height: 18px; }
@keyframes wave { to { height: 30px; } }
.options { display: grid; gap: 10px; margin: 22px 0; }
.option { padding: 15px 17px; display: flex; gap: 13px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 11px; font-weight: 700; text-align: left; }
.option:hover, .option.selected { border-color: var(--green); background: var(--mint-soft); }
.option-letter { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--paper); font-size: 10px; }
.reading-passage { margin: 22px 0; padding: 22px; border-left: 4px solid var(--yellow); border-radius: 0 15px 15px 0; background: #fff8e7; color: var(--ink-2); font-size: 12px; line-height: 1.9; }
.writing-area { width: 100%; min-height: 190px; margin: 22px 0 8px; padding: 18px; border: 1.5px solid var(--line); border-radius: 15px; outline: none; resize: vertical; line-height: 1.7; }
.writing-area:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,105,92,.10); }
.word-count { text-align: right; color: var(--muted); font-size: 9px; }
.speak-prompt { margin: 24px 0; padding: 24px; border-radius: 20px; background: var(--mint-soft); text-align: center; }
.speak-prompt blockquote { margin: 0; font: 650 23px/1.45 var(--font-apple); letter-spacing: -.02em; }
.record-btn { width: 82px; height: 82px; margin: 12px auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--coral); color: #fff; box-shadow: 0 0 0 10px rgba(242,124,99,.12); }
.record-btn svg { width: 27px; }
.record-btn.recording { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 20px rgba(242,124,99,0); } }
.transcript { min-height: 60px; padding: 14px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 11px; text-align: center; }
.feedback-card { padding: 25px; border-radius: 20px; background: var(--mint-soft); }
.score-large { display: flex; align-items: baseline; gap: 6px; font: 750 50px/1 var(--font-apple); letter-spacing: -.045em; color: var(--green); }
.score-large span { font: 700 11px/1.2 var(--font-ui); color: var(--muted); }
.feedback-points { display: grid; gap: 8px; margin-top: 16px; }
.feedback-point { display: flex; gap: 9px; color: var(--ink-2); font-size: 10px; line-height: 1.6; }
.feedback-point svg { width: 15px; flex: 0 0 auto; color: var(--green); }

.coach-hero { position: relative; overflow: hidden; padding: clamp(30px,5vw,55px); border-radius: 30px; background: var(--green-dark); color: #fff; }
.coach-hero::after { content: "✦"; position: absolute; right: 7%; top: 8%; color: var(--yellow); font-size: 130px; opacity: .13; }
.coach-hero h2 { max-width: 670px; margin: 16px 0 12px; font: 750 clamp(35px,5vw,59px)/1.04 var(--font-apple); letter-spacing: -.045em; }
.coach-hero p { max-width: 600px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.75; }
.coach-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 20px; }
.coach-card { padding: 27px; border: 1px solid var(--line); border-radius: 23px; background: var(--white); }
.coach-card h3 { margin: 12px 0 7px; font-size: 16px; }
.coach-card > p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.coach-card textarea { width: 100%; min-height: 130px; margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; resize: vertical; outline: none; }
.coach-card textarea:focus { border-color: var(--green); }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 99px; background: var(--mint-soft); color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ai-badge svg { width: 13px; }
.coach-result { display: none; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--mint-soft); color: var(--ink-2); font-size: 10px; line-height: 1.7; }
.coach-result.show { display: block; animation: reveal .3s ease; }

.progress-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.progress-summary { grid-column: 1 / -1; padding: 32px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 25px; background: var(--green); color: #fff; }
.progress-summary h2 { margin: 8px 0; font: 750 35px/1.08 var(--font-apple); letter-spacing: -.04em; }
.progress-summary p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; }
.big-percent { font: 750 56px/1 var(--font-apple); letter-spacing: -.05em; color: var(--yellow); }
.skill-row { display: grid; grid-template-columns: 82px 1fr 38px; gap: 12px; align-items: center; margin: 18px 0; font-size: 10px; font-weight: 800; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8ece7; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 23px 29px; border-left: 1px solid var(--line); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -7px; top: 2px; width: 13px; height: 13px; border: 3px solid var(--white); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-item strong { display: block; font-size: 11px; }
.timeline-item small { color: var(--muted); font-size: 9px; }

.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.resource-card { min-height: 230px; padding: 25px; display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--line); background: var(--white); }
.resource-card:nth-child(3n+1) { background: #fff4d9; }
.resource-card:nth-child(3n+2) { background: #e9f3fb; }
.resource-card:nth-child(3n) { background: var(--mint-soft); }
.resource-card .resource-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.72); }
.resource-card svg { width: 22px; }
.resource-card h3 { margin: 22px 0 8px; font-size: 15px; }
.resource-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.resource-card .btn { margin-top: auto; align-self: flex-start; }

.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 20px; }
.admin-stat { padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.admin-stat strong { display: block; margin: 7px 0 2px; font: 750 31px/1.1 var(--font-apple); letter-spacing: -.04em; }
.admin-stat small { color: var(--muted); font-size: 10px; }
.admin-layout { display: grid; grid-template-columns: 1fr 1.55fr; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.student-table { width: 100%; border-collapse: collapse; }
.student-table th { padding: 0 10px 12px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; text-align: left; }
.student-table td { padding: 14px 10px; border-top: 1px solid var(--line); font-size: 10px; }
.student-name { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.student-name .avatar { width: 31px; height: 31px; border-radius: 10px; font-size: 10px; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: var(--mint-soft); color: var(--green); font-size: 8px; font-weight: 800; }
.table-actions button { border: 0; background: transparent; color: var(--muted); }
.table-actions svg { width: 15px; }
.empty-state { padding: 35px; color: var(--muted); font-size: 11px; text-align: center; }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(11,32,28,.56); backdrop-filter: blur(8px); }
.modal-card { width: min(520px,100%); max-height: 90vh; overflow: auto; padding: 30px; border-radius: 24px; background: var(--white); box-shadow: 0 28px 90px rgba(0,0,0,.2); animation: reveal .3s ease; }
.modal-card h2 { font: 750 30px/1.1 var(--font-apple); letter-spacing: -.04em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 360px; padding: 14px 18px; border-radius: 13px; background: var(--green-dark); color: #fff; font-size: 11px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }
.sidebar-overlay { display: none; }

@media (max-width: 1120px) {
  .visual-content { padding-top: 5vh; padding-bottom: 5vh; }
  .visual-content h2 { font-size: clamp(44px, 5.2vw, 58px); }
  .skill-cloud { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .skill-bubble { position: static; min-width: 0; padding: 10px 12px; border-radius: 16px; font-size: 10px; animation: none; }
  .skill-bubble span { width: 30px; height: 30px; flex: 0 0 auto; }
  .skill-grid { grid-template-columns: repeat(2,1fr); }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-lessons { grid-template-columns: 1fr; }
  .dashboard-activity-card { grid-template-columns: 160px minmax(0,1fr) 145px; gap: 14px; }
  .current-program-card { grid-template-columns: minmax(340px,1fr) minmax(260px,.9fr); }
  .program-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .practice-skill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-bottom > .panel { min-height: auto; }
  .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 25px 8vw; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.open { transform: none; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(10,30,26,.45); opacity: 0; pointer-events: none; transition: .25s ease; }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .main { grid-column: auto; }
  .mobile-menu { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; }
  .dashboard-bottom, .skill-intro, .progress-layout { grid-template-columns: 1fr; }
  .progress-summary { grid-column: auto; }
  .coach-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  .dashboard-greeting { align-items: flex-start; }
  .dashboard-activity-card { grid-template-columns: 1fr; }
  .activity-summary { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .activity-summary h3, .activity-summary p { grid-column: 1; }
  .activity-summary > strong { grid-column: 2; grid-row: 1 / 3; }
  .streak-summary { padding: 14px 0 0; flex-direction: row; justify-content: space-between; border-left: 0; border-top: 1px solid #e3e8f0; }
  .streak-ring { width: 72px; height: 72px; margin: 0; }
  .streak-ring svg { width: 25px; }
  .skills-page-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .featured-assignment { grid-template-columns: 1fr; gap: 15px; }
  .assignment-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .login-card { padding-top: 42px; }
  .login-card h1 { font-size: clamp(39px, 12vw, 52px); }
  .login-options { align-items: flex-start; flex-direction: column; }
  .topbar { padding: 0 16px; }
  .content { padding-left: 16px; padding-right: 16px; }
  .top-streak { display: none; }
  .dashboard-mode .content { padding-top: 20px; }
  .dashboard-greeting { flex-direction: column; gap: 5px; }
  .dashboard-route-link { align-self: flex-end; min-height: 44px; }
  .next-lesson-card { height: 280px; position: relative; display: block; }
  .next-lesson-copy { padding-right: 20px; }
  .restaurant-illustration { position: absolute; right: -10px; bottom: 0; width: 58%; height: 60%; opacity: .24; }
  .listening-lesson-card { height: 210px; grid-template-columns: minmax(0,1fr) 115px; }
  .headphones-illustration { align-items: flex-end; }
  .dashboard-chart { grid-template-columns: 37px 1fr; gap: 7px; }
  .chart-bars { gap: 8px; }
  .curriculum-section-heading { font-size: 18px; }
  .current-program-card { display: block; position: relative; min-height: 450px; }
  .current-program-copy { padding: 18px; }
  .current-program-art { position: absolute; right: 0; bottom: 0; width: 100%; height: 210px; padding: 0; opacity: .88; }
  .current-program-description { max-width: 290px; }
  .current-program-meta { flex-wrap: wrap; gap: 9px 13px; }
  .current-program-progress { align-items: flex-end; }
  .current-program-progress > strong { font-size: 34px; }
  .current-progress-track { flex: 1; }
  .program-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .program-card { padding: 10px; }
  .program-art { height: 84px; }
  .program-card h3 { font-size: 11px; }
  .program-card > p { min-height: 22px; }
  .skills-section-heading { align-items: flex-start; }
  .skills-section-heading > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .featured-assignment { padding: 15px; }
  .featured-assignment-copy h2 { font-size: 21px; }
  .assignment-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .assignment-progress { flex: 1; width: auto; }
  .assigned-skill-map { padding: 10px; }
  .assignment-mini-card { grid-template-columns: 44px minmax(0,1fr) auto; padding: 11px; gap: 9px; }
  .mini-assignment-icon { width: 44px; height: 44px; }
  .mini-assignment-btn { padding: 0 8px; }
  .practice-skill-grid { grid-template-columns: 1fr; }
  .practice-skill-card { min-height: 112px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .btn { width: 100%; }
  .stat-grid, .skill-grid, .resource-grid, .admin-stats { grid-template-columns: 1fr; }
  .module-card { grid-template-columns: 67px 1fr; gap: 14px; }
  .module-art { height: 67px; }
  .module-progress { grid-column: 1 / -1; text-align: left; }
  .course-toolbar { flex-wrap: wrap; }
  .search { flex-basis: 100%; max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .table-scroll { overflow-x: auto; }
  .student-table { min-width: 600px; }
  .progress-summary { grid-template-columns: 1fr; }
  .big-percent { margin-top: 18px; }
  .continue-item { grid-template-columns: 50px 1fr; }
  .continue-item .btn { grid-column: 1 / -1; }
}

/* Unified LMS login and admin theme. Scoped to avoid changing student pages. */
.login-shell,
.admin-mode,
.lms-admin {
  --admin-navy: #061a3d;
  --admin-blue: #1759d7;
  --admin-orange: #ff5a1f;
  --admin-bg: #f4f7fc;
  --admin-surface: #ffffff;
  --admin-text: #071a3c;
  --admin-muted: #66758f;
  --admin-line: #dfe5ef;
  --admin-soft-blue: #eaf1ff;
  --admin-soft-orange: #fff0e9;
  --admin-shadow: 0 8px 24px rgba(18, 44, 84, .09);
}
.login-shell { color: var(--admin-text); background: var(--admin-bg); }
.login-panel { background: var(--admin-surface); }
.login-shell .brand-mark { background: var(--admin-blue); box-shadow: inset 0 -4px 0 rgba(6,26,61,.16); }
.login-shell .eyebrow { color: var(--admin-blue); }
.login-shell .eyebrow::before { background: var(--admin-orange); }
.login-shell .login-card > p,
.login-shell .login-options,
.login-shell .demo-access,
.login-shell .show-pass,
.login-shell .input-wrap svg { color: var(--admin-muted); }
.login-shell .demo-access { border-color: var(--admin-line); }
.login-shell .demo-access strong { color: var(--admin-text); }
.login-shell .input-wrap input { border-color: var(--admin-line); color: var(--admin-text); }
.login-shell .input-wrap input:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 4px rgba(23,89,215,.12); }
.login-shell .remember input { accent-color: var(--admin-blue); }
.login-shell .btn-primary { background: var(--admin-orange); box-shadow: 0 12px 24px rgba(255,90,31,.22); }
.login-shell .btn-primary:hover { background: #e94b12; }
.login-shell .login-visual { background: var(--admin-navy); box-shadow: 0 18px 50px rgba(6,26,61,.18); }
.login-shell .bubble-1 span { background: var(--admin-orange); }
.login-shell .bubble-2 span,
.login-shell .bubble-4 span { background: var(--admin-blue); }

.admin-mode,
.lms-admin { color: var(--admin-text); background: var(--admin-bg); }
.admin-mode .sidebar,
.lms-admin .sidebar { background: var(--admin-navy); }
.admin-mode .content,
.lms-admin .content { max-width: none; min-height: calc(100vh - 74px); background: var(--admin-bg); }
.admin-mode .topbar,
.lms-admin .topbar { background: #fff; border-bottom-color: var(--admin-line); backdrop-filter: none; }
.admin-mode .nav-btn.active,
.lms-admin .nav-btn.active { color: #fff; background: var(--admin-blue); box-shadow: 0 10px 24px rgba(23,89,215,.3); }
.admin-mode .nav-btn.active::after,
.lms-admin .nav-btn.active::after { display: none; }
.admin-mode .btn-primary,
.lms-admin .btn-primary,
.admin-primary { background: var(--admin-blue); color: #fff; box-shadow: 0 8px 18px rgba(23,89,215,.2); }
.admin-accent { background: var(--admin-orange); color: #fff; }

.admin-page-header,
.lms-page-header,
.admin-toolbar,
.lms-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.admin-page-header > *, .lms-page-header > *, .admin-toolbar > *, .lms-toolbar > * { min-width: 0; }
.admin-tabs,
.lms-tabs { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; scrollbar-width: thin; }
.admin-tab,
.lms-tab { min-height: 38px; padding: 0 14px; flex: 0 0 auto; border: 0; border-radius: 7px; background: transparent; color: var(--admin-muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.admin-tab:hover, .lms-tab:hover { color: var(--admin-blue); background: var(--admin-soft-blue); }
.admin-tab.active, .admin-tab[aria-selected="true"],
.lms-tab.active, .lms-tab[aria-selected="true"] { color: #fff; background: var(--admin-blue); }

.admin-grid,
.lms-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 18px; }
.admin-grid-2,
.lms-grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.admin-grid-3,
.lms-grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.admin-span-8 { grid-column: span 8; }
.admin-span-6 { grid-column: span 6; }
.admin-span-4 { grid-column: span 4; }
.admin-card,
.lms-card,
.ai-provider-card,
.admin-exercise-card,
.admin-assignment-card { min-width: 0; padding: 20px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-surface); box-shadow: var(--admin-shadow); }
.admin-card-header,
.lms-card-header,
.ai-provider-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-card-header > *, .lms-card-header > *, .ai-provider-header > * { min-width: 0; }
.admin-exercise-card,
.admin-assignment-card { display: flex; flex-direction: column; gap: 12px; }
.admin-card-actions,
.lms-card-actions,
.admin-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }

.admin-form,
.lms-form { display: grid; gap: 16px; }
.admin-form-grid,
.lms-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-field { min-width: 0; }
.admin-field-full { grid-column: 1 / -1; }
.admin-field label { display: block; margin-bottom: 7px; color: var(--admin-text); font-size: 11px; font-weight: 800; }
.admin-field input,
.admin-field select,
.admin-field textarea,
.lms-input,
.lms-select,
.lms-textarea { width: 100%; max-width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--admin-line); border-radius: 9px; outline: 0; background: #fff; color: var(--admin-text); }
.admin-field textarea, .lms-textarea { min-height: 120px; resize: vertical; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus,
.lms-input:focus, .lms-select:focus, .lms-textarea:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 3px rgba(23,89,215,.11); }
.admin-secret,
.ai-secret { position: relative; min-width: 0; }
.admin-secret input,
.ai-secret input { padding-right: 48px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.admin-secret button,
.ai-secret button { position: absolute; top: 50%; right: 5px; width: 38px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 7px; background: transparent; color: var(--admin-muted); }

.admin-table-wrap,
.lms-table-wrap,
.admin-submissions { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--admin-line); border-radius: 12px; background: #fff; -webkit-overflow-scrolling: touch; }
.admin-table,
.lms-table,
.admin-submission-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table th, .lms-table th, .admin-submission-table th { padding: 12px 14px; background: #f8faff; color: var(--admin-muted); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td, .lms-table td, .admin-submission-table td { padding: 13px 14px; border-top: 1px solid var(--admin-line); font-size: 11px; vertical-align: middle; }
.admin-assignment-list,
.lms-list { display: grid; gap: 10px; }
.admin-assignment-item,
.lms-list-item { min-width: 0; padding: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }

.admin-status,
.lms-status,
.ai-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 8px; border-radius: 99px; background: var(--admin-soft-blue); color: var(--admin-blue); font-size: 8px; font-weight: 800; white-space: nowrap; }
.admin-status.success, .lms-status.success, .ai-status.connected { background: #e9f8ef; color: #218751; }
.admin-status.warning, .lms-status.warning, .ai-status.pending { background: #fff7dd; color: #956c00; }
.admin-status.error, .lms-status.error, .ai-status.disconnected { background: #ffebeb; color: #b42318; }
.ai-provider-card { position: relative; }
.ai-provider-card.active { border-color: var(--admin-blue); box-shadow: 0 0 0 2px rgba(23,89,215,.09), var(--admin-shadow); }
.ai-provider-logo { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--admin-soft-blue); color: var(--admin-blue); }

.admin-empty,
.lms-empty,
.ai-empty,
.admin-loading,
.lms-loading,
.admin-error,
.lms-error { min-height: 140px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--admin-line); border-radius: 12px; color: var(--admin-muted); text-align: center; }
.admin-error, .lms-error { border-color: #f3b6b2; background: #fff7f6; color: #9c2d26; }
.admin-skeleton,
.lms-skeleton { min-height: 14px; border-radius: 6px; background: linear-gradient(90deg,#edf1f7 25%,#f8faff 50%,#edf1f7 75%); background-size: 200% 100%; animation: admin-shimmer 1.4s linear infinite; }
@keyframes admin-shimmer { to { background-position: -200% 0; } }

@media (max-width: 1120px) {
  .admin-grid-3, .lms-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-span-8, .admin-span-6, .admin-span-4 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .admin-mode .sidebar-overlay,
  .lms-admin .sidebar-overlay { background: rgba(6,26,61,.56); }
  .admin-page-header, .lms-page-header { align-items: flex-start; }
  .admin-toolbar, .lms-toolbar { align-items: stretch; }
  .admin-toolbar .btn, .lms-toolbar .btn { flex: 1 1 auto; }
  .admin-grid-2, .lms-grid-2, .admin-grid-3, .lms-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .login-panel { padding: 20px 20px; }
  .login-brand { height: 60px; }
  .login-card { padding: 34px 0 40px; }
  .login-card h1 { font-size: clamp(34px,11vw,46px); }
  .admin-mode .content, .lms-admin .content { padding: 18px 14px 48px; }
  .admin-page-header, .lms-page-header, .admin-toolbar, .lms-toolbar { flex-direction: column; }
  .admin-tabs, .lms-tabs { width: 100%; }
  .admin-form-grid, .lms-form-grid { grid-template-columns: 1fr; }
  .admin-field-full { grid-column: auto; }
  .admin-card, .lms-card, .ai-provider-card, .admin-exercise-card, .admin-assignment-card { padding: 15px; }
  .admin-card-header, .lms-card-header, .ai-provider-header { flex-wrap: wrap; }
  .admin-card-actions, .lms-card-actions, .admin-form-actions { align-items: stretch; flex-direction: column; }
  .admin-card-actions .btn, .lms-card-actions .btn, .admin-form-actions .btn { width: 100%; }
  .admin-assignment-item, .lms-list-item { grid-template-columns: 1fr; }
  .admin-assignment-item > :last-child, .lms-list-item > :last-child { justify-self: stretch; }
  .admin-empty, .lms-empty, .ai-empty, .admin-loading, .lms-loading, .admin-error, .lms-error { min-height: 120px; padding: 20px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .admin-card:hover, .lms-card:hover { transform: none; }
}



/* Course platform typography floor — authoritative functional-copy rules */
:where(
  .nav, .nav-label, .nav-btn, .sidebar, .content, .dashboard-page,
  .dashboard-greeting, .dashboard-date, .dashboard-section-title,
  .dashboard-activity-card, .dashboard-chart, .dashboard-route-link,
  .profile, .mini-profile, .current-program-copy, .current-program-meta,
  .module-card, .module-info, .module-progress, .lesson-chip, .lesson-number,
  .assignment-meta, .assignment-labels, .assignment-progress, .assignment-result,
  .practice-meta, .practice-heading, .practice-skill-copy, .practice-skill-card,
  .resource-card, .resource-grid, .meta, .eyebrow, .hint, .helper,
  .badge, .status, .pending, .done, .active, .level-pill, .ai-badge,
  .table, .admin-table, .lms-table, .admin-table th, .admin-table td,
  .lms-table th, .lms-table td, .admin-field, .admin-field label,
  .admin-field small, .lms-input, .lms-select, .lms-textarea,
  .admin-tabs, .lms-tabs, .admin-tab, .lms-tab, .admin-status,
  .timeline, .timeline-item, .timeline-meta, .assignment-mini-card,
  .mini-assignment-main, .mini-assignment-btn, .next-lesson-copy,
  .resource-icon, .admin-card, .lms-card, .admin-card-header, .lms-card-header,
  .admin-toolbar, .lms-toolbar, .admin-empty, .lms-empty, .admin-error, .lms-error,
  .admin-form, .lms-form, .admin-form-actions, .lms-card-actions,
  .ai-empty, .ai-provider-card, .ai-status, .feedback-card, .feedback-point,
  .notification-btn, .logout-btn, .btn, button, input, select, textarea
) {
  font-size: max(12px, 1em);
}

@media (max-width: 600px) {
  :where(
    .nav, .nav-label, .nav-btn, .content, .dashboard-page, .dashboard-greeting,
    .dashboard-date, .dashboard-section-title, .dashboard-activity-card,
    .dashboard-route-link, .profile, .mini-profile, .current-program-copy,
    .current-program-meta, .module-card, .module-info, .module-progress, .lesson-chip,
    .assignment-meta, .assignment-labels, .assignment-progress, .assignment-result,
    .practice-meta, .practice-heading, .practice-skill-copy, .resource-card,
    .resource-grid, .meta, .eyebrow, .badge, .status, .pending, .done, .active,
    .level-pill, .ai-badge, .admin-table, .lms-table, .admin-table th, .admin-table td,
    .lms-table th, .lms-table td, .admin-field, .admin-field label, .admin-field small,
    .lms-input, .lms-select, .lms-textarea, .admin-tabs, .lms-tabs, .admin-tab,
    .lms-tab, .admin-status, .timeline, .timeline-item, .timeline-meta,
    .assignment-mini-card, .next-lesson-copy, .admin-card, .lms-card, .admin-empty,
    .lms-empty, .admin-error, .lms-error, .admin-form, .lms-form, .btn, button,
    input, select, textarea
  ) {
    font-size: max(13px, 1em);
  }
}


/* Round 4 computed typography correction — final, bounded cascade */
.nav-label.nav-label,
.mini-profile.mini-profile small,
.dashboard-greeting.dashboard-greeting p,
.dashboard-route-link.dashboard-route-link,
.lesson-chip.lesson-chip,
.next-lesson-card.next-lesson-card p,
.dashboard-orange-btn.dashboard-orange-btn,
.skills-page-intro.skills-page-intro p,
.assignment-mini-card.assignment-mini-card p,
.mini-assignment-main.mini-assignment-main > p,
.mini-assignment-btn.mini-assignment-btn,
.field.field small {
  font-size: max(12px, 1em) !important;
}

@media (max-width: 600px) {
  .nav-label.nav-label,
  .mini-profile.mini-profile small,
  .dashboard-greeting.dashboard-greeting p,
  .dashboard-route-link.dashboard-route-link,
  .lesson-chip.lesson-chip,
  .next-lesson-card.next-lesson-card p,
  .dashboard-orange-btn.dashboard-orange-btn,
  .skills-page-intro.skills-page-intro p,
  .assignment-mini-card.assignment-mini-card p,
  .mini-assignment-main.mini-assignment-main > p,
  .mini-assignment-btn.mini-assignment-btn,
  .field.field small,
  .nav-btn.nav-btn {
    font-size: max(13px, 1em) !important;
  }
}

/* Sol final review fixes: keep transient feedback out of the mobile drawer. */
body.drawer-open .toast { display: none !important; }
.cms-brand-preview { display: grid; gap: 14px; }
.cms-preview-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.cms-preview-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.cms-feature-preview { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cms-feature-preview h3 { margin: 0 0 5px; }
.cms-feature-preview p { margin: 0; }
@media (max-width: 600px) {
  .admin-layout > aside.panel { min-height: 0; padding: 12px; }
  .admin-layout > aside.panel .nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; max-height: 106px !important; overflow: hidden !important; }
  .admin-layout > aside.panel .nav-btn { min-height: 42px; padding: 8px 7px; justify-content: flex-start; }
  .dashboard-page { display: flex; flex-direction: column; }
  .dashboard-page > .dashboard-greeting { order: 1; }
  .dashboard-page > .next-lesson-card { order: 2; }
}

/* Phase 1-2 admin split shell */
.admin-hub{max-width:1080px;margin:0 auto;padding:clamp(28px,7vw,84px) 20px;min-height:100vh;display:flex;flex-direction:column;justify-content:center}.hub-heading{text-align:center;max-width:680px;margin:0 auto 32px}.hub-heading h1{font-size:clamp(32px,5vw,52px);margin:8px 0}.hub-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.workspace-card{position:relative;min-height:260px;padding:28px;text-align:left;border:1px solid var(--line);border-radius:22px;background:#fff;color:inherit;display:flex;align-items:flex-start;gap:18px;cursor:pointer;box-shadow:0 14px 38px rgba(8,27,58,.08);transition:box-shadow .18s ease,border-color .18s ease}.workspace-card:hover{border-color:#cbd8ea;box-shadow:0 18px 44px rgba(8,27,58,.12)}.workspace-card:focus-visible{outline:none;border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.32),0 18px 44px rgba(8,27,58,.12)}.workspace-card strong{font-size:24px}.workspace-card .hub-card-body{display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}.workspace-card .hub-card-body>span:not(.hub-metrics):not(.hub-demo-pill){color:var(--text-secondary);line-height:1.55}.hub-card-icon{flex:0 0 auto;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#e9f1ff;color:#1555b8}.hub-card-arrow{flex:0 0 auto;align-self:center;margin-left:auto;width:24px;height:24px;display:grid;place-items:center;color:#1455b8}.hub-card-arrow svg{width:20px;height:20px}.hub-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}.hub-metrics b{color:#1455b8;font-size:13px;font-weight:800}.hub-metrics .hub-metrics-sep{color:var(--text-muted)}.hub-demo-pill{display:inline-flex;align-items:center;padding:2px 9px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);color:var(--text-muted);font-size:11px;font-weight:700;line-height:1.6}.hub-account{display:flex;align-items:center;gap:10px;justify-content:center;margin-top:30px}.hub-account-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:12px;font-weight:800}.hub-account-meta{display:flex;flex-direction:column;line-height:1.3;text-align:left}.hub-account-meta strong{font-size:13px}.hub-account-meta small{color:var(--text-muted);font-size:11px}.hub-account .logout-btn{width:34px;height:34px;min-width:34px;min-height:34px;margin-left:4px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text-secondary);display:grid;place-items:center}.hub-account .logout-btn:hover{color:var(--text);background:var(--surface-2);border-radius:10px}.hub-account .logout-btn svg{width:16px}.workspace-back{margin-bottom:16px;min-height:44px}.nav-btn,.workspace-card,.btn,.logout-btn{min-height:44px}@media(max-width:768px){.admin-hub{padding:28px 16px;justify-content:flex-start}.hub-cards{grid-template-columns:1fr;gap:14px}.workspace-card{min-height:190px;padding:22px}.hub-heading{text-align:left}.hub-heading h1{font-size:34px}.workspace-back{width:100%}.hub-account{justify-content:flex-start}}@media(max-width:430px){.workspace-card strong{font-size:21px}.workspace-card{border-radius:18px}}


/* Phase 3-4 visual CMS */
.cms-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:-8px 0 18px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:12px}.cms-toolbar label{font-size:12px;font-weight:800;display:grid;gap:6px}.cms-toolbar select{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text)}.cms-devices,.cms-view-toggle{display:flex;gap:6px;flex-wrap:wrap}.device-btn,.cms-view-toggle button{min-height:44px;min-width:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text-secondary);font-size:12px;font-weight:800}.device-btn.active,.cms-view-toggle button.active{background:var(--blue);border-color:var(--blue);color:#fff}.cms-view-toggle{display:none}.cms-workspace{display:grid;grid-template-columns:230px minmax(310px,430px) minmax(0,1fr);gap:16px;align-items:start}.cms-rail{padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px}.cms-rail h3{font-size:13px;margin:4px 8px 12px}.cms-section-btn{width:100%;min-height:46px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;text-align:left;border:0;border-radius:9px;background:transparent;color:var(--text-secondary);font-size:12px;font-weight:750}.cms-section-btn:hover,.cms-section-btn.active{background:#eaf1ff;color:var(--blue)}.cms-section-select{display:none}.cms-preview-error{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;padding:20px;color:var(--text-secondary);font-size:12px;background:#f7f9fc}.cms-preview-error strong{color:var(--text);font-size:14px}.cms-preview-error .btn{min-height:44px}.cms-editor{min-height:430px;padding:20px}.cms-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:16px}.cms-editor-head h2{margin:6px 0 0;font-size:20px}.cms-status{padding:7px 10px;border-radius:99px;background:#eaf8ef;color:#16794a;font-size:11px;font-weight:800;white-space:nowrap}.cms-savebar{position:sticky;bottom:12px;z-index:8;margin-top:16px;padding:10px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(8,27,58,.12);font-size:12px;font-weight:800}.cms-savebar>div{display:flex;gap:7px;flex-wrap:wrap}.cms-savebar .btn{min-height:44px}.cms-preview-stage{min-width:0;display:flex;justify-content:center;padding:18px;background:#e8eef7;border:1px solid #d2ddea;border-radius:14px;min-height:500px}.cms-preview-frame-wrap{width:100%;height:560px;display:flex;justify-content:center;position:relative;transition:.2s}.cms-preview-frame-wrap[data-preview-width="desktop"] iframe{width:100%}.cms-preview-frame-wrap[data-preview-width="768"] iframe{width:768px}.cms-preview-frame-wrap[data-preview-width="430"] iframe{width:430px}.cms-preview-frame-wrap[data-preview-width="390"] iframe{width:390px}.cms-preview-frame-wrap iframe{height:100%;max-width:100%;border:8px solid #1b2c47;border-radius:12px;background:#fff;box-shadow:0 8px 22px rgba(8,27,58,.18)}.cms-preview-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--text-secondary);font-size:12px;background:#f7f9fc}.cms-frame-preview{min-height:100vh;padding:24px;background:#f4f7fc;color:#10213d}.cms-frame-inner{max-width:620px;margin:0 auto;padding:28px;background:#fff;border-radius:18px;box-shadow:0 10px 30px rgba(8,27,58,.08)}.cms-frame-brand{display:flex;align-items:center;gap:10px;margin-bottom:38px}.cms-frame-brand img{width:42px;height:42px;object-fit:contain}.cms-frame-inner h1{font-size:clamp(28px,5vw,48px);margin:18px 0 10px}.cms-frame-inner p{color:#50627e;line-height:1.7}.cms-frame-feature{margin-top:30px;padding:18px;background:#eef3f9;border-radius:12px}.cms-frame-feature h2{font-size:18px}.cms-view-toggle button.active{background:var(--blue);color:#fff}@media(max-width:1199px){.cms-workspace{grid-template-columns:210px minmax(300px,1fr)}.cms-preview-stage{grid-column:1/-1}.cms-preview-frame-wrap{max-width:768px}}@media(max-width:768px){.cms-toolbar{align-items:stretch}.cms-view-toggle{display:flex}.cms-toolbar label{flex:1;min-width:180px}.cms-devices{width:100%}.cms-workspace{display:block}.cms-rail{margin-bottom:12px}.cms-rail h3{display:none}.cms-section-btn{display:none}.cms-section-select{display:block;width:100%;min-height:46px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font-size:15px;font-weight:750}.cms-workspace.view-content .cms-preview-stage{display:none}.cms-workspace.view-preview .cms-editor{display:none}.cms-editor{display:block}.cms-preview-stage{margin-top:12px}.cms-savebar{position:fixed;left:10px;right:10px;bottom:0;z-index:9;border-radius:12px 12px 0 0}.cms-preview-frame-wrap{height:520px}.cms-savebar>span{display:none}}@media(max-width:430px){.cms-editor{padding:15px}.cms-toolbar{padding:10px}.cms-devices{display:grid;grid-template-columns:1fr 1fr}.device-btn{padding:0 4px;font-size:11px}.cms-savebar .btn{padding:0 10px;font-size:11px}.cms-savebar{gap:6px}.cms-savebar>div{gap:4px}.field input,.field textarea,.field select{font-size:16px}.cms-preview-frame-wrap{height:480px}.cms-preview-stage{padding:8px}}@media(max-height:420px){.cms-savebar{position:static;margin:16px -10px 0;border-radius:12px;bottom:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.hidden{display:none!important}

/* Phase 1 first-impression closure — hub/login (2026-08-16) */
.login-shell .visual-content h2{color:#fff}
.login-shell .visual-content .eyebrow{color:#b9cdf2}
.login-error{display:grid;gap:4px;margin:0 0 18px;padding:11px 14px;border:1px solid #f2c7c2;border-radius:12px;background:#fdf1ef;color:#7f1d1d}
.login-error strong{color:#a5211a;font-size:13px;font-weight:800}
.login-error p{margin:0;color:#7f1d1d;font-size:12.5px;line-height:1.55}
@media (max-height:860px){.login-shell .login-card{padding-top:30px;padding-bottom:34px}.login-shell .login-brand{height:64px}.login-shell .login-form{margin-top:24px}.login-shell .login-card h1{margin:13px 0 11px}}

.people-content-panel{display:grid;gap:18px}.people-mode-switch{display:flex;justify-content:center;gap:10px;margin:2px auto 22px;padding:6px;width:min(620px,100%);border:1px solid var(--admin-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(8,27,58,.08)}.people-mode-pill{min-height:72px;flex:1;display:flex;align-items:center;justify-content:center;gap:11px;padding:10px 18px;border:0;border-radius:12px;background:transparent;color:var(--admin-muted);text-align:left;cursor:pointer;transition:background .2s ease,color .2s ease,transform .2s ease}.people-mode-pill:hover{background:var(--admin-soft-blue);color:var(--admin-blue)}.people-mode-pill.active{background:var(--admin-blue);color:#fff;box-shadow:0 8px 18px rgba(23,89,215,.22)}.people-mode-pill:focus-visible{outline:3px solid rgba(23,89,215,.25);outline-offset:2px}.people-mode-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(23,89,215,.1)}.people-mode-pill.active .people-mode-icon{background:rgba(255,255,255,.16)}.people-mode-icon svg{width:20px}.people-mode-pill span:last-child{display:grid;gap:3px}.people-mode-pill strong{font-size:14px}.people-mode-pill small{font-size:11px;opacity:.78}.people-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.people-section-head h2{margin:0 0 4px;font-size:20px}.people-section-head p{margin:0;color:var(--text-secondary);font-size:13px}.people-section-head .btn{flex:none}.people-student-toolbar{justify-content:flex-start;margin:0}.people-class-list{display:grid;gap:12px}.people-class-accordion{overflow:hidden;border:1px solid var(--admin-line);border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(8,27,58,.06)}.people-class-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:7px 10px 7px 14px}.people-class-trigger{min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px;padding:10px 8px;border:0;background:transparent;color:var(--admin-text);text-align:left;cursor:pointer}.people-class-trigger:hover .people-class-copy strong{color:var(--admin-blue)}.people-class-trigger:focus-visible{outline:3px solid rgba(23,89,215,.25);outline-offset:2px;border-radius:10px}.people-class-chevron{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--admin-soft-blue);color:var(--admin-blue);transition:transform .2s ease}.people-class-chevron svg{width:15px;transform:rotate(90deg)}.people-class-accordion.is-open .people-class-chevron{transform:rotate(90deg);background:var(--admin-blue);color:#fff}.people-class-accordion.is-open .people-class-chevron svg{transform:rotate(-90deg)}.people-class-copy{min-width:0;display:grid;gap:4px}.people-class-copy strong{font-size:15px;overflow-wrap:anywhere}.people-class-copy small{color:var(--text-secondary);font-size:12px;overflow-wrap:anywhere}.people-class-delete{white-space:nowrap}.people-class-expanded{display:grid;gap:18px;padding:20px 22px 22px;border-top:1px solid var(--admin-line);background:linear-gradient(180deg,#f8faff 0%,#fff 65%)}.people-class-expanded-head{display:flex;align-items:start;justify-content:space-between;gap:18px}.people-class-expanded-head h3{margin:5px 0 4px;font-size:20px}.people-class-expanded-head p{margin:0;color:var(--text-secondary);font-size:12px}.people-class-expanded-head .row-actions{margin:0;justify-content:flex-end}.people-class-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.people-class-roster{display:grid;gap:12px;padding:16px;border:1px solid var(--admin-line);border-radius:14px;background:#fff}.people-class-roster-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.people-class-roster-head h4{margin:0 0 3px;font-size:15px}.people-class-roster-head p{margin:0;color:var(--text-secondary);font-size:12px}.people-class-roster-head>span{padding:6px 10px;border-radius:99px;background:var(--admin-soft-blue);color:var(--admin-blue);font-size:11px;font-weight:800;white-space:nowrap}
.people-mode-pill.active{background:var(--admin-blue)!important;color:#fff!important}.people-mode-pill.active strong,.people-mode-pill.active small{color:#fff!important}.people-class-delete{color:#b42318!important;border-color:#efc3bf!important}.people-class-delete:hover{background:#fff3f2}.student-card-open{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:13px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.student-card-open>div:nth-child(2){min-width:0;display:grid;gap:3px}.student-card-open strong,.student-card-open small{overflow-wrap:anywhere}.student-card-open:focus-visible{outline:3px solid rgba(23,89,215,.25);outline-offset:4px;border-radius:8px}
.people-mode-switch{border-color:var(--line)}.people-mode-pill{color:var(--text-secondary)}.people-mode-pill.active{background:#1759d7!important}.people-mode-icon{background:#eaf1ff;color:#1759d7}.people-mode-pill.active .people-mode-icon{background:rgba(255,255,255,.16);color:#fff}.student-card-open{grid-template-columns:auto minmax(0,1fr) auto}.student-card-open .student-progress{margin-left:0;white-space:nowrap}
.class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.class-card{min-width:0}.class-card h3{overflow-wrap:anywhere}
.class-detail{width:100%;max-width:none;display:grid;gap:24px}.class-detail .detail-heading,.student-detail .detail-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:18px}.detail-title{min-width:0}.detail-title h2{margin:5px 0 4px;overflow-wrap:anywhere}.detail-title p{margin:0;color:var(--text-secondary)}.class-detail .row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.class-summary,.student-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.class-summary .summary-stat,.student-summary>div{min-width:0;display:flex!important;flex-direction:column;align-items:flex-start;gap:7px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.class-summary small,.student-summary small{display:block;color:var(--text-secondary)}.class-summary .summary-label{display:block}.class-summary strong,.student-summary strong{display:block;font-size:24px;line-height:1.1}.class-skill-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.skill-result{min-width:0;display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff}.skill-result span{color:var(--text-secondary)}.skill-result strong{overflow-wrap:anywhere}.class-learner-list{display:grid;gap:10px}.class-learner-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.class-learner-main{min-width:0;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:0;border:0;background:transparent;color:inherit;text-align:left}.class-learner-copy{min-width:0;display:grid;gap:4px}.class-learner-copy strong,.class-learner-copy small{overflow-wrap:anywhere}.class-learner-copy small{color:var(--text-secondary)}.class-add-members{display:grid;gap:12px;margin-top:16px}
@media(max-width:900px){.class-skill-results{grid-template-columns:repeat(2,minmax(0,1fr))}.class-summary,.student-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.class-detail .detail-heading,.student-detail .detail-heading{grid-template-columns:1fr}.class-detail .row-actions{justify-content:flex-start}}
@media(max-width:700px){.people-section-head,.people-class-expanded-head{align-items:stretch;flex-direction:column}.people-section-head .btn{width:100%}.people-class-row{grid-template-columns:minmax(0,1fr)}.people-class-delete{margin:0 8px 8px;width:calc(100% - 16px)}.people-class-expanded{padding:17px}.people-class-expanded-head .row-actions{justify-content:flex-start}.people-class-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.people-mode-switch{gap:5px;padding:5px;border-radius:14px}.people-mode-pill{min-height:62px;gap:7px;padding:8px}.people-mode-icon{width:32px;height:32px}.people-mode-pill strong{font-size:12px}.people-mode-pill small{font-size:10px}.people-class-stats,.class-grid,.class-skill-results,.class-summary,.student-summary{grid-template-columns:minmax(0,1fr)}.class-detail{padding:16px}.class-learner-row{grid-template-columns:minmax(0,1fr);align-items:stretch}.class-remove{width:100%}.student-profile-meta{display:grid}.student-profile-meta>span{min-width:0}.people-class-roster-head{align-items:flex-start;flex-direction:column}}

/* Keep class actions together after removing the repeated expanded header. */
.people-class-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.people-class-row-actions .btn{white-space:nowrap}
@media(max-width:700px){
  .people-class-row{grid-template-columns:minmax(0,1fr);gap:0}
  .people-class-row-actions{justify-content:flex-start;padding:0 8px 8px}
  .people-class-row-actions .btn{flex:1 1 140px}
  .people-class-delete{margin:0;width:auto}
}


/* Exam admin review surfaces — deliberately scoped. */
.exam-attempt-detail{display:grid;gap:18px;color:var(--text);opacity:1}
.exam-writing-answer{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.exam-writing-answer h4{margin:0;color:var(--text);font-size:16px}
.exam-writing-answer .answer-box{margin:0;background:var(--surface-2);color:var(--text)}
.exam-writing-answer .answer-box p,.exam-feedback p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.exam-review-form{padding-top:18px;border-top:1px solid var(--line)}
.exam-review-form .btn-primary:not(:disabled){background:var(--blue);border-color:var(--blue);color:#fff;opacity:1}
/* Pending Writing grading — force full opacity + accessible contrast (scoped to exam surfaces only). */
.exam-attempt-detail,.exam-writing-answer,.answer-box,.exam-feedback,.exam-review-form{opacity:1!important}
.exam-attempt-detail h4,.exam-writing-answer h4{opacity:1!important;color:var(--text);font-weight:800}
.exam-writing-answer small,.exam-feedback small{color:var(--text-secondary);font-weight:800;opacity:1!important}
.exam-writing-answer .answer-box,.exam-feedback{background:#fff;border:1px solid var(--line);opacity:1!important}
.exam-writing-answer .answer-box p,.exam-feedback p{color:var(--text);opacity:1!important;font-size:14px;line-height:1.6;font-weight:500}
.exam-review-form label{color:var(--text);font-weight:800;opacity:1!important}
.exam-review-form input[name=score],.exam-review-form textarea[name=feedback]{background:#fff;color:var(--text);border:1.5px solid #b3c5e6;opacity:1!important;font-weight:500}
.exam-review-form input[name=score]::placeholder,.exam-review-form textarea[name=feedback]::placeholder{color:var(--text-secondary);opacity:1}
.exam-review-form input[name=score]:focus,.exam-review-form textarea[name=feedback]:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(30,93,189,.14);outline:none}
.exam-review-form .btn-primary,.exam-review-form .btn-primary:not(:disabled){background:var(--blue);border:1px solid var(--blue);color:#fff;opacity:1!important;font-weight:800}
.exam-review-form .btn-primary:not(:disabled):hover{background:var(--blue-strong);border-color:var(--blue-strong)}
.exam-review-form .btn-primary:disabled{background:#b9cbea;border-color:#b9cbea;color:#fff;opacity:1}
.exam-score-value{display:inline-grid;gap:3px;width:max-content;min-width:140px;padding:14px 18px;border:1px solid #b9cbea;border-radius:12px;background:#eef4ff}
.exam-score-value strong{font-size:26px;color:var(--blue-strong)}
.exam-result-summary{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.exam-result-summary>span{display:grid;gap:2px;min-width:110px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
.exam-result-summary>span:last-child{max-width:440px}
.exam-result-summary strong{overflow-wrap:anywhere}
.exam-assignment-usage{font-weight:800;color:var(--text)}
.toast{left:auto;right:max(24px,env(safe-area-inset-right));bottom:max(24px,calc(env(safe-area-inset-bottom) + 16px));width:min(360px,calc(100vw - 48px));max-width:calc(100vw - 48px);z-index:1100}
@media(max-width:600px){.toast{left:16px;right:16px;width:auto;max-width:none;bottom:max(20px,calc(env(safe-area-inset-bottom) + 16px))}.exam-review-form .wizard-actions,.exam-review-form .btn-primary{width:100%}}

/* Pronunciation practice */
.pronunciation-page{max-width:980px;margin:0 auto;color:var(--text)}
.pronunciation-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px;padding:8px 2px 0}
.pronunciation-intro h1{margin:8px 0 8px;font:750 clamp(30px,4vw,48px)/1.05 var(--font-apple);letter-spacing:-.045em}
.pronunciation-intro p{max-width:520px;margin:0;color:var(--text-secondary);font-size:14px}
.pronunciation-intro-mark{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(145deg,#eaf1ff,#dce9ff);color:var(--blue);box-shadow:0 10px 24px rgba(30,93,189,.12)}
.pronunciation-intro-mark svg{width:30px;height:30px}
.pronunciation-search-panel{padding:22px 24px;margin-bottom:18px}
.pronunciation-search-panel form{display:grid;gap:9px}
.pronunciation-search-panel label{font-size:13px;font-weight:800;color:var(--text)}
.pronunciation-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.pronunciation-input-wrap{position:relative}
.pronunciation-input-wrap svg{position:absolute;left:15px;top:50%;width:19px;transform:translateY(-50%);color:var(--blue)}
.pronunciation-input-wrap input{width:100%;height:52px;padding:0 16px 0 46px;border:1.5px solid #cbd7e8;border-radius:12px;background:#fbfcff;color:var(--text);outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.pronunciation-input-wrap input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(30,93,189,.12)}
.pronunciation-search-row .btn{min-height:52px;white-space:nowrap}
.pronunciation-suggestions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;color:var(--text-muted);font-size:12px}
.pronunciation-suggestions button{min-height:30px;padding:0 10px;border:1px solid #d7e1ef;border-radius:99px;background:#f8faff;color:var(--blue);font-size:12px;font-weight:800;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.pronunciation-suggestions button:hover{border-color:#9db9ec;background:#edf4ff;transform:translateY(-1px)}
.pronunciation-empty{display:flex;align-items:center;gap:18px;padding:25px 24px;border-style:dashed!important;box-shadow:none!important;background:#fbfcff!important}
.pronunciation-empty-icon{width:46px;height:46px;flex:0 0 auto;display:grid;place-items:center;border-radius:14px;background:#eaf1ff;color:var(--blue)}
.pronunciation-empty-icon svg{width:23px}
.pronunciation-empty h2{margin:0 0 4px;font-size:18px}
.pronunciation-empty p{margin:0;color:var(--text-secondary);font-size:13px}
.pronunciation-loading{display:grid;gap:11px;padding:24px;margin-bottom:18px}
.pronunciation-loading-line{display:block;height:15px;width:64%;border-radius:6px;background:linear-gradient(90deg,#eef3f9,#dfe9f7,#eef3f9);background-size:220% 100%;animation:pronunciation-shimmer 1.2s ease-in-out infinite}
.pronunciation-loading-line.short{width:34%;height:28px}.pronunciation-loading-line:last-child{width:88%;height:88px}
@keyframes pronunciation-shimmer{50%{background-position:100% 0}}
.pronunciation-error{margin-bottom:18px}
.pronunciation-result{padding:0;overflow:hidden}
.pronunciation-result-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:24px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8faff,#fff)}
.pronunciation-result-head h2{margin:8px 0 3px;font:750 clamp(30px,4vw,46px)/1.05 var(--font-apple);letter-spacing:-.04em;text-transform:lowercase}
.pronunciation-result-head p{margin:0;color:var(--text-muted);font-size:12px}
.pronunciation-play{flex:0 0 auto;min-height:46px}
.pronunciation-ipa{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.pronunciation-ipa span{color:var(--text-secondary);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.pronunciation-ipa strong{font-size:24px;letter-spacing:.03em;color:var(--blue-strong)}
.pronunciation-syllables{padding:22px 24px 24px}
.pronunciation-section-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.pronunciation-section-label h3,.pronunciation-definitions h3{margin:0;font-size:16px}
.pronunciation-section-label span{color:var(--text-muted);font-size:12px;font-weight:800}
.pronunciation-syllable-list{display:flex;flex-wrap:wrap;gap:10px}
.pronunciation-syllable{min-width:102px;padding:13px 14px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 9px;border:1px solid #d7e1ef;border-radius:12px;background:#fbfcff;color:var(--text);text-align:left;transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease}
.pronunciation-syllable:hover{border-color:#9db9ec;background:#f2f7ff;transform:translateY(-2px);box-shadow:0 7px 18px rgba(18,44,84,.1)}
.pronunciation-syllable-index{grid-row:span 2;width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#eaf1ff;color:var(--blue);font-size:11px;font-weight:800}
.pronunciation-syllable strong{font-size:16px;line-height:1.1}
.pronunciation-syllable small{color:var(--blue-strong);font-size:12px;font-weight:800}
.pronunciation-tip{margin:14px 0 0;color:var(--text-muted);font-size:12px}
.pronunciation-definitions{padding:0 24px 24px}
.pronunciation-definitions h3{padding-top:18px;border-top:1px solid var(--line);margin-bottom:10px}
.pronunciation-definitions>div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #edf1f6}
.pronunciation-definitions>div:last-child{border-bottom:0}
.pronunciation-definitions span{color:var(--blue);font-size:12px;font-weight:800;text-transform:capitalize}
.pronunciation-definitions p{margin:0;color:var(--text-secondary);font-size:13px}
@media(max-width:700px){.pronunciation-intro{align-items:flex-start}.pronunciation-intro-mark{width:52px;height:52px;border-radius:16px}.pronunciation-search-panel{padding:18px}.pronunciation-search-row{grid-template-columns:1fr}.pronunciation-search-row .btn{width:100%}.pronunciation-result-head{padding:20px;align-items:stretch;flex-direction:column}.pronunciation-play{width:100%}.pronunciation-ipa,.pronunciation-syllables,.pronunciation-definitions{padding-left:18px;padding-right:18px}.pronunciation-ipa{align-items:flex-start;flex-direction:column;gap:7px}.pronunciation-ipa strong{font-size:22px}.pronunciation-empty{align-items:flex-start;padding:20px 18px}}
@media(prefers-reduced-motion:reduce){.pronunciation-loading-line{animation:none}.pronunciation-suggestions button,.pronunciation-syllable{transition:none}.pronunciation-suggestions button:hover,.pronunciation-syllable:hover{transform:none}}

/* Curriculum skill library */
.curriculum-library-page{color:#071a3c}
.curriculum-skill-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:26px}
.curriculum-skill-button{min-height:64px;padding:0 20px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid #d8e1ef;border-radius:12px;background:#fff;color:#40516d;font-weight:800;cursor:pointer;box-shadow:0 3px 10px rgba(18,44,84,.06);transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.curriculum-skill-button svg{width:21px;height:21px}
.curriculum-skill-button:hover{border-color:#9db9ec;color:#1555ca;transform:translateY(-1px)}
.curriculum-skill-button.active{border-color:#1f64df;background:#1f64df;color:#fff;box-shadow:0 10px 24px rgba(31,100,223,.22)}
.curriculum-skill-button:focus-visible,.curriculum-exercise-card:focus-visible{outline:3px solid rgba(31,100,223,.28);outline-offset:3px}
.curriculum-results-head{margin-bottom:15px;display:flex;align-items:end;justify-content:space-between;gap:20px}
.curriculum-results-head h1,.curriculum-results-head h2{margin:0 0 5px;font:750 clamp(22px,2.1vw,28px)/1.12 var(--font-apple);letter-spacing:-.035em}
.curriculum-results-head p{margin:0;color:#62728a;font-size:13px}
.curriculum-results-head>span{flex:none;color:#52627c;font-size:13px;font-weight:800}
.curriculum-exercise-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.curriculum-exercise-card{min-width:0;padding:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid #dbe3ef;border-radius:14px;background:#fff;color:#071a3c;text-align:left;cursor:pointer;box-shadow:0 5px 16px rgba(18,44,84,.08);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.curriculum-exercise-card:hover{border-color:#a9bee3;box-shadow:0 12px 28px rgba(18,44,84,.13);transform:translateY(-3px)}
.curriculum-exercise-card:active{transform:translateY(-1px)}
.curriculum-exercise-card.is-locked{cursor:not-allowed;opacity:.58;box-shadow:none}
.curriculum-exercise-card.is-locked:hover{border-color:#dbe3ef;transform:none;box-shadow:none}
.curriculum-exercise-card.is-locked .curriculum-card-image img{filter:grayscale(.45)}
.curriculum-card-image{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#eaf1ff}
.curriculum-card-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.curriculum-exercise-card:hover .curriculum-card-image img{transform:scale(1.025)}
.curriculum-card-badge{position:absolute;top:12px;right:12px;min-height:28px;padding:0 11px;display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(7,26,60,.86);color:#fff;font-size:11px;font-weight:800;box-shadow:0 4px 12px rgba(7,26,60,.18)}
.curriculum-card-body{flex:1;min-width:0;padding:17px 18px 18px;display:flex;flex-direction:column}
.curriculum-card-body>strong{min-height:43px;display:-webkit-box;overflow:hidden;font-size:16px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.curriculum-card-description{min-height:43px;margin-top:8px;display:-webkit-box;overflow:hidden;color:#5c6c84;font-size:13px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.curriculum-card-body time{margin-top:16px;padding-top:13px;display:flex;align-items:center;gap:7px;border-top:1px solid #e7ecf3;color:#6e7d93;font-size:12px;font-weight:700}
.curriculum-card-body time svg{width:12px;height:12px;color:#1f64df;fill:#1f64df}
.curriculum-empty{min-height:260px;padding:34px;display:grid;place-items:center;align-content:center;text-align:center;border:1px dashed #cbd7e8;border-radius:14px;background:#f8faff;color:#5d6e87}
.curriculum-empty>svg{width:42px;height:42px;margin-bottom:12px;color:#1f64df}
.curriculum-empty strong{color:#10213d;font-size:17px}
.curriculum-empty p{margin:7px 0 0;font-size:13px}
.learning-section+.learning-section{margin-top:30px;padding-top:28px;border-top:1px solid #dfe6f0}
.curriculum-results-head.subsection h2{font-size:20px}
.curriculum-empty.compact{min-height:160px;padding:24px}
.curriculum-empty.compact>svg{width:32px;height:32px}
.today-learning-page .curriculum-results-head,.skills-learning-page .curriculum-results-head{margin-bottom:15px}
.today-featured-grid{grid-template-columns:minmax(280px,calc((100% - 36px)/3))}
.dashboard-complete{min-height:210px}
@media(max-width:1120px){.curriculum-exercise-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1120px){.today-featured-grid{grid-template-columns:minmax(280px,calc((100% - 18px)/2))}}
@media(max-width:700px){.curriculum-skill-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:22px}.curriculum-skill-button{min-height:56px;padding:0 12px}.curriculum-results-head{align-items:flex-start}.curriculum-results-head>span{padding-top:5px}.curriculum-exercise-grid,.today-featured-grid{grid-template-columns:1fr}.curriculum-card-description{min-height:0}.learning-section+.learning-section{margin-top:24px;padding-top:22px}}
@media(prefers-reduced-motion:reduce){.curriculum-skill-button,.curriculum-exercise-card,.curriculum-card-image img{transition:none}.curriculum-skill-button:hover,.curriculum-exercise-card:hover,.curriculum-exercise-card:active{transform:none}}

/* Admin curriculum authoring */
.journey-course-list{display:grid;gap:18px}.journey-course-admin{padding:0;overflow:hidden}.journey-course-head{padding:22px 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:22px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8faff 0%,#fff 72%)}.journey-course-head>div:first-child{min-width:0}.journey-course-head h2{margin:7px 0 4px;font-size:22px}.journey-course-head p{max-width:760px;margin:0 0 6px}.journey-course-head small{color:var(--text-muted);font-weight:700}.journey-unit-list{padding:18px;display:grid;gap:14px}.journey-unit-admin{border:1px solid #dce5f1;border-radius:14px;background:#f8faff;overflow:hidden}.journey-unit-head{padding:16px 18px;background:#eef4ff}.journey-lesson-list{padding:12px;display:grid;gap:10px}.journey-lesson-admin{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.journey-lesson-admin>.journey-admin-row{padding:14px 16px}.journey-activity-list{padding:0 12px 12px;display:grid;gap:8px}.journey-admin-row{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:14px}.journey-activity-row{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff}.journey-admin-copy{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 9px}.journey-admin-copy strong,.journey-admin-copy small{grid-column:2}.journey-admin-copy strong{font-size:14px}.journey-admin-copy small{color:var(--text-muted)}.journey-admin-icon{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;background:#e9f1ff;color:#1555b8}.journey-admin-icon svg{width:18px}.journey-inline-empty{padding:18px;border:1px dashed #cbd7e8;border-radius:10px;background:#fff;color:var(--text-muted);text-align:center}.journey-editor-panel{margin-bottom:18px;border-color:#b9cdf1!important;box-shadow:0 14px 34px rgba(23,89,215,.11)!important}.journey-editor-head{margin-bottom:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.journey-editor-head h2{margin:5px 0 0}.journey-editor-panel textarea[name=content]{min-height:210px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.55}.row-actions .danger{color:#b42318;border-color:#efc3bf}.row-actions .danger:hover{background:#fff3f2}
@media(max-width:900px){.journey-course-head,.journey-admin-row{align-items:stretch;flex-direction:column}.journey-course-head>.row-actions,.journey-admin-row>.row-actions{justify-content:flex-start}.journey-admin-copy{grid-template-columns:auto minmax(0,1fr)}}
@media(max-width:560px){.journey-course-head{padding:18px}.journey-unit-list{padding:10px}.journey-unit-head,.journey-lesson-admin>.journey-admin-row{padding:13px}.journey-course-head>.row-actions .btn,.journey-admin-row>.row-actions .btn{flex:1 1 46%}.journey-editor-head{align-items:stretch;flex-direction:column}.journey-editor-head .btn{width:100%}.journey-admin-copy{grid-template-columns:1fr}.journey-admin-copy .status-new,.journey-admin-copy strong,.journey-admin-copy small{grid-column:1}.journey-admin-icon{display:none}}

/* Exercise library split by skill + structured uploads */
.admin-skill-library{margin:0 0 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-skill-tab{min-width:0;min-height:62px;padding:12px 15px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text-secondary);font-weight:800;text-align:left;cursor:pointer;box-shadow:0 4px 12px rgba(18,44,84,.05)}.admin-skill-tab svg{width:20px}.admin-skill-tab b{min-width:28px;padding:3px 8px;border-radius:99px;background:var(--surface-2);color:var(--text);font-size:11px;text-align:center}.admin-skill-tab:hover{border-color:#a9bee3;color:var(--blue)}.admin-skill-tab.active{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 10px 22px rgba(30,93,189,.2)}.admin-skill-tab.active b{background:rgba(255,255,255,.18);color:#fff}.admin-skill-tab:focus-visible{outline:3px solid rgba(30,93,189,.25);outline-offset:2px}.exercise-import-panel{margin-bottom:18px}.exercise-inline-import{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.exercise-inline-import .exercise-import-head{margin-bottom:14px}.exercise-import-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.exercise-import-head h2{margin:3px 0 4px;font-size:20px}.exercise-import-head p{margin:0}.exercise-import-icon{width:48px;height:48px;flex:0 0 auto;display:grid;place-items:center;border-radius:13px;background:#eaf1ff;color:var(--blue)}.exercise-import-icon svg{width:23px}.exercise-upload-form{display:grid;gap:14px}.exercise-upload-form input[type=file]{padding:11px;border:1px dashed #aabbd3;border-radius:10px;background:#f8faff}.exercise-upload-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.exercise-column-guide{margin:0 0 16px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8faff}.exercise-column-guide>strong{display:block;margin-bottom:9px}.exercise-column-guide>div{display:flex;flex-wrap:wrap;gap:7px}.exercise-column-guide span{padding:5px 9px;border:1px solid #d4deec;border-radius:7px;background:#fff;color:var(--text-secondary);font-size:11px;font-weight:800}.exercise-import-feedback{min-height:20px;padding:0;color:var(--text-secondary);font-size:12px;font-weight:700}.exercise-import-feedback.working,.exercise-import-feedback.error{padding:11px 13px;border-radius:9px}.exercise-import-feedback.working{background:#eaf1ff;color:var(--blue)}.exercise-import-feedback.error{border:1px solid #efc3bf;background:#fff3f2;color:#a52c23}.exercise-import-panel .success-banner,.exercise-inline-import .success-banner{margin-bottom:16px}
.admin-skill-library.composer-tabs{grid-template-columns:1.15fr repeat(4,minmax(0,1fr))}
.exercise-composer-panel{display:grid;gap:18px}.exercise-composer-intro{display:flex;align-items:flex-start;gap:14px;padding-bottom:4px}.exercise-composer-intro h2{margin:2px 0 5px;font-size:22px}.exercise-composer-intro p{margin:0;color:var(--text-secondary)}.composer-selection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#f8faff}.composer-selection-head strong,.composer-selection-head small{display:block}.composer-selection-head small{margin-top:3px;color:var(--text-secondary)}.composer-group{border:1px solid var(--line);border-radius:12px;overflow:hidden}.composer-group>header{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:#f8faff;border-bottom:1px solid var(--line)}.composer-group>header>div{display:flex;align-items:center;gap:8px}.composer-group>header svg{width:18px;color:var(--blue)}.composer-group>header>span{font-size:12px;color:var(--text-secondary);font-weight:800}.composer-question-list{display:grid}.composer-question-row{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:start;gap:10px;padding:13px 15px;border-bottom:1px solid #edf1f7;cursor:pointer}.composer-question-row:last-child{border-bottom:0}.composer-question-row:hover{background:#fbfdff}.composer-question-row input{position:absolute;opacity:0;pointer-events:none}.composer-question-check{width:18px;height:18px;margin-top:1px;border:1.5px solid #aabbd3;border-radius:5px;background:#fff;position:relative}.composer-question-row input:checked~.composer-question-check{border-color:var(--blue);background:var(--blue)}.composer-question-row input:checked~.composer-question-check:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:900}.composer-question-copy{min-width:0}.composer-question-copy strong,.composer-question-copy small{display:block}.composer-question-copy strong{font-size:14px;line-height:1.35}.composer-question-copy small{margin-top:4px;color:var(--text-secondary);font-size:11px}.composer-tabs .composer-tab-primary{box-shadow:0 10px 22px rgba(30,93,189,.13)}
@media(max-width:800px){.admin-skill-library{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-skill-library.composer-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.composer-tabs .composer-tab-primary{grid-column:1/-1}}
@media(max-width:520px){.admin-skill-library{gap:8px}.admin-skill-tab{min-height:54px;padding:10px}.exercise-import-head{align-items:center}.exercise-import-icon{width:42px;height:42px}.exercise-upload-actions{align-items:stretch;flex-direction:column}.exercise-upload-actions .btn{width:100%}.exercise-column-guide{padding:12px}.exercise-column-guide span{font-size:10px}}

/* Training management: clear people/content workflows and delivery choice. */
.management-section-head{display:grid;gap:14px;margin-bottom:18px}
.management-section-head>.page-heading{margin-bottom:0}
.input-format-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 12px}
.input-format-guide span{display:grid;gap:3px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#f8faff;color:var(--text-secondary);font-size:11px;font-weight:700}
.input-format-guide b{color:var(--text);font-size:13px}
.delivery-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.delivery-type-card{min-height:116px;padding:17px;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "icon copy";align-content:center;column-gap:12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);cursor:pointer;box-shadow:0 5px 16px rgba(18,44,84,.06)}
.delivery-type-card svg{grid-area:icon;width:25px;color:var(--blue)}
.delivery-type-card strong{grid-area:title;font-size:15px}
.delivery-type-card small{grid-area:copy;margin-top:4px;color:var(--text-secondary);line-height:1.45}
.delivery-type-card.active{border:2px solid var(--blue);background:#f2f7ff;box-shadow:0 10px 24px rgba(30,93,189,.13)}
.delivery-exam-options{margin-top:-7px;margin-bottom:14px;padding:13px;border:1px dashed #b8c8df;border-radius:12px;background:#fbfcff}
.student-class-picker{max-height:220px;overflow:auto}
.skill-test-card{border-top:4px solid var(--blue)}
.skill-activity-card.is-skill-exam{border-top:5px solid var(--orange,#ff5a24)}
@media(max-width:800px){.input-format-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-type-grid{grid-template-columns:1fr}}
@media(max-width:520px){.input-format-guide{grid-template-columns:1fr}.delivery-type-card{min-height:104px;padding:14px}}

/* Student account removal keeps the destructive action visible but secondary. */
.student-card .student-delete{flex:none;white-space:nowrap;color:#b42318;border-color:#efc3bf}
.student-card .student-delete:hover{background:#fff3f2}
.student-class-dropdown{display:grid;gap:10px}
.student-class-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font-weight:800;cursor:pointer;list-style:none}
.student-class-dropdown summary::-webkit-details-marker{display:none}
.student-class-dropdown summary::after{content:'+';font-size:20px;line-height:1;color:var(--blue)}
.student-class-dropdown[open] summary{border-color:var(--blue);border-bottom-left-radius:8px;border-bottom-right-radius:8px;background:#f5f8ff}
.student-class-dropdown[open] summary::after{content:'−'}
.student-class-dropdown .student-class-picker{padding:8px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:#fbfcff}
.today-class-notes{display:grid;gap:13px;margin:0 0 22px;padding:18px;border:1px solid #cddbf0;border-radius:16px;background:linear-gradient(135deg,#f7faff 0%,#eef5ff 100%)}
.today-class-notes-head{display:flex;align-items:end;justify-content:space-between;gap:14px}
.today-class-notes-head h2{margin:4px 0 0;font-size:20px}
.today-class-notes-head>span{padding:6px 10px;border-radius:99px;background:#dce9ff;color:var(--blue);font-size:11px;font-weight:800;white-space:nowrap}
.today-class-note-list{display:grid;gap:9px}
.today-class-note{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;padding:14px;border:1px solid #dce5f2;border-radius:12px;background:#fff}
.today-class-note-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#eaf1ff;color:var(--blue)}
.today-class-note-icon svg{width:19px}
.today-class-note strong{display:block;margin:1px 0 4px}
.today-class-note small{display:block;margin:-1px 0 7px;color:var(--muted);font-size:12px}
.today-class-note p{margin:0;color:var(--text-secondary);line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.journey-notification-preview{margin:8px 0 0;color:var(--text-secondary);font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.journey-notification-preview span{color:var(--blue);font-weight:800}
.journey-notification-preview svg{width:14px;height:14px;vertical-align:-2px}
@media(max-width:700px){.student-card{align-items:stretch;flex-wrap:wrap}.student-card-open{flex:1 1 100%}.student-card .student-delete{width:100%}}
@media(max-width:520px){.today-class-notes{padding:14px}.today-class-notes-head{align-items:flex-start;flex-direction:column}.today-class-note{padding:12px}}
.student-account-page{max-width:1100px;margin:0 auto}.student-account-grid{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}.account-profile-card{display:grid;gap:14px;padding:24px}.account-avatar{width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:var(--blue);color:#fff;font-size:20px;font-weight:800}.account-profile-card h2{margin:0 0 8px;font-size:22px}.account-profile-card p{margin:4px 0;font-size:13px}.account-role{justify-self:start;padding:5px 10px;border-radius:99px;background:var(--surface-2);color:var(--blue-strong);font-size:11px;font-weight:800}.account-security-card{padding:24px}.account-card-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}.account-card-heading h2{margin:7px 0 4px;font-size:22px}.account-card-heading p{margin:0;font-size:13px}.account-card-heading>svg{width:24px;color:var(--blue)}.account-password-input{position:relative}.account-password-input input{width:100%;padding-right:48px}.password-toggle{position:absolute;right:8px;top:50%;width:34px;height:34px;display:grid;place-items:center;transform:translateY(-50%);border:0;border-radius:8px;background:transparent;color:var(--text-muted)}.password-toggle:hover,.password-toggle:focus-visible{background:var(--surface-2);color:var(--blue)}.password-toggle svg{width:17px}.password-strength{display:grid;grid-template-columns:minmax(80px,1fr) auto;align-items:center;gap:9px;margin-top:9px}.password-strength>span{height:5px;overflow:hidden;border-radius:99px;background:var(--surface-3)}.password-strength>span::after{content:"";display:block;width:0;height:100%;border-radius:inherit;background:var(--danger);transition:width .2s ease,background-color .2s ease}.password-strength>span[data-level="Yếu"]::after{width:30%;background:var(--danger)}.password-strength>span[data-level="Vừa"]::after{width:65%;background:var(--yellow)}.password-strength>span[data-level="Mạnh"]::after{width:100%;background:var(--success)}.password-strength small{font-size:11px;white-space:nowrap}.account-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:6px}.account-form-actions .btn{min-height:44px}.account-form-actions .helper{margin:0}@media(max-width:760px){.student-account-grid{grid-template-columns:1fr}.account-profile-card,.account-security-card{padding:18px}}@media(max-width:430px){.password-strength{grid-template-columns:1fr}.password-strength small{white-space:normal}}
.ai-suggestion-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:14px 16px;border:1px solid #cfe0ff;border-radius:14px;background:#f4f8ff}.ai-suggestion-card strong,.ai-suggestion-card small{display:block}.ai-suggestion-card small{margin-top:4px;color:var(--text-muted);font-size:12px}.ai-suggestion-card .btn{white-space:nowrap}@media(max-width:600px){.ai-suggestion-card{align-items:flex-start;flex-direction:column}.ai-suggestion-card .btn{width:100%}}
.ai-quick-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}.ai-quick-stats span{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text-secondary);font-size:11px;font-weight:700}.ai-quick-stats b{color:var(--text);font-size:18px}.ai-test-result{min-height:22px;margin-top:12px;font-weight:800}.ai-test-result[data-state=working]{color:var(--text-secondary)}.ai-test-result[data-state=success]{color:var(--success)}.ai-test-result[data-state=error]{color:var(--danger)}.ai-human-note{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:700px){.ai-quick-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
