/* Guardian console. Layout and palette follow the team's claude.ai/design console mock; most styles
   are inline in app.js exactly as in the design. This file holds the fonts (vendored, OFL), the base,
   and the hover / focus states the design declared with style-hover / style-focus. */
@font-face { font-family: Geist; font-weight: 400; font-style: normal; font-display: swap; src: url(/vendor/fonts/Geist-Regular.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 500; font-style: normal; font-display: swap; src: url(/vendor/fonts/Geist-Medium.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 600; font-style: normal; font-display: swap; src: url(/vendor/fonts/Geist-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/vendor/fonts/GeistMono-Regular.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/vendor/fonts/GeistMono-Medium.woff2) format("woff2"); }

html, body { margin: 0; height: 100%; background: #F0F8FF; color: #1C1C1A; font-family: Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #1C1C1A; }
a:hover { color: #D2402B; }
* { box-sizing: border-box; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default !important; opacity: 0.45; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #1C1C1A; outline-offset: 2px; }

/* style-hover / style-focus from the design */
.v-dark:hover:not(:disabled) { background: #33332F !important; }
.v-red:hover:not(:disabled) { background: #B93522 !important; }
.v-light:hover:not(:disabled) { background: #F0F8FF !important; }
.v-row:hover { background: #F0F8FF !important; }
.v-row[data-on="1"]:hover { background: #F0F8FF !important; }
.v-row[data-alert="1"], .v-row[data-alert="1"]:hover { animation: v-alert-row 1.6s ease-in-out infinite; }
.v-row[data-alert="1"]:hover { background: #F8D9D2 !important; }
@keyframes v-alert-row { 0%, 100% { background-color: #FCEBE7; } 50% { background-color: #F6D0C7; } }
@media (prefers-reduced-motion: reduce) { .v-row[data-alert="1"] { animation: none; } }
.v-input:focus { border-color: #1C1C1A !important; }
.v-tile:hover { border-color: #9A9A94 !important; }
.v-tile[data-sel="1"]:hover, .v-tile[data-alert="1"]:hover { border-color: inherit; }
.v-wall-voice-meter { display: flex; align-items: center; gap: 8px; height: 20px; }
.v-wall-voice-meter canvas { flex: 1; min-width: 0; width: 100%; height: 20px; display: block; }
.v-demo-voice-label { flex: none; padding: 3px 5px; border-radius: 4px; background: #F0F8FF; color: #51697D; font: 500 8px 'Geist Mono', monospace; letter-spacing: .02em; }
.v-demo-voice-text { margin: 0; font-size: 15px; line-height: 1.55; color: #36516B; }
/* Command center: the room the incident started in (pre-alert or lockdown source). */
.v-tile[data-source="1"], .v-tile[data-source="1"]:hover { border: 2px solid #D2402B !important; animation: v-source-glow 1.8s ease-in-out infinite; }
.v-tile[data-source="1"] .v-tile-info { background: #FCEBE7; }
.v-tile[data-source="1"] .v-tile-info > div:first-child > span:first-child { color: #A8321F; }
.v-tile-source-frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px #D2402B, inset 0 0 28px rgba(210, 64, 43, .45); }
.v-tile-source-bar { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; background: #D2402B; color: #FFFFFF; font: 600 11px Geist, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.v-tile-source-bar i { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; flex: none; }
.v-tile-source-bar time { margin-left: auto; font: 500 11px 'Geist Mono', monospace; letter-spacing: 0; }
@keyframes v-source-glow { 0%, 100% { box-shadow: 0 0 0 3px rgba(210, 64, 43, .16), 0 14px 32px -16px rgba(210, 64, 43, .55); } 50% { box-shadow: 0 0 0 7px rgba(210, 64, 43, .26), 0 14px 32px -16px rgba(210, 64, 43, .75); } }
@media (prefers-reduced-motion: reduce) { .v-tile[data-source="1"] { animation: none; box-shadow: 0 0 0 4px rgba(210, 64, 43, .2); } }

/* Enlarge the local preview without starting another camera stream. */
.v-live-expand > span, .v-live-expand-hint { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; border: 1px solid #FFFFFF66; border-radius: 5px; background: #1C1C1AB8; color: #FFFFFF; font: 22px/1 Geist, sans-serif; }
.v-live-expand { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.v-live-expand:hover > span, .v-tile:hover .v-live-expand-hint { background: #005B99; border-color: #FFFFFF99; }
.v-live-modal { width: min(1520px, calc(100vw - 32px), calc((100dvh - 120px) * 16 / 9 + 360px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid #B2C2D6; border-radius: 16px; background: #FFFFFF; color: #1C1C1A; box-shadow: 0 24px 80px #00000055; }
.v-live-modal::backdrop { background: #0C1827B8; backdrop-filter: blur(5px); }
.v-live-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.v-live-modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.v-live-modal-header p { margin: 4px 0 0; font-size: 12px; color: #6B6B66; }
.v-live-modal-close { flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid #B2C2D6; border-radius: 8px; background: #FFFFFF; color: #1C1C1A; font: 26px/1 Geist, sans-serif; cursor: pointer; }
.v-live-modal-close:hover { background: #F0F8FF; }
.v-live-modal-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.v-live-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #101614; }
.v-live-modal-voice { position: relative; min-width: 0; border-left: 1px solid #D5E2EE; background: linear-gradient(160deg, #F0F8FF 0%, #FFFFFF 48%); }
.v-voice-panel { position: absolute; inset: 0; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.v-voice-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.v-voice-heading h3 { margin: 0; font-size: 15px; font-weight: 600; }
.v-voice-status { padding: 4px 8px; border-radius: 999px; background: #F0F8FF; color: #6B6B66; font-size: 11px; font-weight: 500; }
.v-voice-status[data-active="true"] { background: #E3EDE6; color: #2C5A3F; }
.v-voice-status[data-active="true"]::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.v-voice-section { flex: none; display: flex; flex-direction: column; gap: 10px; }
.v-voice-section h4 { margin: 0; font-size: 12px; font-weight: 500; color: #51697D; }
.v-voice-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: #51697D; }
.v-voice-meter, .v-speech-meter { display: block; width: 100%; height: 72px; padding: 8px 10px; border: 1px solid #D5E2EE; border-radius: 10px; background: linear-gradient(180deg, #FFFFFF, #F0F8FF); }
.v-speech-meter { height: 56px; }
.v-voice-audio { gap: 12px; }
.v-voice-stats { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .85fr); gap: 8px; }
.v-voice-stats > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid #D5E2EE66; border-radius: 9px; background: #F0F8FF; }
.v-voice-stats span { font-size: 10px; color: #51697D; }
.v-voice-stats strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.v-voice-caption { padding: 14px; border-radius: 10px; background: #F0F8FF; }
.v-voice-caption .v-voice-label { flex-wrap: wrap; }
.v-voice-caption .v-voice-label > span { font-size: 10px; }
.v-voice-caption h4 { color: #005B99; font-weight: 600; }
.v-live-caption { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: #F0F8FF; }
.v-speech-context { height: 4.65em; overflow: auto; display: flex; flex-direction: column; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.v-speech-context > :first-child { margin-top: 0; }
.v-speech-context p { flex: none; margin: 0; font: inherit; }
.v-speech-context p + p { margin-top: 4px; }
.v-speech-context[data-empty="true"] { color: #6B6B66; }
.v-speech-context[data-empty="true"] > :first-child { margin-top: 0; }
.v-voice-caption .v-speech-context { font-size: 15px; }
.v-voice-actions { position: sticky; bottom: 0; flex: none; margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; border: 1px solid #B2C2D6; border-radius: 12px; background: #FFFFFF; }
.v-voice-actions button { min-width: 0; height: 40px; padding: 0 8px; border: 1px solid #B2C2D6; border-radius: 8px; background: #FFFFFF; color: #1C1C1A; font: 500 12px Geist, sans-serif; cursor: pointer; }
.v-voice-actions .v-voice-primary { border-color: #005B99; background: #005B99; color: #FFFFFF; }
.v-voice-actions .v-voice-primary:hover { border-color: #004B80; background: #004B80; }
.v-room-status { flex: none; box-shadow: 0 6px 18px -14px #005B9966; }
.v-room-status .v-danger-ring { width: 64px; height: 64px; }
.v-speech-flag { padding: 0 2px; border-radius: 3px; background: #FCD5D2; color: #A52D22; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.v-danger { --danger-color: #005B99; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #D5E2EE; border-radius: 10px; background: #F8FBFE; }
.v-danger[data-tone="building"] { --danger-color: #A16B09; background: #FFFBF2; }
.v-danger[data-tone="flagged"] { --danger-color: #C3362A; border-color: #EDBDB7; background: #FFF7F6; }
.v-danger[data-tone="offline"] { --danger-color: #6B6B66; }
.v-danger-ring { position: relative; flex: none; width: 72px; height: 72px; display: grid; place-items: center; color: var(--danger-color); }
.v-danger-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 5; }
.v-danger-track { stroke: #E4EBF0; }
.v-danger-progress { stroke: var(--danger-color); stroke-linecap: round; transition: stroke-dashoffset .5s ease, stroke .3s ease; }
.v-danger-ring > strong { font: 600 17px Geist, sans-serif; }
.v-danger-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v-danger-copy > span { font-size: 11px; color: #51697D; }
.v-danger-copy > strong { font-size: 13px; color: var(--danger-color); }
.v-danger-copy > small { font-size: 10px; line-height: 1.4; color: #6B6B66; }
@media (prefers-reduced-motion: reduce) { .v-danger-progress { transition: none; } }
.v-voice-alert { padding: 14px; border: 1px solid #E8B8AF; border-radius: 10px; background: #FFF7F4; }
.v-voice-alert p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .v-live-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
  .v-live-modal-header { position: sticky; top: 0; z-index: 1; background: #FFFFFF; }
  .v-live-modal-body { grid-template-columns: minmax(0, 1fr); }
  .v-live-modal-voice { border-left: 0; border-top: 1px solid #D5E2EE; }
  .v-voice-panel { position: static; padding: 20px; gap: 16px; }
}
@media (max-width: 600px) {
  .v-live-modal-header { gap: 8px; padding: 12px; }
  .v-live-modal-header h2 { font-size: 15px; }
}

/* Supplied Guardian OS palette. Semantic safety colours remain independent. */
.guardian-accent { --brand: #005B99; --brand-hover: #004B80; --sky: #A4C8E1; --ice: #F0F8FF; --steel: #B2C2D6; --paper: #FFFFFF; }
/* Compact camera tool panel: icon-only, single column, 36 px targets; labels stay for screen readers. */
.v-left-stack { position: absolute; left: 16px; bottom: 16px; width: 200px; max-height: calc(100% - 92px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; z-index: 2; }
.v-camera-controls { flex: 0 1 auto; width: 54px; box-sizing: border-box; min-height: 0; overflow: auto; padding: 6px; border: 1px solid var(--steel); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18); scrollbar-width: none; }
.v-left-stack .v-floor-controls { flex: none; }
.v-camera-heading, .v-camera-controls button span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.v-camera-controls button { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--brand); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s, box-shadow .15s; }
.v-camera-controls button svg { flex: none; }
.v-camera-controls button[aria-pressed="true"] { background: var(--brand); color: var(--paper); }
.v-camera-modes { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 1px; border: 1px solid var(--sky); border-radius: 10px; background: var(--ice); }
.v-camera-zoom { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 6px 0; padding: 6px 0; border-top: 1px solid var(--steel); border-bottom: 1px solid var(--steel); }
.v-camera-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.v-camera-follow { margin-top: 2px; }
/* Short windows (720p): slightly shorter targets so the Cameras group fits without hidden scrolling. */
@media (max-height: 740px) {
  .v-camera-controls button { height: 32px; }
  .v-camera-zoom { margin: 4px 0; padding: 4px 0; }
}
/* The floating incident tracks its room while the connector stays out of pointer input. */
.v-incident-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.v-incident-connector { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-incident-connector path { fill: none; stroke: #D2402B; stroke-width: 1.5; }
.v-incident-connector circle { fill: #D2402B; stroke: #FFFFFF; stroke-width: 2; }
.v-incident-layer[data-tone="safe"] path { stroke: #3E7D57; }
.v-incident-layer[data-tone="safe"] circle { fill: #3E7D57; }
.v-incident-float { position: absolute; top: 144px; right: 16px; width: min(332px,calc(100% - 32px)); max-height: calc(100% - 160px); overflow: auto; pointer-events: auto; border: 1px solid var(--steel); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 36px -12px #17354A4D; }
.v-incident-float .v-incident-content { border-bottom: 0 !important; }
.v-incident-anchor-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--ice); border-bottom: 1px solid #D5E2EE; color: #51697D; font-size: 10px; }
.v-incident-anchor-bar button { padding: 4px 0 4px 8px; border: 0; background: transparent; font: 500 11px Geist,sans-serif; color: var(--brand); cursor: pointer; white-space: nowrap; }
.v-incident-anchor-bar button:hover { text-decoration: underline; }
.v-incident-anchor-bar > span { display: none; }
[data-anchor-state="located"] .v-anchor-located, [data-anchor-state="offscreen"] .v-anchor-offscreen, [data-anchor-state="other-floor"] .v-anchor-other-floor, [data-anchor-state="locating"] .v-anchor-locating { display: inline; }

/* Main-area navigation: three short cards at the top-left (Overview · Command center · History). */
.v-nav-cards { position: relative; z-index: 2; flex: none; align-self: flex-start; display: flex; gap: 8px; margin: 16px 16px 0; }
.v-nav-card { height: 44px; padding: 0 16px 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #B2C2D6; border-radius: 12px; background: #FFFFFF; color: #233552; font: 500 14px Geist, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 12px -10px rgba(20,40,70,.2); transition: background-color .15s, border-color .15s, color .15s; }
.v-nav-card svg { flex: none; color: var(--brand); }
.v-nav-card:hover { background: var(--ice); color: var(--brand); }
.v-nav-card[aria-current="page"], .v-nav-card[aria-current="page"]:hover { border-color: var(--brand); background: var(--ice); color: var(--brand); }
.v-campus-panel { flex: none; background: #FFFFFF; border: 1px solid #B2C2D6; border-radius: 14px; overflow: hidden; }
.v-view-summary { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.v-section-kicker { font-size: 10px; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; color: #51697D; }
.v-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-panel-heading h2 { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; }
.v-scope-badge { padding: 4px 8px; border-radius: 6px; background: #F0F8FF; color: #005B99; font-size: 10px; font-weight: 500; }
.v-view-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid #D5E2EE; }
.v-view-stats > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 0 12px; border-left: 1px solid #D5E2EE; }
.v-view-stats > div:first-child { padding-left: 0; border-left: 0; }
.v-view-stats dt { font-size: 10px; color: #51697D; }
.v-view-stats dd { margin: 0; font-size: 17px; line-height: 1.2; font-weight: 600; }
.v-system-panel { padding: 16px; border-top: 1px solid #D5E2EE; display: flex; flex-direction: column; gap: 12px; }
.v-connection-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 500; color: #8A5A0E; background: #F7EEDC; }
.v-connection-badge[data-connected="true"] { color: #2C5A3F; background: #E7F1E7; }
.v-connection-badge > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.v-system-note { margin: -4px 0 0; color: #8A7553; font-size: 11px; line-height: 1.4; }
.v-system-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.v-system-tile { min-width: 0; padding: 10px; background: #F0F8FF; border: 1px solid #D5E2EE; border-radius: 8px; display: flex; flex-direction: column; gap: 5px; }
.v-system-label { font-size: 10px; font-weight: 500; color: #51697D; }
.v-system-value { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.v-system-value > span { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #919789; }
.v-system-tile[data-tone="ok"] .v-system-value > span { background: #3E7D57; }
.v-system-tile[data-tone="warn"] .v-system-value { color: #8A5A0E; }
.v-system-tile[data-tone="error"] .v-system-value { color: #A33324; }
.v-system-tile[data-tone="warn"] .v-system-value > span, .v-system-tile[data-tone="error"] .v-system-value > span { background: currentColor; }
.v-system-detail { font-size: 10px; line-height: 1.45; color: #6B6B66; overflow-wrap: anywhere; }
.v-privacy-summary { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #D5E2EE; }
.v-privacy-summary > div { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 1.5; color: #6B6B66; }
.v-privacy-summary > div > span:last-child { text-align: right; }

/* scrollbars inside the light panels */
.v-scroll { scrollbar-width: thin; scrollbar-color: #CFCFCA transparent; }
.v-observation-back { flex: none; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid #D5E2EE; border-radius: 6px; background: #F0F8FF; color: #005B99; cursor: pointer; }
.v-observation-back:hover { border-color: #005B99; background: #E5F1FA; }

@keyframes v-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.v-pulse { animation: v-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .v-pulse { animation: none; } }

/* Login: split layout. Solid brand panel left, the 3D campus fills the rest; stacked under 900px. */
.v-login-panel { flex: none; width: clamp(380px, 39vw, 560px); display: flex; flex-direction: column; padding: 36px 44px 28px; background: #FFFFFF; border-right: 1px solid #B2C2D6; overflow: auto; }
@media (max-width: 899px) {
  .v-login-row { flex-direction: column; overflow: auto; }
  .v-login-panel { width: 100%; border-right: 0; border-bottom: 1px solid #B2C2D6; padding: 28px 24px 24px; overflow: visible; }
  .v-login-stage { flex: 1 0 45vh !important; min-height: 45vh; }
}

/* Header: system status pill + System details popover */
.g-sys-wrap { position: relative; }
.g-sound-pill { flex: none; height: 32px; padding: 0 10px; border: 1px solid #B2C2D6; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; gap: 6px; color: #51697D; font: 500 12px Geist, sans-serif; cursor: pointer; white-space: nowrap; }
.g-sound-pill:hover { border-color: #005B99; color: #005B99; }
.g-sound-pill[data-ready="true"] { background: #F0F8FF; color: #005B99; }
.g-pause-pill { flex: none; height: 32px; padding: 0 10px; border: 1px solid #B2C2D6; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; gap: 6px; color: #51697D; font: 500 12px Geist, sans-serif; cursor: pointer; white-space: nowrap; }
.g-pause-pill:hover { border-color: #005B99; color: #005B99; }
.g-pause-pill[data-paused="true"] { background: #FBF1DD; border-color: #E0B86A; color: #7A5208; font-variant-numeric: tabular-nums; }
.g-pause-pill[data-paused="true"]:hover { border-color: #7A5208; color: #5C3D05; }
.g-alert-sound { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #D5E2EE; }
.g-alert-sound > div { flex: 1; min-width: 0; }
.g-alert-sound strong { font-size: 12px; font-weight: 500; }
.g-alert-sound p { margin: 4px 0 0; color: #6B6B66; font-size: 12px; line-height: 1.45; }
.g-alert-sound button { flex: none; height: 32px; padding: 0 10px; border: 1px solid #B2C2D6; border-radius: 8px; background: #FFFFFF; color: #005B99; font: 500 12px Geist, sans-serif; cursor: pointer; }
.g-alert-sound button:hover:not(:disabled) { background: #F0F8FF; }
.g-alert-sound button:disabled { opacity: .5; cursor: default; }
.g-sys-pill { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #B2C2D6; background: #FFFFFF; display: flex; align-items: center; gap: 8px; font: 500 13px Geist, sans-serif; color: #1C1C1A; cursor: pointer; white-space: nowrap; }
.g-sys-pill:hover { border-color: #005B99; }
.g-sys-pill .g-caret { font-size: 10px; color: #6B6B66; }
.g-sys-pill .g-dot { width: 8px; height: 8px; border-radius: 50%; background: #919789; }
.g-sys-pill[data-tone="ok"] .g-dot { background: #18A967; box-shadow: 0 0 0 3px #E2F4EA; }
.g-sys-pill[data-tone="warn"] { border-color: #E2C48E; color: #8A5A0E; }
.g-sys-pill[data-tone="warn"] .g-dot { background: #C98A1E; box-shadow: 0 0 0 3px #F7EEDC; }
.g-popover-scrim { position: fixed; inset: 0; z-index: 7; }
.g-popover { position: absolute; top: 42px; right: 0; width: 400px; max-width: calc(100vw - 32px); padding: 16px; background: #FFFFFF; border: 1px solid #B2C2D6; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.25); z-index: 8; }
.g-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-pop-head h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.g-exp { margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: #F7EEDC; color: #8A5A0E; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.g-kicker { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #51697D; }
.g-popover .v-connection-badge { font-size: 12px; padding: 4px 9px; gap: 6px; }
.g-popover .v-system-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.g-popover .v-system-value { font-size: 14px; gap: 6px; }
.g-popover .v-system-detail { font-size: 12px; }
.g-popover .v-privacy-summary > div { font-size: 12px; }

/* Per-floor "Cameras" toggle (only while one floor is isolated) and its legend (hallway CCTV count), which
   sits to the right of the card, bottom-aligned with it: the negative margin cancels its height plus the gap. */
.v-camera-layers { display: flex; flex-direction: column; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--steel); }
@media (max-height: 740px) { .v-camera-layers { margin-top: 4px; padding-top: 4px; } }
.v-camera-legend { flex: none; height: 108px; margin: -118px 0 0 62px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; border: 1px solid var(--steel); border-radius: 8px; background: var(--paper); box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18); color: #51697D; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.v-camera-scope { display: flex; align-self: flex-start; gap: 2px; padding: 2px; border-radius: 6px; background: #F0F8FF; }
.v-camera-scope button { border: 0; border-radius: 4px; padding: 4px 8px; background: transparent; color: #51697D; font: 500 10px Geist, sans-serif; cursor: pointer; }
.v-camera-scope button[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; }
.v-camera-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.v-camera-legend i { flex: none; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.v-camera-legend i + i { margin-left: 6px; }
.v-camera-legend .v-camera-count { color: #1C1C1A; font-weight: 500; }
.v-camera-legend .is-live { background: var(--brand); border: 1.5px solid var(--brand); }
.v-camera-legend .is-demo { background: #A4C8E1; border: 2px solid var(--brand); }
.v-camera-legend .is-planned { background: #FFFFFF; border: 2px solid var(--brand); }
.v-camera-legend .is-offline { background: #FFFFFF; border: 2px solid #A16B09; }
.v-camera-legend .is-coverage { width: 16px; border-radius: 2px; background: #005B993D; border: 1px dashed var(--brand); }
.v-camera-pins { position: absolute; inset: 0; pointer-events: none; }
.v-camera-pin { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: auto; width: 18px; height: 18px; padding: 0; border: 2px solid var(--brand); border-radius: 50%; background: #A4C8E1; box-shadow: 0 0 0 2px #FFFFFF, 0 2px 8px #1C1C1A26; cursor: pointer; }
.v-camera-pin[hidden] { display: none; }
.v-camera-pin[data-state="live"] { background: var(--brand); color: #FFFFFF; }
.v-camera-pin[data-state="offline"] { border-color: #A16B09; color: #A16B09; }
.v-camera-pin:hover { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px #A4C8E180; }
.v-camera-pin:focus-visible { outline: 3px solid #A4C8E1; outline-offset: 3px; }
.v-demo-camera-badge { position: absolute; padding: 3px 8px; border-radius: 5px; background: #1C1C1AB8; color: #FFFFFF; font: 500 10px 'Geist Mono', monospace; }

/* Header account menu (avatar) — holds "Demo controls" so the status pill stands alone */
.g-acct-wrap { position: relative; }
.g-avatar-btn { width: 30px; height: 30px; border-radius: 50%; background: #F0F8FF; border: 1px solid #B2C2D6; display: flex; align-items: center; justify-content: center; font: 600 11px Geist, sans-serif; color: #1C1C1A; cursor: pointer; padding: 0; }
.g-avatar-btn:hover, .g-avatar-btn[aria-expanded="true"] { border-color: #005B99; color: #005B99; }
.g-acct-menu { position: absolute; top: 40px; right: 0; min-width: 220px; padding: 8px; background: #FFFFFF; border: 1px solid #B2C2D6; border-radius: 12px; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.25); z-index: 8; display: flex; flex-direction: column; gap: 4px; }
.g-acct-id { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; border-bottom: 1px solid #D5E2EE; margin-bottom: 2px; }
.g-acct-id strong { font-size: 13px; font-weight: 600; }
.g-acct-id span { font-size: 12px; color: #6B6B66; }
.g-acct-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font: 500 13px Geist, sans-serif; color: #1C1C1A; cursor: pointer; text-align: left; }
.g-acct-menu button:hover { background: #F0F8FF; color: #005B99; }
.g-kbd { font: 500 11px 'Geist Mono', monospace; color: #6B6B66; padding: 1px 6px; border: 1px solid #D5E2EE; border-radius: 5px; }
.g-acct-sep { height: 1px; margin: 2px 0; background: #D5E2EE; }
