:root {
  --ink: #173b3c;
  --ink-2: #315657;
  --green: #0b5553;
  --green-2: #0f7069;
  --mint: #dcece6;
  --mint-2: #eff6f2;
  --cream: #f5f3eb;
  --paper: #fffefa;
  --orange: #e67e50;
  --line: #dfe7e2;
  --muted: #758887;
  --danger: #c75d51;
  --success: #28806f;
  --shadow: 0 24px 70px rgba(18, 57, 55, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Manrope, "Noto Sans SC", sans-serif; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 16px; color: var(--green-2); font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.eyebrow.light { color: #a7d3c5; }

.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 360px; height: 360px; left: -160px; bottom: -180px; background: rgba(230,126,80,.09); }
.ambient-two { width: 420px; height: 420px; right: -260px; top: -170px; background: rgba(14,112,105,.08); }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1fr) minmax(520px, .94fr); }
.login-brand { position: relative; overflow: hidden; padding: clamp(54px, 7vw, 104px); display: flex; flex-direction: column; justify-content: center; color: white; background: var(--green); }
.login-brand::before { content: ""; position: absolute; width: 560px; height: 560px; right: -260px; top: -250px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255,255,255,.025), 0 0 0 170px rgba(255,255,255,.02); }
.login-brand::after { content: ""; position: absolute; width: 450px; height: 450px; left: -320px; bottom: -270px; background: var(--orange); opacity: .22; border-radius: 50%; filter: blur(2px); }
.brand-mark { position: absolute; top: 56px; left: 64px; display: flex; align-items: end; gap: 4px; width: 38px; height: 29px; transform: skew(-16deg); }
.brand-mark span { display: block; width: 8px; background: #fff; border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 16px; }.brand-mark span:nth-child(2) { height: 28px; }.brand-mark span:nth-child(3) { height: 21px; background: var(--orange); }
.brand-mark.small { position: static; width: 31px; height: 25px; flex: none; }
.brand-mark.small span:nth-child(1) { height: 13px; }.brand-mark.small span:nth-child(2) { height: 24px; }.brand-mark.small span:nth-child(3) { height: 18px; }
.login-brand h1 { max-width: 660px; margin: 0; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.16; letter-spacing: -.045em; font-weight: 600; }
.brand-copy { margin: 28px 0 0; color: #c1d9d2; font-size: 16px; }
.path-preview { position: absolute; left: clamp(54px, 7vw, 104px); right: 70px; bottom: 64px; display: flex; align-items: center; max-width: 650px; }
.path-preview div { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.path-preview b { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; font-size: 10px; }
.path-preview span { color: #b9d0ca; font-size: 12px; }.path-preview i { flex: 1; height: 1px; margin: 0 16px; background: rgba(255,255,255,.2); }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(480px, 100%); padding: 52px; background: rgba(255,254,250,.86); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.mobile-brand { display: none; }.login-card h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.04em; }.login-card > .muted { margin: 0 0 34px; font-size: 14px; }
label, legend { font-size: 13px; font-weight: 600; } fieldset { margin: 24px 0 30px; padding: 0; border: 0; } legend { margin-bottom: 12px; }
.input-wrap { position: relative; margin-top: 9px; }.input-wrap svg { position: absolute; width: 19px; left: 16px; top: 15px; fill: none; stroke: #75908d; stroke-width: 1.8; }
input, textarea { width: 100%; border: 1px solid var(--line); background: #fbfcf9; color: var(--ink); outline: none; transition: .2s; }
input:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(15,112,105,.08); }
#nameInput, #adminUser, #adminPass { height: 50px; padding: 0 16px 0 46px; border-radius: 12px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option { position: relative; display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s; background: #fbfcf9; }
.role-option:hover, .role-option.selected { border-color: var(--green-2); background: #eff7f3; }.role-option input { position: absolute; opacity: 0; width: 1px; }.role-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: var(--green); background: var(--mint); border-radius: 10px; }
.role-option b, .role-option small { display: block; }.role-option b { font-size: 13px; }.role-option small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }.role-option i { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border: 1px solid #b8c6c1; border-radius: 50%; }.role-option.selected i { border: 2px solid white; background: var(--green-2); box-shadow: 0 0 0 1px var(--green-2); }
.btn { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }.btn:hover { transform: translateY(-1px); }.btn-primary { color: white; background: var(--green); box-shadow: 0 9px 24px rgba(11,85,83,.18); }.btn-primary:hover { background: #074744; }.btn-secondary { color: var(--green); background: var(--mint); }.btn-ghost { border: 1px solid var(--line); background: white; }.btn-danger { color: var(--danger); background: #fbeeea; }.btn-block { display: flex; width: 100%; justify-content: center; align-items: center; gap: 10px; }.privacy-note { margin: 26px 0 0; color: #98a6a3; font-size: 10px; text-align: center; }

/* Layout */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; background: #f5f6f1; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 240px; display: flex; flex-direction: column; padding: 27px 20px 18px; color: white; background: var(--green); }
.sidebar-brand { display: flex; align-items: center; gap: 13px; padding: 0 12px 38px; }.sidebar-brand b, .sidebar-brand small { display: block; }.sidebar-brand b { font-size: 14px; letter-spacing: .06em; }.sidebar-brand small { color: #8cb5ad; font-size: 10px; margin-top: 2px; letter-spacing: .08em; }
nav { display: flex; flex-direction: column; gap: 5px; }.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; color: #afd0ca; background: transparent; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }.nav-item span { width: 20px; text-align: center; font-size: 16px; }.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }.nav-item.active::after { content: ""; width: 3px; height: 20px; margin-left: auto; background: var(--orange); border-radius: 5px; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); }.user-chip { display: flex; align-items: center; gap: 9px; min-width: 0; }.user-chip > div { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 10px; color: white; background: var(--orange); font-size: 12px; }.user-chip span { min-width: 0; }.user-chip b, .user-chip small { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.user-chip b { font-size: 11px; }.user-chip small { color: #91b8b0; font-size: 9px; margin-top: 2px; }.icon-btn { border: 0; color: #a7c9c2; background: transparent; cursor: pointer; font-size: 18px; }
.app-shell main { grid-column: 2; min-width: 0; }.topbar { position: sticky; z-index: 20; top: 0; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(250,251,247,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }.breadcrumb { margin: 0 0 3px; color: #8b9996; font-size: 10px; }.topbar h2 { margin: 0; font-size: 19px; }.top-actions { display: flex; align-items: center; gap: 7px; color: #889896; }.top-actions small { font-size: 10px; }.sync-dot { width: 6px; height: 6px; background: #50a786; border-radius: 50%; }.avatar-button { display: none; }.menu-btn { display: none; }
.page-pad { max-width: 1440px; margin: 0 auto; padding: 38px 42px 70px; }.view { animation: fadeIn .3s ease; }@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } }

/* Dashboard */
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }.welcome-row h1 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 39px); letter-spacing: -.045em; }.welcome-row p { margin: 0; color: var(--muted); font-size: 13px; }.overall-progress { display: flex; align-items: center; gap: 13px; min-width: 210px; }.ring { --p: 0; position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), #e2e9e5 0); }.ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #f7f8f4; }.ring b { position: relative; z-index: 1; font-size: 12px; }.overall-progress span b,.overall-progress span small { display: block; }.overall-progress span b { font-size: 12px; }.overall-progress span small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.hero-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr .6fr; min-height: 255px; padding: 43px 48px; color: white; background: linear-gradient(118deg,#0a5653,#174c4b); border-radius: 25px; box-shadow: 0 20px 45px rgba(10,75,72,.15); }.hero-card::before { content: ""; position: absolute; width: 370px; height: 370px; right: -80px; top: -180px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.025),0 0 0 116px rgba(255,255,255,.018); }.hero-card::after { content: "ER  ·  PAM  ·  CDK"; position: absolute; right: 54px; bottom: 48px; color: rgba(255,255,255,.18); font-size: 23px; font-weight: 700; letter-spacing: .12em; }.hero-card h2 { max-width: 560px; margin: 7px 0 13px; font-size: clamp(25px, 3vw, 35px); line-height: 1.3; }.hero-card p { max-width: 600px; margin: 0 0 27px; color: #c2dbd5; font-size: 12px; line-height: 1.8; }.hero-card .btn { width: max-content; color: var(--green); background: #f9f6ec; }.hero-card .eyebrow { color: #8bc1b6; }.hero-visual { position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 34px 0 15px; }.section-head h3 { margin: 0 0 4px; font-size: 17px; }.section-head p { margin: 0; color: var(--muted); font-size: 10px; }.section-head small { color: var(--muted); font-size: 10px; }
.challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.challenge-card { position: relative; min-height: 220px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 9px 30px rgba(27,70,66,.04); }.challenge-card .step-num { color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .1em; }.challenge-card h3 { margin: 19px 0 7px; font-size: 19px; }.challenge-card p { max-width: 80%; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.challenge-card .card-meta { display: flex; align-items: center; gap: 10px; margin-top: 26px; }.status-pill { padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 700; background: #f1f3ef; color: var(--muted); }.status-pill.done { background: #e5f3ed; color: var(--success); }.challenge-card .btn { position: absolute; right: 25px; bottom: 24px; min-height: 38px; font-size: 11px; }.card-art { position: absolute; top: 26px; right: 28px; display: grid; place-items: center; width: 54px; height: 54px; color: var(--green); background: var(--mint-2); border-radius: 16px; font-size: 22px; }
.knowledge-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }.knowledge-chip { padding: 16px; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 13px; }.knowledge-chip span { display: block; width: 7px; height: 7px; margin-bottom: 10px; border-radius: 50%; }.knowledge-chip b { display: block; font-size: 11px; }.knowledge-chip small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.practice-grid { display:grid; gap:13px; }.game-promo { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 29px 34px; color: white; background: linear-gradient(115deg,#153e40,#0b5553); border-radius: 18px; box-shadow: 0 15px 38px rgba(15,72,69,.11); }.game-promo.talk-promo { background:linear-gradient(115deg,#744c3a,#9b6145); }.game-promo::after { content:""; position:absolute; right:-55px; top:-100px; width:230px; height:230px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 84px rgba(255,255,255,.018); }.game-promo>div { position:relative; z-index:1; }.game-promo span { color:#f0a276; font-size:8px; font-weight:700; letter-spacing:.15em; }.talk-promo span { color:#ffd0b4; }.game-promo h3 { margin:8px 0 7px; font-size:20px; }.game-promo p { max-width:650px; margin:0; color:#b7d0ca; font-size:10px; line-height:1.7; }.talk-promo p { color:#ead4c9; }.game-promo-meta { min-width:160px; text-align:right; }.game-promo-meta b,.game-promo-meta small { display:block; }.game-promo-meta b { font-size:11px; }.game-promo-meta small { margin:4px 0 12px; color:#92b7af; font-size:8px; }.talk-promo .game-promo-meta small { color:#dfc1b2; }.game-promo .btn { display:inline-flex; align-items:center; min-height:36px; color:var(--green); background:#f7f3e8; font-size:9px; text-decoration:none; }

/* Quiz */
.content-narrow { max-width: 920px; margin: 0 auto; }.intro-card { padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.intro-card h1 { margin: 8px 0 10px; font-size: 30px; }.intro-card > p { color: var(--muted); line-height: 1.8; font-size: 13px; }.rule-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 26px 0; }.rule { padding: 16px; background: var(--mint-2); border-radius: 12px; }.rule b,.rule small { display:block; }.rule b { font-size: 15px; }.rule small { margin-top: 4px; color: var(--muted); font-size: 9px; }.source-banner { display: flex; gap: 10px; padding: 14px; margin-bottom: 25px; color: #7c705a; background: #f8f2df; border-radius: 11px; font-size: 10px; line-height: 1.5; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }.quiz-top b { font-size: 12px; }.quiz-progress { flex: 1; max-width: 470px; height: 5px; margin: 0 20px; overflow: hidden; background: #e1e8e4; border-radius: 6px; }.quiz-progress i { display: block; height: 100%; background: var(--orange); border-radius: inherit; transition: width .3s; }.quiz-question { padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 45px rgba(19,64,59,.07); }.question-badges { display:flex; gap:7px; }.question-badges span { padding: 5px 9px; border-radius: 20px; color: var(--green-2); background: var(--mint-2); font-size: 9px; font-weight: 700; }.quiz-question h2 { margin: 24px 0; font-size: 21px; line-height: 1.6; }.options { display: grid; gap: 10px; }.option { position: relative; display: flex; gap: 14px; align-items: center; min-height: 57px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; cursor:pointer; background: #fcfdfa; transition: .2s; }.option:hover { border-color: #9ebdb6; }.option.selected { border-color: var(--green-2); background: #eff7f3; }.option input { position:absolute; opacity:0; width:1px; }.option-key { display:grid; place-items:center; width:29px; height:29px; flex:none; border:1px solid #cfdbd6; border-radius:8px; font-size:10px; }.option.selected .option-key { color:white; border-color:var(--green); background:var(--green); }.option-text { font-size:12px; }.quiz-actions { display:flex; justify-content:space-between; margin-top:27px; }.quiz-actions .btn { min-width: 120px; }
.result-score { text-align:center; }.score-orb { display:grid; place-items:center; width:110px; height:110px; margin:0 auto 18px; border-radius:50%; background:var(--mint-2); border:7px solid var(--mint); }.score-orb b { font-size:29px; }.score-orb small { font-size:9px; color:var(--muted); }.result-score h2 { margin:0 0 7px; }.review-list { display:grid; gap:13px; margin-top:27px; text-align:left; }.review-item { padding:19px; border-left:3px solid var(--danger); background:#fdf8f5; border-radius:4px 12px 12px 4px; }.review-item h4 { margin:0 0 7px; font-size:12px; }.review-item p { margin:4px 0; color:var(--ink-2); font-size:10px; line-height:1.7; }.review-item .source { color:#a5684e; }.success-panel { padding: 30px; margin-top:25px; background:var(--mint-2); border-radius:15px; }

/* Speech */
.speech-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:19px; }.speech-main,.speech-side { display:flex; flex-direction:column; gap:18px; }.topic-card { position:relative; overflow:hidden; min-height:230px; padding:34px; color:white; background:var(--green); border-radius:var(--radius); }.topic-card::after { content:""; position:absolute; width:250px; height:250px; right:-80px; top:-100px; border:1px solid rgba(255,255,255,.15); border-radius:50%; box-shadow:0 0 0 45px rgba(255,255,255,.03),0 0 0 90px rgba(255,255,255,.02); }.topic-label { display:inline-block; padding:5px 9px; margin-bottom:20px; border:1px solid rgba(255,255,255,.2); border-radius:20px; color:#b9d9d2; font-size:9px; }.topic-card h1 { position:relative; z-index:1; margin:0 0 10px; font-size:31px; }.topic-card p { position:relative; z-index:1; max-width:78%; margin:0; color:#bdd6d0; font-size:11px; line-height:1.8; }.topic-actions { position:absolute; z-index:2; left:34px; bottom:27px; display:flex; gap:9px; }.topic-actions .btn { min-height:36px; font-size:10px; }
.editor-card { padding:27px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); }.editor-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; }.editor-head h3 { margin:0; font-size:15px; }.timer { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }.timer strong { color:var(--ink); font-size:17px; }.timer.danger strong { color:var(--danger); }.editor-card textarea { min-height:260px; padding:18px; resize:vertical; border-radius:12px; line-height:1.8; font-size:12px; }.editor-foot { display:flex; align-items:center; gap:9px; margin-top:13px; }.editor-foot .btn:last-child { margin-left:auto; }.recording { color:white !important; background:var(--danger) !important; animation:pulse 1.5s infinite; }@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(199,93,81,.14)}}
.side-card { padding:24px; background:var(--paper); border:1px solid var(--line); border-radius:18px; }.side-card h3 { margin:0 0 17px; font-size:14px; }.countdown-card { text-align:center; }.big-timer { display:grid; place-items:center; width:128px; height:128px; margin:9px auto 15px; border:8px solid var(--mint); border-radius:50%; font-size:28px; font-weight:600; font-variant-numeric:tabular-nums; }.countdown-card p { margin:0; color:var(--muted); font-size:9px; }.point-list { display:grid; gap:10px; }.point-item { display:flex; gap:9px; align-items:flex-start; font-size:10px; line-height:1.5; }.point-item i { display:grid; place-items:center; width:18px; height:18px; flex:none; color:var(--green); background:var(--mint); border-radius:50%; font-size:8px; font-style:normal; }.whisper-status { padding:13px; color:var(--muted); background:#f6f7f3; border-radius:10px; font-size:9px; line-height:1.6; }
.score-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:25px 0; }.dimension { padding:17px 10px; text-align:center; background:var(--mint-2); border-radius:12px; }.dimension b,.dimension small { display:block; }.dimension b { font-size:24px; }.dimension small { margin-top:5px; color:var(--muted); font-size:9px; }.feedback-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; text-align:left; }.feedback-block { padding:16px; background:#f7f8f4; border-radius:12px; }.feedback-block h4 { margin:0 0 8px; font-size:11px; }.feedback-block ul { margin:0; padding-left:17px; color:var(--muted); font-size:9px; line-height:1.8; }.total-score { color:var(--green); font-size:52px; line-height:1; }

/* Admin */
.admin-hero { display:flex; justify-content:space-between; align-items:end; margin-bottom:25px; }.admin-hero h1 { margin:0 0 7px; font-size:30px; }.admin-hero p { margin:0; color:var(--muted); font-size:11px; }.admin-hero .btn { min-height:38px; font-size:10px; }.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }.metric-card { padding:22px; background:var(--paper); border:1px solid var(--line); border-radius:16px; }.metric-card small,.metric-card b { display:block; }.metric-card small { color:var(--muted); font-size:9px; }.metric-card b { margin:10px 0 5px; font-size:27px; }.metric-card em { color:var(--success); font-size:9px; font-style:normal; }.table-card { margin-top:20px; overflow:hidden; background:var(--paper); border:1px solid var(--line); border-radius:18px; }.table-tools { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--line); }.table-tools h3 { margin:0; font-size:14px; }.search-box { width:210px; height:35px; padding:0 12px; border-radius:9px; font-size:10px; }.data-table { width:100%; border-collapse:collapse; }.data-table th,.data-table td { padding:15px 20px; border-bottom:1px solid #edf0ed; text-align:left; font-size:10px; }.data-table th { color:var(--muted); background:#fafbf8; font-weight:600; }.data-table td b { font-size:11px; }.person { display:flex; align-items:center; gap:9px; }.person i { display:grid; place-items:center; width:30px; height:30px; color:white; background:var(--green-2); border-radius:9px; font-size:9px; font-style:normal; }.mini-progress { width:90px; height:5px; overflow:hidden; background:#e8ece9; border-radius:5px; }.mini-progress i { display:block; height:100%; background:var(--green-2); }.empty-score { color:#a7b2af; }.table-foot { display:flex; justify-content:space-between; padding:15px 20px; color:var(--muted); font-size:9px; }
.toast { position:fixed; z-index:100; left:50%; bottom:28px; max-width:calc(100vw - 30px); padding:12px 18px; color:white; background:#183f3f; border-radius:10px; box-shadow:var(--shadow); opacity:0; transform:translate(-50%,20px); pointer-events:none; transition:.25s; font-size:11px; }.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }.login-brand { display:none; }.login-panel { min-height:100vh; padding:24px; }.mobile-brand { display:flex; align-items:center; gap:8px; margin-bottom:36px; color:var(--green); font-size:10px; font-weight:700; letter-spacing:.08em; }.mini-mark { padding:6px; color:white; background:var(--green); border-radius:6px; }
  .app-shell { grid-template-columns: 1fr; }.sidebar { transform:translateX(-100%); transition:.25s; }.sidebar.open { transform:translateX(0); box-shadow:20px 0 60px rgba(0,0,0,.16); }.app-shell main { grid-column:1; }.menu-btn { display:block; border:0; background:transparent; font-size:20px; }.topbar { padding:0 22px; }.page-pad { padding:28px 22px 60px; }.speech-layout { grid-template-columns:1fr; }.speech-side { display:grid; grid-template-columns:1fr 1fr; }.metric-grid { grid-template-columns:1fr 1fr; }.data-table { min-width:760px; }.table-card { overflow-x:auto; }
}
@media (max-width: 650px) {
  .login-card { padding:32px 24px; }.role-grid { grid-template-columns:1fr; }.top-actions small,.sync-dot { display:none; }.welcome-row { align-items:flex-start; }.overall-progress { min-width:auto; }.overall-progress span { display:none; }.hero-card { grid-template-columns:1fr; padding:31px 27px; min-height:300px; }.hero-card::after { right:26px; bottom:28px; font-size:14px; }.challenge-grid,.knowledge-strip,.rule-grid,.score-grid,.feedback-grid,.metric-grid { grid-template-columns:1fr; }.knowledge-strip { grid-template-columns:1fr 1fr; }.challenge-card p { max-width:100%; }.challenge-card .btn { position:static; margin-top:18px; }.quiz-question,.intro-card { padding:25px 20px; }.quiz-progress { margin:0 10px; }.speech-side { grid-template-columns:1fr; }.editor-foot { flex-wrap:wrap; }.editor-foot .btn:last-child { width:100%; margin:4px 0 0; }.admin-hero { align-items:flex-start; flex-direction:column; gap:16px; }.topbar { height:72px; }.page-pad { padding:23px 16px 50px; }
  .game-promo { align-items:flex-start; flex-direction:column; padding:24px; }.game-promo-meta { text-align:left; }
}

/* ---- Admin password dialog ---- */
#adminLoginForm label { display: block; margin-top: 20px; }
#adminLoginForm label:first-child { margin-top: 0; }
#adminLoginForm .btn-block { margin-top: 28px; }
#adminLogin > .muted { margin-bottom: 28px; }
.pwd-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
}
.pwd-dialog {
  background: #fff; border-radius: 16px; padding: 32px;
  width: 90%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
}
.pwd-dialog h3 { margin: 0 0 6px; font-size: 1.15rem; color: #0b3638; }
.pwd-dialog p { margin: 0 0 18px; font-size: .9rem; color: #6b7f7e; }
.pwd-input {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1.5px solid #d0d9d8; border-radius: 10px;
  outline: none; transition: border-color .2s;
  letter-spacing: 2px;
}
.pwd-input:focus { border-color: #0b5553; }
.pwd-actions {
  display: flex; gap: 10px; justify-content: center; margin-top: 20px;
}
.pwd-actions .btn { min-width: 90px; }
