/*
 * Exam Atlas Exam Engine
 * Simulator Shell Reconstruction
 * Version 0.1.3
 */

:root{
    --adp-orange:#fc9012;
    --adp-cyan:#00bddd;
    --adp-ink:#172033;
    --adp-muted:#64748b;
    --adp-line:#dce7ee;
    --adp-soft:#f5f9fc;
    --adp-warm:#fff8ef;
    --adp-white:#ffffff;

    --ea-green:#16845b;
    --ea-green-soft:#e9f8f1;

    --ea-review:#a76308;
    --ea-review-soft:#fff4df;

    --ea-red:#b42318;

    --ea-shadow:
        0 12px 34px rgba(23,32,51,.07);
}


/* ==========================================================
   GLOBAL RUNTIME ISOLATION
   ========================================================== */

body.ea-runtime-page,
body.ea-runtime-active{
    margin:0 !important;
    padding:0 !important;
    background:#edf3f7 !important;
}

body.ea-runtime-page #masthead,
body.ea-runtime-page .site-header,
body.ea-runtime-page #colophon,
body.ea-runtime-page .site-footer,
body.ea-runtime-page .entry-header,
body.ea-runtime-page .comments-area,
body.ea-runtime-page .post-navigation,
body.ea-runtime-active #masthead,
body.ea-runtime-active .site-header,
body.ea-runtime-active #colophon,
body.ea-runtime-active .site-footer,
body.ea-runtime-active .entry-header{
    display:none !important;
}

body.ea-runtime-page #page,
body.ea-runtime-page #content,
body.ea-runtime-page .site-content,
body.ea-runtime-page .ast-container,
body.ea-runtime-page .content-area,
body.ea-runtime-page .site-main,
body.ea-runtime-page article,
body.ea-runtime-page .entry-content{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
}

body.ea-runtime-page article{
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

.ea-runtime-wrap,
.ea-runtime-wrap *{
    box-sizing:border-box;
}

.ea-runtime-wrap{
    width:100%;
    margin:0;
    padding:0;

    color:var(--adp-ink);

    font-family:"Montserrat",sans-serif;
}

html[lang="ar"] .ea-runtime-wrap,
html[lang="ar"] .ea-runtime-wrap button,
html[lang="ar"] .ea-runtime-wrap input,
html[lang="ar"] .ea-runtime-wrap textarea{
    font-family:"Cairo",sans-serif;
}


/* ==========================================================
   APPLICATION SHELL
   ========================================================== */

.ea-exam-shell.ea-simulator-runtime{
    width:100%;
    max-width:none;

    min-height:100vh;

    margin:0;
    padding:0;

    overflow:visible;

    border:0;
    border-radius:0;

    background:#edf3f7;

    box-shadow:none;
}


/* ==========================================================
   TOP BAR
   ========================================================== */

.ea-exam-topbar{
    position:sticky;
    top:0;
    z-index:100;

    min-height:72px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;

    padding:12px 28px;

    border-bottom:1px solid var(--adp-line);

    background:rgba(255,255,255,.98);

    box-shadow:
        0 2px 10px rgba(23,32,51,.035);
}

.ea-exam-brand{
    min-width:0;

    display:flex;
    flex-direction:column;
    gap:2px;
}

.ea-exam-kicker{
    color:var(--adp-cyan);

    font-size:10px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.09em;
}

.ea-exam-brand strong{
    overflow:hidden;

    color:var(--adp-ink);

    font-size:17px;
    font-weight:700;

    white-space:nowrap;
    text-overflow:ellipsis;
}

.ea-topbar-actions{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
}

.ea-mode-badge{
    min-height:30px;

    display:flex;
    align-items:center;

    padding:5px 10px;

    border:1px solid #c9eaf0;
    border-radius:999px;

    background:#effbfd;
    color:#087b8e;

    font-size:10px;
    font-weight:700;
}

.ea-save-state{
    min-height:30px;

    display:flex;
    align-items:center;
    gap:6px;

    padding:5px 10px;

    border:1px solid var(--adp-line);
    border-radius:999px;

    background:#fff;
    color:var(--adp-muted);

    font-size:10px;
    font-weight:600;
}

.ea-save-dot{
    width:7px;
    height:7px;

    border-radius:50%;

    background:var(--ea-green);
}

.ea-save-state.is-saving .ea-save-dot{
    background:var(--adp-orange);
}

.ea-exam-time{
    min-width:84px;

    display:flex;
    flex-direction:column;
    align-items:flex-end;
}

.ea-exam-time span{
    color:var(--adp-muted);

    font-size:9px;
}

.ea-exam-time strong{
    color:var(--adp-ink);

    font-size:18px;
    font-weight:700;

    line-height:1.15;

    font-variant-numeric:tabular-nums;
}

.ea-exit-button{
    min-height:36px;

    padding:7px 13px;

    border:1px solid var(--adp-line);
    border-radius:8px;

    background:#fff;
    color:var(--adp-muted);

    font:inherit;
    font-size:11px;
    font-weight:700;

    cursor:pointer;
}

.ea-exit-button:hover{
    border-color:#efbbb7;

    background:#fff6f5;
    color:var(--ea-red);
}


/* ==========================================================
   CHEVRON STAGE BAR
   ========================================================== */

.ea-stepper{
    position:sticky;
    top:72px;
    z-index:90;

    width:100%;

    display:flex;
    align-items:stretch;

    overflow-x:auto;
    overflow-y:hidden;

    padding:0 24px;

    border-bottom:1px solid var(--adp-line);

    background:#f7fafc;
}

.ea-step{
    --ea-step-bg:#eef3f7;
    --ea-step-color:#7a899b;

    position:relative;

    flex:1 0 180px;

    min-width:170px;
    min-height:54px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    margin-left:-12px;

    padding:
        10px
        26px
        10px
        32px;

    border:0;

    background:var(--ea-step-bg);
    color:var(--ea-step-color);

    clip-path:polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 50%,
        calc(100% - 18px) 100%,
        0 100%,
        18px 50%
    );

    font:inherit;
    font-size:12px;
    font-weight:700;

    cursor:default;
}

.ea-step:first-child{
    margin-left:0;

    clip-path:polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 50%,
        calc(100% - 18px) 100%,
        0 100%
    );
}

.ea-step-completed{
    --ea-step-bg:var(--ea-green-soft);
    --ea-step-color:var(--ea-green);

    z-index:4;
}

.ea-step-current{
    --ea-step-bg:var(--adp-cyan);
    --ea-step-color:#fff;

    z-index:5;
}

.ea-step-upcoming{
    --ea-step-bg:var(--ea-review-soft);
    --ea-step-color:var(--ea-review);

    z-index:3;
}

.ea-step-locked{
    --ea-step-bg:#edf2f6;
    --ea-step-color:#98a6b5;

    z-index:2;
}

.ea-step-number{
    width:23px;
    height:23px;

    flex:0 0 23px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.72);

    color:inherit;

    font-size:10px;
}

.ea-step-current .ea-step-number{
    background:rgba(255,255,255,.18);
}

.ea-step-status-icon{
    width:0;

    overflow:hidden;

    font-size:13px;
}

.ea-step-completed .ea-step-status-icon{
    width:13px;
}

.ea-step-label{
    white-space:nowrap;
}


/* ==========================================================
   MOBILE STAGE BAR
   ========================================================== */

.ea-mobile-stagebar{
    display:none;
}


/* ==========================================================
   STAGE HOST
   ========================================================== */

.ea-ielts-stage-host{
    width:100%;

    min-height:calc(100vh - 196px);

    padding:24px 28px 100px;

    background:#edf3f7;
}

.ea-stage{
    width:100%;
    max-width:1500px;

    margin:0 auto;
}

.ea-stage[hidden]{
    display:none !important;
}

.ea-stage-heading{
    min-height:66px;

    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;

    margin-bottom:16px;
}

.ea-stage-heading > div:first-child{
    min-width:0;
}

.ea-section-eyebrow{
    display:block;

    margin:0 0 3px;

    color:var(--adp-cyan);

    font-size:10px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.08em;
}

.ea-stage-heading h2{
    margin:0;

    color:var(--adp-ink);

    font-size:25px;
    font-weight:700;

    line-height:1.25;
}

.ea-stage-heading p{
    margin:5px 0 0;

    color:var(--adp-muted);

    font-size:12px;
    line-height:1.6;
}

.ea-stage-meta{
    flex:0 0 auto;

    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:2px;

    padding:8px 11px;

    border:1px solid var(--adp-line);
    border-radius:9px;

    background:#fff;
}

.ea-stage-meta span{
    color:var(--adp-muted);
    font-size:9px;
}

.ea-stage-meta strong{
    font-size:11px;
}


/* ==========================================================
   LISTENING AUDIO BAR
   ========================================================== */

.ea-listening-audio{
    display:grid;
    grid-template-columns:40px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;

    margin-bottom:16px;
    padding:12px 15px;

    border:1px solid var(--adp-line);
    border-radius:12px;

    background:#fff;

    box-shadow:var(--ea-shadow);
}

.ea-audio-icon{
    width:40px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#eafafd;
    color:var(--adp-cyan);

    font-size:13px;
}

.ea-audio-main{
    min-width:0;
}

.ea-audio-title{
    margin-bottom:6px;

    font-size:11px;
    font-weight:700;
}

.ea-audio-track{
    height:5px;

    overflow:hidden;

    border-radius:999px;

    background:#e6edf2;
}

.ea-audio-track span{
    display:block;

    width:0;
    height:100%;

    border-radius:inherit;

    background:var(--adp-cyan);
}

.ea-audio-times{
    display:flex;
    justify-content:space-between;

    margin-top:4px;

    color:var(--adp-muted);

    font-size:8px;
}

.ea-audio-play{
    min-width:72px;
    min-height:35px;

    padding:7px 11px;

    border:0;
    border-radius:8px;

    background:var(--adp-ink);
    color:#fff;

    font:inherit;
    font-size:10px;
    font-weight:700;

    cursor:pointer;
}


/* ==========================================================
   LISTENING QUESTION WORKSPACE
   ========================================================== */

.ea-listening-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 280px;
    gap:16px;
}

.ea-exam-question-card,
.ea-section-navigator{
    overflow:hidden;

    border:1px solid var(--adp-line);
    border-radius:14px;

    background:#fff;

    box-shadow:var(--ea-shadow);
}

.ea-question-toolbar{
    min-height:50px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    padding:10px 16px;

    border-bottom:1px solid var(--adp-line);

    background:#fbfdfe;
    color:var(--adp-muted);

    font-size:11px;
}

.ea-question-toolbar strong{
    color:var(--adp-ink);
}

.ea-mark-review{
    min-height:31px;

    padding:5px 9px;

    border:1px solid var(--adp-line);
    border-radius:7px;

    background:#fff;
    color:var(--adp-muted);

    font:inherit;
    font-size:10px;
    font-weight:700;

    cursor:pointer;
}

.ea-mark-review.is-marked{
    border-color:#f1cf99;

    background:var(--ea-review-soft);
    color:var(--ea-review);
}

.ea-question-body{
    min-height:410px;

    padding:28px;
}

.ea-question-type{
    display:inline-block;

    margin-bottom:6px;

    color:#0996ad;

    font-size:9px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.07em;
}

.ea-question-body h3{
    max-width:820px;

    margin:2px 0 24px;

    color:var(--adp-ink);

    font-size:23px;
    font-weight:700;

    line-height:1.45;
}

.ea-answer-list{
    max-width:850px;

    display:grid;
    gap:9px;
}

.ea-answer-list label{
    min-height:49px;

    display:flex;
    align-items:center;
    gap:11px;

    padding:10px 13px;

    border:1px solid var(--adp-line);
    border-radius:9px;

    background:#fff;

    cursor:pointer;

    transition:
        border-color .15s ease,
        background .15s ease;
}

.ea-answer-list label:hover{
    border-color:#a9d6df;

    background:#fbfeff;
}

.ea-answer-list label:has(input:checked){
    border-color:var(--adp-cyan);

    background:#effbfd;
}

.ea-answer-list input{
    width:17px;
    height:17px;

    margin:0;

    accent-color:var(--adp-cyan);
}

.ea-answer-list span{
    color:var(--adp-ink);

    font-size:12px;
}


/* ==========================================================
   NAVIGATOR
   ========================================================== */

.ea-section-navigator{
    align-self:start;
}

.ea-navigator-title{
    padding:14px 15px 6px;

    color:var(--adp-ink);

    font-size:11px;
    font-weight:700;
}

.ea-question-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:7px;

    padding:11px 15px 16px;
}

.ea-question-dot{
    aspect-ratio:1;

    min-width:0;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:1px solid var(--adp-line);
    border-radius:7px;

    background:#fff;
    color:var(--adp-muted);

    font:inherit;
    font-size:10px;
    font-weight:700;

    cursor:pointer;
}

.ea-question-dot.is-current{
    border-color:var(--adp-cyan);

    background:var(--adp-cyan);
    color:#fff;
}

.ea-question-dot.is-answered{
    border-color:#b9dfcf;

    background:var(--ea-green-soft);
    color:var(--ea-green);
}

.ea-question-dot.is-review{
    border-color:#f0cc91;

    background:var(--ea-review-soft);
    color:var(--ea-review);
}

.ea-question-dot.is-unanswered{
    background:#fff;
    color:var(--adp-muted);
}

.ea-navigator-mini-summary{
    display:grid;
    grid-template-columns:1fr 1fr;

    border-top:1px solid var(--adp-line);
}

.ea-navigator-mini-summary span{
    padding:10px 8px;

    color:var(--adp-muted);

    text-align:center;

    font-size:8px;
}

.ea-navigator-mini-summary span + span{
    border-left:1px solid var(--adp-line);
}

.ea-navigator-mini-summary strong{
    display:block;

    margin-top:2px;

    color:var(--adp-ink);

    font-size:15px;
}


/* ==========================================================
   READING
   ========================================================== */

.ea-reading-split{
    height:610px;

    display:grid;
    grid-template-columns:1fr 1fr;

    overflow:hidden;

    border:1px solid var(--adp-line);
    border-radius:14px;

    background:#fff;

    box-shadow:var(--ea-shadow);
}

.ea-reading-passage{
    min-width:0;

    border-right:1px solid var(--adp-line);
}

.ea-reading-questions{
    min-width:0;
}

.ea-pane-toolbar{
    min-height:52px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    padding:10px 15px;

    border-bottom:1px solid var(--adp-line);

    background:#fbfdfe;

    font-size:11px;
}

.ea-pane-toolbar button{
    min-height:29px;

    padding:4px 8px;

    border:1px solid var(--adp-line);
    border-radius:6px;

    background:#fff;

    font:inherit;
    font-size:9px;
    font-weight:700;

    cursor:pointer;
}

.ea-reading-scroll,
.ea-reading-question-scroll{
    height:calc(610px - 52px);

    overflow:auto;

    padding:24px;
}

.ea-reading-scroll{
    color:#334155;

    font-size:14px;
    line-height:1.9;
}

.ea-reading-scroll p{
    margin:0 0 18px;
}

.ea-reading-question-scroll h3{
    margin:4px 0 7px;

    font-size:18px;
}

.ea-reading-question-scroll > p{
    margin:0 0 20px;

    color:#334155;

    font-size:14px;
    line-height:1.7;
}

.ea-inline-question-nav{
    display:grid;
    grid-template-columns:repeat(10,1fr);
    gap:5px;

    margin-top:26px;
}


/* ==========================================================
   WRITING
   ========================================================== */

.ea-writing-tabs{
    display:flex;
    gap:5px;
}

.ea-writing-tabs button{
    min-height:34px;

    padding:6px 12px;

    border:1px solid var(--adp-line);
    border-radius:7px;

    background:#fff;

    font:inherit;
    font-size:10px;
    font-weight:700;

    cursor:pointer;
}

.ea-writing-tabs button.is-active{
    border-color:var(--adp-cyan);

    background:#effbfd;
    color:#087b8e;
}

.ea-writing-layout{
    min-height:610px;

    display:grid;
    grid-template-columns:minmax(320px,38%) minmax(0,1fr);

    overflow:hidden;

    border:1px solid var(--adp-line);
    border-radius:14px;

    background:#fff;

    box-shadow:var(--ea-shadow);
}

.ea-writing-prompt{
    padding:26px;

    border-right:1px solid var(--adp-line);

    background:#fbfdfe;
}

.ea-writing-prompt h3{
    margin:3px 0 11px;

    font-size:20px;
}

.ea-writing-prompt p{
    color:#475569;

    font-size:12px;
    line-height:1.7;
}

.ea-demo-chart{
    height:205px;

    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:22px;

    margin:22px 0;

    padding:24px 24px 0;

    border-left:1px solid #94a3b8;
    border-bottom:1px solid #94a3b8;
}

.ea-demo-chart div{
    width:40px;
    min-height:20px;

    border-radius:4px 4px 0 0;

    background:var(--adp-cyan);
}

.ea-demo-chart div:nth-child(even){
    background:var(--adp-orange);
}

.ea-writing-note{
    padding:12px;

    border-radius:8px;

    background:var(--adp-warm);
}

.ea-writing-editor-panel{
    min-width:0;

    display:flex;
    flex-direction:column;
}

.ea-editor-toolbar{
    min-height:52px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:10px 16px;

    border-bottom:1px solid var(--adp-line);

    font-size:11px;
}

.ea-writing-editor{
    flex:1;

    width:100%;
    min-height:500px;

    padding:22px;

    resize:none;

    border:0;
    outline:0;

    background:#fff;
    color:var(--adp-ink);

    font:14px/1.8 "Montserrat",sans-serif;
}

html[lang="ar"] .ea-writing-editor{
    font-family:"Cairo",sans-serif;
}

.ea-editor-status{
    display:flex;
    justify-content:space-between;

    padding:9px 16px;

    border-top:1px solid var(--adp-line);

    color:var(--adp-muted);

    font-size:9px;
}


/* ==========================================================
   SPEAKING
   ========================================================== */

.ea-speaking-part-tabs{
    display:flex;
    gap:5px;
}

.ea-speaking-part-tabs span,
.ea-speaking-part-tabs strong{
    padding:6px 10px;

    border-radius:7px;

    font-size:9px;
}

.ea-speaking-part-tabs span{
    background:#edf2f6;
    color:var(--adp-muted);
}

.ea-speaking-part-tabs strong{
    background:#eafafd;
    color:#087b8e;
}

.ea-speaking-layout{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);
    gap:16px;
}

.ea-speaking-cue-card,
.ea-speaking-recorder{
    min-height:570px;

    padding:28px;

    border:1px solid var(--adp-line);
    border-radius:14px;

    background:#fff;

    box-shadow:var(--ea-shadow);
}

.ea-speaking-cue-card h3{
    max-width:700px;

    margin:4px 0 18px;

    font-size:23px;

    line-height:1.45;
}

.ea-speaking-cue-card p,
.ea-speaking-cue-card li{
    font-size:12px;
}

.ea-speaking-cue-card ul{
    margin:10px 0 22px;
    padding-left:20px;

    line-height:1.9;
}

.ea-speaking-notes{
    display:block;

    margin-top:22px;
}

.ea-speaking-notes span{
    display:block;

    margin-bottom:6px;

    font-size:10px;
    font-weight:700;
}

.ea-speaking-notes textarea{
    width:100%;
    min-height:120px;

    padding:12px;

    resize:vertical;

    border:1px solid var(--adp-line);
    border-radius:8px;

    font:inherit;
    font-size:11px;
}

.ea-speaking-recorder{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;
}

.ea-microphone-state{
    display:flex;
    align-items:center;
    gap:10px;

    margin-bottom:27px;

    text-align:left;
}

.ea-mic-dot{
    width:12px;
    height:12px;

    border-radius:50%;

    background:#94a3b8;
}

.ea-microphone-state.is-ready .ea-mic-dot{
    background:var(--ea-green);
}

.ea-microphone-state.is-recording .ea-mic-dot{
    background:#d92d20;

    box-shadow:
        0 0 0 6px rgba(217,45,32,.1);
}

.ea-microphone-state strong{
    font-size:11px;
}

.ea-microphone-state small{
    display:block;

    margin-top:2px;

    color:var(--adp-muted);

    font-size:9px;
}

.ea-speaking-clock,
.ea-recording-clock{
    margin:7px 0;
}

.ea-speaking-clock span,
.ea-recording-clock span{
    display:block;

    color:var(--adp-muted);

    font-size:9px;
}

.ea-speaking-clock strong,
.ea-recording-clock strong{
    display:block;

    margin-top:1px;

    font-size:36px;

    font-variant-numeric:tabular-nums;
}

.ea-speaking-controls{
    display:flex;
    gap:8px;

    margin-top:23px;
}

.ea-speaking-disclaimer{
    max-width:410px;

    margin:21px auto 0;

    color:var(--adp-muted);

    font-size:9px;
    line-height:1.6;
}


/* ==========================================================
   FINAL REVIEW
   ========================================================== */

.ea-final-review{
    max-width:860px;

    margin:38px auto;

    padding:36px;

    border:1px solid var(--adp-line);
    border-radius:16px;

    background:#fff;

    box-shadow:var(--ea-shadow);
}

.ea-final-review h2{
    margin:4px 0 7px;

    font-size:26px;
}

.ea-final-review > p{
    color:var(--adp-muted);

    font-size:12px;
}

.ea-review-sections{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;

    margin:26px 0;
}

.ea-review-sections > div{
    display:flex;
    align-items:center;
    gap:11px;

    padding:14px;

    border:1px solid var(--adp-line);
    border-radius:10px;
}

.ea-review-check{
    width:31px;
    height:31px;

    flex:0 0 31px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:var(--ea-green-soft);
    color:var(--ea-green);

    font-size:12px;
    font-weight:700;
}

.ea-review-sections section{
    display:flex;
    flex-direction:column;
}

.ea-review-sections strong{
    font-size:11px;
}

.ea-review-sections small{
    margin-top:2px;

    color:var(--adp-muted);

    font-size:9px;
}

.ea-review-warning{
    padding:14px;

    border-radius:9px;

    background:var(--adp-warm);
}

.ea-review-warning strong{
    font-size:11px;
}

.ea-review-warning p{
    margin:3px 0 0;

    color:var(--adp-muted);

    font-size:10px;
}


/* ==========================================================
   BUTTONS / FOOTER
   ========================================================== */

.ea-btn{
    min-height:38px;

    padding:7px 14px;

    border:1px solid transparent;
    border-radius:8px;

    font:inherit;
    font-size:10px;
    font-weight:700;

    cursor:pointer;
}

.ea-btn:disabled{
    opacity:.42;
    cursor:not-allowed;
}

.ea-btn-primary{
    border-color:var(--adp-orange);

    background:var(--adp-orange);
    color:#fff;
}

.ea-btn-secondary{
    border-color:var(--adp-line);

    background:#fff;
    color:var(--adp-ink);
}

.ea-btn-danger{
    background:var(--ea-red);
    color:#fff;
}

.ea-exam-actions{
    position:fixed;
    right:0;
    bottom:0;
    left:0;
    z-index:110;

    min-height:64px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    padding:10px 28px;

    border-top:1px solid var(--adp-line);

    background:rgba(255,255,255,.98);

    box-shadow:
        0 -4px 18px rgba(23,32,51,.055);
}

.ea-action-center{
    color:var(--adp-muted);

    font-size:10px;
    font-weight:600;
}


/* ==========================================================
   MODALS
   ========================================================== */

.ea-modal[hidden]{
    display:none !important;
}

.ea-modal{
    position:fixed;
    inset:0;
    z-index:1000000;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:20px;
}

.ea-modal-backdrop{
    position:absolute;
    inset:0;

    background:rgba(15,23,42,.52);

    backdrop-filter:blur(3px);
}

.ea-modal-card{
    position:relative;
    z-index:1;

    width:min(500px,100%);

    padding:26px;

    border-radius:14px;

    background:#fff;

    box-shadow:
        0 28px 90px rgba(15,23,42,.24);
}

.ea-modal-kicker{
    color:var(--adp-cyan);

    font-size:9px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.07em;
}

.ea-modal-card h3{
    margin:5px 0 7px;

    font-size:21px;
}

.ea-modal-card p{
    margin:0;

    color:var(--adp-muted);

    font-size:11px;
    line-height:1.7;
}

.ea-modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;

    margin-top:20px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width:1000px){

    .ea-step{
        flex-basis:160px;
        min-width:150px;
    }

    .ea-listening-layout{
        grid-template-columns:minmax(0,1fr) 245px;
    }

    .ea-reading-split{
        height:auto;
        grid-template-columns:1fr;
    }

    .ea-reading-passage{
        border-right:0;
        border-bottom:1px solid var(--adp-line);
    }

    .ea-reading-scroll,
    .ea-reading-question-scroll{
        height:390px;
    }

    .ea-writing-layout{
        grid-template-columns:1fr;
    }

    .ea-writing-prompt{
        border-right:0;
        border-bottom:1px solid var(--adp-line);
    }

    .ea-speaking-layout{
        grid-template-columns:1fr;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:800px){

    .ea-exam-topbar{
        min-height:62px;

        padding:9px 12px;
    }

    .ea-exam-brand strong{
        max-width:230px;

        font-size:13px;
    }

    .ea-mode-badge,
    .ea-save-state{
        display:none;
    }

    .ea-exam-time strong{
        font-size:15px;
    }

    .ea-stepper{
        display:none;
    }

    .ea-mobile-stagebar{
        position:sticky;
        top:62px;
        z-index:90;

        min-height:50px;

        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;

        padding:8px 12px;

        border-bottom:1px solid var(--adp-line);

        background:#f8fafc;
    }

    .ea-mobile-stagebar > div{
        display:flex;
        flex-direction:column;
    }

    .ea-mobile-stagebar span{
        color:var(--adp-muted);

        font-size:8px;
    }

    .ea-mobile-stagebar strong{
        margin-top:1px;

        font-size:11px;
    }

    .ea-mobile-nav-toggle{
        min-height:30px;

        padding:5px 8px;

        border:1px solid var(--adp-line);
        border-radius:7px;

        background:#fff;

        font:inherit;
        font-size:9px;
        font-weight:700;
    }

    .ea-ielts-stage-host{
        min-height:calc(100vh - 176px);

        padding:13px 12px 82px;
    }

    .ea-stage-heading{
        min-height:auto;

        flex-direction:column;
        gap:8px;

        margin-bottom:12px;
    }

    .ea-stage-heading h2{
        font-size:20px;
    }

    .ea-stage-meta{
        align-items:flex-start;
    }

    .ea-listening-audio{
        grid-template-columns:35px minmax(0,1fr);
    }

    .ea-audio-icon{
        width:35px;
        height:35px;
    }

    .ea-audio-play{
        grid-column:1 / -1;

        width:100%;
    }

    .ea-listening-layout{
        grid-template-columns:1fr;
    }

    .ea-section-navigator{
        order:-1;
    }

    .ea-section-navigator .ea-question-grid{
        grid-template-columns:repeat(10,1fr);
        gap:4px;
    }

    .ea-question-body{
        min-height:320px;

        padding:20px 15px;
    }

    .ea-question-body h3{
        font-size:19px;
    }

    .ea-inline-question-nav{
        grid-template-columns:repeat(5,1fr);
    }

    .ea-writing-tabs{
        width:100%;
    }

    .ea-writing-tabs button{
        flex:1;
    }

    .ea-writing-prompt,
    .ea-speaking-cue-card,
    .ea-speaking-recorder{
        min-height:auto;

        padding:20px 15px;
    }

    .ea-speaking-controls{
        width:100%;
    }

    .ea-speaking-controls .ea-btn{
        flex:1;
    }

    .ea-review-sections{
        grid-template-columns:1fr;
    }

    .ea-final-review{
        margin:10px auto;
        padding:23px 15px;
    }

    .ea-exam-actions{
        min-height:58px;

        padding:8px 12px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width:520px){

    .ea-exam-kicker{
        display:none;
    }

    .ea-exam-brand strong{
        max-width:165px;
    }

    .ea-exam-time span{
        display:none;
    }

    .ea-exit-button{
        min-height:31px;

        padding:5px 8px;

        font-size:9px;
    }

    .ea-stage-heading h2{
        font-size:18px;
    }

    .ea-section-navigator .ea-question-grid{
        grid-template-columns:repeat(5,1fr);
    }

    .ea-demo-chart{
        gap:10px;

        padding-right:12px;
        padding-left:12px;
    }

    .ea-demo-chart div{
        width:28px;
    }

    .ea-speaking-controls{
        flex-direction:column;
    }

    .ea-action-center{
        display:none;
    }
}


/* ==========================================================
   PHASE 2B.4
   IELTS VISUAL POLISH V1
   ========================================================== */


/* ---------- Top bar refinement ---------- */

.ea-exam-topbar{
    border-bottom-color:#d7e3ea;

    box-shadow:
        0 1px 0 rgba(23,32,51,.02),
        0 4px 14px rgba(23,32,51,.025);
}

.ea-exam-brand strong{
    letter-spacing:-.015em;
}

.ea-mode-badge{
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.45);
}

.ea-save-state{
    transition:
        border-color .18s ease,
        background .18s ease;
}


/* ---------- Chevron states ---------- */

.ea-step{
    transition:
        filter .18s ease,
        opacity .18s ease;
}

.ea-step-completed{
    --ea-step-bg:#e8f7f0;
    --ea-step-color:#137653;
}

.ea-step-completed .ea-step-number{
    background:#fff;

    box-shadow:
        0 0 0 1px rgba(22,132,91,.10);
}

.ea-step-current{
    --ea-step-bg:var(--adp-cyan);
    --ea-step-color:#fff;

    filter:
        drop-shadow(
            0 2px 2px rgba(0,189,221,.13)
        );
}

.ea-step-current .ea-step-label{
    font-weight:700;
}

.ea-step-upcoming{
    --ea-step-bg:#fff3de;
    --ea-step-color:#9b5d07;
}

.ea-step-locked{
    --ea-step-bg:#edf2f6;
    --ea-step-color:#97a5b5;

    opacity:.88;
}


/* ---------- Stage card polish ---------- */

.ea-stage-meta{
    border-color:#d6e3ea;

    box-shadow:
        0 3px 12px rgba(23,32,51,.025);
}

.ea-listening-audio{
    border-color:#d6e3ea;

    box-shadow:
        0 8px 24px rgba(23,32,51,.045);
}

.ea-audio-play{
    transition:
        transform .14s ease,
        background .14s ease;
}

.ea-audio-play:hover{
    background:#253149;
}

.ea-audio-play:active{
    transform:translateY(1px);
}


/* ---------- Question card ---------- */

.ea-exam-question-card{
    border-color:#d6e3ea;

    box-shadow:
        0 10px 28px rgba(23,32,51,.045);
}

.ea-question-toolbar{
    background:#fbfdff;
}

.ea-question-body h3{
    letter-spacing:-.02em;
}


/* ---------- Answers ---------- */

.ea-answer-list label{
    position:relative;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease,
        transform .12s ease;
}

.ea-answer-list label:hover{
    border-color:#9fd6df;

    background:#fbfeff;
}

.ea-answer-list label:has(input:checked){
    border-color:var(--adp-cyan);

    background:#effbfd;

    box-shadow:
        inset 3px 0 0 var(--adp-cyan),
        0 0 0 1px rgba(0,189,221,.04);
}

.ea-answer-list label:active{
    transform:translateY(1px);
}


/* ---------- Mark for review ---------- */

.ea-mark-review{
    transition:
        color .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.ea-mark-review:hover{
    border-color:#e7bf82;

    background:#fffaf1;
    color:#935a08;
}

.ea-mark-review.is-marked{
    border-color:#efc47f;

    background:#fff2dc;
    color:#925705;
}


/* ---------- Navigator ---------- */

.ea-section-navigator{
    border-color:#d6e3ea;

    box-shadow:
        0 12px 32px rgba(23,32,51,.055);
}

.ea-navigator-title{
    padding-top:15px;
    padding-bottom:8px;
}

.ea-question-dot{
    transition:
        border-color .14s ease,
        background .14s ease,
        color .14s ease,
        transform .12s ease;
}

.ea-question-dot:hover{
    transform:translateY(-1px);

    border-color:#b7cbd6;
}

.ea-question-dot.is-current{
    border-color:var(--adp-cyan);

    background:var(--adp-cyan);
    color:#fff;

    box-shadow:
        0 3px 9px rgba(0,189,221,.18);
}

.ea-question-dot.is-answered{
    border-color:#b6dfce;

    background:#e8f7f0;
    color:#137653;
}

.ea-question-dot.is-review{
    border-color:#efc579;

    background:#fff2d9;
    color:#945903;
}

.ea-question-dot.is-unanswered{
    border-color:#d7e3ea;

    background:#fff;
    color:#64748b;
}


/* Navigator legend */

.ea-navigator-state-legend{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px 10px;

    padding:
        3px
        15px
        14px;

    color:var(--adp-muted);

    font-size:8px;
}

.ea-navigator-state-legend span{
    display:flex;
    align-items:center;
    gap:6px;

    white-space:nowrap;
}

.ea-navigator-state-legend i{
    width:9px;
    height:9px;

    flex:0 0 9px;

    display:block;

    border:1px solid var(--adp-line);
    border-radius:3px;
}

.ea-navigator-state-legend i.is-current{
    border-color:var(--adp-cyan);

    background:var(--adp-cyan);
}

.ea-navigator-state-legend i.is-answered{
    border-color:#abdac6;

    background:var(--ea-green);
}

.ea-navigator-state-legend i.is-review{
    border-color:#eab865;

    background:var(--adp-orange);
}

.ea-navigator-state-legend i.is-unanswered{
    border-color:#cad8e0;

    background:#fff;
}


/* ---------- Navigator summary ---------- */

.ea-navigator-mini-summary{
    background:#fbfdfe;
}

.ea-navigator-mini-summary strong{
    font-weight:700;
}


/* ---------- Fixed footer ---------- */

.ea-exam-actions{
    border-top-color:#d5e1e8;

    box-shadow:
        0 -5px 20px rgba(23,32,51,.05);
}

.ea-btn-primary{
    box-shadow:
        0 4px 11px rgba(252,144,18,.16);

    transition:
        background .15s ease,
        transform .12s ease,
        box-shadow .15s ease;
}

.ea-btn-primary:hover:not(:disabled){
    background:#ee8310;

    box-shadow:
        0 5px 14px rgba(252,144,18,.22);
}

.ea-btn-primary:active:not(:disabled){
    transform:translateY(1px);
}

.ea-btn-secondary{
    transition:
        border-color .15s ease,
        background .15s ease;
}

.ea-btn-secondary:hover:not(:disabled){
    border-color:#b9ccd7;

    background:#f8fbfc;
}


/* ---------- Reading ---------- */

.ea-reading-split{
    border-color:#d6e3ea;

    box-shadow:
        0 10px 30px rgba(23,32,51,.045);
}

.ea-reading-scroll{
    scrollbar-width:thin;
    scrollbar-color:#bacbd5 transparent;
}

.ea-reading-question-scroll{
    scrollbar-width:thin;
    scrollbar-color:#bacbd5 transparent;
}


/* ---------- Writing ---------- */

.ea-writing-layout{
    border-color:#d6e3ea;

    box-shadow:
        0 10px 30px rgba(23,32,51,.045);
}

.ea-writing-editor:focus{
    box-shadow:
        inset 0 0 0 2px rgba(0,189,221,.10);
}


/* ---------- Speaking ---------- */

.ea-speaking-cue-card,
.ea-speaking-recorder{
    border-color:#d6e3ea;

    box-shadow:
        0 10px 30px rgba(23,32,51,.045);
}


/* ---------- Responsive legend ---------- */

@media (max-width:800px){

    .ea-navigator-state-legend{
        grid-template-columns:repeat(4,auto);

        justify-content:start;

        overflow-x:auto;

        padding-bottom:11px;
    }

    .ea-section-navigator{
        box-shadow:none;
    }
}



/* ==========================================================
   PHASE 2B.4.1
   PERSISTENT ANSWER STATE
   ========================================================== */

.ea-answer-list label:has(input:checked){
    border-color:var(--adp-cyan) !important;

    background:#edfafd !important;

    box-shadow:
        inset 4px 0 0 var(--adp-cyan),
        0 0 0 1px rgba(0,189,221,.05) !important;
}

.ea-answer-list label:has(input:checked) span{
    color:var(--adp-ink);
    font-weight:700;
}

.ea-answer-list input:checked{
    accent-color:var(--adp-cyan);
}



/* ==========================================================
   PHASE 2B.5
   READING QA HARDENING
   ========================================================== */

.ea-reading-split{
    min-height:610px;
}

.ea-reading-passage,
.ea-reading-questions{
    background:#fff;
}

.ea-reading-passage{
    position:relative;
}

.ea-reading-scroll{
    scroll-behavior:smooth;
}

.ea-reading-question-scroll{
    scroll-behavior:smooth;
}

.ea-reading-scroll::-webkit-scrollbar,
.ea-reading-question-scroll::-webkit-scrollbar{
    width:8px;
}

.ea-reading-scroll::-webkit-scrollbar-thumb,
.ea-reading-question-scroll::-webkit-scrollbar-thumb{
    border:2px solid transparent;
    border-radius:999px;

    background:#bacbd5;
    background-clip:padding-box;
}

.ea-reading-scroll::-webkit-scrollbar-track,
.ea-reading-question-scroll::-webkit-scrollbar-track{
    background:transparent;
}

.ea-reading-passage .ea-pane-toolbar,
.ea-reading-questions .ea-pane-toolbar{
    position:sticky;
    top:0;
    z-index:4;
}

.ea-reading-question-scroll .ea-answer-list{
    margin-top:18px;
}

.ea-inline-question-nav{
    position:sticky;
    bottom:-1px;

    padding-top:14px;
    padding-bottom:8px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0),
            #fff 22%
        );
}

.ea-inline-question-nav .ea-question-dot{
    min-height:34px;
    aspect-ratio:auto;
}

.ea-reading-question-scroll > p{
    min-height:72px;
}

.ea-reading-question-scroll > p::before{
    content:"Statement";
    display:block;

    margin-bottom:5px;

    color:var(--adp-cyan);

    font-size:9px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.06em;
}

.ea-reading-questions .ea-mark-review.is-marked{
    border-color:#efc47f;

    background:#fff2dc;
}

@media (max-width:1000px){

    .ea-reading-split{
        min-height:0;
    }

    .ea-reading-scroll,
    .ea-reading-question-scroll{
        height:430px;
    }

}



/* ==========================================================
   PHASE 2B.5.1
   BROWSER TTS + VOICE SELECTOR
   ========================================================== */

.ea-listening-audio{
    grid-template-columns:
        40px
        minmax(0,1fr)
        auto;
}

.ea-audio-controls{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
}

.ea-voice-selector{
    display:flex;
    align-items:center;
    gap:5px;

    padding:4px;

    border:1px solid var(--adp-line);
    border-radius:9px;

    background:#f8fbfc;
}

.ea-voice-selector > span{
    margin:0 3px 0 4px;

    color:var(--adp-muted);

    font-size:8px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.05em;
}

.ea-voice-selector label{
    position:relative;

    margin:0;

    cursor:pointer;
}

.ea-voice-selector input{
    position:absolute;

    width:1px;
    height:1px;

    opacity:0;
    pointer-events:none;
}

.ea-voice-selector label span{
    min-height:27px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:4px 8px;

    border-radius:6px;

    color:var(--adp-muted);

    font-size:9px;
    font-weight:700;

    transition:
        background .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.ea-voice-selector label:hover span{
    color:var(--adp-ink);
}

.ea-voice-selector input:checked + span{
    background:#fff;
    color:#087b8e;

    box-shadow:
        0 1px 5px rgba(23,32,51,.09);
}


/* listening speech progress */

.ea-audio-track span{
    transition:
        width .25s linear;
}


/* Responsive */

@media (max-width:800px){

    .ea-audio-controls{
        grid-column:1 / -1;

        width:100%;

        justify-content:space-between;
    }

    .ea-voice-selector{
        flex:1;
    }

    .ea-audio-play{
        min-width:82px;
    }

}

@media (max-width:520px){

    .ea-audio-controls{
        flex-direction:column;
        align-items:stretch;
    }

    .ea-voice-selector{
        justify-content:center;
    }

    .ea-audio-play{
        width:100%;
    }

}



/* ==========================================================
   PHASE 2B.5.2
   VOICE AVAILABILITY + NEXT QUESTION
   ========================================================== */

.ea-audio-controls{
    flex-wrap:wrap;
}

.ea-voice-status{
    flex-basis:100%;

    min-height:13px;

    display:block;

    margin-top:-3px;

    color:var(--adp-muted);

    font-size:8px;

    text-align:right;
}

.ea-voice-selector label.is-unavailable{
    opacity:.42;

    cursor:not-allowed;
}

.ea-voice-selector label.is-unavailable span{
    cursor:not-allowed;
}

.ea-audio-play{
    white-space:nowrap;
}

@media (max-width:800px){

    .ea-voice-status{
        text-align:left;
    }

}



/* ==========================================================
   EXAM ATLAS
   TTS RUNTIME REPAIR V019 V3
   ========================================================== */

.ea-voice-selector label.is-unavailable{
    opacity:.45;
    cursor:not-allowed;
}

.ea-voice-selector label.is-unavailable span{
    cursor:not-allowed;
}

.ea-voice-status{
    line-height:1.4;
}

