/* SPRINT-37 (brief 15): the exam platform's surfaces in the portal. Same
   tokens as frontend/kit/tokens.css through the portal's --gy-* variables. */
.eb-filters{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px;}
.eb-filters select{min-height:44px; border:1px solid var(--gy-border); border-radius:10px; padding:6px 10px; font:inherit; font-size:14px; background:#fff; color:var(--gy-ink);}
.eb-count{font-size:14px; color:var(--gy-ink-soft); margin:0 0 10px;}
.eb-count b{color:var(--gy-teal-hover);}
.eb-set{display:flex; gap:14px; align-items:flex-start; padding:14px 16px; background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); margin-bottom:10px;}
.eb-set .eb-kind{flex:0 0 auto; font-size:12px; font-weight:bold; color:var(--gy-teal-hover); background:var(--gy-teal-soft); border-radius:999px; padding:4px 10px; min-width:64px; text-align:center;}
.eb-set .eb-main{flex:1 1 auto; min-width:0;}
.eb-set h3{margin:0 0 4px; font-size:16px;}
.eb-set .meta{font-size:13px; color:var(--gy-ink-soft);}
.eb-set .eb-actions{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;}
.eb-review{font-size:12px; color:#8F5732; font-weight:bold;}
.eb-builder{background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); padding:16px 18px; margin:16px 0;}
.eb-builder .eb-row{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:10px;}
.eb-builder label.eb-unit{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--gy-border); border-radius:999px; font-size:14px; cursor:pointer; min-height:40px;}
.eb-builder label.eb-unit.on{background:var(--gy-teal-soft); border-color:var(--gy-teal);}
.eb-plan{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; margin:10px 0;}
.eb-plan .eb-stat{background:var(--gy-cream,#F9F8F4); border-radius:10px; padding:10px 12px; font-size:13px;}
.eb-plan .eb-stat b{display:block; font-size:20px; color:var(--gy-teal-hover);}
.eb-short{color:#8F5732; font-size:13px;}
/* preview */
.eb-preview{background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); padding:18px 20px; margin-top:12px;}
.eb-preview .eb-q{margin:12px 0; padding-top:10px; border-top:1px solid var(--gy-border);}
.eb-preview .eb-q .eb-tags{font-size:12px; color:var(--gy-ink-soft); margin-top:4px;}
.eb-preview .eb-key{color:var(--gy-teal-hover); font-weight:bold;}
.eb-why{font-size:13px; color:var(--gy-ink-soft); margin-top:6px;}
/* passage */
.eb-passage{font-size:var(--gy-fs-body,18px); line-height:1.6; max-width:var(--gy-measure,620px);}
.eb-passage .eb-part{display:flex; gap:12px; margin-bottom:10px;}
.eb-passage .eb-n{flex:0 0 28px; color:var(--gy-ink-soft); font-size:13px; text-align:right; padding-top:4px;}
.eb-passage .eb-lines{white-space:pre-wrap;}
.eb-passage .eb-heading{font-weight:bold;}
.eb-glossary{font-size:14px; color:var(--gy-ink-soft); margin-top:10px; padding-top:8px; border-top:1px dashed var(--gy-border);}
.eb-byline{font-size:14px; color:var(--gy-ink-soft); margin-bottom:8px;}
.eb-pointer{background:var(--gy-teal-soft); border-radius:10px; padding:12px 14px; font-size:15px;}
.eb-stub{background:#FBEEE2; border-left:4px solid #E08A4F; border-radius:8px; padding:10px 12px; font-size:14px; margin-bottom:10px;}
audio.eb-audio{width:100%; margin:8px 0 12px;}
.exam-pass .gy-ap, .eb-set .gy-ap{margin:8px 0 12px;} /* SPRINT-113: the shared player */
/* the exam player */
.exam-set{margin-bottom:28px; padding-bottom:18px; border-bottom:2px solid var(--gy-border);}
.exam-set .exam-set-head{font-size:13px; font-weight:bold; color:var(--gy-teal-hover); letter-spacing:.3px; margin-bottom:8px;}
.exam-set-grid{display:grid; grid-template-columns:minmax(0,1fr); gap:18px;}
@media(min-width:1100px){ .exam-set-grid{grid-template-columns:minmax(0,520px) minmax(0,1fr);} .exam-set-grid .exam-pass{position:sticky; top:10px; max-height:calc(100vh - 20px); overflow:auto; padding-right:8px;} }
.exam-result{background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); padding:16px 18px; margin:14px auto; max-width:640px;}
.exam-result table{width:100%; border-collapse:collapse; font-size:14px;}
.exam-result td, .exam-result th{padding:7px 8px; border-bottom:1px solid var(--gy-border); text-align:left;}
.exam-result .review{color:#8F5732; font-weight:bold;}
.exam-result .ok{color:var(--gy-teal-hover);}
/* results and analysis */
.eb-bars .eb-bar-row{display:grid; grid-template-columns:minmax(120px,220px) 1fr 60px; gap:10px; align-items:center; padding:6px 0; border-bottom:1px solid var(--gy-border); font-size:14px;}
.eb-bars .eb-bar{height:10px; background:#EFEBE2; border-radius:5px; overflow:hidden;}
.eb-bars .eb-bar i{display:block; height:100%; background:var(--gy-teal);}
.eb-bars .eb-bar i.low{background:#E08A4F;}
.eb-picks{font-size:12px; color:var(--gy-ink-soft);}
.eb-picks b{color:var(--gy-teal-hover);}
.eb-analysis-head{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:12px 0;}
.eb-analysis-head label{display:inline-flex; gap:8px; align-items:center; font-size:14px;}
.eb-cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin:12px 0;}
.eb-cards .eb-card{background:#fff; border:1px solid var(--gy-border); border-radius:10px; padding:12px 14px;}
.eb-cards .eb-card b{display:block; font-size:26px; color:var(--gy-teal-hover);}
.eb-cards .eb-card.warm{background:#FBEEE2;}
.eb-table{width:100%; border-collapse:collapse; font-size:14px; background:#fff;}
.eb-table th, .eb-table td{padding:7px 9px; border-bottom:1px solid var(--gy-border); text-align:left; vertical-align:top;}
.eb-table th{color:var(--gy-teal-hover); background:var(--gy-teal-soft);}
.eb-upload{background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); padding:16px 18px; margin:12px 0;}
.eb-upload input[type=file]{font:inherit; min-height:44px; max-width:100%; box-sizing:border-box;}
.eb-upload input[type=text]{min-height:44px; border:1px solid var(--gy-border); border-radius:10px; padding:6px 10px; font:inherit; font-size:14px; width:100%; box-sizing:border-box;}
.eb-keybox{font-family:ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:2px;}
.eb-note{font-size:13px; color:var(--gy-ink-soft);}
.eb-hidden{display:none;}
@media(max-width:760px){ .eb-set{flex-direction:column;} .eb-set .eb-actions{justify-content:flex-start;} .eb-bars .eb-bar-row{grid-template-columns:1fr 50px;} .eb-bars .eb-bar-row .eb-bar{grid-column:1 / span 2;} }

/* SPRINT-37 gate: 44px targets on the phone, tables scroll inside a focusable region */
.eb-table-wrap{overflow-x:auto; max-width:100%;}
.eb-table-wrap:focus-visible{outline:3px solid var(--gy-teal, #138072); outline-offset:2px;}
#course-bank-panel input[type=text], #course-bank-panel select, #exam-analysis-body input, #exam-analysis-body select{min-height:44px; box-sizing:border-box;}
/* SPRINT-40: pools and assigned status */
.eb-pool{display:inline-block; font-size:11px; font-weight:bold; letter-spacing:.3px; border-radius:999px; padding:2px 8px; margin-left:8px; vertical-align:middle;}
.eb-pool-practice{color:#2F5E93; background:#E8F0F9;}
.eb-pool-reserved{color:#6B4685; background:#F0EAF6;}
.eb-assigned{font-size:12px; color:var(--gy-teal-hover); font-weight:bold;}
.eb-practice-q{background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); padding:12px 14px; margin:10px 0;}
.eb-practice-q .opt{display:block; padding:6px 0;}
.eb-practice-q .eb-key-mark{color:var(--gy-teal-hover); font-weight:bold;}
.eb-practice-q .eb-pick-wrong{color:#8F5732; font-weight:bold;}
.eb-practice-q .eb-explain{font-size:14px; color:var(--gy-ink-soft); margin-top:6px; padding-top:6px; border-top:1px dashed var(--gy-border);}
.eb-round-card{background:#fff; border:1px solid var(--gy-border); border-radius:var(--radius); padding:14px 16px; margin-bottom:10px; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;}

/* SPRINT-38: table or chart part of a stimulus (figures from an open data source; the source line prints under it). */
.eb-table-wrap{overflow-x:auto; max-width:100%;}
.eb-table-caption{font-weight:700; margin-bottom:6px;}
.eb-table{border-collapse:collapse; font-size:15px; min-width:260px;}
.eb-table th,.eb-table td{border:1px solid var(--gy-line,#d9ded9); padding:6px 10px; text-align:left; vertical-align:top;}
.eb-table thead th{background:var(--gy-surface-2,#f3f6f3);}
.eb-table td:not(:first-child),.eb-table th:not(:first-child){text-align:right;}
.eb-table-source{font-size:13px; color:var(--gy-ink-soft); margin-top:6px;}
/* SPRINT-45 (brief 20): per-class status lines on the bank page. */
.eb-open{font-size:12px; color:#2F5E93; font-weight:bold;}
.eb-unused{font-size:12px;}
.eb-main > .btn{margin-top:6px;}

.eb-mix{font-size:14px; font-weight:700; color:var(--gy-ink); margin:8px 0 2px;}
/* SPRINT-85 (brief 32, E1-E2): Options under the builder; the filters as
   narrow selects (each as wide as its longest option, never full width). */
.eb-filters select{width:auto; max-width:100%;}
.eb-options{margin:4px 0 10px;}
.eb-options > summary{cursor:pointer; font-weight:bold; min-height:40px; display:flex; align-items:center;}
.eb-options .eb-opt{display:flex; flex-direction:column; gap:4px; font-size:14px;}
.eb-options select, .eb-builder .eb-row select{width:auto; max-width:100%;}
.eb-h{font-size:18px; margin:0 0 10px;}
/* SPRINT-86 (E1, E2): the live skip line under Build exam, and the seen model on the list. */
.eb-seen-line{font-size:14px; color:var(--gy-ink); margin:6px 0 10px;}
.eb-seen-model{font-size:14px; max-width:760px; margin:0 0 12px;}
