@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{--ink:#1f332e;--muted:#687972;--green:#235a48;--deep:#173e33;--mint:#e7f1e9;--line:#dce5dc;--paper:#fbfaf6;--cream:#f4f1e8;--orange:#d67b42;--white:#fff;--shadow:0 12px 45px #293a2a0b;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{cursor:pointer}button{border:0}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5%,calc((100vw - 1380px)/2));border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:16px;letter-spacing:-.4px}.brandmark{display:grid;place-items:center;width:34px;height:34px;background:var(--green);border-radius:10px;color:#fff;font-family:'DM Serif Display',serif;font-size:23px}.brand small{display:block;color:#90a098;font-size:9px;letter-spacing:1.5px;font-weight:700;margin-top:1px}.navlinks{display:flex;align-items:center;gap:32px;color:#53675d;font-size:13px;font-weight:600}.navlinks a.active{color:var(--green)}.navlinks .admin-link{padding:10px 15px;border:1px solid var(--line);border-radius:7px}.landing{max-width:1380px;margin:auto;padding:0 5% 70px}.hero{display:grid;grid-template-columns:1fr 360px;gap:55px;padding:24px 0 16px;align-items:start}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2px;font-weight:700;color:#6b8d78;display:flex;gap:10px;align-items:center}.eyebrow::before{content:'';width:24px;height:1px;background:#88a994}.hero h1{font:400 clamp(30px,3.3vw,46px)/1.12 'DM Serif Display',serif;letter-spacing:-.8px;margin:0 0 12px;color:#1f3b30}.hero h1 em{color:#71917a;font-weight:400}.hero p{color:#718078;font-size:15px;line-height:1.8;max-width:550px;margin:0}.hero-art{background:#e9efe5;border-radius:12px;min-height:206px;position:relative;overflow:hidden;display:flex;align-items:end;padding:23px;color:#446b54}.hero-art:before,.hero-art:after{content:'';position:absolute;border:1px solid #c5d8c4;border-radius:50%;width:240px;height:240px;right:-35px;top:-90px}.hero-art:after{width:155px;height:155px;right:35px;top:-45px}.hero-art .art-card{background:#ffffffbb;backdrop-filter:blur(4px);border:1px solid white;border-radius:9px;padding:15px 18px;width:100%;z-index:1;display:flex;align-items:center;gap:12px}.art-icon{height:36px;width:36px;display:grid;place-items:center;border-radius:8px;background:#dbe9dc;font-size:18px}.art-card strong{font-size:12px;display:block}.art-card small{font-size:10px;color:#7c9184}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:0 0 21px}.section-heading h2{font:400 31px 'DM Serif Display',serif;margin:5px 0}.section-heading p{margin:0;font-size:13px;color:#849187}.section-heading .count{font-size:12px;color:#7f8e84}.test-card{background:white;border:1px solid #e4e9e0;border-radius:12px;box-shadow:var(--shadow);padding:27px 29px;margin-bottom:14px}.card-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.label{font-size:10px;letter-spacing:1.3px;font-weight:700;color:#8e9a90;text-transform:uppercase}.card-header h3{font-size:19px;letter-spacing:-.5px;margin:8px 0 5px}.card-header p{font-size:12px;color:#95a099;margin:0}.badge{background:#eef4e8;color:#698167;font-size:10px;font-weight:700;padding:7px 10px;border-radius:30px;white-space:nowrap}.skill-row{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:13px;margin-top:27px}.skill{background:#fafbf8;border:1px solid #edf0e9;border-radius:9px;min-height:105px;padding:15px;text-align:left;transition:.18s}.skill:hover{background:#edf5ec;border-color:#c5ddc9;transform:translateY(-2px)}.skill-top{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:700}.skill-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#e8f2e9;color:#437a54;font-size:16px}.skill p{color:#9aa69c;font-size:11px;margin:11px 0 0}.skill small{color:#668471;font-size:10px}.full-test{min-width:146px;background:var(--green);color:#fff;border-radius:9px;font-weight:700;font-size:12px;padding:15px 20px}.full-test:hover,.primary:hover{background:#183f32}.bottom-note{border-top:1px solid var(--line);margin-top:45px;padding-top:18px;display:flex;justify-content:space-between;color:#a5b0a7;font-size:10px;letter-spacing:.2px}.empty{text-align:center;padding:50px;color:var(--muted)}
.exam{height:100vh;display:flex;flex-direction:column;background:white;overflow:hidden}.exam-header{height:67px;flex:none;border-bottom:1px solid #e0e7df;display:flex;align-items:center;justify-content:space-between;padding:0 27px;gap:20px}.exam-brand{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700}.exam-brand .brandmark{width:31px;height:31px;font-size:21px}.exam-title{display:flex;align-items:center;gap:12px}.exam-title strong{font-size:13px}.exam-title span{color:#9aa89f;font-size:11px}.timer{font-size:13px;font-weight:700;color:var(--green);font-variant-numeric:tabular-nums}.exam-actions{display:flex;gap:8px;align-items:center}.icon-btn{background:transparent;color:#687b70;border:1px solid #e2eae2;border-radius:7px;padding:9px 11px;font-size:12px}.primary{background:var(--green);color:white;border-radius:7px;padding:11px 18px;font-size:12px;font-weight:700}.exam-main{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr}.exam-main.single{grid-template-columns:1fr}.pane{min-width:0;overflow:auto;padding:34px 6% 75px}.passage-pane{background:#f5f9f3;border-right:1px solid #d8e2d9}.pane-label{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;font-weight:700;color:#6d9379}.pane h1{font:400 32px/1.1 'DM Serif Display',serif;margin:12px 0 10px;color:#243e32}.pane .intro{font-size:12px;color:#89998d;line-height:1.6;margin-bottom:26px}.passage-title{font-size:19px!important;font-weight:700!important;line-height:1.3!important;margin:28px 0 18px!important;font-family:'DM Sans',sans-serif!important}.passage-copy{max-width:790px;font-family:Georgia,serif;font-size:15px;line-height:1.9;color:#38473e}.passage-copy p{margin:0 0 20px}.question-pane{background:#fff}.question-group h2{font-size:17px;margin:0 0 10px}.instruction{font-size:13px;line-height:1.6;color:#6c7f71;margin-bottom:25px}.question{padding:17px 0;border-top:1px solid #edf1ed;font-size:14px;line-height:1.6}.qnum{display:inline-grid;place-items:center;vertical-align:middle;color:white;background:#4b825a;border-radius:50%;height:25px;width:25px;font-size:11px;font-weight:700;margin-right:9px}.answer-input{display:block;width:min(calc(100% - 35px),350px);margin:12px 0 0 35px;border:1px solid #c8d7ca;border-radius:7px;padding:11px 12px;color:#263b2e;outline:none}.answer-input:focus,.editor input:focus,.editor textarea:focus{border-color:#4b875a;box-shadow:0 0 0 3px #e6f1e7}.options{margin:10px 0 0 34px;display:grid;gap:5px}.option{display:flex;gap:9px;align-items:baseline;padding:5px 2px;color:#44564b}.option input{accent-color:#2b6c49}.exam-footer{flex:none;min-height:75px;border-top:1px solid #e1e8e0;display:flex;align-items:center;padding:12px 22px;gap:8px;overflow:auto;background:#fff}.part-tab{display:flex;align-items:center;gap:8px;border:1px solid #e4ebe3;border-radius:8px;background:#fff;padding:8px 11px;white-space:nowrap;color:#637469;font-size:11px}.part-tab.active{border-color:#abcbb2;color:#285b3c}.part-tab strong{font-size:12px;color:#2f4d3a}.number-list{display:flex;gap:3px}.q-dot{background:#f7f9f5;color:#84958a;border-radius:50%;height:26px;width:26px;font-size:10px}.q-dot.done{background:#c6dfc9;color:#245a37}.footer-actions{margin-left:auto;display:flex;gap:6px}.writing-area{width:100%;min-height:58vh;resize:vertical;border:1px solid #d7e1d6;border-radius:8px;padding:16px;line-height:1.7;outline:none}.word-count{font-size:12px;color:#8b9d8e;text-align:right}.audio-card{border:1px solid #d8e7da;background:#fff;border-radius:10px;padding:20px;margin:24px 0}.audio-card audio{width:100%}.audio-card p{color:#829087;font-size:12px}.speaking-card{max-width:780px;margin:40px auto;background:#f5f9f3;border:1px solid #dce9dd;border-radius:14px;padding:35px}.speaking-card h2{font:400 26px 'DM Serif Display',serif}.speaking-card textarea{width:100%;min-height:120px;border:1px solid #d2ded2;border-radius:8px;padding:12px}.speaking-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.feedback{background:#fff;border:1px solid #e1e8df;padding:16px;border-radius:8px;line-height:1.6;margin-top:20px}.results{max-width:780px;margin:80px auto;padding:30px}.results h1{font:400 48px 'DM Serif Display',serif}.results .score{font:400 50px 'DM Serif Display',serif;color:var(--green)}.results .muted{color:#819086;font-size:13px;line-height:1.7}.result-actions{display:flex;gap:10px;margin-top:25px}.admin{max-width:1050px;margin:45px auto;padding:0 24px 80px}.admin h1{font:400 38px 'DM Serif Display',serif}.admin p,.admin small{color:#7f8d82;line-height:1.6}.admin-grid{display:grid;grid-template-columns:260px 1fr;gap:25px}.admin-list,.editor{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px}.admin-item{width:100%;text-align:left;padding:13px;border-bottom:1px solid #eef2ec;background:transparent;color:var(--ink)}.editor label{display:block;font-size:11px;font-weight:700;color:#657a6b;margin:17px 0 7px}.editor input,.editor textarea,.editor select{width:100%;padding:11px;border:1px solid #d5e0d4;border-radius:7px;outline:none}.editor textarea{min-height:370px;font:12px/1.55 ui-monospace,monospace}.editor .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}.editor .row input{flex:1;min-width:180px}.muted{color:#87978b}.error{color:#b34137;font-size:13px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#203e30;color:#fff;padding:10px 16px;border-radius:8px;font-size:12px;opacity:0;transition:opacity .2s;z-index:50;pointer-events:none}.toast.show{opacity:1}.loading{padding:80px;text-align:center;color:#678171}
@media(max-width:850px){.hero{grid-template-columns:1fr;padding:16px 0 12px}.hero-art{display:none}.skill-row{grid-template-columns:repeat(2,1fr)}.full-test{min-height:55px;grid-column:span 2}.exam-header{padding:0 12px}.exam-title span,.exam-brand span{display:none}.pane{padding:25px 5% 65px}.admin-grid{grid-template-columns:1fr}.admin-list{max-height:220px;overflow:auto}.navlinks{gap:15px}}@media(max-width:600px){.exam-main{grid-template-columns:1fr;overflow:auto}.pane{overflow:visible}.passage-pane{border-right:0;border-bottom:1px solid var(--line)}.exam-title strong{font-size:11px}.icon-btn{padding:7px}.exam-footer{min-height:68px}.hero h1{font-size:30px}.topbar{height:65px}.navlinks a:not(.admin-link){display:none}.bottom-note{display:block}.bottom-note span{display:block;margin-top:8px}}
.visual-admin{max-width:1800px;margin:40px auto;padding:0 24px 80px}.visual-admin h1{margin:8px 0}.visual-admin a{color:#285d4c}.visual-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;margin-top:28px}.visual-sidebar,.visual-work,.visual-block,.preview-area{background:white;border:1px solid #dce4dd;border-radius:12px;padding:18px}.visual-sidebar{display:flex;flex-direction:column;gap:8px;height:max-content}.visual-sidebar button,.part-tabs button,.add-blocks button,.visual-block button{background:#f4f7f3;border:1px solid #d4dfd6;border-radius:6px;padding:8px;cursor:pointer;text-align:left}.visual-sidebar .selected,.part-tabs .selected{background:#dcece1;border-color:#85aa90}.visual-toolbar{display:flex;justify-content:space-between;gap:20px}.visual-toolbar>div:first-child{display:flex;gap:14px;flex:1}.visual-admin label{display:block;font-size:13px;font-weight:600;margin:10px 0}.visual-admin input:not([type=radio]),.visual-admin textarea,.visual-admin select{display:block;width:100%;padding:9px;border:1px solid #cbd8ce;border-radius:5px;font:inherit;background:white}.visual-admin textarea{resize:vertical}.visual-toolbar label{flex:1}.part-tabs,.add-blocks{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.compose-columns,.preview-split{display:grid;grid-template-columns:1fr 1fr;gap:24px}.compose-columns>section{min-width:0}.visual-block{margin:12px 0;background:#fbfcfa}.visual-block header{display:flex;align-items:center;justify-content:space-between}.visual-block header button{min-width:30px;text-align:center}.control-editor{display:grid;grid-template-columns:1fr 1fr;gap:8px}.candidate-preview{background:#edf5ee;padding:12px;margin:10px 0;border-radius:6px}.candidate-preview input,.candidate-preview select{max-width:200px}.table-scroll{overflow:auto}.builder-table,.reading-table{border-collapse:collapse;width:100%}.builder-table td,.reading-table td{border:1px solid #b9c6bb;padding:10px;min-width:140px;vertical-align:top}.reading-table .answer-input{max-width:180px;margin:8px 0}.question-image,.editor-image{max-width:100%;height:auto}.editor-image{max-height:300px}.preview-area{margin-top:25px;background:#f8faf7}.preview-area summary{cursor:pointer;font-weight:700}.preview-split>div{background:white;padding:18px;min-width:0}.preview-split{margin-top:18px}.block-text{white-space:normal}.login-box{max-width:430px}.login-box button{margin-top:12px}@media(max-width:850px){.visual-layout,.compose-columns,.preview-split{grid-template-columns:1fr}.visual-toolbar,.visual-toolbar>div:first-child{display:block}.visual-sidebar{max-height:200px;overflow:auto}}
/* Compact exam controls leave more room for the test. */
.exam-header{height:auto;min-height:49px;padding:5px 14px;gap:12px}.exam-brand .brandmark{width:27px;height:27px;font-size:18px}.exam-title{gap:7px;min-width:0}.exam-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exam-actions{gap:5px;flex-shrink:0}.exam-actions .icon-btn,.exam-actions .primary{padding:6px 9px}.font-control{display:flex;align-items:center;gap:4px;font-size:12px;color:#687b70}.font-control select{border:1px solid #dbe5dc;background:#fff;color:#364e3c;border-radius:6px;padding:5px;font:inherit}.exam-footer{min-height:48px;padding:5px 12px;gap:5px}.exam-footer .icon-btn{padding:5px 9px}.part-tab{padding:5px 8px;gap:5px}.q-dot{height:24px;width:24px}.pane{padding:22px 5% 44px}.passage-title{margin:12px 0 16px!important}.exam-main{--exam-font:15px}.exam-main[data-text-size="small"]{--exam-font:13px}.exam-main[data-text-size="medium"]{--exam-font:16px}.exam-main[data-text-size="large"]{--exam-font:19px}.exam-main .passage-copy,.exam-main .question,.exam-main .block-text,.exam-main .reading-table,.exam-main .instruction,.exam-main .speaking-card,.exam-main .writing-area{font-size:var(--exam-font)}.exam-main .answer-input,.exam-main select,.exam-main input,.exam-main textarea{font-size:var(--exam-font)}.exam-main .question-group h2,.exam-main .passage-title{font-size:calc(var(--exam-font) + 2px)!important}.listening-main{display:block}.listening-pane{height:100%;padding:0;overflow:auto}.listening-player{position:sticky;top:0;z-index:2;background:#f5f9f3;border-bottom:1px solid #d8e2d9;padding:8px 3%;display:flex;align-items:center;justify-content:space-between;gap:18px}.listening-player>div:first-child{display:flex;flex-direction:column;gap:3px;font-size:13px}.listening-player span{color:#708174;font-size:12px}.listening-player .audio-card{border:0;background:transparent;padding:0;margin:0;flex:0 1 420px}.listening-player audio{display:block;max-height:40px}.listening-content{max-width:1100px;margin:auto;padding:22px 3% 50px}.listening-content .question-group{max-width:none}.exam-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:850px){.exam-header{flex-wrap:wrap;gap:5px 9px}.exam-actions{margin-left:auto}.exam-title{flex:1}.exam-brand span{display:none}.font-control span{display:none}}@media(max-width:600px){.exam-header{padding:5px 8px}.exam-title strong{max-width:125px}.exam-actions{flex-wrap:wrap;justify-content:flex-end}.exam-footer{min-height:44px}.pane{padding:18px 5% 40px}.listening-pane{padding:0}.listening-player{align-items:stretch;flex-direction:column;gap:5px}.listening-player .audio-card{flex:auto}.listening-content{padding:18px 5% 40px}}
/* Candidate view: slim status bar, independent reading panes, continuous question index. */
.exam {
  --exam-text:#202124;
  --exam-muted:#505354;
  --exam-rule:#ced0cd;
  --exam-strip:#f0f1e9;
  --exam-action:#124f78;
  height:100dvh; background:#fff; color:var(--exam-text); font-family:Arial, sans-serif;
}
.exam-header {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto minmax(max-content,1fr);
  min-height:26px; gap:7px; padding:2px 9px;
  background:#fff; color:var(--exam-text); border:0; box-shadow:inset 0 -1px var(--exam-rule);
}
.exam-brand span { display:none; }
.exam-brand .brandmark { width:19px; height:19px; font-size:14px; background:#cf0038; color:#fff; border-radius:3px; }
.exam-title strong, .exam-title span { font-size:11px; color:var(--exam-text); }
.exam-header .timer { color:var(--exam-text); font-size:11px; white-space:nowrap; }
.exam-actions { justify-self:end; gap:4px; }
.exam-actions .icon-btn, .exam-actions .primary, .exam-actions select {
  min-height:20px; padding:1px 6px; font-size:11px; line-height:15px; border:1px solid #939797;
  border-radius:3px; background:#fff; color:var(--exam-text);
}
.exam-actions .primary { background:#262829; border-color:#262829; color:#fff; }
.font-control { color:var(--exam-muted); font-size:11px; }
.exam-part-heading { padding:3px 10px; border-bottom:1px solid var(--exam-rule); background:var(--exam-strip); color:var(--exam-text); font-size:12px; font-weight:700; }
.exam .passage-pane { background:#fff; border-color:#a4a6a5; }
.exam-main:not(.single) > .pane { padding:12px clamp(10px,1.5vw,24px) 32px; }
.exam .passage-copy { max-width:none; line-height:1.55; color:var(--exam-text); font-family:inherit; }
.exam .passage-copy p { margin-bottom:.85em; }
.exam .question { padding:9px 0; }
.exam-main .qnum { width:16px; height:16px; margin-right:5px; font:600 9px/1 sans-serif; border-radius:2px; background:#343637; }
.exam-footer {
  min-height:30px; padding:2px 7px; gap:8px; overflow:visible;
  background:#eaeaea; border-top:1px solid var(--exam-rule); color:var(--exam-text);
}
.review-toggle { flex:none; display:flex; align-items:center; gap:4px; cursor:pointer; min-height:24px; font-size:11px; }
.review-toggle input { width:13px; height:13px; margin:0; accent-color:var(--exam-action); }
.exam-index { display:flex; align-items:center; gap:9px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:thin; padding:3px 2px; }
.index-group { display:flex; align-items:center; flex:none; gap:3px; white-space:nowrap; font-size:10px; font-weight:700; }
.number-list { gap:2px; align-items:center; }
.q-dot { position:relative; flex:none; width:15px; height:16px; padding:0; line-height:1; font-size:9px; border-radius:2px; background:#fff; color:#272929; box-shadow:inset 0 0 0 1px #858887; }
.q-dot.done { background:#414547; color:#fff; box-shadow:none; }
.q-dot[aria-current] { background:var(--exam-action); color:white; box-shadow:0 2px 0 var(--exam-action); }
.q-dot.flagged::after { content:""; position:absolute; top:-2px; right:-1px; filter:drop-shadow(0 0 1px #473000); border-top:7px solid #ffb632; border-left:7px solid transparent; }
.q-dot:focus-visible, .exam-footer button:focus-visible { outline:2px solid #147caf; outline-offset:1px; }
.exam-footer .footer-actions { flex:none; gap:3px; margin-left:0; }
.exam-footer .icon-btn { padding:1px 5px; min-width:24px; min-height:22px; border-radius:3px; color:var(--exam-text); border-color:#aaa; background:white; }
.exam-footer button:disabled { opacity:.4; }
.exam :is(.pane h1,.option,.answer-input,.writing-area,.reading-table,.speaking-card textarea) { color:var(--exam-text); }
.exam :is(.pane-label,.instruction,.pane .intro,.listening-player span,.audio-card p,.word-count) { color:var(--exam-muted); }
.exam :is(.answer-input,.writing-area,.speaking-card textarea,.reading-table td,.part-tab) { border-color:#929695; }
.exam :is(input,select,textarea) { accent-color:var(--exam-action); }
.exam :is(.answer-input,.writing-area,.speaking-card textarea):focus { border-color:var(--exam-action); outline:2px solid var(--exam-action); outline-offset:1px; box-shadow:none; }
.exam :is(.listening-player,.speaking-card) { background:var(--exam-strip); border-color:var(--exam-rule); }
.exam .feedback, .exam .audio-card { border-color:var(--exam-rule); }
.exam .speaking-controls .primary, .exam .part-tab[aria-pressed="true"] { background:#292b2c; color:white; }
.exam .part-tab strong { color:inherit; }
.exam-actions button:enabled:hover, .exam-footer button:enabled:not(.q-dot):hover { background:#e5e6e6; color:#171819; }
.exam .primary:enabled:hover { background:#151617; color:white; }
.exam .icon-btn { color:#353738; }
.exam .q-dot:hover { outline:1px solid #353738; }
@media(max-width:700px) {
  .exam-header { display:flex; flex-wrap:wrap; gap:3px 6px; padding:2px 5px; }
  .exam-title { flex:1 1 60px; }
  .exam-actions { margin-left:auto; }
  .exam-footer { padding:2px 4px; gap:4px; }
}
@media(pointer:coarse) {
  .q-dot { width:22px; height:24px; font-size:10px; }
  .review-toggle, .footer-actions .icon-btn { min-height:28px; }
}

/* The candidate library uses the red accent shown in the IELTS tutorial title cards. */
.app-shell, #app:has(> .results) {
  --green:#c90036; --line:#d4d5d6; --ink:#202124; --muted:#505354;
  background:#fff; color:var(--ink);
}
.app-shell :is(.hero h1,.section-heading h2,.card-header h3,.skill-top,.art-card strong) { color:var(--ink); }
.app-shell :is(.hero h1 em,.eyebrow,.art-icon,.skill-icon,.navlinks .active) { color:#ab0030; }
.app-shell :is(.hero p,.art-card small,.section-heading p,.section-heading .count,.card-header p,.label,.skill p,.skill small,.brand small,.navlinks,.bottom-note) { color:var(--muted); }
.app-shell .hero-art { background:#eaebec; }
.app-shell .hero-art::before, .app-shell .hero-art::after { border-color:#c9cbce; }
.app-shell .eyebrow::before { background:#c90036; }
.app-shell .test-card { border-color:var(--line); }
.app-shell .skill { background:#fafafa; border-color:#dbdcde; }
.app-shell .skill:hover { background:#fff3f6; border-color:#b94e67; }
.app-shell :is(.art-icon,.skill-icon,.badge) { background:#fae7ec; color:#89002a; }
.app-shell .full-test:hover, .app-shell .primary:hover { background:#990029; }
.results :is(.eyebrow,.score) { color:#ab0030; }
.results :is(.muted,.icon-btn) { color:#505354; }
.practice-menu { position:relative; }
.practice-menu summary { cursor:pointer; color:#202124; padding:8px 2px; }
.practice-menu > div { position:absolute; top:100%; right:0; z-index:10; display:grid; min-width:210px; padding:4px; background:white; border:1px solid #d4d5d6; border-radius:6px; box-shadow:0 5px 16px #0002; }
.navlinks .practice-menu a { display:block; padding:9px 12px; white-space:nowrap; }
.practice-menu a:hover, .practice-menu a[aria-current] { background:#f4f4f4; color:#95002b; }
.category-library { max-width:1000px; padding-top:28px; }
.category-library h1 { margin:0; font-size:clamp(20px,3vw,30px); }
.library-row { display:flex; align-items:center; justify-content:space-between; width:100%; gap:12px; text-align:left; color:#202124; background:#fff; border-bottom:1px solid #dadbdd; padding:12px 10px; }
.library-row:hover, .library-row:focus-visible { background:#f6f7f8; }
.library-row strong, .library-row small { display:block; }
.library-row small { color:#505354; margin-top:3px; }
.library-row > span:last-child { color:#a00030; white-space:nowrap; }
.listening-line { margin:.45em 0; font-size:var(--exam-font); line-height:1.5; }
.listening-slot { display:inline-block; max-width:100%; vertical-align:middle; scroll-margin-block:90px; }
.listening-slot .answer-input, .reading-table .listening-slot .answer-input { display:inline-block; width:12ch; min-width:8ch; max-width:100%; margin:0 .2em; padding:2px 5px; border-radius:3px; }
.listening-slot select.answer-input { width:auto; }
@media(max-width:600px) {
  .navlinks { gap:8px; }
  .navlinks .practice-menu a:not(.admin-link) { display:block; }
  .practice-menu > div { right:auto; left:50%; transform:translateX(-50%); }
}


@media(max-width:600px) {
  .navlinks a.books-link, .navlinks a.real-link { display:block; }
  .topbar { height:auto; min-height:65px; flex-wrap:wrap; gap:6px; padding-block:8px; }
  .topbar .navlinks { flex-wrap:wrap; }
  .practice-menu > div { left:0; transform:none; }
}

.landing .lesson-unlock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 46px;
  margin: 0 0 20px;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  background: #184e40;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.landing .lesson-unlock svg { flex: none; }
.landing .lesson-unlock:hover { background: #103b30; }
.landing .lesson-unlock:focus-visible { outline: 3px solid #a45019; outline-offset: 3px; }
@media (max-width: 600px) {
  .landing .lesson-unlock { width: 100%; }
}

.app-mode-picker { display:inline-flex; flex:none; gap:2px; padding:3px; border:1px solid #a1b3a9; border-radius:8px; background:white; }
.app-mode-picker button { border:0; border-radius:5px; background:transparent; color:#244d40; padding:.4rem .65rem; font:inherit; cursor:pointer; }
.app-mode-picker button[aria-pressed="true"] { color:white; background:#184e40; }
.app-mode-picker button:focus-visible { outline:2px solid #a45019; outline-offset:1px; }

.real-skill-actions { display:grid; gap:.4rem; justify-items:end; }
.real-skill-actions a { color:#184e40; text-decoration:underline; }
.listening-study-heading,.transcript-tools { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.listening-study-panel[hidden],.mobile-toggle-label { display:none; }
.exam-main.listening-main.transcript-open { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.transcript-open .listening-study-panel { grid-column:1; grid-row:1; min-height:0; overflow:auto; padding:1rem; border-right:1px solid #acb8b1; }
.transcript-open .question-pane { grid-column:2; grid-row:1; min-width:0; }
.transcript-copy { white-space:pre-line; margin:1rem 0; line-height:1.55; }
@media(max-width:700px){
 .exam-main.listening-main.transcript-open { grid-template-columns:minmax(0,1fr); }
 .transcript-open .question-pane,.listening-study-heading .desktop-toggle-label { display:none; }
 .listening-study-heading .mobile-toggle-label { display:inline; }
 .transcript-open .listening-study-panel { max-height:none; height:auto; }
}

.listening-study-heading { justify-content:space-between; padding:4px 12px; }
.transcript-switch,.transcript-menus summary {
  display:inline-flex; align-items:center; gap:.45rem; min-height:30px;
  padding:3px 9px; border-radius:6px; line-height:1.3;
  font-family:inherit; font-size:13px; font-weight:600; cursor:pointer;
}
.transcript-switch { border:1px solid #728f82; background:white; color:#174a3a; }
.transcript-switch[aria-expanded=true] { background:#e0efe7; }
.transcript-symbol { width:16px; height:13px; border:1.5px solid currentColor; border-radius:2px; background:linear-gradient(to right, transparent 38%,currentColor 38% 47%,transparent 47%); }
.transcript-menus { display:flex; gap:4px; }
.transcript-menus[hidden] { display:none; }
.transcript-menus details { position:relative; }
.transcript-menus summary { list-style:none; background:white; border:1px solid #a3b4ab; color:#254b3b; }
.transcript-menus summary::-webkit-details-marker { display:none; }
.transcript-menus summary::after { content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.transcript-menus details[open] summary::after { transform:translateY(2px) rotate(225deg); }
.transcript-menu-items { position:absolute; top:calc(100% + 3px); left:0; min-width:145px; padding:4px; z-index:50; background:white; border:1px solid #a3b4ab; border-radius:7px; box-shadow:0 4px 14px #20383024; }
.exam-actions .transcript-menu-items :is(a,button) { display:block; width:100%; box-sizing:border-box; border:0; text-align:left; background:white; color:#203c31; padding:9px; font:inherit; white-space:nowrap; text-decoration:none; }
.exam-actions .transcript-menu-items :is(a,button):hover { background:#e6f1ea; }
.exam-actions .transcript-menu-items button[aria-pressed=true] { background:#184e40; color:white; }
.transcript-switch:focus-visible,.transcript-menus :focus-visible { outline:2px solid #245c48; outline-offset:2px; }
@media(max-width:700px){
 .exam-header:has(.transcript-menus:not([hidden])) .exam-actions { flex:1 1 100%; min-width:0; flex-wrap:wrap; justify-content:flex-start; }
}

.action-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(25rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.5rem;
  border: 1px solid var(--line, #d7dce0);
  border-radius: 12px;
  color: var(--ink, #20242b);
  background: white;
  box-shadow: 0 16px 56px #11182733;
}
.action-dialog::backdrop { background: #13202980; }
.action-dialog h2 { margin: 0 0 .65rem; font-size: 1.3rem; }
.action-dialog p { margin: 0 0 1.25rem; line-height: 1.5; }
.action-dialog form { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
