/* Light theme matching renders/webobject/mockup2_*.png (no tab bar). Scales 900x600 to 1280x720.
   The viewport shows one pre-rendered 1028x876 video at a time (full view or a close-up camera). */
:root { --blue: #1677e5; --ink: #0f1a2a; --muted: #3e4a5b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: #f1f4f8; color: var(--ink); -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid #8cc0ff; outline-offset: 2px; }

/* Layout */
.main { height: 100%; display: flex; gap: 10px; padding: 10px; }
.view {
  position: relative; flex: 1 1 auto; min-width: 0; border-radius: 14px; overflow: hidden;
  background: #e2e7ed;   /* = the video's background colour */
}
.stage { position: absolute; border-radius: 12px; overflow: hidden; background: #e2e7ed; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.stage video.off { visibility: hidden; }
.panel {
  flex: 0 0 34%; max-width: 440px; min-width: 260px; overflow: auto;
  background: #fff; border: 1px solid #e3e8ef; border-radius: 14px;
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2vw, 26px);
}

/* Viewport overlays (positions in % of the stage = the video frame) */
.overlay { position: absolute; inset: 0; pointer-events: none; }
.hot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; pointer-events: auto;
  box-shadow: 0 0 0 2px rgba(22, 119, 229, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hot span {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 2px 8px;
  border-radius: 7px; background: rgba(255, 255, 255, 0.92); border: 1px solid #dfe4ea; font-size: 13px; color: var(--ink);
}
.hot:hover span, .hot:focus-visible span { border-color: var(--blue); }
.flab {
  position: absolute; transform: translate(calc(-100% - 8px), -50%); padding: 2px 9px; border-radius: 7px;
  background: #fff; border: 1px solid #d3dbe5; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.flab.cur { background: var(--blue); border-color: var(--blue); color: #fff; }
.back {
  position: absolute; left: 14px; top: 14px; padding: 8px 14px; border-radius: 9px; border: 1px solid #d3dbe5;
  background: #fff; color: var(--ink); font-size: 15px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.chip, .flow { position: absolute; padding: 4px 11px; border-radius: 8px; font-size: 14px; pointer-events: none; }
.chip { left: 14px; bottom: 14px; background: var(--blue); color: #fff; }
.flow { right: 12px; top: 12px; background: #f59e0b; color: #1f1300; display: none; }
.flow.on { display: block; }
.phase { position: absolute; right: 12px; top: 12px; padding: 4px 11px; border-radius: 8px; font-size: 14px; pointer-events: none; background: var(--ink); color: #fff; display: none; }
.phase.on { display: block; }
.phase.on ~ .flow { top: 46px; }
[hidden] { display: none !important; }
.status { position: absolute; pointer-events: none; left: 50%; top: 45%; transform: translateX(-50%); color: var(--muted); font-size: 16px; }

/* Panel */
.seg { display: flex; background: #e5eaf1; border-radius: 10px; }
.seg button { flex: 1; padding: clamp(6px, 1.1vh, 9px) 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.seg button.active { background: var(--blue); color: #fff; }
.lead { font-size: clamp(15px, 1.45vw, 19px); line-height: 1.4; text-align: center; margin: clamp(14px, 3vh, 34px) 0 clamp(16px, 3.2vh, 26px); }
.floors { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 16px); }
.floor {
  height: clamp(56px, 11vh, 78px); border-radius: 10px; border: 1px solid #d3dbe5;
  background: #e9eef4; color: var(--ink); font-size: clamp(20px, 2vw, 25px);
}
.floor:hover:not(:disabled) { background: #dfe6ee; }
.floor.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.floor.target { border-color: var(--blue); }
.floor:disabled:not(.current) { opacity: 0.6; }
