[data-lv-js][hidden] {display: none !important;}
.lv-opening {border-left: .25rem solid var(--accent,#7056a8); padding: .6rem 1rem; margin: 1.25rem 0 2rem;}
.lv-module {--lv-surface:#fffdf8;--lv-ink:#202238;--lv-muted:#525261;--lv-elevated:#f5f1fa;--lv-rule:#c6c0cf;--lv-link:#593a87;margin: 1.8rem 0; padding: clamp(1rem,3vw,1.75rem); border: 1px solid var(--lv-rule); border-radius: .8rem; background: var(--lv-surface); color: var(--lv-ink);}
.lv-module h3 {margin-top: 0;}
.lv-chart-layout {display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 1.5rem; align-items: start;}
.lv-figure {margin: 1.25rem 0; min-width: 0;}
.lv-figure svg {display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; color: #202238; background:#fffdf8; overflow: visible;}
.lv-figure figcaption {font-size: 1rem; line-height: 1.6; margin-top: 1rem; color: var(--lv-muted);}
#lesson .lv-module a {color:var(--lv-link);}
.lv-axis-label {font: 18px system-ui,sans-serif;}
.lv-band-label {font: 19px system-ui,sans-serif; font-weight: 650;}
.lv-grid {opacity: .18;}
.lv-landmark {opacity: .45;}
.lv-highlight {fill: #9e82d6; opacity: .22; stroke: currentColor; stroke-width: 1;}
.lv-rv {fill: #a7b8d1;}
.lv-erv {fill: #a4cfbd;}
.lv-tv {fill: #edca83;}
.lv-irv {fill: #c9b7e6;}
.lv-ic {fill: #b5d8cb;}
.lv-frc {fill: #c9b7e6;}
.lv-choice-grid {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; margin: 1.25rem 0;}
#lesson .lv-module button {font: inherit; font-size: 1rem; line-height: 1.35; min-height: 44px; min-width: 44px; padding: .6rem .75rem; border: 1px solid var(--lv-rule); border-radius: .45rem; color: var(--lv-ink); background: var(--lv-elevated); cursor: pointer; overflow-wrap: normal;}
#lesson .lv-choice-grid button {white-space: nowrap; padding: .55rem .25rem;}
#lesson .lv-module button[aria-pressed="true"] {background: #453267; color: #fff; border-color: #453267; box-shadow: inset 0 -3px 0 #d7c7f2;}
.lv-module button:hover {text-decoration: underline; text-underline-offset: .2em;}
.lv-module button:focus-visible,.lv-module input:focus-visible,.lv-prediction summary:focus-visible {outline: 3px solid var(--accent,#7956ae); outline-offset: 3px;}
.lv-selection {border-top: 1px solid var(--border,#c6c0cf); padding-top: 1rem;}
.lv-selection h4 {margin: 0 0 .65rem;}
.lv-number {font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;}
.lv-measurement {font-size: 1rem; font-weight: 600;}
.lv-prediction {padding: 1rem 0; border-top: 1px solid var(--border,#c6c0cf); border-bottom: 1px solid var(--border,#c6c0cf); margin: 1.6rem 0;}
.lv-prediction>p:first-child {margin-top: 0;}
.lv-prediction details {margin: .75rem 0;}
.lv-prediction summary {cursor: pointer; padding: .65rem .3rem; min-height: 44px; box-sizing: border-box; font-weight: 600;}
.lv-prediction details p {padding-left: .3rem;}
#lesson .lv-reference {width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 1rem; line-height: 1.6;}
.lv-reference caption {text-align: left; font-weight: 600; padding: .5rem 0 1rem;}
.lv-reference th,.lv-reference td {padding: .8rem; border-bottom: 1px solid var(--border,#c6c0cf); text-align: left; vertical-align: top; overflow-wrap: break-word;}
.lv-slider-area label {display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 650;}
.lv-slider-area output {font-variant-numeric: tabular-nums;}
.lv-slider-area input[type="range"] {display: block; width: 100%; min-height: 44px; margin: .5rem 0; accent-color: var(--accent,#7056a8);}
.lv-preset-row,.lv-method-buttons {display: flex; gap: .65rem; flex-wrap: wrap; margin: .75rem 0 1rem;}
.lv-result {padding: .7rem 0; font-weight: 600; margin: .8rem 0; font-variant-numeric: tabular-nums;}
.lv-model-note {font-size: 1rem; line-height: 1.6;}
.lv-lung {fill: #c3cedb; opacity: .6;}
.lv-sensor {fill: #d9cbe9;}
.lv-gas-path {stroke: #696096;}
.lv-narrowing {stroke: #b29671;}
.lv-pleth-box {opacity: .16;}
[data-lv-method="spirometry"] .lv-sensor {fill: #b5d8cb; stroke-width: 4;}
[data-lv-method="helium"] .lv-communicating {fill: #b5d8cb; opacity: 1;}
[data-lv-method="helium"] .lv-poor-mixing {fill: #c3cedb; opacity: .35;}
[data-lv-method="helium"] .lv-gas-path {stroke: #19705a;}
[data-lv-method="pleth"] .lv-pleth-box {opacity: 1; stroke-width: 3;}
[data-lv-method="pleth"] .lv-lung {fill: #c9b7e6; opacity: 1;}
.lv-final-tool {margin: 2rem 0; border-top: 2px solid var(--border,#c6c0cf); padding-top: 1rem;}
.lv-final-tool li {margin: .9rem 0;}
html[data-bw-study-scheme="dark"] .lv-module {--lv-surface:#1c1b2b;--lv-ink:#eef1f8;--lv-muted:#c3cbdc;--lv-elevated:#302b43;--lv-rule:#8f7fae;--lv-link:#d6bcff;}
@media(prefers-color-scheme:dark){html:not([data-bw-study-scheme]) .lv-module {--lv-surface:#1c1b2b;--lv-ink:#eef1f8;--lv-muted:#c3cbdc;--lv-elevated:#302b43;--lv-rule:#8f7fae;--lv-link:#d6bcff;}}
/* The native reader explicitly selects its palette, independently of saved web study preferences. */
@media screen {
html[data-bw-native-theme="light"] body[data-lv-lesson]:has(> main#lesson) {background:#f5f4f0!important;color:#202238!important;}
html[data-bw-native-theme="dark"] body[data-lv-lesson]:has(> main#lesson) {background:#10131b!important;color:#f4f1fa!important;}
html[data-bw-native-theme] body[data-lv-lesson] > main#lesson {background:inherit!important;color:inherit!important;}
html[data-bw-native-theme="light"] .lv-module {--lv-surface:#fffdf8;--lv-ink:#202238;--lv-muted:#525261;--lv-elevated:#f5f1fa;--lv-rule:#c6c0cf;--lv-link:#593a87;}
html[data-bw-native-theme="dark"] .lv-module {--lv-surface:#1c1b2b;--lv-ink:#eef1f8;--lv-muted:#c3cbdc;--lv-elevated:#302b43;--lv-rule:#8f7fae;--lv-link:#d6bcff;}
html[data-bw-native-theme="dark"] body[data-lv-lesson] #lesson .bwcr-key {background:#302b43;}
html[data-bw-native-theme="dark"] body[data-lv-lesson] #lesson [data-bw-inline-auth] #signin-send:not(:disabled):not([aria-disabled="true"]) {background:#453267!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-bw-native-theme="light"] body[data-lv-lesson] #lesson .bw-op-navigation button.bwcr-secondary {color:#593a87;}
html[data-bw-native-theme="light"] body[data-lv-lesson] #lesson [data-bw-inline-auth] .signin-provider-apple {color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-bw-native-theme="light"] body[data-lv-lesson] #lesson [data-bw-inline-auth] .signin-provider-note > p {color:#51495f!important;-webkit-text-fill-color:#51495f!important;}
}
@media(max-width: 760px) {.lv-chart-layout{grid-template-columns:minmax(0,1fr);gap:0}.lv-choice-grid{margin-top:.5rem}.lv-selection{min-height:0}.lv-reference th,.lv-reference td{padding:.65rem .5rem}}
@media(max-width: 420px) {.lv-module{padding:.85rem}.lv-preset-row button,.lv-method-buttons button{flex:1 1 9rem}.lv-reference{font-size:.95rem}.lv-reference th,.lv-reference td{padding:.5rem .4rem}.lv-band-label,.lv-axis-label{font-size:20px}}
@media(prefers-reduced-motion: reduce) {.lv-module *{scroll-behavior:auto;transition:none;animation:none}}
@media print {.lv-module [data-lv-js]{display:none!important}.lv-module{break-inside:avoid}.lv-prediction details{display:block}.lv-figure svg{max-width:25rem}}
