/* Best Test Review quiz engine styles. Uses the --btr-* variables from site.css with fallbacks. */
.btr-quiz{--q-primary:var(--btr-primary,#2453d4);--q-primary-d:var(--btr-primary-dark,#1a3fa6);--q-ink:var(--btr-ink,#0f1b33);--q-muted:var(--btr-muted,#5b6b85);--q-line:var(--btr-line,#dfe5ef);--q-bg:var(--btr-soft,#f5f7fb);--q-right:var(--btr-right,#0f8a66);--q-right-bg:#e6f6f0;--q-wrong:var(--btr-wrong,#c92a42);--q-wrong-bg:#fdecee;--q-flag:var(--btr-flag,#e67700);
  margin:1.5em 0 2em;border:1px solid var(--q-line);border-radius:16px;background:#fff;box-shadow:0 6px 24px rgba(15,27,51,.06);color:var(--q-ink);font-size:17px;line-height:1.55;overflow:hidden}
.btr-quiz-head{display:flex;align-items:center;gap:.75em;padding:1em 1.25em;background:linear-gradient(135deg,var(--q-primary),var(--q-primary-d));color:#fff}
.btr-quiz-head h2{margin:0;flex:1;min-width:0;font-size:1.15em;line-height:1.3;color:#fff;font-weight:700}
.btr-quiz-head .btr-icon{flex:none}
.btr-quiz-head .btr-quiz-badge{margin-left:auto;font-size:.75em;font-weight:600;background:rgba(255,255,255,.18);border-radius:999px;padding:.25em .75em;white-space:nowrap}
.btr-quiz-app{padding:1.25em}
@media (min-width:700px){.btr-quiz-app{padding:1.5em 1.75em 1.75em}}
.btr-quiz .btr-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.btr-noscript{padding:1em 1.25em;margin:0;color:var(--q-muted)}
.btr-quiz-loading{color:var(--q-muted);margin:0}

/* buttons */
.btr-quiz .btr-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35em;min-height:46px;padding:.55em 1.1em;border:2px solid var(--q-line);border-radius:10px;background:#fff;color:var(--q-ink);font:inherit;font-size:.95em;font-weight:600;cursor:pointer;line-height:1.2;text-decoration:none;transition:background .15s,border-color .15s,transform .05s}
.btr-quiz .btr-btn:hover{border-color:var(--q-primary);color:var(--q-primary);background:#fff}
.btr-quiz .btr-btn:active{transform:translateY(1px)}
.btr-quiz .btr-btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.btr-quiz .btr-btn-primary{background:var(--q-primary);border-color:var(--q-primary);color:#fff}
.btr-quiz .btr-btn-primary:hover{background:var(--q-primary-d);border-color:var(--q-primary-d);color:#fff}
.btr-quiz .btr-btn-ghost{border-color:transparent;background:transparent;color:var(--q-muted)}
.btr-quiz .btr-btn-lg{min-height:54px;padding:.7em 1.6em;font-size:1.05em}
.btr-quiz button:focus-visible,.btr-quiz summary:focus-visible,.btr-quiz a:focus-visible,.btr-quiz input:focus-visible+span{outline:3px solid #ffbf47;outline-offset:2px}
.btr-actions{display:flex;flex-wrap:wrap;gap:.6em;margin:1em 0}

/* start */
.btr-start-meta{display:flex;flex-wrap:wrap;gap:.5em;margin:0 0 1em;padding:0}
.btr-start-meta span{background:var(--q-bg);border:1px solid var(--q-line);border-radius:999px;padding:.2em .8em;font-size:.85em;color:var(--q-muted);font-weight:600}
.btr-modes{border:0;margin:0;padding:0;display:grid;gap:.6em}
.btr-modes legend{font-weight:700;margin-bottom:.5em;padding:0}
.btr-opt{display:flex;gap:.75em;align-items:flex-start;padding:.8em 1em;border:2px solid var(--q-line);border-radius:12px;cursor:pointer;background:#fff;font-size:.95em;line-height:1.45}
.btr-opt:hover{border-color:var(--q-primary)}
.btr-opt input{margin:.25em 0 0;width:1.15em;height:1.15em;flex:none;accent-color:var(--q-primary)}
.btr-opt:has(input:checked){border-color:var(--q-primary);background:#f1f5ff}
.btr-opt-check{border-style:dashed}
.btr-opt[hidden]{display:none}
.btr-resume{background:#fff8e6;border:1px solid #ffe08a;border-radius:12px;padding:.8em 1em;margin:0 0 1em}
.btr-resume p{margin:0}
.btr-resume .btr-actions{margin:.6em 0 0}
.btr-last{margin:.25em 0 0;color:var(--q-muted);font-size:.9em}
.btr-keys-hint{margin:.75em 0 0;color:var(--q-muted);font-size:.8em}
@media (hover:none){.btr-keys-hint{display:none}}

/* question */
.btr-qtop{display:flex;align-items:center;justify-content:space-between;gap:.75em;margin-bottom:.5em;font-size:.9em}
.btr-count{font-weight:700;color:var(--q-muted)}
.btr-qtop-right{display:flex;align-items:center;gap:.5em}
.btr-timer{font-variant-numeric:tabular-nums;font-weight:700;color:var(--q-muted);background:var(--q-bg);border-radius:8px;padding:.2em .55em}
.btr-timer.is-low{color:#fff;background:var(--q-wrong)}
.btr-quiz .btr-flag{min-height:38px;border:2px solid var(--q-line);background:#fff;border-radius:8px;padding:.2em .7em;font:inherit;font-size:.9em;font-weight:600;color:var(--q-muted);cursor:pointer}
.btr-quiz .btr-flag.is-on{border-color:var(--q-flag);color:var(--q-flag);background:#fff4e6}
.btr-progress{height:8px;background:var(--q-bg);border-radius:99px;overflow:hidden;margin-bottom:1.1em}
.btr-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--q-primary),#4c7dff);border-radius:99px;transition:width .3s}
.btr-quiz h3.btr-qtext{font-size:1.12em;line-height:1.5;font-weight:650;margin:0 0 1em;color:var(--q-ink);white-space:pre-line;outline:none}
.btr-choices{display:grid;gap:.6em}
.btr-quiz .btr-choice{display:flex;align-items:center;gap:.85em;width:100%;min-height:56px;padding:.7em .9em;text-align:left;background:#fff;border:2px solid var(--q-line);border-radius:12px;font:inherit;font-size:1em;line-height:1.4;color:var(--q-ink);cursor:pointer;transition:border-color .12s,background .12s}
.btr-quiz .btr-choice:hover{border-color:var(--q-primary);background:#f7f9ff}
.btr-letter{flex:none;display:inline-grid;place-items:center;width:2em;height:2em;border-radius:8px;background:var(--q-bg);color:var(--q-muted);font-weight:700;font-size:.9em}
.btr-choice-text{flex:1}
.btr-mark{flex:none;font-weight:800;font-size:1.2em}
.btr-quiz .btr-choice.is-chosen{border-color:var(--q-primary);background:#eef3ff}
.btr-quiz .btr-choice.is-chosen .btr-letter{background:var(--q-primary);color:#fff}
.btr-quiz .btr-choice[aria-disabled="true"]{cursor:default}
.btr-quiz .btr-choice[aria-disabled="true"]:hover{background:#fff;border-color:var(--q-line)}
.btr-quiz .btr-choice.is-correct,.btr-quiz .btr-choice.is-correct:hover{border-color:var(--q-right);background:var(--q-right-bg)}
.btr-quiz .btr-choice.is-correct .btr-letter{background:var(--q-right);color:#fff}
.btr-quiz .btr-choice.is-correct .btr-mark{color:var(--q-right)}
.btr-quiz .btr-choice.is-wrong,.btr-quiz .btr-choice.is-wrong:hover{border-color:var(--q-wrong);background:var(--q-wrong-bg)}
.btr-quiz .btr-choice.is-wrong .btr-letter{background:var(--q-wrong);color:#fff}
.btr-quiz .btr-choice.is-wrong .btr-mark{color:var(--q-wrong)}
.btr-feedback{margin-top:1em;padding:.9em 1.1em;border-radius:12px;border-left:5px solid;animation:btrIn .2s ease-out}
.btr-feedback.is-right{background:var(--q-right-bg);border-color:var(--q-right)}
.btr-feedback.is-wrong{background:var(--q-wrong-bg);border-color:var(--q-wrong)}
.btr-feedback p{margin:0}
.btr-feedback .btr-verdict strong{color:var(--q-right)}
.btr-feedback.is-wrong .btr-verdict strong{color:var(--q-wrong)}
.btr-exp{margin-top:.5em!important;color:#2b3950;white-space:pre-line}
@keyframes btrIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.btr-nav{display:flex;align-items:center;gap:.6em;margin-top:1.25em;flex-wrap:wrap}
.btr-nav .btr-btn-primary{margin-left:auto;min-width:8.5em}
.btr-confirm{margin-top:1em;padding:.9em 1.1em;border-radius:12px;background:#fff8e6;border:1px solid #ffe08a}
.btr-confirm p{margin:0}
.btr-confirm .btr-actions{margin:.6em 0 0}
.btr-grid{display:flex;flex-wrap:wrap;gap:.4em;margin-top:1em;padding-top:1em;border-top:1px solid var(--q-line)}
.btr-grid[hidden]{display:none}
.btr-quiz .btr-dot{width:2.5em;height:2.5em;border-radius:8px;border:2px solid var(--q-line);background:#fff;font:inherit;font-size:.85em;font-weight:700;color:var(--q-muted);cursor:pointer;position:relative;padding:0}
.btr-quiz .btr-dot.is-answered{background:#eef3ff;border-color:#b6c8f5;color:var(--q-primary)}
.btr-quiz .btr-dot.is-right{background:var(--q-right-bg);border-color:#9fd9c4;color:var(--q-right)}
.btr-quiz .btr-dot.is-wrong{background:var(--q-wrong-bg);border-color:#f2b3bd;color:var(--q-wrong)}
.btr-quiz .btr-dot.is-current{border-color:var(--q-ink);color:var(--q-ink)}
.btr-quiz .btr-dot.is-flagged::after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:var(--q-flag);border:2px solid #fff}
.btr-grid-submit{margin-left:auto}

/* results */
.btr-quiz h3.btr-res-title{margin:0 0 .25em;font-size:1.3em;outline:none}
.btr-score{margin:0 0 .6em;color:var(--q-muted)}
.btr-score strong{font-size:2.4em;line-height:1;color:var(--q-ink);margin-right:.15em;vertical-align:-.1em}
.btr-meter{position:relative;height:14px;background:var(--q-bg);border-radius:99px;margin:1.6em 0 .9em}
.btr-meter-fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px}
.btr-meter-fill.is-pass{background:var(--q-right)}
.btr-meter-fill.is-fail{background:#f08c00}
.btr-meter-mark{position:absolute;top:-6px;bottom:-6px;width:3px;margin-left:-1px;background:var(--q-ink);border-radius:2px}
.btr-meter-mark em{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-style:normal;font-size:.72em;font-weight:700;color:var(--q-ink);white-space:nowrap;margin-bottom:2px}
.btr-res-msg{margin:.25em 0}
.btr-res-meta{display:flex;flex-wrap:wrap;gap:.4em 1.2em;color:var(--q-muted);font-size:.9em;margin:.4em 0}
.btr-next{margin:.25em 0 1em;font-weight:600}
.btr-review{margin-top:1.25em}
.btr-quiz .btr-review h3{font-size:1.1em;margin:0 0 .6em}
.btr-rev-list{margin:0;padding:0;list-style:none;display:grid;gap:.75em}
.btr-rev{border:1px solid var(--q-line);border-left:5px solid var(--q-wrong);border-radius:10px;padding:.8em 1em;background:#fff}
.btr-rev.is-right{border-left-color:var(--q-right)}
.btr-rev p{margin:0 0 .35em}
.btr-rev p:last-child{margin-bottom:0}
.btr-rev-q{font-weight:650}
.btr-rev-n{color:var(--q-muted)}
.btr-rev-flag{color:var(--q-flag);font-size:.85em;font-weight:600}
.btr-rev-label{color:var(--q-muted);font-size:.9em}
.btr-rev-c{color:var(--q-right)}
.btr-rev-exp{color:#2b3950;font-size:.95em;white-space:pre-line}
.btr-review-all{margin-top:1.25em}
.btr-review-all summary,.btr-quiz-list summary{cursor:pointer;font-weight:700;color:var(--q-primary);padding:.4em 0}
.btr-review-all .btr-rev-list{margin-top:.75em}
.btr-perfect{font-weight:600;color:var(--q-right)}

/* static study list (crawlable, works without JS) */
.btr-quiz-list{border-top:1px solid var(--q-line);padding:.75em 1.25em 1em;background:#fbfcfe}
.btr-quiz-list ol{margin:.75em 0 0 1.25em;padding:0}
.btr-quiz-list li{margin:0 0 1em}
.btr-quiz-list .btr-sl-q{font-weight:650;margin:0 0 .3em}
.btr-quiz-list ul{list-style:none;margin:0 0 .3em;padding:0}
.btr-quiz-list ul li{margin:0 0 .15em}
.btr-quiz-list .btr-sl-ans{margin:0;font-size:.95em;color:#2b3950}
.btr-quiz-list .btr-sl-ans strong{color:var(--q-right)}
@media (max-width:480px){.btr-quiz-head{padding:.8em 1em;gap:.5em}.btr-quiz-head h2{font-size:1.02em}.btr-quiz-head .btr-quiz-badge{font-size:.7em;padding:.2em .6em}.btr-quiz{font-size:16px;border-radius:12px;margin-left:-6px;margin-right:-6px}.btr-quiz-app{padding:1em}.btr-nav .btr-btn{flex:1}.btr-nav .btr-grid-toggle{order:3;flex-basis:100%}}
@media (prefers-reduced-motion:reduce){.btr-quiz *{animation:none!important;transition:none!important}}
@media print{.btr-quiz-app,.btr-quiz-head{display:none}.btr-quiz-list[open],.btr-quiz-list{display:block}}
