/* cfg-quiz: per-topic CCNA practice quiz styling */
.cfg-quiz { border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px 24px; margin: 30px 0; background: #f8fafc; }
.cfg-quiz-title { margin: 0 0 4px; font-size: 1.3rem; line-height: 1.25; }
.cfg-quiz-intro { margin: 0 0 18px; color: #475569; font-size: .95rem; }
.cfg-quiz-q { padding: 16px 0; border-top: 1px solid #e8edf3; }
.cfg-quiz-q:first-of-type { border-top: 0; padding-top: 4px; }
.cfg-quiz-stem { font-weight: 600; margin-bottom: 10px; line-height: 1.45; }
.cfg-quiz-opts { display: flex; flex-direction: column; gap: 7px; }
.cfg-quiz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 13px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.cfg-quiz-opt:hover { border-color: #94a3b8; }
.cfg-quiz-opt input { margin: 3px 0 0; flex: 0 0 auto; }
.cfg-quiz-opt-text { line-height: 1.4; }
.cfg-quiz-opt.is-correct { border-color: #16a34a; background: #f0fdf4; }
.cfg-quiz-opt.is-correct .cfg-quiz-opt-text { font-weight: 600; color: #166534; }
.cfg-quiz-opt.is-wrong { border-color: #dc2626; background: #fef2f2; }
.cfg-quiz-exp { margin: 10px 2px 2px; padding: 11px 14px; background: #eef2ff; border-left: 3px solid #6366f1; border-radius: 4px; font-size: .92rem; line-height: 1.5; color: #1e293b; }
.cfg-quiz-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.cfg-quiz-btn { background: #2563eb; color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.cfg-quiz-btn:hover { background: #1d4ed8; }
.cfg-quiz-retry { background: #475569; }
.cfg-quiz-retry:hover { background: #334155; }
.cfg-quiz-result { margin-top: 16px; font-weight: 700; font-size: 1.05rem; padding: 11px 15px; border-radius: 8px; }
.cfg-quiz-result.is-pass { background: #dcfce7; color: #166534; }
.cfg-quiz-result.is-partial { background: #fef9c3; color: #854d0e; }
.cfg-quiz-loading { color: #94a3b8; font-style: italic; }
.cfg-quiz-missing { color: #b45309; }

/* v2 question types: multi-select (checkbox), numeric input, matching */
.cfg-quiz-hint { font-size: .85rem; color: #64748b; margin: 0 0 9px; font-weight: 600; }

.cfg-quiz-num { width: 100%; max-width: 320px; padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cfg-quiz-num:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cfg-quiz-num.is-correct { border-color: #16a34a; background: #f0fdf4; color: #166534; font-weight: 700; }
.cfg-quiz-num.is-wrong { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.cfg-quiz-num[disabled] { opacity: 1; }
.cfg-quiz-answer { margin-top: 8px; font-weight: 700; color: #166534; font-size: .92rem; }

.cfg-quiz-match-rows { display: flex; flex-direction: column; gap: 8px; }
.cfg-quiz-match-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.cfg-quiz-match-left { flex: 1 1 200px; min-width: 0; padding: 11px 13px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; line-height: 1.4; }
.cfg-quiz-match-slot { flex: 1 1 200px; min-width: 0; min-height: 46px; border: 2px dashed #cbd5e1; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; padding: 5px; cursor: pointer; transition: border-color .15s, background .15s; }
.cfg-quiz-match-slot.is-over { border-color: #2563eb; background: #eff6ff; }
.cfg-quiz-match-slot.is-correct { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.cfg-quiz-match-slot.is-wrong { border-style: solid; border-color: #dc2626; background: #fef2f2; }
.cfg-quiz-match-answer { flex: 1 1 100%; font-size: .85rem; font-weight: 700; color: #166534; padding: 2px 4px 0; }
.cfg-quiz-tray-label { margin: 14px 0 6px; font-size: .85rem; color: #64748b; font-weight: 600; }
.cfg-quiz-tray { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.cfg-quiz-tile { padding: 9px 14px; background: #fff; border: 1px solid #94a3b8; border-radius: 8px; cursor: grab; font-size: .92rem; line-height: 1.3; user-select: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.cfg-quiz-tile:hover { border-color: #2563eb; }
.cfg-quiz-tile.is-selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cfg-quiz-tile.is-dragging { opacity: .5; }
.cfg-quiz-match-slot .cfg-quiz-tile { margin: 0; width: 100%; cursor: pointer; border-color: #2563eb; background: #eff6ff; }

@media (max-width: 600px) { .cfg-quiz { padding: 18px 16px; } }
