:root{color-scheme:light;--anchor-offset: 92px;--bg: #f7f9fc;--surface: #ffffff;--surface-2: #edf4f8;--ink: #17222e;--muted: #637083;--line: #d7e0e8;--blue: #2476bc;--cyan: #2bb3c8;--red: #d94d59;--yellow: #e4ae2c;--green: #41a874;--violet: #7b62c9;--shadow: 0 18px 44px rgba(32, 54, 79, .1)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:var(--anchor-offset)}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Yu Gothic,Yu Gothic UI,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}button,input{font:inherit}.site-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px clamp(18px,4vw,56px);background:rgba(247,249,252,.9);border-bottom:1px solid rgba(215,224,232,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transform:translateY(0);transition:transform .18s ease;will-change:transform}.brand{display:inline-flex;align-items:center;gap:12px;min-width:240px}.brand-mark{width:38px;height:38px;border-radius:8px;background:radial-gradient(circle at 28px 11px,var(--yellow) 0 5px,transparent 6px),radial-gradient(circle at 12px 26px,var(--cyan) 0 6px,transparent 7px),linear-gradient(135deg,var(--blue),var(--green))}.brand strong,.brand small{display:block}.brand strong{font-size:15px;line-height:1.25}.brand small,.lead,.sim-card p,.field-grid p,.simple-grid p{color:var(--muted)}.top-nav{display:flex;align-items:center;gap:6px;color:#334255;font-size:14px}.top-nav a{padding:8px 10px;border-radius:8px}.top-nav a:hover,.top-nav a.active{background:var(--surface-2)}.hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);gap:clamp(26px,4vw,58px);align-items:center;min-height:calc(100svh - 68px);padding:clamp(42px,7vw,88px) clamp(18px,5vw,72px) 34px}.hero-copy{max-width:680px}.eyebrow{margin:0 0 10px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}h1,h2,h3,p{overflow-wrap:anywhere;word-break:break-word}h1{margin:0;font-size:clamp(42px,6vw,70px);line-height:1.06;letter-spacing:0}h2,h3{line-height:1.22;letter-spacing:0}.hero-copy>p:not(.eyebrow),.lead{margin:22px 0 0;max-width:720px;font-size:18px}.hero-actions,.stage-actions,.related-list{display:flex;flex-wrap:wrap;gap:12px}.hero-actions{margin-top:30px}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font-weight:800;cursor:pointer}.button{padding:10px 18px;max-width:100%;white-space:normal}.icon-button{width:42px}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.secondary{background:white}.button:disabled{opacity:.48;cursor:not-allowed}.vector-mode-toggle{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:132px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f2f6f9}.pump-view-toggle{min-width:210px}.toggle-button{min-height:34px;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:#334255;font-size:13px;font-weight:900;cursor:pointer}.toggle-button.is-active{background:white;color:var(--blue);box-shadow:0 1px 5px #20364f1f}.hero-visual,.simulation-stage,.control-panel,.membrane-control-panel,.info-panel,.formula-grid article,.empty-state,.profile-panel,.notice-band{border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.hero-visual{overflow:hidden}.hero-vector,.sim-svg,.particle-sim-canvas{display:block;width:100%;height:auto}.section,.page-shell,.lesson-page{padding:clamp(54px,7vw,84px) clamp(18px,5vw,72px)}.section.compact{padding-top:clamp(36px,5vw,64px)}.section.narrow{max-width:1040px;margin:0 auto;padding-inline:0}.section-heading{max-width:760px;margin-bottom:24px}.section-heading h2,.page-shell>h1,.lesson-hero h1{margin:0;font-size:clamp(30px,4vw,48px)}.field-grid,.sim-list,.simple-grid,.formula-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.field-grid article,.field-card,.sim-card,.simple-grid article,.simple-card{min-height:100%;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.card-link{display:block;min-height:100%}.card-link:hover .sim-card,.card-link:hover .field-card,.card-link:hover .simple-card,.card-link:focus-visible .sim-card,.card-link:focus-visible .field-card,.card-link:focus-visible .simple-card{border-color:#a9c7df;transform:translateY(-2px)}.card-link:focus-visible{border-radius:8px;outline:3px solid rgba(36,118,188,.24);outline-offset:3px}.sim-card,.field-card,.simple-card{display:flex;flex-direction:column;gap:8px;transition:border-color .16s ease,transform .16s ease}.field-grid h3,.sim-card h3,.simple-grid h2{display:block;margin:12px 0 6px;font-size:18px}.tag{align-self:flex-start;display:inline-flex;padding:3px 8px;border-radius:999px;background:#eaf1f8;color:#345c82;font-size:12px;font-weight:800}.is-planned{opacity:.72}.disabled-card{cursor:default}.sim-card.is-disabled,.disabled-card{background:linear-gradient(135deg,rgba(237,244,248,.76),rgba(255,255,255,.84))}.sim-card.is-disabled strong,.disabled-note,.planned-link-list span{color:#6d7480;font-size:13px;font-weight:900}.page-notice{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;max-width:920px;margin:24px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.page-notice strong,.page-notice p{margin:0}.page-notice p{color:var(--muted)}.lesson-link-block{display:grid;gap:8px;margin-top:14px}.inline-link-list,.planned-link-list{display:flex;flex-wrap:wrap;gap:8px}.inline-link-list a,.planned-link-list span{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border-radius:8px}.inline-link-list a{border:1px solid #a9c7df;background:#edf6fb;color:#245985;font-size:13px;font-weight:900}.inline-link-list a:hover{border-color:var(--blue);background:#dceff8}.card-inline-links{margin-top:12px}.card-cta{display:inline-flex;align-items:center;align-self:flex-start;margin-top:auto;color:var(--blue);font-size:13px;font-weight:900}.planned-link-list span{border:1px solid var(--line);background:#f4f7f9}.field-icon{display:block;width:40px;height:40px;border-radius:8px;background:var(--surface-2)}.field-icon.cell{background:radial-gradient(circle at 23px 16px,var(--yellow) 0 5px,transparent 6px),radial-gradient(circle at 14px 25px,var(--cyan) 0 6px,transparent 7px),#e7f3f6}.field-icon.circulation{background:linear-gradient(90deg,transparent 42%,white 43% 57%,transparent 58%),linear-gradient(135deg,var(--red),#b93547)}.field-icon.respiration{background:radial-gradient(circle at 20px 20px,#ffffff 0 8px,transparent 9px),var(--cyan)}.field-icon.kidney{background:radial-gradient(ellipse at 16px 20px,#70b8dc 0 12px,transparent 13px),radial-gradient(ellipse at 25px 20px,var(--green) 0 12px,transparent 13px),#eef6f2}.field-icon.endocrine,.field-icon.neuro,.field-icon.muscle{background:conic-gradient(from 20deg,var(--violet),var(--cyan),var(--yellow),var(--violet))}.lesson-hero{max-width:960px;margin-bottom:22px}.goal-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.goal-list span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:white;color:#334255;font-size:13px;font-weight:800;max-width:100%;min-width:0}.mobile-sim-jump{display:none}.background-band{display:grid;grid-template-columns:120px 1fr;gap:12px 18px;max-width:1180px;margin-bottom:18px;padding:18px 20px;border:1px solid #cbddeb;border-radius:8px;background:#edf6fb}.background-band strong{color:var(--blue);font-size:13px;line-height:1.45}.background-band p{margin:0}.background-band .driving-question{color:#17222e;font-size:18px;font-weight:900;line-height:1.55}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:18px;align-items:start;scroll-margin-top:var(--anchor-offset)}.simulation-stage{overflow:hidden;min-width:0}.stage-title,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.stage-title{padding:16px 18px;border-bottom:1px solid var(--line)}.stage-title h2,.panel-heading h2,.info-panel h2{margin:0;font-size:20px}.side-stack{display:grid;gap:14px;min-width:0}.desktop-control-panel{min-width:0}.mobile-metric-bar,.mobile-sheet-backdrop,.mobile-control-sheet{display:none}.control-panel,.membrane-control-panel,.info-panel{padding:18px}.control-grid{display:contents}.preset-panel{margin-top:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}.preset-panel h3{margin:0 0 10px;font-size:15px}.preset-list{display:grid;gap:8px}.preset-button{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fbfdff;color:var(--ink);text-align:left;cursor:pointer}.preset-button strong,.preset-button span{display:block}.preset-button strong{font-size:14px}.preset-button span{margin-top:2px;color:var(--muted);font-size:12px;line-height:1.45}.preset-button:hover,.preset-button.is-active{border-color:#8ebbdd;background:#edf6fb}.control-group{display:block;margin-top:16px}.control-group.is-active{margin-inline:-8px;padding:8px;border-radius:8px;outline:1px solid #8ebbdd;background:#edf6fb}.control-row{display:flex;justify-content:space-between;gap:14px;margin-bottom:6px;font-weight:800}.control-row label{min-width:0}.control-row output{color:var(--blue)}.control-input-track{display:block}.segmented-control-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:6px}.segmented-control-option{min-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fbfdff;color:var(--ink);font-size:12px;font-weight:900;line-height:1.2;cursor:pointer}.segmented-control-option:hover,.segmented-control-option.is-active{border-color:#8ebbdd;background:#edf6fb;color:var(--blue)}input[type=range]{width:100%;accent-color:var(--blue)}.hint{color:var(--muted);font-size:12px}.control-panel.is-compact .panel-heading h2{font-size:18px}.control-panel.is-compact .preset-panel{margin-top:12px;padding-bottom:12px}.control-panel.is-compact .preset-panel h3{margin-bottom:8px;font-size:13px}.control-panel.is-compact .preset-list{grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:6px}.control-panel.is-compact .preset-button{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 8px;text-align:center}.control-panel.is-compact .preset-button strong{font-size:12px;line-height:1.25}.compact-preset-note{margin:8px 0 0;padding:8px 10px;border:1px solid rgba(169,199,223,.78);border-radius:8px;background:#f6fbfe;color:var(--muted);font-size:12px;line-height:1.45}.compact-preset-note strong{color:var(--ink)}.control-panel.is-compact .control-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:10px;margin-top:12px}.control-panel.is-compact .control-group{display:grid;gap:7px;margin-top:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.control-panel.is-compact .segmented-control-group{grid-column:1 / -1}.control-panel.is-compact .segmented-control-options{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}.control-panel.is-compact .control-group.is-active{margin-inline:0;padding:10px}.control-panel.is-compact .control-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;margin-bottom:0;font-size:12px}.control-panel.is-compact .control-row>span,.control-panel.is-compact .control-row label{line-height:1.25;overflow-wrap:anywhere}.control-panel.is-compact .control-row output{font-size:12px;white-space:nowrap}.control-step-row{display:flex;gap:6px;justify-content:center}.control-step-button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:32px;border:1px solid rgba(125,167,204,.7);border-radius:8px;background:#f7fbff;color:#2d638d;font-size:18px;font-weight:900;line-height:1;cursor:pointer}.control-step-button:disabled{cursor:not-allowed;opacity:.45}.control-step-button:focus-visible{outline:3px solid rgba(93,143,183,.34);outline-offset:2px}.control-panel.is-compact .hint{font-size:11px;line-height:1.25}.control-panel.is-compact.is-vertical-controls .control-grid{grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:4px}.control-panel.is-compact.is-vertical-controls .control-group{grid-template-rows:minmax(42px,auto) 104px auto;justify-items:center;min-height:184px;gap:5px;padding:6px 1px;text-align:center}.control-panel.is-compact.is-vertical-controls .control-group.is-active{padding:6px 1px}.control-panel.is-compact.is-vertical-controls .control-row{grid-template-columns:1fr;justify-items:center;min-height:42px;font-size:10px;text-align:center}.control-panel.is-compact.is-vertical-controls .control-row output{font-size:10px}.control-panel.is-compact.is-vertical-controls .control-input-track{position:relative;display:block;width:44px;height:104px}.control-panel.is-compact.is-vertical-controls input[type=range]{position:absolute;top:50%;left:50%;width:104px;height:44px;transform:translate(-50%,-50%) rotate(-90deg)}.control-panel.is-compact.is-vertical-controls .hint{display:none}.control-panel.is-compact.is-vertical-controls .control-step-row{gap:2px;margin-top:0}.control-panel.is-compact.is-vertical-controls .control-step-button{min-width:22px;min-height:32px;border-radius:6px;font-size:14px}.status-badge{display:inline-flex;align-items:center;max-width:100%;min-height:30px;padding:5px 10px;border-radius:999px;background:#e8f5f6;color:#1d6874;font-size:13px;font-weight:800;white-space:normal}.status-badge.left,.status-badge.reabsorption{background:#eef1fb;color:#5942a3}.status-badge.filtration,.status-badge.right{background:#e8f5f6;color:#1d6874}.status-badge.edema{background:#fae8ea;color:#a62f3c}.status-badge.diffusion{background:#e8f5f6;color:#1d6874}.status-badge.facilitated{background:#edf7ee;color:#28724f}.status-badge.active{background:#fff1d1;color:#8a5a13}.status-badge.custom{background:#f0edfb;color:#5d4a9d}.status-badge.pump{background:#edf7ee;color:#28724f}.status-badge.pump-low{background:#fff1d1;color:#8a5a13}.status-badge.leak,.status-badge.cardiac{background:#fae8ea;color:#a62f3c}.status-badge.cardiac-low{background:#eef2f4;color:#526171}.status-badge.cardiac-failure{background:#f0edfb;color:#5d4a9d}.status-badge.pressure{background:#e8f5f6;color:#1d6874}.status-badge.pressure-low{background:#eef2f4;color:#526171}.status-badge.pressure-high{background:#fae8ea;color:#a62f3c}.status-badge.pressure-stiff{background:#fff1d1;color:#8a5a13}.status-badge.pressure-shock{background:#f0edfb;color:#5d4a9d}.status-badge.balanced{background:#eef2f4;color:#526171}.metric{display:grid;grid-template-columns:1fr auto;gap:10px;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line)}.metric dt{color:var(--muted)}.metric dd{margin:0;color:var(--blue);font-weight:900}.detail-metric{display:grid;gap:8px;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line)}.detail-metric div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.detail-metric dt{color:var(--muted)}.detail-metric dd{margin:0;color:#27384b;font-weight:900}.particle-sim-shell{background:#fbfdff}.particle-sim-readout{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px 14px;border-top:1px solid var(--line);background:#ffffff}.particle-sim-readout span{display:grid;gap:2px;min-width:0;color:var(--muted);font-size:12px;font-weight:900}.particle-sim-readout strong{color:var(--ink);font-size:15px}.particle-sim-note{margin:0;padding:0 14px 14px;background:#ffffff;color:var(--muted);font-size:13px}.nak-pump-shell{background:#fbfdff}.nak-pump-readout{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}.nak-pump-readout strong{white-space:normal}.membrane-control-panel{display:grid;gap:16px}.membrane-control-section{display:grid;gap:10px}.membrane-control-section h3{margin:0;font-size:15px}.nak-distribution-group{display:grid;gap:8px}.nak-distribution-group>span{color:var(--muted);font-size:13px;font-weight:900}.mode-button-grid,.arrangement-grid{display:grid;gap:8px}.mode-button-grid{grid-template-columns:1fr}.arrangement-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mode-card-button,.arrangement-grid button{min-width:0;min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fbfdff;color:var(--ink);text-align:left;cursor:pointer}.mode-card-button strong,.mode-card-button span,.arrangement-grid strong,.arrangement-grid span{display:block}.mode-card-button strong,.arrangement-grid strong{font-size:13px}.mode-card-button span,.arrangement-grid span{color:var(--muted);font-size:11px;line-height:1.35}.mode-card-button:hover,.mode-card-button.is-active,.arrangement-grid button:hover,.arrangement-grid button.is-active{border-color:#8ebbdd;background:#edf6fb}.arrangement-grid button.is-active{box-shadow:inset 0 0 0 1px #8ebbdd}.membrane-step-grid{display:grid;grid-template-columns:1fr;gap:8px;align-items:stretch}.membrane-stepper{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.membrane-stepper span{color:var(--muted);font-size:13px;font-weight:900}.membrane-stepper strong{color:var(--blue);font-size:14px;white-space:nowrap}.membrane-reseed-button{min-height:42px;padding-inline:12px}.membrane-custom-box{display:grid;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.membrane-custom-box span,.membrane-custom-box strong,.membrane-custom-box p{display:block}.membrane-custom-box span{color:var(--muted);font-size:13px;font-weight:900}.membrane-custom-box strong{color:var(--blue);font-size:14px}.membrane-custom-box p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:800;line-height:1.45}.membrane-add-row,.membrane-speed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.membrane-speed-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.membrane-add-row button,.membrane-speed-grid button{min-width:0;min-height:36px;border:1px solid var(--line);border-radius:8px;background:#ffffff;color:var(--ink);font-size:12px;font-weight:900;cursor:pointer}.membrane-add-row button:hover,.membrane-speed-grid button:hover,.membrane-speed-grid button.is-active{border-color:#8ebbdd;background:#edf6fb}.membrane-add-row button:disabled{opacity:.48;cursor:not-allowed}.membrane-control-hint{margin:-2px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.formula-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px}.formula-grid article{padding:18px}.formula-grid h2{margin:0 0 8px;font-size:17px}.formula-grid code{display:block;padding:12px;border-radius:8px;background:#f2f6f9;color:#27384b;line-height:1.8;white-space:pre-line}.model-note{grid-column:span 2}.key-term-section{padding-top:clamp(36px,5vw,60px);padding-bottom:clamp(28px,4vw,44px)}.key-term-list{display:flex;flex-wrap:wrap;gap:10px}.key-term-list span{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:white;color:#334255;font-size:13px;font-weight:800}.question-list{display:grid;gap:10px}.question-list details{padding:16px 18px;border:1px solid var(--line);border-radius:8px;background:white}.question-list summary{cursor:pointer;font-weight:800}.related-list a,.related-list span{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:white;font-weight:800}.empty-state{max-width:720px;margin-top:30px;padding:24px}.profile-panel{display:grid;grid-template-columns:84px minmax(0,1fr);gap:22px;align-items:center;max-width:900px;margin-top:32px;padding:24px}.profile-panel h2,.profile-panel p{margin:0}.profile-panel p{color:var(--muted)}.profile-mark{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:8px;background:radial-gradient(circle at 51px 21px,var(--yellow) 0 8px,transparent 9px),radial-gradient(circle at 22px 49px,var(--cyan) 0 10px,transparent 11px),linear-gradient(135deg,var(--blue),var(--green));color:#fff;font-size:30px;font-weight:900}.profile-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.admin-section{margin-top:20px}.notice-band{display:grid;grid-template-columns:140px 1fr;gap:18px;max-width:1040px;margin:0 auto;padding:18px 20px;background:#fffaf0;box-shadow:none}.notice-band p{margin:0;color:#4d5f72}.site-footer{display:grid;grid-template-columns:minmax(240px,1.2fr) minmax(240px,1fr) minmax(180px,.7fr);gap:clamp(22px,4vw,44px);padding:38px clamp(18px,5vw,72px);border-top:1px solid var(--line);background:#eef3f7}.site-footer h2,.site-footer p{margin:0}.site-footer h2{font-size:15px}.site-footer p{margin-top:8px;color:var(--muted)}.footer-brand{font-weight:900}.footer-link-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.footer-link-grid a{padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:white;color:#334255;font-size:13px;font-weight:800}.footer-link-grid.compact a{min-width:58px;text-align:center}.diagram-label{fill:#243345;font-size:18px;font-weight:800;paint-order:stroke;stroke:#fbfdffeb;stroke-linejoin:round;stroke-width:4px}.small-label,.diagram-legend text{fill:#526171;font-size:14px;font-weight:800;paint-order:stroke;stroke:#fbfdffeb;stroke-linejoin:round;stroke-width:3px}.vector-label rect{fill:#fffffff0;stroke:#c9d5df;stroke-width:1.5px}.vector-label-text{fill:#243345;font-size:15px;font-weight:900}.diagram-chip rect{fill:#fffffff5;stroke:#bdd5e5;stroke-width:1.5px}.diagram-chip-text{fill:#1d6874;font-size:18px;font-weight:900}.force-arrows g,.kf-highlight,.lymph-drain path,.transport-route,.column-delta,.pressure-counter{transition:opacity .18s ease,stroke-width .18s ease}.floating-particle{animation:floatParticle 3.4s ease-in-out infinite}.water-path,.dash-flow{animation:dashFlow 1.8s linear infinite}.equilibrium-line{animation:none}.water-drop,.flow-arrow{animation:pulseFlow 1.8s ease-in-out infinite}.no-flow{animation:none!important}.graph-line{animation:pulseFlow 2.2s ease-in-out infinite}.frank-myocardium,.frank-ventricle-cavity,.frank-output-flow,.frank-blood-particle,.arterial-heart-pump,.arterial-vessel-pulse,.arterial-blood-particle{transform-box:fill-box;transform-origin:center}.arterial-heart-pump{animation:arterialHeartBeat 1s cubic-bezier(.34,0,.18,1) infinite}.arterial-vessel-pulse{animation:arterialVesselPulse 1s cubic-bezier(.34,0,.18,1) infinite}.arterial-flow-band{opacity:var(--arterial-flow-opacity)}.arterial-blood-particle{opacity:0;paint-order:stroke;stroke:#ffffffe6;stroke-width:2px;animation:arterialParticleFlow var(--arterial-particle-duration) linear infinite}.arterial-blood-particle.phase-1{animation-delay:.17s}.arterial-blood-particle.phase-2{animation-delay:.34s}.arterial-blood-particle.phase-3{animation-delay:.51s}.arterial-pressure-wave{animation:arterialWaveGlow 1s ease-in-out infinite}.arterial-peripheral-flow{opacity:var(--arterial-peripheral-opacity);stroke-dasharray:9 16;animation:arterialPeripheralFlow var(--arterial-peripheral-duration) linear infinite}.arterial-handle-hit-zone{cursor:ew-resize;outline:none;touch-action:none}.arterial-handle-hit-zone.vertical{cursor:ns-resize}.arterial-direct-handle{pointer-events:none}.arterial-direct-handle circle{fill:#243345;stroke:#fff;stroke-width:4px;filter:drop-shadow(0 4px 8px rgba(32,54,79,.24));transition:fill .14s ease,stroke .14s ease,transform .14s ease}.arterial-direct-handle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-width:3px}.arterial-direct-handle.is-dragging circle,.arterial-handle-hit-zone:focus-visible+.arterial-direct-handle circle{fill:#1c5f98;stroke:#14344f}.frank-myocardium{animation:frankMyocardiumBeat 1s cubic-bezier(.4,0,.2,1) infinite}.frank-ventricle-cavity{animation:frankVentricleBeat 1s cubic-bezier(.34,0,.18,1) infinite}.frank-output-flow{animation:frankOutputBeat 1s ease-in-out infinite}.frank-preload-line{transition:stroke-width .14s ease}.frank-preload-drag-zone{cursor:ew-resize;outline:none;touch-action:none}.frank-preload-handle{pointer-events:none}.frank-preload-handle circle{fill:#2476bc;stroke:#fff;stroke-width:4px;filter:drop-shadow(0 4px 8px rgba(36,118,188,.24));transition:fill .14s ease,stroke .14s ease,transform .14s ease}.frank-preload-handle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-width:3px}.frank-preload-handle.is-dragging circle,.frank-preload-drag-zone:focus-visible+.frank-preload-handle circle{fill:#1c5f98;stroke:#14344f}.pv-handle-hit-zone{cursor:ew-resize;outline:none;touch-action:none}.pv-direct-handle{pointer-events:none}.pv-direct-handle circle{fill:#243345;stroke:#fff;stroke-width:4px;filter:drop-shadow(0 4px 8px rgba(32,54,79,.24));transition:fill .14s ease,stroke .14s ease}.pv-direct-handle.edv circle{fill:#2476bc}.pv-direct-handle.esv circle{fill:#7b62c9}.pv-direct-handle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-width:3px}.pv-direct-handle.is-dragging circle,.pv-handle-hit-zone:focus-visible+.pv-direct-handle circle{fill:#1c5f98;stroke:#14344f}.pv-cycle-marker{filter:drop-shadow(0 5px 10px rgba(32,54,79,.25))}.pv-heart-wall,.pv-heart-cavity{transition:fill .16s ease,stroke .16s ease}.pv-isovolumic-lock{opacity:.95}.ecg-heart-model rect,.ecg-heart-model circle{transition:opacity .16s ease,transform .18s ease,stroke .16s ease,r .16s ease}.ecg-chamber-label{fill:#243345;font-size:22px;font-weight:900;paint-order:stroke;stroke:#fbfdfff0;stroke-linejoin:round;stroke-width:4px}.ecg-chamber-status{fill:#1d6874;font-size:14px;font-weight:900;paint-order:stroke;stroke:#fbfdfff0;stroke-linejoin:round;stroke-width:3px}.ecg-signal-step rect{fill:#fff;stroke:#d8e3eb;stroke-width:1.5px;transition:fill .14s ease,stroke .14s ease,stroke-width .14s ease}.ecg-signal-step circle{fill:#d89b2b;opacity:.36;transition:opacity .14s ease,r .14s ease}.ecg-signal-step.is-active rect{fill:#fff4cf;stroke:#d89b2b;stroke-width:3px}.ecg-signal-step.is-active circle{opacity:1;filter:drop-shadow(0 0 7px rgba(216,155,43,.45))}.ecg-conduction-map{pointer-events:none}.ecg-fibrous-ring{fill:#c9d5df;opacity:.72;stroke:#fff;stroke-width:1.4px}.ecg-conduction-segment{fill:none;stroke:#d89b2b;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.4px;opacity:.34;transition:opacity .14s ease,stroke-width .14s ease}.ecg-conduction-segment.is-active{animation:ecgConductionTravel .68s linear infinite;filter:drop-shadow(0 0 7px rgba(216,155,43,.42));opacity:.98;stroke-dasharray:11 8;stroke-width:5px}.ecg-conduction-node circle{fill:#f1b13f;stroke:#fff8e7;stroke-width:2.5px;opacity:.66;transition:opacity .14s ease,r .14s ease,stroke-width .14s ease}.ecg-conduction-node.is-active circle{filter:drop-shadow(0 0 8px rgba(216,155,43,.48));opacity:1;stroke-width:4px}.ecg-conduction-label{fill:#745214;font-size:11px;font-weight:900;paint-order:stroke;stroke:#fbfdfff0;stroke-linejoin:round;stroke-width:3px}.ecg-conduction-label.is-active,.ecg-conduction-node.is-active .ecg-conduction-label{fill:#9b6500}.ecg-block-marker{opacity:0;transition:opacity .14s ease}.ecg-block-marker.is-active{opacity:1}.ecg-block-marker circle{fill:#fff0f2;stroke:#bf3949;stroke-width:3px}.ecg-block-marker path{fill:none;stroke:#bf3949;stroke-linecap:round;stroke-width:3px}.ecg-rhythm-marker line{stroke:#2476bc;stroke-linecap:round;stroke-width:2.4px}.ecg-rhythm-marker.is-qrs line{stroke:#243345;stroke-width:3px}.ecg-rhythm-marker.is-t line{stroke:#2d8b65}.ecg-rhythm-marker.is-dropped line,.ecg-rhythm-marker.is-escape line{stroke:#bf3949}.ecg-drop-marker circle{fill:#fff0f2;stroke:#bf3949;stroke-width:2.5px}.ecg-drop-marker path{fill:none;stroke:#bf3949;stroke-linecap:round;stroke-width:2.5px}.ecg-cycle-marker{fill:#243345;stroke:#fff;stroke-width:4px;filter:drop-shadow(0 5px 10px rgba(32,54,79,.24))}.ecg-handle-hit-zone{cursor:ew-resize;outline:none;touch-action:none}.ecg-handle-hit-zone:focus-visible{stroke:#14344f;stroke-width:3px}.frank-blood-particle{paint-order:stroke;stroke:#ffffffe6;stroke-width:2px}.frank-inflow-particle{opacity:0;animation:frankInflowParticle 1s linear infinite}.frank-outflow-particle{opacity:0;animation:frankOutflowParticle 1s cubic-bezier(.18,.72,.24,1) infinite}.frank-retained-particle{opacity:.22;animation:frankRetainedParticle 1s ease-in-out infinite}.frank-heart-panel.failure .frank-retained-particle{opacity:.38}.frank-heart-panel.failure .frank-outflow-particle{fill-opacity:.72}.frank-blood-particle.phase-1{animation-delay:80ms}.frank-blood-particle.phase-2{animation-delay:.15s}.is-paused .floating-particle,.is-paused .water-path,.is-paused .dash-flow,.is-paused .water-drop,.is-paused .flow-arrow,.is-paused .graph-line,.is-paused .water-trail,.is-paused .frank-myocardium,.is-paused .frank-ventricle-cavity,.is-paused .frank-output-flow,.is-paused .frank-blood-particle,.is-paused .arterial-heart-pump,.is-paused .arterial-vessel-pulse,.is-paused .arterial-blood-particle,.is-paused .arterial-peripheral-flow,.is-paused .arterial-pressure-wave,.is-paused .ecg-conduction-segment{animation-play-state:paused}@keyframes floatParticle{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes dashFlow{to{stroke-dashoffset:-46}}@keyframes ecgConductionTravel{to{stroke-dashoffset:-19}}@keyframes pulseFlow{0%,to{opacity:.48}50%{opacity:1}}@keyframes frankMyocardiumBeat{0%,48%,to{transform:scale(1)}16%,24%{transform:scale(var(--myocardium-systolic-scale))}}@keyframes frankVentricleBeat{0%,48%,to{transform:scale(1)}16%,24%{transform:scale(var(--ventricle-systolic-scale))}}@keyframes frankOutputBeat{0%,48%,to{opacity:.72}16%,24%{opacity:1}}@keyframes frankInflowParticle{0%,42%{opacity:0;transform:translate(0) scale(.8)}55%{opacity:.85}86%{opacity:.95;transform:translate(var(--inflow-travel)) scale(1)}96%,to{opacity:0;transform:translate(var(--inflow-travel)) scale(.72)}}@keyframes frankOutflowParticle{0%,12%{opacity:0;transform:translate(0) scale(.8)}16%{opacity:1;transform:translate(0) scale(1)}34%{opacity:.95;transform:translate(var(--output-travel)) scale(1)}44%,to{opacity:0;transform:translate(var(--output-travel)) scale(.75)}}@keyframes frankRetainedParticle{0%,48%,to{transform:translate(0) scale(1)}16%,24%{transform:translate(8px,-2px) scale(.86)}}@keyframes arterialHeartBeat{0%,48%,to{transform:scale(var(--arterial-heart-scale))}15%,24%{transform:scale(var(--arterial-heart-systolic-scale))}}@keyframes arterialVesselPulse{0%,48%,to{transform:scaleY(1)}15%,24%{transform:scaleY(var(--arterial-vessel-pulse-scale))}}@keyframes arterialParticleFlow{0%,10%{opacity:0;transform:translate(0) scale(.82)}20%{opacity:.95}82%{opacity:.95;transform:translate(var(--arterial-particle-travel)) scale(1)}to{opacity:0;transform:translate(var(--arterial-particle-travel)) scale(.78)}}@keyframes arterialWaveGlow{0%,to{opacity:.82}50%{opacity:1}}@keyframes arterialPeripheralFlow{to{stroke-dashoffset:-50}}@media (max-width: 1080px){.hero,.lesson-layout{grid-template-columns:1fr}.site-footer{grid-template-columns:1fr 1fr}.field-grid,.sim-list,.simple-grid,.formula-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.model-note{grid-column:span 2}}@media (max-width: 720px){:root{--anchor-offset: 32px}body{overflow-x:hidden}.site-header,.stage-title,.background-band,.notice-band,.page-notice,.profile-panel{align-items:stretch;grid-template-columns:1fr}.section,.page-shell,.lesson-page{width:100%;max-width:100%;overflow-x:hidden}.lesson-hero,.background-band,.lesson-layout,.simulation-stage{max-width:100%}.lesson-page{padding-top:30px}.lesson-hero{margin-bottom:14px}.lesson-layout{gap:12px}.simulation-stage.simulation-ecg-heart-cycle .stage-title{gap:10px;padding:12px}.simulation-stage.simulation-ecg-heart-cycle .stage-title h2{font-size:18px;line-height:1.3}.simulation-stage.simulation-ecg-heart-cycle .stage-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.simulation-stage.simulation-ecg-heart-cycle .status-badge{min-width:0;min-height:28px;padding:4px 8px;justify-content:center;line-height:1.2}.simulation-stage.simulation-ecg-heart-cycle .button.secondary{min-height:34px;padding:6px 12px;white-space:nowrap}.simulation-stage.simulation-ecg-heart-cycle .ecg-heart-cycle-diagram{width:calc(100% + 12px);max-width:none;margin-inline:-6px}.site-header{flex-direction:column}.site-header.is-hidden{pointer-events:none;transform:translateY(-100%)}.top-nav{display:grid;grid-template-columns:repeat(2,1fr);width:100%;font-size:12px}.top-nav a{text-align:center}.hero{min-height:auto}.lesson-hero .lead,.background-band p{line-break:anywhere;max-width:21rem;word-break:break-all}.lesson-hero .lead{margin-top:12px;font-size:15px}.lesson-hero h1{font-size:34px;line-break:anywhere;max-width:100%;overflow-wrap:anywhere;word-break:break-all}.goal-list{gap:6px;margin-top:12px}.goal-list span{padding:5px 8px;font-size:12px;line-height:1.35}.mobile-sim-jump{display:inline-flex;width:100%;margin-top:12px}.background-band{gap:8px;margin-bottom:12px;padding:12px 14px}.background-band .driving-question{font-size:16px;line-height:1.45}.field-grid,.sim-list,.simple-grid,.formula-grid,.site-footer{grid-template-columns:1fr}.model-note{grid-column:auto}.desktop-control-panel{display:none}.particle-sim-readout{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 10px}.particle-sim-readout span{font-size:11px}.particle-sim-readout strong{font-size:13px}.particle-sim-note{padding:0 10px 10px;font-size:12px;line-height:1.45}.membrane-control-panel{padding:0;border:0;background:transparent;box-shadow:none}.membrane-control-panel .panel-heading{display:none}.mode-button-grid,.arrangement-grid,.membrane-step-grid{grid-template-columns:1fr}.mode-card-button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.mode-card-button span{text-align:right}.arrangement-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.arrangement-grid button,.membrane-speed-grid button{text-align:center}.membrane-step-grid{gap:8px}.membrane-stepper{grid-template-columns:minmax(0,1fr) auto auto}.mobile-metric-bar{position:sticky;bottom:max(10px,env(safe-area-inset-bottom));z-index:8;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(68px,.68fr) auto;gap:7px;align-items:center;margin:-2px 8px 2px;padding:8px;border:1px solid rgba(169,199,223,.82);border-radius:8px;background:rgba(255,255,255,.94);box-shadow:0 14px 34px #20364f33;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-metric-bar.is-controls-only{grid-template-columns:1fr;margin-inline:8px}.mobile-metric-item{display:grid;gap:2px;min-width:0}.mobile-metric-item>span{color:var(--muted);font-size:11px;font-weight:900;line-height:1.1}.mobile-metric-item>strong:not(.status-badge){color:var(--ink);font-size:14px;font-weight:900;line-height:1.2;overflow-wrap:normal;word-break:keep-all}.mobile-metric-bar .status-badge{align-self:start;min-height:26px;padding:3px 8px;font-size:12px;line-height:1.25}.mobile-control-trigger{align-self:stretch;min-height:40px;padding:7px 10px}.mobile-metric-bar.is-controls-only .mobile-control-trigger{min-height:44px}.mobile-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:39;display:block;width:100%;min-height:100%;padding:0;border:0;background:rgba(23,34,46,.34);cursor:pointer}.mobile-control-sheet{position:fixed;right:0;bottom:0;left:0;z-index:40;display:grid;max-height:min(62svh,540px);padding:10px clamp(14px,4vw,22px) max(18px,env(safe-area-inset-bottom));border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;background:var(--surface);box-shadow:0 -24px 54px #17222e3d;overflow-y:auto;animation:mobileSheetIn .18s ease-out}.mobile-sheet-handle{justify-self:center;width:42px;height:4px;margin-bottom:10px;border-radius:999px;background:#c5d1dc}.mobile-sheet-heading{position:sticky;top:-10px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line);background:var(--surface)}.mobile-sheet-heading .eyebrow,.mobile-sheet-heading h2{margin:0}.mobile-sheet-heading h2{font-size:20px}.mobile-sheet-close{flex:0 0 auto;font-size:22px;line-height:1}.mobile-sheet-body{padding-top:14px}.mobile-sheet-body .control-panel{padding:0;border:0;background:transparent;box-shadow:none}.stage-actions{flex-direction:column;align-items:stretch}.vector-mode-toggle{width:100%}.stage-title{flex-direction:column}.stage-title>div{min-width:0}}@media (prefers-reduced-motion: reduce){.site-header{transition:none}.mobile-control-sheet,.frank-myocardium,.frank-ventricle-cavity,.frank-output-flow,.frank-blood-particle,.arterial-heart-pump,.arterial-vessel-pulse,.arterial-blood-particle,.arterial-pressure-wave,.ecg-conduction-segment{animation:none}}@keyframes mobileSheetIn{0%{transform:translateY(18px);opacity:.72}to{transform:translateY(0);opacity:1}}
