/* Keep the floor plan visible while the native scroll story changes its state. */
.risk-motion-page .ax-emergency-pin>.ax-emergency-intro {
  width:100%;
  max-width:none;
  margin:0;
  padding:0 0 18px;
}
.risk-motion-page .ax-emergency-pin>.ax-emergency-intro .ax-emergency-heading {margin:0}
.risk-motion-page .ax-emergency[data-ax-mode=scroll] .ax-emergency-stage {height:var(--ax-stage-height,560px)}
@media (max-width:899px) {
  .risk-motion-page .ax-emergency .ax-emergency-pin {padding-inline:12px}
  .risk-motion-page .ax-emergency-pin>.ax-emergency-intro {padding-bottom:12px}
  .risk-motion-page .ax-emergency-pin>.ax-emergency-intro .ax-emergency-heading h2 {font-size:22px!important;line-height:1.25!important;letter-spacing:-.04em}
  .risk-motion-page .ax-emergency-pin>.ax-emergency-intro :is(.ax-eyebrow,.ax-scenario-mark) {display:none}
  .risk-motion-page .ax-emergency .ax-emergency-stage {
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:60px minmax(0,1fr);
    height:var(--ax-mobile-stage-height,500px);
    min-height:0;
    margin:0;
    border-radius:10px;
    background:#fff;
  }
  .risk-motion-page .ax-emergency .ax-signal-column {
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    grid-template-rows:46px;
    align-items:center;
    gap:0 10px;
    min-height:0;
    padding:6px 10px;
    border:0;
    border-bottom:1px solid #e3e7eb;
    background:#fcfcfd;
  }
  .risk-motion-page .ax-emergency .ax-thermal-feed {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    margin:0;
    border:1px solid #e4e7ea;
    border-radius:5px;
    background:#fff;
  }
  .risk-motion-page .ax-emergency .ax-thermal-feed>img {
    width:42px!important;
    height:42px!important;
    min-height:0;
    max-height:42px!important;
    object-fit:contain!important;
  }
  .risk-motion-page .ax-emergency :is(.ax-thermal-feed figcaption,.ax-thermal-value,.ax-feed-label,.ax-decision-lines) {display:none}
  .risk-motion-page .ax-emergency .ax-signal-reading {
    display:grid;
    grid-template-rows:22px 22px;
    gap:2px;
    min-width:0;
    margin:0;
    padding:0;
  }
  .risk-motion-page .ax-emergency .ax-signal-reading>div {
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    margin:0;
    padding:0;
    border:0;
    font-size:13px;
    line-height:1.3;
  }
  .risk-motion-page .ax-emergency .ax-device-id {
    flex:0 0 36px;
    width:36px;
    height:22px;
    white-space:nowrap;
    font-size:11px;
    line-height:1;
  }
  .risk-motion-page .ax-emergency .ax-signal-reading>div>span:nth-child(2) {display:flex;align-items:center;min-width:0;white-space:nowrap}
  .risk-motion-page .ax-emergency .ax-signal-reading>div>span>small {display:none}
  .risk-motion-page .ax-emergency .ax-sensor-pulse {margin-left:auto}
  .risk-motion-page .ax-emergency .ax-decision-panel {
    position:absolute;
    top:60px;
    right:10px;
    z-index:2;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:0;
    margin:0;
    padding:0;
    border:0;
    background:none;
  }
  .risk-motion-page .ax-emergency .ax-decision-icon {display:none}
  .risk-motion-page .ax-emergency .ax-decision-icon>span {font-size:12px}
  .risk-motion-page .ax-emergency .ax-decision-icon img {width:13px;height:13px}
  .risk-motion-page .ax-emergency .ax-decision-icon>small {display:none}
  .risk-motion-page .ax-emergency .ax-decision-copy {margin:0;font-size:13px;font-weight:600;line-height:22px}

  .risk-motion-page .ax-emergency .ax-map-panel {
    display:grid;
    grid-template-rows:32px minmax(0,1fr) 26px;
    min-height:0;
    height:100%;
    background:#fff;
  }
  .risk-motion-page .ax-emergency .ax-map-topbar {height:32px;min-height:0;padding:0 10px;font-size:12px}
  .risk-motion-page .ax-emergency .ax-map-topbar strong {font-size:12px}
  .risk-motion-page .ax-emergency .ax-map-topbar b {font-size:12px}
  .risk-motion-page .ax-emergency .ax-map-topbar>span:last-child {display:none}
  .risk-motion-page .ax-emergency .ax-map-topbar>span:first-child>span {display:none}
  .risk-motion-page .ax-emergency .ax-map-canvas {width:100%;height:100%;min-height:0;padding:0;overflow:hidden}
  .risk-motion-page .ax-emergency .ax-map-canvas>.ax-render-plan {display:block;width:100%;height:100%;min-height:0;max-height:none}
  .risk-motion-page .ax-emergency .ax-map-legend {height:26px;min-height:0;gap:12px;padding:0 6px;font-size:12px;line-height:1.2}
  .risk-motion-page .ax-emergency .ax-map-legend span {gap:4px}
  .risk-motion-page .ax-emergency[data-ax-phase="3"] :is(.ax-map-topbar,.ax-map-legend) {opacity:0}
  .risk-motion-page .ax-emergency .ax-map-caption {display:none;margin:0}

  /* The saved document occupies the same map surface, without covering the dock. */
  .risk-motion-page .ax-emergency .ax-save-panel {
    display:grid;
    grid-template-rows:40px minmax(0,1fr) auto auto;
    gap:8px;
    width:calc(100% - 16px);
    max-width:510px;
    height:calc(100% - 16px);
    max-height:340px;
    min-height:0;
    padding:10px;
    border-radius:6px;
  }
  .risk-motion-page .ax-emergency .ax-save-heading {gap:7px;min-height:0;margin:0}
  .risk-motion-page .ax-emergency .ax-save-file {width:27px;height:32px}
  .risk-motion-page .ax-emergency .ax-save-file svg {width:18px;height:18px}
  .risk-motion-page .ax-emergency .ax-save-heading>div {min-width:0}
  .risk-motion-page .ax-emergency .ax-save-heading>div>span {font-size:12px;line-height:1.2}
  .risk-motion-page .ax-emergency .ax-save-heading h3 {margin:3px 0 0;font-size:17px!important;line-height:1.2!important;white-space:nowrap}
  .risk-motion-page .ax-emergency .ax-save-status {flex-direction:column;gap:3px;font-size:12px;line-height:1.2}
  .risk-motion-page .ax-emergency .ax-save-status i {width:14px;height:14px;font-size:11px}
  .risk-motion-page .ax-emergency .ax-save-attachments {gap:7px;min-height:0}
  .risk-motion-page .ax-emergency .ax-save-attachments figure {min-height:0;justify-content:stretch}
  .risk-motion-page .ax-emergency .ax-save-attachments img,
  .risk-motion-page .ax-emergency .ax-save-attachments svg {flex:1 1 0%;width:100%;height:0;min-height:0;object-fit:contain}
  .risk-motion-page .ax-emergency .ax-save-attachments figcaption {flex:none;padding:4px 6px;font-size:12px;line-height:1.3}
  .risk-motion-page .ax-emergency .ax-save-record {min-width:0;margin:0;font-size:12px;line-height:1.4}
  .risk-motion-page .ax-emergency .ax-save-record>div {gap:8px;padding:3px 0;line-height:1.4}
  .risk-motion-page .ax-emergency .ax-save-record dt {flex:0 0 56px;min-width:0;white-space:nowrap}
  .risk-motion-page .ax-emergency .ax-save-record dd {min-width:0}
  .risk-motion-page .ax-emergency .ax-save-panel footer {gap:5px;padding:7px;line-height:1.4}
  .risk-motion-page .ax-emergency .ax-save-panel footer strong {font-size:12px;line-height:1.4}
  .risk-motion-page .ax-emergency .ax-save-panel footer small {display:none}
  .risk-motion-page .ax-emergency:not([data-ax-ready=true]) .ax-emergency-stage,
  .risk-motion-page .ax-emergency[data-ax-static=true] .ax-emergency-stage {height:500px}
}

@media (max-width:359px) {
  .risk-motion-page .ax-emergency .ax-emergency-pin {padding-inline:8px}
  .risk-motion-page .ax-emergency .ax-signal-column {column-gap:7px;padding-inline:8px}
  .risk-motion-page .ax-emergency .ax-signal-reading>div {gap:5px}
  .risk-motion-page .ax-emergency .ax-map-legend {gap:9px}
  .risk-motion-page .ax-emergency .ax-save-heading h3 {font-size:16px!important}
}

@media (prefers-reduced-motion:reduce) and (max-width:899px) {
  .risk-motion-page .ax-emergency .ax-emergency-pin {position:relative!important;top:auto!important}
  .risk-motion-page .ax-emergency .ax-emergency-stage {height:500px}
}
