:root{--navy:#102c40;--teal:#0a716d;--light:#f3f7f6;--ink:#172b37;--muted:#59707c;--border:#d8e3e5;--gold:#e9a842;--white:#fff;--shadow:0 18px 48px rgba(16,44,64,.09)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,'Aptos','Segoe UI',Arial,sans-serif;color:var(--ink);background:linear-gradient(140deg,#e3eeee 0%,#f7f9f8 40%,#e9eef1 100%)}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #e9a842;outline-offset:3px}.app-shell{width:min(1240px,calc(100% - 36px));min-height:min(840px,calc(100vh - 32px));margin:16px auto;display:flex;flex-direction:column;background:#fff;border:1px solid #dde8e9;border-radius:22px;overflow:hidden;box-shadow:0 23px 100px rgba(17,51,66,.11)}.topbar{min-height:76px;background:var(--navy);color:white;padding:13px 32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{color:white;text-decoration:none;display:flex;align-items:center;gap:13px}.brand strong{display:block;font-size:17px;letter-spacing:1.65px}.brand small{display:block;color:#c1d6df;font-size:10px;letter-spacing:1.2px;font-weight:800;margin-top:3px}.logo{width:42px;height:42px;border:1.5px solid #a0bcbf;border-radius:12px;display:grid;place-items:center;font-family:Georgia,serif;font-size:25px;font-weight:bold}.logo span{color:var(--gold)}.head-right{display:flex;align-items:center;gap:16px}.cloudstatus{font-size:12px;font-weight:700;color:#b6c9d0;text-align:right}.cloudstatus.ready{color:#b6e5cd}.cloudstatus.local{color:#f7d89b}.icon-btn{color:white;background:#ffffff19;border:1px solid #ffffff32;border-radius:10px;width:38px;height:38px;font-size:19px}.progress-top{height:5px;background:#dce9e9}.progress-fill{height:100%;width:0;background:linear-gradient(90deg,#3ed1b7,var(--gold));transition:width .35s}.screen{flex:1;padding:27px 34px 24px;display:flex;flex-direction:column;gap:20px;min-height:590px}.screen>div{width:100%}footer{padding:12px 32px;display:flex;justify-content:space-between;background:#f8faf9;color:#72848b;font-size:11px;font-weight:700;letter-spacing:.45px;border-top:1px solid #e8eff0}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:2px;color:var(--teal)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,4vw,53px);line-height:1.05;letter-spacing:-1.5px;margin-bottom:15px}h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.8px;margin-bottom:10px}h3{font-size:19px}.subtext{font-size:15px;color:var(--muted);line-height:1.6}.btn{background:var(--teal);color:white;border:0;border-radius:12px;padding:13px 22px;font-weight:850;min-height:49px;box-shadow:0 5px 10px rgba(10,113,109,.12)}.btn:hover{filter:brightness(1.07)}.btn.secondary{background:#eef4f4;color:#204759;box-shadow:none;border:1px solid #d2e1e3}.btn.white{background:white;color:var(--navy)}.btn:disabled{background:#c7d4d7;color:#7b9198;cursor:not-allowed;box-shadow:none}.btn.small{min-height:40px;padding:9px 15px;font-size:13px}.outline{border:1px solid var(--border);padding:19px;border-radius:15px;background:#fff}.welcome-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(325px,.95fr);gap:30px;align-items:stretch;flex:1}.welcome-copy{padding:9px 0}.welcome-copy>p{max-width:520px}.welcome-photos{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:180px 148px;gap:9px;align-self:stretch}.welcome-photos img{width:100%;height:100%;object-fit:cover;border-radius:14px;display:block}.welcome-photos img:first-child{grid-column:span 2}.photo-note{display:block;margin-top:9px;font-size:11px;color:var(--muted)}.field-row{display:flex;align-items:end;gap:11px;flex-wrap:wrap;margin:23px 0 20px}.field{flex:1;min-width:245px}.field label{display:block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:1px;color:var(--navy);margin:0 0 8px}.field input{width:100%;height:49px;border:1.5px solid #c3d4d6;border-radius:11px;padding:12px 14px;background:#fbfdfd;color:var(--navy)}.field input::placeholder{color:#85989e}.oa-panel{margin-top:17px;background:#f3f7f6;border-left:4px solid var(--teal);border-radius:0 12px 12px 0;padding:14px 18px}.oa-panel h3{font-size:13px;letter-spacing:.6px;margin-bottom:8px}.oa-list{display:grid;grid-template-columns:1fr;gap:6px;font-size:12.5px;color:#345261;line-height:1.45}.oa-list b{color:var(--navy)}.skill-pills{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0}.pill{border-radius:100px;background:#ecf3f3;color:#275766;padding:6px 12px;font-size:12px;font-weight:800}.pill.active{background:#d9f5ed;color:#08745b}.pill.orange{background:#fff1d8;color:#805200}.exam-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.exam-header h2{margin-bottom:3px}.topline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.counter{font-size:13px;color:var(--muted);font-weight:900}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.69fr);gap:24px;align-items:start;flex:1}.exam-layout.noaside{grid-template-columns:1fr}.prompt-card{border:1px solid var(--border);border-radius:19px;padding:24px 26px;background:linear-gradient(135deg,#fff 70%,#f8fbfa);min-height:300px;display:flex;flex-direction:column;gap:17px}.question-id{color:var(--teal);font-size:12px;font-weight:950;letter-spacing:1.2px}.qprompt{font-size:clamp(19px,2.7vw,28px);line-height:1.27;font-weight:850;color:var(--navy);margin:0}.choice-list{display:grid;grid-template-columns:1fr 1fr;gap:11px}.choice{border:1.5px solid #dae5e5;border-radius:12px;text-align:left;background:#fff;padding:14px 13px;color:#243d48;min-height:66px;font-weight:750;display:flex;align-items:center;gap:11px}.choice .letter{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:8px;background:#eff4f3;color:#577179;font-size:12px;font-weight:950}.choice:hover{border-color:#94beb6;background:#fafffd}.choice.selected{border-color:var(--teal);background:#e9f8f3;box-shadow:inset 0 0 0 1px var(--teal)}.choice.selected .letter{background:var(--teal);color:white}.audio-btn{background:var(--navy);border:0;border-radius:13px;color:white;display:inline-flex;align-items:center;gap:14px;padding:16px 19px;max-width:350px;width:100%;font-weight:850}.audio-icon{background:#ffffff25;border:1px solid #ffffff45;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:18px}.audio-note{font-size:12px;color:var(--muted);margin:0}.passage{border:1px solid #e2e9e8;background:#fafdfc;border-radius:15px;padding:19px 20px;font-size:15px;line-height:1.8;max-height:392px;overflow:auto}.passage::before{content:'READ THE TEXT';display:block;color:var(--teal);font-size:11px;letter-spacing:1.3px;font-weight:950;margin-bottom:8px}.aside-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:15px}.aside-card{background:#f4f8f6;border-radius:17px;padding:19px;border:1px solid #e2ebe9}.aside-card h3{margin:0 0 10px;font-size:16px}.aside-card p{font-size:13px;line-height:1.6;color:var(--muted)}.aside-card .aside-photo{margin-top:8px}.map-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:900;color:#41636f;letter-spacing:.65px;margin-bottom:10px}.map-board{width:100%;background:linear-gradient(150deg,#e8efeb,#d8e4e4);border-radius:13px;padding:13px;border:1px solid #c9d8d7}.map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;background:repeating-linear-gradient(90deg,transparent,transparent 10%,#c2cdd0 10.5%,#c2cdd0 11%);border-radius:7px}.map-cell{background:#fff;border:1px solid #cadbd8;border-bottom:4px solid #8dadac;border-radius:8px;min-height:65px;padding:9px 6px;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:7px;text-align:center}.map-tag{width:26px;height:8px;border-radius:99px;background:#8dadac}.map-cell.green .map-tag{background:#7cae86}.map-cell.blue .map-tag{background:#7da6d8}.map-cell.sand .map-tag{background:#d9b979}.map-cell.rose .map-tag{background:#d78c8c}.map-cell.gold .map-tag{background:#d3a843}.map-cell.sky .map-tag{background:#72b7d6}.map-cell.stone .map-tag{background:#9ea7ae}.map-cell.mint .map-tag{background:#7fb9a4}.map-cell.slate .map-tag{background:#758ca2}.map-cell b{font-size:10px;line-height:1.2;letter-spacing:.1px;color:#1c3b49}.map-bottom{text-align:center;font-size:11px;margin-top:9px;color:#617d84}.arrow-cue{display:grid;place-items:center;width:min(180px,100%);height:92px;border:2px solid #d9e4e5;border-radius:18px;background:linear-gradient(135deg,#f5fbfa,#eef6f6);margin:4px 0 10px}.turn-arrow{width:78px;height:78px;color:var(--navy);display:block} .input-answer{border:1.5px solid #b9ced1;width:100%;background:white;border-radius:12px;padding:14px 15px;font-size:18px;color:var(--navy);max-width:690px}.input-answer.multi{height:135px;resize:vertical;font-size:16px;line-height:1.6}.helper{font-size:12px;color:#6b818a;line-height:1.6}.order-list{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1.3px solid #b9d0d0;border-radius:10px;background:white;padding:11px 14px;color:#23434f;font-weight:800;font-size:14px}.chip:hover{background:#e7f7f3}.chip.taken{background:#e7f5ef;color:#146b61;border-color:#93c5b7}.answer-slot{min-height:73px;border:1.5px dashed #b5c9ca;border-radius:12px;padding:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#f9fcfb}.answer-slot:empty::after{content:'Tap words below to build the answer';color:#8ba1a7;font-size:13px}.pool-title{font-size:11px;letter-spacing:1px;font-weight:900;color:#517078}.actions{display:flex;gap:10px;justify-content:space-between;align-items:center;border-top:1px solid #eaf0f0;padding-top:17px;margin-top:auto}.actions .right{display:flex;align-items:center;gap:10px}.study-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;align-content:start}.study-card{border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden;text-align:left;padding:0;min-height:170px;position:relative;display:flex;flex-direction:column}.study-card img{width:100%;height:100px;object-fit:cover}.study-card .study-content{padding:13px;flex:1}.study-card strong{font-size:16px;color:var(--navy);display:block}.study-card small{font-size:11px;color:var(--muted);display:block;margin-top:6px}.study-card.flipped{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal)}.study-card.flipped small{color:#087662;font-weight:900}.study-card-icon{height:100px;display:grid;place-items:center;font-size:42px;background:linear-gradient(120deg,#e5f1ef,#f7f8f4)}.study-intro{display:flex;justify-content:space-between;gap:15px;align-items:center}.study-intro .subtext{margin-bottom:0}.callout{padding:20px;background:#ecf6f2;border-radius:13px;border:1px solid #cfe8df;line-height:1.75}.study-done{color:#087662;font-size:13px;font-weight:900}.final-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:27px;align-items:start;flex:1}.score-card{background:var(--navy);color:white;border-radius:20px;padding:30px;text-align:center}.score-card .eyebrow{color:#a4d4d1}.big-grade{font-size:75px;font-weight:950;letter-spacing:-3px;margin:8px 0}.points{font-size:22px;font-weight:900}.score-card p{color:#c4d5da;font-size:14px}.skill-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.skill-result{border:1px solid var(--border);border-radius:13px;padding:19px 14px;text-align:center}.skill-result b{display:block;font-size:24px;color:var(--navy)}.skill-result span{font-size:12px;color:var(--muted);font-weight:850}.notice{border-left:4px solid #ce9742;background:#fffaf0;padding:15px 18px;border-radius:0 11px 11px 0;font-size:13px;line-height:1.6}.notice.success{border-color:var(--teal);background:#eef8f3}.toast{position:fixed;z-index:50;bottom:30px;left:50%;transform:translate(-50%,30px);padding:14px 18px;border-radius:12px;background:#18394b;color:#fff;box-shadow:0 15px 36px #0004;font-weight:800;opacity:0;pointer-events:none;transition:.25s}.toast.visible{opacity:1;transform:translate(-50%,0)}.micro{font-size:11px;color:#738990}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:920px){.screen{padding:20px;min-height:550px}.welcome-grid{grid-template-columns:1fr}.welcome-photos{grid-template-rows:140px 120px}.exam-layout{grid-template-columns:1fr}.study-grid{grid-template-columns:repeat(3,1fr)}.final-layout{grid-template-columns:1fr}.topbar{padding:12px 20px}.prompt-card{padding:18px}.brand small{font-size:9px}}
@media(max-width:620px){.app-shell{margin:0;width:100%;min-height:100dvh;border-radius:0;border:0}.topbar{min-height:70px}.cloudstatus{max-width:118px;font-size:10px}.brand strong{font-size:14px}.logo{width:36px;height:36px}.screen{padding:16px 14px;gap:13px}.field-row{display:block}.field input{margin-bottom:12px}.welcome-photos{display:none}.choice-list{grid-template-columns:1fr;gap:8px}.choice{min-height:54px}.study-grid{grid-template-columns:repeat(2,1fr);gap:9px}.study-card{min-height:140px}.study-card img,.study-card-icon{height:80px}.study-card .study-content{padding:10px}.study-card strong{font-size:14px}.actions{align-items:stretch}.actions .right{flex:1;justify-content:flex-end}.btn{padding:12px 14px}.prompt-card{padding:15px;min-height:0}.qprompt{font-size:22px}footer{font-size:9px;padding:10px 14px}.map-cell{min-height:52px}.map-cell b{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* On-tap translation only. */
.word-meaning{cursor:help;text-decoration:underline dotted #3d7c7a;text-underline-offset:3px;text-decoration-thickness:1px;border-radius:2px}.word-meaning:focus-visible{outline:2px solid #138a79;outline-offset:2px}.meaning-popup{position:fixed;z-index:99999;pointer-events:none;background:#173e4c;color:#fff;font:700 15px/1.35 Inter,Arial,sans-serif;padding:10px 15px;border-radius:10px;box-shadow:0 8px 26px #092b3c55;max-width:260px;overflow-wrap:break-word}.meaning-popup[hidden]{display:none}
