/* Atlantis is a static approved render; only light overlays and the pressure marker move. */
.med-session.med-session-profile { position: relative; background: radial-gradient(ellipse at 86% 15%, #19396280, transparent 56%), linear-gradient(145deg, #071a2d, #092839 70%, #0a2d3e); padding-top: clamp(70px, 7vw, 120px); padding-bottom: clamp(70px, 7vw, 120px); }
.session-wrap { max-width: 1600px; margin: 0 auto; }
.session-section-heading { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 6%; align-items: end; margin-bottom: 40px; }
.session-section-heading .section-label { margin-bottom: 25px; color: #6ee7ec; }
.session-section-heading h2 { font-size: clamp(34px,3.6vw,58px); line-height: 1.12; letter-spacing: -.045em; }
.session-section-heading > p { max-width: 420px; padding-bottom: 5px; color: #b7ccda; font-size: clamp(14px,1.15vw,17px); line-height: 1.8; }
.session-profile { margin: 0; min-width: 0; border: 1px solid #6296b34a; border-radius: 22px; background: #071e32; box-shadow: 0 18px 65px #010e1b38, inset 0 1px 0 #c5f3ff0b; overflow: hidden; }
.session-profile-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 28px; border-bottom: 1px solid #75b6cc25; }
.session-profile-top h3 { font: 500 12px/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #d4e7f0; }
.session-oxygen-label { display: inline-flex; align-items: baseline; color: #8aebed; font-size: 16px; white-space: nowrap; }
.session-oxygen-label sub { font-size: 10px; }
.session-oxygen-label > span { margin-left: 10px; color: #b6d1df; font-size: 11px; }
.session-explorer { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(320px,1fr); align-items: stretch; }
.session-visual { min-width: 0; background: radial-gradient(ellipse at 50% 30%, #1c496477, transparent 70%); }
.session-scene { position: relative; height: clamp(280px,27vw,410px); overflow: hidden; isolation: isolate; }
.session-scene::before { content: ''; position: absolute; z-index: -1; left: 20%; bottom: 1%; width: 60%; height: 13%; background: radial-gradient(ellipse, #000d1ec9, transparent 68%); }
.session-scene-caption { position: absolute; left: 26px; right: 20px; top: 18px; color: #a5d6e1; font-size: 11px; line-height: 1.4; }
.session-scene-caption > span { display: none; }
[data-session-stage="0"] [data-session-signal="0"], [data-session-stage="1"] [data-session-signal="1"], [data-session-stage="2"] [data-session-signal="2"], [data-session-stage="3"] [data-session-signal="3"], [data-session-stage="4"] [data-session-signal="4"] { display: block; }
.session-render-plane { position: absolute; height: calc(100% - 35px); width: auto; aspect-ratio: 9 / 7; max-width: 95%; bottom: 3px; left: 50%; transform: translateX(-50%); }
.session-atlantis-render { display: block; width: 100%; height: 100%; object-fit: contain; }
.session-scene-legend { position: absolute; left: 26px; right: 26px; bottom: 10px; display: flex; align-items: baseline; color: #b2edf0; font-size: 13px; line-height: 1.2; pointer-events: none; }
.session-scene-legend sub { font-size: 9px; }
.session-gas-key { align-self: center; margin-right: 7px; width: 5px; height: 5px; background: #9bffff; border-radius: 50%; box-shadow: 0 0 7px #3edbed; }
.session-scene-note { margin-left: auto; font-size: 10px; color: #93b6c7; }
.session-mini-curve { padding: 14px 26px 18px; border-top: 1px solid #75b6cc20; background: #061a2b40; }
.session-curve-heading, .session-curve-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9ec3d2; font-size: 10px; line-height: 1.4; }
.session-curve-heading > :first-child { color: #d3e8f0; }
.session-curve-foot > :last-child { display: flex; align-items: center; gap: 7px; }
.session-curve-foot svg { width: 22px; height: 11px; stroke: currentColor; stroke-width: 1; fill: none; }
.session-chart { --pressure-a: 3.3333%; --pressure-b: 16.6667%; --pressure-c: 33.3333%; --pressure-mid: 54.1667%; --pressure-d: 75%; --pressure-e: 91.6667%; --pressure-f: 96.6667%; --pressure-low: 75%; --pressure-high: 22.5%; position: relative; width: 100%; height: 70px; margin: 3px 0 0; }
.session-plot { display: block; width: 100%; height: 100%; overflow: visible; }
.session-plot path { vector-effect: non-scaling-stroke; }
.session-guide { fill: none; stroke: #7dc0d62c; stroke-width: 1; stroke-dasharray: 3 7; }
.session-axis { fill: none; stroke: #78a4b647; stroke-width: 1; }
.session-curve-halo { fill: none; stroke: #4bdce9; stroke-width: 8; stroke-opacity: .05; stroke-linecap: round; stroke-linejoin: round; }
.session-curve { fill: none; stroke: #398da5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.session-segment { fill: none; stroke: #6ee9ee; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .2; transition: opacity .2s; }
.session-reading { min-width: 0; display: flex; flex-direction: column; padding: 24px 30px; border-left: 1px solid #75b6cc25; background: linear-gradient(155deg,#164057b3,#0a263b55); }
.session-stage-picker { margin-bottom: 28px; }
.session-stage-picker > p { margin-bottom: 7px; color: #a1c8d6; font-size: 11px; }
.session-point-group { display: grid; grid-template-columns: repeat(5,minmax(44px,1fr)); gap: 5px; }
.session-point { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #90b8c9; background: transparent; font: 500 13px/1 var(--font-body); cursor: pointer; transition: background .18s,color .18s,border-color .18s; }
.session-point::after { content: ''; position: absolute; height: 2px; bottom: 0; left: 16%; right: 16%; background: #6ba9bf45; }
.session-point[aria-pressed="true"] { color: #e4ffff; background: #75edec14; border-color: #70d9e34d; }
.session-point[aria-pressed="true"]::after { background: #74f1ec; }
.session-point:focus-visible, .session-playback-button:focus-visible { outline: 2px solid #b6f9f8; outline-offset: 3px; }
.session-phase-grid { display: grid; padding: 0; margin: 0; list-style: none; }
.session-phase-card { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease; }
.session-phase-card.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.session-phase-top { display: flex; align-items: center; justify-content: space-between; color: #92e4e9; margin-bottom: 14px; height: 26px; }
.session-phase-top > span { font-size: 11px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.session-phase-top svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.session-phase-card h3 { color: #effbff; font-size: clamp(25px,2.1vw,34px); line-height: 1.2; letter-spacing: -.025em; }
.session-duration { margin: 10px 0 18px; color: #a9d4df; font-size: 11px; line-height: 1.5; }
.session-description { font-size: 15px; line-height: 1.75; color: #d4e5ee; }
.session-playback { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.session-playback-state { color: #a1c6d5; font-size: 10px; }
.session-playback-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #7db9cf63; border-radius: 24px; background: #0a293d; padding: 8px 14px; color: #c9f8f8; font: 400 11px/1.3 var(--font-body); cursor: pointer; }
.session-playback-button[hidden] { display: none; }
.session-playback-button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.session-playback-button > svg { display: none; }
.session-playback-button[data-session-action="pause"] .session-read-icon,
.session-playback-button[data-session-action="resume"] .session-resume-icon,
.session-playback-button[data-session-action="replay"] .session-replay-icon { display: block; }
.session-profile-footer { padding: 13px 28px; border-top: 1px solid #75b6cc25; color: #abc9d8; font-size: 10px; line-height: 1.6; }
.session-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; }
@media (hover:hover) { .session-point:hover, .session-playback-button:hover { border-color: #77d5de; color: #fff; } }
@media (min-width:1600px) { .session-description { font-size: 17px; } .session-duration { font-size: 13px; } .session-reading { padding: 30px 38px; } .session-stage-picker > p { font-size: 12px; } .session-playback-button { font-size: 12px; } }
@media (max-width:1180px) {
  .session-section-heading { grid-template-columns: 1.5fr 1fr; gap: 32px; }
  .session-section-heading h2 { font-size: 40px; }
  .session-explorer { grid-template-columns: minmax(0,1fr) 300px; }
  .session-reading { padding: 20px; }
  .session-stage-picker { margin-bottom: 20px; }
  .session-phase-top { margin-bottom: 9px; }
  .session-description { font-size: 14px; }
  .session-phase-card h3 { font-size: 26px; }
  .session-playback { gap: 8px; }
  .session-playback-state { font-size: 9px; }
  .session-playback-button { font-size: 10px; padding: 8px 11px; }
}
@media (max-width:950px) {
  .session-section-heading { grid-template-columns: 1fr; gap: 24px; }
  .session-section-heading h2 { font-size: 42px; }
  .session-section-heading > p { max-width: 590px; font-size: 15px; }
  .session-explorer { grid-template-columns: 1fr; }
  .session-scene { height: 320px; }
  .session-mini-curve { padding: 12px 26px; }
  .session-chart { height: 56px; }
  .session-reading { border-left: 0; border-top: 1px solid #75b6cc25; padding: 16px 26px; }
  .session-stage-picker { margin-bottom: 14px; display: flex; align-items: center; gap: 24px; }
  .session-stage-picker > p { margin: 0; white-space: nowrap; }
  .session-point-group { flex: 1; }
  .session-phase-top { float: right; margin: 0; gap: 20px; }
  .session-phase-card h3 { font-size: 26px; padding-right: 100px; }
  .session-duration { margin: 5px 0 10px; }
  .session-description { font-size: 15px; line-height: 1.7; }
  .session-playback { padding-top: 12px; }
  .session-playback-state, .session-playback-button { font-size: 11px; }
}
@media (max-width:620px) {
  .med-session.med-session-profile { padding-top: 60px; padding-bottom: 65px; }
  .session-section-heading { margin-bottom: 28px; gap: 20px; }
  .session-section-heading .section-label { font-size: 10px; letter-spacing: .1em; margin-bottom: 20px; }
  .session-section-heading h2 { font-size: clamp(30px,7.6vw,40px); line-height: 1.15; }
  .session-section-heading > p { font-size: 14px; line-height: 1.75; }
  .session-profile { border-radius: 16px; }
  .session-profile-top { padding: 12px 16px; gap: 8px; }
  .session-profile-top h3 { font-size: 9px; letter-spacing: .065em; }
  .session-oxygen-label { font-size: 13px; }
  .session-oxygen-label > span { display: none; }
  .session-oxygen-label sub { font-size: 8px; }
  .session-scene { height: auto; aspect-ratio: 1.45; max-height: 270px; }
  .session-scene-caption { top: 11px; left: 16px; right: 12px; font-size: 9px; }
  .session-render-plane { height: calc(100% - 23px); bottom: 0; }
  .session-scene-legend { left: 16px; right: 16px; bottom: 6px; font-size: 11px; }
  .session-scene-note { font-size: 8px; }
  .session-mini-curve { padding: 9px 16px 11px; }
  .session-curve-heading, .session-curve-foot { font-size: 9px; }
  .session-chart { height: 44px; }
  .session-reading { padding: 10px 18px 14px; }
  .session-stage-picker { display: block; margin-bottom: 12px; }
  .session-stage-picker > p { display: none; }
  .session-point { font-size: 12px; }
  .session-point-group { gap: 4px; }
  .session-phase-top { height: 24px; }
  .session-phase-top > span { font-size: 10px; letter-spacing: .05em; }
  .session-phase-top svg { display: none; }
  .session-phase-card h3 { font-size: 23px; padding-right: 44px; }
  .session-duration { font-size: 10px; margin: 5px 0 9px; }
  .session-description { font-size: 14px; line-height: 1.6; }
  .session-playback { padding-top: 10px; gap: 8px; }
  .session-playback-state { font-size: 10px; }
  .session-playback-button { font-size: 10px; gap: 7px; }
  .session-profile-footer { padding: 10px 18px; font-size: 9px; }
}
@media (max-width:359px) {
  .session-scene { aspect-ratio: 1.55; }
  .session-reading { padding: 9px 14px 12px; }
  .session-phase-card h3 { font-size: 21px; }
  .session-description { font-size: 13px; }
  .session-playback-state { font-size: 9px; }
  .session-profile-top h3 { font-size: 8px; }
  .session-profile-footer { padding: 10px 14px; }
  .session-mini-curve { padding-left: 14px; padding-right: 14px; }
}

[data-session-stage="0"] { --stage-duration: 15000ms; }
[data-session-stage="1"] { --stage-duration: 15000ms; }
[data-session-stage="2"] { --stage-duration: 15000ms; }
[data-session-stage="3"] { --stage-duration: 15000ms; }
[data-session-stage="4"] { --stage-duration: 15000ms; }
.session-pressure-cursor { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; transform: translate(var(--pressure-a), var(--pressure-low)); }
.session-pressure-cursor::before { content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: #e2ffff; border: 2px solid #8ff7f3; box-shadow: 0 0 0 5px #6be9ee24, 0 0 14px #44eaff8a; }
.session-pressure-meter { position: absolute; left: var(--pressure-a); top: var(--pressure-high); height: calc(var(--pressure-low) - var(--pressure-high)); width: 2px; background: linear-gradient(#bafcf8, #46bccd66); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.session-pressure-cursor, .session-pressure-meter { animation-duration: var(--stage-duration); animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; }
[data-session-mode="auto"] .session-profile.is-visible .session-pressure-cursor,
[data-session-mode="auto"] .session-profile.is-visible .session-pressure-meter { animation-play-state: running; }
[data-session-stage="0"] .session-pressure-cursor { animation-name: session-pressure-purge; }
[data-session-stage="1"] .session-pressure-cursor { animation-name: session-pressure-rise; animation-timing-function: cubic-bezier(.4,0,.6,1); }
[data-session-stage="2"] .session-pressure-cursor { animation-name: session-pressure-hold; }
[data-session-stage="3"] .session-pressure-cursor { animation-name: session-pressure-renew; }
[data-session-stage="4"] .session-pressure-cursor { animation-name: session-pressure-fall; }
[data-session-stage="0"] .session-pressure-meter { animation-name: session-level-low; }
[data-session-stage="1"] .session-pressure-meter { animation-name: session-level-rise; animation-timing-function: cubic-bezier(.4,0,.6,1); }
[data-session-stage="2"] .session-pressure-meter, [data-session-stage="3"] .session-pressure-meter { animation-name: session-level-high; }
[data-session-stage="4"] .session-pressure-meter { animation-name: session-level-fall; }
@keyframes session-pressure-purge { from { transform: translate(var(--pressure-a),var(--pressure-low)); } to { transform: translate(var(--pressure-b),var(--pressure-low)); } }
@keyframes session-pressure-rise { from { transform: translate(var(--pressure-b),var(--pressure-low)); } to { transform: translate(var(--pressure-c),var(--pressure-high)); } }
@keyframes session-pressure-hold { from { transform: translate(var(--pressure-c),var(--pressure-high)); } to { transform: translate(var(--pressure-mid),var(--pressure-high)); } }
@keyframes session-pressure-renew { from { transform: translate(var(--pressure-mid),var(--pressure-high)); } to { transform: translate(var(--pressure-d),var(--pressure-high)); } }
@keyframes session-pressure-fall { 0% { transform: translate(var(--pressure-d),var(--pressure-high)); animation-timing-function: cubic-bezier(.4,0,.6,1); } 88% { transform: translate(var(--pressure-e),var(--pressure-low)); } 100% { transform: translate(var(--pressure-f),var(--pressure-low)); } }
@keyframes session-level-low { from, to { transform: scaleY(0); } }
@keyframes session-level-high { from, to { transform: scaleY(1); } }
@keyframes session-level-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes session-level-fall { 0% { transform: scaleY(1); animation-timing-function: cubic-bezier(.4,0,.6,1); } 88%,100% { transform: scaleY(0); } }
[data-session-stage="0"] [data-session-plot="0"], [data-session-stage="1"] [data-session-plot="1"], [data-session-stage="2"] [data-session-plot="2"], [data-session-stage="3"] [data-session-plot="2"], [data-session-stage="4"] [data-session-plot="4"] { opacity: 1; }
[data-session-stage="3"] .session-renewal rect { fill: #66e2ed10; stroke: #8ee9eb; }

.session-pressure-cursor::before { width: 8px; height: 8px; border-width: 1px; box-shadow: 0 0 0 4px #6be9ee20,0 0 9px #44eaff7a; }
@media (prefers-reduced-motion:reduce) {
 .session-pressure-cursor,.session-pressure-meter { animation: none; }
 .session-point,.session-phase-card,.session-segment { transition: none; }
 [data-session-stage="1"] .session-pressure-cursor { transform:translate(var(--pressure-c),var(--pressure-high)); }
 [data-session-stage="2"] .session-pressure-cursor { transform:translate(var(--pressure-mid),var(--pressure-high)); }
 [data-session-stage="3"] .session-pressure-cursor { transform:translate(var(--pressure-d),var(--pressure-high)); }
 [data-session-stage="4"] .session-pressure-cursor { transform:translate(var(--pressure-f),var(--pressure-low)); }
 [data-session-stage="1"] .session-pressure-meter,[data-session-stage="2"] .session-pressure-meter,[data-session-stage="3"] .session-pressure-meter { transform:scaleY(1); }
}
@media print { .session-explorer { display:block; } .session-phase-grid { display:block; } .session-phase-card { opacity:1;visibility:visible;padding:20px 0;break-inside:avoid; } .session-playback,.session-stage-picker { display:none; } }

/* Five distinct visual processes. Only the current group is composited and animated. */
.session-profile { overflow-anchor: none; }
.session-chamber-window { position: absolute; left: 16.8%; top: 35.8%; width: 57%; height: 18%; transform: skewY(6deg); transform-origin: left top; border-radius: 12% 5% 7% 11%; overflow: hidden; pointer-events: none; }
.session-process-effect { display: none; position: absolute; inset: 0; overflow: hidden; }
[data-session-stage="0"] [data-session-effect="0"], [data-session-stage="1"] [data-session-effect="1"], [data-session-stage="2"] [data-session-effect="2"], [data-session-stage="3"] [data-session-effect="3"], [data-session-stage="4"] [data-session-effect="4"] { display: block; }
.session-process-effect [data-stage-motion], .session-exhaust [data-stage-motion] { animation-duration: var(--stage-duration); animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; }
:is([data-session-mode="auto"],[data-session-mode="preview"]) .session-profile.is-visible [data-stage-motion] { animation-play-state: running; }
.session-molecule-field, .session-volume-ribs { width: 100%; height: 100%; display: block; }
.session-molecule-field { fill: #9fffff; }
.session-volume-ribs { fill: none; stroke: #87f3fa; stroke-width: 1.3; }
.session-air-cloud { position: absolute; inset: 0; background: linear-gradient(90deg,#b8ccdc20,#cad7e87a); animation-name: session-air-displacement; }
.session-air-cloud .session-molecule-field { fill: #e9edf7; }
.session-oxygen-sweep { position: absolute; inset: 0; background: linear-gradient(90deg,#1687c738,#29dfed70 78%,#7dffffa6); animation-name: session-oxygen-sweep; }
.session-sweep-edge { position: absolute; inset: 0 0 0 auto; width: 13%; border-right: 2px solid #b8ffff; border-radius: 0 50% 50% 0; background: linear-gradient(90deg,transparent,#9dffff5c); }
.session-sweep-label { position: absolute; right: 16%; top: 34%; font: 500 clamp(12px,1.65vw,24px)/1 var(--font-body); color: #e2ffff; }
.session-purge-current { position: absolute; left: -60%; top: 29%; width: 48%; height: 2px; background: linear-gradient(90deg,transparent,#8cffffa6); animation-name: session-purge-current; }
.session-purge-current-b { top: 75%; animation-name: session-purge-current-late; }
@keyframes session-air-displacement { from { transform: translateX(0); opacity: .8; } to { transform: translateX(100%); opacity: .15; } }
@keyframes session-oxygen-sweep { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes session-purge-current { 0%,15% { transform: translateX(0); opacity: 0; } 25% { opacity: .9; } 85% { transform: translateX(330%); opacity: .7; } 100% { transform: translateX(330%); opacity: 0; } }
@keyframes session-purge-current-late { 0%,30% { transform: translateX(0); opacity: 0; } 40% { opacity: .8; } 100% { transform: translateX(330%); opacity: 0; } }
.session-compression-volume, .session-stable-volume, .session-renew-volume, .session-release-volume { position: absolute; inset: 0; background: radial-gradient(ellipse,#21d9ed8c,#29abe554 60%,#1aa7de0d); }
.session-compression-volume { animation-name: session-compression-volume; }
.session-effect-compress [data-stage-motion] { animation-timing-function: cubic-bezier(.4,0,.6,1); }
.session-compression-ribs { position: absolute; inset: 3% 1%; animation-name: session-compression-ribs; }
.session-compression-cloud { position: absolute; inset: 4% 0; animation-name: session-density-increase; }
.session-pressure-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; color: #edffff; text-shadow: 0 0 12px #064473; font: 500 clamp(20px,3vw,42px)/1 var(--font-body); animation-name: session-pressure-rise-glyph; }
.session-pressure-glyph > svg { width: 9%; height: 36%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.session-pressure-ladder { position: absolute; top: 13%; right: 6%; width: 5%; height: 74%; border: 1px solid #95e8f571; border-radius: 2px; padding: 2px; background: #09253950; }
.session-pressure-ladder > span { position: absolute; inset: 2px; transform-origin: bottom; background: repeating-linear-gradient(to top,#a3ffff 0 12%,transparent 12% 18%); animation-name: session-pressure-ladder-rise; }
@keyframes session-compression-volume { from { opacity: .18; } to { opacity: .85; } }
@keyframes session-compression-ribs { from { opacity: .15; } to { opacity: .9; } }
@keyframes session-density-increase { 0% { opacity: .08; } 30% { opacity: .18; } 65% { opacity: .5; } 100% { opacity: .85; } }
@keyframes session-pressure-rise-glyph { from { transform: translateY(16%); opacity: .3; } to { transform: translateY(-6%); opacity: 1; } }
@keyframes session-pressure-ladder-rise { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
.session-stable-volume { animation-name: session-stable-breath; }
.session-stable-field { position: absolute; inset: 8% 4%; opacity: .26; }
.session-stable-outline { position: absolute; inset: 8% 3%; border: 1px solid #91ffecb0; border-radius: 40% / 22%; background: linear-gradient(90deg,transparent,#63f1dd10,transparent); }
.session-stable-glyph { color: #baffec; animation-name: none; }
.session-stable-glyph > svg { width: 12%; }
.session-equilibrium-line { position: absolute; left: 15%; right: 15%; bottom: 10%; height: 2px; background: #8ff5dd4a; }
.session-equilibrium-line > span { position: absolute; inset: 0; background: #a9fff1; animation-name: session-equilibrium-glow; }
@keyframes session-stable-breath { 0%,100% { opacity: .67; } 50% { opacity: .8; } }
@keyframes session-equilibrium-glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.session-renew-volume { opacity: .48; }
.session-renew-lane { position: absolute; left: 0; width: 100%; height: 33%; overflow: hidden; }
.session-renew-in { top: 6%; color: #9dffff; background: linear-gradient(90deg,#21badf70,#4ee5ed20); border-top: 1px solid #79ffff95; border-bottom: 1px solid #79ffff30; }
.session-renew-out { bottom: 6%; color: #f9ddaf; background: linear-gradient(90deg,#dbb88814,#e9c58b54); border-top: 1px solid #f5d8a530; border-bottom: 1px solid #f5d8a59e; }
.session-channel-label { position: absolute; top: 0; left: 6%; bottom: 0; display: flex; align-items: center; font: 500 clamp(8px,1vw,15px)/1 var(--font-body); color: inherit; }
.session-renew-out .session-channel-label { left: auto; right: 5%; font-size: clamp(6px,.7vw,11px); }
.session-channel-stream { position: absolute; inset: 0 22%; display: flex; align-items: center; justify-content: space-evenly; animation-name: session-fresh-gas-stream; }
.session-channel-stream > span { width: 10%; aspect-ratio: 1; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.session-renew-out .session-channel-stream { animation-name: session-used-gas-stream; }
.session-exchange-wave { position: absolute; left: -15%; top: 35%; width: 130%; height: 30%; background: radial-gradient(ellipse at 50% 50%,#a0fff14a,transparent 65%); animation-name: session-atmosphere-exchange; }
@keyframes session-fresh-gas-stream {
 0%,33.01%,66.01% { transform: translateX(-25%); opacity: 0; }
 5%,38%,71% { opacity: 1; }
 28%,61%,94% { transform: translateX(25%); opacity: 1; }
 33%,66%,100% { transform: translateX(25%); opacity: 0; }
}
@keyframes session-used-gas-stream {
 0%,33.01%,66.01% { transform: translateX(-25%); opacity: 0; }
 8%,41%,74% { opacity: .85; }
 28%,61%,94% { transform: translateX(25%); opacity: .85; }
 33%,66%,100% { transform: translateX(25%); opacity: 0; }
}
@keyframes session-atmosphere-exchange { 0%,50%,100% { transform: translateX(-12%); opacity: .4; } 25%,75% { transform: translateX(12%); opacity: 1; } }
.session-release-volume { animation-name: session-release-volume; }
.session-release-cloud { position: absolute; inset: 0; animation-name: session-release-cloud; }
.session-release-ring { position: absolute; left: 8%; top: 8%; width: 18%; height: 84%; border: 1px solid #c0f3ffe0; border-radius: 50%; background: linear-gradient(90deg,transparent,#b9f4ff19); animation-name: session-release-ring-a; }
.session-release-ring-b { animation-name: session-release-ring-b; }
.session-release-ring-c { animation-name: session-release-ring-c; }
.session-effect-release .session-pressure-glyph { animation-name: session-pressure-fall-glyph; }
.session-effect-release .session-pressure-ladder > span { animation-name: session-pressure-ladder-fall; }
@keyframes session-release-volume { from { opacity: .8; } to { opacity: 0; } }
@keyframes session-release-cloud { from { transform: translateX(0); opacity: .7; } to { transform: translateX(75%); opacity: 0; } }
@keyframes session-release-ring-a { 0% { transform: translateX(0) scale(.75); opacity: .9; } 80%,100% { transform: translateX(480%) scale(1.3); opacity: 0; } }
@keyframes session-release-ring-b { 0%,15% { transform: translateX(0) scale(.75); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateX(480%) scale(1.3); opacity: 0; } }
@keyframes session-release-ring-c { 0%,35% { transform: translateX(0) scale(.75); opacity: 0; } 40% { opacity: .7; } 100% { transform: translateX(480%) scale(1.3); opacity: 0; } }
@keyframes session-pressure-fall-glyph { 0% { transform: translateY(-8%); opacity: 1; } 75% { opacity: .9; } 100% { transform: translateY(15%); opacity: .35; } }
@keyframes session-pressure-ladder-fall { 0% { transform: scaleY(1); animation-timing-function: cubic-bezier(.4,0,.6,1); } 88%,100% { transform: scaleY(0); } }
.session-exhaust { display: none; position: absolute; left: 73%; top: 46%; width: 22%; height: 10%; transform: rotate(6deg); pointer-events: none; }
[data-session-stage="0"] .session-exhaust, [data-session-stage="3"] .session-exhaust, [data-session-stage="4"] .session-exhaust { display: block; }
.session-exhaust > span { position: absolute; left: 0; top: 48%; width: 52%; height: 2px; background: linear-gradient(90deg,#b5edfa90,transparent); border-radius: 50%; transform-origin: left; animation-name: session-exhaust-mid; }
.session-exhaust > :first-child { animation-name: session-exhaust-up; }
.session-exhaust > :last-child { animation-name: session-exhaust-down; }
[data-session-stage="3"] .session-exhaust > span { background: linear-gradient(90deg,#efcea080,transparent); }
@keyframes session-exhaust-mid { 0%,100% { transform: translateX(0); opacity: 0; } 20%,55% { opacity: .8; } 80% { transform: translateX(95%); opacity: 0; } }
@keyframes session-exhaust-up { 0%,100% { transform: translateX(0) rotate(-17deg); opacity: 0; } 30%,55% { opacity: .7; } 85% { transform: translateX(85%) rotate(-17deg); opacity: 0; } }
@keyframes session-exhaust-down { 0%,100% { transform: translateX(0) rotate(17deg); opacity: 0; } 25%,60% { opacity: .6; } 90% { transform: translateX(90%) rotate(17deg); opacity: 0; } }
.session-effect-legend { display: none; align-items: center; gap: 7px; color: #c0e2eb; font-size: 11px; }
.session-effect-legend .session-gas-key { margin: 0; flex: 0 0 5px; }
[data-session-stage="0"] .session-effect-legend[data-session-signal="0"], [data-session-stage="1"] .session-effect-legend[data-session-signal="1"], [data-session-stage="2"] .session-effect-legend[data-session-signal="2"], [data-session-stage="3"] .session-effect-legend[data-session-signal="3"], [data-session-stage="4"] .session-effect-legend[data-session-signal="4"] { display: flex; }
:is([data-session-mode="auto"],[data-session-mode="preview"]) .session-profile.is-visible .session-pressure-cursor,
:is([data-session-mode="auto"],[data-session-mode="preview"]) .session-profile.is-visible .session-pressure-meter { animation-play-state: running; }
@media (max-width:620px) {
 .session-effect-legend { font-size: 9px; gap: 5px; }
 .session-pressure-glyph { font-size: 20px; gap: 5%; }
 .session-pressure-ladder { padding: 1px; }
 .session-pressure-ladder > span { inset: 1px; }
 .session-channel-stream > span { border-width: 1.5px; }
 .session-volume-ribs { stroke-width: 2; }
}
@media (prefers-reduced-motion:reduce) {
 .session-process-effect [data-stage-motion], .session-exhaust [data-stage-motion] { animation: none; }
 .session-air-cloud { transform: translateX(60%); opacity: .6; }
 .session-oxygen-sweep { transform: translateX(-40%); }
 .session-compression-cloud { opacity: .55; }
 .session-compression-volume { opacity: .65; }
 .session-compression-ribs { opacity: .65; }
 .session-stable-volume { opacity: .7; }
 .session-effect-release .session-pressure-ladder > span { transform: scaleY(.4); }
 .session-release-volume, .session-release-cloud { opacity: .3; }
 .session-release-ring-a { transform: translateX(200%); opacity: .6; }
 .session-release-ring-b { transform: translateX(350%); opacity: .3; }
 .session-release-ring-c, .session-exhaust { display: none; }
}

/* Brief opacity blends preserve the outgoing process while the next one begins. */
.session-profile { --session-blend: 560ms; }
.session-process-effect { opacity: 1; }
.session-process-effect.is-entering,
.session-process-effect.is-leaving {
 display: block;
 animation-duration: var(--session-blend);
 animation-timing-function: cubic-bezier(.4,0,.2,1);
 animation-fill-mode: both;
 animation-play-state: paused;
}
.session-process-effect.is-entering { z-index: 2; animation-name: session-phase-in; }
.session-process-effect.is-leaving { z-index: 1; animation-name: session-phase-out; }
.session-profile.is-visible .session-process-effect:is(.is-entering,.is-leaving) { animation-play-state: running; }
.session-process-effect.is-leaving [data-stage-motion] { animation-play-state: paused !important; }
@keyframes session-phase-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes session-phase-out { from { opacity: var(--phase-from-opacity,1); } to { opacity: 0; } }
.session-phase-card { transition: opacity 280ms cubic-bezier(.4,0,.2,1); }
.session-scene-caption > span,
.session-effect-legend { animation: session-label-in 280ms ease both; animation-play-state: paused; }
.session-profile.is-visible .session-scene-caption > span,
.session-profile.is-visible .session-effect-legend { animation-play-state: running; }
.med-session-profile[data-session-mode="paused"] .session-profile .session-process-effect:is(.is-entering,.is-leaving),
.med-session-profile[data-session-mode="paused"] .session-profile .session-scene-caption > span,
.med-session-profile[data-session-mode="paused"] .session-profile .session-effect-legend { animation-play-state: paused; }
@keyframes session-label-in { from { opacity: .25; } to { opacity: 1; } }
@media (max-width:620px) { .session-profile { --session-blend: 440ms; } }
@media (prefers-reduced-motion:reduce) {
 .session-process-effect:is(.is-entering,.is-leaving), .session-scene-caption > span, .session-effect-legend { animation: none; }
 .session-process-effect.is-leaving { display: none; }
 .session-phase-card { transition: none; }
}

/* R98: readable explanations of what happens inside the chamber. */
.session-phase-card .session-description { font-size: 16px; line-height: 1.65; }
.session-description strong { color: #a5eef1; font-weight: 600; }
@media (max-width: 620px) {
  .session-phase-card .session-description { font-size: 15px; }
}

/* Keep restart available beside pause/resume, including on small touch screens. */
.session-playback-state { flex-basis: 100%; }
.session-playback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; width: 100%; }
.session-restart-button { background: transparent; color: #b6d5e3; }
.session-restart-button .session-restart-icon { display: block; }
@media (max-width: 620px) {
  .session-playback-actions .session-playback-button { flex: 1 1 125px; }
}
