.exam-meta{display:block;color:var(--ui-muted);line-height:1.8;margin-top:3px}.exam-error{display:block;color:#ce6470}.exam-readiness{padding:16px 20px;border:1px solid #e3cba1;border-radius:14px;background:color-mix(in srgb,#b9812e 8%,var(--ui-surface));margin-bottom:18px;line-height:1.9}.exam-readiness.ready{border-color:#6bb398;background:color-mix(in srgb,#319879 7%,var(--ui-surface))}.exam-readiness span{display:block;color:var(--ui-muted)}.exam-readiness ul{padding-right:20px}.exam-readiness strong{font-size:17px}.exam-dialog-wide{width:min(940px,calc(100vw - 32px))}.exam-numbers{white-space:normal;min-width:200px;line-height:1.9}.exam-download{display:inline-block;border:1px solid var(--ui-border);padding:6px 12px;border-radius:10px}.exam-command{direction:ltr;text-align:left;width:100%;padding:12px;font:14px/1.8 monospace;background:var(--ui-bg)!important;border:1px solid var(--ui-border);border-radius:10px}.exam-readiness summary{cursor:pointer}#examsPanel .module-table select{min-width:100px;width:100%;max-width:350px}#examsPanel .module-toolbar label{display:flex;align-items:center;gap:8px}#examsPanel .module-bulkbar label{display:flex;gap:8px;align-items:center}#examsPanel .module-table td{vertical-align:middle}#examsPanel textarea{resize:vertical}#examDialog textarea{width:100%;padding:10px;border:1px solid var(--ui-border);border-radius:10px}#examDialog .module-form>.module-toolbar{grid-column:1/-1}.student-exams-main{padding-top:26px}.student-exam-card{padding:20px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;margin-bottom:16px}.student-exam-card summary{cursor:pointer;display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:18px;line-height:1.8}.student-exam-card summary small{font-size:14px}.exam-instance{margin-top:14px;border:1px solid var(--ui-border);border-radius:12px;padding:16px}.exam-instance .module-actions{margin-top:12px}.exam-free-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.exam-free-grid .student-exam-card{margin:0}.exam-instance-status{display:flex;gap:14px;flex-wrap:wrap;line-height:2}.exam-free-grid button,.exam-instance button{padding:10px 14px;border-radius:10px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);font:inherit}.exam-free-grid p{line-height:1.9}.exam-note{padding:14px;border-radius:12px;background:var(--ui-bg);line-height:1.9;color:var(--ui-muted)}@media(max-width:600px){.exam-free-grid{grid-template-columns:1fr}.student-exam-card summary{align-items:flex-start;flex-direction:column}.exam-dialog-wide{width:calc(100vw - 20px)}}

.exam-file-bulk{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0;padding:12px;background:#f4f7ff;border-radius:12px}.exam-file-bulk label{display:flex;align-items:center;gap:8px}.exam-file-bulk select{max-width:290px;padding:10px;border:1px solid #d7ddec;border-radius:9px}.exam-file-bulk small{color:#61718a}.module-actions{display:flex!important;gap:8px!important;flex-wrap:wrap}.module-tabbar{display:flex!important;gap:8px!important;flex-wrap:wrap}.module-table td:last-child{white-space:nowrap}.module-table td:last-child>button,.module-table td:last-child>a{margin:3px!important}.module-dialog-head button{min-width:34px;min-height:34px}

/* V37: final exam status always red, never generic primary */
#studentExams .exam-operation-grid button.is-finished,#studentExams .exam-operation-grid button.is-finished:disabled{background:#b91c1c!important;background-color:#b91c1c!important;color:#fff!important;border:1px solid #991b1b!important;opacity:1!important;box-shadow:none!important;cursor:default!important;-webkit-text-fill-color:#fff!important}
#studentExams .exam-operation-grid button.is-finished svg,#studentExams .exam-operation-grid button.is-finished span{color:#fff!important;opacity:1!important}
.student-exam-guide{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;margin:8px 0 12px;border:1px solid #0f766e;border-radius:12px;background:#f0fdfa!important;color:#115e59!important;font-weight:700;cursor:pointer}
/* iCivil v56: key XLSX wizard, independent from global CTA color scheme. */
#examDialog .kx56-box{border:1px solid #d8e0eb!important;background:#fff!important;color:#25344a!important;border-radius:14px;padding:16px;margin:0 0 12px;line-height:1.9}
#examDialog .kx56-box h3{font-size:16px;margin:0 0 8px;color:#23344c!important}
#examDialog .kx56-box p{color:#596879!important;margin:2px 0 12px}
#examDialog .kx56-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 0}
#examDialog .kx56-action{border:1px solid #bfcfdf!important;background:#f7fafc!important;color:#23445c!important;border-radius:10px!important;min-height:42px;padding:9px 14px;font:inherit;cursor:pointer}
#examDialog .kx56-action.kx56-main{background:#1e6359!important;border-color:#1e6359!important;color:#fff!important}
#examDialog .kx56-action:hover{filter:brightness(.96)}
#examDialog .kx56-action:focus-visible{outline:3px solid #6db7ac;outline-offset:2px}
#examDialog .kx56-upload{display:block!important;color:#263950!important;font-weight:600;max-width:100%}
#examDialog .kx56-upload input{display:block;width:100%;box-sizing:border-box;border:1px dashed #b2c6da;border-radius:10px;background:#f7fafc!important;color:#263950!important;padding:10px;margin-top:8px}
#examDialog .kx56-check{margin-top:12px;min-height:10px;color:#2e4d65}
#examDialog .kx56-error,#examDialog .kx56-success{border-radius:12px;padding:14px;background:#fff3f1!important;color:#80352b!important;border:1px solid #efc0b9}
#examDialog .kx56-success{background:#edf8f3!important;color:#1e5c4a!important;border-color:#98d2b7}
#examDialog .kx56-success p,#examDialog .kx56-error p{color:inherit!important}
#examDialog .kx56-topics{max-height:230px;overflow:auto;margin-top:10px}
#examDialog .kx56-box summary,#examDialog .kx56-legacy summary{cursor:pointer;font-weight:600;color:#23445c!important;padding:8px}
#examDialog .kx56-legacy{border:1px solid #d8e0eb;border-radius:12px;padding:12px;background:#f7fafc}
@media(max-width:600px){#examDialog .kx56-actions{flex-direction:column;align-items:stretch}#examDialog .kx56-action{width:100%}}
