/* SALPION monitoring shell: one layout, shared by operating and recorded views.
   Original styling; reference assets are not bundled. */
[data-minimal-vms=true]{--vms-nav:196px;--vms-tree:280px;--vms-detail:340px;--vms-bg:#1b1d20;--vms-panel:#24282e;--vms-line:#34383e}
[data-minimal-vms=true] body{background:var(--vms-bg)}
/* Text-only sidebar (icons removed 2026-11-12): wide shows full names, compact the short ones. */
#vms-nav{grid-column:1;grid-row:1;position:sticky;top:0;height:100dvh;width:var(--vms-nav);display:flex;flex-direction:column;gap:2px;padding:12px 8px;background:#171a1f;border-right:1px solid var(--vms-line);z-index:40;transition:width .18s ease;overflow:visible}
@media(prefers-reduced-motion:reduce){#vms-nav{transition:none}}
#vms-nav button,#vms-nav .vms-brand{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:#a6b0bf;text-decoration:none;text-align:left;font-size:13px}
.vms-brand{margin-bottom:14px;min-height:46px}
#vms-nav .vms-mark{flex:none;display:grid;place-items:center;height:30px;width:30px;border-radius:50%;background:#344c6b;color:white;font-size:16px;font-weight:700}
.vms-brand-name{display:flex;flex-direction:column;min-width:0;gap:1px}
.vms-brand-name strong{font-size:14px;color:#ecf2fa;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vms-brand-name small{font-size:11px;color:#8fa0b6;white-space:nowrap}
.vms-nav-pages{display:flex;flex-direction:column;gap:2px;flex:1;min-height:0}
.vms-nav-label{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vms-nav-count{flex:none;min-width:21px;padding:2px 6px;border-radius:10px;background:#8a3d46;color:#ffe3e7;font-size:11px;font-weight:700;text-align:center}
.vms-nav-count[hidden]{display:none}
#vms-nav button:hover{background:#263347;color:#cfe2ff}
/* The open page must be unmistakable at a glance. */
#vms-nav button[aria-current=page]{background:#2c405e;color:#eef5ff;font-weight:700;box-shadow:inset 3px 0 #8cbcff}
#vms-nav [data-vms-nav-collapse]{margin-top:auto;flex:none;color:#8fa0b6}
#vms-nav-backdrop{display:none}
[data-vms-nav-open]{display:none}
/* The menu owns a real grid track. Media stays mounted as available width changes. */
[data-minimal-vms=true] #app{display:grid;grid-template-columns:var(--vms-nav) 0px minmax(0,1fr);align-items:start;padding:0;min-height:100dvh;transition:grid-template-columns .18s ease}
[data-minimal-vms=true].vms-menu-open #app{grid-template-columns:var(--vms-nav) 230px minmax(0,1fr)}
[data-minimal-vms=true] #app>main{grid-column:3;grid-row:1;min-width:0;margin:0;padding:0}
@media(prefers-reduced-motion:reduce){[data-minimal-vms=true] #app{transition:none}}
[data-minimal-vms=true] .workspace-header{height:44px;min-height:44px;padding:0 16px;background:var(--vms-bg);border:0}
[data-minimal-vms=true] .workspace-brand{font-size:16px;letter-spacing:.06em}
[data-minimal-vms=true] .workspace-brand .mark,[data-minimal-vms=true] .workspace-modes,[data-minimal-vms=true] #console-links{display:none!important}
[data-minimal-vms=true] .facility-picker{background:none;border:0}
[data-minimal-vms=true] [data-workspace=control] #content{height:calc(100dvh - 44px);padding:0;overflow:hidden;min-height:0}
[data-minimal-vms=true] [data-workspace=control] .control-room{display:grid!important;grid-template-columns:var(--vms-tree) minmax(0,1fr)!important;gap:0;height:100%!important;max-height:none;min-height:0;overflow:hidden;background:var(--vms-bg);position:relative}
[data-minimal-vms=true] [data-workspace=control] .control-room.vms-detail-open{grid-template-columns:var(--vms-tree) minmax(0,1fr) var(--vms-detail)!important}
[data-minimal-vms=true] [data-workspace=control] .control-room.tree-collapsed{grid-template-columns:minmax(0,1fr)!important}
[data-minimal-vms=true] [data-workspace=control] .control-room.tree-collapsed.vms-detail-open{grid-template-columns:minmax(0,1fr) var(--vms-detail)!important}
[data-minimal-vms=true] .control-room:not(.vms-detail-open) #incident-rail{display:none!important}
[data-minimal-vms=true] [data-workspace=control] .control-room.vms-detail-open #incident-rail{display:flex!important;flex-direction:column;height:100%!important;max-height:100%;min-height:0;min-width:0;width:auto;grid-column:auto;border-left:1px solid var(--vms-line);border-radius:0;overflow:hidden}
/* Boundary controls sit outside video tiles; resizing never rebuilds media. */
.vms-splitter{position:absolute;top:0;bottom:0;width:8px;transform:translateX(-50%);z-index:24;cursor:col-resize;touch-action:none;outline:none}
.vms-splitter[data-vms-splitter=detail]{transform:translateX(50%)}
.vms-splitter::before{content:"";position:absolute;inset:0 3px;background:#48576c66;transition:background .12s}
.vms-splitter:hover::before,.vms-splitter:focus-visible::before{background:#8cbcff}
.vms-splitter[hidden]{display:none!important}
.vms-splitter>button{position:absolute;top:48px;left:-5px;width:18px;height:32px;padding:0;border:1px solid #53627a;border-radius:4px;color:#e0edff;background:#293444;font-size:18px;cursor:pointer}
.vms-splitter>button:hover{background:#395a80}
.vms-panel-dragging,.vms-panel-dragging *{cursor:col-resize!important;user-select:none!important}
.vms-panel-dragging .vms-splitter:focus::before{background:#8cbcff;box-shadow:0 0 0 1px #8cbcff}
.vms-panel-dragging :is(.wall-slot,iframe){pointer-events:none!important}
.vms-navigation-folded #camera-tree,.vms-detail-folded #incident-rail{visibility:hidden}

/* One navigation component: current view, two exclusive lists, no duplicate columns. */
[data-minimal-vms=true] [data-workspace=control] .camera-tree{display:flex;flex-direction:column;gap:0;height:100%;max-height:100%;min-height:0;padding:12px;border:0;border-right:1px solid var(--vms-line);border-radius:0;background:var(--vms-panel);overflow:hidden}
[data-minimal-vms=true] .vms-views{display:flex;flex-direction:column;gap:6px;flex:none;padding:0 0 14px;min-width:0}
.vms-views label{font-size:12px;color:#b4c0cf}
.vms-views select{width:100%;min-width:0;min-height:40px;padding:8px;font-size:14px;font-weight:600;border:1px solid #465364;border-radius:5px;background:#1b222c;color:#f0f4fa}
.vms-views a{font-size:12px;color:#b1cfff}
.vms-navigation-tabs{display:flex;flex:none;gap:4px;margin:0 0 12px;border-bottom:1px solid #45505e}
.vms-navigation-tabs button{flex:1;min-width:0;min-height:42px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#b9c6d6;font-size:14px;white-space:nowrap}
.vms-navigation-tabs button[aria-selected=true]{color:#fff;border-color:#8cbcff;font-weight:700;background:#2d3949}
.vms-navigation-tabs span{font-size:12px;margin-left:3px;color:#bfd5f0}
.vms-inventory{display:flex;flex-direction:column;gap:10px;min-height:0;flex:1;overflow:hidden}
[data-minimal-vms=true] .camera-tree [role=tabpanel][hidden]{display:none!important}
[data-minimal-vms=true] .tree-search{padding:6px 0;margin:0}
[data-minimal-vms=true] .tree-search input{width:100%;height:36px;border:1px solid #465364;background:#191e25;border-radius:4px;font-size:13px}
[data-minimal-vms=true] .tree-scroll{flex:1;min-height:0;overflow:auto}
[data-minimal-vms=true] .tree-site{font-size:12px;padding:7px 0;color:#c0cad9}
[data-minimal-vms=true] .tree-area>summary{font-size:13px;padding:10px 0;color:#c5cfdd}
[data-minimal-vms=true] .tree-camera-row{min-width:0}
[data-minimal-vms=true] .tree-camera{min-height:54px;padding:7px 6px;border:0!important;border-radius:4px;gap:8px;min-width:0;overflow:hidden}
[data-minimal-vms=true] .tree-camera>.tree-camera-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;line-height:1.5}
[data-minimal-vms=true] .tree-camera small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:400;color:#b4c0cf;opacity:1}
.tree-camera [data-source-kind]::before{content:attr(data-source-kind) " · ";color:#c8d9ef}
[data-minimal-vms=true] .tree-camera.selected{background:#344254!important;box-shadow:inset 2px 0 #8db5eb}
[data-minimal-vms=true] .tree-favorite{padding:3px;font-size:13px;min-width:24px}
[data-minimal-vms=true] .tree-add{font-size:12px;padding:8px;margin:0}
.vms-camera-options,.vms-event-options{font-size:12px;color:#c2cddd;flex:none}
.vms-camera-options summary,.vms-event-options summary{cursor:pointer;padding:7px 0;min-height:30px}
.vms-camera-options select{width:100%}
.vms-events{flex:1;min-height:0;overflow:auto;padding:0 0 8px}
.vms-events p{font-size:12px;color:#bac6d6;line-height:1.6;margin:12px 0}
.vms-events>button{font-size:12px;margin-top:12px;width:100%;min-height:36px}
[data-minimal-vms=true] [data-workspace=control] .camera-tree[hidden],[data-minimal-vms=true] [data-workspace=control] .tree-collapsed .camera-tree{display:none!important}
/* One toolbar; expanded tools take their own row instead of covering video. */
[data-minimal-vms=true] [data-workspace=control] .video-wall{display:flex;flex-direction:column;gap:10px;padding:8px 12px 12px;border:0;border-radius:0;background:none;height:100%!important;max-height:100%;min-height:0;min-width:0;overflow:auto!important}
[data-minimal-vms=true] [data-workspace=control] .wall-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0;min-height:36px;flex:none;position:relative;background:none;border:0;z-index:20}
[data-minimal-vms=true] .wall-toolbar button{min-height:32px;padding:6px 9px;border:0;border-radius:4px;background:#282e37;color:#c6d0df;font-size:12px}
[data-minimal-vms=true] .wall-toolbar button[aria-pressed=true]{background:#385b88;color:#f1f6ff}
[data-minimal-vms=true] .wall-toolbar>.density-controls{display:flex;align-items:center;gap:6px;margin:0 0 0 auto;padding:0;border:0;background:none;flex-wrap:nowrap;min-width:0}
[data-minimal-vms=true] .wall-toolbar #operator-layout{width:150px;min-width:0;height:32px;font-size:12px;background:#242b34}
[data-minimal-vms=true] .wall-toolbar>small,.density-divider{display:none}
.vms-tools-popover{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:10px;flex:0 0 100%;max-height:30vh;overflow:auto;padding:12px;background:#262b32;border:0;border-radius:5px}
.vms-tools-popover[hidden]{display:none!important}
.vms-tools-popover .wall-tools{display:flex;flex-wrap:wrap;margin:0}
.vms-tools-popover .legacy-layouts{width:100%}
.vms-extra-layouts{display:flex;gap:5px;flex-wrap:wrap}
[data-minimal-vms=true] .wall-controls{display:none}
[data-minimal-vms=true] .combined-summary{font-size:12px;color:#a4b1c2;padding:0;display:flex;gap:16px;justify-content:space-between}
[data-minimal-vms=true] .combined-control{border:0;border-radius:0;--vms-overhead:190px}
/* Tiles share one geometry policy. Manual layouts keep their stored slots. */
[data-minimal-vms=true] .wall-grid{gap:10px;min-height:0;flex:1;padding:0;background:none}
[data-minimal-vms=true] .wall-slot{border:0!important;border-radius:6px;background:#11151a;overflow:hidden;min-width:0;min-height:0!important;position:relative}
[data-minimal-vms=true] [data-workspace=control] .wall-slot>.slot-heading{display:flex;align-items:center;justify-content:space-between;height:32px!important;min-height:32px;padding:5px 10px;background:#282e37;color:#e4ebf5;font-size:15px;text-align:left;width:100%;max-width:none;left:0;right:auto;top:0;opacity:1;position:relative;z-index:6;flex:none}
[data-minimal-vms=true] .camera-card.camera-selected::after{display:none}
[data-minimal-vms=true] .wall-slot:has(.camera-selected)>.slot-heading::after{content:"선택";font-size:11px;color:#c1daff;background:#34475e;padding:2px 5px;border-radius:3px;margin-right:24px;flex:none}
[data-minimal-vms=true] .slot-heading small:empty{display:none}
[data-minimal-vms=true] .slot-heading span{display:block!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-right:25px}
[data-minimal-vms=true] .wall-slot:focus-within{outline:1px solid #82b2f4;outline-offset:-1px}
[data-minimal-vms=true] .wall-slot:has(.empty-wall-slot)>.slot-heading{display:none!important}
[data-minimal-vms=true] .wall-slot>.camera-card{flex:1;min-height:0;border:0;border-radius:0}
[data-minimal-vms=true] .wall-slot .media-header{display:flex;top:4px;right:6px;left:auto;background:none;padding:0;z-index:8}
[data-minimal-vms=true] .wall-slot .media-header [data-camera-drag]{display:block;width:24px;height:24px;font-size:0;background:#1e2633dd;border-radius:4px;text-align:center;max-width:none}
[data-minimal-vms=true] .wall-slot .media-header [data-camera-drag]::before{content:'⠿';font-size:17px}
[data-minimal-vms=true] .media-header .control-source-kind{display:none}
[data-minimal-vms=true] .media-controls,[data-minimal-vms=true] .control-tile-tools{opacity:0}
[data-minimal-vms=true] .wall-slot:hover .media-controls,[data-minimal-vms=true] .wall-slot:focus-within .media-controls,[data-minimal-vms=true] .wall-slot:hover .control-tile-tools,[data-minimal-vms=true] .wall-slot:focus-within .control-tile-tools{opacity:1}
/* Evidence and normalized geometry share the full, uncropped frame. */
[data-workspace=control] #content[data-fit=cover] :is(.has-incident .media-surface,.media-surface:has(.configured-geometry)) :is(video,img){object-fit:contain}
/* Keep titles outside the picture so that even edge-of-frame evidence remains visible. */
[data-minimal-vms=true] .control-room:not(.vms-auto-fit) :is(.wall-9,.wall-16){gap:4px}
[data-minimal-vms=true] [data-workspace=control] .control-room:not(.vms-auto-fit) :is(.wall-9,.wall-16) .wall-slot>.slot-heading{
  height:24px!important;min-height:24px;padding:2px 6px;font-size:13px;line-height:20px;white-space:nowrap;overflow:hidden
}
[data-minimal-vms=true] .control-room:not(.vms-auto-fit) :is(.wall-9,.wall-16) .vms-source-label{height:16px;padding:1px 6px}
/* On narrow dense tiles the controls must not stack over the entire picture. */
[data-minimal-vms=true] :is(.wall-9,.wall-16,.wall-25,.wall-36,.wall-64) .control-tile-tools{
  flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain
}
[data-minimal-vms=true] :is(.wall-9,.wall-16,.wall-25,.wall-36,.wall-64) .control-tile-tools button{flex:none;white-space:nowrap}
[data-minimal-vms=true] .density-tile-state{font-size:11px;bottom:6px}
.vms-source-label{display:block;height:22px;flex:none;line-height:14px;font-size:11px;padding:4px 8px;color:#b0bfd2;background:#222831}
[data-minimal-vms=true] .wall-pagination{font-size:12px;min-height:22px;flex:none}
[data-minimal-vms=true] .vms-auto-fit .wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto;grid-template-rows:none!important;align-items:start;align-content:start;flex:0 0 auto;width:100%;align-self:center;max-width:calc(((100dvh - var(--vms-overhead,150px)) / var(--vms-rows) - var(--vms-meta)) * 1.777778 * var(--vms-cols) + (var(--vms-cols) - 1) * 10px)}
[data-minimal-vms=true] .vms-auto-fit[data-visible-cameras="1"] .wall-grid{grid-template-columns:minmax(0,1fr)!important}
[data-minimal-vms=true] .vms-auto-fit:is([data-visible-cameras="5"],[data-visible-cameras="6"],[data-visible-cameras="7"],[data-visible-cameras="8"],[data-visible-cameras="9"]) .wall-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
[data-minimal-vms=true] .vms-auto-fit:is([data-visible-cameras="10"],[data-visible-cameras="11"],[data-visible-cameras="12"],[data-visible-cameras="13"],[data-visible-cameras="14"],[data-visible-cameras="15"],[data-visible-cameras="16"]) .wall-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
[data-minimal-vms=true] .vms-auto-fit .wall-slot{height:auto;grid-area:auto}
/* Filler = a tile's own height (heading/label overhead + 16:9 video), so a short last page keeps the grid. */
[data-minimal-vms=true] .wall-slot-filler{pointer-events:none}
[data-minimal-vms=true] .wall-slot-filler::before{content:"";display:block;height:var(--vms-meta,32px)}
[data-minimal-vms=true] .wall-slot-filler::after{content:"";display:block;aspect-ratio:16/9}
[data-minimal-vms=true] .vms-auto-fit .wall-slot .media-surface{aspect-ratio:16/9!important;height:auto!important;flex:none;min-height:0}
[data-minimal-vms=true] .vms-auto-fit .media-surface :is(video,img){object-fit:contain}
[data-minimal-vms=true] .vms-auto-fit[data-visible-cameras="1"] .wall-grid{max-width:calc((100dvh - 155px)*16/9);width:100%;align-self:center}
[data-minimal-vms=true] .vms-empty-wall{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;color:#aebbd0}
.vms-empty-wall>span{font-size:40px;color:#63748d}.vms-empty-wall h2{font-size:20px;font-weight:500}.vms-empty-wall p{font-size:14px;line-height:1.8}
/* Recorded-road uses the same tile; evidence controls appear on demand. */
[data-minimal-vms=true] .road-channel-name{display:none}
[data-minimal-vms=true] .road-replay{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;padding-bottom:0;overflow:hidden}
[data-minimal-vms=true] .road-media{flex:1;min-height:0!important;aspect-ratio:auto!important}
[data-minimal-vms=true] .road-media-label{top:8px;left:8px;font-size:11px;max-width:calc(100% - 40px)}
[data-minimal-vms=true] .road-media-label b,[data-minimal-vms=true] .road-media-label span{padding:3px 5px}
[data-minimal-vms=true] .road-media-label span{font-size:11px}
[data-minimal-vms=true] .road-observation{position:absolute;top:8px;right:8px;bottom:auto;left:auto;max-width:45%;height:auto;min-height:0;padding:3px 6px;border-radius:4px;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#19212be8;color:#d8e4f2;z-index:7}
[data-minimal-vms=true] .road-player-controls{position:relative;flex:none;height:28px;min-height:28px;flex-wrap:nowrap;z-index:8;padding:2px 8px;background:#131c28ef}
[data-minimal-vms=true] .road-player-controls button{height:24px;min-height:24px;padding:2px 6px;font-size:12px}
[data-minimal-vms=true] .road-extra-tools,[data-minimal-vms=true] .road-source{position:absolute;bottom:65px;z-index:9;font-size:12px;background:#192331f5;padding:7px 9px;color:#c6d3e3}
[data-minimal-vms=true] .road-extra-tools{left:0}[data-minimal-vms=true] .road-source{right:0;max-width:65%;max-height:70%;overflow:auto}
[data-minimal-vms=true] .road-quick-evidence{position:absolute;top:38px;right:8px;z-index:9;font-size:12px;padding:6px 8px;background:#22384f;color:#dbebff;border:1px solid #66809f;border-radius:4px}
[data-minimal-vms=true] .road-replay:not(:hover):not(:focus-within) :is(.road-player-controls,.road-extra-tools,.road-source,.road-quick-evidence){opacity:0;pointer-events:none}
[data-minimal-vms=true][data-road-replay=true] .density-tile-state{top:38px;bottom:auto;left:8px}
[data-minimal-vms=true][data-road-replay=true] .density-tile-state>[data-part=source]{display:none}
[data-minimal-vms=true] .vms-auto-fit .road-replay{height:auto;flex:none}
/* Embedded routes keep separate sessions and use the parent's header. */
[data-minimal-vms=true] #road-replay-frame,[data-minimal-vms=true] #public-sample-frame{width:100%;height:100%;border:0;display:block}
[data-minimal-vms=true] .vms-embed-shell{position:relative;width:100%;height:calc(100dvh - 76px);min-height:480px;background:#101723;overflow:hidden}
[data-minimal-vms=true] .vms-embed-shell:not([data-vms-ready="true"]) iframe{visibility:hidden}
[data-minimal-vms=true] .vms-embed-status{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;text-align:center;color:#eef4fd;background:#101723}
[data-minimal-vms=true] .vms-embed-status[hidden]{display:none!important}
[data-minimal-vms=true] .vms-embed-status strong{font-size:18px}
[data-minimal-vms=true] .vms-embed-status p{max-width:34rem;line-height:1.6;color:#acbbce}
[data-minimal-vms=true] .vms-embed-status button{font-size:14px;padding:10px 18px;cursor:pointer}
[data-minimal-vms=true] .vms-embed-spinner{width:60px;height:60px;border-radius:50%;border:3px solid #30435c;border-top-color:#4ca8ff;border-right-color:#63d4dc;display:grid;place-items:center;animation:salpion-connect-spin 1.25s linear infinite;box-shadow:0 0 28px #3d9fec22}
[data-minimal-vms=true] .vms-embed-spinner-core{display:block;width:16px;height:16px;border-radius:50%;background:#7cccef;box-shadow:0 0 14px #7cccef70;animation:salpion-connect-pulse 1.5s ease-in-out infinite}
[data-minimal-vms=true] .vms-embed-dots{display:inline-flex;align-items:center;gap:4px;margin-left:6px;vertical-align:middle}
[data-minimal-vms=true] .vms-embed-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:salpion-connect-dot 1.2s ease-in-out infinite}
[data-minimal-vms=true] .vms-embed-dots i:nth-child(2){animation-delay:.2s}
[data-minimal-vms=true] .vms-embed-dots i:nth-child(3){animation-delay:.4s}
[data-minimal-vms=true] .vms-embed-shell[data-vms-ready="error"] :is(.vms-embed-spinner,.vms-embed-dots){display:none}
@keyframes salpion-connect-spin{to{transform:rotate(360deg)}}
@keyframes salpion-connect-pulse{50%{opacity:.38;transform:scale(.68)}}
@keyframes salpion-connect-dot{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){[data-minimal-vms=true] :is(.vms-embed-spinner,.vms-embed-spinner-core,.vms-embed-dots i){animation:none!important}}
[data-vms-embedded=true] #vms-nav,[data-vms-embedded=true] .sidebar,[data-vms-embedded=true] .workspace-header,[data-vms-embedded=true] #demo-banner{display:none!important}
[data-vms-embedded=true] #app{display:block;padding:0!important}
[data-vms-embedded=true] [data-workspace=control] #content{height:100dvh!important}
/* Shared push navigation: no backdrop, overlay, fixed positioning or content translation. */
[data-minimal-vms=true] [data-workspace] #content{margin-left:0;max-width:none}
[data-minimal-vms=true] [data-workspace=operations] #content{padding:24px 28px;min-height:calc(100dvh - 44px)}
[data-minimal-vms=true] .sidebar{grid-column:2;grid-row:1;display:flex;position:sticky;inset:auto;top:0;width:auto;min-width:0;height:100dvh;padding:0;background:var(--vms-panel);border:0;color:var(--ink);z-index:auto;overflow:hidden;visibility:hidden;transition:visibility 0s .18s}
[data-minimal-vms=true].vms-menu-open .sidebar{visibility:visible;transition-delay:0s}
.vms-menu-content{width:230px;max-width:100%;height:100%;min-width:0;padding:12px;overflow:auto;scrollbar-width:thin;border-right:1px solid var(--vms-line)}
[data-minimal-vms=true] .sidebar :is(.brand,.workspace-tag,.sidebar-bottom){display:none}
.vms-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0 14px;flex:none;background:var(--vms-panel)}
.vms-menu-heading strong{font-size:15px;white-space:nowrap}.vms-menu-heading button{font-size:13px;white-space:nowrap}
[data-minimal-vms=true] #navigation{display:flex;flex-direction:column;gap:4px}
[data-minimal-vms=true] #navigation button{padding:10px 12px;font-size:14px;gap:10px;color:var(--ink);background:transparent;min-height:40px}
[data-minimal-vms=true] #navigation button.active{background:#34475e;color:#e7f1ff;font-weight:700}
[data-minimal-vms=true] #navigation .nav-section{font-size:11px;margin:8px 0 0;padding:8px 12px 2px;color:var(--muted)}
[data-minimal-vms=true] .workspace-header #page-label{position:static;clip-path:none;width:auto;height:auto;font-size:14px;color:var(--muted);margin-right:auto;white-space:nowrap}
[data-minimal-vms=true] .workspace-header{color:var(--ink);flex-wrap:nowrap}
[data-minimal-vms=true] .workspace-header .header-right{margin-left:auto}
[data-minimal-vms=true] .workspace-brand{color:var(--ink)}
[data-minimal-vms=true] .panel{border-color:var(--line)}
[data-minimal-vms=true] :is(input,select,textarea){color-scheme:dark;background:#1a2330;color:var(--ink);border-color:var(--line)}
[data-minimal-vms=true] :is(h1,h2,h3,.empty b,.tile-name){color:var(--ink)}
[data-minimal-vms=true] :is(th,td){font-size:13px;padding:14px}
[data-minimal-vms=true] td small{font-size:12px}
[data-minimal-vms=true] .table-evidence{gap:14px}
[data-minimal-vms=true] .table-evidence img{width:112px;height:72px;object-fit:contain;background:#11151a;border-radius:4px}
[data-minimal-vms=true] .table-evidence .thumb-empty{font-size:12px;color:var(--muted)}
[data-minimal-vms=true] .badge{background:#303c4e;color:#d4deec}
[data-minimal-vms=true] .badge.good{background:#183b33;color:#a3e2ca}
[data-minimal-vms=true] .badge.warn{background:#463820;color:#f1cc8f}
[data-minimal-vms=true] .badge.red{background:#492b33;color:#ffc0c7}
[data-minimal-vms=true] .badge.blue{background:#273e5d;color:#b9d7ff}
[data-minimal-vms=true] .filters button.active{background:#34475e;border-color:#86b7ed;color:#fff}
[data-minimal-vms=true] .detail-layout .event-visual{padding:18px;margin:0}
[data-minimal-vms=true] .detail-layout .event-image-link{width:fit-content;max-width:100%;margin:auto}
[data-minimal-vms=true] .detail-layout .event-image-link img{width:auto;max-width:100%;height:auto;max-height:45vh;background:#11151a}
.incident-original-clip{padding:0 18px 18px}.incident-original-clip summary{padding:12px 0;cursor:pointer;font-size:14px;color:var(--blue)}
/* Mobile: no icon-only strip. A labeled drawer opens from the header's 메뉴 button. */
@media(max-width:850px){
[data-minimal-vms=true] .scope-organization{display:none}
[data-minimal-vms=true] #app,[data-minimal-vms=true].vms-menu-open #app{grid-template-columns:0px 0px minmax(0,1fr)}
#vms-nav{position:fixed;left:0;top:0;bottom:0;height:100dvh;width:min(78vw,260px);padding:12px 10px;z-index:70;transform:translateX(-105%);transition:transform .18s ease;box-shadow:8px 0 24px #000a}
.vms-drawer-open #vms-nav{transform:none}
@media(prefers-reduced-motion:reduce){#vms-nav{transition:none}}
/* The legacy compact horizontal nav hides button spans at 650px. Both drawers have room for names. */
#vms-nav .vms-nav-label,#vms-menu #navigation button>span{display:block}
#vms-nav [data-vms-nav-collapse]{display:none}
#vms-nav-backdrop{display:block;position:fixed;inset:0;background:#000a;z-index:65}
#vms-nav-backdrop[hidden]{display:none}
[data-vms-nav-open]{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:34px;padding:4px 10px;border:1px solid #46525f;border-radius:5px;background:#242b34;color:#dbe5f1;font-size:13px}
[data-vms-nav-open] svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
/* The full-features push panel also overlays instead of competing for width. */
[data-minimal-vms=true] .sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;z-index:70;transform:translateX(-105%);transition:transform .18s ease,visibility 0s .18s;box-shadow:8px 0 24px #000a;background:var(--vms-panel)}
[data-minimal-vms=true].vms-menu-open .sidebar{transform:none}
}
[data-minimal-vms=true] button:focus-visible,[data-minimal-vms=true] a:focus-visible,[data-minimal-vms=true] summary:focus-visible{outline:2px solid #a5caff;outline-offset:2px}
@media(max-width:1440px){[data-minimal-vms=true] .wall-toolbar button{padding:5px 7px}[data-minimal-vms=true] .wall-toolbar #operator-layout{width:115px}[data-minimal-vms=true] #workspace-help{display:none}}
@media(max-width:1100px){[data-minimal-vms=true] .control-room.vms-detail-open #incident-rail{position:absolute;right:0;top:0;bottom:0;width:min(85vw,340px);z-index:30;box-shadow:-8px 0 24px #0008}[data-minimal-vms=true] [data-workspace=control] .control-room.vms-detail-open{grid-template-columns:var(--vms-tree) minmax(0,1fr)!important}[data-minimal-vms=true] .wall-toolbar{overflow-x:auto}[data-minimal-vms=true] .scope-label,[data-minimal-vms=true] #mode{display:none}}
@media(max-width:650px){[data-minimal-vms=true] .workspace-brand,[data-minimal-vms=true] .scope-organization{display:none!important}[data-minimal-vms=true] .vms-auto-fit .wall-grid{grid-template-columns:minmax(0,1fr)!important}[data-minimal-vms=true] [data-workspace=control] .video-wall{padding:8px 6px}}
/* Narrow desktop detail floats over the wall; saved panel widths stay unchanged. */
@media (min-width:1101px) and (max-width:1440px){
 [data-minimal-vms=true] [data-workspace=control] .control-room.vms-detail-open{grid-template-columns:var(--vms-tree) minmax(0,1fr)!important}
 [data-minimal-vms=true] [data-workspace=control] .control-room.tree-collapsed.vms-detail-open{grid-template-columns:minmax(0,1fr)!important}
 [data-minimal-vms=true] [data-workspace=control] .control-room.vms-detail-open #incident-rail{position:absolute;right:0;top:0;bottom:0;width:var(--vms-detail);z-index:30;box-shadow:-8px 0 24px #0008}
 .vms-splitter[data-vms-splitter=detail]{z-index:31}
}

/* Simple product orientation shortcut; does not alter existing CCTV panels. */
.workspace-header .salpion-start-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:7px 12px;border-radius:8px;border:1px solid #72b8ed;background:#c9e8ff;color:#103e61;font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap;min-height:32px}
.workspace-header .salpion-start-link:hover{background:#e2f3ff}
.workspace-header .salpion-start-link:focus-visible{outline:3px solid #f8c84f;outline-offset:3px}
@media(max-width:600px){.workspace-header .salpion-start-link{font-size:12px;padding:5px 8px;min-height:28px}}

/* Live is confirmed by decoded frame progression, never merely by camera registration. */
.vms-live-quick-open{display:inline-flex;gap:7px;align-items:center;background:#116b57!important;border:1px solid #2cb894!important;color:#f1fff8!important;font-weight:850!important;border-radius:9px!important;padding:9px 14px!important;min-height:38px!important;white-space:nowrap;cursor:pointer}
.vms-live-quick-open:hover{background:#168a6c!important}
.vms-live-quick-open:focus-visible{outline:3px solid #92ffcd!important;outline-offset:3px}
.media-surface[data-stream-verified="yes"] [data-media-label]{display:inline-flex;align-items:center;color:#bcffe0;font-weight:850;text-shadow:0 1px 6px #0b211f}
.media-surface[data-stream-verified="yes"] [data-media-label]::before{content:'';width:7px;height:7px;border-radius:50%;background:#54ee9d;margin-right:7px;box-shadow:0 0 0 3px #154c35}
.media-surface[data-stream-verified="no"] [data-media-label]{color:#e2c59d}
@media(max-width:740px){.vms-live-quick-open{white-space:normal;font-size:12px!important}}

/* Busan public CCTV: operator-first camera picker, scoped to the private viewer.
   Keep the production camera tree and all other workspaces untouched. */
[data-minimal-vms=true] [data-workspace=control] .camera-tree.busan-tree{
 padding:0;gap:0;background:#20262e;border-right:1px solid #36414f
}
.busan-tree-intro{flex:none;padding:22px 16px 17px;border-bottom:1px solid #36414f;background:#232b35}
.busan-tree .busan-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:700;color:#9ab4d0}
.busan-tree-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 6px}
.busan-tree-title h2{margin:0;min-width:0;line-height:1.3;font-size:17px;font-weight:700;letter-spacing:-.025em;color:#f0f5fc}
.busan-tree .busan-total{flex:none;border-radius:999px;background:#344457;padding:4px 9px;font-size:11px;font-weight:700;color:#dfebfa}
.busan-tree-intro p{margin:0;color:#afbdce;font-size:12px;line-height:1.55}
.busan-tree .busan-back{display:inline-flex;align-items:center;min-height:34px;margin-top:13px;padding:4px 0;color:#b6d5f7;font-size:12px;text-decoration:none}
.busan-tree .busan-back:hover,.busan-tree .busan-back:focus-visible{color:#fff;text-decoration:underline}
.busan-list-heading{flex:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:18px 16px 10px}
.busan-list-heading strong{font-size:13px;color:#eaf1f9;font-weight:700}
.busan-list-heading span{font-size:11px;color:#97aabd}
.busan-tree .busan-search{padding:0 12px 12px}
.busan-tree .busan-search input{width:100%;height:38px;border:1px solid #435267;border-radius:6px;padding:0 11px;background:#18212c;color:#f2f7fc;font-size:13px}
.busan-tree .busan-camera-list{flex:1;min-height:0;overflow:auto;padding:0 8px 10px;scrollbar-width:thin}
.busan-tree .busan-camera-row{display:block;margin:2px 0}
[data-minimal-vms=true] .busan-tree .busan-camera-row .tree-camera{
 display:flex;align-items:center;gap:11px;min-height:64px;width:100%;padding:10px 12px;border:1px solid transparent!important;
 border-radius:8px;background:transparent;color:#e6edf7;text-align:left;cursor:grab
}
[data-minimal-vms=true] .busan-tree .busan-camera-row .tree-camera:hover{background:#2c3745;border-color:#465a70!important}
[data-minimal-vms=true] .busan-tree .busan-camera-row .tree-camera.selected{
 background:#304155!important;border-color:#55789f!important;box-shadow:inset 3px 0 #a7cbf5
}
.busan-tree .busan-camera-row .tree-camera:active{cursor:grabbing}
.busan-tree .busan-camera-content{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0;overflow:hidden}
.busan-tree .busan-camera-content strong{font-size:14px;font-weight:700;color:#f0f5fc;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-minimal-vms=true] .busan-tree .busan-camera-content small{
 font-size:11px;font-weight:500;color:#adbdce;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.busan-tree .busan-camera-row .status-dot{flex:none;margin:0;background:#7892ac}
.busan-tree .busan-camera-row .status-dot.offline{background:#c07e7e}
.busan-tree .busan-empty{margin:12px 8px;color:#a4b3c5;font-size:13px;line-height:1.6}
.busan-tree .busan-tree-help{flex:none;padding:13px 16px 16px;border-top:1px solid #36414f;color:#8fa2b8;font-size:11px;line-height:1.6}
@media(max-width:650px){
 .busan-tree-intro{padding:16px 12px 12px}
 .busan-list-heading{padding:12px 12px 8px}
 .busan-tree .busan-camera-list{padding:0 6px 8px}
 .busan-tree .busan-tree-help{padding:10px 12px}
}

/* Camera lists: the number is the wall position of that camera (영상칸), so list and wall read the same. */
.tree-camera .wall-number{flex:none;display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:5px;background:#34475e;color:#e7f1ff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.tree-camera .wall-number.unplaced{background:transparent;color:#7f8ea3;border:1px dashed #4b586a}
.tree-camera .tree-camera-area{display:block;font-size:11px;color:#8fa0b6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wall-slot .slot-heading [data-wall-number]::before{content:attr(data-wall-number);display:inline-grid;place-items:center;min-width:20px;height:20px;margin-right:7px;padding:0 4px;border-radius:4px;background:#34475e;color:#e7f1ff;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
/* Road panel header: the generic .camera-tree flex header rule otherwise crushes it into narrow text columns. */
[data-minimal-vms=true] [data-workspace=control] .camera-tree.busan-tree>.busan-tree-intro{display:block!important;width:100%;max-width:100%;min-width:0;height:auto!important;min-height:0!important;padding:14px 16px 10px!important}
[data-minimal-vms=true] .busan-tree .busan-eyebrow{display:block;width:auto}
[data-minimal-vms=true] .busan-tree .busan-tree-title{display:flex;width:100%;align-items:center}
[data-minimal-vms=true] .busan-tree .busan-tree-title h2{flex:1;min-width:0;white-space:nowrap}
[data-minimal-vms=true] .busan-tree .busan-tree-intro p{display:block;width:100%;overflow-wrap:break-word}
[data-minimal-vms=true] .busan-tree .busan-back{display:inline-flex;width:auto;white-space:nowrap}
[data-minimal-vms=true] .busan-tree .busan-list-heading{padding:12px 16px 8px}
.busan-tree .busan-region{display:flex;align-items:center;gap:8px;padding:8px 16px;font-size:12px;color:#b6c4d6}
.busan-tree .busan-region select{flex:1;min-height:32px}
[data-minimal-vms=true] .tree-camera>.status-dot{flex:none}
/* The camera chosen in the list is easy to find on the wall. */
[data-minimal-vms=true] .wall-slot:has(.camera-selected){outline:2px solid #8cbcff;outline-offset:-2px}
