/* Shared visual language: warm paper, generous spacing, restrained blue and red. */
:root{--study-bg:#f4f2ed;--study-panel:#fffefa;--study-text:#222c32;--study-muted:#627078;--study-line:#dcdedb;--study-blue:#286991;--study-red:#ba4d49;--study-soft:#edf2f6}
:root[data-theme="dark"]{--study-bg:#10191f;--study-panel:#18242c;--study-text:#e8edee;--study-muted:#a0afb7;--study-line:#30404a;--study-blue:#8dbde2;--study-red:#e78b80;--study-soft:#20313e}
html,body{background:var(--study-bg);color:var(--study-text)}[hidden]{display:none!important}header{background:var(--study-bg)!important;color:var(--study-text);border-bottom:1px solid var(--study-line);height:84px;gap:34px}.brand{letter-spacing:.5px;font-size:19px}.brandmark{color:var(--study-red)}.brand>span:last-child{color:var(--study-blue);opacity:1}.main-nav{display:flex;gap:5px;align-items:center}.main-nav button{border:0;border-radius:24px;padding:10px 18px;background:transparent;color:var(--study-muted);font-size:13px}.main-nav button.active{background:var(--study-text);color:var(--study-bg)}.educational{border-color:var(--study-line);color:var(--study-muted)}.header-right{gap:20px}.page-heading{margin:32px 0}.page-heading h1{font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:-.9px}.page-heading h1 em,.learning-heading h1 em{font-family:Georgia,serif;font-weight:500} .eyebrow{color:var(--study-blue)}.page-heading p{color:var(--study-muted)}.panel{border-radius:13px}.live-dot{animation:none!important}.ecg-hotspot{border-color:transparent!important;background:transparent!important;transition:none!important}.ecg-hotspot:hover,.ecg-hotspot:focus-visible{border-color:var(--study-blue)!important}.ecg-hotspots{contain:layout style}.learning-page{max-width:1280px;margin:0 auto;padding:52px 0 34px}.learning-heading{max-width:760px;margin-bottom:38px}.learning-heading h1{font-family:Georgia,serif;font-weight:400;font-size:52px;letter-spacing:-1.7px;margin:14px 0}.learning-heading p{color:var(--study-muted);font-size:16px;line-height:1.7;max-width:670px}.library-toolbar{display:flex;align-items:center;gap:25px;margin-bottom:20px}.search-box{display:flex;align-items:center;gap:12px;border:1px solid var(--study-line);background:var(--study-panel);border-radius:10px;padding:0 17px;width:min(620px,100%)}.search-box>span{font-size:28px;color:var(--study-muted)}.search-box input{width:100%;border:0;background:transparent;color:var(--study-text);padding:17px 0;font-size:14px}.search-box input:focus{outline:none}.search-box:focus-within{outline:2px solid var(--study-blue);outline-offset:2px}#library-count{font-size:13px;color:var(--study-muted);white-space:nowrap}.topic-chips{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:30px}.topic-chip{padding:9px 15px;border-radius:25px;border:1px solid var(--study-line);background:transparent;color:var(--study-muted);font-size:12px}.topic-chip[aria-pressed="true"]{background:var(--study-soft);border-color:var(--study-blue);color:var(--study-blue)}.learning-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.learning-card{background:var(--study-panel);border:1px solid var(--study-line);border-radius:15px;padding:28px;display:flex;flex-direction:column}.learning-card h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin:10px 0 0;letter-spacing:-.4px}.learning-card>p{font-size:14px;line-height:1.8;color:var(--study-muted);margin:12px 0}.learning-card .learning-feature{color:var(--study-red);font-size:12px;font-weight:600;margin:12px 0 2px}.learning-clue{padding:16px 18px;margin:10px 0 24px;background:var(--study-soft);border-radius:8px;font-size:13px;line-height:1.7}.learning-clue>b{font-size:11px;letter-spacing:.6px;color:var(--study-blue)}.learning-clue p{margin:6px 0 0}.learning-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:15px}.learning-card a,.flashcard a{color:var(--study-muted);font-size:12px;text-underline-offset:4px}.study-primary{border:1px solid var(--study-blue);background:var(--study-blue);color:var(--study-bg);padding:12px 17px;border-radius:7px;font-size:13px;font-weight:600}.study-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:65px;align-items:start;max-width:1150px}.study-sidebar{padding:12px 0}.study-sidebar h2{font-family:Georgia,serif;font-size:27px;font-weight:400;line-height:1.4;margin:10px 0 28px}.study-sidebar label{font-size:12px;display:block;margin-bottom:9px;color:var(--study-muted)}.study-sidebar select{width:100%;padding:12px;background:var(--study-panel);color:var(--study-text);border:1px solid var(--study-line);border-radius:7px}.study-sidebar p{font-size:14px;line-height:1.8;color:var(--study-muted);margin:22px 0}.study-sidebar small{display:block;font-size:11px;line-height:1.8;color:var(--study-muted);margin:12px 0 25px}.study-note{font-size:12px;line-height:1.7;border-top:1px solid var(--study-line);padding-top:20px;color:var(--study-muted)}.study-progress{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--study-muted);margin:0 0 14px}progress{width:100%;height:4px;border:0;border-radius:2px;background:var(--study-line);display:block;margin-bottom:25px;accent-color:var(--study-blue)}progress::-webkit-progress-bar{background:var(--study-line)}progress::-webkit-progress-value{background:var(--study-blue)}.flashcard{background:var(--study-panel);border:1px solid var(--study-line);border-radius:18px;padding:42px;min-height:345px}.flashcard h2{font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1.4;letter-spacing:-.5px;margin:20px 0 36px;display:block}.flashcard h2:focus{outline:0}.flashcard .study-primary span{margin-left:20px}.answer-label{color:var(--study-red);font-size:10px;font-weight:700;letter-spacing:1.4px}#card-back{border-top:1px solid var(--study-line);padding-top:25px}#card-answer{font-size:16px;line-height:1.8;margin:14px 0 18px}#card-explore{display:block;margin:20px 0 0;color:var(--study-blue);text-align:left}.grade-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:35px;padding-top:24px;border-top:1px solid var(--study-line)}.empty-state{padding:35px;border:1px dashed var(--study-line);border-radius:12px;color:var(--study-muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}footer{border-color:var(--study-line);color:var(--study-muted);margin-top:35px}
[data-theme="light"] .panel{background:var(--study-panel)}[data-theme="light"] .secondary{background:var(--study-panel)}[data-theme="light"] .theme-switch{background:var(--study-panel);color:var(--study-text);border-color:var(--study-line)}
@media(min-width:1550px){.page-heading h1{font-size:34px}}
@media(max-width:1100px){header{gap:20px;padding:0 24px}.educational{display:none}.main-nav button{padding:9px 14px}.header-right{gap:14px}.study-layout{gap:35px;grid-template-columns:240px minmax(0,1fr)}.flashcard{padding:30px}.flashcard h2{font-size:26px}}
@media(max-width:760px){header{height:auto;min-height:116px;flex-wrap:wrap;gap:10px;padding:14px 20px}.brand{font-size:16px}.header-right{gap:12px}.header-right #guide{display:none}.main-nav{order:3;width:100%;border-top:1px solid var(--study-line);padding-top:10px}.main-nav button{flex:1}.page-heading h1{font-size:25px}.page-heading h1 em{display:block;margin-top:4px}.learning-page{padding-top:30px}.learning-heading h1{font-size:39px}.learning-heading p{font-size:14px}.learning-list{grid-template-columns:1fr}.learning-card{padding:23px}.library-toolbar{gap:12px}.search-box input{font-size:12px}.learning-card-foot{flex-wrap:wrap}.study-layout{grid-template-columns:1fr;gap:25px}.study-sidebar{display:grid;grid-template-columns:1fr auto;gap:10px 15px}.study-sidebar>.eyebrow,.study-sidebar h2,.study-sidebar p,.study-note{display:none}.study-sidebar label{grid-column:1/-1;margin:0}.study-sidebar select{width:100%;min-width:0}.study-sidebar small{grid-column:1/-1;margin:0}.flashcard{padding:26px;min-height:330px}.flashcard h2{font-size:26px}.study-progress{font-size:11px}footer{gap:15px;line-height:1.7}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.vessel-label:before{display:none}.vessel-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:hidden}.vessel-connectors polyline{fill:none;stroke:#c3cecf;stroke-width:1;stroke-linejoin:round;opacity:.8}.vessel-connectors circle{fill:#e6eded;stroke:#14232d;stroke-width:1}.vessel-connectors .selected{stroke:#f0be57;opacity:1}.vessel-connectors circle.selected{fill:#f0be57}.heart-stage .vessel-label{z-index:3;font-size:11px;background:#142029ed;border-radius:5px}.heart-stage:after{box-shadow:inset 0 0 65px 5px #02081030}

.ecg-display-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ecg-footer{flex-wrap:wrap;gap:12px;padding-top:12px;padding-bottom:12px;height:auto;min-height:48px}.ecg-display-options .toggle{white-space:nowrap}

.anatomy-view-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--study-line);font-size:13px}.anatomy-view-bar select,.anatomy-details select{min-width:0;flex:1;width:100%;padding:9px 10px;background:var(--study-panel);color:var(--study-text);border:1px solid var(--study-line);border-radius:6px;font:inherit}.section-depth-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center;padding:12px 16px;font-size:12px}.section-depth-row input{flex:1;min-width:100px;accent-color:var(--study-blue)}.section-depth-row span{width:100%;color:var(--study-muted);font-size:11px}.anatomy-section-note{margin:0;padding:10px 16px;font-size:12px;line-height:1.6;color:var(--study-muted);border-top:1px solid var(--study-line)}.anatomy-details{border-top:1px solid var(--study-line);padding:14px 16px;font-size:13px}.anatomy-details summary{cursor:pointer;font-weight:650}.anatomy-details label{display:block;margin:16px 0 7px;color:var(--study-muted);font-size:12px}.anatomy-details h3{margin:16px 0 7px;font-size:16px}.anatomy-details p{line-height:1.65;margin:0 0 8px}.anatomy-details small{display:block;line-height:1.5;color:var(--study-muted)}.anatomy-actions{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}.anatomy-actions button{padding:8px 10px;border:1px solid var(--study-line);background:var(--study-soft);color:var(--study-text);border-radius:6px;font-size:12px}.anatomy-actions button:disabled{opacity:.45;cursor:default}.anatomy-actions button[aria-pressed=true]{border-color:var(--study-blue)}.anatomy-details a{color:var(--study-blue);font-size:11px}.workspace>.ecg{align-self:start}
