.ocbt { --ocbt-primary: #2b5cd9; --ocbt-ink: #14181f; --ocbt-muted: #505b6b; --ocbt-line: #cfd4dc; color: var(--ocbt-ink); background: #fff; max-width: 1040px; margin: 32px auto; padding: 32px; border: 1px solid var(--ocbt-line); border-radius: 7px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
.ocbt *, .ocbt *::before, .ocbt *::after { box-sizing: border-box; }
.ocbt h2, .ocbt h3, .ocbt h4 { color: var(--ocbt-ink); font-family: inherit; line-height: 1.25; font-weight: 650; letter-spacing: normal; text-transform: none; }
.ocbt h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 16px; }
.ocbt h3 { font-size: 23px; margin: 32px 0 16px; }
.ocbt h4 { font-size: 20px; margin: 0 0 8px; }
.ocbt p { max-width: 72ch; margin: 10px 0 18px; }
.ocbt .ocbt-identity, .ocbt .ocbt-status { color: var(--ocbt-muted); }
.ocbt label[for=ocbt-programme] { display: block; font-weight: 600; margin-bottom: 8px; }
.ocbt select { min-height: 46px; font: inherit; color: var(--ocbt-ink); background: #fff; border: 1px solid #6f7a89; border-radius: 5px; padding: 8px 36px 8px 12px; min-width: 200px; }
.ocbt button, .ocbt .ocbt-button { font: inherit; font-weight: 600; line-height: 1.4; min-height: 46px; border-radius: 5px; border: 1px solid var(--ocbt-primary); cursor: pointer; padding: 11px 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; margin: 8px 12px 8px 0; transition: background-color 120ms ease-out; }
.ocbt .ocbt-button { background: var(--ocbt-primary); color: #fff; }
.ocbt .ocbt-button:hover { background: #1f47ad; }
.ocbt .ocbt-secondary { color: #214caf; background: #fff; }
.ocbt .ocbt-secondary:hover { background: #eaf0ff; }
.ocbt button:disabled { cursor: not-allowed; background: #e2e5ea; color: #505b6b; border-color: #b7bfcc; }
.ocbt :focus-visible { outline: 3px solid #14181f; outline-offset: 4px; }
.ocbt .ocbt-course { padding: 26px 0; border-top: 1px solid var(--ocbt-line); }
.ocbt .ocbt-course p { margin: 8px 0; }
.ocbt .ocbt-exam-bar { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; position: sticky; top: 0; z-index: 3; background: #fff; padding: 20px 0; border-bottom: 1px solid var(--ocbt-line); }
.ocbt .ocbt-exam-bar { flex-wrap: wrap; gap: 12px 24px; padding: 16px 0; }
.ocbt .ocbt-exam-bar h2 { flex: 1; min-width: 0; }
.ocbt .ocbt-feedback { flex-basis: 100%; min-width: 0; }
.ocbt .ocbt-feedback p { max-width: none; margin: 0 0 8px; overflow-wrap: anywhere; }
.ocbt .ocbt-recovery { display: flex; flex-wrap: wrap; gap: 8px; }
.ocbt .ocbt-recovery button, .ocbt .ocbt-recovery a { min-height: 44px; margin: 0; padding: 8px 12px; }
.ocbt .ocbt-recovery a:not([hidden]) { display: inline-flex; align-items: center; border: 1px solid var(--ocbt-primary); border-radius: 5px; font-weight: 600; text-decoration: none; }
.ocbt .ocbt-recovery [hidden] { display: none; }
body.admin-bar .ocbt .ocbt-exam-bar { top: 32px; }
.ocbt .ocbt-exam-bar h2 { font-size: clamp(20px, 3vw, 28px); margin: 0; overflow-wrap: anywhere; }
.ocbt .ocbt-clock { flex-shrink: 0; text-align: right; }
.ocbt .ocbt-clock span { display: block; font-size: 13px; color: var(--ocbt-muted); }
.ocbt .ocbt-clock strong { display: block; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ocbt .ocbt-question-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; }
.ocbt .ocbt-question-nav button { min-width: 44px; margin: 0; padding: 8px; }
.ocbt .ocbt-question-nav .ocbt-answered { background: #eaf0ff; border-width: 2px; color: #173c95; }
.ocbt .ocbt-question { border: 0; border-top: 1px solid var(--ocbt-line); padding: 24px 0 32px; margin: 16px 0; min-width: 0; scroll-margin-top: var(--ocbt-header-offset, 160px); }
.ocbt legend { width: 100%; padding: 16px 0 0; margin-bottom: 16px; font-size: 18px; font-weight: 600; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ocbt .ocbt-choice { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 48px; padding: 12px; margin: 8px 0; border: 1px solid var(--ocbt-line); border-radius: 5px; }
.ocbt .ocbt-choice:hover { background: #f5f6f8; }
.ocbt .ocbt-choice:has(input:checked) { background: #eaf0ff; border-color: #2b5cd9; }
.ocbt .ocbt-choice:has(input:disabled) { cursor: not-allowed; }
.ocbt .ocbt-choice input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--ocbt-primary); margin-top: 3px; }
.ocbt .ocbt-choice span { overflow-wrap: anywhere; white-space: pre-wrap; }
.ocbt .ocbt-text-answer { display: block; width: min(100%, 640px); min-height: 48px; margin-top: 8px; padding: 10px 12px; font: inherit; color: var(--ocbt-ink); background: #fff; border: 1px solid #6f7a89; border-radius: 5px; }
.ocbt .ocbt-error { color: #931b2a; background: #fff2f3; padding: 12px 16px; border: 1px solid #cf8390; }
.ocbt .ocbt-grade { font-size: 32px; font-weight: 650; }
.ocbt .ocbt-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ocbt li { margin-bottom: 12px; max-width: 72ch; }
@media (max-width: 600px) {
  .ocbt { margin: 12px 0; padding: 20px 16px; border-radius: 0; }
  .ocbt .ocbt-exam-bar { gap: 12px; padding-top: 12px; }
  .ocbt .ocbt-clock strong { font-size: 24px; }
  .ocbt .ocbt-clock span { font-size: 12px; }
  .ocbt button, .ocbt .ocbt-button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ocbt button { transition: none; } }
