/* Standalone SVG demonstration; no external animation dependency. */
#simulation-ieag { overflow: clip; }
#simulation-ieag .prestation-card-body { min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "simulation"; }
.ieag-demo { grid-area: simulation; min-width: 0; padding: 24px; border: 1px solid #dbe3eb; border-radius: 18px; background: #f8fafc; color: #25374b; scroll-margin-top: 150px; }
.ieag-demo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ieag-demo .ieag-eyebrow { margin: 0 0 8px; color: #b35b16; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.ieag-demo h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.25; }
.ieag-demo-heading p:last-child { margin: 0; max-width: 620px; font-size: .92rem; line-height: 1.6; color: #627185; }
.ieag-demo-tag { flex-shrink: 0; padding: 8px 12px; border: 1px solid #dbe4ec; border-radius: 30px; font-size: .72rem; color: #637487; background: #fff; }
.ieag-workspace { display: grid; gap: 20px; align-items: start; }
.ieag-visual, .ieag-information { min-width: 0; }
.ieag-stage { position: relative; overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse at 65% 45%, #253c54 0%, #14263a 58%, #0d1b2c 100%); }
.ieag-stage-top { position: absolute; inset: 18px 20px auto; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .75rem; }
.ieag-state-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 30px; border: 1px solid #5ad5b640; color: #a4e7d9; background: #132e33cc; }
.ieag-state-pill::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.ieag-detection-count { color: #b7c8da; font-variant-numeric: tabular-nums; }
.ieag-scene { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; }
.ieag-scene text { font-family: Lato, sans-serif; }
.ieag-small-label { fill: #b4c9dd; font-size: 12px; }
.ieag-room-label { fill: #4e6277; font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.ieag-panel-brand { fill: #d1e2ef; font-size: 10px; font-weight: 700; }
.ieag-panel-state { fill: #92e7c9; font-size: 9px; font-family: monospace !important; }
.ieag-panel-caption { fill: #42556a; font-size: 7.3px; }
.ieag-panel-source-led { fill: #743e48; stroke: #5b2934; stroke-width: .6; }
.ieag-panel-source-led.is-active { fill: #ff344f; stroke: #ffabb6; filter: drop-shadow(0 0 3px #ff344f); }
.ieag-cylinder-label { fill: #6a5b55; font-size: 7px; font-weight: 700; }
.ieag-nozzle-jets { opacity: 0; }
.ieag-demo[data-phase="release"] .ieag-nozzle-jets { opacity: 1; }
.ieag-detector { color: #52b692; }
.ieag-detector-led { fill: currentColor; }
.ieag-detector text { fill: #334c64; font-size: 11px; font-weight: 700; }
.ieag-detector.is-triggered { color: #ed354a; }
.ieag-detector.is-triggered text { fill: #b51c32; }
.ieag-manual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 66px; height: 75px; margin: 3px; padding: 5px; background: #f3be26; border: 3px solid #a46f0d; border-radius: 4px; color: #49360a; box-shadow: 3px 4px 0 #040c1940; cursor: pointer; font: 700 7px Lato, sans-serif; }
.ieag-manual-target { display: grid; place-items: center; width: 35px; height: 30px; color: #293b42; border: 1px solid #cbb97b; background: #fff6d4; font-size: 25px; line-height: 1; }
.ieag-manual:hover:not(:disabled) { background: #ffdc64; }
.ieag-demo button:focus-visible { outline: 3px solid #ee9a36; outline-offset: 4px; }
.ieag-manual:disabled { cursor: default; opacity: .65; }
.ieag-countdown { position: absolute; right: 22px; bottom: 68px; display: flex; align-items: center; flex-direction: column; gap: 3px; min-width: 152px; padding: 13px 17px; border: 1px solid #f8777270; border-radius: 12px; background: #261a2bee; color: #ffd0bf; box-shadow: 0 12px 35px #05101b40; }
.ieag-countdown[hidden] { display: none; }
.ieag-countdown span:first-child { font-size: .65rem; letter-spacing: .16em; font-weight: 700; }
.ieag-countdown strong { font: 700 clamp(1.7rem, 4vw, 3rem)/1.05 Lato, sans-serif; font-variant-numeric: tabular-nums; }
.ieag-countdown span:last-child { font-size: .65rem; }
.ieag-stage-key { position: absolute; bottom: 16px; left: 20px; display: flex; gap: 18px; color: #b9cddd; font-size: .68rem; }
.ieag-stage-key span { display: inline-flex; align-items: center; gap: 6px; }
.ieag-stage-key i { width: 8px; height: 8px; border-radius: 50%; }
.ieag-key-smoke { background: #abb7c3; }
.ieag-key-gas { background: #83dfeb; }
.ieag-evacuation-frame { fill: #10171e; stroke: #303c46; stroke-width: 2; }
.ieag-evacuation-face { fill: #05090e; stroke: #1c2730; stroke-width: 1; }
.ieag-evacuation-reflection { fill: #d5e1ec; opacity: .06; }
.ieag-evacuation-text { fill: #ff344f; font-size: 12.5px; font-weight: 700; opacity: 0; }
.ieag-demo[data-phase="countdown"] .ieag-evacuation-text, .ieag-demo[data-phase="release"] .ieag-evacuation-text { opacity: 1; filter: drop-shadow(0 0 4px #ff344f); animation: ieag-evacuation 1s steps(1, end) infinite; }
.ieag-siren-waves { opacity: .12; }
.ieag-demo[data-phase="countdown"] .ieag-siren-waves, .ieag-demo[data-phase="release"] .ieag-siren-waves { opacity: 1; animation: ieag-alarm 1s ease-in-out infinite; }
.ieag-demo[data-phase="countdown"] .ieag-state-pill { color: #ffb6a7; background: #462d32; border-color: #ec796760; }
.ieag-demo[data-phase="fire"] .ieag-state-pill { color: #ffd18c; background: #443627; border-color: #dda25960; }
.ieag-demo[data-phase="release"] .ieag-state-pill, .ieag-demo[data-phase="complete"] .ieag-state-pill { color: #b8f2fc; background: #193b4b; border-color: #5dc3d660; }
.ieag-demo[data-retention="below-threshold"] .ieag-state-pill { color: #ffcf84; background: #443627; border-color: #dda25970; }
.ieag-demo[data-retention="dissipated"] .ieag-state-pill { color: #c2cfdb; background: #273848; border-color: #92a4b950; }
.ieag-demo[data-phase="release"] .ieag-gas-pipe, .ieag-demo[data-phase="release"] [data-ieag-gas-pipe] { stroke: #7ee3ee; }
.ieag-demo[data-phase="fire"] .ieag-flame, .ieag-demo[data-phase="countdown"] .ieag-flame, .ieag-demo[data-phase="release"] .ieag-flame { transform-box: fill-box; transform-origin: center bottom; animation: ieag-flame .65s ease-in-out infinite alternate; }
.ieag-measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.ieag-gauge-card { min-width: 0; padding: 16px; border: 1px solid #dbe4ec; border-radius: 12px; background: #fff; }
.ieag-gauge-heading, .ieag-clock-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; color: #42586e; font-size: .8rem; line-height: 1.4; }
.ieag-gauge-heading h4 { margin: 0; font: inherit; }
.ieag-gauge-heading strong { color: #25374b; font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ieag-gauge-track { position: relative; height: 14px; border-radius: 20px; background: #e8eef4; }
.ieag-gauge-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #4299d2; transition: width .15s linear; }
.ieag-gauge-gas .ieag-gauge-fill, .ieag-gauge-fill.ieag-gauge-gas { background: #4299d2; }
.ieag-demo [data-ieag-gas-gauge][data-level="below-minimum"] .ieag-gauge-fill { background: #4299d2; }
.ieag-demo [data-ieag-gas-gauge][data-level="minimum"] .ieag-gauge-fill { background: #35b4bc; }
.ieag-demo [data-ieag-gas-gauge][data-level="nominal"] .ieag-gauge-fill { background: #2f9d66; }
.ieag-gauge-oxygen .ieag-gauge-fill, .ieag-gauge-fill.ieag-gauge-oxygen { background: #4299d2; }
.ieag-gauge-marker { position: absolute; z-index: 1; top: -4px; bottom: -4px; left: var(--ieag-marker); width: 2px; background: var(--ieag-marker-color, #596f83); transform: translateX(-50%); }
.ieag-gauge-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #627185; font-size: .68rem; }
.ieag-thresholds { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; list-style: none; padding: 0; margin: 12px 0 0; color: #596f83; font-size: .7rem; line-height: 1.45; }
.ieag-thresholds li { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ieag-threshold-help { display: inline-block; max-inline-size: 100%; padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; white-space: normal; overflow-wrap: anywhere; cursor: help; }
.ieag-threshold-help:hover { text-decoration-style: solid; }
.ieag-threshold-help:focus-visible { outline: 3px solid #ee9a36; outline-offset: 3px; }
.ieag-threshold-tooltip { position: absolute; z-index: 5; inset-block-start: calc(100% + 8px); inset-inline-start: 0; display: block; box-sizing: border-box; inline-size: 300px; max-inline-size: min(300px, 75vw, calc(200% + 12px)); padding: 12px 14px; border: 1px solid #50677d; border-radius: 8px; background: #25374b; color: #f3f7fb; box-shadow: 0 8px 24px #14263a2b; font-size: .76rem; line-height: 1.55; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.ieag-threshold-tooltip::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 10px; }
.ieag-thresholds li:nth-child(even) .ieag-threshold-tooltip { inset-inline-start: auto; inset-inline-end: 0; }
.ieag-threshold-tooltip[hidden] { display: none; }
.ieag-threshold-noael { color: #b85a0c; --ieag-marker-color: #e1832e; }
.ieag-threshold-loael { color: #c3263f; --ieag-marker-color: #e43d56; }
.ieag-emission-clock, .ieag-retention-clock { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #dbe4ec; border-radius: 12px; background: #fff; }
.ieag-clock-heading { margin-bottom: 10px; }
.ieag-clock-heading strong { color: #25374b; font-variant-numeric: tabular-nums; }
.ieag-clock-progress { height: 6px; overflow: hidden; border-radius: 10px; background: #e8eef4; }
.ieag-clock-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: #35b4bc; transition: width .15s linear; }
.ieag-retention-clock .ieag-clock-bar { background: #4299d2; }
.ieag-demo[data-retention="below-threshold"] .ieag-retention-clock .ieag-clock-bar { background: #e1832e; }
.ieag-demo[data-retention="dissipated"] .ieag-retention-clock .ieag-clock-bar { background: #92a4b9; }
.ieag-measurement-caption, .ieag-retention-state { margin: 10px 0 0; color: #627185; font-size: .75rem; line-height: 1.55; }
.ieag-measurements > .ieag-measurement-caption { grid-column: 1 / -1; margin-top: 0; }
.ieag-measurements[hidden], .ieag-emission-clock[hidden], .ieag-retention-clock[hidden] { display: none; }
.ieag-demo .ieag-assumptions { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #dbe4ec; color: #627185; font-size: .73rem; line-height: 1.65; }
.ieag-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ieag-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border-radius: 8px; font: 700 .82rem Lato, sans-serif; cursor: pointer; transition: background .2s; }
.ieag-start { border: 1px solid #cf6733; background: #e7773f; color: #fff; }
.ieag-start:hover:not(:disabled) { background: #ca5a2b; }
.ieag-reset, .ieag-sound, .ieag-pause { border: 1px solid #d3dee8; background: #fff; color: #3c536b; }
.ieag-reset:hover, .ieag-sound:hover, .ieag-pause:hover:not(:disabled) { background: #e9eff5; }
.ieag-pause[aria-pressed="true"], .ieag-pause[aria-pressed="true"]:hover { border-color: #d7ac68; background: #fff0d6; color: #895821; }
.ieag-sound { margin-left: auto; }
.ieag-controls button:disabled { opacity: .5; cursor: default; }
.ieag-controls .ieag-manual-shortcut { background: #f3be26; border: 1px solid #b98a14; color: #49360a; }
.ieag-controls .ieag-manual-shortcut:hover:not(:disabled) { background: #ffdc64; }
.ieag-rearm-message { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #ecd8b6; border-radius: 8px; background: #fff7e8; color: #895821; font-size: .76rem; line-height: 1.55; }
.ieag-rearm-message[hidden] { display: none; }
.ieag-feedback { margin-bottom: 14px; }
.ieag-feedback p { margin: 0 0 12px; min-height: 1.6em; color: #42586e; font-size: .86rem; line-height: 1.6; }
.ieag-detector-status { display: flex; flex-wrap: wrap; gap: 8px; }
.ieag-detector-status span { padding: 5px 10px; border: 1px solid #d7e5e0; border-radius: 6px; color: #567469; background: #eef6f2; font-size: .72rem; }
.ieag-detector-status .is-triggered { color: #b63145; background: #fff0f1; border-color: #f0cbd0; }
.ieag-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.ieag-steps li { padding: 12px 10px; border-top: 2px solid #dbe4ec; font-size: .73rem; color: #7a8999; line-height: 1.5; }
.ieag-steps b { display: block; margin-bottom: 4px; font-size: .65rem; letter-spacing: .12em; }
.ieag-steps li.is-active { color: #ac551c; border-color: #e98c3e; }
.ieag-steps li.is-done { color: #327b74; border-color: #6fb8ab; }
.ieag-demo .ieag-note { margin: 12px 0 0; color: #7a8898; font-size: .73rem; line-height: 1.65; }
.ieag-demo[data-paused="true"] *, .ieag-demo[data-paused="true"] *::before, .ieag-demo[data-paused="true"] *::after { animation-play-state: paused !important; transition: none !important; }
@keyframes ieag-alarm { 50% { opacity: .25; } }
@keyframes ieag-evacuation { 50% { opacity: 0; } }
@keyframes ieag-flame { to { transform: scale(.92, 1.07); } }
@media (min-width: 1100px) {
  .ieag-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
  /* overflow: clip on the outer card preserves rounded edges without trapping sticky positioning. */
  .ieag-visual { position: sticky; top: 150px; }
  .ieag-scene { max-height: min(380px, 44vh); }
  .ieag-stage-top { inset: 12px 14px auto; font-size: .68rem; }
  .ieag-state-pill { padding: 6px 9px; }
  .ieag-countdown { right: 14px; bottom: 40px; min-width: 120px; padding: 9px 12px; }
  .ieag-countdown strong { font-size: 2rem; }
  .ieag-stage-key { bottom: 12px; left: 14px; font-size: .62rem; }
  .ieag-controls { gap: 8px; margin-top: 12px; }
  .ieag-controls button { flex: 1 1 0; padding: 10px 12px; }
  .ieag-controls .ieag-start, .ieag-controls .ieag-manual-shortcut { flex-basis: calc(50% - 4px); }
  .ieag-sound { margin-left: 0; }
  .ieag-measurements { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 0; }
  .ieag-gauge-card, .ieag-emission-clock, .ieag-retention-clock { padding: 14px; }
  .ieag-steps { margin-top: 14px; }
}
@media (max-width: 900px) { .ieag-demo-heading { flex-direction: column; gap: 12px; } .ieag-demo-tag { font-size: .66rem; } }
@media (max-width: 560px) {
  .ieag-demo { padding: 14px; border-radius: 12px; }
  .ieag-scene { min-width: 0; min-height: 0; max-height: none; padding-top: 36px; }
  .ieag-stage-top { inset: 12px 12px auto; font-size: .64rem; }
  .ieag-state-pill { padding: 6px 8px; }
  .ieag-countdown { position: static; min-width: 0; margin: 0 12px 8px; padding: 8px 10px; }
  .ieag-stage-key { position: static; padding: 0 12px 12px; font-size: .6rem; }
  .ieag-start { flex: 1 1 100%; }
  .ieag-controls .ieag-manual-shortcut { display: inline-flex; flex: 1 1 100%; }
  .ieag-sound { margin-left: auto; }
  .ieag-measurements { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ieag-gauge-card, .ieag-emission-clock, .ieag-retention-clock { padding: 13px; }
  .ieag-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ieag-demo *, .ieag-demo *::before { animation: none !important; transition: none !important; } }
