:root{--emt-blue:#0c3d6b;--emt-blue2:#155d98;--emt-red:#b31f2b;--emt-bg:#f4f7fb;--emt-border:#d7e1ed;--emt-text:#142033;--emt-muted:#64748b;--emt-green:#15803d;--emt-orange:#b45309}
*{box-sizing:border-box}.emt-result-body{margin:0;background:var(--emt-bg);font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--emt-text)}.emt-wrap{max-width:1160px;margin:28px auto;padding:0 16px;color:var(--emt-text);font-family:Inter,Segoe UI,Arial,sans-serif}.emt-grid{display:grid;gap:18px}.emt-auth-grid{grid-template-columns:1.1fr .9fr}.emt-card{background:#fff;border:1px solid var(--emt-border);border-radius:16px;padding:22px;box-shadow:0 8px 24px rgba(15,23,42,.06);margin-bottom:18px}.emt-card h3{margin-top:0;color:var(--emt-blue);font-size:24px}.emt-card label{display:block;font-weight:700;margin:13px 0}.emt-card input,.emt-card select{width:100%;margin-top:6px;padding:12px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:15px}.emt-btn{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;border:1px solid var(--emt-blue);border-radius:9px;padding:10px 15px;background:#fff;color:var(--emt-blue)!important;font-weight:800;cursor:pointer}.emt-primary{background:var(--emt-blue)!important;color:#fff!important}.emt-small{padding:7px 11px;font-size:13px}.emt-card form .emt-primary{width:100%;margin-top:8px}.emt-muted,.emt-meta{color:var(--emt-muted);font-size:13px}.emt-divider{text-align:center;border-top:1px solid var(--emt-border);margin:18px 0;line-height:0}.emt-divider span{background:#fff;padding:0 10px;color:var(--emt-muted)}.emt-notice{padding:13px 15px;border-radius:10px;margin:12px 0}.emt-info{background:#eef6ff;border:1px solid #bfdbfe}.emt-danger{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.emt-message{margin-top:10px;font-weight:700}.emt-message.error{color:#b91c1c}.emt-message.success{color:#166534}.emt-security{margin-top:20px;padding:14px;border-radius:10px;background:var(--emt-bg);font-size:13px}
.emt-pro-brand{position:relative;display:grid;grid-template-columns:130px 1fr 130px;align-items:center;gap:20px;min-height:190px;padding:18px 26px;margin-bottom:14px;border-radius:20px;overflow:hidden;background:linear-gradient(120deg,#082f55,#0d4b82 58%,#0b3762);box-shadow:0 14px 34px rgba(12,61,107,.22);color:#fff}.emt-pro-brand:after{content:"E";position:absolute;right:31%;top:-65px;font-size:280px;font-weight:900;color:rgba(255,255,255,.055);transform:rotate(-8deg);pointer-events:none}.emt-teacher{position:relative;z-index:2;text-align:center}.emt-teacher img{width:108px;height:108px;object-fit:cover;object-position:center 24%;border-radius:50%;border:4px solid rgba(255,255,255,.95);box-shadow:0 5px 16px rgba(0,0,0,.25);background:#fff}.emt-teacher span{display:block;margin-top:7px;color:#fff;font-size:13px;font-weight:800}.emt-pro-center{position:relative;z-index:2;text-align:center}.emt-logo-box{display:inline-flex;align-items:center;justify-content:center;width:min(440px,100%);height:76px;padding:7px 18px;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.12)}.emt-logo-box img{max-width:100%;max-height:62px;object-fit:contain}.emt-pro-title{margin-top:10px;font-weight:900;font-size:18px;letter-spacing:.035em;color:#fff}.emt-pro-sub{margin-top:4px;color:#dbeafe;font-size:13px;font-weight:700}.emt-student-welcome{margin-top:10px;color:#fff!important;font-size:25px;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.22)}
.emt-dashboard-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid var(--emt-border);border-radius:13px;padding:12px 16px;margin-bottom:18px;box-shadow:0 5px 15px rgba(15,23,42,.05)}.emt-dashboard-bar span{color:var(--emt-muted)}.emt-section-head{display:flex;justify-content:space-between;gap:12px}.emt-section-head h3{margin-bottom:3px}.emt-section-head p{margin:0 0 12px;color:var(--emt-muted)}.emt-test-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px;background:#f8fbff;border:1px solid #dce8f5;border-radius:12px;margin-bottom:10px}.emt-test-tools input{width:min(320px,100%);margin:0}.emt-cat-chips,.emt-review-tools{display:flex;gap:7px;flex-wrap:wrap}.emt-chip{border:1px solid #b9cbe0;background:#fff;color:var(--emt-blue);font-weight:800;padding:8px 12px;border-radius:999px;cursor:pointer}.emt-chip.active{background:var(--emt-blue);color:#fff;border-color:var(--emt-blue)}.emt-test-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 4px;border-bottom:1px solid #edf2f7}.emt-test-row:last-child{border-bottom:0}.emt-test-row.emt-newest{margin:4px -8px;padding:16px 12px;border:1px solid #b8d6f0;border-radius:12px;background:#f2f8ff}.emt-test-info>strong{font-size:16px}.emt-desc{font-size:13px;color:#475569;margin-top:5px}.emt-category-label{font-weight:800;color:#315f89}.emt-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-weight:800;font-size:11px}.emt-badge.success,.emt-badge.correct{background:#dcfce7;color:#166534}.emt-badge.incorrect{background:#fee2e2;color:#991b1b}.emt-badge.unattempted,.emt-badge.muted{background:#e2e8f0;color:#475569}.emt-badge.newest{margin-right:7px;background:#dbeafe;color:#1d4ed8}.emt-table-wrap{overflow:auto}.emt-table{width:100%;border-collapse:collapse;min-width:720px}.emt-table th,.emt-table td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left}.emt-table th{background:#f8fafc;color:var(--emt-blue)}.emt-empty{padding:18px;text-align:center;color:var(--emt-muted)}
.emt-result-summary{background:#fff;border:1px solid var(--emt-border);border-radius:16px;padding:22px;margin-bottom:16px;text-align:center}.emt-result-summary h1{color:var(--emt-blue);margin:0 0 15px}.emt-score-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:15px 0}.emt-score-grid>div{padding:13px;border:1px solid var(--emt-border);border-radius:12px;background:#f8fbff}.emt-score-grid b{display:block;font-size:22px;color:var(--emt-blue)}.emt-score-grid span{font-size:12px;color:var(--emt-muted)}.emt-review-tools{position:sticky;top:8px;z-index:20;background:#fff;border:1px solid var(--emt-border);border-radius:13px;padding:10px;margin:14px 0;box-shadow:0 5px 15px rgba(15,23,42,.06)}.emt-review-q{background:#fff;border:1px solid var(--emt-border);border-left:5px solid #94a3b8;border-radius:12px;padding:18px;margin:12px 0}.emt-review-q.status-correct{border-left-color:#16a34a}.emt-review-q.status-incorrect{border-left-color:#dc2626}.emt-review-q.status-unattempted{border-left-color:#94a3b8}.emt-review-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.emt-review-question{font-weight:800;font-size:16px;line-height:1.55;margin:8px 0}.emt-review-context{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:13px;margin:10px 0;line-height:1.6}.emt-review-context table,.emt-review-question table{width:100%;border-collapse:collapse}.emt-review-context td,.emt-review-context th,.emt-review-question td,.emt-review-question th{border:1px solid #cbd5e1;padding:7px}.emt-review-options{display:grid;gap:7px;margin:12px 0}.emt-review-option{padding:10px 12px;border:1px solid #d8e1ec;border-radius:9px;background:#fff}.emt-review-option.is-correct{border-color:#22c55e;background:#f0fdf4}.emt-review-option.is-user-wrong{border-color:#ef4444;background:#fef2f2}.emt-answer-line{padding:10px;border-radius:8px;background:#f8fafc;margin-top:10px}.emt-explanation{margin-top:9px;padding:11px 13px;background:#eff6ff;border-left:4px solid #3b82f6;border-radius:8px;line-height:1.55}
@media(max-width:800px){.emt-auth-grid{grid-template-columns:1fr}.emt-pro-brand{grid-template-columns:78px 1fr 78px;gap:8px;padding:14px 9px;min-height:150px}.emt-teacher img{width:68px;height:68px;border-width:3px}.emt-teacher span{font-size:10px}.emt-logo-box{height:56px;padding:5px 8px}.emt-logo-box img{max-height:45px}.emt-pro-title{font-size:13px}.emt-pro-sub{font-size:11px}.emt-student-welcome{font-size:19px}.emt-dashboard-bar,.emt-test-row{align-items:flex-start;flex-direction:column}.emt-test-tools{display:block}.emt-cat-chips{margin-top:9px}.emt-score-grid{grid-template-columns:repeat(2,1fr)}}

.emt-notice-stack{margin:0 0 18px}.emt-student-announcement{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;margin:10px 0;border:2px solid #f59e0b;border-radius:13px;background:#fffbeb;color:#7c2d12;box-shadow:0 6px 18px rgba(180,83,9,.10)}.emt-student-announcement strong{display:block;font-size:16px;color:#92400e;margin-bottom:3px}.emt-notice-icon{font-size:22px;line-height:1}.emt-blink-notice{animation:emtNoticePulse 1.35s ease-in-out infinite}@keyframes emtNoticePulse{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.08);transform:scale(1)}50%{box-shadow:0 0 0 5px rgba(245,158,11,.16);transform:scale(1.003)}}
.emt-dashboard-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:13px;background:#f8fbff;border:1px solid #dce8f5;border-radius:12px;margin-bottom:10px}.emt-filter-field{min-width:220px}.emt-filter-field.emt-grow{flex:1}.emt-filter-field label{display:block;margin:0 0 5px;font-size:12px;font-weight:800;color:var(--emt-blue)}.emt-filter-field input,.emt-filter-field select{width:100%;margin:0;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.emt-category-panel{padding:12px 13px;border:1px solid #dce8f5;border-radius:12px;background:#fff;margin-bottom:10px}.emt-category-title{font-size:12px;font-weight:900;color:var(--emt-blue);margin-bottom:8px;text-transform:uppercase;letter-spacing:.04em}.emt-class-label{font-weight:800;color:#7c3aed}.emt-badge.featured{margin-right:7px;background:#fef3c7;color:#92400e;border:1px solid #f59e0b}.emt-history-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.emt-history-head h3{margin-bottom:4px}.emt-history-panel{margin-top:16px;padding-top:14px;border-top:1px solid var(--emt-border)}.emt-history-panel[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.emt-blink-notice{animation:none}}

@media(max-width:800px){.emt-dashboard-filters,.emt-history-head{align-items:stretch;flex-direction:column}.emt-filter-field{min-width:0;width:100%}.emt-history-head .emt-btn{width:100%}.emt-student-announcement{padding:12px}}

/* v1.3.1 test browser */
.emt-view-switch{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}.emt-view-btn{border:1px solid #b9cbe0;background:#fff;color:var(--emt-blue);font-weight:800;padding:9px 13px;border-radius:10px;cursor:pointer}.emt-view-btn.active{background:var(--emt-blue);color:#fff;border-color:var(--emt-blue)}.emt-view-btn span{display:inline-block;min-width:22px;margin-left:5px;padding:2px 6px;border-radius:999px;background:rgba(148,163,184,.18);font-size:11px}.emt-view-btn.active span{background:rgba(255,255,255,.18)}.emt-badge.completed{margin-right:7px;background:#dcfce7;color:#166534}.emt-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.emt-last-score{font-size:12px;color:#475569;margin-top:6px}.emt-empty[hidden]{display:none!important}

/* v1.4.0 Promo / Discount */
.emt-promo-row{display:flex;gap:8px;align-items:stretch}.emt-promo-row input{flex:1;min-width:0;text-transform:uppercase}.emt-promo-row .emt-btn{white-space:nowrap;margin:0}.emt-promo-summary{margin:10px 0 14px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.emt-promo-summary>div{display:flex;justify-content:space-between;gap:16px;padding:4px 0}.emt-promo-summary .emt-promo-payable{border-top:1px solid #bfdbfe;margin-top:5px;padding-top:9px;font-size:1.08em}.emt-promo-summary small{display:block;margin-top:7px;color:#166534;font-weight:700}@media(max-width:600px){.emt-promo-row{flex-direction:column}.emt-promo-row .emt-btn{width:100%}}

/* v1.5.0 Installment payments */
.emt-payment-mode-wrap{margin:14px 0;padding:14px;border:1px solid #cfe0f1;border-radius:13px;background:#f8fbff}.emt-field-title{font-weight:900;color:var(--emt-blue);margin-bottom:8px}.emt-radio-card{display:flex!important;gap:10px;align-items:flex-start!important;margin:8px 0!important;padding:11px 12px;border:1px solid #d6e2ef;border-radius:10px;background:#fff;cursor:pointer}.emt-radio-card input{width:auto!important;margin:3px 0 0!important}.emt-radio-card span{display:block}.emt-radio-card strong,.emt-radio-card small{display:block}.emt-radio-card small{margin-top:2px;color:var(--emt-muted);font-weight:500}.emt-installment-preview{margin-top:11px;padding:12px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff}.emt-inst-preview-title{display:flex;justify-content:space-between;gap:10px;color:var(--emt-blue);margin-bottom:9px}.emt-inst-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px}.emt-inst-preview-grid>div{padding:9px;border:1px solid #d6e5f5;border-radius:9px;background:#fff}.emt-inst-preview-grid b,.emt-inst-preview-grid small{display:block}.emt-inst-preview-grid small{color:var(--emt-muted);margin-top:3px}.emt-installment-preview p{margin:9px 0 0;font-size:12px;color:#334155}.emt-installment-stack{margin:0 0 18px}.emt-installment-card{border-color:#bfdbfe}.emt-installment-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.emt-installment-head h3{margin:0 0 4px}.emt-installment-head p{margin:0}.emt-installment-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;margin-top:15px}.emt-inst-step{padding:11px;border:1px solid #d8e1ec;border-radius:10px;background:#f8fafc}.emt-inst-step strong,.emt-inst-step span,.emt-inst-step small{display:block}.emt-inst-step span{font-weight:800;margin:3px 0}.emt-inst-step small{color:var(--emt-muted)}.emt-inst-step.status-paid,.emt-inst-step.status-waived{border-color:#86efac;background:#f0fdf4}.emt-inst-step.status-pending{border-color:#fcd34d;background:#fffbeb}.emt-payment-alert{border-color:#f59e0b}.emt-payment-overdue{border-color:#ef4444!important;background:#fff1f2!important;color:#991b1b!important}.emt-payment-overdue strong{color:#991b1b!important}.emt-pay-installment[disabled]{opacity:.65;cursor:wait}
@media(max-width:800px){.emt-installment-head{align-items:stretch;flex-direction:column}.emt-installment-head .emt-btn{width:100%}.emt-inst-preview-title{flex-direction:column}}
