:root {
  --bg: #050907;
  --surface: #09110e;
  --surface-2: #0e1814;
  --line: rgba(182, 224, 206, .14);
  --muted: #7e938a;
  --text: #edf8f3;
  --accent: #4df5a6;
  --accent-dim: #163d2d;
  --amber: #ffc45e;
  --danger: #ff4f65;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100svh; background: radial-gradient(circle at 55% 0%, rgba(26, 80, 56, .13), transparent 38%), var(--bg); }
.topbar { height: 68px; display: grid; grid-template-columns: minmax(190px,1fr) auto minmax(190px,1fr); align-items: stretch; padding: 0 26px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .06em; font-size: 18px; }
.brand-light { color: var(--muted); font-weight: 400; margin-left: -3px; }
.brand-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(77,245,166,.7); }
.brand-icon { width: 26px; height: 26px; display: block; filter: drop-shadow(0 0 8px rgba(77,245,166,.18)); }
.system-health { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.system-health { justify-self: end; display: flex; gap: 10px; align-items: center; }
.system-health strong { color: var(--text); font-weight: 500; }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: breathe 1.8s ease-in-out infinite; }

.workspace { height: calc(100svh - 68px); display: grid; grid-template-columns: 300px minmax(520px, 1fr) 290px; }
.workflow, .incident-rail { padding: 28px 24px; background: rgba(7, 13, 11, .86); overflow-y: auto; }
.workflow { border-right: 1px solid var(--line); }
.incident-rail { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.eyebrow { color: var(--accent); font: 500 10px/1.2 var(--mono); letter-spacing: .15em; }
.workflow h1 { margin: 13px 0 8px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.intro { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.scenario-switcher { display: flex; align-items: stretch; height: 100%; border-inline: 1px solid var(--line); }
.scenario { position: relative; min-width: 122px; border: 0; border-right: 1px solid var(--line); background: transparent; padding: 0 17px; color: var(--muted); cursor: pointer; display: grid; grid-template-columns: auto 1fr; align-content: center; align-items: baseline; gap: 8px; text-align: left; transition: color .2s, background .2s; }
.scenario:last-child { border-right: 0; }
.scenario span { color: #4c6259; font: 9px var(--mono); }
.scenario b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.scenario::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.scenario:hover { color: var(--text); background: rgba(255,255,255,.018); }
.scenario.active { color: var(--text); background: rgba(77,245,166,.055); }
.scenario.active span { color: var(--accent); }
.scenario.active::after { transform: scaleX(1); }

.config-flow { display: grid; gap: 4px; }
.flow-step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; opacity: .36; transition: opacity .3s; }
.flow-step.active, .flow-step.complete { opacity: 1; }
.step-index { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 10px var(--mono); }
.flow-step.active .step-index { color: #04110b; background: var(--accent); border-color: var(--accent); }
.flow-step.complete .step-index { border-color: var(--accent); color: var(--accent); }
.flow-step h2 { margin: 2px 0 4px; font-size: 13px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.step-content { min-width: 0; }
.rule-options { display: grid; gap: 5px; margin: 10px 0; }
.rule { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 9px; text-align: left; font-size: 11px; cursor: pointer; }
.rule.active { color: var(--text); border-color: rgba(77,245,166,.6); background: rgba(77,245,166,.07); }
.delay-control { display: grid; grid-template-columns: 1fr auto; gap: 6px; color: var(--muted); font-size: 10px; }
.delay-control output { color: var(--text); font-family: var(--mono); }
input[type="range"] { grid-column: 1 / -1; accent-color: var(--accent); width: 100%; }
.sound-toggle { display: grid; grid-template-columns: 29px 1fr; align-items: center; column-gap: 8px; margin-top: 10px; color: var(--muted); font-size: 11px; cursor: pointer; }
.sound-toggle input { position: absolute; opacity: 0; }
.sound-toggle span { width: 29px; height: 16px; border-radius: 20px; border: 1px solid var(--line); position: relative; transition: .2s; }
.sound-toggle span::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; left: 2px; top: 2px; background: var(--muted); transition: .2s; }
.sound-toggle input:checked + span { border-color: var(--accent); background: var(--accent-dim); }
.sound-toggle input:checked + span::after { transform: translateX(13px); background: var(--accent); }
.sound-toggle strong { color: var(--text); font-size: 10px; font-weight: 600; }
.sound-toggle small { grid-column: 2; color: #597067; font: 8px var(--mono); margin-top: 2px; }
.primary-action { width: 100%; border: 0; background: var(--accent); color: #04110b; padding: 14px; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; cursor: pointer; transition: transform .2s, filter .2s; }
.primary-action:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-action:disabled { opacity: .24; cursor: not-allowed; }
.text-action { width: 100%; border: 0; background: transparent; color: var(--muted); padding: 13px; font-size: 10px; cursor: pointer; }
.text-action:hover { color: var(--accent); }

.stage { min-width: 0; display: grid; grid-template-rows: 72px 1fr 62px; padding: 0 20px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; }
.stage-head > div:first-child { display: grid; gap: 7px; }
.stage-head strong { font-size: 14px; font-weight: 500; }
.monitor-state { display: flex; align-items: center; gap: 7px; font: 10px var(--mono); color: var(--muted); }
.monitor-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.monitor-state.armed { color: var(--accent); }
.monitor-state.suspected { color: var(--amber); }
.monitor-state.alarm { color: var(--danger); }

.video-frame { position: relative; min-height: 0; overflow: hidden; background: #020403; border: 1px solid var(--line); isolation: isolate; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.84) contrast(1.04); }
.video-fallback { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; color: var(--muted); font: 10px var(--mono); background: linear-gradient(120deg,#0c1712,#060907); }
.video-frame.video-error video { opacity: 0; }
.camera-meta { position: absolute; z-index: 8; left: 13px; right: 13px; bottom: 10px; display: flex; justify-content: space-between; color: rgba(236,248,243,.72); font: 9px var(--mono); letter-spacing: .08em; text-shadow: 0 1px 4px #000; }
.zone { position: absolute; z-index: 2; left: 14%; top: 48%; width: 60%; height: 43%; border: 1px solid rgba(77,245,166,.45); background: rgba(77,245,166,.025); pointer-events: none; }
.zone span { position: absolute; left: 7px; top: 6px; color: var(--accent); font: 9px var(--mono); }
.target-box, .secondary-box { position: absolute; z-index: 5; border: 1px solid var(--accent); background: rgba(77,245,166,.035); }
.target-box { left: 53%; top: 55%; width: 12%; height: 23%; cursor: pointer; padding: 0; transition: border-color .25s, box-shadow .25s, opacity .3s; }
.target-box:hover, .target-box.selected { box-shadow: 0 0 0 2px rgba(77,245,166,.25), 0 0 25px rgba(77,245,166,.18); }
.target-label, .secondary-box span { position: absolute; left: -1px; top: -24px; white-space: nowrap; color: #06110c; background: var(--accent); padding: 4px 6px; font: 10px var(--mono); }
.target-label b, .secondary-box b { font-weight: 500; opacity: .7; }
.secondary-box { left: 30%; top: 57%; width: 15%; height: 11%; border-color: rgba(110,210,255,.8); pointer-events: none; }
.secondary-box span { background: #6ed2ff; }
.corner { display: none; position: absolute; width: 7px; height: 7px; background: var(--accent); }
.target-box.selected .corner { display: block; }
.c1 { left:-4px;top:-4px}.c2{right:-4px;top:-4px}.c3{left:-4px;bottom:-4px}.c4{right:-4px;bottom:-4px}
.target-box.hidden-object { opacity: 0; }
.scanline { position: absolute; z-index: 3; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .45; animation: scan 3.5s linear infinite; pointer-events: none; }
.alarm-wash { position: absolute; z-index: 6; inset: 0; opacity: 0; pointer-events: none; border: 0 solid var(--danger); }
.alarm-wash.active { animation: alarmPulse 1.05s ease-in-out infinite; }
.event-banner { position: absolute; z-index: 9; left: 28px; bottom: 35px; width: min(390px, calc(100% - 56px)); padding: 18px 20px; background: rgba(20, 5, 8, .93); border-left: 3px solid var(--danger); transform: translateY(24px); opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2,.8,.2,1); }
.event-banner.visible { transform: translateY(0); opacity: 1; }
.event-banner strong { display: block; margin: 4px 0; font-size: 22px; }
.event-banner p { margin: 0; color: #c8aeb2; font-size: 12px; }
.event-kicker { color: var(--danger); font: 9px var(--mono); letter-spacing: .15em; }

.transport { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; }
.transport-button { border: 0; background: transparent; color: var(--accent); font: 10px var(--mono); cursor: pointer; padding: 10px 0; }
.transport-button.subtle { color: var(--muted); }
.progress { height: 2px; background: var(--line); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .08s linear; }
#elapsed { color: var(--muted); font: 10px var(--mono); }

.rail-heading { display: grid; gap: 8px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.rail-heading strong { font-size: 17px; }
.subject-panel { padding: 22px 0; border-bottom: 1px solid var(--line); }
.subject-top { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); }
.subject-panel > strong { display: block; margin-top: 10px; font-size: 20px; }
.subject-panel p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.state-track { padding: 20px 0; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.state-node { display: grid; grid-template-columns: 9px 1fr; gap: 10px; opacity: .3; transition: opacity .3s, transform .3s; }
.state-node > span { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; border: 1px solid var(--muted); }
.state-node strong, .state-node small { display: block; }
.state-node strong { font-size: 11px; }
.state-node small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.state-node.active { opacity: 1; transform: translateX(4px); }
.state-node.active > span { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(77,245,166,.5); }
.state-node[data-state="suspected"].active > span { background: var(--amber); border-color: var(--amber); }
.state-node[data-state="alarm"].active > span { background: var(--danger); border-color: var(--danger); }
.event-log { padding-top: 20px; min-height: 0; flex: 1; overflow: hidden; }
.event-log-head { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); }
.event-log-head button { border: 0; background: transparent; color: var(--muted); font: 9px var(--mono); cursor: pointer; }
.event-log ol { list-style: none; margin: 15px 0 0; padding: 0; display: grid; gap: 14px; max-height: 28vh; overflow-y: auto; }
.event-log li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; font-size: 10px; color: var(--muted); animation: eventIn .3s ease-out; }
.event-log li time { font: 9px var(--mono); color: #52675e; }
.event-log li strong { color: var(--text); font-weight: 500; }
.event-log li.alert strong { color: var(--danger); }
.event-log li.empty { display: block; }
.evidence { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; opacity: .28; transition: opacity .35s; }
.evidence.visible { opacity: 1; }
.evidence-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.evidence-head span, .evidence-grid figcaption { color: var(--muted); font: 9px var(--mono); letter-spacing: .11em; }
.evidence-head strong { font-size: 10px; font-weight: 500; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.evidence-grid figure { margin: 0; position: relative; background: #020403; border: 1px solid var(--line); overflow: hidden; }
.evidence-grid canvas { display: block; width: 100%; height: auto; filter: saturate(.8); }
.evidence-grid figcaption { position: absolute; left: 5px; bottom: 4px; padding: 2px 4px; background: rgba(0,0,0,.72); }
.privacy-note { padding-top: 16px; border-top: 1px solid var(--line); color: #53675f; font: 8px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; }

@keyframes breathe { 50% { opacity: .35; } }
@keyframes scan { from { top: 4%; } to { top: 96%; } }
@keyframes alarmPulse { 0%,100% { opacity: .08; border-width: 0; background: transparent; } 50% { opacity: .8; border-width: 6px; background: rgba(255,79,101,.08); } }
@keyframes eventIn { from { opacity: 0; transform: translateY(7px); } }

@media (max-width: 1100px) {
  .topbar { padding-inline: 18px; }
  .scenario { min-width: 104px; padding-inline: 12px; }
  .scenario::after { left: 12px; right: 12px; }
  .workspace { grid-template-columns: 270px minmax(470px,1fr); }
  .incident-rail { display: none; }
}
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  body { overflow-y: auto; }
  .topbar { height: 112px; grid-template-columns: 1fr auto; grid-template-rows: 58px 54px; grid-template-areas: "brand health" "nav nav"; padding: 0 14px; }
  .brand { grid-area: brand; align-self: center; }
  .system-health { grid-area: health; }
  .scenario-switcher { grid-area: nav; width: calc(100% + 28px); margin-left: -14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-inline: 0; }
  .scenario { min-width: 0; padding: 0 10px; grid-template-columns: auto 1fr; gap: 5px; }
  .scenario::after { left: 10px; right: 10px; }
  .scenario b { font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
  .system-health span:not(.health-dot) { display: none; }
  .workspace { height: auto; min-height: calc(100svh - 112px); grid-template-columns: 1fr; }
  .workflow { min-width: 0; border: 0; padding: 22px 18px 34px; }
  .workflow h1 { font-size: 27px; }
  .stage { order: -1; height: auto; min-height: 0; padding: 0 10px; grid-template-rows: 62px auto 52px; }
  .video-frame { width: 100%; aspect-ratio: 16 / 9; }
  .video-frame video { object-fit: contain; }
  .rule, .scenario, .primary-action, .text-action { min-height: 44px; }
  .event-banner { left: 14px; bottom: 24px; width: calc(100% - 28px); padding: 14px 16px; }
  .event-banner strong { font-size: 17px; }
  .target-label, .secondary-box span { font-size: 8px; top: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Application shell v2 */
.topbar {
  height: 64px;
  grid-template-columns: 38px auto minmax(260px, 1fr) auto auto;
  gap: 12px;
  padding: 0 18px;
  align-items: center;
}
.menu-button { width: 36px; height: 36px; padding: 10px; border: 0; background: transparent; cursor: pointer; display: grid; align-content: center; gap: 4px; }
.menu-button i { display: block; width: 16px; height: 1px; background: var(--muted); transition: transform .2s, width .2s, background .2s; }
.menu-button i:nth-child(2) { width: 11px; }
.menu-button:hover i { width: 18px; background: var(--accent); }
.brand { font-size: 16px; white-space: nowrap; }
.primary-nav { justify-self: center; height: 100%; display: flex; align-items: stretch; }
.nav-item { position: relative; padding: 0 17px; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.nav-item::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav-item:hover, .nav-item.active { color: var(--text); }
.nav-item.active::after { transform: scaleX(1); }
.current-scenario { min-width: 142px; display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.018); text-align: left; cursor: pointer; }
.current-scenario span { grid-column: 1; color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; }
.current-scenario strong { grid-column: 1; font-size: 11px; font-weight: 600; }
.current-scenario i { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); }

.menu-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(0,0,0,.56); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; backdrop-filter: blur(3px); }
.app-menu { position: fixed; z-index: 41; inset: 0 auto 0 0; width: min(370px, 92vw); padding: 24px; display: flex; flex-direction: column; background: #08110e; border-right: 1px solid rgba(77,245,166,.3); transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 24px 0 70px rgba(0,0,0,.45); }
body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
body.menu-open .app-menu { transform: translateX(0); }
.menu-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.menu-head > div { display: grid; gap: 7px; }
.menu-head strong { font-size: 18px; }
.menu-head button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.menu-section { display: grid; gap: 6px; padding: 20px 0 2px; }
.menu-section > span { margin-bottom: 6px; color: #557067; font: 8px var(--mono); letter-spacing: .16em; }
.menu-scenario, .menu-link { width: 100%; min-width: 0; min-height: 58px; display: grid; grid-template-columns: 29px 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-content: center; padding: 10px 12px; border: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.menu-scenario::after { display: none; }
.menu-scenario i { grid-row: 1 / 3; align-self: center; color: #50665d; font: normal 9px var(--mono); }
.menu-scenario b, .menu-link b { color: var(--text); font-size: 12px; font-weight: 600; }
.menu-scenario small, .menu-link small { color: var(--muted); font-size: 9px; }
.menu-scenario:hover, .menu-link:hover { background: rgba(255,255,255,.025); }
.menu-scenario.active { border-color: rgba(77,245,166,.34); background: rgba(77,245,166,.07); }
.menu-scenario.active i { color: var(--accent); }
.menu-link { grid-template-columns: 1fr; min-height: 50px; }
.menu-footer { margin-top: auto; display: grid; grid-template-columns: 9px 1fr; gap: 10px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.menu-footer strong, .menu-footer small { display: block; }
.menu-footer strong { font-size: 10px; }
.menu-footer small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.workspace { height: calc(100svh - 64px); grid-template-columns: clamp(232px, 18vw, 276px) minmax(430px, 1fr) clamp(226px, 18vw, 276px); overflow: hidden; }
.workflow, .incident-rail { padding: clamp(14px, 2.3vh, 23px) clamp(15px, 1.5vw, 22px); overflow: hidden; }
.workflow h1 { margin: 9px 0 5px; font-size: clamp(21px, 2vw, 27px); }
.intro { margin: 0 0 clamp(8px, 1.6vh, 16px); font-size: 11px; line-height: 1.45; }
.config-flow { gap: 0; }
.flow-step { grid-template-columns: 24px 1fr; gap: 8px; padding: clamp(6px, 1vh, 10px) 0; }
.step-index { width: 21px; height: 21px; }
.rule-options { grid-template-columns: 1fr 1fr; gap: 4px; margin: 7px 0; }
.rule { min-height: 37px; padding: 6px 7px; font-size: 9px; line-height: 1.25; }
.sound-toggle { margin-top: 7px; }
.primary-action { padding: 12px; margin-top: clamp(8px, 1.4vh, 14px); }
.text-action { padding: 9px; }
.stage { grid-template-rows: 56px minmax(0, 1fr) 48px; padding: 0 clamp(8px, 1.2vw, 16px); overflow: hidden; }
.stage-head > div:first-child { gap: 4px; }
.transport { gap: 10px; }
.rail-heading { gap: 5px; padding-bottom: clamp(10px, 1.5vh, 16px); }
.rail-heading strong { font-size: 15px; }
.subject-panel { padding: clamp(10px, 1.7vh, 16px) 0; }
.subject-panel > strong { margin-top: 6px; font-size: 17px; }
.state-track { padding: clamp(10px, 1.6vh, 16px) 0; gap: clamp(7px, 1.1vh, 11px); }
.event-log { padding-top: clamp(10px, 1.5vh, 15px); flex: 0 1 auto; }
.event-log ol { margin-top: 9px; gap: 8px; max-height: min(17vh, 118px); overflow: hidden; }
.evidence { margin-top: clamp(8px, 1.2vh, 12px); padding-top: 9px; }
.evidence-head { margin-bottom: 6px; }
.mobile-dock { display: none; }

@media (max-height: 760px) and (min-width: 761px) {
  .workflow, .incident-rail { padding-block: 12px; }
  .workflow h1 { font-size: 20px; }
  .intro { margin-bottom: 5px; }
  .flow-step { padding: 5px 0; }
  .rule { min-height: 31px; padding: 4px 6px; }
  .primary-action { margin-top: 6px; padding: 10px; }
  .text-action { padding: 6px; }
  .state-track { padding: 8px 0; gap: 6px; }
  .state-node small { display: none; }
  .evidence { display: none; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .topbar { grid-template-columns: 36px auto 1fr auto; }
  .primary-nav { justify-self: end; }
  .current-scenario { display: none; }
  .workspace { grid-template-columns: 250px minmax(430px,1fr); }
}

@media (max-width: 760px) {
  html, body, .app-shell { width: 100%; height: 100svh; min-height: 0; overflow: hidden; }
  .topbar { height: 58px; grid-template: 58px / 38px minmax(0,1fr) auto; grid-template-areas: none; gap: 7px; padding: 0 10px; }
  .menu-button { grid-column: 1; }
  .brand { grid-column: 2; font-size: 14px; }
  .primary-nav, .system-health { display: none; }
  .current-scenario { grid-column: 3; display: grid; min-width: 104px; padding: 7px 9px; }
  .current-scenario strong { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .app-menu { padding: 19px; }
  .workspace { height: calc(100svh - 122px); min-height: 0; display: block; overflow: hidden; }
  .stage { position: relative; z-index: 1; width: 100%; height: 100%; padding: 0 8px; grid-template-rows: 48px minmax(0,1fr) 44px; }
  .stage-head { min-width: 0; }
  .stage-head strong { max-width: 68vw; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
  .video-frame { align-self: center; width: 100%; max-height: 100%; aspect-ratio: 16/9; }
  .video-frame video { object-fit: contain; }
  .workflow, .incident-rail { position: fixed; z-index: 30; left: 0; right: 0; top: 58px; bottom: 64px; display: flex; flex-direction: column; padding: 16px 18px; border: 0; background: rgba(7,13,11,.985); transform: translateX(102%); transition: transform .27s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
  body.panel-config .workflow, body.panel-events .incident-rail { transform: translateX(0); }
  .workflow h1 { font-size: 22px; }
  .intro { margin-bottom: 7px; }
  .flow-step { padding: 6px 0; }
  .rule-options { grid-template-columns: 1fr 1fr; }
  .rule { min-height: 42px; }
  .primary-action { margin-top: auto; }
  .incident-rail { padding-bottom: 12px; }
  .state-track { grid-template-columns: 1fr 1fr; }
  .event-log { flex: 1; }
  .event-log ol { max-height: none; }
  .evidence { display: none; }
  .mobile-dock { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(3,1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(7,13,11,.98); }
  .mobile-dock button { border: 0; background: transparent; color: var(--muted); display: grid; place-content: center; gap: 3px; cursor: pointer; }
  .mobile-dock button span { color: currentColor; font: 9px var(--mono); }
  .mobile-dock button strong { font-size: 9px; font-weight: 600; }
  .mobile-dock button.active { color: var(--accent); background: rgba(77,245,166,.04); }
  .camera-meta { bottom: 7px; }
  .event-banner { bottom: 25px; }
}

@media (max-width: 390px), (max-height: 680px) {
  .brand-light { display: none; }
  .workflow { padding-block: 11px; }
  .workflow .intro { display: none; }
  .flow-step { padding: 4px 0; }
  .rule { min-height: 35px; }
  .text-action { padding: 5px; }
  .subject-panel { padding: 8px 0; }
  .state-track { padding: 8px 0; gap: 7px; }
  .state-node small { display: none; }
}

/* Mobile control surface v3 */
.sound-preview {
  margin: 7px 0 0 37px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 9px var(--mono);
  text-align: left;
  cursor: pointer;
}
.sound-preview span { display: inline-block; margin-right: 5px; transition: transform .2s; }
.sound-preview:hover span { transform: translateX(2px); }
.mobile-monitor-summary { display: none; }

@media (max-width: 760px) {
  html, body, .app-shell { background: #050a08; }
  .topbar {
    height: 64px;
    grid-template: 64px / 42px minmax(0,1fr) auto;
    gap: 5px;
    padding: max(4px, env(safe-area-inset-top)) 12px 0;
    background: rgba(5,9,7,.94);
    backdrop-filter: blur(18px);
  }
  .menu-button, .brand, .current-scenario { grid-area: auto; }
  .brand { font-size: 13px; letter-spacing: .035em; }
  .brand-icon { width: 22px; height: 22px; }
  .current-scenario {
    min-width: 98px;
    min-height: 42px;
    padding: 6px 9px;
    border-color: rgba(182,224,206,.11);
    background: rgba(255,255,255,.025);
  }
  .workspace { height: calc(100svh - 132px); }
  .stage {
    height: 100%;
    padding: 0 14px;
    display: grid;
    grid-template-rows: 66px auto 50px minmax(0,1fr);
    align-content: start;
    overflow: hidden;
  }
  .stage-head { padding-top: 4px; }
  .stage-head > div:first-child { gap: 6px; min-width: 0; }
  .stage-head strong {
    max-width: 66vw;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.02em;
  }
  .stage-head .eyebrow { font-size: 9px; }
  .monitor-state {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    font-size: 8px;
  }
  .video-frame {
    align-self: start;
    max-height: none;
    border-radius: 10px;
    border-color: rgba(182,224,206,.18);
    box-shadow: 0 16px 48px rgba(0,0,0,.28);
  }
  .transport { gap: 12px; }
  .transport-button { min-width: 42px; min-height: 44px; }
  .progress { height: 3px; border-radius: 3px; }
  .workflow, .incident-rail {
    top: 64px;
    bottom: 68px;
    padding: 18px 20px;
    overflow: auto;
  }
  .mobile-monitor-summary {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 2px 8px;
    border-top: 1px solid rgba(182,224,206,.1);
  }
  .mobile-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #587066;
    font: 8px var(--mono);
    letter-spacing: .12em;
  }
  .mobile-summary-head strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .08em;
  }
  .mobile-summary-head i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
  }
  .mobile-summary-head strong.armed { color: var(--accent); }
  .mobile-summary-head strong.suspected { color: var(--amber); }
  .mobile-summary-head strong.alarm { color: var(--danger); }
  .mobile-subject {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px 0;
  }
  .mobile-subject > div { display: grid; gap: 5px; min-width: 0; }
  .mobile-subject span { color: #587066; font: 8px var(--mono); letter-spacing: .12em; }
  .mobile-subject strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .mobile-rule-action {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(182,224,206,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
  }
  .mobile-rule-action span { color: var(--accent); font-size: 16px; }
  .mobile-dock {
    height: 68px;
    padding: 4px 10px max(4px, env(safe-area-inset-bottom));
    border-top-color: rgba(182,224,206,.1);
    background: rgba(5,10,8,.96);
    backdrop-filter: blur(18px);
  }
  .mobile-dock button {
    position: relative;
    border-radius: 8px;
    color: #60756c;
    gap: 3px;
  }
  .mobile-dock button svg {
    width: 20px;
    height: 20px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-dock button strong { font-size: 9px; font-weight: 600; }
  .mobile-dock button.active { background: rgba(77,245,166,.055); }
  .mobile-dock button.active::before {
    content: "";
    position: absolute;
    left: 36%;
    right: 36%;
    top: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 9px rgba(77,245,166,.6);
  }
}

@media (max-width: 390px), (max-height: 680px) {
  .stage { grid-template-rows: 56px auto 44px minmax(0,1fr); padding-inline: 10px; }
  .mobile-monitor-summary { padding-top: 10px; }
  .mobile-summary-head { display: none; }
  .mobile-subject { padding: 8px 0 10px; }
  .mobile-rule-action { min-height: 38px; margin-top: 0; flex-shrink: 0; }
}

/* Readability pass v4 */
.brand { font-size: 17px; }
.eyebrow { font-size: 11px; }
.nav-item { font-size: 12px; }
.current-scenario span { font-size: 9px; }
.current-scenario strong { font-size: 12px; }
.stage-head strong { font-size: 16px; }
.monitor-state { font-size: 11px; }
.camera-meta { font-size: 10px; }
.transport-button, #elapsed { font-size: 11px; }
.flow-step h2 { font-size: 14px; }
.flow-step p { font-size: 12px; }
.rule { font-size: 10px; }
.delay-control { font-size: 11px; }
.sound-toggle strong { font-size: 11px; }
.sound-toggle small, .sound-preview { font-size: 9px; }
.primary-action { font-size: 12px; }
.text-action { font-size: 11px; }
.subject-top, .event-log-head, .event-log-head button { font-size: 10px; }
.subject-panel p, .state-node strong { font-size: 11px; }
.state-node small, .event-log li { font-size: 10px; }
.event-log li time { font-size: 9px; }

@media (max-width: 760px) {
  .brand { font-size: 15px; }
  .current-scenario span { font-size: 10px; }
  .current-scenario strong { font-size: 12px; }
  .stage-head .eyebrow { font-size: 11px; }
  .stage-head strong { font-size: 18px; }
  .monitor-state { font-size: 10px; }
  .target-label, .secondary-box span { font-size: 10px; }
  .camera-meta { font-size: 11px; }
  .transport-button, #elapsed { font-size: 12px; }
  .mobile-summary-head, .mobile-summary-head strong { font-size: 10px; }
  .mobile-subject span { font-size: 10px; }
  .mobile-subject strong { font-size: 17px; }
  .mobile-rule-action { font-size: 13px; }
  .mobile-dock button strong { font-size: 12px; }
  .menu-section > span { font-size: 9px; }
  .menu-scenario b, .menu-link b { font-size: 14px; }
  .menu-scenario small, .menu-link small { font-size: 11px; }
  .workflow h1 { font-size: 24px; }
  .intro { font-size: 12px; }
  .flow-step h2 { font-size: 15px; }
  .flow-step p { font-size: 12px; }
  .rule { font-size: 11px; }
  .delay-control { font-size: 12px; }
  .sound-toggle strong { font-size: 12px; }
  .sound-toggle small, .sound-preview { font-size: 10px; }
  .primary-action { font-size: 13px; }
  .text-action { font-size: 12px; }
  .rail-heading strong { font-size: 18px; }
  .subject-panel > strong { font-size: 19px; }
  .subject-panel p, .state-node strong { font-size: 12px; }
  .state-node small, .event-log li { font-size: 11px; }
}

/* Vision Sentinel cinematic control room v5 */
:root {
  --bg: #030705;
  --surface: #07100c;
  --surface-2: #0a1711;
  --line: rgba(185, 228, 208, .12);
  --muted: #82988e;
  --text: #f1faf6;
  --accent: #43f5a0;
  --accent-soft: rgba(67, 245, 160, .1);
  --panel-glow: rgba(30, 125, 82, .09);
}

.app-shell { position: relative; isolation: isolate; background: var(--bg); }
.app-shell::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 70% at 52% 42%, rgba(31, 117, 79, .1), transparent 70%),
    linear-gradient(115deg, rgba(255,255,255,.012), transparent 26%);
}

.topbar {
  position: relative;
  z-index: 20;
  background: rgba(3, 9, 6, .88);
  border-bottom-color: rgba(157, 214, 188, .12);
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(20px) saturate(130%);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(67,245,160,.18) 50%, transparent 92%);
}
.brand-icon { filter: drop-shadow(0 0 12px rgba(67,245,160,.35)); }
.brand-light { color: #688177; }
.menu-button { border-radius: 10px; transition: background .2s, transform .2s; }
.menu-button:hover { background: var(--accent-soft); transform: scale(1.04); }
.nav-item { font-weight: 600; }
.nav-item::after { height: 3px; border-radius: 3px 3px 0 0; box-shadow: 0 0 14px rgba(67,245,160,.48); }
.current-scenario {
  border-radius: 10px;
  border-color: rgba(185,228,208,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: border-color .2s, background .2s, transform .2s;
}
.current-scenario:hover { border-color: rgba(67,245,160,.38); background: var(--accent-soft); transform: translateY(-1px); }
.system-health { padding: 0 3px; }

.workspace { background: linear-gradient(90deg, rgba(255,255,255,.008), transparent 21%, transparent 79%, rgba(255,255,255,.008)); }
.workflow, .incident-rail {
  background: linear-gradient(180deg, rgba(7,16,12,.94), rgba(3,8,6,.9));
  scrollbar-color: rgba(67,245,160,.28) transparent;
}
.workflow { border-right-color: rgba(185,228,208,.1); }
.incident-rail { border-left-color: rgba(185,228,208,.1); }
.workflow h1 { text-wrap: balance; }
.intro { max-width: 30ch; }
.flow-step { position: relative; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 32px;
  bottom: -5px;
  width: 1px;
  background: linear-gradient(var(--line), transparent);
}
.step-index { background: rgba(255,255,255,.018); transition: transform .25s, background .25s, box-shadow .25s; }
.flow-step.active .step-index { box-shadow: 0 0 0 4px rgba(67,245,160,.08), 0 0 22px rgba(67,245,160,.22); transform: scale(1.05); }
.rule {
  border-radius: 8px;
  border-color: rgba(185,228,208,.11);
  background: rgba(255,255,255,.012);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.rule:hover { color: var(--text); border-color: rgba(67,245,160,.28); transform: translateY(-1px); }
.rule.active { border-color: rgba(67,245,160,.68); background: linear-gradient(135deg, rgba(67,245,160,.13), rgba(67,245,160,.035)); box-shadow: inset 0 0 18px rgba(67,245,160,.035); }
input[type="range"] { height: 14px; }
.sound-toggle span { background: rgba(255,255,255,.02); }
.primary-action {
  border-radius: 9px;
  background: linear-gradient(135deg, #52fbb0, #2bd88a);
  box-shadow: 0 12px 30px rgba(30,210,127,.13);
}
.primary-action:not(:disabled):hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 15px 36px rgba(30,210,127,.2); }
.primary-action.armed:disabled {
  opacity: 1;
  color: var(--accent);
  border: 1px solid rgba(67,245,160,.28);
  background: linear-gradient(135deg, rgba(67,245,160,.13), rgba(67,245,160,.055));
  box-shadow: inset 0 0 25px rgba(67,245,160,.035);
}

.stage { position: relative; animation: workspaceIn .65s cubic-bezier(.2,.8,.2,1) both; }
.stage-head { padding-inline: 2px; }
.stage-head strong { letter-spacing: -.025em; }
.monitor-state {
  padding: 7px 10px;
  border: 1px solid rgba(185,228,208,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
}
.monitor-state i { position: relative; }
.monitor-state i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: signalRing 2s ease-out infinite;
}

.video-frame {
  border-radius: 15px;
  border-color: rgba(185,228,208,.17);
  box-shadow: 0 25px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.018) inset;
  animation: frameReveal .75s .08s cubic-bezier(.2,.8,.2,1) both;
}
.video-frame::before {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.26), transparent 18%, transparent 70%, rgba(0,0,0,.32));
}
.video-frame::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 0 70px rgba(0,0,0,.16);
}
.video-frame video { transform: scale(1.001); }
.video-hud {
  position: absolute;
  z-index: 9;
  left: 14px;
  right: 14px;
  top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  font: 9px var(--mono);
  letter-spacing: .12em;
}
.live-badge, .tracking-badge {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(2,8,5,.58);
  color: rgba(241,250,246,.76);
  backdrop-filter: blur(12px);
}
.live-badge { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: breathe 1.5s ease-in-out infinite; }
.tracking-badge { color: rgba(241,250,246,.6); }
.zone { border-radius: 2px; border-color: rgba(67,245,160,.5); }
.target-box { border-width: 1.5px; }
.target-label { border-radius: 4px 4px 4px 0; box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.camera-meta { z-index: 10; bottom: 12px; }
.event-banner { border-radius: 0 10px 10px 0; box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(16px); }

.transport {
  grid-template-columns: auto minmax(90px,1fr) auto auto auto;
  gap: 12px;
  padding: 9px 2px;
}
.transport-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  transition: color .2s, background .2s, transform .2s, border-color .2s;
}
.transport-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.play-control {
  min-width: 94px;
  color: #031009;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(67,245,160,.16);
}
.play-control .icon-play { fill: currentColor; stroke: none; }
.play-control .icon-pause { display: none; }
.play-control.is-playing { color: var(--accent); background: rgba(67,245,160,.1); box-shadow: inset 0 0 0 1px rgba(67,245,160,.22); }
.play-control.is-playing .icon-play { display: none; }
.play-control.is-playing .icon-pause { display: block; }
.transport-button:hover { transform: translateY(-1px); }
.transport-button.subtle:hover { color: var(--text); background: rgba(255,255,255,.045); }
.replay-control { min-width: 96px; }
.fullscreen-control { width: 38px; min-width: 38px; padding: 0; }
.progress { position: relative; height: 4px; border-radius: 4px; background: rgba(185,228,208,.12); }
.progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(67,245,160,.75);
  transform: translate(-2px,-50%);
}
.progress span { border-radius: inherit; box-shadow: 0 0 10px rgba(67,245,160,.28); }

.rail-heading { position: relative; }
.subject-panel > strong { letter-spacing: -.025em; }
.state-node { border-radius: 7px; padding: 4px 5px; margin-inline: -5px; }
.state-node.active { background: linear-gradient(90deg, rgba(67,245,160,.07), transparent); }
.event-log li { padding-bottom: 8px; border-bottom: 1px solid rgba(185,228,208,.055); }
.evidence-grid figure { border-radius: 7px; }
.app-menu { background: linear-gradient(160deg, #091711, #040a07 70%); box-shadow: 30px 0 90px rgba(0,0,0,.55); }
.menu-scenario, .menu-link { border-radius: 9px; }

@keyframes workspaceIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes frameReveal { from { opacity: 0; transform: scale(.985); filter: saturate(.3); } }
@keyframes signalRing { 20% { opacity: .35; } 75%,100% { opacity: 0; transform: scale(1.8); } }

@media (min-width: 1101px) {
  .workspace { grid-template-columns: clamp(250px, 18vw, 292px) minmax(500px, 1fr) clamp(250px, 18vw, 292px); }
  .stage { grid-template-rows: 66px minmax(0,1fr) 64px; padding-inline: clamp(12px,1.4vw,22px); }
  .workflow, .incident-rail { padding-inline: clamp(18px,1.6vw,25px); }
}

@media (max-width: 760px) {
  .topbar { box-shadow: 0 8px 28px rgba(0,0,0,.28); }
  .stage { animation-duration: .45s; }
  .stage-head { padding-inline: 2px; }
  .monitor-state { padding: 6px 9px; }
  .video-frame { border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.38); }
  .video-hud { top: 9px; left: 9px; right: 9px; font-size: 8px; }
  .live-badge, .tracking-badge { padding: 5px 6px; border-radius: 5px; }
  .camera-meta { bottom: 9px; }
  .transport { grid-template-columns: 42px minmax(50px,1fr) auto 38px 38px; gap: 7px; padding: 5px 0; }
  .transport-button { min-width: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
  .transport-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .play-control { width: 42px; min-width: 42px; box-shadow: 0 7px 20px rgba(67,245,160,.18); }
  .replay-control, .fullscreen-control { width: 38px; min-width: 38px; }
  .transport-button.subtle { border: 1px solid rgba(185,228,208,.1); background: rgba(255,255,255,.018); }
  .transport-button svg { width: 19px; height: 19px; }
  .progress::after { width: 6px; height: 6px; }
  .mobile-monitor-summary { background: linear-gradient(180deg, rgba(67,245,160,.025), transparent 65%); }
  .mobile-rule-action { border-color: rgba(67,245,160,.18); background: linear-gradient(135deg, rgba(67,245,160,.07), rgba(255,255,255,.018)); }
  .mobile-dock { box-shadow: 0 -16px 44px rgba(0,0,0,.3); }
  .mobile-dock button { transition: color .2s, background .2s, transform .2s; }
  .mobile-dock button:active { transform: scale(.96); }
}

@media (max-width: 390px), (max-height: 680px) {
  .video-hud { display: none; }
  .transport { grid-template-columns: 40px minmax(40px,1fr) auto 36px 36px; gap: 5px; }
  .transport-button { min-width: 36px; min-height: 36px; }
  .play-control { width: 40px; min-width: 40px; }
}

/* In-frame telemetry v6 */
.camera-meta {
  left: 14px;
  right: 14px;
  bottom: 21px;
  align-items: center;
  text-shadow: none;
}
.camera-meta span {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  background: rgba(2,8,5,.68);
  box-shadow: 0 7px 20px rgba(0,0,0,.2);
  backdrop-filter: blur(12px) saturate(120%);
}
.camera-meta span:nth-child(2) { color: var(--text); }
.event-banner { z-index: 11; bottom: 62px; }

@media (max-width: 760px) {
  .camera-meta { left: 10px; right: 10px; bottom: 17px; }
  .camera-meta span { padding: 5px 6px; border-radius: 5px; }
  .event-banner { bottom: 55px; }
}

@media (max-width: 390px), (max-height: 680px) {
  .camera-meta { bottom: 14px; }
  .camera-meta span { padding: 4px 5px; }
}
