:root {
  color-scheme: dark;
  --vc-bg: #0b1424;
  --vc-bg-raised: #101c2f;
  --vc-surface: #132139;
  --vc-surface-2: #182943;
  --vc-surface-3: #1c304d;
  --vc-canvas: #0a1525;
  --vc-ink: #f2f6fc;
  --vc-ink-soft: #d7e2f0;
  --vc-muted: #90a2bb;
  --vc-muted-2: #7488a4;
  --vc-line: #293b55;
  --vc-line-strong: #38516f;
  --vc-blue: #79a7ff;
  --vc-blue-deep: #2256a4;
  --vc-cyan: #4ed6c7;
  --vc-green: #60d5aa;
  --vc-amber: #efbd70;
  --vc-red: #ff8587;
  --vc-shadow: 0 16px 40px rgba(0, 0, 0, .23);
  --vc-radius: 13px;
  --vc-font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--vc-font);
  background: var(--vc-bg);
  color: var(--vc-ink);
}

:root[data-theme="light"] {
  color-scheme: light;
  --vc-bg: #f2f6fb;
  --vc-bg-raised: #f9fbfe;
  --vc-surface: #ffffff;
  --vc-surface-2: #f5f8fc;
  --vc-surface-3: #eaf1f9;
  --vc-canvas: #15253b;
  --vc-ink: #14223a;
  --vc-ink-soft: #293b56;
  --vc-muted: #617590;
  --vc-muted-2: #7b8ca4;
  --vc-line: #dce5f0;
  --vc-line-strong: #c8d6e7;
  --vc-blue: #2565c7;
  --vc-blue-deep: #1d4e98;
  --vc-cyan: #168f86;
  --vc-green: #138764;
  --vc-amber: #a96916;
  --vc-red: #c5424b;
  --vc-shadow: 0 14px 34px rgba(32, 64, 105, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--vc-bg); color: var(--vc-ink); font: 14px/1.45 var(--vc-font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--vc-cyan); outline-offset: 3px; }
::selection { color: #071526; background: #74dbd0; }

.vc-shell { min-height: 100vh; display: grid; grid-template-rows: 66px minmax(0, 1fr) 42px; background: var(--vc-bg); }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 10px; padding: 10px 14px; border-radius: 8px; background: var(--vc-ink); color: var(--vc-bg); font-weight: 700; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Brand bar */
.vc-topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(16px, 2.2vw, 34px); background: var(--vc-bg-raised); border-bottom: 1px solid var(--vc-line); }
.vc-brand { min-width: 0; display: inline-flex; align-items: center; gap: 13px; }
.vc-brand img { display: block; width: 105px; height: auto; }
.logo-light { display: none !important; }
.logo-dark { display: block !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
.brand-divider { width: 1px; height: 28px; background: var(--vc-line-strong); }
.brand-product { color: var(--vc-ink-soft); font-size: .83rem; font-weight: 720; white-space: nowrap; letter-spacing: -.015em; }
.brand-product span { color: var(--vc-muted); font-weight: 500; }
.vc-topnav { display: flex; align-items: center; gap: 18px; color: var(--vc-muted); font-size: .79rem; font-weight: 600; }
.vc-topnav a { transition: color .18s ease, border-color .18s ease, background .18s ease; }
.vc-topnav a:hover { color: var(--vc-ink); }
.vc-topnav .portal-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--vc-line-strong); border-radius: 7px; color: var(--vc-ink-soft); }
.vc-topnav .portal-link span { color: var(--vc-cyan); }
.vc-topnav .portal-link:hover { border-color: var(--vc-blue); background: var(--vc-surface); }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; padding: 0; border: 1px solid var(--vc-line); border-radius: 9px; background: transparent; color: var(--vc-muted); cursor: pointer; }
.icon-button:hover { color: var(--vc-ink); background: var(--vc-surface-2); border-color: var(--vc-line-strong); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-button .sun-icon { display: none; }
.theme-button .moon-icon { display: block; }
:root[data-theme="light"] .theme-button .sun-icon { display: block; }
:root[data-theme="light"] .theme-button .moon-icon { display: none; }

/* Main spatial cockpit */
.vc-workspace { min-height: 0; height: calc(100dvh - 108px); display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(310px, 352px); grid-template-rows: minmax(0, 1fr) auto; column-gap: 15px; row-gap: 11px; padding: 15px 18px 13px; }
.room-rail { min-height: 0; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px 10px; border: 1px solid var(--vc-line); border-radius: 12px; background: var(--vc-bg-raised); }
.rail-kicker { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 1px 0 15px; color: var(--vc-muted-2); font-size: .51rem; font-weight: 800; letter-spacing: .12em; }
.rail-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #3c669a; border-radius: 9px; background: linear-gradient(145deg, #1c426d, #173150); color: #a9ceff; font-size: .78rem; font-weight: 800; letter-spacing: 0; }
.rail-room-list { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail-room { position: relative; width: 52px; min-height: 55px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 5px 2px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--vc-muted); cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.rail-room:hover { color: var(--vc-ink); background: var(--vc-surface-2); }
.rail-room.active, .rail-room.is-active { border-color: rgba(92, 151, 232, .32); background: linear-gradient(140deg, rgba(43, 102, 177, .23), rgba(37, 95, 161, .12)); color: #a7ccff; }
.rail-room.active::before, .rail-room.is-active::before { position: absolute; left: -5px; top: 15px; bottom: 15px; width: 2px; border-radius: 3px; background: var(--vc-cyan); content: ''; }
.rail-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.rail-icon svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.rail-room-label { max-width: 50px; overflow: hidden; color: inherit; font-size: .54rem; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 10px; color: var(--vc-muted-2); font-size: .49rem; font-weight: 800; line-height: 1.25; letter-spacing: .09em; text-align: center; }
.rail-site-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-cyan); box-shadow: 0 0 10px rgba(78, 214, 199, .4); }

.scene-column { min-width: 0; min-height: 0; grid-column: 2; grid-row: 1; display: grid; grid-template-rows: auto auto auto minmax(280px, 1fr) auto; gap: 10px; }
.scene-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; }
.scene-heading-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; color: var(--vc-cyan); font-size: .57rem; font-weight: 780; line-height: 1.3; letter-spacing: .16em; }
.eyebrow-rule { width: 17px; height: 1px; background: currentColor; }
.scene-heading h1 { overflow: hidden; margin: 0; color: var(--vc-ink); font-size: clamp(1.12rem, 1.55vw, 1.43rem); font-weight: 710; line-height: 1.2; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.heading-subline { margin: 3px 0 0; color: var(--vc-muted); font-size: .68rem; }
.heading-subline span { margin-left: 8px; padding-left: 9px; border-left: 1px solid var(--vc-line-strong); color: var(--vc-ink-soft); font-weight: 620; }
.single-centre-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; padding: 6px 9px; border: 1px solid var(--vc-line); border-radius: 999px; background: var(--vc-bg-raised); color: var(--vc-muted); font-size: .61rem; font-weight: 680; white-space: nowrap; }
.single-centre-badge span { color: var(--vc-cyan); font-size: .8rem; }
.demo-banner { min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 6px 11px; border: 1px solid rgba(239, 189, 112, .32); border-radius: 8px; background: linear-gradient(100deg, rgba(98, 67, 30, .25), rgba(44, 43, 43, .15)); color: #f4d8a7; }
:root[data-theme="light"] .demo-banner { background: #fff8eb; color: #815b20; border-color: #ecd4aa; }
.demo-banner-mark { display: grid; place-items: center; flex: 0 0 auto; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; font-size: .67rem; font-weight: 800; }
.demo-banner strong { font-size: .61rem; font-weight: 820; letter-spacing: .1em; white-space: nowrap; }
.demo-banner-copy { color: inherit; font-size: .64rem; opacity: .86; }
.demo-local { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--vc-muted); font-size: .56rem; white-space: nowrap; }
.demo-local span { width: 5px; height: 5px; border-radius: 50%; background: var(--vc-amber); }

.scene-panel { min-height: 0; display: grid; grid-template-rows: 39px minmax(230px, 1fr) 37px; overflow: hidden; border: 1px solid var(--vc-line); border-radius: var(--vc-radius); background: var(--vc-bg-raised); box-shadow: var(--vc-shadow); }
.scene-panel-top { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 0 11px; border-bottom: 1px solid var(--vc-line); background: var(--vc-bg-raised); }
.scene-location { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--vc-ink-soft); font-size: .57rem; font-weight: 760; letter-spacing: .1em; white-space: nowrap; }
.location-pin { width: 16px; height: 16px; display: grid; place-items: center; color: var(--vc-cyan); }
.location-pin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scene-top-divider { width: 1px; height: 12px; margin: 0 2px; background: var(--vc-line-strong); }
.scene-scale { overflow: hidden; color: var(--vc-muted-2); font-size: .53rem; font-weight: 550; text-overflow: ellipsis; }
.scene-top-tools { flex: 0 0 auto; display: flex; gap: 5px; }
.small-tool { min-height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--vc-line); border-radius: 6px; background: var(--vc-surface); color: var(--vc-muted); font-size: .58rem; font-weight: 650; cursor: pointer; }
.small-tool:hover { border-color: var(--vc-line-strong); color: var(--vc-ink); }
.small-tool > span { color: var(--vc-amber); font-size: .8rem; }
.small-tool svg { width: 13px; height: 13px; fill: none; stroke: var(--vc-cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene-view { position: relative; min-width: 0; min-height: 230px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 51% 52%, #1b3554 0, #10213a 48%, #0b1729 100%); }
:root[data-theme="light"] .scene-view { background: radial-gradient(ellipse at 52% 45%, #294664 0, #1a304a 53%, #102039 100%); }
#worldCanvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
#worldCanvas canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-atmosphere { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.ambient-grid { position: absolute; inset: -30% -10% -42%; transform: perspective(540px) rotateX(57deg); transform-origin: 50% 54%; opacity: .2; background-image: linear-gradient(rgba(134, 177, 223, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(134, 177, 223, .25) 1px, transparent 1px); background-size: 37px 37px; mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%); }
.ambient-orb { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(55px); opacity: .11; }
.orb-one { left: 16%; top: 25%; background: #3186dc; }
.orb-two { right: 12%; top: 42%; background: #36b7ad; opacity: .08; }
.scene-overlay-top { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.scene-tag, .scene-coordinates { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid rgba(165, 194, 227, .16); border-radius: 5px; background: rgba(7, 17, 31, .5); color: #bbcee4; font-size: .49rem; font-weight: 740; letter-spacing: .12em; }
.scene-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--vc-cyan); box-shadow: 0 0 8px var(--vc-cyan); }
.scene-coordinates { color: #879cb8; }
.scene-coordinates b { color: var(--vc-amber); }
.scene-floor-labels { position: absolute; z-index: 3; bottom: 42px; left: 7%; right: 7%; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.scene-floor-labels span { padding: 3px 5px; border-radius: 4px; background: rgba(5, 15, 28, .58); color: rgba(195, 215, 238, .68); font-size: .47rem; font-weight: 720; letter-spacing: .13em; }
.scene-interaction-cue { position: absolute; z-index: 4; left: 50%; bottom: 11px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; transform: translateX(-50%); border: 1px solid rgba(154, 188, 222, .2); border-radius: 999px; background: rgba(7, 17, 31, .68); color: #b3c3d7; font-size: .55rem; white-space: nowrap; pointer-events: none; }
.scene-interaction-cue i { color: var(--vc-cyan); font-style: normal; }
.drag-cue { color: var(--vc-cyan); font-size: .8rem; line-height: 1; }
.scene-controls { position: absolute; z-index: 5; right: 12px; bottom: 11px; display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(146, 177, 208, .22); border-radius: 8px; background: rgba(7, 17, 31, .82); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.view-control, .square-control { display: inline-flex; justify-content: center; align-items: center; min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 5px; background: transparent; color: #c5d5e8; cursor: pointer; }
.view-control { gap: 5px; font-size: .58rem; font-weight: 650; }
.view-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.square-control { font-size: 1.15rem; line-height: 1; }
.square-control:hover, .view-control:hover { background: #1b3450; color: #fff; }
.square-control svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.control-divider { width: 1px; height: 17px; margin: 0 2px; background: rgba(146, 177, 208, .25); }
#sceneFallback:not([hidden]) { position: absolute; z-index: 8; inset: 17% 12%; display: grid; place-items: center; padding: 20px; border: 1px solid rgba(166, 193, 224, .28); border-radius: 12px; background: rgba(9, 21, 37, .91); color: #e2ecf8; text-align: center; }
.scene-legend-row { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 11px; border-top: 1px solid var(--vc-line); background: var(--vc-bg-raised); }
.state-legend { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 20px); color: var(--vc-muted); font-size: .57rem; }
.state-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot, .state-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.dot-ready { background: var(--vc-green); box-shadow: 0 0 8px rgba(96, 213, 170, .27); }
.dot-call { background: #6da9ff; box-shadow: 0 0 8px rgba(109, 169, 255, .27); }
.dot-aux { background: var(--vc-amber); }
.dot-offline { background: #78869a; }
.scene-clock { display: inline-flex; align-items: center; gap: 5px; color: var(--vc-muted-2); font-size: .53rem; font-weight: 600; white-space: nowrap; }
.clock-mark { color: var(--vc-cyan); font-size: .84rem; }
.scene-actions { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.action-button { min-height: 33px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--vc-line-strong); border-radius: 7px; background: var(--vc-bg-raised); color: var(--vc-ink-soft); font-size: .63rem; font-weight: 670; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.action-button:hover { transform: translateY(-1px); border-color: #5779a4; background: var(--vc-surface-2); }
.action-primary { border-color: rgba(69, 164, 149, .42); background: rgba(25, 98, 96, .2); color: #a4ede0; }
:root[data-theme="light"] .action-primary { background: #eaf8f5; color: #126f67; }
.action-primary:hover { border-color: var(--vc-cyan); background: rgba(25, 98, 96, .3); }
.pause-symbol { font-size: .82rem; line-height: 1; }
.privacy-symbol { display: grid; place-items: center; width: 13px; height: 13px; color: var(--vc-cyan); }
.privacy-symbol svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.action-button b { color: var(--vc-cyan); font-size: .57rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.plus-symbol { color: var(--vc-cyan); font-size: 1rem; line-height: .8; }
.tour-symbol { color: var(--vc-blue); font-size: .86rem; }
.action-build { margin-left: auto; }
.metrics-strip { min-width: 0; grid-column: 2 / 4; grid-row: 2; display: flex; align-items: center; gap: 0; padding: 8px 12px; border: 1px solid var(--vc-line); border-radius: 10px; background: var(--vc-bg-raised); box-shadow: 0 7px 21px rgba(0,0,0,.09); }
.metrics-caption { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding-right: 14px; color: var(--vc-muted-2); font-size: .51rem; font-weight: 800; letter-spacing: .12em; }
.metrics-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-amber); }
.metric-cell { min-width: 70px; display: flex; flex-direction: column; gap: 0; padding: 0 12px; border-left: 1px solid var(--vc-line); }
.metric-value { color: var(--vc-ink); font-size: 1.05rem; font-weight: 730; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.metric-label { margin-top: 3px; color: var(--vc-muted); font-size: .54rem; line-height: 1.1; white-space: nowrap; }
.metric-ready .metric-value { color: var(--vc-green); }
.metric-call .metric-value { color: #74adff; }
.metric-aux .metric-value { color: var(--vc-amber); }
.metrics-footnote { margin-left: auto; padding-left: 10px; color: var(--vc-muted-2); font-size: .52rem; white-space: nowrap; }

/* Detail and presence column */
.inspector-column { min-width: 0; min-height: 0; grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--vc-line-strong) transparent; }
.inspector-column::-webkit-scrollbar { width: 5px; }
.inspector-column::-webkit-scrollbar-thumb { border-radius: 10px; background: var(--vc-line-strong); }
.inspector-card, .selection-card, .connectors-card, .activity-card { min-width: 0; overflow: hidden; border: 1px solid var(--vc-line); border-radius: 11px; background: var(--vc-bg-raised); }
.inspector-card { flex: 0 0 auto; padding: 12px 12px 9px; }
.panel-heading, .connectors-header, .activity-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.panel-heading h2, .connectors-header h2, .activity-head h2 { margin: 2px 0 0; color: var(--vc-ink); font-size: .87rem; font-weight: 690; line-height: 1.2; letter-spacing: -.025em; }
.panel-kicker { margin: 0; color: var(--vc-muted-2); font-size: .5rem; font-weight: 780; letter-spacing: .14em; }
.demo-mini-badge { padding: 4px 6px; border: 1px solid rgba(239, 189, 112, .24); border-radius: 5px; background: rgba(239, 189, 112, .08); color: var(--vc-amber); font-size: .48rem; font-weight: 800; letter-spacing: .12em; }
.roster-tools { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 6px; margin-top: 12px; }
.filter-wrap, .search-wrap { position: relative; min-width: 0; height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--vc-line); border-radius: 6px; background: var(--vc-surface); color: var(--vc-muted); }
.filter-wrap > svg, .search-wrap > svg { flex: 0 0 auto; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.filter-wrap select { width: 100%; min-width: 0; appearance: none; padding: 0 13px 0 0; border: 0; outline: 0; background: transparent; color: var(--vc-ink-soft); font-size: .58rem; cursor: pointer; }
.filter-wrap select option { background: var(--vc-surface); color: var(--vc-ink); }
.select-chevron { position: absolute; right: 7px; top: 5px; color: var(--vc-muted-2); pointer-events: none; }
.search-wrap input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--vc-ink); font-size: .58rem; }
.search-wrap input::placeholder { color: var(--vc-muted-2); opacity: 1; }
.roster-label-row { display: flex; justify-content: space-between; margin: 10px 2px 4px; color: var(--vc-muted-2); font-size: .47rem; font-weight: 780; letter-spacing: .1em; }
.agent-list { display: grid; gap: 3px; }
.agent-row { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 6px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--vc-ink); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.agent-row:hover { background: var(--vc-surface-2); }
.agent-row.is-selected, .agent-row.selected { border-color: rgba(78, 214, 199, .19); background: rgba(47, 113, 132, .13); }
.agent-avatar { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--vc-line-strong); border-radius: 8px; background: var(--vc-surface-2); color: var(--vc-ink-soft); font-size: .56rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.agent-dot { flex: 0 0 auto; width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 9px currentColor; }
.agent-row-name { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; overflow: hidden; color: var(--vc-ink-soft); font-size: .62rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.agent-row-name small { overflow: hidden; color: var(--vc-muted-2); font-size: .51rem; font-weight: 450; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.agent-row > .agent-state { min-width: 0; color: var(--vc-ink-soft); font-size: .53rem; font-weight: 610; white-space: nowrap; }
.empty-roster { margin: 4px 2px; color: var(--vc-muted); font-size: .58rem; line-height: 1.45; }
.avatar-ready { border-color: rgba(96, 213, 170, .25); color: var(--vc-green); }
.avatar-call { border-color: rgba(109, 169, 255, .25); color: #79b0ff; }
.avatar-aux, .avatar-lunch { border-color: rgba(239, 189, 112, .24); color: var(--vc-amber); }
.state-ready { --status: #60d5aa; }
.state-call { --status: #74adff; }
.state-acw { --status: #c39aff; }
.state-break { --status: #efbd70; }
.state-lunch { --status: #ff9d71; }
.state-coaching { --status: #7ed9dc; }
.state-meeting { --status: #9bafff; }
.state-offline { --status: #78869a; }
.agent-dot.state-ready { background: var(--vc-green); }
.agent-dot.state-call { background: #74adff; }
.agent-dot.state-acw, .agent-dot.state-meeting { background: #c39aff; }
.agent-dot.state-break, .agent-dot.state-lunch { background: var(--vc-amber); }
.agent-dot.state-coaching { background: var(--vc-cyan); }
.agent-dot.state-offline { background: #78869a; }
.agent-ident { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; }
.agent-ident strong { overflow: hidden; color: var(--vc-ink-soft); font-size: .62rem; font-weight: 650; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.agent-ident small { overflow: hidden; color: var(--vc-muted-2); font-size: .51rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.agent-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-width: 48px; color: var(--vc-muted); }
.agent-state b { color: var(--vc-ink-soft); font-size: .53rem; font-weight: 630; white-space: nowrap; }
.state-dot { width: 5px; height: 5px; }
.roster-footnote { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--vc-line); color: var(--vc-muted-2); font-size: .52rem; line-height: 1.4; }
.roster-footnote svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; fill: none; stroke: var(--vc-cyan); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.selection-card { flex: 0 0 auto; padding: 10px 12px 0; }
.selection-heading { padding-bottom: 8px; }
.selection-crosshair { color: var(--vc-cyan); font-size: 1rem; }
.inspector-content { min-height: 64px; }
.selection-placeholder { display: flex; align-items: center; gap: 9px; padding: 8px 0 9px; }
.selection-seat-graphic { position: relative; flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; border: 1px dashed var(--vc-line-strong); border-radius: 10px; background: var(--vc-surface-2); color: var(--vc-muted); }
.selection-seat-graphic i { position: absolute; left: 6px; right: 6px; top: 7px; height: 8px; border: 1px solid var(--vc-line-strong); border-radius: 3px; background: var(--vc-surface-3); }
.selection-seat-graphic b { margin-top: 11px; font-size: .57rem; font-weight: 700; }
.selection-placeholder strong { display: block; color: var(--vc-ink-soft); font-size: .63rem; font-weight: 650; }
.selection-placeholder p { margin: 2px 0 0; color: var(--vc-muted); font-size: .54rem; line-height: 1.4; }
.selection-meta { display: flex; justify-content: space-between; gap: 7px; padding: 7px 0 8px; border-top: 1px solid var(--vc-line); color: var(--vc-muted-2); font-size: .46rem; font-weight: 760; letter-spacing: .1em; }
.selection-meta b { display: inline-flex; align-items: center; gap: 5px; color: var(--vc-amber); font-size: .47rem; font-weight: 750; letter-spacing: .05em; }
.feed-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--vc-amber); }
.detail-tag { display: inline-flex; align-items: center; margin: 1px 0 7px; padding: 4px 6px; border: 1px solid rgba(78,214,199,.2); border-radius: 5px; background: rgba(78,214,199,.06); color: var(--vc-cyan); font-size: .47rem; font-weight: 780; letter-spacing: .1em; }
.inspector-content h3 { margin: 0 0 5px; color: var(--vc-ink); font-size: .86rem; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.inspector-content p { color: var(--vc-muted); font-size: .56rem; line-height: 1.45; }
.agent-heading { display: flex; align-items: center; gap: 9px; margin: 1px 0 8px; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--status), transparent 55%); border-radius: 9px; background: color-mix(in srgb, var(--status), transparent 90%); color: var(--status); font-size: .61rem; font-weight: 760; }
.agent-heading h3 { margin: 0 0 2px; }
.agent-heading p { margin: 0; color: var(--vc-muted-2); font-size: .52rem; }
.status-pill { display: flex; align-items: center; gap: 6px; min-height: 28px; margin-bottom: 7px; padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--status), transparent 72%); border-radius: 6px; background: color-mix(in srgb, var(--status), transparent 93%); color: var(--status); font-size: .57rem; font-weight: 700; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--status); box-shadow: 0 0 8px var(--status); }
.status-pill span { margin-left: auto; color: var(--vc-muted); font-size: .5rem; font-variant-numeric: tabular-nums; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 8px 0; }
.detail-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 7px; border: 1px solid var(--vc-line); border-radius: 6px; background: var(--vc-surface); }
.detail-grid span { color: var(--vc-muted-2); font-size: .48rem; line-height: 1.2; }
.detail-grid b { overflow: hidden; color: var(--vc-ink-soft); font-size: .57rem; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.inspector-note { margin: 7px 0; color: var(--vc-muted); font-size: .55rem; line-height: 1.45; }
.integration-note { margin: 7px 0; padding: 7px 8px; border-left: 2px solid var(--vc-amber); border-radius: 0 5px 5px 0; background: rgba(239,189,112,.055); color: var(--vc-muted); font-size: .51rem; line-height: 1.45; }
.primary-btn, .secondary-btn { min-height: 30px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--vc-line-strong); border-radius: 6px; background: var(--vc-surface-2); color: var(--vc-ink-soft); font-size: .56rem; font-weight: 650; cursor: pointer; }
.primary-btn { border-color: #286b83; background: #1c566a; color: #e2fffb; }
.full-width { width: 100%; margin: 4px 0 8px; }

.connectors-card { flex: 0 0 auto; padding: 10px 12px 9px; }
.connector-overall { display: inline-flex; align-items: center; gap: 5px; color: var(--vc-muted); font-size: .52rem; font-weight: 610; white-space: nowrap; }
.connector-overall i { width: 5px; height: 5px; border-radius: 50%; background: #75869b; }
.connector-row { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--vc-line); }
.connectors-header + .connector-row { margin-top: 6px; }
.connector-type { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--vc-line); border-radius: 7px; background: var(--vc-surface-2); color: var(--vc-ink-soft); font-size: .8rem; font-weight: 800; }
.qcontact-type { border-color: var(--vc-line); color: var(--vc-muted); }
.qcontact-type svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.teams-type { color: #a8a5ff; }
.teams-type svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.connector-copy { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; }
.connector-copy strong { color: var(--vc-ink-soft); font-size: .62rem; font-weight: 670; line-height: 1.15; }
.connector-copy small { overflow: hidden; color: var(--vc-muted-2); font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.connector-status { flex: 0 0 auto; padding: 3px 5px; border: 1px solid var(--vc-line); border-radius: 5px; background: var(--vc-surface-2); color: var(--vc-muted); font-size: .47rem; font-weight: 650; white-space: nowrap; }
.connector-note { margin: 7px 0 0; color: var(--vc-muted-2); font-size: .5rem; line-height: 1.4; }

.activity-card { flex: 1 0 auto; min-height: 145px; padding: 10px 12px 8px; }
.activity-preview-tag { padding: 4px 5px; border: 1px solid rgba(78, 214, 199, .2); border-radius: 5px; background: rgba(78, 214, 199, .06); color: var(--vc-cyan); font-size: .46rem; font-weight: 800; letter-spacing: .1em; }
.activity-disclaimer { margin: 4px 0 3px; color: var(--vc-muted-2); font-size: .51rem; }
.activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
.activity-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--vc-line); }
.sample-feed-label { margin-top: 7px; color: var(--vc-muted-2); font-size: .45rem; font-weight: 790; letter-spacing: .11em; }
.activity-list li { min-width: 0; display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--vc-line); color: var(--vc-ink-soft); font-size: .54rem; line-height: 1.35; }
.activity-list li > span:last-child { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; }
.activity-list li > span:last-child small { color: var(--vc-muted-2); font-size: .47rem; }
.activity-list .activity-time { min-width: 34px; color: var(--vc-muted-2); font-size: .5rem; font-variant-numeric: tabular-nums; }
.activity-list .activity-empty { color: var(--vc-muted-2); font-size: .5rem; }
.activity-time { flex: 0 0 39px; display: flex; flex-direction: column; gap: 1px; }
.activity-time b { color: var(--vc-ink-soft); font-size: .58rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.activity-time small { color: var(--vc-amber); font-size: .43rem; font-weight: 800; letter-spacing: .09em; }
.activity-detail { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; }
.activity-detail strong { overflow: hidden; color: var(--vc-ink-soft); font-size: .59rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.activity-detail span { overflow: hidden; color: var(--vc-muted-2); font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-detail span i { color: var(--vc-cyan); font-style: normal; }
.activity-open { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--vc-line); border-radius: 6px; background: var(--vc-surface); color: var(--vc-muted); font-size: .72rem; cursor: pointer; }
.activity-open:hover { border-color: var(--vc-line-strong); color: var(--vc-cyan); }
.activity-footer { position: relative; width: 100%; display: flex; align-items: center; gap: 4px; padding: 8px 17px 2px 0; border: 0; background: transparent; color: var(--vc-muted); font-size: .49rem; text-align: left; cursor: pointer; }
.activity-footer b { color: var(--vc-ink-soft); font-weight: 610; }
.activity-footer > span:not(.footer-arrow) { color: var(--vc-cyan); }
.footer-arrow { position: absolute; right: 1px; color: var(--vc-cyan); font-size: .68rem; }

/* Footer */
.vc-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 0 clamp(16px, 2.2vw, 34px); border-top: 1px solid var(--vc-line); background: var(--vc-bg-raised); color: var(--vc-muted-2); font-size: .59rem; }
.footer-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; color: var(--vc-ink-soft); font-weight: 650; }
.footer-brand i { color: var(--vc-cyan); font-style: normal; }
.footer-brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-blue); }
.vc-footer p { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-footer p span { margin-left: 6px; color: var(--vc-muted-2); }
.vc-footer > a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: var(--vc-ink-soft); font-weight: 650; }
.vc-footer > a span { color: var(--vc-cyan); }
.vc-footer > a:hover { color: var(--vc-cyan); }

/* Accessible dialogs */
.vc-dialog { width: min(520px, calc(100vw - 30px)); max-width: 520px; max-height: min(86vh, 780px); overflow: auto; padding: 22px; border: 1px solid var(--vc-line-strong); border-radius: 14px; background: var(--vc-bg-raised); color: var(--vc-ink); box-shadow: 0 28px 90px rgba(0, 0, 0, .4); }
.vc-dialog::backdrop { background: rgba(2, 9, 18, .72); backdrop-filter: blur(4px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-kicker { color: var(--vc-cyan); font-size: .56rem; font-weight: 790; letter-spacing: .15em; }
.dialog-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--vc-line); border-radius: 8px; background: var(--vc-surface); color: var(--vc-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--vc-ink); border-color: var(--vc-line-strong); }
.vc-dialog h2 { margin: 8px 0 7px; color: var(--vc-ink); font-size: 1.32rem; line-height: 1.2; letter-spacing: -.045em; }
.dialog-intro { margin: 0 0 17px; color: var(--vc-muted); font-size: .74rem; line-height: 1.55; }
#buildForm { display: grid; gap: 13px; }
.form-field { min-width: 0; display: grid; gap: 6px; color: var(--vc-ink-soft); font-size: .67rem; font-weight: 650; }
.form-field input[type="text"], .form-field select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--vc-line-strong); border-radius: 7px; background: var(--vc-surface); color: var(--vc-ink); font-size: .72rem; }
.form-field small { color: var(--vc-muted-2); font-size: .57rem; font-weight: 450; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.layout-field { padding: 0; border: 0; }
.layout-field legend { padding: 0 0 7px; color: var(--vc-ink-soft); font-size: .67rem; font-weight: 650; }
.radio-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-option { position: relative; display: flex; align-items: center; gap: 9px; min-height: 55px; padding: 8px 10px; border: 1px solid var(--vc-line); border-radius: 8px; background: var(--vc-surface); cursor: pointer; }
.radio-option:has(input:checked) { border-color: var(--vc-cyan); background: rgba(41, 114, 119, .12); }
.radio-option input { accent-color: var(--vc-cyan); }
.radio-option span { display: flex; flex-direction: column; gap: 2px; }
.radio-option b { color: var(--vc-ink-soft); font-size: .66rem; }
.radio-option small { color: var(--vc-muted); font-size: .53rem; font-weight: 450; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; }
.dialog-cancel, .dialog-submit { min-height: 37px; padding: 8px 13px; border: 1px solid var(--vc-line-strong); border-radius: 7px; background: var(--vc-surface); color: var(--vc-ink-soft); font-size: .67rem; font-weight: 670; cursor: pointer; }
.dialog-cancel:hover { background: var(--vc-surface-2); }
.dialog-submit { border-color: #286b83; background: #1c566a; color: #e2fffb; }
:root[data-theme="light"] .dialog-submit { border-color: #137c7e; background: #157f83; color: #fff; }
.dialog-submit:hover { filter: brightness(1.12); }
.dialog-submit span { margin-left: 5px; color: var(--vc-cyan); }

.mapping-table-wrap { overflow: auto; border: 1px solid var(--vc-line); border-radius: 9px; }
.mapping-table { width: 100%; border-collapse: collapse; text-align: left; }
.mapping-table th { padding: 8px 10px; background: var(--vc-surface-2); color: var(--vc-muted); font-size: .54rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.mapping-table td { padding: 7px 10px; border-top: 1px solid var(--vc-line); color: var(--vc-ink-soft); font-size: .66rem; }
.mapping-table td:first-child { width: 78px; }
.mapping-table code { display: inline-block; min-width: 27px; padding: 2px 5px; border: 1px solid var(--vc-line); border-radius: 4px; background: var(--vc-surface-2); color: var(--vc-cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .64rem; text-align: center; }
.dialog-callout { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 10px; border: 1px solid rgba(239, 189, 112, .23); border-radius: 8px; background: rgba(239, 189, 112, .06); }
.dialog-callout > span { flex: 0 0 auto; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--vc-amber); border-radius: 50%; color: var(--vc-amber); font-size: .65rem; font-weight: 800; }
.dialog-callout p { margin: 0; color: var(--vc-muted); font-size: .64rem; line-height: 1.5; }
.dialog-callout strong { color: var(--vc-ink-soft); }
.security-section { margin-top: 14px; padding: 12px; border: 1px solid var(--vc-line); border-radius: 9px; background: var(--vc-surface); }
.security-section h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 8px; color: var(--vc-ink-soft); font-size: .73rem; font-weight: 680; }
.security-check, .gate-mark { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(78, 214, 199, .1); color: var(--vc-cyan); font-size: .7rem; }
.gate-mark { background: rgba(239, 189, 112, .1); color: var(--vc-amber); }
.security-section h3 > span:last-child:not(.gate-mark) { color: var(--vc-amber); font-size: .51rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.security-section ul { display: grid; gap: 6px; margin: 0; padding-left: 17px; color: var(--vc-muted); font-size: .65rem; line-height: 1.45; }
.security-section li::marker { color: var(--vc-cyan); }
.future-gates { border-color: rgba(239, 189, 112, .2); background: rgba(239, 189, 112, .035); }
.future-gates li::marker { color: var(--vc-amber); }
.security-note { margin: 11px 0 0; color: var(--vc-muted-2); font-size: .61rem; line-height: 1.5; }
.meeting-detail { min-height: 90px; }
.meeting-demo-note { display: flex; gap: 8px; margin: 12px 0; padding: 10px; border: 1px solid rgba(78, 214, 199, .2); border-radius: 8px; background: rgba(78, 214, 199, .055); color: var(--vc-muted); font-size: .66rem; line-height: 1.5; }
.meeting-demo-note span { color: var(--vc-cyan); font-size: .95rem; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 56px; max-width: min(440px, calc(100vw - 30px)); padding: 10px 14px; transform: translate(-50%, 12px); border: 1px solid var(--vc-line-strong); border-radius: 8px; background: var(--vc-bg-raised); color: var(--vc-ink); box-shadow: var(--vc-shadow); font-size: .68rem; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show, .toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }

@media (min-width: 1500px) {
  .vc-workspace { grid-template-columns: 64px minmax(0, 1fr) minmax(330px, 370px); column-gap: 17px; padding-right: 22px; padding-left: 22px; }
  .scene-column { gap: 11px; }
}

@media (max-width: 1120px) {
  .vc-workspace { grid-template-columns: 57px minmax(0, 1fr) minmax(284px, 315px); column-gap: 10px; padding-right: 11px; padding-left: 11px; }
  .scene-panel { grid-template-rows: 37px minmax(220px, 1fr) 35px; }
  .scene-top-tools { gap: 3px; }
  .small-tool { padding-right: 6px; padding-left: 6px; }
  .metrics-caption { padding-right: 7px; }
  .metric-cell { min-width: 58px; padding-right: 8px; padding-left: 8px; }
  .metrics-footnote { max-width: 74px; white-space: normal; }
  .walkthrough-action { display: none; }
}

@media (max-width: 900px) {
  .vc-shell { grid-template-rows: 62px auto auto; }
  .vc-workspace { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 11px; padding: 12px; }
  .room-rail { grid-column: 1; grid-row: auto; min-width: 0; width: 100%; flex-direction: row; justify-content: flex-start; gap: 11px; padding: 6px 9px; overflow-x: auto; scrollbar-width: thin; }
  .rail-kicker { flex: 0 0 auto; flex-direction: row; gap: 6px; margin: 0 4px 0 0; }
  .rail-mark { width: 25px; height: 25px; }
  .rail-room-list { width: auto; flex: 0 0 auto; flex-direction: row; gap: 3px; }
  .rail-room { width: auto; min-width: 66px; min-height: 43px; flex-direction: row; gap: 6px; padding: 6px 8px; }
  .rail-room.active::before, .rail-room.is-active::before { left: 10px; right: 10px; top: auto; bottom: -6px; width: auto; height: 2px; }
  .rail-room-label { max-width: none; font-size: .58rem; }
  .rail-foot { flex: 0 0 auto; flex-direction: row; margin: 0 0 0 auto; padding: 0 4px; }
  .scene-column { grid-column: 1; grid-row: auto; grid-template-rows: auto auto auto minmax(400px, 56vh) auto; gap: 10px; }
  .scene-panel { grid-template-rows: 40px minmax(400px, 56vh) 38px; }
  .inspector-column { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; overflow: visible; }
  .activity-card { min-height: 175px; }
  .metrics-strip { grid-column: 1; grid-row: auto; }
  .vc-footer { min-height: 42px; }
}

@media (max-width: 600px) {
  .vc-shell { grid-template-rows: 59px auto auto; }
  .vc-topbar { gap: 8px; padding: 0 12px; }
  .vc-brand { gap: 8px; }
  .vc-brand img { width: 78px; }
  .brand-divider { height: 24px; }
  .brand-product { font-size: .69rem; }
  .brand-product span { display: block; margin-top: 1px; font-size: .58rem; line-height: 1.1; }
  .vc-topnav { gap: 9px; font-size: .68rem; }
  .vc-topnav .portal-link { gap: 4px; padding: 7px 8px; }
  .icon-button { width: 32px; height: 32px; }
  .vc-workspace { gap: 9px; padding: 9px 9px 11px; }
  .room-rail { gap: 7px; padding: 5px 7px; }
  .rail-kicker { margin-right: 0; }
  .rail-kicker > span:last-child, .rail-foot { display: none; }
  .rail-room { min-width: 53px; flex-direction: column; gap: 2px; min-height: 47px; padding: 4px 4px; }
  .rail-icon { width: 17px; height: 17px; }
  .rail-icon svg { width: 16px; height: 16px; }
  .rail-room-label { font-size: .5rem; }
  .scene-column { grid-template-rows: auto auto auto minmax(400px, 60vh) auto; gap: 8px; }
  .scene-heading { min-height: 48px; align-items: flex-start; }
  .scene-heading h1 { font-size: 1.12rem; }
  .heading-subline { font-size: .6rem; }
  .heading-subline span { margin-left: 5px; padding-left: 6px; }
  .single-centre-badge { gap: 4px; padding: 5px 6px; font-size: .52rem; }
  .demo-banner { min-height: 38px; gap: 6px; padding: 6px 8px; }
  .demo-banner strong { font-size: .54rem; letter-spacing: .08em; }
  .demo-banner-copy { font-size: .55rem; }
  .demo-local { display: none; }
  .scene-panel { grid-template-rows: 37px minmax(400px, 60vh) 37px; border-radius: 10px; }
  .scene-panel-top { padding: 0 7px; }
  .scene-location { gap: 5px; font-size: .52rem; }
  .location-pin { width: 13px; height: 13px; }
  .location-pin svg { width: 13px; height: 13px; }
  .scene-scale { font-size: .47rem; }
  .small-tool { min-height: 24px; gap: 3px; padding: 3px 5px; font-size: .52rem; }
  .small-tool svg { width: 11px; height: 11px; }
  .scene-view { min-height: 400px; }
  .scene-overlay-top { top: 8px; left: 8px; right: 8px; }
  .scene-tag, .scene-coordinates { padding: 4px 5px; font-size: .43rem; }
.scene-floor-labels { left: 3%; right: 3%; bottom: 42px; gap: 4px; }
  .scene-floor-labels span { padding: 3px; font-size: .39rem; letter-spacing: .06em; }
  .scene-interaction-cue { bottom: 12px; left: 9px; transform: none; padding: 5px 7px; font-size: .49rem; }
  .scene-controls { right: 7px; bottom: 9px; gap: 1px; padding: 3px; }
  .view-control, .square-control { min-width: 25px; height: 27px; padding: 0 4px; }
  .view-control { gap: 3px; font-size: .53rem; }
  .view-control svg { width: 13px; height: 13px; }
  .square-control { font-size: 1rem; }
  .scene-legend-row { gap: 5px; padding: 0 7px; }
  .state-legend { gap: 8px; font-size: .5rem; }
  .state-legend span { gap: 4px; }
  .legend-dot { width: 5px; height: 5px; }
  .scene-clock { gap: 3px; font-size: .46rem; }
  .clock-mark { font-size: .72rem; }
  .scene-actions { gap: 5px; }
  .action-button { min-height: 32px; gap: 5px; padding: 5px 7px; font-size: .56rem; }
  .action-build { margin-left: 0; }
  .walkthrough-action { display: inline-flex; }
  .metrics-strip { width: 100%; gap: 0; padding: 9px 7px; overflow-x: auto; scrollbar-width: thin; }
  .metrics-caption { min-width: 76px; gap: 5px; padding-right: 7px; font-size: .46rem; }
  .metric-cell { min-width: 54px; padding: 0 7px; }
  .metric-value { font-size: .94rem; }
  .metric-label { font-size: .49rem; }
  .metrics-footnote { display: none; }
  .inspector-column { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vc-footer { min-height: 52px; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; padding: 7px 12px; font-size: .53rem; }
  .vc-footer p { order: 3; flex: 1 0 100%; }
  .vc-footer p span { margin-left: 3px; }
  .vc-dialog { padding: 18px; }
  .vc-dialog h2 { font-size: 1.17rem; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-option { min-height: 53px; padding: 7px; }
  .radio-option small { font-size: .49rem; }
}

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

/* Keep operational detail within reach while the accessible roster scrolls independently. */
.agent-list{max-height:190px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--vc-line-strong) transparent}
.agent-row-name{font-size:.72rem}.agent-row-name small{font-size:.6rem}.agent-row>.agent-state{font-size:.61rem}
.inspector-content p{font-size:.68rem}.detail-grid b{font-size:.68rem}.detail-grid span{font-size:.57rem}
.inspector-note,.integration-note{font-size:.64rem}.scene-floor-labels{display:none}
@media(max-width:760px){.agent-list{max-height:250px}.agent-row{min-height:44px}.small-tool{min-height:34px}.icon-button{width:40px;height:40px}.vc-topnav{gap:8px}.scene-interaction-cue{font-size:.58rem}.scene-interaction-cue>span:last-child{font-size:0}.scene-interaction-cue>span:last-child::after{content:'Swipe to scroll · two fingers to orbit';font-size:.58rem}}

/* An imported design is separate from the simulated operating-state layer. */
.design-source{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:12px 14px;border:1px solid var(--vc-line);border-radius:12px;background:var(--vc-surface)}
.design-source>div{min-width:0}.design-source p{margin:5px 0 0;font-size:.71rem;line-height:1.6;color:var(--vc-muted)}
.design-source>.action-button{flex-shrink:0;min-height:38px;color:var(--vc-cyan);border-color:var(--vc-line-strong)}
.design-source.is-imported{border-color:var(--vc-cyan)}.design-source #designImportMessage{color:var(--vc-amber)}
.source-detail{font-size:.64rem;line-height:1.6;color:var(--vc-muted);overflow-wrap:anywhere}
#checkLiveAccess{margin-top:8px;font-size:.68rem;min-height:38px}#liveAccessStatus{font-size:.68rem;line-height:1.7}
@media(max-width:760px){.design-source{align-items:flex-start;flex-direction:column;gap:8px}.design-source>.action-button{align-self:stretch;min-height:42px}.design-source p{font-size:.74rem}}

.scene-panel[data-source="design"] .scene-floor-labels{display:none}
.agent-heading p{overflow-wrap:anywhere}.agent-heading>div{min-width:0}.scene-scale{white-space:normal}
