.mgm-app {
  --mgm-plum:#1f344d;
  --mgm-wine:#276d96;
  --mgm-gold:#f0b84c;
  --mgm-paper:#ffffff;
  --mgm-cream:#edf2f6;
  --mgm-ink:#17212d;
  --mgm-muted:#5f6b78;
  direction:rtl;
  width:100%;
  min-height:100vh;
  color:var(--mgm-ink);
  background:var(--mgm-cream);
  font-family:Arial,"Heebo","Assistant",sans-serif;
  line-height:1.5;
  isolation:isolate;
}
.mgm-standalone-page{margin:0!important;padding:0!important;min-height:100vh;background:#edf2f6!important}
.mgm-standalone-page #mgm-simulator-page{width:100%;min-height:100vh;margin:0;padding:0}
.mgm-standalone-page #wpadminbar{display:none!important}
.mgm-app *{box-sizing:border-box}
.mgm-app button,.mgm-app textarea,.mgm-app input{font:inherit}
.mgm-app button{cursor:pointer}
.mgm-app button:focus-visible,.mgm-app textarea:focus-visible,.mgm-app input:focus-visible{outline:3px solid rgba(43,121,166,.42);outline-offset:3px}
.mgm-home{min-height:100vh;padding:32px;display:grid;place-items:center;text-align:center;background:linear-gradient(145deg,#e8eef3 0%,#f6f8fa 52%,#e6edf3 100%)}
.mgm-home-shell{width:min(1050px,100%);overflow:hidden;background:#fff;border:1px solid #cbd5df;box-shadow:0 24px 70px rgba(31,52,77,.16)}
.mgm-homebar{min-height:64px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#dbe5ed;background:#24364d;border-bottom:4px solid #2b79a8;font-size:14px;font-weight:700}
.mgm-home-content{padding:clamp(48px,7vw,82px) clamp(24px,6vw,72px) 40px}
.mgm-setup,.mgm-results{width:min(1080px,calc(100% - 32px));margin:0 auto;padding:58px 24px 72px}
.mgm-brand{direction:ltr;color:#fff;font-size:22px;font-weight:900;letter-spacing:-.04em}
.mgm-brand span{color:#f2c15e}
.mgm-kicker{margin:0 0 12px;color:#2b79a8;font-size:13px;font-weight:900;letter-spacing:.08em}
.mgm-home h1,.mgm-setup h2,.mgm-results h2{margin:0;color:var(--mgm-plum);font-size:clamp(36px,6vw,66px);line-height:1.05;letter-spacing:-.04em}
.mgm-lead{max-width:720px;margin:22px auto 36px;color:var(--mgm-muted);font-size:20px;line-height:1.65}
.mgm-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:850px;margin:0 auto 34px}
.mgm-summary-grid div{padding:21px 14px;background:#f5f7f9;border:1px solid #d4dde5;border-radius:6px}
.mgm-summary-grid strong,.mgm-summary-grid span{display:block}
.mgm-summary-grid strong{color:var(--mgm-wine);font-size:22px}
.mgm-summary-grid span{margin-top:5px;color:var(--mgm-muted);font-size:14px}
.mgm-main-button{min-height:54px;padding:0 30px;color:#fff;background:#276f9a;border:1px solid #1e5e85;border-radius:4px;font-weight:900;box-shadow:0 6px 16px rgba(39,111,154,.2)}
.mgm-main-button:hover{background:#205f87;transform:translateY(-1px)}
.mgm-main-button:disabled{opacity:.42;cursor:not-allowed;transform:none}
.mgm-disclaimer{max-width:700px;margin:30px auto 0;padding-top:20px;color:#7b858f;border-top:1px solid #e2e7eb;font-size:13px}
.mgm-access-screen{min-height:100vh;padding:24px;display:grid;place-items:center;color:#17212d;background:#edf2f6;font-family:Arial,"Heebo","Assistant",sans-serif}.mgm-access-screen>div{width:min(520px,100%);padding:48px 34px;background:#fff;border:1px solid #cbd5df;text-align:center;box-shadow:0 20px 60px rgba(31,52,77,.14)}.mgm-access-screen h2{margin:0 0 12px;color:#1f344d;font-size:32px}.mgm-access-screen p{margin:0 0 24px;color:#5f6b78;font-size:18px}.mgm-access-screen a{display:inline-block;padding:13px 24px;color:#fff;background:#276f9a;border-radius:4px;text-decoration:none;font-weight:800}
.mgm-login-screen{background:linear-gradient(145deg,#e4ebf1,#f7f9fb 55%,#e7eef4)}
.mgm-login-screen>.mgm-login-card{width:min(460px,100%);padding:0 0 34px;overflow:hidden;border-radius:8px}
.mgm-login-card:before{content:"";display:block;height:7px;background:#2b79a8}
.mgm-login-brand{margin:34px 0 2px;direction:ltr;color:#24364d;font-size:24px;font-weight:900;letter-spacing:-.04em}.mgm-login-brand span{color:#c28a25}
.mgm-login-eyebrow{margin:0 0 24px!important;color:#2b79a8!important;font-size:12px!important;font-weight:900;letter-spacing:.08em}
.mgm-login-card h2{margin-bottom:8px}.mgm-login-card>p:not(.mgm-login-eyebrow){margin:0 auto 24px;padding:0 28px;font-size:16px}
.mgm-login-form{padding:0 34px;display:grid;gap:17px;text-align:right}.mgm-login-form label>span{display:block;margin-bottom:6px;color:#344556;font-size:14px;font-weight:800}.mgm-login-form input[type=text],.mgm-login-form input[type=password]{width:100%;min-height:48px;padding:8px 12px;color:#17212d;background:#fff;border:1px solid #aebbc7;border-radius:4px;font-size:17px}.mgm-login-form input:focus{border-color:#2b79a8;box-shadow:0 0 0 3px rgba(43,121,168,.14);outline:0}.mgm-login-form .mgm-remember{display:flex;align-items:center;gap:8px;color:#5f6b78;font-size:14px}.mgm-login-form .mgm-remember input{width:18px;height:18px;accent-color:#276f9a}.mgm-login-form button{min-height:50px;color:#fff;background:#276f9a;border:1px solid #1e5e85;border-radius:4px;font-weight:900}.mgm-login-form button:hover{background:#205f87}.mgm-login-error{margin:0 34px 20px;padding:11px 13px;color:#8b1e2d;background:#fff1f2;border:1px solid #efbdc5;border-radius:4px;text-align:right;font-size:14px}
.mgm-setup{position:relative;max-width:960px}
.mgm-setup h2{font-size:clamp(32px,5vw,50px)}
.mgm-back{position:absolute;top:34px;left:24px;padding:8px 14px;color:var(--mgm-wine);background:transparent;border:1px solid #d4c1c9;border-radius:10px}
.mgm-instruction-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin:32px 0}
.mgm-instruction-grid article{padding:20px;background:var(--mgm-paper);border:1px solid #e3d6d7;border-radius:16px}
.mgm-instruction-grid b,.mgm-instruction-grid span{display:block}
.mgm-instruction-grid b{margin-bottom:5px;color:var(--mgm-wine);font-size:18px}
.mgm-instruction-grid span{color:var(--mgm-muted)}
.mgm-writing-choice{display:flex;flex-wrap:wrap;gap:20px;margin:0 0 22px;padding:18px 20px;background:#f0e7eb;border:0;border-radius:14px}
.mgm-writing-choice legend{padding:0 7px;color:var(--mgm-plum);font-weight:800}
.mgm-writing-choice label,.mgm-ready{display:flex;align-items:center;gap:9px}
.mgm-writing-choice input,.mgm-ready input{width:19px;height:19px;accent-color:var(--mgm-wine)}
.mgm-ready{margin:22px 0;font-weight:700}
body.mgm-exam-active{overflow:hidden}
body.mgm-exam-active .mgm-app{position:fixed;inset:0;z-index:2147483000;min-height:100vh;background:#20242c}
.mgm-app:fullscreen{width:100%;height:100%;background:#20242c}
.mgm-exam-env{min-height:100vh;padding:18px;display:grid;place-items:center;background:radial-gradient(circle at 18% 8%,rgba(82,101,141,.25),transparent 28rem),#20242c}
.mgm-monitor{width:min(1120px,calc(100vw - 36px),calc((100vh - 36px)*1.3333));aspect-ratio:4/3;min-height:620px;display:grid;grid-template-rows:44px minmax(0,1fr) 66px;overflow:hidden;color:#1c2028;background:#d2d2d2;border:1px solid #0e1117;box-shadow:0 25px 75px rgba(0,0,0,.46)}
.mgm-windowbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;color:#f5f7fb;background:#30394f;border-bottom:3px solid #20283a;font-size:14px;font-weight:800}
.mgm-windowbar span:last-child{direction:ltr;color:#cbd1df;font-size:11px;letter-spacing:.07em}
.mgm-canvas{min-height:0;overflow:auto;background:#d3d3d3}
.mgm-canvas-title{min-height:82px;padding:0 clamp(28px,5vw,68px);display:flex;align-items:center;justify-content:space-between;gap:20px;color:#171a22;background:#adb5c9;border-bottom:1px solid #919aad;font-size:clamp(25px,3vw,38px);font-weight:900}
.mgm-instructions{width:min(760px,84%);margin:0 auto;padding:clamp(48px,7vh,84px) 18px 36px}
.mgm-instructions>span{color:#526075;font-size:14px;font-weight:800}
.mgm-instructions h1{margin:8px 0 26px;font-size:clamp(34px,5vw,54px);line-height:1.1}
.mgm-instructions p{font-size:clamp(18px,2vw,23px);line-height:1.7}
.mgm-time-note{margin-top:34px;padding:17px 20px;color:#17334a;background:#c4d0da;border-right:5px solid #2c78a4;font-size:19px;font-weight:800}
.mgm-system-footer{min-height:66px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#e9edf5;background:#151b27;border-top:3px solid #48536a}
.mgm-key-help{color:#c4cad6;font-size:13px}
.mgm-app kbd{min-width:27px;padding:3px 7px;display:inline-block;direction:ltr;color:#eef2f7;background:#323c50;border:1px solid #69758b;border-bottom-width:2px;border-radius:3px;font-family:Arial,sans-serif;font-size:.84em;text-align:center}
.mgm-system-button{min-height:43px;padding:7px 18px;color:#fff;background:#2679a7;border:2px solid #9cc4dc;border-radius:2px;font-weight:900}
.mgm-system-button:hover{background:#1f6c96}
.mgm-system-button:disabled{opacity:.38;cursor:not-allowed}
.mgm-system-button kbd{margin-right:8px;background:rgba(0,0,0,.18);border-color:rgba(255,255,255,.35)}
.mgm-clock{min-width:137px;padding:8px 13px;display:grid;place-items:center;color:#f5f6f8;background:#1e2636;border:3px solid #e5e8ed;outline:1px solid #667085;font-variant-numeric:tabular-nums;transition:opacity .15s}
.mgm-clock span{color:#cbd1dc;font-size:11px}.mgm-clock strong{direction:ltr;font-size:23px;letter-spacing:.06em}.mgm-clock .mgm-warning{color:#ffd36e}.mgm-clock-hidden{opacity:0;pointer-events:none}
.mgm-writing-layout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:24px;padding:30px clamp(28px,5vw,68px)}
.mgm-prompt,.mgm-editor,.mgm-paper-mode{background:#e8e8e8;border:1px solid #a6aab0}
.mgm-prompt{padding:23px}.mgm-prompt h2{margin:0 0 13px;font-size:22px}.mgm-prompt p{margin:0;font-size:17px;line-height:1.7}
.mgm-editor{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:390px;max-height:500px}
.mgm-writing-tools{display:flex;flex-wrap:wrap;gap:7px;padding:8px 10px;border-bottom:1px solid #a6aab0}
.mgm-writing-tools button{padding:6px 10px;color:#1c2028;background:#f9f9f9;border:1px solid #8d939d;border-radius:2px;font-size:14px}
.mgm-writing-tools button:hover{background:#e2ebf0;border-color:#4c6077}
.mgm-writing-field{overflow:auto;color:#15181d;background:#f7f7f7;cursor:text}
.mgm-writing-input{min-height:calc(1.7em + 36px);padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px;line-height:1.7}
.mgm-writing-input:focus{outline:0}
.mgm-writing-field:focus-within{box-shadow:inset 0 0 0 2px #4c6077}
.mgm-writing-input:empty::before{content:"התחילו לכתוב כאן...";color:#626872;pointer-events:none}
.mgm-writing-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 15px;padding:7px 12px;color:#4d535c;background:#d7d7d7;border-top:1px solid #a6aab0;font-size:13px}
.mgm-writing-meta [data-role="line-count"]{font-weight:800;font-variant-numeric:tabular-nums}
.mgm-writing-meta [data-role="writing-status"]:empty{display:none}
.mgm-paper-mode{min-height:300px;padding:44px 28px;display:grid;place-content:center;text-align:center}.mgm-paper-mode b{font-size:28px}.mgm-paper-mode p{max-width:360px;font-size:18px}
.mgm-context-body{padding:24px clamp(28px,5vw,68px) 40px}.mgm-context-note{margin:0 0 18px;color:#4f5660;font-size:15px}.mgm-passage{padding:22px 26px;color:#181b20;background:#e9e9e9;border:1px solid #a9adb3;font-size:17px;line-height:1.75}.mgm-passage p{margin:0 0 14px}.mgm-passage p:last-child{margin-bottom:0}
.mgm-data-card{padding:20px 24px;background:#e9e9e9;border:1px solid #a9adb3}.mgm-data-card h3{margin:0 0 16px;text-align:center;font-size:21px}.mgm-data-card table{width:100%;border-collapse:collapse;background:#f7f7f7}.mgm-data-card th,.mgm-data-card td{padding:12px;border:1px solid #777;text-align:center}.mgm-data-card thead th{color:#fff;background:#39445b}.mgm-data-card p{margin:12px 0 0;font-size:14px}
.mgm-question-body{padding:30px clamp(30px,6vw,82px) 42px}.mgm-question-body>h1{width:min(820px,100%);margin:0 0 15px;font-size:clamp(21px,2.4vw,30px);line-height:1.55}.mgm-subtext{margin:0 0 20px;font-size:20px}.mgm-answers{width:min(820px,100%);display:grid;gap:10px}.mgm-answers button{min-height:54px;padding:10px 14px;display:flex;align-items:center;gap:13px;color:#191d24;background:#ededed;border:2px solid #8d939d;border-radius:2px;text-align:right;font-size:clamp(17px,1.7vw,21px)}.mgm-answers button:hover{background:#e4ebef;border-color:#4c6077}.mgm-answers button.mgm-selected{background:#c7dce8;border:3px solid #2678a5}.mgm-answers button b{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;background:#f9f9f9;border:1px solid #717987}.mgm-answers button.mgm-selected b{color:#fff;background:#2678a5;border-color:#195f85}
.mgm-context-drawer{width:min(860px,100%);margin-bottom:22px;background:#e9e9e9;border:1px solid #9ea3ab}.mgm-context-drawer summary{padding:11px 14px;color:#fff;background:#4b566d;font-weight:800;cursor:pointer}.mgm-context-drawer .mgm-passage,.mgm-context-drawer .mgm-data-card{max-height:250px;overflow:auto;border:0}
.mgm-break-screen{min-height:100%;display:grid;place-items:center;padding:30px;text-align:center;color:#fff;background:radial-gradient(circle at 50% 36%,rgba(151,49,59,.22),transparent 20rem),linear-gradient(145deg,#42151b,#681b25 55%,#351219)}
.mgm-break-screen>div{width:min(650px,90%)}.mgm-break-screen span{color:#e8b6b8;font-weight:800}.mgm-break-screen h1{margin:12px 0 14px;font-size:clamp(42px,7vw,76px)}.mgm-break-screen p{color:#f0dfe0;font-size:clamp(17px,2vw,22px)}.mgm-break-screen strong{width:min(310px,80%);margin:32px auto 0;padding:17px;display:block;direction:ltr;color:#22252b;background:#d7d7d7;border:5px solid #e8e8e8;outline:2px solid #30394f;font-size:clamp(38px,6vw,64px);font-variant-numeric:tabular-nums}
.mgm-modal{position:fixed;inset:0;z-index:2147483647;padding:20px;display:grid;place-items:center;background:rgba(7,10,15,.72)}.mgm-modal>div{width:min(470px,100%);padding:30px;color:#2b2529;background:#fff;border-radius:18px;text-align:center;box-shadow:0 25px 70px rgba(0,0,0,.35)}.mgm-modal h2{margin:0 0 10px;font-size:28px}.mgm-modal p{margin:0 0 24px;color:#686065;line-height:1.6}.mgm-modal button{min-height:44px;margin:5px;padding:0 16px;border:1px solid #c6bbc0;border-radius:9px;font-weight:800}.mgm-modal .mgm-danger{color:#fff;background:#9d3540;border-color:#9d3540}
.mgm-results{text-align:center}.mgm-results h2{font-size:clamp(32px,5vw,50px)}.mgm-result-ring{width:180px;height:180px;margin:28px auto;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(var(--mgm-gold) var(--value),#eadfe3 0)}.mgm-result-ring:before{content:"";position:absolute;width:137px;height:137px;border-radius:50%;background:var(--mgm-paper)}.mgm-result-ring strong{position:relative;direction:ltr;color:var(--mgm-plum);font-size:42px}.mgm-result-domains{max-width:720px;margin:0 auto 22px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.mgm-result-domains article{padding:22px;background:var(--mgm-paper);border:1px solid #e3d6d7;border-radius:18px}.mgm-result-domains span,.mgm-result-domains b,.mgm-result-domains small{display:block}.mgm-result-domains b{margin:8px 0;color:var(--mgm-wine);font-size:30px;direction:ltr}.mgm-result-domains small{color:var(--mgm-muted)}.mgm-result-note{max-width:680px;margin:0 auto 25px;padding:15px;background:#fff5db;border:1px solid #efdba8;border-radius:12px}
.mgm-save-status{margin:0 auto 18px;color:#167343;font-size:14px;font-weight:800}.mgm-save-status.is-error{color:#a12b36}
.mgm-video-actions{max-width:760px;margin:0 auto 26px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.mgm-video-actions button{min-height:92px;padding:16px 18px;display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;align-items:center;color:#fff;background:#233d59;border:1px solid #172d44;border-radius:6px;text-align:right}.mgm-video-actions button:hover{background:#1c5275}.mgm-video-actions button>span{width:40px;height:40px;display:grid;grid-row:1/3;place-items:center;color:#20384f;background:#f0b84c;border-radius:50%;direction:ltr}.mgm-video-actions b{font-size:18px}.mgm-video-actions small{color:#cbd9e4}.mgm-table-scroll{max-width:100%;overflow-x:auto}
.mgm-question-stats{max-width:940px;margin:0 auto 28px;padding:22px;background:#fff;border:1px solid #d4dde5;text-align:right}.mgm-stats-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.mgm-stats-heading h3{margin:0;color:#1f344d;font-size:24px}.mgm-stats-heading span{color:#5f6b78;font-weight:700}.mgm-question-stats table{width:100%;border-collapse:collapse}.mgm-question-stats th,.mgm-question-stats td{padding:10px 12px;border-bottom:1px solid #e2e7eb;text-align:right}.mgm-question-stats th{color:#344556;background:#eef2f5}.mgm-answer-status{display:inline-block;min-width:76px;padding:4px 8px;border-radius:3px;text-align:center;font-weight:800}.mgm-answer-status.is-correct{color:#0b6138;background:#dff3e8}.mgm-answer-status.is-wrong{color:#8b1e2d;background:#fde7ea}.mgm-video-page{min-height:100vh;padding:46px clamp(18px,5vw,70px);background:#edf2f6}.mgm-video-heading{max-width:1050px;margin:0 auto 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.mgm-video-heading h2{margin:0;color:#1f344d;font-size:clamp(30px,4vw,48px)}.mgm-secondary-button{min-height:48px;padding:0 22px;color:#245e84;background:#fff;border:1px solid #8ea6b7;border-radius:4px;font-weight:800}.mgm-secondary-button:hover{background:#e7eef3}.mgm-video-player,.mgm-video-empty{max-width:1050px;margin:0 auto;background:#17212d;border:8px solid #263b52;box-shadow:0 18px 50px rgba(31,52,77,.2)}.mgm-video-player{aspect-ratio:16/9}.mgm-video-player iframe{width:100%;height:100%;display:block;border:0}.mgm-video-empty{min-height:480px;display:grid;place-content:center;color:#fff;text-align:center}.mgm-video-empty>span{width:84px;height:84px;margin:0 auto 18px;display:grid;place-items:center;color:#20384f;background:#f0b84c;border-radius:50%;font-size:34px;direction:ltr}.mgm-video-empty h3{margin:0 0 8px;font-size:28px}.mgm-video-empty p{margin:0;color:#cbd9e4}
@media(max-width:820px),(max-height:700px){body.mgm-exam-active{overflow:auto}.mgm-exam-env{padding:0;display:block}.mgm-monitor{width:100%;min-height:100vh;aspect-ratio:auto;border:0;grid-template-rows:42px minmax(calc(100vh - 104px),auto) 62px}.mgm-windowbar{padding:0 12px;font-size:12px}.mgm-windowbar span:last-child{display:none}.mgm-canvas-title{min-height:68px;padding:8px 16px;font-size:23px}.mgm-clock{min-width:123px}.mgm-writing-layout{grid-template-columns:1fr;padding:18px}.mgm-editor{min-height:370px}.mgm-question-body,.mgm-context-body{padding:20px 15px 32px}.mgm-system-footer{position:sticky;bottom:0;padding:8px 10px}.mgm-key-help{font-size:11px}.mgm-system-button{padding:7px 11px}}
@media(max-width:680px){.mgm-home{padding:0;place-items:stretch}.mgm-home-shell{min-height:100vh;border:0}.mgm-homebar{padding:0 18px}.mgm-home-content{padding:42px 16px}.mgm-setup,.mgm-results{width:100%;padding:38px 16px 55px}.mgm-summary-grid,.mgm-instruction-grid,.mgm-result-domains,.mgm-video-actions{grid-template-columns:1fr 1fr}.mgm-summary-grid div{padding:15px 8px}.mgm-lead{font-size:18px}.mgm-back{position:static;margin-bottom:18px}.mgm-question-screen .mgm-canvas-title{display:grid;grid-template-columns:1fr auto;gap:8px}.mgm-question-screen .mgm-clock{grid-column:1/-1;justify-self:start}.mgm-writing-screen .mgm-canvas-title{font-size:20px}.mgm-stats-heading,.mgm-video-heading{align-items:flex-start;flex-direction:column}.mgm-video-empty{min-height:300px}}
@media(max-width:430px){.mgm-summary-grid,.mgm-instruction-grid,.mgm-video-actions{grid-template-columns:1fr}.mgm-system-footer{gap:8px}.mgm-key-help{max-width:42%}.mgm-system-button{font-size:13px}.mgm-answers button{padding:9px 10px;font-size:16px}.mgm-result-domains{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.mgm-app *{scroll-behavior:auto!important;transition:none!important}}

/* Ordered seasonal simulations: the existing 1.2.0 visual system is retained above. */
.mgm-simulation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 24px;text-align:right}
.mgm-simulation-card{padding:18px 14px;color:#24364d;background:#f5f7f9;border:2px solid #d4dde5;border-radius:6px;text-align:right}
.mgm-simulation-card strong,.mgm-simulation-card span{display:block}.mgm-simulation-card strong{font-size:17px}.mgm-simulation-card span{margin-top:7px;color:#5f6b78;font-size:13px}
.mgm-simulation-card.is-selected{border-color:#276f9a;background:#e3eff6;box-shadow:inset 0 0 0 1px #276f9a}.mgm-simulation-card:hover{border-color:#276f9a}
.mgm-readiness-note{max-width:850px;margin:0 auto 16px;padding:12px 16px;color:#79520e;background:#fff5db;border:1px solid #e4d1a5;border-radius:4px;font-size:14px;line-height:1.6}
.mgm-media-frame{width:100%;overflow:auto;background:white;border:1px solid #a9adb3;overscroll-behavior:contain}.mgm-media-frame img{display:block;width:100%;height:auto;max-width:none}
.mgm-question-image{max-width:900px}.mgm-question-body .mgm-question-image{margin-bottom:10px}.mgm-media-zoom{margin:8px 0 16px;padding:7px 12px;color:#245e84;background:#eef3f7;border:1px solid #9eafbd;border-radius:3px;font-size:14px}
.mgm-image-zoomed .mgm-media-frame img{width:max(100%,1000px)}.mgm-media-status{color:#8b1e2d;font-size:16px}.mgm-media-status p{margin:8px 0}
.mgm-number-answers{grid-template-columns:repeat(4,minmax(0,1fr));max-width:900px;gap:8px}.mgm-number-answers button{min-height:56px;justify-content:center;padding:8px}.mgm-number-answers button span{font-size:15px}.mgm-number-answers button:disabled{opacity:.5;cursor:wait}
.mgm-source-context{max-height:340px;overflow:auto;padding:10px;background:#e9e9e9}.mgm-source-context .mgm-media-frame{border:0}.mgm-writing-screen .mgm-prompt .mgm-media-frame{border:0}
.mgm-topic-group{max-width:940px;margin:0 auto 24px}.mgm-topic-group h3{margin:0 0 10px;text-align:start;font-size:17px}.mgm-topic-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mgm-topic-results article{padding:15px 8px;background:#f5f7f9;border:1px solid #d4dde5;border-radius:4px}.mgm-topic-results span,.mgm-topic-results strong,.mgm-topic-results small{display:block}.mgm-topic-results strong{margin:8px 0;color:#245e84;font-size:24px}.mgm-topic-results span{font-size:14px;font-weight:700}.mgm-topic-results small{color:#5f6b78}
.mgm-question-stats table{min-width:760px}.mgm-key-status{display:block;margin-top:4px;color:#8a5b08;font-size:12px;white-space:nowrap}.mgm-review-link{padding:8px 10px;color:#245e84;background:#edf3f8;border:1px solid #a4b7c7;border-radius:3px;font-size:14px;white-space:nowrap}
.mgm-review-page{min-height:100vh;padding:36px clamp(16px,4vw,60px) 60px;background:#edf2f6}.mgm-review-page .mgm-video-heading{max-width:1380px}.mgm-review-page .mgm-video-heading p:not(.mgm-kicker){margin:12px 0 0;color:#5f6b78}
.mgm-review-navigation{max-width:1380px;margin:0 auto 18px;display:flex;justify-content:space-between;align-items:center;gap:14px}.mgm-review-navigation button{min-height:42px;padding:8px 16px;color:#245e84;background:#fff;border:1px solid #9fb2c1;border-radius:4px}.mgm-review-navigation button:disabled{opacity:.4;cursor:default}.mgm-review-navigation label{display:flex;align-items:center;gap:10px;font-size:14px}.mgm-review-navigation select{max-width:380px;min-height:42px;padding:6px 10px;color:#24364d;background:#fff;border:1px solid #9fb2c1;font:inherit}
.mgm-review-summary{max-width:1380px;margin:0 auto 22px;padding:18px 22px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;background:#fff;border:1px solid #d4dde5;border-right:5px solid #2678a5}.mgm-review-summary>strong{color:#0b6138}.mgm-review-summary .mgm-temporary-answer{color:#8a5b08}.mgm-review-summary>span{color:#526071}
.mgm-review-layout{max-width:1380px;margin:auto;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.9fr);align-items:start;gap:24px}.mgm-review-question{min-width:0;padding:18px;background:#fff;border:1px solid #d4dde5}.mgm-review-video-section{min-width:0;position:sticky;top:20px}.mgm-review-video-section h3{margin:0 0 12px;color:#24364d;font-size:23px}.mgm-review-video{aspect-ratio:16/9;background:#17212d;border:6px solid #263b52;box-shadow:0 12px 35px rgba(31,52,77,.15);overflow:hidden}.mgm-review-video iframe,.mgm-review-video video{display:block;width:100%;height:100%;border:0}
.mgm-review-video-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;color:#fff;text-align:center}.mgm-review-video-empty>span{width:54px;height:54px;margin-bottom:15px;display:grid;place-items:center;color:#233d59;background:#f0b84c;border-radius:50%;font-size:23px;direction:ltr}.mgm-review-video-empty strong{font-size:18px}.mgm-review-video-empty p{margin:8px 0 0;color:#bdccd9;font-size:14px}
.mgm-review-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.mgm-review-option{min-height:58px;padding:10px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #cbd5df;background:#f4f6f8;font-size:20px;font-weight:800;text-align:center}.mgm-review-option small{font-size:11px;font-weight:600}.mgm-review-option.is-correct{color:#0b6138;border-color:#72ac8f;background:#e0f2e8}.mgm-review-option.is-wrong{color:#8b1e2d;border-color:#d49da4;background:#fdebed}.mgm-review-option.is-temporary{color:#805509;border-color:#d9bf85;background:#fff4da}
@media(max-width:1000px){.mgm-simulation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mgm-review-layout{grid-template-columns:1fr}.mgm-review-video-section{position:static}.mgm-review-video{max-width:850px}}
@media(max-width:680px){.mgm-number-answers{grid-template-columns:repeat(2,minmax(0,1fr))}.mgm-review-page{padding:24px 12px 40px}.mgm-review-navigation{flex-wrap:wrap}.mgm-review-navigation label{order:-1;width:100%;flex-direction:column;align-items:stretch}.mgm-review-navigation select{width:100%;max-width:none}.mgm-review-navigation button{flex:1}.mgm-review-summary{padding:14px;gap:12px;flex-direction:column;align-items:flex-start}.mgm-review-question{padding:10px}.mgm-topic-results{grid-template-columns:repeat(2,minmax(0,1fr))}.mgm-question-screen .mgm-canvas-title{font-size:21px}.mgm-simulation-card strong{font-size:15px}.mgm-review-video-empty strong{font-size:16px}}
/* Native question text and mathematical notation, preserving the established exam frame. */
.mgm-native-content{direction:rtl;color:#191d24;font-size:19px;line-height:1.75;overflow-wrap:break-word;text-align:right;user-select:text}
.mgm-native-content p{margin:0 0 .85em}.mgm-native-content p:last-child{margin-bottom:0}.mgm-native-content h3,.mgm-native-content h4{line-height:1.5;margin:.8em 0 .5em}.mgm-native-content ul,.mgm-native-content ol{padding-inline-start:1.5em}.mgm-native-content li{margin:.35em 0}
.mgm-native-stem{width:min(900px,100%);margin:0 0 24px;font-size:clamp(20px,1.8vw,23px);line-height:1.75}.mgm-native-stem>p:first-child{margin-top:0}.mgm-native-content strong,.mgm-native-content b{font-weight:800}
.mgm-native-content span[dir=ltr],.mgm-native-content bdi[dir=ltr],.mgm-native-option-copy span[dir=ltr],.mgm-native-option-copy bdi[dir=ltr]{direction:ltr;unicode-bidi:isolate;display:inline-block;text-align:left}
.mgm-native-content math,.mgm-native-option-copy math{direction:ltr;unicode-bidi:isolate;font-size:1.12em;vertical-align:middle}.mgm-native-content math[display=block],.mgm-native-option-copy math[display=block]{display:block;max-width:100%;padding:8px 0;overflow-x:auto;text-align:center}
.mgm-native-content sup,.mgm-native-content sub,.mgm-native-option-copy sup,.mgm-native-option-copy sub{font-size:.73em;line-height:0}.mgm-math{direction:ltr;unicode-bidi:isolate;display:inline-block;white-space:nowrap}.mgm-frac{display:inline-flex;flex-direction:column;vertical-align:middle;align-items:center;margin:0 .15em;line-height:1.25}.mgm-frac>span:first-child{padding:0 .15em .08em;border-bottom:1px solid currentColor}.mgm-frac>span:last-child{padding:.08em .15em 0}
.mgm-text-answers{width:min(900px,100%);grid-template-columns:1fr;gap:12px}.mgm-text-answers button{min-height:64px;padding:14px 18px;align-items:flex-start;gap:16px;font-size:20px;line-height:1.65}.mgm-text-answers button>b{margin-top:1px;font-size:18px}.mgm-text-answers button:disabled{opacity:.55;cursor:wait}.mgm-native-option-copy{display:block;min-width:0;flex:1;font-size:inherit;font-weight:400;line-height:1.65;user-select:text}.mgm-native-option-copy p{margin:0 0 .45em}.mgm-native-option-copy p:last-child{margin-bottom:0}
.mgm-native-figure{width:100%;max-width:760px;margin:20px auto;break-inside:avoid}.mgm-native-figure .mgm-media-frame{border:0;background:transparent}.mgm-native-figure img{width:auto;max-width:100%;height:auto;max-height:560px;margin:0 auto;object-fit:contain}.mgm-native-figure .mgm-media-zoom{margin:8px 0 0}.mgm-native-figure.mgm-image-zoomed{max-width:none}.mgm-native-figure.mgm-image-zoomed img{width:auto;max-width:none;max-height:none}.mgm-native-option-copy .mgm-native-figure{max-width:400px;margin:4px 0}.mgm-native-option-copy .mgm-native-figure img{max-height:220px}
.mgm-source-context{max-height:390px;padding:18px 24px;background:#f5f6f7}.mgm-source-context .mgm-native-content{font-size:18px}.mgm-native-passage{position:relative;padding:24px 36px;background:#f5f6f7;border:1px solid #a9adb3;line-height:1.8}.mgm-source-context .mgm-native-passage{border:0;padding:0 24px 0 10px}.mgm-native-passage .mgm-reading-line,.mgm-native-passage [data-line]{position:relative;margin:0 0 .2em}.mgm-native-passage [data-line]::before{content:attr(data-line);position:absolute;left:-31px;top:0;min-width:22px;color:#67717d;text-align:left;font-size:12px;font-weight:500;direction:ltr;user-select:none}.mgm-line-number{float:left;min-width:24px;margin:0 14px 0 -26px;color:#67717d;font-size:12px;direction:ltr;text-align:left;user-select:none}.mgm-native-essay{font-size:18px;line-height:1.8}.mgm-writing-screen .mgm-prompt .mgm-native-essay p{margin:0 0 15px;font-size:18px;line-height:1.8}.mgm-native-data{padding:18px 24px;background:#f5f6f7;border:1px solid #a9adb3}.mgm-source-context .mgm-native-data{border:0;padding:0}
.mgm-native-content table{width:100%;margin:16px 0;border-collapse:collapse;font-size:.95em}.mgm-native-content th,.mgm-native-content td{padding:8px 10px;border:1px solid #9ea3ab;vertical-align:top}.mgm-native-content th{background:#e7edf2}
.mgm-review-question .mgm-native-stem{font-size:20px}.mgm-native-review-options{grid-template-columns:1fr;gap:10px;margin-top:22px}.mgm-native-review-options .mgm-review-option{min-height:62px;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:13px;padding:13px;text-align:right;font-size:18px;font-weight:400}.mgm-option-number{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;border:1px solid #a1aab5;background:#fff;font-size:17px}.mgm-option-labels{display:flex;flex-direction:column;align-items:flex-end;gap:5px;max-width:110px;flex:0 0 auto}.mgm-option-labels small{padding:3px 5px;font-size:11px;font-weight:700;line-height:1.3}.mgm-native-review-options .mgm-native-option-copy{font-size:18px}.mgm-review-question .mgm-native-figure{max-width:100%}
@media(max-width:680px){.mgm-native-content{font-size:18px}.mgm-native-stem,.mgm-review-question .mgm-native-stem{font-size:20px}.mgm-text-answers button{padding:12px;gap:11px;font-size:18px}.mgm-native-passage{padding:20px 24px 20px 34px}.mgm-source-context{padding:16px 20px;max-height:340px}.mgm-source-context .mgm-native-content{font-size:17px}.mgm-source-context .mgm-native-passage{padding:0 15px 0 10px}.mgm-native-passage [data-line]::before{left:-27px}.mgm-native-data{padding:16px}.mgm-native-review-options .mgm-review-option{padding:11px;gap:9px;flex-wrap:wrap}.mgm-option-labels{width:100%;max-width:none;margin-inline-start:39px;align-items:flex-start;flex-direction:row}.mgm-native-review-options .mgm-native-option-copy{font-size:18px}.mgm-native-figure img{max-height:420px}}
.mgm-native-passage [data-line]:has(.mgm-line-number)::before{content:none}.mgm-source-instructions .mgm-source-context{max-height:240px}.mgm-native-instructions{font-size:17px}

/* Reading paragraphs retain source line anchors; MathML stays full-size. */
.mgm-reading-paragraph+.mgm-reading-paragraph{margin-top:1.1em}.mgm-reading-paragraph:first-child{margin-top:0}.mgm-reading-paragraph:last-child{margin-bottom:0}.mgm-native-content math,.mgm-native-option-copy math{math-style:normal}.mgm-draft-warning{font-size:13px;line-height:1.4;color:#ffe9ad;max-width:55%;padding-inline:10px}


.mgm-home-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.mgm-staff-entry{display:inline-flex;align-items:center;min-height:38px;padding:5px 14px;border:1px solid #8ab9d1;border-radius:6px;color:#fff;text-decoration:none;font-weight:700}.mgm-staff-entry:hover,.mgm-staff-entry:focus-visible{color:#163d55;background:#e8f4fb}@media(max-width:640px){.mgm-home-actions{gap:8px}.mgm-home-actions>span{display:none}}

/* Reading passages keep each numbered source line intact and reserve a right gutter. */
.mgm-context-body:has(.mgm-native-passage),
.mgm-question-body:has(.mgm-native-passage){padding-inline:24px}
.mgm-context-drawer:has(.mgm-native-passage){width:100%;max-width:none}
.mgm-native-passage{width:100%;max-width:100%;min-width:0;padding:20px 16px;font-family:Arial,"Heebo","Assistant",sans-serif;font-size:18px;line-height:1.75;overflow:auto;overscroll-behavior-x:contain}
.mgm-source-context:has(.mgm-native-passage){padding:18px 14px;overflow:auto;overscroll-behavior:contain}
.mgm-source-context .mgm-native-passage{width:100%;max-width:none;padding:0;font-size:18px;overflow:visible}
.mgm-native-passage .mgm-reading-paragraph{width:max-content;min-width:100%;margin:0;padding:0;padding-inline-start:40px}
.mgm-native-passage .mgm-reading-paragraph+.mgm-reading-paragraph{margin-block-start:1.75em}
.mgm-native-passage .mgm-reading-paragraph>.mgm-reading-line{position:relative;margin:0;line-height:inherit;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-indent:0}
.mgm-native-passage .mgm-reading-line>.mgm-line-number{display:none}
.mgm-native-passage .mgm-reading-line[data-line]::before{content:none;position:absolute;left:auto;right:-35px;top:0;width:30px;min-width:30px;margin:0;color:#67717d;font-family:Arial,sans-serif;font-size:12px;font-weight:400;line-height:31.5px;direction:ltr;unicode-bidi:isolate;text-align:center;white-space:nowrap;user-select:none}
.mgm-native-passage .mgm-reading-line[data-line="1"]::before,
.mgm-native-passage .mgm-reading-line[data-line$="0"]::before,
.mgm-native-passage .mgm-reading-line[data-line$="5"]::before{content:"(" attr(data-line) ")"}
.mgm-review-layout:has(.mgm-native-passage){grid-template-columns:minmax(0,1fr)}
.mgm-review-layout:has(.mgm-native-passage) .mgm-review-video-section{position:static}
.mgm-review-layout:has(.mgm-native-passage) .mgm-review-video{max-width:850px}
@media(max-width:680px){.mgm-review-layout:has(.mgm-native-passage) .mgm-option-labels{width:calc(100% - 39px)}}

/* Computer-test instructions: a flat reading panel with a dedicated title band. */
.mgm-canvas:has(>.mgm-instructions.mgm-computer-instructions)>.mgm-canvas-title{min-height:132px;padding:22px clamp(24px,5vw,64px);font-size:clamp(28px,3.2vw,43px);line-height:1.3}
.mgm-instructions.mgm-computer-instructions{width:min(900px,100%);margin:0 auto;padding:32px clamp(24px,4vw,56px) 40px;text-align:right;color:#191d24}
.mgm-instructions.mgm-computer-instructions>span,.mgm-instructions.mgm-computer-instructions>h1{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mgm-computer-instructions p,.mgm-computer-instructions li{font-size:clamp(18px,1.7vw,22px);line-height:1.65}
.mgm-computer-instructions p{margin:0 0 18px}
.mgm-computer-instructions p:last-child{margin-bottom:0}
.mgm-computer-instructions ul{margin:20px 0;padding-inline-start:1.35em}
.mgm-computer-instructions li{padding-inline-start:.15em;margin:10px 0}
.mgm-computer-instructions li::marker{color:#177eae}
.mgm-instructions.mgm-computer-instructions .mgm-time-note{padding:0;margin-top:26px;color:#191d24;background:transparent;border:0;font-size:20px;font-weight:400;line-height:1.65}
.mgm-setup .mgm-computer-instructions{margin:28px 0;padding:26px clamp(20px,4vw,40px);background:#d3d3d3;border:1px solid #a6aab0;border-radius:0;color:#191d24}
@media(max-width:680px),(max-height:700px){.mgm-canvas:has(>.mgm-instructions.mgm-computer-instructions)>.mgm-canvas-title{min-height:104px;padding:18px 22px;font-size:27px}.mgm-instructions.mgm-computer-instructions{padding:26px 24px 34px}.mgm-computer-instructions p,.mgm-computer-instructions li{font-size:18px}.mgm-question-screen .mgm-canvas-title{grid-template-columns:1fr}}

/* Desktop geometry follows the observed reference: text above, drawing left, answers right. */
@media(min-width:821px){
  .mgm-question-screen:has(.mgm-geometry-layout)>.mgm-canvas-title{min-height:74px;padding-inline:24px;font-size:clamp(21px,2.2vw,27px)}
  .mgm-question-body.mgm-geometry-layout{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(0,.9fr);align-items:start;gap:12px 24px;padding:12px 28px 8px}
  .mgm-geometry-layout>.mgm-native-stem{order:1;grid-column:1/-1;min-width:0;width:100%;margin:0;font-size:20px;line-height:1.45}
  .mgm-geometry-layout>.mgm-native-stem p{margin:0 0 5px}
  .mgm-geometry-layout>.mgm-native-stem p:last-child{margin-bottom:0}
  .mgm-geometry-layout>.mgm-native-stem math[display=block]{padding-block:2px}
  .mgm-geometry-layout>.mgm-question-figures{order:3;grid-column:2;grid-row:auto;display:grid;align-content:start;justify-items:center;gap:12px;min-width:0;width:100%;padding:0}
  .mgm-geometry-layout>.mgm-text-answers{order:2;grid-column:1;grid-row:auto;min-width:0;width:100%;grid-template-columns:1fr;gap:9px;align-self:start}
  .mgm-geometry-layout>.mgm-context-drawer{order:0;grid-column:1/-1}
  .mgm-geometry-layout>.mgm-media-status{order:4;grid-column:1/-1}
  .mgm-geometry-layout>.mgm-media-status:empty{display:none}
  .mgm-question-figures>.mgm-stem-figure{width:100%;max-width:100%;margin:0}
  .mgm-question-figures>.mgm-stem-figure .mgm-media-frame{overflow:visible}
  .mgm-question-figures>.mgm-stem-figure img{width:auto;height:auto;max-width:100%;max-height:clamp(220px,calc(30vh + 4px),300px);object-fit:contain}
  .mgm-question-figures:has(>.mgm-stem-figure~.mgm-stem-figure)>.mgm-stem-figure img{max-height:clamp(110px,calc(25vh - 70px),180px)}
  .mgm-geometry-layout>.mgm-text-answers button{min-height:49px;padding:7px 12px;gap:12px;font-size:20px;line-height:1.45}
  .mgm-geometry-layout>.mgm-text-answers button>b{margin-top:0}
  .mgm-geometry-layout>.mgm-text-answers .mgm-native-option-copy{line-height:inherit}
  .mgm-geometry-layout>.mgm-text-answers .mgm-native-figure{max-width:100%;margin:0}
  .mgm-geometry-layout>.mgm-text-answers .mgm-native-figure img{max-height:180px;object-fit:contain}
  /* Graphical choices remain vertical on the right; this unobserved subtype uses a compact left copy/figure rail. */
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer)){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer))>.mgm-native-stem{grid-column:2;grid-row:1}
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer))>.mgm-question-figures{grid-column:2;grid-row:2}
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer))>.mgm-text-answers{grid-column:1;grid-row:1/span 2}
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer))>.mgm-text-answers .mgm-native-figure img{max-height:clamp(88px,calc(25vh - 92px),130px);object-fit:contain}
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer))>.mgm-text-answers button>b{font-size:20px}
  .mgm-geometry-layout:has(>.mgm-text-answers .mgm-native-figure):not(:has(>.mgm-context-drawer))>.mgm-question-figures>.mgm-stem-figure img{max-height:clamp(140px,calc(25vh - 40px),180px);object-fit:contain}
}

/* F12 hides immediately, including when browser animation frames are throttled. */
.mgm-clock.mgm-clock-hidden{transition:none}
/* Reading and shared charts: the complete question stays fixed; only its source scrolls. */
@media(min-width:821px){
  .mgm-chart-screen{display:flex;flex-direction:column;overflow:hidden}
  .mgm-chart-screen>.mgm-canvas-title{min-height:70px;flex:0 0 70px;padding-inline:24px;font-size:27px}
  .mgm-question-body.mgm-chart-layout{display:flex;flex-direction:column;flex:1;min-height:0;padding:10px 28px 12px;gap:10px;overflow:hidden}
  .mgm-chart-layout>.mgm-context-drawer{display:flex;flex-direction:column;flex:1;min-height:74px;width:100%;margin:0;overflow:hidden}
  .mgm-chart-layout>.mgm-context-drawer:not([open]){flex:0 0 auto;min-height:0}
  .mgm-chart-layout>.mgm-context-drawer>summary{flex:0 0 auto;padding:7px 14px}
  .mgm-chart-layout>.mgm-context-drawer::details-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
  .mgm-chart-layout>.mgm-context-drawer>.mgm-source-context{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:12px 20px;scrollbar-gutter:stable}
  .mgm-chart-layout>.mgm-context-drawer>.mgm-source-context:has(.mgm-native-passage){padding-inline:6px}
  .mgm-chart-layout .mgm-native-data .mgm-native-figure img{max-height:none}
  .mgm-chart-question{flex:0 0 auto;min-width:0}
  .mgm-chart-question>.mgm-native-stem{width:100%;margin:0 0 7px;font-size:18px;line-height:1.4}
  .mgm-chart-question>.mgm-native-stem p{margin:0 0 4px}
  .mgm-chart-question>.mgm-text-answers{width:100%;gap:6px}
  .mgm-chart-question>.mgm-text-answers button{min-height:38px;padding:3px 10px;gap:10px;font-size:17px;line-height:1.35}
  .mgm-chart-question>.mgm-text-answers button>b{margin-top:0}
  .mgm-chart-question .mgm-native-option-copy{line-height:inherit}
  .mgm-chart-question>.mgm-media-status:empty{display:none}
  .mgm-chart-question.mgm-geometry-layout{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(0,.9fr);gap:8px 24px}
  .mgm-chart-question.mgm-geometry-layout>.mgm-question-figures img{max-height:190px}
}

/* Visible keyboard focus without changing the question or passage content. */
.mgm-app button:focus-visible,.mgm-app summary:focus-visible,.mgm-app a:focus-visible{outline:3px solid #2678a5;outline-offset:3px}

/* Desktop questions without a shared passage/chart: compact spacing, same layout. */
@media(min-width:821px){
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout){padding:14px 28px 12px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-native-stem{width:100%;margin:0 0 12px;font-size:20px;line-height:1.45}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-native-stem p{margin:0 0 8px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-native-stem p:last-child{margin-bottom:0}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-text-answers{width:100%;gap:7px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-text-answers button{min-height:45px;padding:6px 12px;gap:12px;font-size:19px;line-height:1.4}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout) .mgm-native-option-copy{line-height:inherit}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body>.mgm-source-instructions{width:100%;margin-bottom:10px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body>.mgm-source-instructions>summary{padding:6px 12px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body>.mgm-media-status:empty{display:none}
}

/* Short desktop screens need slightly tighter type and vertical rhythm. */
@media(min-width:821px) and (max-height:800px){
  .mgm-question-screen:not(.mgm-chart-screen):has(>.mgm-question-body:not(.mgm-geometry-layout))>.mgm-canvas-title{min-height:74px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout){padding-block:8px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-native-stem{margin-bottom:10px;font-size:19px;line-height:1.35}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-native-stem p{margin-bottom:6px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-native-stem p:last-child{margin-bottom:0}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-text-answers{gap:5px}
  .mgm-question-screen:not(.mgm-chart-screen)>.mgm-question-body:not(.mgm-geometry-layout)>.mgm-text-answers button{min-height:40px;padding-block:4px;font-size:18px;line-height:1.3}
}

/* Keep all four shared diagrams above the question, at a readable smaller size.
   The original image and legend remain intact and keyboard-scrollable. */
@media(min-width:821px){
  .mgm-chart-layout .mgm-native-data .mgm-native-figure img{max-height:560px}
  .mgm-chart-layout .mgm-native-data .mgm-native-figure img[src$="autumn-c3-data-16-20.png"]{max-height:600px}
  .mgm-chart-layout .mgm-native-data .mgm-native-figure img[src$="summer-c5-data-16-20-02.png"]{max-height:500px}
  .mgm-chart-layout .mgm-native-data .mgm-native-figure img[src$="winter-c5-data-9-13-01.png"]{max-height:400px}
}

.mgm-saved-essay{margin:24px 0;padding:22px;background:#fff;border:1px solid #ccd9e2;text-align:right}.mgm-saved-essay pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8}.mgm-results>.mgm-secondary-button,.mgm-home-content>.mgm-secondary-button{margin:12px}.mgm-preview-note{padding:12px;background:#fff4cc;text-align:center}.mgm-modal[data-modal-kind="reset-review"]{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;background:#0008}.mgm-modal[data-modal-kind="reset-review"]>[role="dialog"]{background:white;color:#17354b;padding:30px;border-radius:12px;max-width:620px;margin:20px}.mgm-modal[data-modal-kind="reset-review"] button{display:block;margin:14px auto;padding:12px 22px}

/* Completed-simulation choice: opaque, readable dialog independent of page layout. */
.mgm-modal[data-modal-kind="saved-review-choice"]>[role="dialog"]{box-sizing:border-box;width:min(520px,100%);padding:32px;background:#fff;color:#17354b;border:1px solid #d4dfe7;border-radius:16px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.4)}
.mgm-modal[data-modal-kind="saved-review-choice"] h2{color:#17354b;font-size:26px;line-height:1.35;margin:0 0 16px}
.mgm-modal[data-modal-kind="saved-review-choice"] p{color:#344b5c;font-size:18px;line-height:1.6;margin:0 0 24px}
.mgm-modal[data-modal-kind="saved-review-choice"] button{display:block;box-sizing:border-box;width:100%;min-height:48px;margin:12px 0 0;padding:12px 20px;background:#f2f6f9;color:#17354b;border:1px solid #8da5b7;font-family:inherit;font-size:18px;line-height:1.4}
.mgm-modal[data-modal-kind="saved-review-choice"] [data-action="choice-view-review"]{background:#17638d;border-color:#17638d;color:#fff}
.mgm-modal[data-modal-kind="saved-review-choice"] button:focus-visible{outline:3px solid #197eb8;outline-offset:3px}
