.mdc-ex-nav{margin-bottom:16px}.mdc-ex{display:flex;flex-direction:column;gap:15px}.mdc-ex-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.mdc-ex-head h2,.mdc-ex-head h3{margin:0}.mdc-ex-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:15px}.mdc-ex-card{display:flex;flex-direction:column;gap:10px}.mdc-ex-card h3{margin:0;color:#16465d}.mdc-ex-card>small{color:#257c80;font-weight:700}.mdc-ex-meta{display:flex;gap:7px;flex-wrap:wrap}.mdc-ex-meta span{padding:5px 8px;background:#e4f1f2;border-radius:6px;color:#255968;font-size:12px;font-weight:700}.mdc-ex-bank{background:white;border:1px solid #d7e4eb;border-radius:10px;max-height:56vh;overflow:auto;padding:5px}.mdc-ex-row{display:flex;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #edf1f4}.mdc-ex-row>div:first-of-type{flex:1;min-width:0}.mdc-ex-row b,.mdc-ex-row small{display:block;overflow-wrap:anywhere}.mdc-ex-row small{font-size:12px;color:#648296;margin:3px 0}.mdc-ex-clock{position:sticky;top:65px;z-index:5;background:#143f53;color:white;border-radius:10px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.mdc-ex-clock h3{color:white;margin:0}.mdc-ex-clock small{color:#d7e6ee}.mdc-ex-clock>b{font-size:25px;font-variant-numeric:tabular-nums}.mdc-ex-jump{display:flex;flex-wrap:wrap;gap:6px}.mdc-ex-jump button{background:white;color:#28566e;border:1px solid #d1e0e7;border-radius:6px;width:35px;height:34px;cursor:pointer}.mdc-ex-jump button.done{background:#d3ede1;border-color:#65a78d}.mdc-ex-question{margin:12px 0;scroll-margin-top:145px}.mdc-ex-question h3{display:flex;justify-content:space-between;color:#164a60;margin:0 0 12px}.mdc-ex-question h3 small{font-size:12px;color:#6d8795}.mdc-ex-question p{line-height:1.6;overflow-wrap:anywhere}.mdc-ex-question>img{display:block;max-width:100%;max-height:340px;object-fit:contain;margin:12px auto}.mdc-ex-option{display:flex;gap:10px;align-items:flex-start;padding:12px;margin:8px 0;border:1px solid #dce6eb;border-radius:8px;background:#f8fbfc;cursor:pointer}.mdc-ex-option input{width:auto;margin-top:4px;accent-color:#12728b}.mdc-ex-option:has(input:checked){background:#e1f2f1;border-color:#68aeb1}.mdc-ex-result{text-align:center;padding:35px 20px}.mdc-ex-result strong{font-size:clamp(32px,6vw,58px);color:#18736b}.mdc-ex-analysis{display:grid;gap:8px}.mdc-ex-analysis>div{display:flex;align-items:center;gap:10px}.mdc-ex-analysis progress{flex:1;accent-color:#238276}.mdc-ex-analysis span{min-width:65px}.mdc-ex-analysis small{min-width:50px;text-align:right}@media(max-width:640px){.mdc-ex-row{flex-wrap:wrap}.mdc-ex-clock{top:58px}.mdc-ex-clock h3{font-size:15px}.mdc-ex-clock>b{font-size:20px}}
.mx-tf4{display:grid;gap:8px}.mx-tf4>div{display:grid;grid-template-columns:minmax(0,1fr) 80px 65px;gap:10px;align-items:center;padding:10px;border:1px solid #dce6eb;border-radius:8px}.mx-tf4 label{display:flex;align-items:center;gap:4px;white-space:nowrap}.mx-tf4 input{width:auto;accent-color:#12728b}.mx-inline-pic{display:inline-block;vertical-align:middle;max-width:100%;max-height:330px;object-fit:contain}.mdc-ex-question math,.mx-preview math{font-size:1.12em;vertical-align:middle}.mx-preview{margin:12px 0;overflow-wrap:anywhere}.mx-preview textarea{min-height:80px;width:100%}.mx-preview details{margin:8px 0}.mx-preview>div{line-height:1.65}.mdc-ex-question textarea{width:100%;min-height:150px}@media(max-width:550px){.mx-tf4>div{grid-template-columns:1fr 1fr}.mx-tf4>div>span{grid-column:1/-1}}

.mx-direct-form{display:flex;flex-direction:column;gap:14px}.mx-upload-zone{display:flex;flex-direction:column;gap:12px;padding:24px;border:2px dashed #a5c5cf;border-radius:12px;background:#f3f9fa}.mx-upload-zone b{color:#174b60;font-size:18px}.mx-upload-zone small{color:#526e7a}.mx-upload-zone input{max-width:100%}.mx-materials{margin-top:10px}.mx-materials>summary{font-weight:700;color:#23576d;cursor:pointer}.mx-materials[open]>summary{margin-bottom:14px}.mx-materials .action-row{margin:12px 0}.mx-preview textarea{overflow-wrap:anywhere;min-height:70px}

/* Study subjects use the same vertical layout as news. */
.mx-subject-layout{align-items:start}.mx-subject-layout>.mdc-ex{min-width:0}.mx-subject-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.mx-subject-heading h3{margin:0}.mx-subject-add{font-size:12px;padding:7px 10px;white-space:nowrap}.mx-subject-sidebar .mdc-news-cat b{min-width:0;overflow-wrap:anywhere;white-space:normal}.mx-subject-sidebar .mdc-news-category-edit{font-size:11px}.mx-subject-trash{margin-top:12px;font-size:12px}.mx-subject-trash summary{cursor:pointer;font-weight:700}.mx-subject-restore{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin:8px 0}.mx-subject-restore .btn{font-size:11px;padding:5px 8px}.mx-subject-list-head{background:#f6fafc;border:1px solid #d8e7ed;border-radius:12px;padding:12px 15px}.mx-subject-list-head h2{font-size:20px;color:#17465d}.mx-subject-layout .mdc-ex-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
@media(max-width:760px){.mx-subject-layout{grid-template-columns:minmax(0,1fr)!important}.mx-subject-sidebar .mdc-news-categories{display:flex!important;flex-direction:column;max-height:300px;overflow-y:auto;overflow-x:hidden}.mx-subject-sidebar .mdc-news-category-wrap{width:100%;flex:none}.mx-subject-sidebar .mdc-news-cat{width:100%}}

/* Group exam questions without changing attempt identifiers or scoring. */
.mdc-ex-jump.mx-part-jump{gap:12px;align-items:flex-start;margin:12px 0 16px}
.mx-jump-group{display:flex;flex-direction:column;gap:7px;padding:9px 11px;background:rgba(255,255,255,.96);border:1px solid #d2e4ec;border-radius:10px;max-width:100%}
.mx-jump-group>b{font-size:12px;color:#17475f}.mx-jump-group>div{display:flex;flex-wrap:wrap;gap:5px}
.mx-exam-part{margin:20px 0 28px}.mx-exam-part .mx-part-heading{background:#16475c;color:white!important;font-size:clamp(16px,2vw,20px);line-height:1.4;font-weight:750;margin:0 0 10px;padding:12px 16px;border-radius:10px;letter-spacing:0}
@media(max-width:640px){.mdc-ex-jump.mx-part-jump{gap:8px}.mx-jump-group{padding:7px 9px}.mx-exam-part .mx-part-heading{padding:10px 12px}.mx-exam-part{margin:16px 0 22px}}
