:root{--ink:#173330;--muted:#657e78;--paper:#f7f4ec;--teal:#0b6b66;--gold:#d2a137;--line:#d4e0db;--coral:#d65e4b;--shadow:0 12px 32px #153e3a0d}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 6% 0,#cee6df99,transparent 40%),var(--paper);font-size:15px}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #dfaa46;outline-offset:3px}button{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button.primary,button.soft{border:0;border-radius:10px;padding:10px 13px;font-size:.83rem;font-weight:750;white-space:nowrap}.primary{background:var(--teal);color:white}.soft{background:#eaf1ee;color:var(--teal)}.soft:hover{background:#dcebe6}.primary:hover{background:#095a55}.text-btn{background:none;border:0;color:var(--teal);padding:3px 0;font-size:.77rem;font-weight:700}.shell{max-width:1600px;margin:auto;padding:23px 22px 20px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.eyebrow{font-size:.67rem;font-weight:850;text-transform:uppercase;letter-spacing:.13em;color:var(--coral)}h1{font:normal clamp(1.8rem,3vw,3rem)/1.1 Georgia,serif;letter-spacing:-.03em;margin:8px 0 10px}h1 i{color:var(--teal);font-weight:normal}.hero p{margin:0;color:var(--muted);line-height:1.5;max-width:800px}.progress-card{flex-shrink:0;min-width:156px;background:#173e3a;color:#fff;padding:15px 18px;border-radius:16px}.progress-card strong{display:block;font-size:1.6rem;line-height:1.3}.progress-card>span{font-size:.72rem;color:#ccdfd9}.progress-track{height:5px;background:#ffffff20;border-radius:9px;margin-top:10px;overflow:hidden}.progress-track span{display:block;height:100%;background:#f2c25b;width:0;transition:width .2s}.workspace-top{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:12px}.top-actions,.view-tabs,.mode-actions,.zoom-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.view-tabs{padding:4px;background:#e8eee9;border-radius:12px}.view-tabs button{border:0;background:transparent;color:var(--muted);padding:9px 14px;border-radius:9px;font-weight:750;font-size:.85rem}.view-tabs button.active{background:#fff;color:var(--teal);box-shadow:0 2px 7px #163a3210}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:15px;align-items:start}.bank-panel,.board-panel{border:1px solid #d3ded7;border-radius:18px;background:#fffffff0;box-shadow:var(--shadow);overflow:hidden}.bank-heading{display:flex;justify-content:space-between;gap:10px;padding:17px 17px 0}.bank-heading h2{margin:0;font-size:1rem}.bank-heading h2 span{font-size:.75rem;background:#edf3f0;color:var(--teal);border-radius:30px;padding:4px 8px;margin-left:5px}.bank-heading p{margin:6px 0 0;font-size:.76rem;color:var(--muted);line-height:1.4}#bankBody{padding:14px 13px 10px}.search-label{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden}#search{width:100%;background:#f6f8f5;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--ink);font-size:.84rem}.bank-tools{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:9px 1px;font-size:.63rem;color:var(--muted)}.bank{display:grid;gap:8px;max-height:590px;overflow:auto;padding:2px 3px 8px;scrollbar-width:thin}.bank-card{background:#fff;border:1px solid #d5e2dc;border-radius:12px;padding:11px 11px 8px;box-shadow:0 3px 8px #163a3205}.bank-card .card-top{display:flex;gap:8px;align-items:flex-start}.number{display:inline-grid;place-items:center;min-width:27px;height:27px;background:#edf4f1;color:var(--teal);border-radius:8px;font-weight:850;font-size:.8rem;flex-shrink:0}.bank-card p{font-size:.79rem;line-height:1.5;margin:0;overflow-wrap:anywhere}.bank-card .card-actions{margin-top:7px;padding-left:35px;display:flex;justify-content:space-between;align-items:center;gap:5px}.mini-btn{background:none;border:0;color:var(--muted);padding:5px 7px;border-radius:6px;font-size:.75rem;font-weight:650}.mini-btn:hover{background:#eef5f1;color:var(--teal)}.add-btn{border:0;background:#e7f1ec;color:var(--teal);border-radius:8px;width:32px;height:30px;font-size:1.2rem;line-height:1;font-weight:650}.add-btn:hover{background:#cfe6dc}.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid #ecf0ec}.board-toolbar .soft{font-size:.77rem;padding:8px 10px}.zoom-actions{gap:2px;flex-wrap:nowrap}.zoom-actions button{border:0;background:transparent;font-weight:750;font-size:.78rem;color:var(--muted);padding:7px}.zoom-actions button:first-child,.zoom-actions button:last-child{font-size:1.2rem}.mode-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;min-height:40px;font-size:.78rem;color:var(--muted);background:#f8faf7;border-bottom:1px solid #edf1e9;line-height:1.4}.mode-banner.active{background:#fff5d9;color:#745822}.mode-banner button{background:none;border:0;color:inherit;font-size:.72rem;white-space:nowrap}.viewport{position:relative;overflow:hidden;height:620px;background-color:#fafcf9;background-image:radial-gradient(#c1d8ce 1px,transparent 1px);background-size:22px 22px;cursor:grab;touch-action:none}.viewport:active{cursor:grabbing}.world{position:absolute;left:0;top:0;transform-origin:0 0;width:1200px;height:900px;will-change:transform}.world svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}.edge-line{fill:none;stroke:#86aaa0;stroke-width:2.2}.edge-hit{fill:none;stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer}.edge-line.good{stroke:#288858}.edge-line.bad{stroke:#c95548}.edge-line.consider{stroke:#c28b30}.edge-line.book,.edge-line.support,.edge-line.context,.edge-line.feedback{stroke-dasharray:7 5}.graph-node{position:absolute;width:276px;background:white;border:1px solid #bdd5ca;border-radius:13px;box-shadow:0 5px 15px #123c3210;cursor:default;overflow:hidden}.graph-node.selected{border-color:var(--teal);outline:3px solid #0b6b6620}.graph-node.source{border-color:#d2a137;outline:3px solid #d2a13725}.node-drag{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:9px 12px 7px;cursor:grab;touch-action:none;user-select:none;border-bottom:1px solid #f0f4ef;background:#fcfdfb}.node-drag .drag-label{font-size:.67rem;color:#8ba197;letter-spacing:.015em}.node-drag .number{height:24px;min-width:24px;font-size:.73rem}.node-remove{background:none;border:0;font-size:1.15rem;color:#78978d;line-height:1;padding:0 4px}.node-text{font-size:.84rem;line-height:1.5;margin:0;padding:12px 13px 10px;overflow-wrap:anywhere}.node-actions{display:flex;justify-content:space-between;border-top:1px solid #eff3ed;padding:4px 7px;gap:1px}.node-actions .mini-btn{font-size:.69rem;padding:6px 5px}.empty-board{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;pointer-events:none}.empty-icon{width:78px;height:78px;display:grid;place-items:center;font-size:3rem;border:1px solid #c9ddd0;background:#eef5ed;border-radius:24px;color:var(--teal);margin-bottom:12px}.empty-board h2{font:normal 1.9rem Georgia,serif;margin:4px 0 12px}.empty-board p{line-height:1.65;color:var(--muted);font-size:.88rem;margin:0}.empty-board>span{font-size:.7rem;color:#8c9f92;margin-top:22px}.board-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:.68rem;color:var(--muted);padding:10px 13px;border-top:1px solid #eaf0e8;line-height:1.45}.selection-panel{border-top:1px solid #e3ede6;background:#f8faf5;padding:13px 15px;font-size:.82rem}.selection-panel h3{font-size:.84rem;margin:0 0 10px}.selection-row{display:flex;gap:8px;align-items:flex-start;margin-top:7px}.selection-row>span{width:85px;flex-shrink:0;color:var(--muted);font-size:.74rem;margin-top:4px}.chips{display:flex;flex-wrap:wrap;gap:5px}.chip{display:flex;align-items:center;gap:7px;padding:4px 7px;border-radius:8px;background:#e7f1e9;color:var(--teal);font-size:.72rem}.chip button{border:0;background:none;color:inherit;font-size:.9rem;padding:0 2px}.selection-caption{font-size:.72rem;color:var(--muted);margin:9px 0 0;line-height:1.5}.results{margin:15px 0;border:1px solid #d2e2d5;border-radius:16px;background:#fff;padding:20px}.results h2{font-family:Georgia,serif;font-size:1.7rem;font-weight:normal;margin:0 0 8px}.result-stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.result-stat{background:#eef6f0;padding:8px 10px;border-radius:9px;font-size:.78rem}.results p{font-size:.86rem;line-height:1.6;color:var(--muted);margin:8px 0}.results ul{padding-left:20px;color:var(--ink);font-size:.85rem;line-height:1.7}.results details{border-top:1px solid #e8eee5;padding-top:10px;margin-top:12px}.results summary{cursor:pointer;font-weight:750;font-size:.85rem}.result-edge{display:inline-flex;align-items:center;gap:6px;margin-right:7px;background:#f7f2e6;padding:3px 7px;border-radius:7px;font-size:.75rem}.result-edge button{border:0;background:none;color:#ac4d37;font-size:.72rem}.page-footer{display:flex;justify-content:space-between;gap:10px;color:#7b9081;font-size:.68rem;line-height:1.4;margin-top:16px}.mobile-only{display:none}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,15px);max-width:min(90vw,560px);padding:13px 18px;border-radius:12px;background:#173e3a;color:white;font-size:.85rem;box-shadow:0 8px 32px #10382d25;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none;z-index:30;line-height:1.4}.toast.visible{opacity:1;transform:translate(-50%,0)}
dialog{color:var(--ink);border:1px solid #d8e4d9;border-radius:20px;background:#fffdf8;padding:24px;box-shadow:0 25px 100px #143a332a;max-height:92vh;overflow:auto}dialog::backdrop{background:#0d302e66;backdrop-filter:blur(3px)}.detail-dialog{width:min(630px,calc(100vw - 24px))}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:15px}.dialog-heading h2{font:normal 1.45rem/1.35 Georgia,serif;margin:6px 0 0;overflow-wrap:anywhere}.close-btn{border:0;background:#eaf1e9;border-radius:50%;width:32px;min-width:32px;height:32px;font-size:1.6rem;color:var(--teal);line-height:1}.detail-tabs{display:flex;gap:4px;padding:4px;background:#edf2e9;border-radius:11px;width:fit-content;margin-bottom:18px;flex-wrap:wrap}.detail-tabs button{padding:9px 12px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:.81rem;font-weight:700}.detail-tabs button.active{color:var(--teal);background:#fff;box-shadow:0 1px 6px #143a3210}.riddle-intro,.mechanism{font-size:.94rem;line-height:1.7}.riddle-box{margin-top:13px;border:1px solid #dce5d8;border-radius:12px;background:#f5f7ee;overflow:hidden}.riddle-box button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px;text-align:left;border:0;background:none;color:var(--ink);font-weight:750;font-size:.85rem}.riddle-box p{margin:0;padding:0 15px 15px;line-height:1.65;font-size:.9rem}.explain-link{border:0;background:none;color:var(--teal);padding:12px 0;margin-top:8px;font-size:.81rem;font-weight:750}.anchor-box{border-left:3px solid var(--teal);background:#eff6f0;padding:12px 15px;line-height:1.65;font-size:.84rem;margin-top:18px}.anchor-box strong{display:block;margin-bottom:3px;color:var(--teal)}.note-box{border:1px solid #f0dfb4;background:#fff6df;padding:13px 15px;border-radius:12px;font-size:.82rem;line-height:1.65;margin-top:14px}.note-box strong{display:block;color:#866119}.source-links{margin-top:18px;font-size:.73rem;line-height:1.7;color:var(--muted)}.source-links a{display:block;color:var(--teal);text-decoration:underline;text-underline-offset:3px}.help-list{padding-left:20px;line-height:1.65;font-size:.88rem}.help-list li{margin:12px 0}.small-note{background:#f1f5ec;padding:13px;border-radius:12px;font-size:.79rem;line-height:1.6;color:var(--muted)}.compact-dialog h2{font-family:Georgia,serif}.compact-dialog p{line-height:1.6;font-size:.9rem}.confirm-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}.map-dialog{width:min(1300px,calc(100vw - 22px));max-width:calc(100vw - 22px)}.map-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}.map-description{margin:0 0 12px;font-size:.84rem;line-height:1.6;color:var(--muted)}.map-legend{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 14px;font-size:.7rem}.map-legend span{display:flex;align-items:center;gap:5px}.map-legend i{width:10px;height:10px;display:inline-block;border-radius:50%}.map-scroll{height:min(62vh,620px);border:1px solid #d8e3d6;border-radius:13px;overflow:auto;background:#f9fbf6;overscroll-behavior:contain;padding:12px}.map-scroll svg{display:block;max-width:none}.map-footnote{font-size:.73rem;color:var(--muted);line-height:1.5}.reference-gate{text-align:center;border:1px dashed #e2c176;background:#fff6df;border-radius:13px;padding:22px;margin-bottom:15px}.reference-gate h3{margin:0 0 9px}.reference-gate p{line-height:1.6;font-size:.88rem}.map-node{cursor:pointer}.map-node:focus{outline:none}.map-node:focus rect{stroke:#d4a331;stroke-width:4}.map-node:hover rect{stroke-width:3}
@media(min-width:1450px){.viewport{height:660px}.bank{max-height:630px}}
@media(max-width:1050px){.workspace{grid-template-columns:275px minmax(0,1fr)}.shell{padding:20px 12px}.hero h1{max-width:650px}.board-toolbar{flex-wrap:wrap}.mode-actions{gap:4px}.viewport{height:590px}.top-actions{gap:5px}.top-actions .soft{padding:9px}}
@media(max-width:760px){.hero{gap:12px;align-items:flex-start;margin-bottom:18px}.hero h1{font-size:1.9rem}.hero p{font-size:.81rem}.progress-card{min-width:104px;padding:12px}.progress-card strong{font-size:1.25rem}.progress-card>span{font-size:.62rem}.workspace{grid-template-columns:1fr}.workspace-top{align-items:flex-start;flex-wrap:wrap;gap:9px}.top-actions{width:100%;justify-content:flex-end}.view-tabs{width:100%}.mobile-only{display:inline-block}.bank-heading{padding:12px 13px}.bank-heading p{font-size:.72rem}.bank{max-height:220px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}#bankBody{padding-top:3px}#bankBody.collapsed{display:none}.bank-card p{font-size:.74rem}.bank-card .card-actions{padding-left:0}.bank-tools{font-size:.65rem}.viewport{height:520px}.board-footer{font-size:.63rem}.page-footer{flex-direction:column;gap:4px}dialog{padding:17px}.dialog-heading h2{font-size:1.25rem}.map-scroll{height:58vh}.map-toolbar .soft{font-size:.73rem}.detail-tabs button{font-size:.75rem;padding:8px 9px}.selection-row>span{width:72px}}
@media(max-width:410px){.hero h1{font-size:1.68rem}.progress-card{min-width:90px;padding:10px}.hero{gap:8px}.top-actions .soft,.top-actions .primary{font-size:.72rem;padding:9px}.board-toolbar .soft{font-size:.69rem;padding:8px}.bank{grid-template-columns:1fr}.viewport{height:485px}.view-tabs button{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Spacious canvas and color-independent, local feedback. */
.shell{max-width:none;padding:12px 14px}.hero{margin-bottom:11px}.hero h1{font-size:clamp(1.6rem,2.3vw,2.3rem);margin:5px 0}.hero p{font-size:.83rem}.progress-card{min-width:135px;padding:10px 14px}.progress-card strong{font-size:1.35rem}.workspace-top{margin-bottom:9px}.workspace{grid-template-columns:240px minmax(0,1fr);gap:12px}.viewport{height:max(460px,calc(100dvh - 235px))}.bank{max-height:max(350px,calc(100dvh - 345px))}.node-text{font-size:15px;line-height:1.5}.node-actions .mini-btn{font-size:.72rem}.board-toolbar{flex-wrap:wrap}.board-footer{font-size:.71rem}.world{width:0;height:0}.edge-halo{fill:none;stroke:white;stroke-width:7;pointer-events:none}.edge-badge{cursor:pointer;pointer-events:all}.edge-badge:focus circle{stroke-width:5}.edge-hit:focus{stroke:#8fa4b9;stroke-width:12;stroke-opacity:.25;outline:none}.edge-badge text{font-family:Arial,sans-serif;pointer-events:none}.status-good{--status-color:#0072b2}.status-qualified,.status-consider{--status-color:#a66b00}.status-reverse{--status-color:#172334}
.review-panel{position:absolute;z-index:10;right:12px;top:12px;bottom:12px;width:min(440px,calc(100% - 24px));border:1px solid #9bb0be;box-shadow:0 12px 40px #143a3330;border-radius:16px;background:#fffefb;display:flex;flex-direction:column;overflow:hidden;cursor:default;touch-action:auto}.review-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-bottom:1px solid #e6e8e7}.review-heading h2{font-size:1rem;margin:0}.review-heading .close-btn{background:#e8edf1;color:#172334}.review-panel #reviewSummary{padding:9px 15px;flex-shrink:0;font-size:.78rem;line-height:1.5}.review-panel #reviewSummary p{margin:0 0 4px}.review-panel #reviewSummary>span{color:var(--muted);font-size:.73rem}.review-panel #reviewSummary details{margin-top:6px}.review-panel #reviewSummary summary{font-weight:700;cursor:pointer;font-size:.72rem}.review-legend{display:grid;grid-template-columns:1fr 1fr;gap:5px 9px;padding:2px 15px 10px}.review-legend span{font-size:.74rem;font-weight:800;color:var(--status-color)}.review-filter{display:flex;justify-content:space-between;align-items:center;gap:9px;border-top:1px solid #e6e8e7;padding:9px 15px;font-size:.77rem;color:var(--muted)}.review-filter select{border:1px solid #c7d5db;padding:6px 9px;border-radius:8px;background:#fff;color:#173330;font:inherit;max-width:70%}.review-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 10px 12px;scrollbar-width:thin}.edge-report{border:1px solid #d5dce0;border-left:5px solid var(--status-color);border-radius:10px;margin:8px 0;background:#fff}.edge-report summary{display:flex;gap:10px;align-items:center;padding:10px;cursor:pointer;list-style:none}.edge-report summary::-webkit-details-marker{display:none}.edge-report summary::after{content:'+';color:#172334;font-size:1.1rem}.edge-report[open] summary::after{content:'−'}.report-symbol{width:28px;min-width:28px;height:28px;border:2px solid var(--status-color);border-radius:50%;display:grid;place-items:center;color:var(--status-color);font:bold 19px Arial,sans-serif}.edge-report summary strong{display:block;font-size:.88rem;color:#173330}.edge-report summary small{display:block;font-size:.7rem;color:var(--status-color);margin-top:3px;font-weight:750}.locate-btn{margin-left:auto;background:#edf2f5;border:0;color:#173330;border-radius:8px;min-width:30px;height:30px;font-size:1.1rem}.edge-report-body{padding:0 12px 12px;font-size:.84rem;line-height:1.65}.edge-report-body p{margin:8px 0}.report-pair{color:#5f737c;font-size:.73rem;line-height:1.65;border-top:1px solid #e8eced;padding-top:9px}.reference-path{background:#edf3f7;padding:7px 9px;border-radius:8px;color:#203b4d;font-weight:700;font-size:.74rem}.report-actions{display:flex;gap:12px;justify-content:space-between;margin-top:10px}.report-actions .text-btn{font-size:.72rem;color:#174c70}.focus-mode{overflow:hidden}.focus-mode .board-panel{position:fixed;inset:8px;z-index:40;display:flex;flex-direction:column;border-radius:13px}.focus-mode .viewport{height:auto;min-height:0;flex:1}.focus-mode .board-toolbar,.focus-mode .mode-banner,.focus-mode .board-footer,.focus-mode .selection-panel{flex-shrink:0}.focus-mode .selection-panel{max-height:110px;overflow:auto}.focus-mode .bank-panel{display:none}.focus-mode.show-focus-cards .bank-panel{display:block;position:fixed;top:114px;left:18px;width:260px;max-height:calc(100dvh - 135px);z-index:50;box-shadow:0 12px 35px #17333040}.focus-mode .bank{max-height:calc(100dvh - 305px)}.focus-mode #bankBody{display:block}.focus-mode dialog{z-index:60}body.focus-mode .toast{z-index:70}
@media(max-width:760px){.shell{padding:10px 8px}.workspace{grid-template-columns:1fr}.hero h1{font-size:1.65rem}.hero p{font-size:.74rem}.progress-card{min-width:93px;padding:9px}.viewport{height:max(520px,calc(100dvh - 270px))}.bank{max-height:180px}.bank-heading{padding:10px}.board-toolbar .mode-actions{gap:3px}.board-toolbar .soft{padding:8px;font-size:.69rem}.review-panel{right:6px;top:6px;bottom:6px;width:calc(100% - 12px)}.focus-mode .board-toolbar{padding:8px}.focus-mode .selection-panel{display:none}.focus-mode.show-focus-cards .bank-panel{top:154px;max-height:calc(100dvh - 178px)}.focus-mode .bank{max-height:calc(100dvh - 350px)}}
.status-qualified,.status-consider{--status-color:#925e00}
[hidden]{display:none!important}

/* The tree is a dedicated screen. Page navigation returns on explicit close. */
body.focus-mode .masthead,body.focus-mode .case-header,body.focus-mode .section-nav,body.focus-mode .page-footer{display:none}
body.focus-mode .board-panel{inset:0;border:0;border-radius:0}
body.focus-mode .board-toolbar{position:relative;z-index:52;background:#fff;padding:10px 16px;border-bottom:1px solid #cbd7da}
body.focus-mode .board-toolbar .mode-actions{flex-wrap:wrap}
body.focus-mode.show-focus-cards .bank-panel{left:18px;width:290px;max-height:calc(100dvh - 110px);display:flex}
body.focus-mode #bankBody{display:flex;min-height:0}
body.focus-mode .bank{flex:1;max-height:none;min-height:0}
body.focus-mode #focusBtn{border-color:#173d53;color:#173d53;margin-left:8px}
.board-options{position:relative;font-size:.75rem;align-self:center}
.board-options summary{cursor:pointer;padding:9px 10px;border:1px solid #bcccd2;border-radius:7px;list-style:none;color:#173d53}
.board-options[open]>div{position:absolute;top:42px;right:0;padding:12px;background:#fff;box-shadow:0 8px 30px #173d5333;border:1px solid #bcccd2;border-radius:8px;min-width:180px;z-index:55}
.board-options .top-actions{display:grid;gap:7px;width:auto}
.board-options #checkBtn{display:none}
@media(max-width:760px){body.focus-mode.show-focus-cards .bank-panel{position:fixed;left:10px;top:50%;transform:translateY(-50%);width:min(290px,75vw);height:55dvh;max-height:55dvh;z-index:50}body.focus-mode .bank{display:flex;flex-direction:column;max-height:none}body.focus-mode .board-toolbar{padding:8px;gap:7px}body.focus-mode .mode-actions{gap:4px}body.focus-mode #focusBtn{margin-left:0}.board-options[open]>div{left:0;right:auto}}
/* Four-case catalogue: compact labels remain readable without crowding the masthead. */
@media(min-width:981px){.masthead{grid-template-columns:230px minmax(0,1fr) 125px}.case-switcher a{padding:7px 9px;gap:6px}.case-switcher a span{max-width:150px}}
@media(max-width:650px){.case-switcher{display:grid;grid-template-columns:1fr 1fr}.case-switcher a span{display:none}.case-switcher a strong{min-width:42px}}

/* Expanded theory chapters: readable prose instead of a compressed objective panel. */
.case-header h1{font-size:clamp(1.75rem,2.5vw,2.45rem)}
.long-case-title .case-header h1{font-size:clamp(1.55rem,2.15vw,2.1rem)}
.intro-lead{display:block;padding:38px 46px 34px}
.intro-lead h2{max-width:1120px;font-size:clamp(1.4rem,2vw,1.9rem)}
.intro-lead>div>p{max-width:1120px;font-size:.96rem}
.intro-sections{grid-template-columns:repeat(2,minmax(0,1fr))}
.intro-sections article{padding:27px 32px 29px;border-right:1px solid #e1e8e8;border-bottom:1px solid #e1e8e8}
.intro-sections article:nth-child(even){border-right:0}
.intro-sections article:nth-last-child(-n+2){border-bottom:0}
.intro-sections h3{font-size:1.04rem}.intro-sections p{font-size:.84rem;line-height:1.72;color:#506874}
.intro-glossary{display:grid;grid-template-columns:220px 1fr;gap:30px;padding:24px 32px;background:#f2f6f5;border-bottom:1px solid #d9e3e3}
.intro-glossary>div>span{display:block;color:#6e3f51;font-size:.64rem;font-weight:850;letter-spacing:.12em}
.intro-glossary>div>p{margin:7px 0 0;color:#71848d;font-size:.73rem;line-height:1.5}
.intro-glossary dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 18px;margin:0}
.intro-glossary dl>div{display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:start}
.intro-glossary dt{padding:3px 6px;border-radius:4px;background:#dce9e9;color:#154f59;font-size:.67rem;font-weight:850}
.intro-glossary dd{margin:1px 0 0;color:#4d6570;font-size:.73rem;line-height:1.5}
@media(max-width:980px){.intro-glossary{grid-template-columns:1fr}.intro-glossary dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.case-header h1,.long-case-title .case-header h1{font-size:1.48rem}.intro-lead{padding:26px 22px}.intro-lead>div>p{font-size:.88rem}.intro-sections{grid-template-columns:1fr}.intro-sections article,.intro-sections article:nth-child(even),.intro-sections article:nth-last-child(-n+2){border-right:0;border-bottom:1px solid #e1e8e8}.intro-sections article:last-child{border-bottom:0}.intro-glossary{padding:21px 22px;gap:17px}.intro-glossary dl{grid-template-columns:1fr}}

.book-key-note{margin:16px 0;padding:15px 18px;border:1px solid #9fb5c4;border-left:4px solid #0072b2;border-radius:9px;background:#f0f6fa;font-size:.83rem;line-height:1.6}.book-key-note strong{display:block;color:#173d53}.book-key-note p{margin:8px 0}.book-key-note small{color:#596f7d}.book-correction{border-left:4px solid #172334!important;padding-left:12px!important}.reference-model{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.82rem;font-weight:750;margin:10px 0}.reference-model select{font:inherit;border:1px solid #9db3c0;border-radius:6px;padding:8px;color:#173d53;background:white;max-width:100%}.reference-notes{border:1px solid #9fb5c4;border-radius:8px;padding:10px 13px;margin:8px 0;font-size:.78rem;line-height:1.6}.reference-notes summary{cursor:pointer;font-weight:750;color:#173d53}.reference-note-list{max-height:210px;overflow:auto;overscroll-behavior:contain}.reference-note-list article{border-left:4px solid #925e00;padding:8px 12px;margin:10px 0;background:#faf8f1}.reference-note-list p{margin:4px 0}.reference-model[hidden],.reference-notes[hidden]{display:none}

/* Canvas-first workspace: floating movable card bank and contextual-only mode hint. */
.workspace{display:block;position:relative}
.board-panel{position:relative}
.bank-panel{position:fixed;left:18px;top:calc(50dvh - 330px);width:290px;height:min(660px,calc(100dvh - 160px));min-width:250px;min-height:260px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);z-index:25;display:flex;flex-direction:column;resize:both;box-shadow:0 14px 42px #15394b38}
.bank-panel::after{content:'';position:absolute;right:3px;bottom:3px;width:11px;height:11px;border-right:2px solid #2c6b73;border-bottom:2px solid #2c6b73;pointer-events:none;opacity:.85}
.bank-heading{flex:0 0 auto;cursor:move;touch-action:none;user-select:none;padding:13px 13px 4px;background:#f5f8f7;border-bottom:1px solid #e1e8e8}
.bank-heading button{cursor:pointer;touch-action:manipulation}.bank-heading p{margin-top:4px}.bank-move{color:#276874;font-weight:800}
#bankBody{display:flex;flex:1;min-height:0;flex-direction:column}.bank{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px}
#bankBody.collapsed,#bankBody[hidden]{display:none!important}.bank-panel.is-collapsed{min-height:0;height:auto!important;resize:none}.bank-panel.is-collapsed::after{display:none}.focus-mode.show-focus-cards .bank-panel{display:flex}
.map-dialog[open]{display:flex;flex-direction:column;width:calc(100vw - 28px);max-width:1600px;height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);padding:17px;overflow:hidden;border-radius:12px}.map-dialog .dialog-heading,.map-dialog .map-toolbar,.map-dialog .map-description,.map-dialog .reference-model,.map-dialog .map-legend,.map-dialog .map-footnote{flex-shrink:0}.map-dialog .map-scroll{flex:1;min-height:160px;height:auto;touch-action:none;cursor:grab;background:#f9fbf6}.map-scroll:active{cursor:grabbing}.map-dialog .map-toolbar{gap:12px;flex-wrap:wrap}.map-dialog .zoom-actions{flex-wrap:wrap}.map-dialog .reference-notes{flex-shrink:0}.map-dialog .reference-note-list{max-height:150px}.map-dialog .reference-gate{overflow:auto}.map-node{cursor:grab;touch-action:none}.map-node [data-map-detail]{cursor:pointer;pointer-events:all}.map-info:focus-visible rect{stroke:#0072b2;stroke-width:3}.map-readonly .map-node{cursor:pointer}.map-selected>rect:first-child{stroke:#0072b2;stroke-width:3}.map-connected>path:last-of-type{stroke-width:3.5}.map-export-select{font:inherit;padding:7px;border:1px solid #b5c8cf;border-radius:6px;max-width:170px;color:#173d53;background:#fff}.map-dialog .map-description{font-size:.76rem;line-height:1.5;margin:7px 0}.map-dialog .map-footnote{font-size:.7rem;margin:8px 0 0}@media(max-width:760px){.map-dialog[open]{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);padding:10px}.map-dialog .dialog-heading h2{font-size:1.1rem}.map-dialog .zoom-actions{gap:3px}.map-dialog .zoom-actions button,.map-export-select{font-size:.7rem;padding:7px}.map-dialog .reference-model{margin:5px 0;font-size:.73rem}.map-dialog .map-legend{display:none}.map-dialog .reference-note-list{max-height:110px}}
.moving-bank,.moving-bank *{cursor:grabbing!important;user-select:none!important}
.mode-banner{display:none}
.mode-banner.active{position:absolute;z-index:18;top:63px;left:50%;transform:translateX(-50%);display:flex;width:max-content;max-width:calc(100% - 24px);min-height:0;padding:8px 12px;border:1px solid #d6b36c;border-radius:9px;background:#fff8e6;color:#654b17;box-shadow:0 8px 24px #17394b24}
.mode-banner.active button{padding:4px 7px;border-radius:6px;background:#f1e1b6;color:#5f4512;font-weight:800}
.toolbar-stat{margin-right:7px;color:#6a7d86;font-size:.69rem;font-weight:750;white-space:nowrap}
.viewport{height:max(560px,calc(100dvh - 190px))}
@media(max-width:760px){.workspace{display:grid}.bank-panel{position:static;width:auto;height:auto;min-width:0;min-height:0;max-height:none;resize:none;box-shadow:var(--shadow)}.bank-panel::after{display:none}.bank-heading{cursor:default;touch-action:auto}.bank-move{display:none}.bank{flex:none;max-height:180px}.viewport{height:max(560px,calc(100dvh - 210px))}.mode-banner.active{top:58px;max-width:calc(100% - 12px)}}

/* PATHWAY medical-atlas identity and case introduction */
:root{--ink:#172d3d;--muted:#5d7280;--paper:#f2f5f4;--teal:#0d6670;--gold:#b98931;--line:#cfdbdd;--coral:#8c455a;--navy:#123047;--shadow:0 12px 34px #17394b12}
body{background:linear-gradient(180deg,#e8eef0 0,#f3f5f3 290px,#f7f6f1 100%);color:var(--ink)}
.shell{padding:0 20px 22px}.masthead{height:72px;margin:0 -20px 18px;padding:0 24px;display:grid;grid-template-columns:260px 1fr 150px;gap:20px;align-items:center;background:#102d42;color:white;border-bottom:4px solid #2d7880;box-shadow:0 7px 24px #102d4222}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid #86b7ba;border-radius:8px;color:#d9eef0;font:700 20px Georgia,serif}.brand strong{display:block;font-size:.83rem;letter-spacing:.18em}.brand small{display:block;margin-top:2px;color:#afc6cf;font-size:.66rem;letter-spacing:.04em}.edition{justify-self:end;color:#afc6cf;font-size:.61rem;letter-spacing:.14em;font-weight:800}.case-switcher{display:flex;justify-content:center;gap:7px;min-width:0}.case-switcher a{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 12px;border:1px solid #ffffff20;border-radius:8px;color:#cbd9df;text-decoration:none;font-size:.72rem;transition:background .15s}.case-switcher a strong{display:grid;place-items:center;min-width:29px;height:24px;border-radius:5px;background:#ffffff12;color:#fff;font-size:.66rem;letter-spacing:.06em}.case-switcher a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-switcher a:hover{background:#ffffff0d}.case-switcher a.active{background:#f5f8f7;color:#183648;border-color:#f5f8f7}.case-switcher a.active strong{background:#d8e7e6;color:#0d5861}
.case-header{max-width:1450px;margin:0 auto 14px;padding:8px 4px 0}.case-header h1{font:600 clamp(1.9rem,3vw,2.8rem)/1.08 Georgia,serif;color:#163448}.case-header p{max-width:850px}.case-header .eyebrow{color:#7c4154}.progress-card{background:#153c52;border-radius:10px;border-left:4px solid #4f9a9e}.section-nav{max-width:1450px;margin:0 auto 14px;padding:0 4px}.view-tabs{background:#dfe7e6;border-radius:9px}.view-tabs button{border-radius:6px}.view-tabs button.active{color:#123f50}.primary{background:#0d6670}.primary:hover{background:#09545c}
.intro-view{max-width:1450px;margin:auto;background:#fff;border:1px solid #ccd8dc;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.intro-lead{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:46px;padding:42px 46px;background:linear-gradient(105deg,#f9fbfa 0,#f9fbfa 60%,#edf3f3 100%);border-bottom:1px solid #dce5e6}.clinical-label{display:inline-block;margin-bottom:13px;padding:5px 8px;border-radius:4px;background:#dcebec;color:#175c63;font-size:.62rem;font-weight:850;letter-spacing:.13em}.intro-lead h2{font:600 clamp(1.55rem,2.5vw,2.25rem)/1.22 Georgia,serif;max-width:880px;margin:0 0 16px;color:#15364a}.intro-lead>div>p{font-size:1rem;line-height:1.75;color:#4f6674;max-width:880px;margin:0}.learning-objectives{border-left:3px solid #8bafaf;padding:7px 0 5px 23px}.learning-objectives>span{display:block;color:#6e3f51;font-size:.66rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase;margin-bottom:10px}.learning-objectives ol{margin:0;padding-left:21px}.learning-objectives li{margin:9px 0;padding-left:4px;font-size:.82rem;line-height:1.5;color:#324c5b}.intro-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #dce5e6}.intro-sections article{position:relative;padding:28px 25px 30px;border-right:1px solid #e1e8e8}.intro-sections article:last-child{border-right:0}.intro-sections article>span{display:block;color:#8a9eaa;font:600 .72rem/1 Georgia,serif;margin-bottom:15px}.intro-sections h3{font:600 1rem/1.35 Georgia,serif;color:#173a4c;margin:0 0 11px}.intro-sections p{margin:0;color:#5b707c;font-size:.81rem;line-height:1.67}.intro-bridge{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:25px 34px;background:#173c50;color:white}.intro-bridge>div>span{display:block;margin-bottom:5px;color:#9fc3c7;font-size:.64rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.intro-bridge p{margin:0;max-width:900px;color:#dbe6e9;font-size:.84rem;line-height:1.6}.primary.large{padding:13px 18px;border:1px solid #6aa4a7;background:#eff6f5;color:#164b53;border-radius:7px}.primary.large:hover{background:#d9ebe9}.evidence-note{margin:0;padding:12px 34px;background:#f7f9f8;color:#788b95;font-size:.66rem;line-height:1.5}
.bank-panel,.board-panel{border-radius:12px;border-color:#cbd7da}.bank-heading h2,.review-heading h2{font-family:Georgia,serif;color:#183a4b}.viewport{background-color:#f9fbfa;background-image:linear-gradient(#e8eeee 1px,transparent 1px),linear-gradient(90deg,#e8eeee 1px,transparent 1px);background-size:24px 24px}.graph-node{border-radius:9px;border-color:#b7ccd1;box-shadow:0 5px 15px #17394b12}.node-drag{background:#f3f7f7}.number{border-radius:5px;background:#dfeceb;color:#124f58}.review-panel{border-radius:10px;border-color:#9aafb8}.empty-icon{border-radius:12px;background:#e7f0f0;color:#1b6970}.empty-board h2{color:#1b4052}.page-footer{max-width:1450px;margin-left:auto;margin-right:auto}
@media(max-width:980px){.masthead{grid-template-columns:220px 1fr}.edition{display:none}.intro-lead{grid-template-columns:1fr;gap:25px}.learning-objectives{border-left:0;border-top:2px solid #a9c5c5;padding:18px 0 0}.intro-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.intro-sections article:nth-child(2){border-right:0}.intro-sections article:nth-child(-n+2){border-bottom:1px solid #e1e8e8}}
@media(max-width:650px){.shell{padding:0 8px 16px}.masthead{height:auto;min-height:72px;margin:0 -8px 14px;padding:10px 12px;grid-template-columns:1fr}.brand{justify-content:center}.case-switcher{width:100%}.case-switcher a{flex:1;justify-content:center;padding:7px}.case-switcher a span{font-size:.66rem}.case-header{padding:0}.case-header .progress-card{display:none}.section-nav{padding:0}.view-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.view-tabs button:last-child{grid-column:1/-1}.intro-lead{padding:28px 22px}.intro-lead>div>p{font-size:.9rem}.intro-sections{grid-template-columns:1fr}.intro-sections article,.intro-sections article:nth-child(2){border-right:0;border-bottom:1px solid #e1e8e8}.intro-bridge{align-items:flex-start;flex-direction:column;padding:22px}.primary.large{width:100%}.evidence-note{padding:12px 22px}.top-actions{justify-content:flex-start}}

/* Separate active-recall screen for the other two textbook exercises */
.exercise-view{max-width:1120px;margin:0 auto;background:#fff;border:1px solid #c8d6da;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.exercise-header{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding:31px 36px 25px;background:linear-gradient(115deg,#f9fbfa 0,#f9fbfa 67%,#e9f1f1 100%);border-bottom:1px solid #d8e2e4}
.exercise-header h2{margin:0 0 8px;color:#15364a;font:600 clamp(1.45rem,2.4vw,2rem)/1.2 Georgia,serif}.exercise-header p{margin:0;color:#5b707c;font-size:.84rem;line-height:1.55}
.exercise-score{flex:0 0 150px;padding:13px 15px;border-left:4px solid #2d7880;border-radius:8px;background:#153c52;color:#fff}.exercise-score strong{display:block;font-size:1.15rem}.exercise-score span{display:block;margin-top:4px;color:#c9dadd;font-size:.63rem;line-height:1.35}
.exercise-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 36px;border-bottom:1px solid #e0e7e8;background:#f6f8f7}.exercise-tabs{display:flex;gap:5px;padding:4px;border-radius:8px;background:#e3eaea}.exercise-tabs button{border:0;border-radius:6px;padding:9px 13px;background:transparent;color:#58707b;font:750 .73rem/1.2 inherit;cursor:pointer}.exercise-tabs button.active{background:#fff;color:#124b55;box-shadow:0 2px 7px #17394b16}
.exercise-intro{padding:22px 36px 2px;color:#536b77;font-size:.84rem;line-height:1.65}.exercise-intro>p{margin:0}.case-note{margin-top:14px;padding:12px 15px;border-left:4px solid #b98931;background:#faf6e9;color:#475e69;border-radius:0 7px 7px 0}.case-note strong{display:block;margin-bottom:3px;color:#775b25;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase}
.type-key{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:15px}.type-key span{display:flex;align-items:center;gap:6px;padding:7px 8px;border:1px solid #d4dfe1;border-radius:6px;background:#f8faf9;font-size:.65rem;line-height:1.25}.type-key b{display:grid;flex:0 0 21px;height:21px;place-items:center;border-radius:4px;background:#dce9e9;color:#124d55;text-transform:uppercase}
.exercise-content{padding:22px 36px 12px}.question-card{border:1px solid #cbd8dc;border-radius:11px;padding:25px 27px 27px;background:#fff}.question-meta{display:flex;justify-content:space-between;gap:15px;margin-bottom:13px;color:#6e4354;font-size:.64rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.question-card h3{max-width:900px;margin:0 0 20px;color:#193a4b;font:600 1.15rem/1.5 Georgia,serif}.reason-box{margin:-4px 0 20px;padding:14px 16px;border-left:4px solid #7e97a3;background:#f1f5f6;border-radius:0 7px 7px 0}.reason-box span{color:#607984;font-size:.61rem;font-weight:850;letter-spacing:.1em}.reason-box p{margin:5px 0 0;color:#294856;font-size:.89rem;line-height:1.55}
.answer-options{display:grid;gap:8px}.answer-options button{display:grid;grid-template-columns:31px 1fr 24px;gap:10px;align-items:start;width:100%;padding:12px 13px;border:1px solid #cad7db;border-left:5px solid #8297a1;border-radius:7px;background:#fbfcfb;color:#273f4b;text-align:left;font:inherit;cursor:pointer}.answer-options button:hover:not(:disabled){border-color:#357a82;background:#f0f7f6}.answer-options button:focus-visible{outline:3px solid #e0a63d;outline-offset:2px}.answer-options button>b{display:grid;height:27px;place-items:center;border-radius:5px;background:#e6eded;color:#1a5660;text-transform:uppercase}.answer-options button>span{padding-top:3px;font-size:.8rem;line-height:1.52}.answer-options button>i{font:900 1.2rem/1 Arial,sans-serif;font-style:normal;text-align:center}
.prior-links{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:-7px 0 17px}.prior-links>span{margin-right:2px;color:#71838b;font-size:.61rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.prior-links button{padding:5px 8px;border:1px solid #9dbbc0;border-radius:5px;background:#edf5f5;color:#164f59;font:800 .65rem/1.2 inherit;cursor:pointer}.prior-links button:hover{background:#dcebea;border-color:#397982}.prior-links button:focus-visible{outline:3px solid #e0a63d;outline-offset:2px}.prior-statement{margin:-9px 0 18px;padding:12px 14px;border:1px solid #b8cdd1;border-left:5px solid #2d7880;border-radius:7px;background:#f4f8f7}.prior-statement strong{display:block;color:#15535b;font-size:.65rem;letter-spacing:.06em;text-transform:uppercase}.prior-statement p{margin:5px 0 0;color:#304d59;font-size:.79rem;line-height:1.58}.reason-box .prior-links{margin:11px 0 0}.reason-box .prior-statement{margin:9px 0 0;background:#fff}
.answer-options button.answer-correct{border:2px solid #006fa6;border-left:7px solid #006fa6;background:#eaf5fb;color:#103b50}.answer-options button.answer-wrong{border:2px dashed #4f3c68;border-left:7px solid #4f3c68;background:#f2eef6;color:#352b43}.answer-options button:disabled{cursor:default;opacity:1}.answer-prompt{margin:15px 0 0;color:#73868f;font-size:.72rem}
.answer-explanation{margin-top:18px;padding:15px 17px;border-radius:8px;border-left:6px solid;background:#f4f7f7}.answer-explanation.correct{border-color:#006fa6}.answer-explanation.incorrect{border-color:#4f3c68;border-left-style:dashed}.answer-explanation strong{color:#173d50;font-size:.82rem}.answer-explanation p{margin:7px 0 0;color:#405a66;font-size:.83rem;line-height:1.65}.exercise-sources{margin-top:10px;padding-top:9px;border-top:1px solid #dbe3e4;color:#71838b;font-size:.66rem}.exercise-sources a{color:#155e71;font-weight:750;text-decoration:none}.exercise-sources a:hover{text-decoration:underline}
.open-question label{display:block;margin-bottom:7px;color:#536b77;font-size:.69rem;font-weight:800}.open-question textarea{box-sizing:border-box;width:100%;resize:vertical;padding:13px 14px;border:1px solid #b9cbd0;border-radius:7px;color:#213d4a;background:#fbfcfb;font:inherit;line-height:1.55}.open-question textarea:focus{outline:3px solid #dcecee;border-color:#29747c}.open-question>button{margin-top:13px}.model-answer{margin-top:17px;padding:16px 18px;border:1px solid #9ebdc1;border-left:5px solid #2d7880;border-radius:8px;background:#eef6f5}.model-answer strong{color:#15535b;font-size:.73rem;text-transform:uppercase;letter-spacing:.06em}.model-answer p{margin:7px 0 0;color:#36545e;font-size:.85rem;line-height:1.67}
.exercise-next{display:flex;align-items:center;justify-content:center;gap:20px;padding:8px 36px 29px}.exercise-next span{min-width:58px;text-align:center;color:#617781;font-size:.75rem;font-weight:800}.exercise-next button{min-width:125px}.exercise-next button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:760px){.exercise-header{padding:24px 20px;gap:15px}.exercise-score{flex-basis:115px}.exercise-toolbar{align-items:stretch;flex-direction:column;padding:12px 20px}.exercise-tabs{display:grid;grid-template-columns:1fr 1fr}.exercise-intro,.exercise-content{padding-left:20px;padding-right:20px}.type-key{grid-template-columns:1fr 1fr}.question-card{padding:20px 17px}.question-meta{align-items:flex-start;flex-direction:column;gap:5px}.exercise-next{padding:6px 20px 23px;gap:8px}.exercise-next button{min-width:0;flex:1}}
@media(max-width:650px){.view-tabs button:last-child{grid-column:auto}.exercise-header{flex-direction:column}.exercise-score{box-sizing:border-box;width:100%;flex-basis:auto}.type-key{grid-template-columns:1fr}.answer-options button{grid-template-columns:28px 1fr 18px}.answer-options button>span{font-size:.76rem}}

/* A separate vector preview uses the same A4 sheets as the browser print job. */
.print-preview-dialog[open]{display:flex;flex-direction:column;width:calc(100vw - 30px);max-width:1400px;height:calc(100dvh - 30px);max-height:calc(100dvh - 30px);padding:18px;gap:10px;overflow:hidden}
.print-preview-dialog .dialog-heading{margin-bottom:0;flex-shrink:0}.print-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;flex-shrink:0}.print-controls label{display:grid;gap:4px;font-size:.72rem;color:#526b79}.print-controls select{font:inherit;font-size:.8rem;padding:8px;border:1px solid #bdcdd2;background:white;border-radius:6px;color:#173d53}.print-summary{display:flex;flex-wrap:wrap;gap:10px;margin:0;font-size:.77rem;line-height:1.5}.print-summary span{color:#526b79}.print-readability{margin:0;padding:9px 12px;border-left:4px solid #a66b00;background:#fff5dd;font-size:.78rem;line-height:1.5}.print-preview-pages{flex:1;min-height:0;overflow:auto;background:#e4eaed;padding:18px;border-radius:8px;display:flex;align-items:center;flex-direction:column;gap:20px}.print-preview-sheet{width:100%;max-width:1050px;flex-shrink:0;box-shadow:0 3px 18px #173d5326;background:white}.print-preview-sheet svg{width:100%;height:auto;display:block}
@media(max-width:760px){.print-preview-dialog[open]{padding:10px;width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}.print-controls{gap:6px}.print-controls label{flex:1}.print-controls select{max-width:100%;font-size:.7rem}.print-controls button{font-size:.73rem;padding:8px}.print-preview-pages{padding:8px}}

.header-tools{display:flex;align-items:end;flex-direction:column;gap:5px}.header-tools button{font-size:.7rem;padding:6px 10px}.header-tools .edition{font-size:.53rem}.progress-dialog{max-width:660px}.progress-dialog>p{font-size:.85rem;line-height:1.65;color:#36545e}.progress-dialog h3{font-size:1rem;color:#173d53}.progress-dialog hr{margin:22px 0;border:0;border-top:1px solid #d5dfe3}.progress-dialog label{display:block;margin-bottom:9px;font-size:.8rem}.progress-dialog input[type=file]{max-width:100%;font-size:.8rem}.progress-dialog #progressImportSummary{padding:11px;background:#edf4f5;border-radius:7px;font-size:.8rem}.board-options #boardProgressBtn{margin-bottom:8px;width:100%}@media(max-width:650px){.header-tools{align-items:center}.header-tools .edition{display:none}.progress-dialog .confirm-actions{flex-wrap:wrap}}

/* Portal navigation follows the masthead's existing rounded navigation links. */
.header-tools .portal-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:1px solid #ffffff35;border-radius:8px;background:#ffffff0d;color:#e5eef1;text-decoration:none;font-size:.72rem;font-weight:750;white-space:nowrap;transition:background .15s,border-color .15s}
.header-tools .portal-back:hover{background:#ffffff20;border-color:#ffffff60}
.header-tools .portal-back:focus-visible{outline:3px solid #dfaa46;outline-offset:3px}
.toolbar-save-status{flex-basis:100%;color:#49676b;font-size:.7rem;line-height:1.4}
@media print{.toolbar-save-status{display:none}}

.clinical-view{max-width:1100px;margin:25px auto 55px}.clinical-view>h2{font-size:clamp(26px,3vw,40px);line-height:1.15;max-width:900px}.clinical-study{font-weight:700}.clinical-citation,.clinical-footnote{font-size:13px;color:#536870;line-height:1.7}.clinical-original{font-size:17px;line-height:1.9;padding:22px 26px;border-left:4px solid #1d7471;background:#f3f7f1;border-radius:0 12px 12px 0;margin:24px 0}.clinical-figure{margin:30px 0;padding:18px;background:white;border:1px solid #d7e0df;border-radius:14px}.clinical-figure svg{display:block;width:100%;height:auto;border-radius:8px}.clinical-figure figcaption{font-size:14px;line-height:1.75;margin-top:16px;white-space:pre-wrap}.clinical-figure>a{display:inline-block;margin-top:12px;font-size:13px}.clinical-originals{border:1px solid #d7e0df;border-radius:12px;padding:18px;margin-top:30px}.clinical-originals summary{cursor:pointer;font-weight:650}.clinical-originals img,.original-answer img{display:block;max-width:100%;height:auto;margin-top:18px}.algorithm-picker{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0;padding:15px 20px;background:#eef3ed;border:1px solid #d6e0d6;border-radius:12px}.algorithm-picker[hidden]{display:none}.algorithm-picker label{font-size:13px;font-weight:700}.algorithm-picker select{max-width:100%;padding:10px;background:white;border:1px solid #c5d3cb;border-radius:7px;color:#173330}.clinical-shortcut{margin:0 0 18px}.original-answer{padding:20px}.clinical-view[hidden]{display:none}.focus-mode .algorithm-picker{display:none}.section-nav .view-tabs{flex-wrap:wrap}@media(max-width:680px){.clinical-original{padding:15px;font-size:15px}.clinical-figure{padding:10px}.algorithm-picker select{width:100%;font-size:12px}.clinical-view{margin-top:18px}}

/* Long-form theory remains separate from exercise instructions. */
.extended-theory .intro-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.extended-theory .intro-sections article{padding:30px 34px}.extended-theory .intro-sections p{font-size:.95rem;line-height:1.85;margin:14px 0 0}.extended-theory .intro-bridge{justify-content:flex-end}.extended-theory #introBridgeCopy[hidden]{display:none}.extended-theory .evidence-note{display:none}
.algorithm-tabs{display:flex;flex-basis:100%;gap:6px;padding-bottom:8px;border-bottom:1px solid #cfdbdd;flex-wrap:wrap}.algorithm-tabs[hidden]{display:none}.algorithm-tabs button{font-size:.76rem;padding:8px 12px;background:#edf3f2;border:1px solid #c8d8d8;border-radius:7px;color:#274c59}.algorithm-tabs button.active{background:#155d68;border-color:#155d68;color:white}.clinical-vector{display:block;width:100%;height:auto;max-width:1080px;margin:auto}.figure-provenance{font-size:12px;color:#5b7079;line-height:1.65;margin:12px 0 0}
@media(max-width:760px){.extended-theory .intro-sections{grid-template-columns:1fr}.extended-theory .intro-sections article{padding:24px 22px}.algorithm-tabs button{flex:1;min-width:120px;font-size:.69rem}.clinical-figure{overflow-x:auto}.clinical-vector{min-width:600px}.figure-provenance{min-width:0}}

.extended-theory .intro-lead{display:block}.extended-theory .intro-lead h2{max-width:1100px}.extended-theory .intro-lead>div>p{max-width:1100px}

/* Wide exercise pages and a single aligned row of related controls. */
.exercise-view{max-width:none}.clinical-view{max-width:1450px}.exercise-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.exercise-actions .clinical-shortcut{margin:0}.map-algorithm-tabs{margin:0 0 12px;flex:none}.map-algorithm-tabs button{font-size:.8rem}
@media(max-width:760px){.exercise-actions{justify-content:flex-start}.exercise-actions button{flex:1}.exercise-actions .clinical-shortcut{white-space:normal}.map-algorithm-tabs{gap:6px}}

.clinical-table-wrap{overflow-x:auto;margin:24px 0;padding:2px}.clinical-table{width:100%;border-collapse:collapse;background:white;font-size:15px;line-height:1.6}.clinical-table caption{text-align:left;font-weight:750;padding:14px 0;color:#173d53}.clinical-table th,.clinical-table td{padding:12px 15px;border:1px solid #d4dfe2;text-align:left;vertical-align:top}.clinical-table thead{background:#eaf2f2}.clinical-table tbody th{font-weight:600}.clinical-editorial{padding:20px 24px;margin:24px 0;border:1px solid #bcd3d4;border-left:4px solid #235d72;border-radius:10px;background:#f0f6f8;line-height:1.75}.clinical-editorial h3{margin:0 0 12px}.clinical-editorial a{display:block;margin:8px 0;font-size:14px}.clinical-editorial p{overflow-wrap:anywhere}
