.recruitment-page{background:radial-gradient(ellipse at 50% 8%,#ffffff 0%,#fbf9f9 35%,#f3f4f6 100%);min-height:100vh;color:#1f2937;font-family:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.55}
.test-shell{max-width:980px;min-height:100vh;margin:auto;padding:10px 24px 12px;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}
.test-shell a{color:inherit;text-underline-offset:4px}
.test-shell a:focus-visible{outline:3px solid #b60814;outline-offset:4px}

/* Topbar */
.test-topbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;background:rgba(255,255,255,0.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(229,231,235,0.9);border-radius:16px;box-shadow:0 6px 20px -8px rgba(0,0,0,0.04)}
.test-topbar:before{content:"";position:absolute;left:20px;right:20px;top:-1px;height:2px;background:linear-gradient(90deg,#b60814 0%,#ea580c 40%,transparent 85%)}
.test-brand{display:flex;align-items:center;gap:14px;min-width:0}
.test-logo{display:block;width:145px;height:auto;flex-shrink:0}
.test-brand-copy{display:flex;flex-direction:column;gap:1px;border-left:1px solid #e5e7eb;padding-left:14px}
.test-portal-tag{font-size:9.5px;font-weight:800;letter-spacing:.16em;color:#b60814;text-transform:uppercase}
.test-brand-copy>strong{font-size:12px;font-weight:600;color:#374151}
.test-topbar-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.test-system-status{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:#15803d;background:rgba(34,197,94,0.1);border:1px solid rgba(34,197,94,0.25);border-radius:9999px;padding:5px 12px}
.status-pulse{width:7px;height:7px;border-radius:50%;background:#22c55e;animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,0.7)}70%{box-shadow:0 0 0 6px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.test-login-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:4px 14px 4px 8px;border:1px solid #e5e7eb;border-radius:10px;background:#ffffff;color:#4b5563;font-size:12px;font-weight:700;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,0.03);transition:all .2s ease}
.test-back-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f3f4f6;color:#374151;transition:background .2s,color .2s}
.test-back-icon svg{width:14px;height:14px}
.test-login-button:hover{background:#fff;border-color:#d1d5db;color:#111827;box-shadow:0 3px 10px rgba(0,0,0,0.06);transform:translateY(-1px)}
.test-login-button:hover .test-back-icon{background:#fee2e2;color:#b60814}
.test-login-button:active{transform:translateY(0)}

/* Compact Hero Section */
.test-hero{text-align:center;padding:12px 12px 8px;margin:0}
.test-hero h1{font-size:clamp(20px,2.6vw,25px);line-height:1.2;font-weight:800;letter-spacing:-.03em;margin:0 0 4px;color:#111827}
.hero-gradient{background:linear-gradient(135deg,#b60814 0%,#ea580c 60%,#b45309 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.test-hero>p{font-size:13.5px;color:#6b7280;line-height:1.5;margin:0 auto;max-width:580px}

/* Test Selection Cards */
.test-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 auto;max-width:940px;width:100%}
.test-choice{position:relative;overflow:hidden;display:flex;flex-direction:column;border:1px solid rgba(229,231,235,0.95);border-radius:20px;background:linear-gradient(180deg,#ffffff 0%,#fafafa 100%);padding:20px 22px;text-decoration:none;box-shadow:0 8px 24px -8px rgba(0,0,0,0.04),0 2px 4px -1px rgba(0,0,0,0.02);transition:all .28s cubic-bezier(0.16,1,0.3,1)}
.card-glow{position:absolute;top:-30px;right:-30px;width:140px;height:140px;border-radius:50%;filter:blur(36px);pointer-events:none;opacity:0.18;transition:opacity .3s,transform .3s}
.aptitude-choice .card-glow{background:radial-gradient(circle,#b60814 0%,transparent 70%)}
.workstyle-choice .card-glow{background:radial-gradient(circle,#4f46e5 0%,transparent 70%)}

.test-choice:hover{transform:translateY(-4px);border-color:rgba(182,8,20,0.35);box-shadow:0 18px 36px -10px rgba(182,8,20,0.13),0 6px 12px -3px rgba(0,0,0,0.04)}
.test-choice:hover .card-glow{opacity:0.3;transform:scale(1.2)}
.workstyle-choice:hover{border-color:rgba(79,70,229,0.35);box-shadow:0 18px 36px -10px rgba(79,70,229,0.14),0 6px 12px -3px rgba(0,0,0,0.04)}

.choice-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;position:relative;z-index:2}
.choice-badge-group{display:flex;align-items:center;gap:7px}
.test-pill{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:9999px;background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.workstyle-choice .test-pill{background:#e0e7ff;color:#3730a3;border-color:#c7d2fe}
.test-category-tag{font-size:11.5px;font-weight:600;color:#6b7280}
.choice-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);color:#b60814;border:1px solid #fecaca;transition:transform .3s ease}
.choice-icon svg{width:24px;height:24px}
.workstyle-choice .choice-icon{background:linear-gradient(135deg,#eef2ff 0%,#e0e7ff 100%);color:#4338ca;border-color:#c7d2fe}
.test-choice:hover .choice-icon{transform:scale(1.06) rotate(-2deg)}

.choice-body{position:relative;z-index:2}
.test-choice h2{font-size:23px;font-weight:800;letter-spacing:-.03em;margin:0 0 4px;color:#111827}
.test-choice>p,.choice-body>p{color:#4b5563;font-size:13px;line-height:1.55;margin:0 0 12px;max-width:330px}

.choice-highlights{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.highlight-tag{font-size:11px;font-weight:600;color:#4b5563;background:rgba(243,244,246,0.85);border:1px solid #e5e7eb;border-radius:6px;padding:3px 8px;display:inline-flex;align-items:center}
.workstyle-choice .highlight-tag{color:#374151}

.choice-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;margin-bottom:14px;position:relative;z-index:2}
.choice-meta span{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;background:#ffffff;border:1px solid #e5e7eb;border-radius:6px;padding:4px 10px;color:#374151;box-shadow:0 1px 2px rgba(0,0,0,0.03)}

.choice-action{display:flex;align-items:center;justify-content:space-between;padding:11px 18px;background:linear-gradient(135deg,#b60814 0%,#990610 100%);border-radius:12px;color:#ffffff;font-size:13px;font-weight:700;box-shadow:0 3px 10px rgba(182,8,20,0.22);transition:all .22s ease;position:relative;z-index:2}
.action-arrow{font-size:15px;font-weight:800;line-height:1;transition:transform .22s ease}
.test-choice:hover .choice-action{box-shadow:0 6px 16px rgba(182,8,20,0.32);transform:translateY(-1px)}
.test-choice:hover .action-arrow{transform:translate(2px,-2px)}

.workstyle-choice .choice-action{background:linear-gradient(135deg,#1e1b4b 0%,#0f172a 100%);box-shadow:0 3px 10px rgba(15,23,42,0.22)}
.workstyle-choice:hover .choice-action{box-shadow:0 6px 16px rgba(15,23,42,0.32)}

/* Compact Note Card */
.test-note{display:flex;align-items:center;gap:12px;max-width:940px;width:100%;margin:10px auto 0;padding:10px 18px;border-radius:12px;background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);border:1px solid #fde68a;box-shadow:0 2px 8px rgba(245,158,11,0.05);box-sizing:border-box}
.note-icon{display:grid;place-items:center;width:20px;height:20px;color:#d97706;flex-shrink:0}
.note-icon svg{width:18px;height:18px}
.note-content{flex:1;min-width:0;font-size:12px;line-height:1.5;color:#92400e}
.note-content strong{color:#78350f;font-weight:700}

.test-footer{text-align:center;color:#9ca3af;font-size:11px;padding:8px 0 2px}
.test-footer strong{letter-spacing:.08em;color:#6b7280}
.test-back{display:inline-block;margin-top:24px;font-size:13px;text-decoration:none;color:#716972!important}

@media (max-width:768px){
  .test-shell{padding:12px 16px 20px;min-height:100vh}
  .test-topbar{padding:10px 14px;gap:12px}
  .test-brand-copy{display:none}
  .test-cards{grid-template-columns:1fr;max-width:540px}
  .test-note{align-items:flex-start}
}
.question-header{max-width:740px;margin:30px 0 22px}.question-header h1{font-size:clamp(30px,5vw,42px);letter-spacing:-.035em;margin:12px 0 18px}.question-header p{color:#716972;line-height:1.8;font-size:15px}
.question-notice{padding:14px 18px;background:#eee9e6;border-radius:10px;color:#74666b;font-size:12px;margin-bottom:26px}
.test-section{display:grid;gap:18px}
.question-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.question-heading h3{margin:0!important}
.question-flag{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;background:#fffaf0;border:1px solid #e9cd83;border-radius:9px;color:#805c09;font-size:12px;font-weight:700}
.question-flag svg{width:17px;height:17px;flex-shrink:0}
.question-flag[aria-pressed=true] .flag-cloth{fill:currentColor}
.question-flag[aria-pressed=true]{background:#f5d96b;border-color:#d5b747;color:#594600}
.test-question.is-marked{border-color:#d5b747;box-shadow:inset 4px 0 #f5d96b}
.answer-options{border:0;padding:0;margin:22px 0 0;min-width:0;display:grid;gap:10px}
.answer-options legend{font-size:12px;color:#716972;padding:0 0 12px;line-height:1.6}
.answer-card{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e5dfe3;border-radius:12px;background:#fff;cursor:pointer;font-size:14px;line-height:1.6}
.answer-card:hover{background:#fff8f8;border-color:#ce8e97}
.answer-card:has(input:checked){border-color:#b60814;background:#fff0f2}
.answer-card input,.workstyle-pick input{accent-color:#b60814;width:18px;height:18px;flex-shrink:0;margin:0}
.answer-letter{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:8px;background:#f1edf0;color:#66555f;font-weight:800;font-size:12px;flex-shrink:0}
.answer-card:has(input:checked) .answer-letter{background:#b60814;color:#fff}
.workstyle-card{border:1px solid #e5dfe3;border-radius:12px;padding:16px;background:#fff}
.workstyle-card:has(input:checked){border-color:#ce8e97;background:#fff8f9}
.workstyle-card>p{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px!important;font-size:16px!important;line-height:1.75}
.workstyle-picks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.workstyle-pick{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e5dfe3;border-radius:8px;cursor:pointer;font-size:11px;line-height:1.5;background:#fff;min-height:44px}
.workstyle-pick:has(input:checked){border-color:#b60814;background:#fff0f2;color:#9c0d1a;font-weight:700}
.answer-card:has(input:focus-visible),.workstyle-pick:has(input:focus-visible){border-color:#b60814;box-shadow:inset 0 0 0 1px #b60814}
.question-flag:focus-visible{outline:3px solid #b60814;outline-offset:3px}
.question-numbers a.is-answered{background:#e7f5ed;border-color:#8dc8a7;color:#20643f}
.question-numbers a.is-marked{background:#f5d96b;border-color:#d5b747;color:#594600}
.question-numbers a[aria-current]{outline:2px solid #b60814;outline-offset:2px}
.question-numbers a.is-answered[aria-current]{background:#e7f5ed;color:#20643f;border-color:#8dc8a7}
.question-numbers a.is-marked[aria-current]{background:#f5d96b;color:#594600;border-color:#d5b747}
.question-legend{flex-wrap:wrap}
.question-legend .legend-answered{background:#59a97d}.question-legend .legend-marked{background:#f5d96b}
@media(max-width:420px){.answer-card{padding:12px;gap:8px}.workstyle-picks{grid-template-columns:1fr}.question-heading{flex-wrap:wrap}}
.question-layout{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:24px;align-items:start}
.question-main{min-width:0}
.question-sidebar{position:sticky;top:20px;display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid #e8e2df;border-radius:16px;max-height:calc(100dvh - 40px);overflow:hidden}
.question-sidebar> :not(.question-numbers){flex-shrink:0}
.question-sidebar h2{font-size:16px;margin:0 0 8px}
.test-timer{padding:18px;margin-bottom:22px;border:1px solid #efdbde;border-radius:12px;background:#fff7f7}
.timer-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;color:#84646b}
.timer-label>span:last-child{font-size:10px;font-weight:500}
.timer-clock{display:block;margin:12px 0 8px;font-size:36px;font-weight:800;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:#a80b18;line-height:1.2}
.test-timer p{font-size:11px;line-height:1.6;margin:0;color:#79666c}
.test-timer button{width:100%;min-height:44px;margin-top:14px;padding:10px;border:0;border-radius:8px;background:#b60814;color:#fff;font-size:12px;font-weight:700}
.test-timer button:hover{background:#940812}.test-timer button:focus-visible{outline:3px solid #b60814;outline-offset:3px}
.timer-warning{background:#fff6e6;border-color:#e1b764}.timer-warning .timer-clock{color:#905100}
.timer-expired{background:#f8e5e7;border-color:#b60814}.timer-expired p{color:#a80b18;font-weight:700}
.question-sidebar>p{font-size:12px;line-height:1.6;color:#716972;margin:0 0 18px}
.question-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;min-height:0;overflow-y:auto;padding:5px;scrollbar-width:thin;overscroll-behavior-y:contain;flex:0 1 auto}
.question-numbers a{display:grid;place-items:center;min-height:40px;border:1px solid #e6dfe2;border-radius:8px;background:#faf8f9;font-size:13px;font-weight:700;text-decoration:none;color:#655860}
.question-numbers a:hover{border-color:#b60814;background:#fff0f1;color:#a80b18}
.question-numbers a[aria-current]{background:#b60814;color:white;border-color:#b60814;box-shadow:0 3px 8px #b6081420}
.question-legend{display:flex;align-items:center;gap:8px;font-size:11px;color:#716972;border-top:1px solid #eee7e9;margin-top:18px;padding-top:16px}
.question-legend span{width:10px;height:10px;border-radius:3px;background:#b60814}
.question-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}
.question-pager button{min-height:44px;padding:10px 14px;border:1px solid #e6dfe2;border-radius:10px;background:#fff;color:#8f1520;font-size:12px;font-weight:700}
.question-pager button:not(:disabled):hover{background:#fff0f1;border-color:#b60814}
.question-pager button:focus-visible{outline:3px solid #b60814;outline-offset:3px}
.question-pager>span{font-size:12px;color:#716972;white-space:nowrap}
.question-pager .submit-answers{background:#b60814;color:#fff;border-color:#b60814}
.question-pager .submit-answers:not(:disabled):hover{background:#940812;color:#fff}
.submit-error{padding:16px 20px;border:1px solid #d6a2a9;border-radius:12px;background:#fff0f2;color:#940812;font-size:14px;line-height:1.6}
.test-result{padding:28px;background:#fff;border:1px solid #e8e2df;border-radius:18px;scroll-margin-top:20px}
.test-result h2{margin:0 0 22px;color:#a80b18}.test-result p{font-size:14px;line-height:1.7}
.test-result .result-back-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin-top:20px;padding:12px 18px;background:#b60814;border:1px solid #b60814;border-radius:10px;color:#fff;font-size:14px;font-weight:600;line-height:1.5;text-decoration:none}
.test-result .result-back-button:hover{background:#940812;border-color:#940812}
.result-table{border-collapse:collapse;width:100%;margin:24px 0;font-size:13px}
.result-table th,.result-table td{text-align:left;border-bottom:1px solid #e8e2df;padding:12px 6px;overflow-wrap:anywhere}
.result-table th{background:#faf5f5;font-weight:700}
/* ========================================================
   MODAL DIALOG & SELECTION POPUP
   ======================================================== */
.test-popup{
  width:min(480px,calc(100% - 32px));
  max-height:calc(100dvh - 40px);
  padding:26px 28px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  color:#1e293b;
  background:#fff;
  overflow-y:auto;
  overflow-x:hidden;
}
.test-popup::backdrop{
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

/* Default Popup Icon (Submit Confirm, etc.) */
.popup-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:16px;
  border-radius:12px;
  background:#fff1f2;
  color:#b60814;
}
.popup-icon svg{width:22px;height:22px}
.test-popup h2{margin:0 0 6px;font-size:20px;font-weight:800;letter-spacing:-.02em;color:#0f172a}
.test-popup p{margin:0;color:#64748b;font-size:14px;line-height:1.7}

/* Action Buttons (General) */
.popup-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.popup-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:10px 18px;
  font-size:13px;
  font-weight:700;
  background:#fff;
  color:#475569;
  cursor:pointer;
  transition:all .15s ease;
}
.popup-actions [data-popup-confirm]{
  background:#b60814;
  border-color:#b60814;
  color:#fff;
}
.popup-actions [data-popup-confirm]:hover{
  background:#990007;
  border-color:#990007;
}
.popup-actions [data-popup-cancel]:hover{
  background:#f8fafc;
  color:#0f172a;
  border-color:#94a3b8;
}
.popup-actions button:focus-visible{outline:2px solid #b60814;outline-offset:2px}

/* Clean Selection Popup */
.selection-popup{padding:26px 28px}
.selection-popup-form{display:flex;flex-direction:column}
.selection-popup-head{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #f1f5f9}
.selection-popup-head h2{margin:0 0 4px;font-size:21px;font-weight:800;color:#0f172a;letter-spacing:-.02em}
.selection-popup-meta{margin:0;font-size:13.5px;font-weight:600;color:#64748b}

.selection-popup-body{display:flex;flex-direction:column;gap:14px}
.selection-detail-section{display:flex;flex-direction:column;gap:5px}
.selection-section-label{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}
.selection-section-text{margin:0;font-size:13.5px;line-height:1.65;color:#334155}

.selection-rules-simple{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.selection-rules-simple li{font-size:13px;line-height:1.6;color:#475569}
.selection-rules-simple li strong{color:#0f172a;font-weight:600}

/* Error Banner */
.popup-error-banner{
  padding:10px 14px;
  border-radius:10px;
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
  font-size:13px;
  font-weight:600;
  line-height:1.5;
  margin-bottom:14px;
}
.popup-error-banner[hidden]{display:none!important}

.selection-popup-actions{margin-top:20px;padding-top:14px;border-top:1px solid #f1f5f9}

.test-question{padding:28px 32px;background:#fff;border:1px solid #e8e2df;border-radius:16px;line-height:1.8;scroll-margin-top:20px}
.test-question h3{font-size:15px;text-transform:none;letter-spacing:0;font-weight:700;line-height:1.5;margin:0 0 16px;color:#a80b18}
.test-question p{white-space:pre-line;margin:12px 0;font-size:15px}
.test-question ol{padding-left:30px;margin:20px 0 0}.test-question li{padding:8px 12px;margin:6px 0;background:#f8f7f8;border-radius:7px;font-size:14px}.test-question li::marker{font-weight:700;color:#80727a}
.test-question img{display:block;max-width:100%;height:auto;margin:20px 0;border-radius:8px}
.test-sequence{font-weight:700;overflow-wrap:anywhere}
.test-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;padding:28px 0;font-size:13px;font-weight:600}

/* Exam Header */
.exam-header{margin:24px 0 22px;background:#fff;border:1px solid #e8e2e5;border-radius:16px;overflow:hidden}
.exam-heading-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px}
.exam-identity{display:flex;align-items:center;gap:22px;min-width:0}
.exam-logo{display:block;width:126px;height:auto;flex-shrink:0}
.exam-title{border-left:1px solid #e9e3e6;padding-left:22px;min-width:0}
.exam-title>span{font-size:12px;color:#7b7179;line-height:1.5}
.exam-title h1{margin:4px 0 0;font-size:24px;font-weight:700;letter-spacing:-.025em;line-height:1.3;color:#30282e}
.exam-meta{display:flex;align-items:center;gap:10px;flex-shrink:0;flex-wrap:wrap}
.exam-meta>span{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #ece7e9;border-radius:8px;font-size:13px;line-height:1.5;color:#675962;background:#fcfafb;white-space:nowrap}
.exam-meta svg{width:16px;height:16px;color:#a80b18;flex-shrink:0}
.exam-instructions{border-top:1px solid #eee8eb;background:#fdfbfc}
.exam-instructions summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 26px;list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:#72616c}
.exam-instructions summary::-webkit-details-marker{display:none}
.exam-instructions summary>span{font-size:18px;line-height:1}
.exam-instructions[open] summary>span{transform:rotate(180deg)}
.exam-instructions summary:hover{color:#a80b18;background:#fff5f6}
.exam-instructions summary:focus-visible{outline:2px solid #b60814;outline-offset:-4px;border-radius:8px}
.exam-instructions p{margin:0;padding:0 26px 18px;max-width:780px;font-size:14px;line-height:1.75;color:#675962}

/* Loading state */
.test-loading{padding:24px;background:#fff;border:1px solid #e8e2df;border-radius:16px;color:#615b65;text-align:center}
.test-loading button{min-height:44px;padding:10px 20px;border:0;border-radius:10px;background:#b60814;color:white;font:inherit;cursor:pointer}
.test-loading button:focus-visible{outline:3px solid #b60814;outline-offset:3px}

/* Proctoring */
.proctor-status{padding:14px 16px;margin-bottom:18px;border:1px solid #ebd9dc;border-radius:12px;background:#fefbfb}
.proctor-status-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.proctor-status-title{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#594d54}
.proctor-shield-icon{width:16px;height:16px;color:#a80b18;flex-shrink:0}
.proctor-badge{display:inline-block;padding:3px 8px;font-size:11px;font-weight:700;border-radius:6px;background:#eef7f1;color:#1c743f;border:1px solid #cce8d6;letter-spacing:.02em;transition:all .2s ease}
.proctor-badge.is-warning{background:#fff8ea;color:#b45309;border-color:#fed7aa}
.proctor-badge.is-danger{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.proctor-status-desc{font-size:11px;line-height:1.55;color:#7a6d75;margin:0}

.proctor-overlay{position:fixed;inset:0;z-index:9999;background:#141117df;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:grid;place-items:center;padding:24px;overflow-y:auto}
.proctor-overlay[hidden]{display:none!important}
.proctor-card{width:min(520px,100%);background:#fff;border:1px solid #ebd9dc;border-radius:22px;padding:34px 30px;box-shadow:0 30px 100px #0e050859;text-align:center;color:#292a30;animation:proctorPop .22s cubic-bezier(0.16,1,0.3,1)}
@keyframes proctorPop{0%{opacity:0;transform:scale(.94) translateY(10px)}100%{opacity:1;transform:scale(1) translateY(0)}}
.proctor-icon{width:64px;height:64px;margin:0 auto 20px;border-radius:18px;display:grid;place-items:center;background:#fff0f2;color:#b60814}
.proctor-icon svg{width:32px;height:32px}
.proctor-card.is-warning .proctor-icon{background:#fff8ea;color:#d97706}
.proctor-card.is-danger .proctor-icon{background:#fef2f2;color:#dc2626}
.proctor-card h2{margin:0 0 12px;font-size:22px;font-weight:700;color:#1e1a1d;letter-spacing:-.025em}
.proctor-card p{margin:0 0 20px;font-size:14px;line-height:1.75;color:#61565e;white-space:pre-line;text-align:left}
.proctor-strikes{display:flex;align-items:center;justify-content:center;gap:10px;margin:16px 0 24px;padding:12px 18px;background:#faf7f8;border:1px solid #ebe4e6;border-radius:12px}
.proctor-strikes[hidden]{display:none!important}
.strike-dot{width:14px;height:14px;border-radius:50%;background:#e3dce0;transition:all .25s ease}
.strike-dot.is-active{background:#dc2626;box-shadow:0 0 0 4px #dc262629}
.strike-count-text{font-size:13px;font-weight:700;color:#61555d;margin-left:6px}
.proctor-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 24px;border-radius:12px;border:none;background:#b60814;color:#fff;font-size:14px;font-weight:700;cursor:pointer;transition:background .18s,transform .1s}
.proctor-btn:hover{background:#940812}
.proctor-btn:active{transform:scale(.99)}
.proctor-btn:disabled{background:#b0a8ad;cursor:not-allowed}
.proctor-btn:focus-visible{outline:3px solid #b60814;outline-offset:3px}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */
@media (max-width: 800px) {
  .test-brand-copy{display:none}
  .question-layout{grid-template-columns:1fr;gap:18px}
  .question-sidebar{position:static;max-height:none;padding:18px;border-radius:14px}
  .question-numbers{grid-template-columns:repeat(auto-fit,minmax(40px,1fr));max-height:220px}
  .question-numbers a{min-height:42px}
  .exam-heading-row{align-items:flex-start;flex-direction:column;gap:16px;padding:18px 20px}
  .exam-meta{padding-left:0;gap:8px}
}

@media (max-width: 640px) {
  .test-shell{padding:10px 14px 20px;min-height:100dvh}
  .test-topbar{padding:10px 14px;gap:10px;border-radius:14px}
  .test-topbar:before{left:12px;right:12px}
  .test-logo{width:115px}
  .test-login-button{gap:6px;font-size:11.5px;padding:5px 12px;min-height:38px}
  .test-back-icon{width:22px;height:22px}
  
  .test-hero{padding:16px 8px 10px}
  .test-hero h1{font-size:20px;line-height:1.25}
  .test-hero>p{font-size:13px;line-height:1.5}
  
  .test-cards{grid-template-columns:1fr;gap:14px;max-width:100%}
  .test-choice{padding:18px 16px;border-radius:18px}
  .choice-top{margin-bottom:12px}
  .choice-icon{width:40px;height:40px}
  .choice-icon svg{width:20px;height:20px}
  .test-choice h2{font-size:20px}
  .test-choice>p,.choice-body>p{font-size:12.5px;line-height:1.5;margin:0 0 10px;max-width:none}
  .choice-highlights{gap:5px;margin-bottom:12px}
  .highlight-tag{font-size:10.5px;padding:3px 7px}
  .choice-meta{gap:6px;margin-bottom:12px}
  .choice-meta span{font-size:11px;padding:4px 8px}
  .choice-action{padding:10px 14px;min-height:42px;font-size:12.5px;border-radius:10px}
  
  .test-note{padding:12px 14px;gap:10px;border-radius:10px}
  .test-note .note-content{font-size:11.5px;line-height:1.5}
  .test-footer{padding:12px 0 6px;font-size:11px}
}

@media (max-width: 480px) {
  /* Selection Modal Dialog */
  .test-popup{
    width:calc(100% - 24px);
    max-width:420px;
    padding:18px 16px;
    border-radius:18px;
    max-height:calc(100dvh - 30px);
  }
  .selection-popup-head{margin-bottom:12px;padding-bottom:10px}
  .selection-popup-head h2{font-size:18px}
  .selection-popup-meta{font-size:12.5px}
  .selection-section-label{font-size:11px}
  .selection-section-text{font-size:12.5px;line-height:1.55}
  .selection-rules-simple{padding-left:16px;gap:5px}
  .selection-rules-simple li{font-size:12px;line-height:1.5}
  .selection-popup-actions{flex-direction:column-reverse;gap:8px;margin-top:16px;padding-top:12px}
  .popup-actions button{width:100%;min-height:44px;font-size:13.5px}

  /* Questions & Exam Layout */
  .exam-header{margin:10px 0 14px;border-radius:14px}
  .exam-heading-row{padding:12px 14px;gap:10px}
  .exam-logo{width:86px}
  .exam-identity{gap:10px}
  .exam-title{padding-left:10px}
  .exam-title>span{font-size:10.5px}
  .exam-title h1{font-size:18px}
  .exam-meta{gap:6px}
  .exam-meta>span{font-size:11px;padding:4px 8px;border-radius:6px}
  .exam-instructions summary{padding:10px 14px;font-size:12px}
  .exam-instructions p{padding:0 14px 14px;font-size:12.5px}
  
  .test-timer{padding:12px 14px;margin-bottom:12px;border-radius:10px}
  .timer-clock{font-size:26px;margin:4px 0 6px}
  .question-sidebar h2{font-size:15px}
  .question-numbers{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;max-height:160px}
  .question-numbers a{min-height:36px;font-size:12px}
  
  .test-question{padding:16px 14px;border-radius:14px}
  .test-question h3{font-size:13.5px}
  .test-question p{font-size:13.5px;line-height:1.6}
  .answer-options{margin-top:16px;gap:8px}
  .answer-card{padding:11px 12px;gap:10px;min-height:44px;font-size:13px;border-radius:10px}
  .answer-letter{min-width:26px;height:26px;font-size:11px;border-radius:6px}
  
  .workstyle-card{padding:12px 14px;border-radius:12px}
  .workstyle-card>p{font-size:14px!important;margin-bottom:12px!important}
  .workstyle-picks{grid-template-columns:1fr;gap:6px}
  .workstyle-pick{min-height:44px;padding:9px 12px;font-size:11.5px;border-radius:8px}
  
  .question-pager{gap:8px;margin-top:16px}
  .question-pager button{font-size:12.5px;min-height:44px;padding:8px 12px;border-radius:9px}
  .question-pager>span{font-size:12px}
  
  .proctor-card{padding:22px 16px;border-radius:18px}
  .proctor-icon{width:50px;height:50px;margin-bottom:14px;border-radius:14px}
  .proctor-icon svg{width:26px;height:26px}
  .proctor-card h2{font-size:18px;margin-bottom:8px}
  .proctor-card p{font-size:12.5px;line-height:1.6;margin-bottom:14px}
  .proctor-strikes{padding:9px 12px;margin:10px 0 14px}
  .proctor-btn{min-height:46px;font-size:13.5px;border-radius:10px}
  
  .test-result{padding:16px;border-radius:14px}
  .result-table{font-size:12px}
  .result-table th,.result-table td{padding:8px 4px}
}

@media (max-width: 360px) {
  .test-logo{width:98px}
  .test-login-button{font-size:10.5px;padding:4px 8px;gap:4px}
  .test-choice{padding:14px 12px}
  .test-choice h2{font-size:18px}
  .exam-logo{width:76px}
  .exam-title h1{font-size:16px}
}

@media (prefers-reduced-motion: reduce) {
  .test-choice, .test-login-button, .test-choice .choice-action, .proctor-card {
    transition: none;
    animation: none;
  }
  .test-choice:hover {
    transform: none;
  }
}

