:root{color-scheme:light dark;--bg:light-dark(#faf9f7,#171717);--card:light-dark(#fff,#232323);--ink:light-dark(#242424,#f0f0ee);--muted:light-dark(#666,#b6b6b2);--line:light-dark(#deded9,#484846);--selected:light-dark(#efeeea,#383835)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}header{max-width:1000px;margin:auto;padding:24px 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}a{color:inherit;text-underline-offset:4px}.brand{text-decoration:none;font-size:21px;font-weight:800;letter-spacing:-.6px}.brand span{font-weight:400;font-size:13px;margin-left:8px;color:var(--muted)}nav{display:flex;gap:20px;font-size:13px}main{max-width:780px;margin:40px auto 72px;padding:0 28px}h1{font-size:34px;line-height:1.35;letter-spacing:-1.3px;margin:8px 0 18px}h2{font-size:23px;line-height:1.45;letter-spacing:-.6px}h3{font-size:18px}.eyebrow{font-size:12px;letter-spacing:1px;font-weight:700;color:var(--muted)}p{margin:12px 0}.muted,small{color:var(--muted)}.intro{max-width:600px;margin-bottom:28px}.cards{display:grid;gap:10px}.choice{position:relative;display:flex;align-items:center;gap:15px;width:100%;border:1px solid var(--line);border-radius:12px;padding:17px 20px;background:var(--card);cursor:pointer}.choice:hover{background:var(--selected)}.choice:has(input:checked){border:2px solid var(--ink);padding:16px 19px;background:var(--selected)}.choice input{width:19px;height:19px;flex-shrink:0;accent-color:var(--ink)}.choice strong{display:block;font-size:16px}.choice .description{display:block;color:var(--muted);font-size:13px;margin-top:3px}.choice.unknown{min-height:57px;background:transparent}.unknown span{font-size:13px;color:var(--muted)}.ar{font-family:"Geeza Pro","Noto Naskh Arabic",Tahoma,serif;direction:rtl;unicode-bidi:plaintext;font-size:24px;line-height:1.9;text-align:right;flex:1}.label{font-size:13px;color:var(--muted);width:22px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:26px}button,.button{font:inherit;padding:12px 22px;border:1px solid var(--ink);border-radius:10px;background:var(--ink);color:var(--bg);cursor:pointer;text-decoration:none;display:inline-block}button.secondary,.button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8a83d8;outline-offset:3px}.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;margin:22px 0}.notice{border-left:3px solid var(--line);padding:8px 15px;color:var(--muted);font-size:14px}.progress{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:15px}.track{height:4px;background:var(--line);border-radius:5px;overflow:hidden;margin-bottom:35px}.track i{display:block;height:100%;background:var(--ink)}.turn{border-bottom:1px solid var(--line);padding:8px 0 14px}.turn:last-child{border:0}.turn b{font-size:12px;color:var(--muted)}.tag{font-size:12px;padding:4px 9px;border:1px solid var(--line);border-radius:30px}.scoregrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scoregrid .panel{margin:0}.score{font-size:27px;font-weight:700}.error{max-width:720px;margin:20px auto;padding:15px;border:1px solid #ad3737;color:light-dark(#923030,#ffb3b3);border-radius:8px}footer{text-align:center;padding:22px;font-size:12px;color:var(--muted)}fieldset{border:0;padding:0;margin:0}legend{font-size:18px;font-weight:650;margin-bottom:12px}select{font:inherit;max-width:100%;background:var(--card);color:var(--ink);border:1px solid var(--line);padding:10px;border-radius:8px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:11px 8px;vertical-align:top}.scroll{overflow-x:auto}details{margin-top:16px}summary{cursor:pointer}code{overflow-wrap:anywhere}body.staff main{max-width:1000px}.staff-layout{display:grid;grid-template-columns:1fr 270px;gap:24px}.staff aside{align-self:start}.badge-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.staff .ar{font-size:23px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.guide p,.guide li{max-width:760px}.guide li{margin:8px 0}[hidden]{display:none!important}
@media(max-width:650px){header{padding:18px 20px}main{margin-top:28px;padding:0 20px}h1{font-size:28px}.choice{padding:15px}.choice:has(input:checked){padding:14px}.ar{font-size:22px}.staff-layout{grid-template-columns:1fr}.scoregrid{grid-template-columns:1fr 1fr}.panel{padding:18px}nav{gap:12px}.error{margin:16px 20px}button{padding:12px 18px}}
@media print{header nav,.actions,footer{display:none}main{max-width:none;margin:0}.panel,.choice{break-inside:avoid}}
.choice.disabled{opacity:.45;cursor:not-allowed}.option-row{display:flex;align-items:stretch;gap:8px}.option-row .choice{flex:1;min-width:0;flex-wrap:wrap}.option-play{min-width:48px}.unknown-translation{color:#888;font-size:12px}.dialect-flag{display:inline-block;border-radius:50%;width:24px;height:24px;overflow:hidden;vertical-align:middle}.listening{text-align:center;padding:34px}.listening button{font-size:20px;min-height:56px}
.option-row .label{flex:0 0 22px;font-size:22px;color:var(--ink)}
/* Student placement uses the A151 light-blue palette and approved silk artwork. */
body.student{color-scheme:light;--bg:#f7faff;--card:#fff;--ink:#202e45;--muted:#69788e;--line:#dee7f2;--selected:#edf4ff;background:linear-gradient(155deg,#fff 0%,#fbfdff 55%,#f2f7ff 100%);min-height:100dvh}
.student header{height:72px;max-width:820px;padding:14px 28px;border:0;gap:12px}.student .brand{font-size:18px;font-weight:700;color:#356fce}.student .brand span{font-size:13px;font-weight:400;color:var(--muted)}.student .header-space{width:40px}.student .plain-back{width:40px;height:40px;padding:0;background:transparent;color:var(--ink);border:0;font-size:25px}.student header:has(.plain-back[hidden])::before{content:'';width:40px}
.student main{max-width:660px;margin:26px auto 30px;padding:0 28px}.student h1{font-size:27px;font-weight:650;letter-spacing:-.9px}.student h1:focus{outline:none}.student .eyebrow{color:#356fce;letter-spacing:0;font-size:13px;font-weight:600;margin-bottom:18px}.student .intro{margin-bottom:28px}.student button{background:#356fce;border-color:#356fce;color:#fff;border-radius:14px;font-weight:600}.student button:hover:not(:disabled){background:#285db5}.student button.secondary{background:transparent;color:var(--muted);border-color:var(--line);font-weight:400}.student button.secondary:hover{background:#edf4ff}.student button:disabled{opacity:.35}.student .choice{border-radius:16px;padding:16px 18px;gap:12px;background:#ffffffc9;transition:border-color .15s,background .15s}.student .choice:has(input:checked){border:1px solid #6c9cde;background:#edf4ff;padding:16px 18px}.student .choice input{accent-color:#356fce}.student .choice .description{line-height:1.7}.student .actions{margin-top:30px}.student .actions>button:first-child{min-width:150px}.student .welcome,.student .ready-page,.student .resume-page{text-align:center;max-width:620px;margin-top:50px}.student .guide-copy{font-size:16px;line-height:1.9;margin:28px 0 8px}.student .guide-copy p{margin:20px 0}.student .guide-copy .muted{font-size:14px}.student .welcome .actions,.student .ready-page .actions,.student .resume-page .actions{justify-content:center}.student .fine{font-size:12px}.student .welcome .fine{margin-top:24px}
.student .orb{position:relative;display:block;width:180px;height:180px;padding:0;margin:12px auto 0;background:transparent;border:0;border-radius:50%;cursor:pointer}.student .orb:hover:not(:disabled){background:transparent}.student .orb img{display:block;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 8px 14px #81ace21a)}.student .orb-mark{position:absolute;left:50%;top:50%;transform:translate(-45%,-50%);font-size:24px;color:#24579c;text-shadow:0 1px 4px #fff9}.student .orb.is-playing .orb-mark{opacity:0}.student .orb:focus-visible{outline:2px solid #6c9cde;outline-offset:-18px}.student .ready-page .orb{margin-top:12px}
.student .question-page{margin-top:18px;max-width:660px}.question-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.student .question-heading h1{font-size:19px;letter-spacing:-.5px;margin:0}.student .question-heading .progress{margin:0;font-size:13px;white-space:nowrap}.student .listening-stage{text-align:center;margin:24px 0 26px}.student .badge-row{justify-content:center;min-height:30px}.student .tag{background:#f0f5fc;border:0;font-size:12px;color:#587292;padding:4px 12px}.student .dialect-flag{display:inline-block;flex:0 0 22px;width:22px;height:22px;object-fit:contain;border-radius:50%;overflow:hidden;vertical-align:middle;margin-inline-end:4px}.student .listening-stage .orb{margin:0 auto;width:164px;height:164px}.student #audio-status{margin:0;font-size:12px;color:var(--muted);min-height:20px}.student .answer-cards{gap:10px}.student .option-row{direction:rtl;gap:6px;position:relative}.student .option-row .choice{flex-wrap:nowrap;min-height:65px;padding:10px 15px;gap:12px;direction:rtl;text-align:right;cursor:pointer}.student .option-row .choice:has(input:checked){padding:10px 15px}.student .option-row input{position:absolute;opacity:0;width:1px;height:1px}.student .option-row .choice:has(input:focus-visible){outline:2px solid #6c9cde;outline-offset:3px}.student .option-row .label{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#eff4fb;color:#5b7397;font-size:18px;line-height:30px;text-align:center;align-self:center}.student .option-row .choice:has(input:checked) .label{background:#356fce;color:#fff}.student .option-text{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;flex:1;min-width:0;text-align:right}.student .option-text .ar{font-size:23px;flex:0 1 auto;line-height:1.65;overflow-wrap:anywhere}.student .unknown-translation{color:#8b95a5;font-size:11px;white-space:nowrap}.student .option-play{min-width:42px;width:42px;padding:0;border:0!important;font-size:20px;color:#7189aa!important}.student .question-actions{position:sticky;bottom:0;display:flex;flex-direction:column;gap:6px;margin:24px -2px 0;padding:16px 2px max(12px,env(safe-area-inset-bottom));background:linear-gradient(#f7faff00,#f7faff 14%);z-index:1}.student .question-actions #submit{width:100%;height:50px}.student .question-actions #pause{border:0;padding:7px 20px;font-size:12px}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(prefers-reduced-motion:reduce){.student .orb.is-playing img{animation:none}.student .choice{transition:none}}
@media(max-width:600px){.student header{height:60px;padding:10px 16px}.student main{padding:0 20px;margin-top:22px}.student .welcome,.student .ready-page,.student .resume-page{margin-top:30px}.student h1{font-size:25px}.student .guide-copy{font-size:15px}.student .question-heading h1{font-size:17px}.student .listening-stage{margin:18px 0}.student .listening-stage .orb{width:144px;height:144px}.student .option-text .ar{font-size:22px}.student .option-row .choice{padding:10px 12px;gap:10px}.student .option-row .choice:has(input:checked){padding:10px 12px}.student .question-actions{margin-top:18px}.student .option-text{gap:6px}}

/* Approved C03 silk / measured audio ribbon / completed check. */
.student .orb .voice-orb-visual { position: absolute; inset: 0; pointer-events: none; }
.student .orb .orb-silk { display: block; width: 100%; height: 100%; opacity: calc(1 - var(--voice-presence)); }
.student .orb .orb-live {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; isolation: isolate;
  border: 1px solid #bfd8f8;
  opacity: var(--voice-presence);
  background: radial-gradient(ellipse at 30% 20%, #fff 0%, #e6f1ff 48%, #cce2ff 100%);
  box-shadow: inset 0 0 calc(12px + var(--voice-strength) * 15px) rgb(222 246 255 / calc(.25 + var(--voice-strength) * .55)), 0 0 calc(8px + var(--voice-strength) * 20px) rgb(105 173 248 / calc(var(--voice-strength) * .3));
}
.student .orb .orb-live-art { position: absolute; inset: 0; transform: scale(calc(.96 + var(--voice-level) * .06)); }
.student .orb .orb-live-fold { position: absolute; opacity: .88; }
.student .orb .orb-live-a {
  left: 12%; top: 12%; width: 63%; height: 73%;
  border-radius: var(--voice-fold-0, 75% 25% 68% 32% / 58% 34% 66% 42%);
  background: radial-gradient(ellipse at 80% 70%, #fff9, transparent 48%), linear-gradient(145deg, #e1f8ff20 10%, #73aafaaf 42%, #2a7de3ba 60%, #bfedff28 88%);
  transform: rotate(-32deg); box-shadow: inset 1px 1px 2px #ffffff80;
}
.student .orb .orb-live-b {
  left: 32%; top: 15%; width: 52%; height: 72%;
  border-radius: var(--voice-fold-1, 32% 68% 30% 70% / 40% 63% 37% 60%);
  background: linear-gradient(160deg, #deefff40 8%, #98d8ffc9 44%, #689beb98 66%, #e6f7ff18 88%);
  transform: rotate(38deg); box-shadow: inset -1px 0 2px #ffffff85;
}
.student .orb .orb-live-c {
  left: 11%; top: 37%; width: 76%; height: 48%;
  border-radius: var(--voice-fold-2, 70% 30% 68% 32% / 65% 62% 38% 35%);
  background: linear-gradient(165deg, #92d7ff80 10%, #d3eaffba 46%, #6e9fe8a8 62%, #c5ddff20 90%);
  transform: rotate(-18deg); box-shadow: inset 0 1px 2px #ffffff80;
}
.student .orb .orb-live-light {
  position: absolute; left: var(--voice-light-x, 50%); top: var(--voice-light-y, 50%);
  width: calc(32% + var(--voice-strength) * 68%); height: calc(32% + var(--voice-strength) * 64%);
  opacity: calc(.12 + var(--voice-strength) * .88);
  transform: translate(-50%, -50%) rotate(var(--voice-flow)); border-radius: 50%;
  background: radial-gradient(ellipse at 46% 42%, #fff 0%, #fff 13%, #e7fcfff2 32%, #bcecffb3 52%, #82caff66 70%, #72baff00 87%);
  filter: blur(.8px); mix-blend-mode: screen;
}
.student .orb > .voice-orb-mark { display: none; }
.student .orb.is-check > .voice-orb-mark { display: block; }
.student .orb.is-check .voice-orb-visual { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .student .orb .orb-live-art { transform: none; }
  .student .orb .orb-live-light { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .student .orb .orb-live-fold { border-radius: 50%; }
}

/* C03 review r4: original translucent ribbon check; no overlay glyph or click flash. */
.student .orb .orb-check{display:none;position:absolute;inset:14%;border-radius:50%;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 30% 20%,#fff 0%,#e6f1ff 48%,#cce2ff 100%);border:1px solid #bfd8f8;box-shadow:inset 0 0 14px #ffffffa6,0 5px 22px #6b9cd824}
.student .orb.is-check .orb-check{display:block}
.student .orb.is-check .voice-orb-visual{opacity:1}
.student .orb.is-check :is(.orb-silk,.orb-live),.student .orb.is-check > .voice-orb-mark{display:none}
.student .orb .orb-check .orb-live-a{left:17%;top:48%;width:35%;height:17%;border-radius:46% 30% 48% 38%;transform:rotate(42deg);opacity:1}
.student .orb .orb-check .orb-live-b{left:32%;top:38%;width:54%;height:19%;border-radius:40% 60% 35% 55%;transform:rotate(-48deg);opacity:1}
.student .orb .orb-check .orb-live-c{left:28%;top:38%;width:32%;height:33%;border-radius:38% 62% 46% 54%;transform:rotate(34deg);opacity:.3}
.student .orb .orb-check-light{position:absolute;inset:31%;background:radial-gradient(ellipse,#fff 4%,#eefaffbb 30%,#ffffff00 70%);border-radius:50%;filter:blur(2px)}

.student .orb{--voice-level:0;--voice-strength:0;--voice-presence:0;--voice-flow:0rad}
.student .orb.is-check .orb-mark{display:none}
.student .orb .orb-silk{filter:none}

#trial-login {max-width:400px;margin:28px auto;text-align:left} #trial-login label {display:block;margin:16px 0} #trial-login input {display:block;width:100%;box-sizing:border-box;padding:14px;margin-top:8px;border:1px solid #d8dce3;border-radius:10px;font:inherit}
