/* ==========================================================================
   v7a1 Lazy Widescreen Map Focus Theater — France (assets/v7a1-theater.css)
   Loaded lazily on map intent (hover/focus/touch/click) — zero initial HTML cost.
   ========================================================================== */
.v7a1-stage-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.v7a1-stage-modal.is-open {
  display: flex;
}
.v7a1-stage-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .v7a1-stage-backdrop {
  background: rgba(5, 7, 11, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.v7a1-stage-modal.is-active .v7a1-stage-backdrop {
  opacity: 1;
}

.v7a1-stage-card {
  position: relative;
  z-index: 2;
  width: min(1140px, 94vw);
  height: min(82vh, 690px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 32px 90px -18px rgba(15, 23, 42, 0.38), 0 8px 24px -8px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}
[data-theme="dark"] .v7a1-stage-card {
  box-shadow: 0 36px 96px -16px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.v7a1-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}
[data-theme="dark"] .v7a1-stage-head {
  background: #16181f;
}
.v7a1-stage-head-l {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  flex-wrap: nowrap;
}
.v7a1-stage-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 10.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  white-space: nowrap;
}
/* French vertical tricolor flag pill */
.v7a1-fr-flag {
  display: inline-flex;
  flex-direction: row;
  width: 15px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}
.v7a1-fr-flag > span {
  flex: 1 1 0;
  display: block;
}
.v7a1-fr-flag > span:nth-child(1) { background: #012169; }
.v7a1-fr-flag > span:nth-child(2) { background: #ffffff; }
.v7a1-fr-flag > span:nth-child(3) { background: #C8102E; }
.v7a1-stage-back-short { display: none; }

.v7a1-stage-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11.5px/1 var(--font);
  color: #94a3b8;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v7a1-stage-crumb strong {
  color: #ffffff;
  font-weight: 700;
}
.v7a1-stage-back {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 700 11px/1 var(--mono);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.14s, border-color 0.14s;
}
.v7a1-stage-back:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}
.v7a1-stage-card.is-zoomed .v7a1-stage-back {
  display: inline-flex;
}

.v7a1-stage-head-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.v7a1-stage-seg {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.v7a1-stage-seg-btn {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #cbd5e1;
  padding: 5px 8px;
  min-height: 28px;
  font: 700 10.5px/1 var(--mono);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s, color 0.14s;
}
.v7a1-stage-seg-btn:last-child { border-right: 0; }
.v7a1-stage-seg-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.v7a1-stage-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
}

.v7a1-stage-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font: 700 11px/1 var(--mono);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s;
}
.v7a1-stage-close:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(248, 113, 113, 0.5);
}
.v7a1-stage-close-kbd {
  font-size: 9.5px;
  opacity: 0.72;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.v7a1-stage-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.92fr);
}
.v7a1-stage-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 4%, var(--bg-sub)), var(--bg-sub));
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.v7a1-stage-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  user-select: none;
}

/* Prevent browser focus outlines from scaling into huge SVG rings in zoomed viewBox */
.v7a1-stage-svg [tabindex],
.v7a1-stage-svg [tabindex]:focus,
.v7a1-stage-svg [tabindex]:focus-visible,
.v7a1-stage-state-poly:focus,
.v7a1-stage-state-poly:focus-visible,
.v7a1-stage-voronoi-cell:focus,
.v7a1-stage-voronoi-cell:focus-visible,
.v7a1-stage-pin:focus,
.v7a1-stage-pin:focus-visible {
  outline: none !important;
}
.v7a1-stage-state-poly:focus-visible {
  stroke: var(--accent);
  stroke-width: 2.6;
  filter: brightness(1.07);
}
.v7a1-stage-voronoi-cell:focus-visible {
  stroke: var(--text);
  stroke-width: 2.6;
  filter: brightness(1.07);
}
.v7a1-stage-pin:focus-visible .v7a1-stage-pin-pill {
  stroke: var(--accent);
  stroke-width: 2.2;
  fill: var(--bg-card);
}

.v7a1-stage-state-poly {
  stroke: var(--bg-card);
  stroke-width: 1.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: opacity 0.42s ease, fill 0.18s ease, stroke-width 0.18s ease;
}
.v7a1-stage-state-poly:hover {
  stroke: var(--text);
  stroke-width: 2.2;
}
.v7a1-stage-state-poly.is-neighbor-dim {
  fill: color-mix(in srgb, var(--border) 68%, var(--bg-sub)) !important;
  stroke: color-mix(in srgb, var(--border-strong) 45%, var(--bg-card));
  stroke-width: 0.9;
  opacity: 0.36;
}
.v7a1-stage-state-poly.is-neighbor-dim:hover {
  opacity: 0.65;
  stroke: var(--accent);
}
.v7a1-stage-state-poly.is-active-base {
  fill: transparent !important;
  stroke: none !important;
  pointer-events: none;
}
.v7a1-stage-ov-label {
  font: 800 9px/1 var(--mono);
  fill: rgba(255, 255, 255, 0.94);
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.6);
  stroke-width: 2.2px;
  stroke-linejoin: round;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.v7a1-stage-voronoi-group { transition: opacity 0.42s ease; }
.v7a1-stage-voronoi-cell {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 0.85;
  vector-effect: non-scaling-stroke;
  fill-opacity: 0.86;
  cursor: pointer;
  transition: fill-opacity 0.14s ease, stroke 0.14s ease;
}
[data-theme="dark"] .v7a1-stage-voronoi-cell {
  stroke: rgba(15, 23, 42, 0.55);
  fill-opacity: 0.82;
}
.v7a1-stage-voronoi-cell:hover,
.v7a1-stage-voronoi-cell.is-highlighted {
  fill-opacity: 1;
  stroke: #ffffff;
  stroke-width: 1.8;
}
.v7a1-stage-outline {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.v7a1-stage-ab-group { pointer-events: none; transition: opacity 0.35s ease; }
.v7a1-stage-ab-road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.44);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
[data-theme="dark"] .v7a1-stage-ab-road {
  stroke: rgba(248, 250, 252, 0.36);
}
.v7a1-stage-ab-dash {
  fill: none;
  stroke: rgba(15, 23, 42, 0.48);
  stroke-width: 0.85;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.v7a1-stage-ab-trace {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}
.v7a1-stage-ab-shield-g { pointer-events: none; }
.v7a1-stage-ab-shield-rect {
  fill: #005eb8;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}
.v7a1-stage-ab-shield-txt {
  fill: #ffffff;
  font-family: var(--mono);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

.v7a1-stage-pins-group { transition: opacity 0.32s ease; }
.v7a1-stage-pin {
  cursor: pointer;
  opacity: 0;
  transform: scale(0.75);
  transform-box: fill-box;
  transform-origin: center center;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.v7a1-stage-pin.is-entered {
  opacity: 1;
  transform: scale(1);
}
.v7a1-stage-pin-dot {
  stroke: #ffffff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: stroke-width 0.12s;
}
[data-theme="dark"] .v7a1-stage-pin-dot { stroke: #0f172a; }
.v7a1-stage-pin-pill {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(15, 23, 42, 0.22);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}
[data-theme="dark"] .v7a1-stage-pin-pill {
  fill: rgba(15, 23, 42, 0.92);
  stroke: rgba(255, 255, 255, 0.24);
}
.v7a1-stage-pin-txt {
  font-family: var(--mono);
  font-weight: 700;
  fill: var(--text);
  dominant-baseline: central;
  pointer-events: none;
}
.v7a1-stage-pin.is-highlighted .v7a1-stage-pin-pill {
  stroke: var(--accent);
  stroke-width: 1.8;
}
.v7a1-stage-pin.is-highlighted .v7a1-stage-pin-dot {
  stroke-width: 2.2;
}

.v7a1-stage-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font: 700 10.5px/1.2 var(--mono);
  color: var(--text-dim);
  pointer-events: none;
}
.v7a1-stage-hud-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.v7a1-stage-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.v7a1-stage-hud-leg {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font: 700 10px/1 var(--mono);
  color: var(--text-muted);
  pointer-events: none;
}
.v7a1-stage-leg-bar {
  width: 68px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #159e60, #ecd494, #d64141);
}

.v7a1-stage-tooltip {
  position: fixed;
  z-index: 10020;
  pointer-events: none;
  min-width: 175px;
  max-width: 245px;
  padding: 8px 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.v7a1-stage-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.v7a1-tt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.v7a1-tt-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.v7a1-tt-code {
  font: 700 9.5px/1 var(--mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.v7a1-tt-price {
  font: 800 15px/1.15 var(--mono);
  color: var(--text);
}
.v7a1-tt-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v7a1-tt-delta.is-cheap { color: var(--success); font-weight: 700; }
.v7a1-tt-delta.is-dear { color: var(--warning); font-weight: 700; }

.v7a1-stage-side {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}
.v7a1-stage-side-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.v7a1-stage-side-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.v7a1-stage-side-kicker {
  font: 700 10px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.v7a1-stage-side-title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.v7a1-stage-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  font: 700 11.5px/1.1 var(--font);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.v7a1-stage-open-link:hover { text-decoration: none; filter: brightness(0.96); }
.v7a1-stage-sample-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  display: none;
}
.v7a1-stage-sample-note.is-visible { display: block; }

.v7a1-stage-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
  flex-shrink: 0;
}
.v7a1-stage-kpi {
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.v7a1-stage-kpi-k {
  font: 700 9.5px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.v7a1-stage-kpi-v {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}
.v7a1-stage-kpi-v.is-cheap { color: var(--success); }
.v7a1-stage-kpi-v.is-dear { color: var(--warning); }

.v7a1-stage-list-head {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.v7a1-stage-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 10px;
}
.v7a1-stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s;
}
.v7a1-stage-row:hover,
.v7a1-stage-row.is-highlighted {
  background: var(--bg-hover);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.v7a1-stage-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.v7a1-stage-row-kind {
  font: 700 9px/1 var(--mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
}
.v7a1-stage-row-sub {
  margin-top: 2px;
  font-size: 10.8px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.v7a1-stage-row-pct {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}
.v7a1-stage-row-pct.is-cheap { color: var(--success); background: var(--success-bg); }
.v7a1-stage-row-pct.is-dear { color: var(--warning); background: var(--warning-bg); }
.v7a1-stage-row-right {
  text-align: right;
  white-space: nowrap;
}
.v7a1-stage-row-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}
.v7a1-stage-row-link {
  display: inline-block;
  margin-top: 3px;
  font: 700 10.5px/1 var(--font);
  color: var(--accent);
}

.v7a1-stage-flybar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-sub);
  flex-shrink: 0;
}
.v7a1-stage-fly-lbl {
  font: 700 9.5px/1 var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 3px;
}
.v7a1-stage-fly-btn {
  padding: 3px 6px;
  min-height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font: 700 10px/1 var(--mono);
  cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s, color 0.12s;
}
.v7a1-stage-fly-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.v7a1-stage-fly-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

@media (max-width: 920px) {
  .v7a1-stage-modal { padding: 8px; }
  .v7a1-stage-card {
    width: 100%;
    height: auto;
    max-height: 94dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .v7a1-stage-head {
    position: sticky;
    top: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 7px 10px;
    gap: 6px 8px;
  }
  .v7a1-stage-head-l {
    margin-right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .v7a1-stage-brand-txt { display: none; }
  .v7a1-stage-crumb {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .v7a1-stage-back-full { display: none; }
  .v7a1-stage-back-short { display: inline; }
  .v7a1-stage-back { min-height: 32px; padding: 4px 8px; flex-shrink: 0; }
  .v7a1-stage-close { grid-column: 2; grid-row: 1; min-height: 32px; padding: 4px 10px; flex-shrink: 0; }
  .v7a1-stage-head-r {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }
  .v7a1-stage-seg-btn { min-height: 36px; padding: 4px 8px; font-size: 10.5px; }
  .v7a1-stage-close-kbd { display: none; }
  .v7a1-stage-body { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .v7a1-stage-canvas {
    height: min(44vh, 420px);
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .v7a1-stage-list { max-height: none; overflow-y: visible; }
  .v7a1-stage-open-link { min-height: 34px; padding: 6px 10px; }
  .v7a1-stage-row-link { padding: 4px 0; }
}

@media (max-width: 768px) {
  .v7a1-stage-backdrop {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  [data-theme="dark"] .v7a1-stage-backdrop {
    background: rgba(5, 7, 11, 0.86);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .v7a1-stage-hud-top,
  .v7a1-stage-hud-leg,
  .v7a1-stage-tooltip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .v7a1-stage-modal { padding: 6px; }
  .v7a1-stage-head { padding: 6px 8px; gap: 5px; }
  .v7a1-stage-head-r { flex-wrap: wrap; gap: 5px; }
  .v7a1-stage-seg-btn { min-height: 36px; padding: 4px 6px; font-size: 10px; }
  .v7a1-stage-canvas { height: 300px; padding: 10px; }
  .v7a1-stage-flybar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 6px;
    padding: 9px 12px;
  }
  .v7a1-stage-flybar::-webkit-scrollbar { display: none; }
  .v7a1-stage-fly-lbl { flex-shrink: 0; }
  .v7a1-stage-fly-btn {
    flex: 0 0 auto;
    min-height: 36px;
    min-width: 40px;
    padding: 6px 9px;
    font-size: 11px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v7a1-stage-backdrop,
  .v7a1-stage-card,
  .v7a1-stage-state-poly,
  .v7a1-stage-ab-trace,
  .v7a1-stage-pin,
  .v7a1-stage-tooltip {
    transition: none !important;
  }
  .v7a1-stage-pin { opacity: 1 !important; transform: none !important; }
}
