:root{--bg:#f6f7fb;--card:#fff;--ink:#202532;--muted:#667085;--line:#e2e6ef;--accent:#6d28d9;--soft:#f2ecff;--danger:#b42318}
    *{box-sizing:border-box}
    body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden}
    button{font:inherit} button:focus-visible,summary:focus-visible{outline:3px solid #bda4ff;outline-offset:2px}
    #app{width:min(100%,1180px);min-height:100vh;margin-inline:auto;padding:24px 16px 48px}
    body.part4-active #app{width:min(100%,1180px);max-width:1180px;margin-inline:auto;padding-inline:clamp(8px,1.8vw,24px)}
    .screen[hidden]{display:none} h1{margin:0;font-size:clamp(1.7rem,5vw,2.35rem)} .sub{margin:7px 0 25px;color:var(--muted)}
    .eyebrow{display:inline-flex;margin-bottom:13px;padding:6px 10px;border-radius:999px;background:var(--soft);color:var(--accent);font-size:.78rem;font-weight:900;letter-spacing:.08em}.home-hero{padding:clamp(8px,2vw,24px) 0 26px}.home-hero h1{max-width:720px;font-size:clamp(2rem,6vw,3.25rem);line-height:1.12}.home-hero .sub{max-width:650px;margin:12px 0 0;font-size:clamp(1rem,2.2vw,1.14rem);line-height:1.65}.mode-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.mode-card{position:relative;min-height:216px;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 5px 18px #141e3c0b;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.mode-card:hover{transform:translateY(-3px);border-color:#bfa9f7;box-shadow:0 10px 28px #4f1bb218}.mode-index{display:grid;place-items:center;width:39px;height:39px;margin-bottom:27px;border-radius:12px;background:var(--soft);color:var(--accent);font-weight:900}.mode-card strong{display:block;font-size:1.32rem}.mode-card small{display:block;margin-top:9px;color:var(--muted);font-size:.94rem;line-height:1.55}.mode-arrow{position:absolute;right:22px;bottom:20px;color:var(--accent);font-size:1.35rem;font-weight:900}.home-note,.privacy-note{margin:19px 0 0;padding:12px 14px;border:1px solid #e5dcf8;border-radius:12px;background:#fbf9ff;color:#655978;font-size:.9rem;line-height:1.55}.section-topbar{display:flex;align-items:flex-start;gap:13px;margin-bottom:22px}.section-topbar .back{margin-top:2px}.section-heading .sub{margin-bottom:0}
    .site-footer{margin:16px auto 0;max-width:880px;color:#7a8190;font-size:.74rem;line-height:1.55;text-align:center}
    .session-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
    .session-button{min-height:124px;padding:22px;text-align:left;cursor:pointer;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);box-shadow:0 2px 8px #141e3c0a}
    .session-button:hover{border-color:#bfa9f7}.session-number{display:block;color:var(--accent);font-size:.88rem;font-weight:800;letter-spacing:.05em}.session-name{display:block;margin-top:7px;font-size:1.22rem;font-weight:800}.session-meta{display:block;margin-top:8px;color:var(--muted);font-size:.88rem;font-weight:600}
    .strategy-nav{display:flex;gap:7px;margin:-5px 0 18px;overflow-x:auto;padding:2px 1px 8px;scrollbar-width:none}.strategy-nav a{flex:0 0 auto;padding:7px 11px;border:1px solid #dcd0fb;border-radius:999px;background:#fff;color:#5b28bd;text-decoration:none;font-size:.86rem;font-weight:800}.strategy-grid{display:grid;gap:14px}.strategy-card{scroll-margin-top:14px;padding:clamp(18px,3vw,28px);border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 2px 9px #141e3c0a}.strategy-head{display:flex;align-items:center;gap:13px;margin-bottom:15px}.part-number{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:15px;background:var(--accent);color:#fff;font-size:1.08rem;font-weight:900}.strategy-head h2{margin:0;font-size:1.23rem}.strategy-head p{margin:3px 0 0;color:var(--muted);font-size:.9rem}.strategy-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:15px}.strategy-rule,.strategy-template{padding:14px 15px;border-radius:12px}.strategy-rule{background:#f5f1fe;color:#514566}.strategy-template{border:1px solid #e5dcf8;background:#fcfbff;color:#292535;line-height:1.62}.strategy-rule strong,.strategy-template strong{display:block;margin-bottom:6px;color:#4f1bb2;font-size:.9rem}.strategy-template code{display:block;font-family:inherit;font-weight:750;white-space:pre-wrap}.strategy-template code+strong{margin-top:14px}.strategy-explanation{margin-top:0}.strategy-explanation .explanation-content{padding:15px 0 0}.guide-legend{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:11px}.guide-legend span{padding:5px 8px;border-radius:8px;background:#eee7ff;color:#5b28bd;font-size:.78rem;font-weight:800}.reading-guide{margin:20px 0 4px;padding:16px;border:1px solid #d9cdf6;border-radius:14px;background:#fbf9ff}.reading-guide h3{margin:0 0 10px;color:#4f1bb2;font-size:1rem}.reading-guide-text{padding:13px 14px;border-left:4px solid var(--accent);border-radius:8px;background:#fff;font-size:clamp(1.02rem,2.2vw,1.18rem);font-weight:650;line-height:1.75}.source.reading-source{padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff;line-height:1.75}
    .topbar{display:flex;align-items:center;gap:14px;margin-bottom:18px}.back{border:1px solid var(--line);border-radius:10px;padding:9px 13px;background:#fff;color:var(--ink);cursor:pointer;white-space:nowrap}.topbar h1{font-size:1.45rem}
    .question-tabs{display:flex;justify-content:center;justify-content:safe center;gap:8px;overflow-x:auto;padding:2px 1px 12px;scrollbar-width:none}.question-tabs button{flex:0 0 55px;border:1px solid var(--line);border-radius:10px;padding:9px 5px;background:#fff;color:var(--muted);cursor:pointer;font-weight:750}.question-tabs button[aria-current="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
    .slider{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px}.arrow{height:47px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--accent);font-size:1.8rem;cursor:pointer}.arrow:disabled{color:#c3c8d3;cursor:default}
    .viewport{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:0 2px 9px #141e3c0d;touch-action:pan-y}.track{display:flex;transition:transform .25s ease}.question{flex:0 0 100%;min-width:0;padding:clamp(22px,4vw,40px)}body.part4-active .question{padding:clamp(16px,2.8vw,36px)}
    .question-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.label{display:inline-block;padding:4px 11px;border-radius:999px;background:var(--soft);color:var(--accent);font-size:.88rem;font-weight:800}.question h2{margin:9px 0 24px;font-size:clamp(1.35rem,4vw,2rem);line-height:1.2}.q7-type{display:inline-flex;margin:-12px 0 20px;padding:6px 11px;border:1px solid #d8c9fc;border-radius:999px;background:#fcfaff;color:#4f1bb2;font-size:.9rem;font-weight:850}.source{font-size:clamp(1.08rem,2.6vw,1.36rem);line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}.source-translation{display:block;margin-top:6px;color:#6b5a88;font-size:.82em;font-weight:650;line-height:1.55}.practice-directions-title{font-size:.95em}.practice-context-copy{margin-top:20px;white-space:pre-wrap}.practice-question-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:34px}.practice-question-title-row strong{font-size:1em;font-weight:500}.practice-question-copy{margin-top:22px;white-space:pre-wrap}.practice-audio-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid #cdbcf5;border-radius:999px;background:#fff;color:#5820bd;cursor:pointer;font-size:.78rem;font-weight:850;line-height:1;white-space:nowrap;box-shadow:0 2px 7px #4f1bb20d}.practice-audio-button:hover{border-color:#8f68e8;background:#f7f3ff}.practice-audio-button:focus-visible{outline:3px solid #bca5f2;outline-offset:2px}.practice-audio-button.is-playing{border-color:var(--accent);background:var(--accent);color:#fff}.audio-button-icon{font-size:.72em}.explanation-heading-with-action{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.explanation-heading-with-action .answer-audio-button{margin-left:auto;color:#5820bd}.explanation-heading-with-action .answer-audio-button.is-playing{color:#fff}
    .timer{flex:0 0 auto;min-width:222px;padding:9px 10px;border:1px solid #dcd0fb;border-radius:12px;background:#fcfaff;text-align:right}.timer-top{display:flex;align-items:center;justify-content:flex-end;gap:7px}.timer-phase{color:var(--accent);font-size:.78rem;font-weight:800}.timer-clock{min-width:52px;font-variant-numeric:tabular-nums;font-size:1.17rem;font-weight:900}.timer-actions,.timer-phases{display:flex;justify-content:flex-end;gap:6px;margin-top:7px;flex-wrap:wrap}.timer button{border:1px solid #d8c9fc;border-radius:7px;padding:4px 7px;background:#fff;color:#4f1bb2;cursor:pointer;font-size:.75rem;font-weight:750}.timer .phase-button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:#fff}.timer .start-button{background:var(--accent);border-color:var(--accent);color:#fff}.timer.done .timer-clock{color:var(--danger)}
    .photo-pending{margin:0 0 23px;padding:30px 18px;border:1px dashed #bda9ea;border-radius:13px;background:#fbf9ff;color:#6b5a88;text-align:center;font-weight:700}
    .question-image{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain;margin:0 auto 10px;border-radius:12px;background:#f1f2f5}
    .explanation{margin-top:28px;border:1px solid #ded3fb;border-radius:14px;background:#fbf9ff;overflow:hidden}.explanation summary{display:flex;align-items:center;gap:8px;padding:17px 18px;color:var(--accent);font-size:1.05rem;font-weight:850;cursor:pointer;list-style:none}.explanation summary::-webkit-details-marker{display:none}.explanation summary::before{content:'+';display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e9ddff;font-size:1.2rem;line-height:1}.explanation[open] summary{border-bottom:1px solid #ded3fb}.explanation[open] summary::before{content:'−'}
    .explanation-content{padding:18px;color:#3f4654;font-size:1rem;line-height:1.65;overflow-wrap:anywhere}.explanation-content h3{margin:22px 0 8px;color:#4f1bb2;font-size:1.05rem}.explanation-content h3:first-child{margin-top:0}.explanation-content p{margin:6px 0}.answer{margin:9px 0;padding:15px 16px;border-left:4px solid var(--accent);border-radius:9px;background:#fff;white-space:pre-wrap;color:#202532;font-size:clamp(1rem,2.2vw,1.08rem);font-weight:700;line-height:1.78}.answer br{content:'';display:block;margin-top:.28em}.pronunciation{margin:8px 0;color:#6b5a88;white-space:pre-wrap}.meaning{margin:8px 0;color:#4d5564;white-space:pre-wrap}.check{margin-top:14px;padding:10px 12px;border-radius:9px;background:#f1ecfb;font-size:.95rem}
    .event-table-wrap{width:100%;max-width:100%;overflow-x:auto;margin:0 0 26px;-webkit-overflow-scrolling:touch}.event-title{margin:0;padding:clamp(12px,2vw,18px) clamp(8px,2vw,16px) 4px;text-align:center;background:#f1f1f1;font-family:Georgia,serif;font-size:clamp(1rem,2.4vw,1.7rem);font-weight:800}.location{margin:0;padding:0 clamp(8px,2vw,16px) clamp(10px,1.8vw,15px);text-align:center;background:#f1f1f1;font-size:clamp(.76rem,1.7vw,1rem);overflow-wrap:anywhere}.event-table-wrap table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font-size:clamp(.76rem,1.8vw,1rem)}.event-table-wrap th,.event-table-wrap td{padding:clamp(6px,1.25vw,12px) clamp(4px,1.35vw,14px);border:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere;word-break:normal}.event-table-wrap th{background:#fafafa}.event-table-wrap th:first-child:nth-last-child(3){width:23%}.event-table-wrap th:nth-child(2):nth-last-child(2){width:29%}.event-table-wrap th:nth-child(3):last-child{width:48%}.event-table-wrap th:first-child:nth-last-child(4){width:20%}.event-table-wrap th:nth-child(2):nth-last-child(3){width:34%}.event-table-wrap th:nth-child(3):nth-last-child(2),.event-table-wrap th:nth-child(4):last-child{width:23%}.counter{margin:14px 0 0;color:var(--muted);text-align:center;font-size:.92rem}
    .sim-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.sim-topbar-main{min-width:0}.sim-kicker{display:block;color:var(--accent);font-size:.78rem;font-weight:900;letter-spacing:.06em}.sim-progress{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.12rem}.sim-shell{display:flex;flex-direction:column;height:calc(100vh - 130px);height:calc(100dvh - 130px);min-height:430px;max-height:900px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 28px #141e3c12}#simulation-running-view{display:flex;flex-direction:column;min-height:0;height:100%}#simulation-running-view[hidden]{display:none}.sim-status{position:relative;z-index:5;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px;padding:17px clamp(18px,4vw,34px);border-top:1px solid #e5dcf8;background:#f8f5ff;box-shadow:0 -8px 24px #141e3c0d}.sim-status-main{min-width:0}.sim-phase{display:block;color:#5b28bd;font-weight:900}.sim-help{display:block;margin-top:4px;color:var(--muted);font-size:.88rem}.sim-clock{min-width:96px;text-align:right;font-size:clamp(2rem,8vw,3.6rem);font-weight:950;font-variant-numeric:tabular-nums;line-height:1}.sim-step-button{align-self:center;border:1px solid #cfd4df;border-radius:9px;padding:8px 11px;background:#fff;color:#5c6472;cursor:pointer;font-size:.8rem;font-weight:800;white-space:nowrap}.sim-step-button:hover{border-color:#9ea6b5;color:#303744}.sim-step-button:disabled{opacity:.45;cursor:default}.sim-meter{grid-column:1/-1;height:7px;overflow:hidden;border-radius:999px;background:#e6ddf8}.sim-meter span{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .2s linear}.sim-content{flex:1 1 auto;min-height:0;overflow:auto;padding:clamp(22px,4vw,42px)}.sim-content h1{margin:0 0 20px;font-size:clamp(1.45rem,4vw,2.1rem)}.sim-content .source{max-width:980px;margin-inline:auto}.sim-content .question-image{max-height:58vh}.sim-gate{display:grid;place-items:center;min-height:290px;text-align:center}.sim-gate-inner{max-width:700px}.sim-gate-part{display:inline-block;margin-bottom:13px;padding:6px 11px;border-radius:999px;background:#eee7ff;color:#5b28bd;font-size:.8rem;font-weight:900;letter-spacing:.08em}.sim-gate strong{display:block;font-size:clamp(1.55rem,4.5vw,2.25rem);letter-spacing:.04em}.sim-gate p{margin:12px 0 0;color:#4f5666;font-weight:750}.sim-gate .sim-direction-copy{max-width:660px;margin:18px auto 0;color:#303746;font-size:clamp(.98rem,2vw,1.12rem);font-weight:650;line-height:1.72}.sim-gate small{display:block;margin-top:13px;color:#7a8190;line-height:1.5}.sim-end-actions button{border:1px solid #d8c9fc;border-radius:11px;padding:11px 17px;background:#fff;color:#4f1bb2;cursor:pointer;font-weight:850}.sim-end-actions .primary{min-width:130px;border-color:var(--accent);background:var(--accent);color:#fff}.sim-end{margin:auto;padding:clamp(38px,8vw,80px) 20px;text-align:center}.sim-end-mark{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 18px;border-radius:50%;background:#e9ddff;color:#5b28bd;font-size:1.8rem;font-weight:900}.sim-end h1{font-size:clamp(1.8rem,5vw,2.5rem)}.sim-end p{color:var(--muted);line-height:1.65}.sim-end-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:24px}
    .sim-status{transition:background .2s ease,border-color .2s ease}.sim-status[data-tone="listening"]{background:#f2f7ff;border-bottom-color:#cfe0ff}.sim-status[data-tone="preparing"]{background:#f8f5ff;border-bottom-color:#dfd3fb}.sim-status[data-tone="speaking"]{background:#effaf4;border-bottom-color:#bfe8cf}.sim-status[data-tone="complete"]{background:#f7f8fa}.sim-phase{display:flex;align-items:center;gap:8px;letter-spacing:.075em;text-transform:uppercase}.sim-phase::before{content:'';flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#7b61d1;box-shadow:0 0 0 4px #7b61d11a}.sim-status[data-tone="listening"] .sim-phase{color:#245ea8}.sim-status[data-tone="listening"] .sim-phase::before{background:#3478c8;box-shadow:0 0 0 4px #3478c81a}.sim-status[data-tone="speaking"] .sim-phase{color:#147a43}.sim-status[data-tone="speaking"] .sim-phase::before{background:#1f9d58;box-shadow:0 0 0 4px #1f9d581a;animation:sim-pulse 1.25s ease-in-out infinite}.sim-context-card{max-width:760px;margin:0 auto;padding:22px 24px;border:1px solid #e1d5ff;border-radius:16px;background:#fbf9ff;color:#252b3a;text-align:center}.sim-context-card .sim-question-copy{padding:0;border:0;background:transparent;font-size:clamp(1rem,2.3vw,1.2rem);font-weight:650}.sim-question-copy{max-width:760px;margin:0 auto;padding:15px 18px;border-left:4px solid var(--accent);border-radius:10px;background:#fbf9ff;text-align:center;font-size:clamp(1rem,2.3vw,1.2rem);font-weight:650;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}.sim-content h1{text-align:center;font-size:clamp(1.35rem,3.2vw,1.85rem)}.sim-content .event-table-wrap{max-width:920px;margin:0 auto 18px}.sim-content .event-table-wrap table{font-size:clamp(.72rem,1.5vw,.94rem)}.sim-prompt-note{max-width:900px;margin-inline:auto;margin-bottom:16px}.sim-audio-note{display:inline-flex;align-items:center;gap:6px;margin-top:8px;color:#667085;font-size:.8rem;font-weight:700}.sim-audio-note::before{content:'●';color:#1f9d58;font-size:.62rem}@keyframes sim-pulse{50%{opacity:.45;transform:scale(.82)}}@media(prefers-reduced-motion:reduce){.sim-status[data-tone="speaking"] .sim-phase::before{animation:none}}
    .sim-status[data-tone="error"]{background:#fff4f2;border-top-color:#f1b9b3}.sim-status[data-tone="error"] .sim-phase,.sim-status[data-tone="error"] .sim-audio-note{color:var(--danger)}.sim-status[data-tone="error"] .sim-phase::before,.sim-status[data-tone="error"] .sim-audio-note::before{background:var(--danger);color:var(--danger);box-shadow:0 0 0 4px #b423181a}
    @media(max-width:840px){.mode-list{grid-template-columns:1fr}.mode-card{min-height:150px}.mode-index{margin-bottom:18px}.strategy-columns{grid-template-columns:1fr}}
    @media(max-width:690px){.question-head{flex-wrap:wrap}.timer{width:100%;text-align:left}.timer-top,.timer-actions,.timer-phases{justify-content:flex-start}.sim-status{grid-template-columns:minmax(0,1fr) auto auto;gap:10px 8px;padding:14px}.sim-status-main{grid-column:1/-1}.sim-clock{min-width:0;text-align:left;font-size:2rem}.sim-step-button{justify-self:end;padding:7px 8px}.sim-meter{grid-column:1/-1}}
    @media(max-width:560px){#app{padding:14px 8px 28px}.topbar{gap:9px;margin-bottom:14px}.topbar h1{font-size:1.25rem}.back{padding:8px 10px}.section-topbar{gap:9px}.slider{grid-template-columns:1fr 1fr;grid-template-areas:"viewport viewport" "prev next";gap:10px}.slider .viewport{grid-area:viewport}.slider #prev{grid-area:prev}.slider #next{grid-area:next}.arrow{height:40px;font-size:1.5rem}.question{padding:22px 15px}body.part4-active .question{padding:16px 8px}.source{font-size:1.08rem;line-height:1.56}.practice-question-title-row{margin-top:28px}.practice-question-copy{margin-top:18px}.practice-audio-button{min-height:32px;padding:6px 9px;font-size:.74rem}.explanation{margin-top:23px}.explanation summary{padding:15px 14px}.explanation-content{padding:15px 14px;font-size:.98rem;line-height:1.6}.answer{padding:14px 13px;line-height:1.74}.event-title,.location{min-width:0}.event-title{font-size:1.02rem}.location{font-size:.75rem}.event-table-wrap{overflow:visible}.event-table-wrap table{display:table;width:100%;min-width:0;font-size:clamp(.64rem,2.85vw,.78rem)}.event-table-wrap thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.event-table-wrap tbody{display:table-row-group}.event-table-wrap tr{display:table-row}.event-table-wrap th,.event-table-wrap td{display:table-cell;width:auto;padding:clamp(4px,1.65vw,7px) clamp(3px,1.5vw,6px);border:1px solid var(--line);font-size:inherit;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}.sim-content{min-height:320px;padding:20px 14px}.reading-guide{padding:13px}.reading-guide-text{padding:11px 12px}.mode-card{min-height:142px;padding:20px}}
    @media(max-width:360px){.event-table-wrap table{font-size:.62rem}.event-table-wrap th,.event-table-wrap td{padding:4px 2px;line-height:1.3}}
    .simulation-session-card{min-height:124px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:0 2px 8px #141e3c0a}.simulation-session-card .session-number,.simulation-session-card .session-name,.simulation-session-card .session-meta{display:block}.simulation-session-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.simulation-session-actions button{border:1px solid #cfc1f3;border-radius:9px;padding:9px 7px;background:#fff;color:#4f1bb2;cursor:pointer;font-size:.82rem;font-weight:850}.simulation-session-actions .exam-start{border-color:var(--accent);background:var(--accent);color:#fff}
    #simulation-run-screen:not([hidden]){display:flex;flex-direction:column;height:calc(100vh - 72px);height:calc(100dvh - 72px);min-height:0}#simulation-run-screen .sim-topbar,#simulation-run-screen .sim-question-tabs{flex:0 0 auto}#simulation-run-screen .sim-question-tabs{margin-bottom:2px;padding-bottom:8px}#simulation-run-screen .sim-shell{flex:1 1 auto;height:auto;min-height:0;max-height:none}#simulation-run-screen.exam-mode .sim-question-tabs,#simulation-run-screen.exam-mode #simulation-back-step,#simulation-run-screen.exam-mode #simulation-skip,#simulation-run-screen.exam-mode .sim-audio-note{display:none}#simulation-run-screen.exam-mode .sim-status{grid-template-columns:minmax(0,1fr) auto}#simulation-run-screen.exam-mode.audio-error #simulation-skip{display:inline-flex}#simulation-run-screen.exam-mode.audio-error .sim-status{grid-template-columns:minmax(0,1fr) auto auto}
    @media(max-width:560px){#simulation-run-screen:not([hidden]){height:calc(100vh - 42px);height:calc(100dvh - 42px)}#simulation-run-screen .sim-topbar{margin-bottom:8px}#simulation-run-screen .sim-question-tabs{justify-content:flex-start;scroll-padding-inline:45%}#simulation-run-screen .sim-shell{border-radius:14px}.sim-content{min-height:0;padding:16px 12px}.sim-status{padding:11px max(10px,env(safe-area-inset-right)) max(11px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));gap:8px}.sim-help{font-size:.79rem;line-height:1.35}.sim-audio-note{margin-top:5px;font-size:.74rem}.sim-clock{font-size:1.8rem}.sim-step-button{min-height:36px;padding:6px 8px}.sim-gate{min-height:220px}.sim-context-card{padding:17px 14px}}
    @media(max-height:640px){#simulation-run-screen:not([hidden]){height:calc(100vh - 30px);height:calc(100dvh - 30px)}#simulation-run-screen .sim-topbar{margin-bottom:5px}.sim-topbar .back{padding-block:6px}.sim-kicker{font-size:.7rem}.sim-progress{font-size:.95rem}#simulation-run-screen .sim-question-tabs{padding-bottom:5px}.sim-content{padding-block:12px}.sim-status{padding-top:9px;padding-bottom:max(9px,env(safe-area-inset-bottom))}}
    @media(orientation:landscape) and (max-height:650px){body.part4-active #app{padding-top:10px}.part4-active .topbar{margin-bottom:8px}.part4-active .question-tabs{padding-bottom:7px}.part4-active .question{padding-block:14px}.part4-active .question h2{margin-bottom:14px}.part4-active .event-table-wrap{margin-bottom:16px}}
.speaking-home-link { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 24px; padding: 0 13px; border: 1px solid #e3ddf4; border-radius: 10px; color: #5430a9; background: rgba(255,255,255,.72); font-size: .82rem; font-weight: 800; }
.speaking-home-link:hover { background: #fff; }

/* Sentence-by-sentence learning explanations. */
.lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.template-lesson{min-width:0;padding:20px;border:1px solid #e5dcf8;border-radius:14px;background:#fcfbff;overflow-wrap:anywhere}
.template-lesson h3{margin:0 0 12px;color:#4f1bb2;font-size:1.05rem;line-height:1.5}
.lesson-english{margin:0 0 18px;padding-left:12px;border-left:3px solid var(--accent);color:#242033;font-size:1.1rem;font-weight:750;line-height:1.7}
.template-lesson dl{margin:0;line-height:1.75}
.template-lesson dt{margin-top:13px;color:#5121aa;font-size:.9rem;font-weight:750}
.template-lesson dd{margin:3px 0 0;color:#443d52;font-size:1rem;word-break:keep-all;overflow-wrap:anywhere}
.lesson-example{margin-top:18px;padding:14px;background:#fff;border-radius:10px;border:1px solid #eee7fa}
.lesson-example h4{margin:0 0 9px;color:#5121aa;font-size:.95rem}
.lesson-example p{margin:6px 0;line-height:1.75}
.lesson-example p[lang=en]{font-weight:700;color:#242033}
.example-pronunciation{color:#675380}
.example-meaning{color:#443d52}
.lesson-full-answer{margin-top:20px;padding:20px;border:1px solid #e5dcf8;border-radius:14px;background:#f8f5ff;line-height:1.8;overflow-wrap:anywhere}
.lesson-full-answer h3{margin-top:0;color:#4f1bb2}
.lesson-full-answer p[lang=en]{font-weight:750}
@media(max-width:840px){.lesson-grid{grid-template-columns:1fr}.template-lesson{padding:16px}.lesson-english{font-size:1.05rem}}
