.intro{display:flex;justify-content:space-between;gap:18px;align-items:center;background:white;border:1px solid #dce4ed;border-radius:14px;padding:20px;margin:25px 0}.intro h2{margin:0 0 8px}.intro p{margin:0}.exam-card{background:#fff;border:1px solid #dce4ed;border-radius:14px;margin:20px 0;padding:24px;box-shadow:0 2px 10px #0c24400a}.exam-card h2{margin:0 0 8px;color:#173f67}.eyebrow{letter-spacing:.09em;font-size:.75rem;font-weight:700;text-transform:uppercase}.tag{display:inline-block;padding:4px 9px;background:#e9f3fb;color:#174c77;border-radius:6px;font-size:.8rem;font-weight:700;margin-bottom:10px}.subpart{border-top:1px solid #e6ebf0;padding:14px 0}.subpart label{display:block;margin:9px 0 6px;font-weight:650}.subpart input,.subpart select{max-width:440px;width:100%;padding:10px 12px;border:1px solid #a8b8c8;border-radius:8px;font-size:1rem;background:white;color:#182b42}.subpart input:focus{outline:2px solid #4986b9}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.feedback{margin:9px 0;font-weight:650}.good{color:#14744d}.bad{color:#a6422c}.solution{background:#f1f7fc;border:1px solid #b9d3e9;border-radius:10px;padding:16px;margin-top:14px}.solution[hidden]{display:none}.solution h3{margin-top:0}.graph-wrap{max-width:790px;margin:15px auto;border:1px solid #dce4ed;background:#fff;border-radius:10px;padding:10px}.graph-wrap svg{width:100%;height:auto;display:block}.note{color:#526578;font-size:.93rem}.footer-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:25px 0 40px}.math{overflow-x:auto}.small{font-size:.9rem}button{cursor:pointer}button:disabled{opacity:.6;cursor:default}@media(max-width:650px){.intro{flex-direction:column;align-items:stretch}.exam-card{padding:15px}}

/* Formatted mathematical answer fields */
.subpart math-field.answer-math{display:block;box-sizing:border-box;width:100%;max-width:540px;min-height:58px;padding:11px 14px;border:1.5px solid #a8b8c8;border-radius:10px;background:#fff;color:#182b42;font-size:1.25rem;--caret-color:#174c77;--selection-background-color:#d8eafb;box-shadow:0 2px 5px #142c4308}
.subpart math-field.answer-math:focus-within{outline:2px solid #4986b9;outline-offset:1px}

.math-entry{max-width:540px}.math-entry .answer-fallback{display:block;box-sizing:border-box;width:100%;max-width:540px;min-height:52px}.math-entry .math-toggle{margin-top:8px;font-size:.88rem;padding:7px 12px}.math-entry .math-toggle[hidden]{display:none}

/* MathLive is the primary answer editor. Plain text is an explicit fallback. */
.math-entry .answer-fallback[hidden]{display:none!important}
.math-entry math-field.answer-math{display:block;min-height:60px;cursor:text}
.math-entry math-field.answer-math:focus{border-color:#287db4;box-shadow:0 0 0 3px #d7eaf8}
