.radar-experience .source-controls { min-width: 0; }
/* A shared camera column sits beside two equally sized, linked radar panes. */
.radar-experience .cloud-comparison { display:grid; grid-template-columns:minmax(0,.7fr) repeat(2,minmax(0,1fr)); flex:1; min-height:0; }
.radar-experience .comparison-pane { display:flex; flex-direction:column; min-width:0; min-height:0; padding:0; }
.radar-experience .comparison-pane { border-left:1px solid #304551; }
.radar-experience .comparison-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:8px 16px; background:#10212c; border-bottom:1px solid #304551; }
.radar-experience .comparison-heading strong { color:#65d9ef; font-size:13px; font-weight:500; }
.radar-experience .comparison-guide { background:transparent; border:0; color:#65d9ef; font-size:10px; padding:5px; }
.radar-experience .comparison-guide:hover { color:#c3f5ff; text-decoration:underline; }
.radar-experience .comparison-pane .viewport { height:100%; min-height:0; flex:1; }
.radar-experience .comparison-pane .legend { right:12px; bottom:42px; width:174px; }
.radar-experience .comparison-pane .interaction-hint { left:12px; bottom:12px; max-width:none; font-size:8px; }
.radar-experience.comparison-experience .workspace { display:flex; flex-direction:column; height:auto; min-height:0; }
.radar-experience.comparison-experience.demo-shell { height:auto; }
.radar-experience.comparison-experience .camera-panel[hidden] { display:none; }
.radar-experience.comparison-experience .radar-panel { flex:none; height:clamp(540px,48vw,650px); }
.radar-experience .plot-inset { position:absolute; z-index:2; margin:0; background:#0b1721e8; border:1px solid #3b5667; border-radius:6px; overflow:hidden; box-shadow:0 4px 18px #0003; pointer-events:none; }
.radar-experience .camera-column { display:flex; flex-direction:column; min-width:0; min-height:0; background:#08121c; }
.radar-experience .camera-column > .panel-heading { min-height:44px; padding:8px 12px; font-size:8px; gap:5px; background:#10212c; }
.radar-experience .camera-column .camera-feed { display:flex; align-items:center; flex:1; min-height:0; }
.radar-experience .camera-column .camera-feed video { display:block; width:100%; height:100%; max-height:100%; object-fit:contain; }
.radar-experience .rd-inset { left:12px; bottom:34px; width:39%; max-width:300px; }
.radar-experience .rd-inset > .panel-heading { height:24px; padding:0 8px; font-size:7px; gap:4px; }
.radar-experience .rd-inset > .panel-heading > span:last-child { display:none; }
.radar-experience .rd-inset .rd-chart { margin:2px 8px 0 30px; }
.radar-experience .rd-inset .rd-chart video,
.radar-experience .rd-inset .rd-chart canvas { display:block; width:100%; height:auto; aspect-ratio:2.6; object-fit:fill; border:1px solid #344454; }
.radar-experience .rd-inset .rd-y-axis { height:calc(100% - 28px); left:-26px; width:22px; font-size:7px; }
.radar-experience .rd-inset .rd-x-axis { padding-top:3px; font-size:7px; }
.radar-experience .rd-inset .rd-axis-title { margin-top:2px; font-size:7px; }
.radar-experience .rd-inset .rd-scale { padding:5px 8px; border:0; font-size:6px; gap:5px; }
.radar-experience .rd-inset .rd-scale > span:first-child { display:none; }
.radar-experience .rd-inset .rd-scale i { flex:1; width:auto; max-width:none; }
.radar-experience.comparison-experience:fullscreen,
.radar-experience.comparison-experience.is-expanded { height:100dvh; }
.radar-experience.comparison-experience:fullscreen .radar-panel,
.radar-experience.comparison-experience.is-expanded .radar-panel { flex:1; height:auto; min-height:200px; }
@media(min-width:601px) and (max-width:1200px) {
  .radar-experience .comparison-pane .legend { bottom:165px; width:150px; }
}
@media(max-width:760px) {
  .radar-experience .cloud-comparison { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:200px minmax(0,1fr); }
  .radar-experience .camera-column { grid-column:1/-1; border-bottom:1px solid #304551; }
  .radar-experience .camera-column > .panel-heading { min-height:28px; height:28px; }
  .radar-experience .camera-column .camera-feed { align-self:stretch; justify-content:center; }
  .radar-experience .camera-column .camera-feed video { width:auto; max-width:100%; height:172px; }
  .radar-experience.comparison-experience .radar-panel { height:760px; }
}
@media(max-width:600px) {
  .radar-experience .comparison-heading { padding:7px; flex-wrap:wrap; align-content:center; min-height:64px; }
  .radar-experience .comparison-heading strong { font-size:12px; }
  .radar-experience .comparison-guide { padding:0; font-size:9px; }
  .radar-experience .comparison-pane .legend { left:7px; right:7px; bottom:170px; width:auto; padding:7px; }
  .radar-experience .comparison-pane .legend-heading { font-size:5px; gap:4px; }
  .radar-experience .comparison-pane .interaction-hint { left:7px; right:7px; font-size:7px; line-height:1.6; }
  .radar-experience .rd-inset { left:7px; right:7px; bottom:45px; width:auto; }
  .radar-experience .rd-inset > .panel-heading { font-size:6px; padding:0 5px; }
}
.radar-experience.demo-shell.attention-surface { overflow: visible; }
.radar-experience.demo-shell .explorer { border-radius: 0 0 9px 9px; overflow: hidden; }
.radar-experience .synthetic-invitation[hidden],
.radar-experience .synthetic-tour-replay[hidden],
.radar-experience .synthetic-tour-back[hidden] { display: none; }
.radar-experience .synthetic-tour-replay {
  padding: 0;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #71d8ef;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Self-contained typography also applies when the tour floats over the host page. */
.radar-experience .synthetic-tour,
.radar-experience .synthetic-tour * { box-sizing: border-box; }
.radar-experience .synthetic-tour button { font: inherit; cursor: pointer; }
.radar-experience .synthetic-tour {
  font: 14px/1.5 Arial, sans-serif;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #edf6fa;
  overflow: hidden;
}
.radar-experience .synthetic-tour::backdrop { background: transparent; }
.radar-experience .synthetic-tour-highlight {
  position: absolute;
  border: 2px solid #57d0ee;
  border-radius: 7px;
  box-shadow: 0 0 0 200vmax #040b12ba, 0 0 24px #57d0ee25;
  pointer-events: none;
}
.radar-experience .synthetic-tour-card {
  position: absolute;
  width: min(330px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #456472;
  border-radius: 12px;
  background: #122630;
  box-shadow: 0 12px 48px #0007;
  text-align: left;
}
.radar-experience .synthetic-tour-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.radar-experience .synthetic-tour-progress { color: #71d8ef; font-size: 9px; letter-spacing: .08em; }
.radar-experience .synthetic-tour-skip {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #b6cbd7;
  font-size: 11px;
  white-space: nowrap;
}
.radar-experience .synthetic-tour-card h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.radar-experience .synthetic-tour-card p { margin: 12px 0 0; color: #d1e2ea; font-size: 15px; line-height: 1.6; }
.radar-experience .synthetic-tour-card small { display: block; margin-top: 14px; font-size: 10px; line-height: 1.5; color: #91acbb; }
.radar-experience .synthetic-tour-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.radar-experience .synthetic-tour-actions button { padding: 9px 18px; font-size: 12px; border: 1px solid #456472; border-radius: 5px; background: #183442; color: #edf6fa; }
.radar-experience .synthetic-tour-actions .synthetic-tour-next { background: #57d0ee; border-color: #57d0ee; color: #08212c; }
.radar-experience .synthetic-tour-actions .synthetic-tour-next:hover { background: #9ae9f9; }
@media (max-width: 600px) {
  .radar-experience .synthetic-invitation { font-size: 12px; padding: 10px 12px; }
  .radar-experience .synthetic-tour-card { padding: 18px; }
}

/* Follow the mouse cue with a brief invitation to the digital twin. */
.radar-experience .comparison-guide.is-invited {
  background:#245367;
  color:#8ce9fc;
  box-shadow:inset 0 0 0 2px #58d9f5;
  animation:cloud-source-invitation 1.5s ease-in-out 2;
}
@keyframes cloud-source-invitation {
  0%,100% { box-shadow:inset 0 0 0 2px #58d9f5, inset 0 0 12px #58d9f51a; }
  50% { box-shadow:inset 0 0 0 2px #8ce9fc, inset 0 0 30px #58d9f54d; }
}
@media(prefers-reduced-motion:reduce) {
  .radar-experience .comparison-guide.is-invited { animation:none; }
}

/* Dim the experience while leaving a cutout over the invited source rail. */
.radar-experience.invitation-container,
.radar-experience .invitation-container { position:relative; isolation:isolate; }
.radar-experience .digital-twin-invitation-shade {
  position:absolute; inset:0; z-index:10; background:rgba(0, 7, 12, .68);
  border-radius:inherit; pointer-events:none;
}
.radar-experience .digital-twin-invitation-shade[hidden] { display:none; }

.radar-experience .digital-twin-invitation-label {
  position:absolute; z-index:11; box-sizing:border-box; padding:16px 20px;
  border:1px solid #a3efff; border-radius:8px; background:#65d9ef;
  color:#06202c; font-size:18px; font-weight:700; line-height:1.4;
  text-align:center; box-shadow:0 6px 24px #0004; pointer-events:none;
}
.radar-experience .digital-twin-invitation-label::after {
  content:""; position:absolute; right:-7px; top:var(--tip-top, 50%);
  width:12px; height:12px; background:#65d9ef;
  border-top:1px solid #a3efff; border-right:1px solid #a3efff;
  transform:translateY(-50%) rotate(45deg);
}
.radar-experience .digital-twin-invitation-label[hidden] { display:none; }
@media(max-width:600px) {
  .radar-experience .digital-twin-invitation-label { padding:12px; font-size:14px; }
}

/* Embedded scene players retain their own media clocks and unique element IDs. */
.radar-experience.frame-embed { background:#0b1115; overflow:hidden; }
.radar-experience.frame-embed > .site-header,
.radar-experience.frame-embed main > footer,
.radar-experience.frame-embed > .skip { display:none; }
.radar-experience.frame-embed main { padding:0; max-width:none; }
.radar-experience.frame-embed .intro { margin:0; padding:20px; gap:16px; border:1px solid #304551; border-bottom:0; border-radius:9px 9px 0 0; background:#10212c; }
.radar-experience.frame-embed .intro h1 { font-size:22px; }
.radar-experience.frame-embed .intro-copy { font-size:11px; line-height:1.6; }
.radar-experience.frame-embed .explorer { border-radius:0 0 9px 9px; }
.radar-experience.frame-embed .radar-panel { height:clamp(490px,43vw,620px); }
@media(max-width:760px) { .radar-experience.frame-embed .radar-panel { height:760px; } }

.radar-experience.is-expanded { position:fixed; inset:0; z-index:1000; overflow:auto; }
.radar-experience.is-expanded > .site-header,
.radar-experience.is-expanded main > footer { display:none; }
.radar-experience.is-expanded main { height:100dvh; padding:0; max-width:none; display:flex; flex-direction:column; }
.radar-experience.is-expanded .intro { flex:none; margin:0; padding:12px 20px; }
.radar-experience.is-expanded .intro h1 { font-size:22px; }
.radar-experience.is-expanded .explorer,
.radar-experience.is-expanded .workspace { display:flex; flex-direction:column; flex:1; min-height:0; }
.radar-experience.is-expanded .radar-panel { flex:1; height:auto; min-height:300px; }

/* One shared scale, anchored clear of the Doppler insets. */
.radar-experience .comparison-pane .legend { top:12px; bottom:auto; left:auto; right:12px; width:174px; }
@media(max-width:600px) { .radar-experience .comparison-pane .legend { top:7px; right:7px; width:150px; } }

.radar-experience .perception-scale .color-strip { background:linear-gradient(90deg,#1f6180,#78e0f2); }
.radar-experience .display-toggle button { white-space:nowrap; }
.radar-experience .perception-scale .legend-descriptions { gap:8px; line-height:1.5; }

.radar-experience .perception-scale .legend-descriptions { display:grid; grid-template-columns:1fr 1fr; gap:4px; }

/* Desktop: cameras and raw signals first, with two linked processed views below. */
.radar-experience.comparison-experience:not(.mobile-single) .radar-panel { height:auto; }
.radar-experience:not(.mobile-single) .cloud-comparison {
  grid-template-columns:repeat(6,minmax(0,1fr));
  grid-template-rows:clamp(285px,25vw,350px) clamp(360px,36vw,480px);
  flex:none;
}
.radar-experience:not(.mobile-single) .camera-column { grid-column:1 / 3; grid-row:1; border-bottom:1px solid #304551; }
.radar-experience:not(.mobile-single) .comparison-pane { grid-row:2; }
.radar-experience:not(.mobile-single) .comparison-pane[data-source=real] { grid-column:1 / 4; border-left:0; }
.radar-experience:not(.mobile-single) .comparison-pane[data-source=synthetic] { grid-column:4 / 7; }
.radar-experience .rd-prominent {
  position:static; display:flex; flex-direction:column; min-width:0; min-height:0;
  width:auto; max-width:none; margin:0; border:0; border-left:1px solid #304551;
  border-bottom:1px solid #304551; border-radius:0; box-shadow:none; background:#0b1721;
  grid-row:1;
}
.radar-experience .rd-prominent[data-source=real] { grid-column:3 / 5; }
.radar-experience .rd-prominent[data-source=synthetic] { grid-column:5 / 7; }
.radar-experience .rd-prominent > .panel-heading {
  height:44px; padding:8px 14px; font-size:9px; letter-spacing:.06em;
  border-bottom:1px solid #304551; background:#10212c; color:#65d9ef;
}
.radar-experience .rd-prominent > .panel-heading > span:last-child { display:inline; color:#9bb6c6; font-size:7px; }
.radar-experience .rd-prominent .rd-chart {
  display:grid; grid-template-rows:minmax(0,1fr) auto auto; flex:1; min-height:0;
  margin:18px 16px 14px 40px;
}
.radar-experience .rd-prominent .rd-chart video,
.radar-experience .rd-prominent .rd-chart canvas { width:100%; height:100%; min-height:0; aspect-ratio:auto; }
.radar-experience .rd-prominent .rd-y-axis { height:calc(100% - 30px); left:-32px; width:27px; font-size:8px; }
.radar-experience .rd-prominent .rd-x-axis { padding-top:6px; font-size:8px; }
.radar-experience .rd-prominent .rd-axis-title { margin-top:3px; font-size:8px; }
.radar-experience .rd-prominent .rd-scale { padding:10px 16px 14px; font-size:8px; gap:8px; }
.radar-experience .rd-prominent .rd-scale > span:first-child { display:inline; font-size:7px; }
.radar-experience .rd-prominent .rd-scale i { min-width:20px; }
.radar-experience.is-expanded:not(.mobile-single) .cloud-comparison {
  flex:1; grid-template-rows:minmax(180px,.8fr) minmax(240px,1.2fr);
}

/* Keep the generated-signal explanation above the synthetic map. */
.radar-experience .rd-prominent.raw-radar-panel { position:relative; inset:auto; overflow:visible; }
.radar-experience .radar-title-group > span { display:none; }
.radar-experience .raw-radar-callout { position:absolute; z-index:6; top:-62px; right:12px; left:12px; padding:14px 16px; border:1px solid #65d9ef; border-radius:9px; background:#102530; color:#edf6fa; box-shadow:0 5px 20px #0003; pointer-events:none; }
.radar-experience .raw-radar-callout::after { content:""; position:absolute; bottom:-6px; left:50%; width:10px; height:10px; transform:rotate(45deg); background:#102530; border-bottom:1px solid #65d9ef; border-right:1px solid #65d9ef; }
.radar-experience .raw-radar-callout strong { display:block; font-size:16px; line-height:1.3; }
.radar-experience .raw-radar-callout p { margin:7px 0 0; color:#c4d8e3; font-size:13px; line-height:1.45; }
/* The permanent caption replaces the synthetic map heading. */
.radar-experience.has-raw-radar-caption:not(.mobile-single):not(.is-expanded) .raw-radar-panel[data-source="synthetic"] > .panel-heading { visibility:hidden; }
.radar-experience.has-raw-radar-caption:not(.mobile-single):not(.is-expanded) .radar-title-group { max-width:64%; }
.radar-experience.mobile-single .raw-radar-callout,
.radar-experience.is-expanded .raw-radar-callout { display:none; }
