.brand-mark{display:block;width:48px;height:48px;flex:0 0 48px;border-radius:12px;object-fit:contain;font-size:0;line-height:0}.brand,.login-brand{gap:12px}@media(max-width:760px){.brand-mark{width:38px;height:38px;flex-basis:38px;border-radius:10px}}

/* Underlined site navigation, with utility actions kept separate. */
.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:18px;height:auto;min-height:0;padding:18px 4.5% 0;border-bottom:1px solid var(--line)}
.topbar .brand{flex-shrink:0}.topbar .top-label{margin-right:auto}
.topbar .account,.topbar .panel-nav{display:flex;align-items:stretch;justify-content:flex-start;order:3;flex:0 0 100%;width:100%;min-width:0;gap:26px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none}
.topbar .account>a,.topbar .account>button,.topbar .panel-nav>a{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:48px;margin:0;padding:0 2px;border:0;border-radius:0;background:transparent;color:#92a2b1;font:400 13px/1.2 Inter,"Segoe UI",Arial,sans-serif;white-space:nowrap;text-decoration:none;box-shadow:none}
.topbar .account>a:after,.topbar .account>button:after,.topbar .panel-nav>a:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:transparent;border-radius:2px 2px 0 0}
.topbar .account>[aria-current="page"],.topbar .panel-nav>a.selected{color:var(--text);font-weight:600;border:0;background:transparent}
.topbar .account>[aria-current="page"]:after,.topbar .panel-nav>a.selected:after{background:var(--accent)}
.topbar .account>a:hover,.topbar .account>button:hover,.topbar .panel-nav>a:hover{color:var(--text);filter:none;background:transparent}
.topbar .account>:hover:after,.topbar .panel-nav>a:hover:after{background:#506474}
.topbar .account>[aria-current="page"]:hover:after,.topbar .panel-nav>a.selected:hover:after{background:var(--accent)}
.topbar :is(a,button,summary):focus-visible,.grid-tool-actions>button:focus-visible{outline:2px solid #90baf3;outline-offset:-3px}
/* Match the exact centered content width and padding of each page. */
.topbar{max-width:1580px;margin-inline:auto}
.topbar:has(.panel-nav){max-width:1560px}
.header-navigation{display:flex;align-items:stretch;gap:24px;flex:0 0 100%;min-width:0}
.topbar .account,.topbar .panel-nav{order:0;flex:1 1 auto;width:auto}
.header-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:20px}
.header-actions>.quiet{height:48px;padding:0 2px;font-size:12px;white-space:nowrap;color:#92a2b1;background:transparent}
.header-actions>.quiet:hover{color:var(--text);filter:none}
.header-actions>#logout{color:#bc9997}
@media(max-width:760px){
 .topbar{padding:14px 5% 0;gap:12px}
 .topbar .top-label{display:none}
 .header-navigation{flex-wrap:wrap;gap:0}
 .topbar .account,.topbar .panel-nav{flex:0 0 100%;width:100%;gap:22px;border-bottom:1px solid var(--line)}
 .topbar .account>a,.topbar .account>button,.topbar .panel-nav>a{height:46px;font-size:12px}
 .header-actions{width:100%;gap:24px}
 .header-actions>.quiet{height:42px;font-size:11px}
}
@media(max-width:520px){.topbar:has(.panel-nav){padding-inline:16px}}
.grid-tools{flex-wrap:wrap;gap:16px}
.grid-tool-actions{margin-left:auto;gap:8px;justify-content:flex-end}
.grid-tool-actions>button,.grid-tool-actions>.lighting-switch{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-height:40px;margin:0;padding:0 13px;border:1px solid #34424f;border-radius:9px;background:linear-gradient(180deg,#202d38,#1b2630);color:#c7d3de;font:400 12px/1.2 Inter,"Segoe UI",Arial,sans-serif;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff05;transition:background .16s,border-color .16s,box-shadow .16s,transform .1s}
.grid-tool-actions>button:hover:not(:disabled){filter:none;border-color:#566b7c;background:#293947;color:#edf4f9}
.grid-tool-actions>button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px #0004}
.grid-tool-actions>button:before{content:"";width:15px;height:15px;flex:0 0 15px;background:currentColor;mask:var(--control-icon) center/contain no-repeat;opacity:.85}
.grid-tool-actions>#sync-cameras{min-width:166px;color:#c9e7d1;border-color:#4b705e;background:linear-gradient(180deg,#2b4538,#233a30)}
.grid-tool-actions>#sync-cameras:hover:not(:disabled){background:#345542;border-color:#7b9f85}
.grid-tool-actions>#sync-cameras:disabled:before{animation:control-spin 1.2s linear infinite}
.grid-tool-actions>#stop-all{color:#d3a2a0;background:transparent;border-color:transparent;box-shadow:none}
.grid-tool-actions>#stop-all:hover{color:#f0b9b5;background:#35262b;border-color:#5b3b42}
.grid-tool-actions>.lighting-switch{gap:10px;color:#becbd4;border-color:#43505b;background:#1b2731}
.grid-tool-actions>.lighting-switch:has(input:checked){color:#f0dba7;background:linear-gradient(180deg,#3e3525,#302b22);border-color:#8a7247;box-shadow:inset 0 1px 0 #f9d7880c}
.grid-tool-actions>.lighting-switch:hover{border-color:#7b7768}
.grid-tool-actions .switch-track{flex-basis:34px;height:20px;background:#43515e;box-shadow:inset 0 1px 3px #0006}
.grid-tool-actions .switch-track:after{width:14px;height:14px;background:#e1e9ef}
.grid-tool-actions .lighting-switch input{right:13px;width:34px;height:20px;margin-top:-10px}
.grid-tool-actions .lighting-switch input:checked+.switch-track{background:#b59858}
.grid-tool-actions .lighting-switch input:checked+.switch-track:after{transform:translateX(14px);background:#fff4d8}
@keyframes control-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.grid-tools>div:first-child{width:100%}.grid-tool-actions{margin:0;justify-content:flex-start}}
@media(max-width:760px){.grid-tool-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}.grid-tool-actions>button,.grid-tool-actions>.lighting-switch{width:100%;min-width:0!important;height:44px;min-height:44px;padding:0 9px;font-size:12px;gap:7px}.grid-tools{gap:14px;margin-bottom:18px}}
@media(max-width:360px){.grid-tool-actions>button,.grid-tool-actions>.lighting-switch{padding:0 6px;font-size:11px;gap:5px}.grid-tool-actions>button:before{width:13px;height:13px;flex-basis:13px}}
@media(prefers-reduced-motion:reduce){.grid-tool-actions>button,.grid-tool-actions>.lighting-switch{transition:none}.grid-tool-actions>#sync-cameras:disabled:before{animation:none}}
#sync-cameras{--control-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207v5h-5M4%2017v-5h5%22%2F%3E%3Cpath%20d%3D%22M6.1%207a7%207%200%200%201%2011.5-1L20%209M4%2015l2.4%203a7%207%200%200%200%2011.5-1%22%2F%3E%3C%2Fsvg%3E")}
#quality-all{--control-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%209v6m4-6v6M7%2012h4m4-3v6h2a3%203%200%200%200%200-6z%22%2F%3E%3C%2Fsvg%3E")}
#mute-all{--control-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%205%206%209H3v6h3l5%204zM16%209l5%206m0-6-5%206%22%2F%3E%3C%2Fsvg%3E")}
#start-all{--control-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%205%2011%207-11%207z%22%2F%3E%3C%2Fsvg%3E")}
#stop-all{--control-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E")}

.topbar .account::-webkit-scrollbar,.topbar .panel-nav::-webkit-scrollbar{display:none}
