@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#111214;--panel:#1b1d20;--line:#3b3e45;--text:#f3f4f6;--muted:#b0b3bb;--accent:#6268e6;--accent-end:#8260cd;--accent-gradient:linear-gradient(120deg,var(--accent),var(--accent-end));--accent-border:#7770dd;--accent-soft:#29283d;--highlight:#ffda73;--red:#df8d7d;--blue:#4c7fdb;font-family:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,select,input{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{border:1px solid var(--line);border-radius:9px;color:var(--text);background:transparent;padding:10px 14px;transition:background .15s,border-color .15s}button:hover:enabled{background:#2c2e33;border-color:#686d78}a{color:#a4a2f4}p{line-height:1.6}.masthead{height:84px;display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line);padding:0 3.4vw}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-size:11px;font-weight:700;letter-spacing:2px}.brand small{display:block;letter-spacing:1.1px;color:var(--muted);font-size:8px;margin-top:5px}.mark{font-family:Georgia,serif;font-size:27px;border:1px solid #747984;border-radius:50%;height:44px;width:44px;display:grid;place-items:center;position:relative;letter-spacing:0}.mark span{position:absolute;font-family:system-ui;font-size:10px;right:6px;top:6px;background:var(--bg)}.header-tags{display:flex;gap:16px;align-items:center;font-size:12px}.pill{background:#2b2d32;color:#e1e4eb;border-radius:20px;padding:6px 13px}.muted{color:var(--muted)}.masthead>.quiet{margin-left:auto}.quiet{border:none;color:var(--muted);font-size:12px;padding:8px}.intro{display:flex;align-items:flex-end;justify-content:space-between;padding:32px 0 27px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#aeb8d0;margin:0 0 10px}.intro h1{font-family:Manrope,system-ui;font-size:40px;line-height:1.15;letter-spacing:-1.8px;margin:0;font-weight:500}.dek{font-size:13px;color:var(--muted);margin:10px 0 0}main{max-width:1800px;margin:auto;padding:0 3.4vw}.mode-switch{display:flex;gap:8px;align-items:center}.mode-switch button{border:1px solid #51515d;padding:11px 25px;font-size:12px;min-width:96px;background:#1b1c21;border-radius:9px}.mode-switch .active{color:#fff;background:var(--accent-gradient);border-color:var(--accent-border);font-weight:700}.workspace{display:grid;grid-template-columns:245px minmax(340px,1fr) 280px;gap:14px;min-height:610px}.panel{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.catalog{display:flex;flex-direction:column;max-height:700px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-title h2{font-family:Manrope;font-size:13px;font-weight:600;margin:0}.catalog>.panel-title{padding:20px 17px 16px}.panel-title>span{font-size:10px;color:var(--muted)}.search{display:flex;gap:9px;padding:9px 11px;margin:0 12px;background:#141518;border:1px solid var(--line);border-radius:8px;color:var(--muted)}.search input{width:100%;background:transparent;border:0;color:var(--text);font-size:11px;min-width:0}.filters{display:flex;gap:5px;margin:12px 12px}.filters button{font-size:9px;padding:6px 8px;border:0;display:flex;align-items:center;gap:5px}.filters .active{background:#30343c;color:#f0f2f7}.artery-dot,.vein-dot{width:5px;height:5px;border-radius:50%;display:inline-block}.artery-dot{background:var(--red)}.vein-dot{background:var(--blue)}.target-list{overflow:auto;flex:1;padding:0 9px 10px;min-height:100px}.term-button{display:flex;width:100%;text-align:left;gap:10px;padding:11px 8px;border-color:transparent;border-radius:7px;align-items:flex-start;font-size:11px;color:#d3d5dc;line-height:1.45}.term-button>i{flex:none;margin-top:5px}.term-button .term-meta{display:block;font-size:8px;color:#9b9fa9;margin-top:2px;letter-spacing:.3px}.term-button.selected{background:var(--accent-soft);border-color:var(--accent-border);color:#f3f5fa}.term-button .ready{color:#d9e2f8}.catalog-note{display:flex;align-items:flex-start;gap:8px;padding:14px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);line-height:1.5}.status-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);margin-top:4px;flex:none}.specimen{position:relative;background:radial-gradient(ellipse at 50% 40%,#2d2f34,#1f2125 62%,#17181b);min-height:610px}.scene-top{position:absolute;z-index:2;left:20px;right:20px;top:19px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;pointer-events:none}.scene-top>*{pointer-events:auto}.specimen-label{display:flex;flex-direction:column;gap:3px;max-width:65%;font-size:10px;color:#d2d4db}.specimen-label .eyebrow{font-size:8px;letter-spacing:1.6px;color:#a9adb7;margin:0 0 4px}.vr-button{font-size:11px;background:#202226dd;border-color:#666c78;white-space:nowrap}#viewport{position:absolute;inset:0}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}.scene-bottom{position:absolute;z-index:2;bottom:14px;left:20px;right:16px;display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#b4b7bf;gap:10px}.scene-bottom button{font-size:9px}.scene-status{position:absolute;bottom:58px;left:20px;right:20px;max-width:480px;pointer-events:none;font-size:10px;line-height:1.5;color:#d5d7dd}.scene-status.error{color:#f4b4a8}.details{display:flex;flex-direction:column;gap:14px}.details>.panel{padding:20px}.body-copy{font-size:11px;color:var(--muted);line-height:1.7}.small-tag{font-size:8px!important;border:1px solid var(--line);border-radius:3px;padding:3px 5px;white-space:nowrap}.field-label{display:block;font-size:9px;letter-spacing:.3px;color:#d1d4dc;margin:18px 0 7px}select{width:100%;padding:10px 8px;border:1px solid #595f6b;border-radius:7px;background:#202226;color:var(--text);font-size:10px}select option{background:#202226}.exposure h3{font-size:12px;font-weight:500;line-height:1.5;margin:15px 0 6px}.exposure ul{padding-left:15px;color:var(--muted);font-size:10px;line-height:1.7}.exposure .source-link{font-size:9px}.exposure-detail-note{font-size:9px;line-height:1.6;color:#bbb8b0}.wide{width:100%;margin-top:15px;font-size:11px;padding:10px}.primary{background:var(--accent-gradient);color:#fff;border-color:var(--accent-border);font-weight:700}.primary:hover:enabled{background:linear-gradient(120deg,#7076ee,#916fda);border-color:#9c91e7;color:#fff}.secondary{background:#2a2d34;border-color:#626975;color:#e1e4ec}.selected-card h2{font-family:Manrope;font-size:19px;font-weight:500;letter-spacing:-.5px;line-height:1.4;margin:5px 0 12px}.selected-card .badge{display:inline-block;border:1px solid #555a64;background:#2a2d34;color:#d6d9e2;border-radius:4px;padding:3px 6px;font-size:8px}.selected-card .badge.ready{background:var(--accent-soft);border-color:var(--accent-border);color:#e0e7f8}.small{font-size:10px;color:var(--muted);line-height:1.6}#quiz-options{display:flex;flex-direction:column;gap:7px}#quiz-options button{font-size:11px;text-align:left}#quiz-options button.correct{background:#344b32;border-color:#a8c68d}#quiz-options button.incorrect{background:#4b302c;border-color:#bd8176}#quiz-feedback{font-size:11px;line-height:1.6;margin-top:12px}.project-state{display:flex;align-items:center;gap:38px;border-top:1px solid var(--line);margin-top:27px;padding:23px 0}.project-state>div{min-width:230px}.project-state .eyebrow{font-size:8px}.project-state h2{font-family:Manrope;font-size:16px;font-weight:400;letter-spacing:-.4px;margin:0}.project-state p{font-size:10px;color:var(--muted);max-width:630px;line-height:1.8;margin:0}.project-state button{margin-left:auto;white-space:nowrap}footer{display:flex;justify-content:space-between;padding:20px 3.4vw;border-top:1px solid var(--line);font-size:9px;color:#9096a2}dialog{max-width:680px;width:calc(100% - 40px);max-height:85vh;background:var(--panel);color:var(--text);border:1px solid #616772;border-radius:16px;padding:26px;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#090a0cbb;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.dialog-head h2{font-family:Manrope;font-size:25px;font-weight:400;margin:0}dialog p,dialog li{font-size:12px;line-height:1.7;color:var(--muted)}dialog h3{font-size:14px;margin-top:25px}dialog input[type=file]{max-width:100%;font-size:11px}dialog a{overflow-wrap:anywhere}.empty-list{font-size:11px;padding:12px;color:var(--muted)}[hidden]{display:none!important}
@media(min-width:1650px){.workspace{grid-template-columns:270px minmax(340px,1fr) 310px;min-height:690px}.specimen{min-height:690px}.catalog{max-height:800px}.details>.panel{padding:24px}.term-button{font-size:12px;padding:13px 9px}}
@media(max-width:1120px){.workspace{grid-template-columns:210px minmax(300px,1fr)}.details{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.specimen{min-height:570px}.catalog{max-height:570px}.intro h1{font-size:34px}.project-state{flex-wrap:wrap;gap:20px}.project-state button{margin-left:0}.header-tags .muted{display:none}}
@media(max-width:650px){main{padding:0 14px}.masthead{padding:0 16px;height:70px;gap:15px}.brand{font-size:9px}.brand small{font-size:6px}.header-tags{margin-left:auto}.masthead>.quiet{margin-left:0}.intro{padding-top:24px}.intro h1{font-size:30px}.dek{font-size:10px}.mode-switch button{padding:8px 12px;font-size:10px}.workspace{display:flex;flex-direction:column}.specimen{order:-1;min-height:460px}.catalog{max-height:360px}.details{display:flex}.scene-top{left:14px;right:14px}.scene-bottom{left:14px}.scene-help{max-width:180px}.project-state{margin-top:24px;padding-bottom:22px}footer span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.view-controls{position:absolute;z-index:2;left:20px;bottom:88px;display:flex;gap:5px;flex-wrap:wrap;max-width:90%}.view-controls button{font-size:9px;padding:6px 10px;background:#1b1d21dd}.view-controls .active{border-color:var(--accent-border);color:#edf1fa}.highlight-dot{width:5px;height:5px;border-radius:50%;background:var(--highlight)}.reconstruction-pill{background:#303137;color:#d5d7de;font-size:9px}.term-button{font-size:12px}.term-button .term-meta{font-size:9px}.body-copy{font-size:12px}select{font-size:11px}.scene-status{bottom:49px}.selected-card h2{font-size:20px}.model-summary{font-size:10px}

@media(min-width:1121px){.workspace{height:calc(100dvh - 260px);min-height:480px;max-height:900px}.specimen{min-height:0;height:100%}.catalog{max-height:none;height:100%}.details{max-height:100%;overflow-y:auto}.details .selected-card{order:-1;flex-shrink:0}.details .exposure{flex-shrink:0}.view-controls{bottom:84px}}
.side-filters{display:flex;gap:5px;margin:0 12px 12px;padding-top:9px;border-top:1px solid var(--line)}.side-filters button{flex:1;font-size:10px;padding:7px 5px;border-color:transparent}.side-filters .active{background:#30343c;border-color:#565d69;color:#f0f2f7}.view-controls{max-width:calc(100% - 40px)}#quiz-card .eyebrow{line-height:1.6}#quiz-options button{min-height:43px}#quiz-feedback{color:#e0e3ea}
.species-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:-5px 0 18px}.species-selector{display:flex;gap:6px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#1b1d20}.species-selector button{border:0;min-width:80px;padding:9px 19px;font-size:12px}.species-selector button.active{background:var(--accent-gradient);color:#fff;font-weight:700}.species-bar p{font-size:10px;color:var(--muted);margin:0}.species-loading{position:absolute;inset:0;z-index:5;background:#1b1d20;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:var(--text)}.species-loading p{max-width:330px;font-size:15px}.species-loading>span:last-child{color:var(--muted);font-size:11px}.loading-mark{font-size:40px;color:#9385e8}.species-differences>h2{font-family:Manrope;font-size:17px;font-weight:500;margin:0 0 12px}.species-differences h3{font-size:12px;font-weight:600;margin:15px 0 5px}.species-differences .source-link{font-size:10px}.species-differences p{font-size:11px;line-height:1.7;color:var(--muted)}.answer-comment{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:9px}.workspace[aria-busy=true] .scene-top{visibility:hidden}@media(min-width:1121px){.workspace{height:calc(100dvh - 324px)}}@media(max-width:650px){.species-bar{align-items:flex-start;gap:10px;flex-direction:column}.species-selector{width:100%}.species-selector button{flex:1;min-width:0}.header-tags .reconstruction-pill{display:none}.species-bar p{font-size:10px}}

.region-bar{display:flex;align-items:center;gap:14px;margin:-5px 0 14px}.region-bar>.eyebrow{margin:0;color:var(--muted);font-size:8px}.region-selector{display:flex;gap:5px}.region-selector button{padding:8px 16px;font-size:11px;border-radius:7px}.region-selector button.active{background:var(--accent-gradient);border-color:var(--accent-border);color:#fff}.species-bar{margin-top:0}@media(min-width:1121px){.workspace{height:calc(100dvh - 369px)}}@media(max-width:650px){.region-bar{align-items:flex-start;gap:10px;flex-direction:column}.region-selector{width:100%}.region-selector button{flex:1}}

.region-dot{display:inline-block;width:6px;height:6px;border:1px solid #dfc77d;border-radius:1px;flex-shrink:0}

.target-landmarks h3{font-size:11px;margin:14px 0 6px}.target-landmarks ul{font-size:11px;line-height:1.6;color:var(--muted);padding-left:16px}.filters{flex-wrap:wrap}

.master-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 3.4vw;background:#1b1d20;border-bottom:1px solid #565d69}.master-bar .eyebrow{margin-bottom:4px}.master-bar p{margin:0;color:#d1d4dc;font-size:11px}.master-bar>div{margin-right:auto}.master-bar button{min-height:44px;white-space:nowrap}.master-bar .primary{background:var(--accent-gradient);color:#fff;font-weight:700}.xr-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;pointer-events:auto}.xr-controls label{font-size:10px;color:#d1d4dc}.xr-controls select{max-width:150px;font-size:11px;padding:9px;background:#17181b;color:#f3f4f6;border:1px solid var(--accent-border);border-radius:8px}#progress-dialog textarea{width:100%;color:var(--text);background:#111214;border:1px solid var(--line);border-radius:8px;padding:10px}#progress-dialog textarea{font-size:10px;resize:vertical}#progress-dialog button{margin-top:10px}.masthead{gap:16px}.masthead #progress-toggle{margin-left:auto}.masthead #sources-toggle{margin-left:0}@media(max-width:650px){.master-bar{padding:12px 14px;flex-wrap:wrap}.master-bar>div{width:100%}.master-bar button{font-size:12px}.xr-controls label{display:none}.xr-controls select{max-width:132px}.scene-top{gap:8px}.specimen-label{max-width:43%}.masthead{gap:8px}.masthead .quiet{font-size:10px}}

.master-bar .master-count{display:flex;align-items:center;gap:8px;margin:0}.master-count label{font-size:11px;white-space:nowrap}.master-count label span{display:block;font-size:9px;color:#b8bcc6;margin-top:3px}.master-count input{width:66px;min-height:44px;padding:8px;color:#f3f4f6;background:#151619;border:1px solid #5b626f;border-radius:7px}#quiz-feedback .source-link{display:inline-block;margin:8px 8px 0 0;font-size:10px}@media(max-width:650px){.master-bar .master-count{width:auto}.master-bar>div:first-child{width:100%}}

.display-controls{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid var(--line);border-radius:11px;padding:11px 15px;margin:0 0 14px;background:#1b1d20}.physical-scale{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:42px}.physical-scale>span:first-child{font-size:12px;font-weight:600;color:#e7e9ef}.physical-scale .scale-disclaimer{font-size:10px;color:var(--muted)}.physical-scale button,.limb-spacing-controls>button{min-height:42px;font-size:11px}.limb-spacing-controls{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;flex:1;justify-content:flex-end}.spacing-panel{max-width:540px;flex:1;min-width:260px}.spacing-range{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;align-items:center;column-gap:12px}.spacing-range label{font-size:11px;color:#d5d8e0}.spacing-range output{font-size:11px;color:#dce4f7;text-align:right}.spacing-range input{grid-column:1/3;width:100%;min-height:44px;accent-color:var(--accent);cursor:pointer}.spacing-range button{grid-column:3;grid-row:1/3;min-height:44px;white-space:nowrap}.spacing-panel p{margin:0;font-size:10px}@media(min-width:1121px){.workspace{height:calc(100dvh - 441px)}}@media(max-width:850px){.display-controls{display:block}.limb-spacing-controls{justify-content:flex-start;margin-top:8px}.spacing-panel{max-width:none}.physical-scale .scale-disclaimer{flex-basis:100%}}@media(max-width:450px){.limb-spacing-controls{display:block}.spacing-panel{margin-top:8px;min-width:0}.spacing-range{grid-template-columns:minmax(110px,1fr) auto}.spacing-range button{grid-column:auto;grid-row:auto}.spacing-range input{grid-column:1/-1}.display-controls{padding:10px 12px}}

.scale-calibration{flex-basis:100%;border-top:1px solid var(--line);padding-top:10px;margin-top:2px}.scale-calibration summary{font-size:11px;cursor:pointer;color:var(--muted);padding:5px 0}.scale-calibration p{max-width:850px;margin:8px 0}.reference-input{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.reference-input label,.reference-input button{font-size:11px}.reference-input input{width:95px;min-height:44px;border:1px solid #5b626f;border-radius:7px;background:#151619;color:var(--text);padding:8px}.reference-input button{min-height:44px}

.vr-guide{margin:0 0 16px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:#1b1d20;color:var(--muted);font-size:11px;line-height:1.7}.vr-guide strong{color:var(--text);font-weight:600}.model-scale{display:grid;grid-template-columns:auto minmax(120px,180px) 43px;align-items:center;gap:9px;font-size:11px}.model-scale input{width:100%;min-height:44px;accent-color:var(--accent);cursor:pointer}.model-scale output{color:#dce4f7;text-align:right}@media(max-width:500px){.model-scale{width:100%;grid-template-columns:auto minmax(100px,1fr) 43px}.vr-guide{font-size:10px}}

.master-type{display:flex;flex-direction:column;gap:4px;min-width:138px}.master-type label{font-size:10px;color:#d1d4dc}.master-type select{font-size:12px}.master-bar .master-count{max-width:260px}.master-count label span{white-space:normal;line-height:1.35}.quiz-navigation{display:flex;gap:8px;margin-top:14px}.quiz-navigation button{flex:1;font-size:12px}.quiz-feedback-popup{border-color:#5f6672;box-shadow:0 12px 36px #0005}.quiz-feedback-popup h2{font-size:15px;margin:0}.feedback-section+ .feedback-section{border-top:1px dashed #68707c;margin-top:12px;padding-top:12px}.feedback-section h3{font-size:12px;margin:0 0 8px}.feedback-section p{white-space:pre-line;line-height:1.6;margin:0}.feedback-correct,.feedback-section .correct{color:#7ee2a5}.feedback-incorrect,.feedback-section .incorrect{color:#ff496f}.feedback-normal{color:#e0e3eb}.feedback-section strong{font-weight:750}.feedback-section u{text-underline-offset:3px}.flow-loop{position:relative;overflow:hidden;height:20px;margin-top:10px;border-top:1px solid #5e6571;text-align:right;color:#d8dbe3}.flow-loop-dot{position:absolute;left:0;top:-4px;width:7px;height:7px;border-radius:50%;background:#f3f4f6;animation:regional-blood-flow 5s linear infinite}@keyframes regional-blood-flow{from{left:-7px}to{left:100%}}@media(prefers-reduced-motion:reduce){.flow-loop-dot{animation:none;left:50%}}@media(min-width:1121px){.details:has(#quiz-card:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr);align-content:start;overflow:visible;position:relative}.quiz-feedback-popup:not([hidden]){position:absolute;right:calc(100% + 14px);top:0;width:300px;max-height:min(650px,80vh);overflow:auto;z-index:5}}

/* The quiz builder replaces the two study actions in the introductory row. */
.study-actions{display:flex;justify-content:flex-end;min-width:0}.intro-copy{min-width:0}.intro.quiz-building{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:30px;padding-top:24px;padding-bottom:22px}.intro.quiz-building .intro-copy{padding-top:5px}.intro.quiz-building h1{font-size:32px}.intro.quiz-building .study-actions{display:block;width:min(100%,1100px);margin-inline:auto}.quiz-setup{width:100%;padding:20px;border:1px solid #555264;border-radius:14px;background:linear-gradient(145deg,#24232c,#1c1d23 66%);box-shadow:0 12px 40px #0002}.quiz-setup-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.quiz-setup .eyebrow{color:#b7acec;margin:0 0 5px;font-size:9px}.quiz-setup h2{margin:0;font:500 22px Manrope,system-ui;letter-spacing:-.6px}.quiz-setup p{font-size:11px;color:#bdc0cd;line-height:1.5;margin:7px 0 0}.quiz-setup-heading>.quiet{margin-top:-3px;padding:7px 9px}.quiz-scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0}.quiz-setup fieldset{margin:0;border:0;padding:0;min-width:0}.quiz-setup legend{font-size:10px;font-weight:650;color:#c6c8d3;margin-bottom:8px}.quiz-scope-options{display:flex;gap:7px;flex-wrap:wrap}.quiz-scope-options button{min-height:40px;min-width:75px;background:#1a1b20;border-color:#4d4c59;font-size:11px;padding:9px 12px}.quiz-scope-options button.selected{background:linear-gradient(120deg,#363957,#3b3050);color:#fff;border-color:var(--accent-border);font-weight:700}.quiz-scope-options button.selected:before{content:'✓ ';font-weight:750;color:#c4bafb}.quiz-setup-footer{display:flex;align-items:end;gap:14px;flex-wrap:wrap;border-top:1px solid #46434f;padding-top:15px}.quiz-setup-footer .master-type{width:145px;min-width:130px;flex:1}.quiz-setup-footer .master-type label{font-size:10px}.quiz-setup-footer .master-type select{font-size:11px;min-height:40px}.quiz-setup-footer .master-count{display:flex;gap:8px;align-items:center;flex:1.4;min-width:220px;max-width:none}.quiz-setup-footer .master-count label{white-space:normal;font-size:10px}.quiz-setup-footer .master-count label strong{display:block;font-weight:600}.quiz-setup-footer .master-count label span{font-size:9px;line-height:1.4;max-width:190px}.quiz-setup-footer .master-count input{width:54px;min-height:40px;padding:7px}.quiz-setup-footer .master-count .quiet{padding:7px 0;font-size:10px;white-space:nowrap}.quiz-setup-footer .primary{min-height:40px;padding:10px 18px;margin-left:auto;font-size:11px}.quiz-setup #quiz-setup-status{margin:10px 0 0;min-height:1.5em;color:#bdb8cf}.quiz-setup #quiz-setup-status:empty{display:none}
/* Selected species and regions occupy stable cells in the model preview. */
.quiz-preview{position:absolute;inset:0;z-index:3;background:radial-gradient(ellipse at 50% 40%,#292932,#1d1e24 65%,#17181c);overflow:hidden}.quiz-preview-grid{position:absolute;inset:18px 14px;display:grid;grid-template-columns:58px repeat(3,minmax(0,1fr));grid-template-rows:30px repeat(3,minmax(105px,1fr));gap:8px;isolation:isolate}.quiz-preview-heading{display:flex;align-items:center;justify-content:center;color:#d5d2e3;font-size:11px;font-weight:600;letter-spacing:.3px}.quiz-preview-row-label{display:flex;align-items:center;justify-content:flex-start;color:#a7a5b6;font-size:10px;line-height:1.4}.quiz-preview-cell{min-width:0;min-height:0;border:1px solid transparent;border-radius:12px;position:relative}.quiz-preview-cell[data-selected=true]{border-color:#5b566f80;background:linear-gradient(155deg,#3a354628,#1f202408)}.quiz-preview-cell[data-selected=false]{background:transparent}.quiz-preview-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:1}.specimen.quiz-preview-active #viewport,.specimen.quiz-preview-active .scene-top,.specimen.quiz-preview-active .scene-bottom,.specimen.quiz-preview-active .scene-status,.specimen.quiz-preview-active .view-controls{visibility:hidden;pointer-events:none}.workspace.quiz-preview-active{grid-template-columns:minmax(0,1fr)}.workspace.quiz-preview-active .catalog,.workspace.quiz-preview-active .details{display:none}.workspace.quiz-preview-active .specimen{min-height:460px;order:0}#study-main.quiz-building>.collection-controls,#study-main.quiz-building>.display-controls{display:none}
@media(max-width:1250px) and (min-width:1001px){.quiz-setup-footer .master-type{flex-basis:calc(50% - 14px)}.quiz-setup-footer .master-count{flex-basis:calc(50% - 14px)}.quiz-setup-footer .primary{min-width:145px}}
@media(max-width:1000px){.intro.quiz-building{grid-template-columns:1fr;gap:18px}.intro.quiz-building .intro-copy{padding-top:0}.intro.quiz-building .study-actions{width:100%}.intro.quiz-building h1{font-size:32px}.quiz-setup-footer .master-type{min-width:140px}}
@media(max-width:650px){.study-actions{flex-shrink:0;margin-left:12px}.mode-switch{gap:6px}.mode-switch button{padding:9px 13px;min-width:70px;font-size:11px}.intro.quiz-building{gap:14px}.intro.quiz-building h1{font-size:28px}.intro.quiz-building .study-actions{margin-left:0}.quiz-setup{padding:16px}.quiz-setup h2{font-size:21px}.quiz-scope-grid{grid-template-columns:1fr;gap:14px;margin:16px 0}.quiz-scope-options button{min-height:42px;flex:1;padding:9px 11px}.quiz-setup-footer{gap:14px}.quiz-setup-footer .master-count{flex-basis:100%;min-width:0;max-width:none}.quiz-setup-footer .master-count label{flex:1}.quiz-setup-footer .master-count label span{max-width:none}.quiz-setup-footer .master-type{flex-basis:calc(50% - 14px);min-width:0}.quiz-setup-footer .primary{width:100%;margin:0}.quiz-preview-grid{inset:14px 10px;grid-template-columns:50px repeat(3,minmax(0,1fr));grid-template-rows:28px repeat(3,minmax(105px,1fr));gap:5px}.quiz-preview-row-label{font-size:9px}.quiz-preview-heading{font-size:10px}.quiz-preview-cell{border-radius:9px}}


#quiz-options.quiz-wordbank{max-height:clamp(340px,48vh,560px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #4b525f;border-radius:8px;padding:7px;scroll-behavior:smooth}#quiz-options.quiz-wordbank button{flex:none;min-height:44px;padding:11px 12px}#quiz-options button.answer-selected{background:#514c2d;border-color:#e2ce6d;box-shadow:inset 3px 0 #f4d35e}#quiz-wordbank-scope{color:#d9dce4;margin:10px 0 8px}#quiz-confirm{min-height:48px;margin-top:12px}.profile-create{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.profile-create label{flex-basis:100%;margin:0}.profile-create input{min-height:44px;flex:1;min-width:120px;background:#151619;color:#f3f4f6;border:1px solid #5b626f;border-radius:7px;padding:9px}.profile-create button{min-height:44px;margin:0!important}#profile-status{font-size:11px}.master-bar #profile-toggle{white-space:normal;max-width:220px;text-align:left;font-size:11px}@media(max-width:650px){#quiz-options.quiz-wordbank{max-height:450px;min-height:320px}.master-bar #profile-toggle{max-width:none}}

.review-exam-schedule{margin:18px 0;padding:12px 14px 14px;border:1px solid #555063;border-radius:11px;background:#1e1e26;min-width:0}.review-exam-schedule legend{padding:0 6px;color:#c7c3da;font-size:10px;font-weight:600}.review-exam-controls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.review-exam-controls .field-label{display:flex;flex-direction:column;gap:7px;margin:0;flex:1;min-width:150px}.review-exam-controls input{width:100%;min-height:44px;padding:9px 10px;border:1px solid #5b5669;border-radius:7px;background:#151619;color:var(--text);font-size:12px}.review-exam-controls input:disabled{opacity:.5;cursor:not-allowed}#progress-dialog .review-exam-controls button{margin:0;min-height:44px;font-size:11px;padding:9px 12px;white-space:nowrap}.review-exam-schedule #review-exam-status{font-size:11px;line-height:1.6;margin:10px 0 0;color:var(--muted)}.review-exam-schedule #review-exam-status:empty{display:none}@media(max-width:500px){.review-exam-schedule{padding:10px 12px 12px}.review-exam-controls .field-label{flex-basis:100%}.review-exam-controls button{flex:1}.review-exam-controls input{font-size:14px}}
.profile-review-list{max-height:260px;overflow:auto;padding-left:20px}.profile-review-list li{padding:5px 0;border-bottom:1px solid #383d47;font-size:11px}

.term-course-comments{display:block;border-top:1px solid #4b525f80;margin-top:7px;padding-top:7px}.term-comment-label{display:block;color:#d5d9e4;font-size:9px;font-weight:650;margin-bottom:3px}.term-course-comment{display:block;color:#b8beca;font-size:10px;line-height:1.55}.term-course-comment+.term-course-comment{margin-top:5px}.course-comments{margin-top:14px;border-top:1px solid #4c535e80;padding-top:10px}.course-comments h3{font-size:11px;color:#dce0e8;margin:0 0 7px;font-weight:650}.course-comment-group+.course-comment-group{margin-top:10px}.course-comment-group>strong{font-size:11px;color:#e0e3eb}.course-comment,.feedback-section p.course-comment{font-size:11px;color:#c4cad5;line-height:1.65;margin:5px 0 0;white-space:pre-line}.selected-card .course-comments h3{font-family:inherit;letter-spacing:normal}.course-comment-group u{text-underline-offset:3px}@media(max-width:650px){.term-course-comment{font-size:11px}.course-comment,.feedback-section p.course-comment{font-size:12px}}

/* Charcoal study shell with restrained indigo and violet accents. */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #9385e8}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}.masthead{height:48px}.intro{padding:24px 0 22px}.masthead .quiet{font-size:11px}.term-button.selected,.filters .active,.side-filters .active{border-color:var(--accent-border)}.filters .active{background:var(--accent-soft);box-shadow:inset 0 -2px var(--accent-border)}.master-bar{padding-top:11px;padding-bottom:11px}.master-bar .eyebrow{color:#c9ced9}.species-selector button.active,.region-selector button.active{color:#fff}.secondary:hover:enabled{background:#343942;border-color:#788292}.view-controls .active{background:var(--accent-soft);color:#fff;border-color:var(--accent-border)}.selected-card .badge.ready{color:#e8eefc}.term-button .term-meta{color:#a8adba}
@media(min-width:1121px){.workspace{height:calc(100dvh - 365px)}}
@media(max-width:650px){.masthead{height:44px}.intro{padding-top:22px}.intro h1{font-size:28px}}
.masthead #import-toggle{margin-left:0}
@media(min-width:900px) and (max-width:1120px){.workspace{grid-template-columns:190px minmax(300px,1fr) 240px;height:calc(100dvh - 365px);min-height:480px;max-height:900px}.catalog{height:100%;max-height:none}.specimen{min-height:0;height:100%}.details{grid-column:auto;display:flex;flex-direction:column;max-height:100%;overflow-y:auto}.details .selected-card{order:-1;flex-shrink:0}.details .exposure{flex-shrink:0}.details>.panel{padding:17px}.details:has(#quiz-card:not([hidden])){position:relative;overflow:visible}.quiz-feedback-popup:not([hidden]){position:absolute;right:calc(100% + 14px);top:0;width:270px;max-height:80vh;overflow:auto;z-index:5}}

.details .selected-card{order:-1}
#target-card{position:relative}#target-card>.eyebrow,#target-card>h2{padding-right:28px}.selection-dismiss{position:absolute;right:12px;top:12px;padding:0;width:28px;height:28px;line-height:1;font-size:20px;color:var(--muted);border-color:transparent}

.quiz-answer-search{margin:12px 0 8px}#quiz-selected-answer{color:var(--text);overflow-wrap:anywhere;margin:6px 0 10px}

#quiz-setup-status:empty{display:none}
.question-artery{color:#ef7777;font-weight:750}.question-vein{color:#7aa7ff;font-weight:750}.question-yellow{color:#f4d35e;font-weight:800}

/* Match the selected vessel's text color to its vascular type. */
#target-card .vessel-kind-artery,.vessel-flow-info .flow-selected-artery,.feedback-artery{color:#ef7777}
#target-card .vessel-kind-vein,.vessel-flow-info .flow-selected-vein,.feedback-vein{color:#7aa7ff}
#target-card .vessel-kind-artery,#target-card .vessel-kind-vein,.vessel-flow-info .flow-selected{font-weight:700}
.vessel-flow-info{line-height:2.2}.vessel-flow-info .flow-term-button{display:inline-block;max-width:100%;margin:3px 1px;padding:5px 9px;border:1px solid #74708f;border-radius:7px;background:#292733;color:#e7e5f1;font:inherit;font-size:inherit;line-height:1.45;text-align:left;vertical-align:baseline;cursor:pointer;box-shadow:0 1px 2px #0004}.vessel-flow-info .flow-term-button:hover:enabled{background:#3a3452;border-color:#b0a0ed;color:#fff}.vessel-flow-info .flow-term-button:focus-visible{outline:2px solid #b0a0ed;outline-offset:3px}.vessel-flow-info .flow-term-button:active{background:#4b4169;transform:translateY(1px)}
/* Keep the collection selectors and optional model settings on compact rows. */
.collection-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 14px}.collection-controls .region-bar,.collection-controls .species-bar{margin:0}.collection-controls .region-bar{flex-shrink:0}.collection-controls .species-bar{flex:1;justify-content:flex-end;gap:20px}.collection-controls #species-state{white-space:nowrap}
.display-controls{display:grid;grid-template-columns:repeat(3,max-content);justify-content:start;align-items:center;column-gap:12px;row-gap:14px}.display-controls .display-control{display:contents}.display-control>button{grid-row:1;min-height:42px;font-size:11px}.display-control>.physical-scale,.display-control>.spacing-panel,.display-control>#reference-panel{grid-column:1/-1}.display-controls .scale-calibration{border:0;margin:0;padding:0}.display-controls .spacing-panel{width:100%;min-width:0}.display-controls #reference-panel{border-top:1px solid var(--line);padding-top:10px}.display-controls #reference-panel p{max-width:850px;margin:8px 0}
@media(max-width:850px){.collection-controls{flex-wrap:wrap;gap:12px}.collection-controls .species-bar{justify-content:space-between}.display-controls{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px}.display-control>button{order:0}.display-control>.physical-scale,.display-control>.spacing-panel,.display-control>#reference-panel{order:1;flex-basis:100%}.display-controls .spacing-panel{margin:0;max-width:none}}
@media(max-width:650px){.collection-controls{align-items:stretch;flex-direction:column}.collection-controls .region-bar{flex-direction:row;align-items:center}.collection-controls .region-selector{flex:1}.collection-controls .species-bar{flex-direction:row;align-items:center;gap:12px}.collection-controls .species-selector{flex:1}.collection-controls .species-selector button{padding-left:12px;padding-right:12px}.display-controls{gap:8px}.display-control>button{flex:1;padding-left:10px;padding-right:10px;white-space:nowrap}}
@media(max-width:450px){.collection-controls .region-bar{flex-direction:column;align-items:stretch}.collection-controls .species-bar{flex-wrap:wrap}.collection-controls #species-state{flex-basis:100%}.display-control>button{flex-basis:calc(50% - 8px)}}

.report-bug{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom));z-index:12;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 10px;font-size:11px;background:#1b1d20f2;border-color:#555866;box-shadow:0 2px 9px #0005}.report-bug svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.report-bug:hover:enabled{background:var(--accent-soft);border-color:var(--accent-border)}#bug-report-dialog{max-width:490px}#bug-report-dialog .dialog-head{margin-bottom:8px}#bug-report-dialog h2{font-size:22px}#bug-report-dialog textarea{display:block;width:100%;min-height:150px;resize:vertical;padding:12px;color:var(--text);background:#111214;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13px;line-height:1.6}#bug-report-dialog textarea:focus-visible{outline:2px solid #9385e8;outline-offset:3px}#bug-report-dialog .field-label{font-size:12px;margin-top:17px}#bug-report-help{font-size:11px;margin:5px 0 0}#bug-report-privacy{font-size:11px;margin:14px 0 0}#bug-report-status{min-height:20px;margin:12px 0;overflow-wrap:anywhere}#bug-report-status[data-result=error]{color:#f1a49e}#bug-report-status[data-result=success]{color:#a8d9b1}.bug-report-actions{display:flex;justify-content:flex-end;gap:9px}.bug-report-actions button{min-width:76px;font-size:12px}.bug-report-honeypot{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Compact correct-answer trail; all stops remain horizontally accessible. */
.flow-history-tab{position:fixed;z-index:11;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:min(900px,calc(100vw - 280px));padding:10px 14px;background:#181b22f5;border:1px solid #5c6079;border-radius:12px;box-shadow:0 4px 24px #0005;font-size:12px;line-height:1.5}.flow-history-tab[hidden]{display:none}.flow-history-title{color:#c6cbd7;flex:none;font-size:10px;letter-spacing:.4px}.flow-history-items{overflow-x:auto;overflow-y:hidden;white-space:nowrap;min-width:0;scrollbar-width:thin;padding-bottom:3px;max-height:76px}.flow-history-items span,.flow-history-items strong{white-space:nowrap}.flow-history-items strong{font-weight:800;text-decoration:underline;text-underline-offset:3px}.flow-history-artery{color:#ef7777}.flow-history-vein{color:#7aa7ff}.flow-history-normal{color:#e0e3eb}.flow-history-arrow{color:#b5bece}.flow-history-restart{display:inline-block;margin-left:18px;padding-left:16px;padding-right:4px;border-left:1px dashed #777d90;color:#c4cbdb}.flow-history-items:focus-visible{outline:2px solid #9385e8;outline-offset:3px}@media(max-width:650px){.flow-history-tab{bottom:max(52px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);gap:8px;padding:9px 11px}.flow-history-title{display:none}}

/* Exposure is available beside the specimen in Explore and every quiz step. */
.exposure-level-controls{position:absolute;z-index:3;left:20px;top:76px;display:flex;align-items:center;gap:8px;max-width:calc(100% - 40px);pointer-events:auto}.exposure-level-controls label{font-size:10px;color:#bdc0cc}.exposure-level-controls select{font-size:11px;min-height:34px;max-width:245px;padding:7px 28px 7px 10px;background:#191a20f2;border:1px solid var(--accent-border);border-radius:7px;color:#e2e3ec;cursor:pointer}.exposure-level-controls select:focus-visible{outline:2px solid #9385e8;outline-offset:3px}.exposure-level-controls select:disabled{cursor:default;opacity:.55}.specimen.quiz-preview-active .exposure-level-controls{visibility:hidden;pointer-events:none}@media(max-width:650px){.exposure-level-controls{left:14px;top:82px;max-width:calc(100% - 28px);gap:6px}.exposure-level-controls select{max-width:210px}}

/* Anatomy scope shares the existing compact study controls. */
.anatomy-focus{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:var(--muted);font-size:13px}.anatomy-focus select{min-width:0;flex:1}.bone-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#d4c6a2;box-shadow:0 0 0 3px #d4c6a21c}
