:root{--bg:#f5f7fb;--nav:#fff;--text:#15293c;--muted:#65758a;--blue:#0758e8;--line:#e3e9f1;color-scheme:light}body{font-size:14px;color:var(--text)}button,input,select,textarea{accent-color:var(--blue)}.sidebar{background:#fff;color:var(--text);border-right:1px solid var(--line);width:230px;padding:28px 15px}.brand{padding:0 10px;gap:8px;flex-wrap:wrap}.official-logo{width:157px;height:auto}.brand-product{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--blue)}.site-switch{margin-top:34px;background:#f7f9fc;border-color:var(--line);color:var(--text);gap:9px}.site-switch strong{color:var(--text);font-size:13px}.site-switch small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.site-switch>span{flex:1;min-width:0}.nav-item{color:#52657b;font-size:13px;margin:3px 0;border-radius:8px}.nav-item:hover{color:var(--text);background:#f3f6fb}.nav-item.active{background:#eaf1ff;color:var(--blue);box-shadow:none}.nav-count{background:var(--blue);color:#fff}.side-bottom{color:var(--muted);font-size:11px;border-color:var(--line)}.side-sub{color:var(--muted)}.workspace{margin-left:230px}.topbar{background:#fff;height:72px;border-bottom:1px solid var(--line);padding:0 34px}.top-actions{margin-left:auto}.user-name{font-size:12px}.user-name small{color:var(--muted)}main#content{max-width:1180px;margin:auto;padding:30px 34px 55px}.page-heading{margin-bottom:25px}.page-heading h1{font-size:27px;letter-spacing:-.7px}.page-heading p:empty{display:none}.panel{border:1px solid var(--line);box-shadow:none;border-radius:12px}.button{border-radius:7px;min-height:37px;font-size:13px}.button.primary{background:var(--blue);border-color:var(--blue);box-shadow:none}.button.primary:hover{background:#064ac2}.button.secondary{background:#fff;border:1px solid #d9e2ef;color:#28425d}.link{font-size:12px}.danger{color:#b2434b}.badge.green,.access-result.allowed,.availability.available{background:#edf3ff;color:#0758e8;border-color:#d7e4ff}.status-dot{background:var(--blue)}.overview-counts{display:flex;gap:12px;margin-bottom:30px;flex-wrap:wrap}.overview-counts button{display:flex;gap:13px;align-items:center;min-width:155px;padding:16px 20px;background:#fff;color:#65758a;border:1px solid var(--line);border-radius:10px;text-align:left}.overview-counts strong{font-size:26px;color:#15293c;line-height:1}.section-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.section-caption h2{font-size:17px}.gate-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gate-card{padding:22px}.gate-card-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}.gate-card-head h2{font-size:17px;margin-bottom:4px}.gate-card-head>.icon-button{margin-left:auto}.entity-icon{background:#edf3ff;color:#0758e8;flex-shrink:0}.connection-state{font-size:11px;color:#7c8797;display:inline-flex;align-items:center;gap:6px}.connection-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#9aa6b6}.connection-state.online{color:#0758e8}.connection-state.online:before{background:#0758e8}.gate-direction{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.gate-direction:last-child{padding-bottom:0}.gate-direction>span{font-size:13px;color:#617185}.gate-direction .actions{gap:8px}.gate-direction .button{min-width:78px}.status-toggle{border:1px solid #dbe3ee;background:#f5f7fa;color:#69798c;border-radius:20px;padding:5px 10px;font-size:11px}.status-toggle.on{background:#edf3ff;color:#0758e8;border-color:#cddfff}.access-check-panel{margin-top:25px}.local-device{margin-bottom:20px}.local-section{padding:20px 24px;border-top:1px solid var(--line)}.local-section h3{font-size:14px;margin-bottom:14px}.local-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:16px}.local-row+.local-row{border-top:1px solid var(--line)}.local-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.local-row .actions{display:flex;gap:8px;flex-wrap:wrap}.camera-still{background:#15293c;min-height:220px;padding:0;position:relative}.camera-still img{width:100%;min-height:180px;display:block;object-fit:contain;color:#e3e9f1}.camera-still p{padding:12px 20px;color:#d5deeb;font-size:12px}.brand-login{min-height:100svh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 15% 10%,#e7efff 0,transparent 55%),#f6f8fc}.auth-card{width:100%;max-width:410px;border:1px solid #e1e8f2;background:#fff;border-radius:16px;padding:36px;box-shadow:0 18px 70px #15293c0a}.auth-brand{display:flex;align-items:center;gap:12px;text-decoration:none;margin-bottom:35px}.auth-brand img{width:180px;max-width:75%}.auth-brand span{font-size:12px;letter-spacing:2px;color:#0758e8;font-weight:700}.auth-card h1{font-size:23px;margin-bottom:28px;letter-spacing:-.5px}.auth-card label{display:block;margin-bottom:18px;font-size:13px;font-weight:500}.auth-card input:not([type=checkbox]){display:block;width:100%;margin-top:7px;height:46px;border:1px solid #dce4ee;border-radius:7px;padding:0 12px;background:#fcfdff}.auth-card .remember-row{display:flex;align-items:center;gap:9px;margin:2px 0 20px;font-size:13px;font-weight:400}.remember-row input{width:17px;height:17px}.auth-card .button{width:100%;height:45px}.auth-help{font-size:11px;text-align:center;color:#748195;margin-top:25px}.auth-card .form-error{font-size:12px;margin-bottom:12px}.m-brandbar{display:flex;align-items:center;gap:9px;padding:16px 20px 8px;background:#fff}.m-brandbar img{width:125px;height:auto}.m-brandbar span{color:#0758e8;font-size:11px;letter-spacing:2px;font-weight:700}.mobile-app .m-header{background:#fff}.mobile-app .m-object-icon{color:#0758e8;background:#edf3ff}.mobile-app .m-tabs{grid-template-columns:repeat(5,1fr)}.mobile-app .m-tabs .selected{color:#0758e8}.mobile-app .m-content{padding-top:23px}.mobile-app .page-heading h1{font-size:22px}.mobile-app .gate-cards{grid-template-columns:1fr;gap:14px}.mobile-app .gate-card{padding:18px}.mobile-app .overview-counts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:24px}.mobile-app .overview-counts button{min-width:0;display:block;padding:15px;font-size:11px}.mobile-app .overview-counts strong{display:block;margin-bottom:7px;font-size:26px}.mobile-app .overview-counts button:nth-child(3){grid-column:1/-1;display:flex;gap:12px}.mobile-app .overview-counts button:nth-child(3) strong{font-size:20px;margin:0}.mobile-app .m-role{background:#fff;border-bottom:1px solid var(--line);padding-bottom:14px}.mobile-app .m-account{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-app .m-tabs button{font-size:10px}.mobile-app .local-row{align-items:flex-start;flex-direction:column;gap:10px}.mobile-app .local-section{padding:18px}.mobile-app .local-device>.panel-head{align-items:flex-start;gap:12px}.mobile-app dialog .dialog-foot{gap:10px}.mobile-app .gate-direction{font-size:12px}.mobile-app .gate-direction .button{min-width:72px;padding:7px 12px}
@media(max-width:1100px){.gate-cards{grid-template-columns:1fr}.local-row .actions{justify-content:flex-end}}@media(max-width:850px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.topbar{padding:0 18px}main#content{padding:24px 18px}.gate-card{padding:18px}.local-row{flex-wrap:wrap}.auth-card{padding:30px 24px}.overview-counts button{min-width:130px}.page-heading h1{font-size:23px}}@media(max-width:370px){.mobile-app .gate-card{padding:14px}.gate-card-head h2{font-size:15px}.mobile-app .gate-direction .button{min-width:64px;padding:7px 9px}.m-brandbar{padding-left:16px}.mobile-app .local-row .button{font-size:11px}}

/* Keep holdings as a compact table, including in the mobile client. */
.holdings-panel{min-width:0;overflow:hidden}
.holdings-panel .table-wrap{overflow:auto;overscroll-behavior-x:contain}
.holdings-panel .table-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.holdings-table{table-layout:fixed;min-width:660px;white-space:normal}
.holdings-table th,.holdings-table td{padding:12px 18px;vertical-align:middle;overflow-wrap:anywhere}
.holdings-table th{font-size:12px;color:var(--muted);font-weight:500}
.holdings-table td{padding-top:9px;padding-bottom:9px}
.holdings-table td,.holdings-table td strong{font-size:13px}
.holdings-table th:first-child{width:34%}
.holdings-table .holdings-quota{width:128px;text-align:center;font-variant-numeric:tabular-nums}
.holdings-table td.holdings-quota{font-weight:600;color:var(--text)}
.holdings-table .holdings-actions{width:142px;text-align:right;white-space:nowrap}
.holdings-table tbody tr:last-child td{border-bottom:0}
.holdings-table tbody tr:hover{background:#f8faff}
.holdings-table .button{min-height:34px;padding:6px 12px;font-size:12px}
.mobile-app .m-content .holdings-panel .table-wrap{overflow:auto}
.mobile-app .m-content .holdings-table{display:table;width:100%;min-width:660px}
.mobile-app .m-content .holdings-table thead{display:table-header-group}
.mobile-app .m-content .holdings-table tbody{display:table-row-group;width:auto}
.mobile-app .m-content .holdings-table tr{display:table-row;width:auto;padding:0;border:0}
.mobile-app .m-content .holdings-table td{display:table-cell;width:auto;padding:10px 18px;border-bottom:1px solid #f0f3f8}
.mobile-app .m-content .holdings-table tr:last-child td{border-bottom:0}
.mobile-app .m-content .holdings-table td::before{display:none}
.mobile-app .holdings-table .button{min-height:44px}

.registry-panel{min-width:0;overflow:hidden}
.registry-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) auto auto;align-items:end;gap:12px;padding:18px 20px 10px}
.registry-toolbar label,.registry-fields label{min-width:0;margin:0;font-size:12px;color:var(--muted)}
.registry-toolbar .registry-search input{margin-top:6px;min-height:40px;font-size:14px}
.registry-filter-button,.registry-reset{min-height:40px;white-space:nowrap}
.registry-reset{padding:8px 4px}
.registry-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;padding:8px 20px 12px}
.registry-fields[hidden]{display:none}
.registry-fields input,.registry-fields select{min-width:0;margin-top:6px;min-height:40px}
.registry-summary{padding:0 20px 14px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}
.registry-panel td{overflow-wrap:anywhere;white-space:normal}
.registry-panel .actions{white-space:nowrap}
@media(max-width:600px){
 .registry-toolbar{grid-template-columns:1fr auto;padding:16px 16px 10px;gap:10px}
 .registry-search{grid-column:1/-1}
 .registry-filter-button{justify-self:start}
 .registry-fields{grid-template-columns:1fr 1fr;padding:8px 16px 12px;gap:12px}
 .registry-summary{padding:0 16px 12px}
}
@media(max-width:370px){.registry-fields{grid-template-columns:1fr}}
.mobile-app .registry-toolbar input,.mobile-app .registry-fields input,.mobile-app .registry-fields select{font-size:16px;min-height:44px}

/* Distinct local-system sections and compact camera assignment. */
.connection-state.online{color:#197344;font-weight:600}
.connection-state.online:before{content:'✓';width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#198754;color:#fff;font-size:12px;font-weight:700}
.local-device-layout{display:grid;gap:16px}.local-device-header{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#edf3ff;border-color:#d5e3fb}.local-device-header h2{font-size:17px;margin:0 0 7px}
.local-sections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px}.local-device-layout .local-section{padding:20px;min-width:0}.local-section-title{display:flex;align-items:center;gap:10px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:4px}.local-section-title>.icon{color:var(--blue);width:20px;height:20px;flex-shrink:0}.local-section-title h3{margin:0;font-size:16px}.local-section-title>.button{margin-left:auto}.local-count{border-radius:6px;padding:2px 7px;background:#f0f3f8;color:var(--muted);font-size:12px}.local-cameras-section{grid-column:1/-1}
.local-camera-list{display:grid;gap:12px;padding-top:15px}.local-camera{border:1px solid var(--line);border-radius:9px;overflow:hidden}.local-camera-main{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.local-camera-info{min-width:0}.local-camera-info>strong{display:block;overflow-wrap:anywhere}.local-camera-info>small{display:block;margin-top:5px;color:var(--muted);font-size:12px}.local-camera-main>.actions{display:flex;flex-wrap:wrap;gap:8px}.camera-binding{display:flex;gap:7px;align-items:center;margin-top:10px;color:#275c9a;font-size:12px}.camera-binding .icon{width:17px;height:17px;flex-shrink:0}.local-camera-advanced{background:#f8faff;border-top:1px solid var(--line);padding:11px 16px}.local-camera-advanced summary{font-size:12px;color:var(--muted);cursor:pointer}.local-camera-advanced .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.binding-camera-name{font-weight:600;margin-bottom:20px}.local-waiting{padding:20px}
.plate-warning{margin:7px 0 0;padding:10px 12px;background:#fff7e8;border:1px solid #f0d5a3;border-radius:7px;color:#7c5119;font-size:12px;line-height:1.5}.plate-warning[hidden]{display:none}
.notification-panel{padding:24px;max-width:620px}.notification-panel h2{font-size:18px;margin:0 0 10px}.notification-panel .check-row{padding:12px 0}.notification-panel .notice{margin:20px 0;font-size:13px;line-height:1.6}.notification-panel .muted{line-height:1.5}.notification-save-state{margin-top:12px;font-size:13px;color:var(--muted)}
@media(max-width:1100px){.local-sections{grid-template-columns:1fr}.local-cameras-section{grid-column:auto}}
@media(max-width:600px){.local-device-header{padding:17px;align-items:flex-start;flex-direction:column}.local-camera-main{align-items:flex-start;flex-direction:column;padding:14px}.local-device-layout .local-section{padding:16px}.local-camera-main>.actions{width:100%}.local-camera-main>.actions>.button{flex:1}.local-camera-advanced{padding:11px 14px}.notification-panel{padding:18px}.local-section .local-row>.actions{justify-content:flex-start}.local-section-title{gap:8px}}

.identity-pending{margin-top:20px}.identity-pending .panel-head{padding:18px 20px}.identity-pending h2{margin:0;font-size:17px}

.checkpoint-reasons{padding-left:20px;line-height:1.6}.checkpoint-reasons li+li{margin-top:12px}

.top-actions .user-name{min-width:0;max-width:300px}.account-email{display:block;overflow-wrap:anywhere}.profile-summary>div{min-width:0}.top-actions .account-email{font-size:13px;line-height:1.4}
