/* Hero product shot: mission control window + crew phone (js/hero-sim.js).
   Layout modes follow the container width: wide (panel), mid (no panel), narrow (cropped map, phone below). */

.hero-sim { container: hero-sim / inline-size; position: relative; }
/* The whole shot fits one laptop screen: the map gives up height first, the phone overhang shrinks with it.
   (Variables live on the stage: container queries can't restyle the container itself.) */
.hero-sim .hs-stage {
  --hs-max: calc(100svh - 112px);
  --hs-pad: clamp(20px, calc((var(--hs-max) - 500px) / 2), 104px);
  position: relative; padding-bottom: var(--hs-pad);
}
.hero-sim.is-paused * { animation-play-state: paused !important; }
.hero-sim .hs-mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ---------- Window ---------- */
.hero-sim .hs-window { position: relative; z-index: 1; }
.hero-sim .hs-bar { gap: 10px; min-width: 0; }
.hero-sim .hs-bar-title { margin-left: 8px; color: var(--ink); font-weight: 650; white-space: nowrap; }
.hero-sim .hs-bar-event {
  min-width: 0; padding-left: 10px; border-left: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-sim .hs-bar-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }

.hero-sim .hs-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.hero-sim .hs-main { position: relative; min-width: 0; overflow: hidden; background: var(--paper); border-right: 1px solid var(--line); }

.hero-sim .hs-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 16px; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.hero-sim .hs-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper); font-size: 13px; }
.hero-sim .hs-seg span { padding: 4px 12px; border-radius: 7px; color: var(--ink-2); }
.hero-sim .hs-seg .is-on { background: var(--paper-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(12, 18, 56, 0.12); }

.hero-sim .hs-stats { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hero-sim .hs-stat { display: inline-flex; align-items: center; gap: 4px; transition: color 0.4s; }
.hero-sim .hs-stat b { display: inline-block; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.hero-sim .hs-stat-dot { width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--line); transition: background 0.4s, box-shadow 0.4s; }
.hero-sim .hs-stat.is-done .hs-stat-dot { background: var(--go); }
.hero-sim .hs-stat.is-open .hs-stat-dot { background: var(--ink-2); }
.hero-sim .hs-stat.is-alert,
.hero-sim .hs-stat.is-alert b { color: var(--signal); }
.hero-sim .hs-stat.is-alert .hs-stat-dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 91, 46, 0.18); }
.hero-sim .hs-stat.is-free { padding-left: 16px; border-left: 1px solid var(--line); }

/* ---------- Map ---------- */
/* Natural 5:3 height, capped to what's left after the bars and window border (~100px, plus a little slack) and the phone overhang; the SVG letterboxes. */
.hero-sim .hs-map { position: relative; height: min(calc((100cqi - 301px) * 0.6), calc(var(--hs-max) - var(--hs-pad) - 104px)); }
.hero-sim .hs-svg { display: block; width: 100%; height: 100%; }
.hero-sim .hs-grid-dot { fill: var(--line); }
.hero-sim .hs-zone-bg { fill: #fff; stroke: var(--line); stroke-width: 1.2; transition: fill 0.6s var(--ease), stroke 0.6s var(--ease); }
.hero-sim .hs-decor { fill: var(--paper); }
.hero-sim .hs-decor-strong { fill: var(--line); }
.hero-sim .hs-gate { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.hero-sim .hs-zone-label { font-family: var(--font); font-size: 13px; font-weight: 640; fill: var(--ink); font-variation-settings: "wdth" 92; }
.hero-sim .hs-zone-pulse { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }

.hero-sim .hs-zone.is-incident .hs-zone-bg { fill: color-mix(in srgb, var(--signal) 7%, #fff); stroke: var(--signal); stroke-width: 1.6; }
.hero-sim .hs-zone.is-incident .hs-zone-pulse { animation: hs-zone-pulse 1.8s var(--ease) infinite; }
.hero-sim .hs-zone.is-resolved .hs-zone-bg { fill: color-mix(in srgb, var(--go) 9%, #fff); stroke: var(--go); stroke-width: 1.6; }
@keyframes hs-zone-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05, 1.1); }
}

.hero-sim .hs-tag { opacity: 0; transition: opacity 0.4s; font-family: var(--font); font-size: 11px; font-weight: 650; }
.hero-sim .hs-tag-incident { fill: var(--signal); }
.hero-sim .hs-tag-resolved { fill: var(--go); }
.hero-sim .hs-zone.is-incident .hs-tag-incident,
.hero-sim .hs-zone.is-resolved .hs-tag-resolved { opacity: 1; }

.hero-sim .hs-guest {
  fill: var(--ink-2); opacity: 0; transform: scale(0.2); transform-box: fill-box; transform-origin: center;
  transition: opacity 0.35s, transform 0.45s var(--ease-spring);
}
.hero-sim .hs-guest.is-on { opacity: 0.5; transform: none; }

.hero-sim .hs-crew { transition: opacity 0.6s var(--ease); }
.hero-sim .hs-crew.is-faded { opacity: 0; }
.hero-sim .hs-crew-body { transform-box: fill-box; transform-origin: center; }
.hero-sim .hs-crew-dot { fill: var(--night); stroke: #fff; stroke-width: 2; transition: fill 0.4s; }
.hero-sim .hs-crew-txt { fill: #fff; font-family: var(--font); font-size: 9.5px; font-weight: 650; letter-spacing: 0.02em; }
.hero-sim .hs-crew-ring {
  fill: none; stroke: url(#hs-ai-grad); stroke-width: 2.5; opacity: 0;
  transform-box: fill-box; transform-origin: center; transition: opacity 0.4s;
}
.hero-sim .hs-crew.is-suggested .hs-crew-ring { opacity: 1; animation: hs-ring 1.4s ease-in-out infinite; }
.hero-sim .hs-crew.is-sent .hs-crew-dot { fill: var(--cue); }
.hero-sim .hs-crew.is-sent .hs-crew-ring { opacity: 0.35; stroke: var(--cue); }
@keyframes hs-ring { 50% { transform: scale(1.18); } }

.hero-sim .hs-route {
  fill: none; stroke: var(--cue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 0.1 8; opacity: 0; transition: opacity 0.5s;
}
.hero-sim .hs-route-reveal { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.hero-sim .is-routing .hs-route { opacity: 1; animation: hs-march 0.9s linear infinite; }
.hero-sim .is-routing .hs-route-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease-out; }
@keyframes hs-march { to { stroke-dashoffset: -8.1; } }

/* ---------- AI suggestion card ---------- */
.hero-sim .hs-ai {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; width: 332px;
  padding: 16px 16px 14px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 26px 60px -24px rgba(124, 92, 255, 0.55), 0 12px 44px -18px rgba(79, 209, 255, 0.5),
    0 0 36px -14px rgba(255, 121, 214, 0.45), 0 2px 6px rgba(12, 18, 56, 0.08);
  opacity: 0; transform: translateY(18px) scale(0.97); transform-origin: bottom center;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.hero-sim .hs-ai.is-on { opacity: 1; transform: none; }
.hero-sim .hs-ai-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; }
.hero-sim .hs-spark { width: 15px; height: 15px; flex: none; fill: url(#hs-ai-grad); }
.hero-sim .hs-ai-for { margin-left: auto; color: var(--ink-2); font-weight: 500; }
.hero-sim .hs-ai-title { margin: 8px 0 10px; font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: "wdth" 94; color: var(--ink); }
.hero-sim .hs-ai-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-sim .hs-ai-reasons li {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill); background: var(--paper); color: var(--ink-2); font-size: 12px;
}
.hero-sim .hs-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-sim .hs-ai-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.hero-sim .hs-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 650; white-space: nowrap;
}
.hero-sim .hs-approve {
  min-width: 112px; background: var(--cue); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(47, 69, 255, 0.8);
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s var(--ease);
}
.hero-sim .hs-approve-a, .hero-sim .hs-approve-b { transition: opacity 0.25s; }
.hero-sim .hs-approve-b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.hero-sim .hs-approve.is-pressed { transform: scale(0.94); }
.hero-sim .hs-approve.is-approved { background: var(--go); box-shadow: 0 8px 20px -10px rgba(16, 185, 129, 0.8); }
.hero-sim .hs-approve.is-approved .hs-approve-a { opacity: 0; }
.hero-sim .hs-approve.is-approved .hs-approve-b { opacity: 1; }
.hero-sim .hs-btn-ghost { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.hero-sim .hs-ai-crew { display: flex; margin-left: auto; padding-left: 7px; }
.hero-sim .hs-ai-crew i {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -7px;
  border-radius: 50%; border: 2px solid #fff; background: var(--night); color: #fff;
  font-style: normal; font-size: 9.5px; font-weight: 650;
}

/* ---------- Activity panel ---------- */
.hero-sim .hs-panel { display: flex; flex-direction: column; min-width: 0; background: var(--paper-2); }
.hero-sim .hs-panel-head {
  display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 18px;
  border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink);
}
.hero-sim .hs-panel-filter { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.hero-sim .hs-feed {
  position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.hero-sim .hs-feed-item { position: absolute; top: 10px; left: 0; right: 0; padding: 0 10px; transition: transform 0.55s var(--ease); }
.hero-sim .hs-feed-card { display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 10px; border-radius: var(--r-md); }
.hero-sim .hs-feed-item.is-incident .hs-feed-card { background: rgba(255, 91, 46, 0.08); }
.hero-sim .hs-feed-item.is-ai .hs-feed-card { background: linear-gradient(120deg, rgba(124, 92, 255, 0.09), rgba(255, 121, 214, 0.08), rgba(79, 209, 255, 0.09)); }
.hero-sim .hs-feed-ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; }
.hero-sim .is-done .hs-feed-ico { background: rgba(16, 185, 129, 0.14); color: var(--go); }
.hero-sim .is-incident .hs-feed-ico { background: var(--signal); color: #fff; }
.hero-sim .is-ai .hs-feed-ico { background: var(--ai); color: #fff; }
.hero-sim .is-action .hs-feed-ico { background: var(--cue-soft); color: var(--cue); }
.hero-sim .is-log .hs-feed-ico { background: var(--paper); color: var(--ink-2); }
.hero-sim .hs-ico-fill { fill: currentColor; stroke: none; }
.hero-sim .hs-feed-txt { min-width: 0; }
.hero-sim .hs-feed-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-sim .hs-feed-meta { display: flex; gap: 8px; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }

/* ---------- Phone ---------- */
.hero-sim .hs-phone {
  position: absolute; z-index: 4; right: calc(var(--gutter) * -0.5); bottom: 0;
  font-size: clamp(7.6px, calc(var(--hs-max) * 0.016), 10px); width: 22em; height: 45.6em; padding: 0.55em;
  border-radius: 3.8em; background: linear-gradient(150deg, var(--night-line), var(--night) 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(12, 18, 56, 0.4),
    0 50px 90px -40px rgba(12, 18, 56, 0.65), 0 18px 36px -18px rgba(12, 18, 56, 0.45);
}
.hero-sim .hs-screen { position: relative; height: 100%; overflow: hidden; border-radius: 3.25em; background: var(--paper); }
.hero-sim .hs-island { position: absolute; z-index: 6; top: 0.9em; left: 50%; width: 7.6em; height: 2.2em; margin-left: -3.8em; border-radius: 2em; background: var(--night); }
.hero-sim .hs-status { display: flex; align-items: center; justify-content: space-between; height: 4em; padding: 0.2em 2.3em 0 2.7em; color: var(--ink); }
.hero-sim .hs-status-time { font-size: 1.3em; font-weight: 650; }
.hero-sim .hs-status-icons { display: flex; align-items: flex-end; gap: 0.2em; }
.hero-sim .hs-status-icons i { width: 0.35em; border-radius: 0.1em; background: var(--ink); }
.hero-sim .hs-status-icons i:nth-child(1) { height: 0.5em; }
.hero-sim .hs-status-icons i:nth-child(2) { height: 0.75em; }
.hero-sim .hs-status-icons i:nth-child(3) { height: 1em; }
.hero-sim .hs-status-icons b { width: 2em; height: 1em; margin-left: 0.4em; border-radius: 0.3em; border: 0.12em solid var(--ink); box-shadow: inset 0 0 0 0.12em var(--paper), inset 1.3em 0 0 var(--ink); }

.hero-sim .hs-ph-head { display: flex; align-items: center; justify-content: space-between; padding: 1em 1.7em 0.2em; }
.hero-sim .hs-ph-hi { font-size: 2.2em; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; color: var(--ink); }
.hero-sim .hs-ph-sub { font-size: 1.2em; color: var(--ink-2); }
.hero-sim .hs-ph-avatar { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 50%; background: var(--cue); color: #fff; font-size: 1.2em; font-weight: 650; }

.hero-sim .hs-views { position: relative; height: 25em; margin: 1.1em 1.2em 0; }
.hero-sim .hs-view { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1em; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.hero-sim .hs-view-b { opacity: 0; transform: translateX(12%); }
.hero-sim .hs-phone.show-b .hs-view-a { opacity: 0; transform: translateX(-12%); }
.hero-sim .hs-phone.show-b .hs-view-b { opacity: 1; transform: none; }

.hero-sim .hs-card {
  padding: 1.4em 1.5em; border-radius: 1.8em; background: #fff;
  box-shadow: 0 0.1em 0.3em rgba(12, 18, 56, 0.06), 0 1em 2.4em -1.4em rgba(12, 18, 56, 0.28);
}
.hero-sim .hs-card-muted { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hero-sim .hs-card-top { display: flex; align-items: center; gap: 0.6em; }
.hero-sim .hs-pill { padding: 0.2em 0.8em; border-radius: var(--r-pill); background: var(--cue-soft); color: var(--cue); font-size: 1.1em; font-weight: 650; }
.hero-sim .hs-card-zone { font-size: 1.15em; color: var(--ink-2); }
.hero-sim .hs-card-title { margin-top: 0.5em; font-size: 1.6em; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.hero-sim .hs-card-title-sm { margin-top: 0.3em; font-size: 1.35em; }
.hero-sim .hs-progress { display: grid; gap: 0.5em; margin-top: 1.2em; }
.hero-sim .hs-progress span { font-size: 1.1em; color: var(--ink-2); }
.hero-sim .hs-progress i { display: block; height: 0.5em; border-radius: 1em; background: var(--paper); overflow: hidden; }
.hero-sim .hs-progress b { display: block; width: 66%; height: 100%; border-radius: inherit; background: var(--cue); }

.hero-sim .hs-mini { width: 100%; height: auto; margin-top: 1em; border-radius: 1.2em; background: var(--paper); }
.hero-sim .hs-mini-zone { fill: var(--cue-soft); }
.hero-sim .hs-mini-path { fill: none; stroke: var(--cue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 7; }
.hero-sim .hs-phone.show-b .hs-mini-path { animation: hs-march 0.9s linear infinite; }
.hero-sim .hs-mini-you { fill: var(--cue); stroke: #fff; stroke-width: 3; }
.hero-sim .hs-mini-dest { fill: #fff; stroke: var(--cue); stroke-width: 3; }
.hero-sim .hs-card-eta { margin-top: 0.7em; font-size: 1.15em; color: var(--ink-2); }

.hero-sim .hs-ph-state {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.45em 0.95em; border-radius: var(--r-pill); background: var(--cue-soft); color: var(--cue);
  font-size: 1.15em; font-weight: 650; transition: background 0.4s, color 0.4s;
}
.hero-sim .hs-ph-state i { width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.hero-sim .hs-ph-state.is-done { background: rgba(16, 185, 129, 0.14); color: var(--go); }

.hero-sim .hs-ph-ask {
  position: absolute; left: 1.2em; right: 1.2em; bottom: 2.6em; display: flex; align-items: center; gap: 0.6em;
  height: 3.8em; padding: 0 1.3em; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.hero-sim .hs-ph-ask .hs-spark { width: 1.4em; height: 1.4em; }
.hero-sim .hs-ph-ask span { font-size: 1.2em; color: var(--ink-2); }
.hero-sim .hs-home { position: absolute; bottom: 0.8em; left: 50%; width: 8em; height: 0.4em; margin-left: -4em; border-radius: 1em; background: var(--ink); }

.hero-sim .hs-notif {
  position: absolute; z-index: 5; top: 4.2em; left: 0.8em; right: 0.8em;
  padding: 1.1em 1.2em 1.2em; border-radius: 2em;
  background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1.6em 3.2em -1.2em rgba(12, 18, 56, 0.5);
  opacity: 0; transform: translateY(-140%);
  transition: transform 0.65s var(--ease-spring), opacity 0.3s;
}
.hero-sim .hs-phone.has-notif .hs-notif { opacity: 1; transform: none; }
.hero-sim .hs-notif-top { display: flex; align-items: center; gap: 0.6em; }
.hero-sim .hs-notif-app { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 0.6em; background: var(--night); }
.hero-sim .hs-logo { width: 1.5em; height: 1.5em; }
.hero-sim .hs-notif-name { font-size: 1.1em; font-weight: 650; color: var(--ink-2); }
.hero-sim .hs-notif-time { margin-left: auto; font-size: 1.05em; color: var(--ink-2); }
.hero-sim .hs-notif-title { margin-top: 0.6em; font-size: 1.35em; font-weight: 700; color: var(--ink); }
.hero-sim .hs-notif-body { margin-top: 0.1em; font-size: 1.25em; line-height: 1.3; color: var(--ink); }
.hero-sim .hs-notif-btn {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  height: 3.4em; margin-top: 0.9em; border-radius: var(--r-pill); background: var(--cue); color: #fff;
  transition: transform 0.15s var(--ease);
}
.hero-sim .hs-notif-btn span { font-size: 1.3em; font-weight: 650; }
.hero-sim .hs-tap { position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.55); opacity: 0; }
.hero-sim .hs-notif-btn.is-tapped { transform: scale(0.96); }
.hero-sim .hs-notif-btn.is-tapped .hs-tap { animation: hs-tap 0.6s ease-out; }
@keyframes hs-tap {
  0% { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(3.4); }
}

/* ---------- Fake cursor ---------- */
.hero-sim .hs-cursor {
  position: absolute; z-index: 6; top: 0; left: 0; width: 22px; pointer-events: none; opacity: 0;
  transition: transform 1s cubic-bezier(0.45, 0.05, 0.25, 1), opacity 0.3s;
  filter: drop-shadow(0 3px 5px rgba(12, 18, 56, 0.3));
}
.hero-sim .hs-cursor.is-on { opacity: 1; }
.hero-sim .hs-cursor svg { width: 22px; height: 22px; margin: -3px 0 0 -5px; transform-origin: 5px 3px; transition: transform 0.12s; }
.hero-sim .hs-cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.hero-sim .hs-cursor.is-click svg { transform: scale(0.82); }

/* ---------- Mid: no side panel ---------- */
@container hero-sim (max-width: 999px) {
  .hero-sim .hs-stage { --hs-pad: clamp(20px, calc((var(--hs-max) - 500px) / 2), 72px); }
  .hero-sim .hs-map { height: min(60cqi, calc(var(--hs-max) - var(--hs-pad) - 104px)); }
  .hero-sim .hs-body { grid-template-columns: minmax(0, 1fr); }
  .hero-sim .hs-panel { display: none; }
  .hero-sim .hs-main { border-right: 0; }
  .hero-sim .hs-ai { right: auto; left: calc(31% + 6px); width: 300px; }
  .hero-sim .hs-phone { font-size: clamp(7.6px, calc(var(--hs-max) * 0.015), 9px); right: calc(var(--gutter) * -0.4); }
}
@container hero-sim (max-width: 899px) {
  .hero-sim .hs-seg { display: none; }
  .hero-sim .hs-ai-reasons { display: none; }
  .hero-sim .hs-ai-title { margin-bottom: 0; }
}

/* ---------- Narrow: cropped map, phone below the window ---------- */
@container hero-sim (max-width: 639px) {
  .hero-sim .hs-stage { --hs-pad: 0px; }
  .hero-sim .hs-map { height: auto; }
  .hero-sim .hs-bar { padding: 0 14px; }
  .hero-sim .hs-bar .lights { display: none; }
  .hero-sim .hs-bar-title { margin-left: 0; }
  .hero-sim .hs-toolbar { height: 42px; padding: 0 14px; }
  .hero-sim .hs-stats { gap: 12px; font-size: 12px; }
  .hero-sim .hs-stat.is-free { display: none; }
  .hero-sim .hs-svg { width: 165%; height: auto; max-width: none; }
  .hero-sim .hs-zone-label { font-size: 19px; }
  .hero-sim .hs-tag { font-size: 15px; }
  .hero-sim .hs-crew-body { transform: scale(1.3); }
  .hero-sim .hs-guest.is-on { transform: scale(1.3); }
  .hero-sim .hs-ai { left: 10px; right: 10px; bottom: 30px; width: auto; padding: 12px 12px 12px; }
  .hero-sim .hs-ai-title { margin: 6px 0 0; font-size: 15px; }
  .hero-sim .hs-ai-reasons { display: none; }
  .hero-sim .hs-ai-actions { margin-top: 10px; }
  .hero-sim .hs-btn { height: 32px; padding: 0 13px; font-size: 13px; }
  .hero-sim .hs-approve { min-width: 104px; }
  .hero-sim .hs-phone { position: relative; right: auto; bottom: auto; margin: -24px auto 0; font-size: 7.2px; }
}
@container hero-sim (max-width: 380px) {
  .hero-sim .hs-bar-event { display: none; }
  .hero-sim .hs-btn-ghost { display: none; }
}
