
/* IlmBox Papers v21 Online Test Engine */
.ot-wrap{max-width:1200px;margin:0 auto;padding:34px 20px 70px}
.ot-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px;border:1px solid #e7e7ef;border-radius:24px;background:linear-gradient(135deg,#fff,#f7f4ff);margin-bottom:24px}
.ot-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:800;color:#6d3df5}.ot-hero h1{margin:7px 0;font-size:clamp(28px,4vw,44px);line-height:1.05}.ot-hero p{margin:0;color:#687083}.ot-hero-icon{width:64px;height:64px;border-radius:20px;background:#6d3df5;color:#fff;display:grid;place-items:center;font-size:30px;font-weight:900;flex:none}
.ot-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.ot-section-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 14px}.ot-section-head h2{margin:0;font-size:22px}.ot-section-head p{margin:4px 0 0;color:#73798a}.ot-test-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ot-card,.ot-history,.ot-create,.ot-admin-row,.ot-review-card{border:1px solid #e7e7ef;background:#fff;border-radius:18px;box-shadow:0 8px 25px rgba(28,25,48,.05)}.ot-card{padding:20px}.ot-card h3{margin:13px 0 7px;font-size:20px}.ot-card p{color:#6d7382;min-height:42px}.ot-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#73798a;font-size:12px}.ot-badge{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.06em;background:#f0eef7}.ot-badge.exam{background:#eee8ff;color:#6031db}.ot-badge.practice{background:#e9f8ef;color:#16834a}.ot-badge.published{background:#e9f8ef;color:#16834a}.ot-badge.draft{background:#f1f2f5;color:#6b7280}.ot-meta{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0;color:#636a79;font-size:12px}.ot-history{padding:18px}.ot-history-row{display:flex;justify-content:space-between;gap:12px;padding:13px 4px;border-bottom:1px solid #eee;text-decoration:none;color:#252839}.ot-history-row:last-child{border-bottom:0}.ot-history-row span{display:grid;gap:3px}.ot-history-row small{color:#8a8f9d}.ot-history-row strong{color:#6031db}.ot-empty{padding:28px;border:1px dashed #d9d8e2;border-radius:16px;color:#757b8b;background:#fafaff}.ot-admin-grid{display:grid;grid-template-columns:430px minmax(0,1fr);gap:24px}.ot-create{padding:20px}.ot-form{display:grid;gap:14px}.ot-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#444958}.ot-form input,.ot-form select,.ot-form textarea{width:100%;box-sizing:border-box;border:1px solid #dddde7;border-radius:10px;padding:11px 12px;font:inherit;background:#fff;color:#202331}.ot-form small{font-weight:500;color:#858b99}.ot-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ot-checks{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ot-checks label{display:flex;align-items:center;gap:7px;font-weight:600}.ot-checks input{width:auto}.ot-admin-list{display:grid;gap:12px}.ot-admin-row{padding:16px;display:flex;justify-content:space-between;gap:16px;align-items:center}.ot-admin-row h3{margin:9px 0 3px}.ot-admin-row small{color:#747b8b}.ot-admin-actions{display:flex;gap:7px;flex-wrap:wrap}.ot-admin-actions form{margin:0}.btn.danger{border-color:#f0c7c7;color:#b42318;background:#fff}.ot-test-shell{max-width:1250px;margin:0 auto;padding:20px}.ot-test-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0 18px}.ot-test-header h1{margin:5px 0;font-size:25px}.ot-timer{min-width:120px;text-align:center;padding:13px 16px;border-radius:14px;background:#171329;color:#fff;font-size:24px;font-weight:900;letter-spacing:.04em}.ot-test-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px}.ot-palette{align-self:start;position:sticky;top:20px;padding:16px;background:#fff;border:1px solid #e6e5ee;border-radius:18px}.ot-palette-title{display:grid;gap:4px;margin-bottom:14px}.ot-palette-title small{color:#858b98;font-size:11px}.ot-palette-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.ot-palette-grid button{aspect-ratio:1;border:1px solid #dddde6;border-radius:9px;background:#f7f7fa;font-weight:800;cursor:pointer}.ot-palette-grid button.attempted{background:#dff6e8;border-color:#9bd6b1;color:#177342}.ot-palette-grid button.review{box-shadow:inset 0 0 0 2px #f0a51b}.ot-question-area{min-width:0}.ot-question{background:#fff;border:1px solid #e5e4ed;border-radius:20px;padding:25px;box-shadow:0 8px 28px rgba(30,25,50,.05)}.ot-q-top{display:flex;justify-content:space-between;color:#73798a;font-size:12px;font-weight:700;margin-bottom:20px}.ot-question h2{font-size:23px;line-height:1.45;margin:0 0 22px;white-space:pre-wrap}.ot-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #e2e1e9;border-radius:13px;padding:14px;margin:10px 0;cursor:pointer;transition:.15s}.ot-option:hover{border-color:#a78bfa;background:#faf8ff}.ot-option input{margin-top:4px}.ot-option-letter{font-weight:900;color:#6338d9}.ot-q-actions{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-top:22px}.ot-feedback{margin-top:16px;padding:14px;border-radius:12px}.ot-feedback.good{background:#e8f8ee;color:#176b3b}.ot-feedback.bad{background:#fff0f0;color:#a32121}.ot-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;padding:15px 18px;border:1px solid #e5e4ed;border-radius:15px;background:#fff}.ot-submit-bar form{margin:0}.ot-result-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px;border-radius:22px;background:linear-gradient(135deg,#18132b,#342061);color:#fff;margin-bottom:20px}.ot-result-hero h1{margin:6px 0}.ot-result-hero p{margin:0;opacity:.8}.ot-result-hero>strong{font-size:48px}.ot-result-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:25px}.ot-stat{padding:18px;background:#fff;border:1px solid #e5e4ed;border-radius:15px;text-align:center}.ot-stat b{display:block;font-size:20px;color:#35215f}.ot-stat span{font-size:11px;color:#777e8d}.ot-review-list{display:grid;gap:12px}.ot-review-list h2{margin:5px 0}.ot-review-card{display:grid;grid-template-columns:48px 1fr;gap:15px;padding:18px}.ot-review-card h3{margin:0 0 12px;font-size:17px}.ot-review-num{width:40px;height:40px;border-radius:12px;background:#f0ebff;color:#5f35cf;display:grid;place-items:center;font-weight:900}.ot-correct{display:inline-block;color:#177342;background:#e8f8ee;padding:5px 9px;border-radius:8px;font-size:12px;font-weight:800}.ot-wrong{display:inline-block;color:#a32121;background:#fff0f0;padding:5px 9px;border-radius:8px;font-size:12px;font-weight:800}.ot-explanation{margin-top:12px;padding:12px;border-radius:10px;background:#f8f7fb}.ot-explanation p{margin:5px 0 0}
@media(max-width:900px){.ot-grid,.ot-admin-grid{grid-template-columns:1fr}.ot-test-grid{grid-template-columns:1fr}.ot-history{order:2}.ot-result-grid{grid-template-columns:repeat(3,1fr)}.ot-test-layout{grid-template-columns:1fr}.ot-palette{position:static;order:2}.ot-question-area{order:1}.ot-palette-grid{grid-template-columns:repeat(10,1fr)}}
@media(max-width:600px){.ot-wrap{padding:20px 12px 50px}.ot-hero{padding:20px;border-radius:18px}.ot-hero-icon{width:48px;height:48px}.ot-admin-row{align-items:flex-start;flex-direction:column}.ot-form-grid,.ot-checks{grid-template-columns:1fr}.ot-test-shell{padding:12px}.ot-test-header{align-items:flex-start}.ot-test-header h1{font-size:19px}.ot-timer{min-width:88px;font-size:18px;padding:10px}.ot-question{padding:17px;border-radius:16px}.ot-question h2{font-size:18px}.ot-q-actions .btn{flex:1;min-width:100px}.ot-submit-bar{align-items:stretch;flex-direction:column}.ot-submit-bar .btn{width:100%}.ot-palette-grid{grid-template-columns:repeat(8,1fr)}.ot-result-hero{padding:22px}.ot-result-hero>strong{font-size:35px}.ot-result-grid{grid-template-columns:repeat(2,1fr)}.ot-review-card{grid-template-columns:38px 1fr;padding:14px}}

/* v21.2 — compact A4 result report, matching generated-paper print style */
.ot-result-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.ot-print-report{background:#fff}
@media print{
  @page{size:A4 portrait;margin:7mm}
  body{background:#fff!important}
  .no-print{display:none!important}
  .ot-wrap.ot-result-page{padding:0!important;margin:0!important;max-width:none!important}
  .ot-print-report{box-shadow:none!important;border:0!important;width:100%!important}
  .ot-review-card{break-inside:avoid;page-break-inside:avoid}
}
