:root{--ink:#202b2d;--muted:#87918f;--line:#e9edeb;--green:#2e806c;--green-dark:#286f5d;--soft-green:#e7f3ed;--paper:#fff;--canvas:#f7f9f7;--shadow:0 7px 24px rgba(31,55,47,.035);font-family:'Segoe UI',sans-serif;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,a,input,select{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:5;inset:0 auto 0 0;width:247px;background:#fff;border-right:1px solid var(--line);padding:24px 15px 13px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px;text-decoration:none;color:var(--ink)}.brand-mark{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:var(--green);color:white;font:800 21px 'Segoe UI';box-shadow:0 5px 11px #2e806c2b}.brand strong,.brand small,.site-switch strong,.site-switch small,.user-details strong,.user-details small,.privacy-note strong,.privacy-note small{display:block}.brand strong{font:700 14px 'Segoe UI';letter-spacing:-.3px}.brand small{margin-top:2px;color:#89938f;font-size:8px;letter-spacing:1.28px;font-weight:700}.site-switch{height:61px;border:1px solid #e8ece9;border-radius:9px;margin:30px 3px 26px;padding:0 11px;display:flex;align-items:center;gap:9px}.site-dot{width:8px;height:8px;border-radius:50%;background:#58a981;box-shadow:0 0 0 3px #eaf4ed}.site-switch strong{font-size:11px;font-weight:600}.site-switch small{font-size:9px;color:#939c99;margin-top:3px}.chevron{margin-left:auto;color:#8c9792;font-size:15px}.nav{display:flex;flex-direction:column;gap:3px}.nav-label{padding:0 12px 9px;color:#a0a9a5;font-size:8px;letter-spacing:1.4px;font-weight:700}.section-label{padding-top:24px}.nav-item{height:39px;display:flex;align-items:center;gap:11px;padding:0 12px;border-radius:7px;color:#687370;text-decoration:none;font-size:11px;font-weight:500}.nav-item>span{width:15px;text-align:center;color:#8d9994;font-size:15px}.nav-item:hover,.nav-item.active{background:#edf5f0;color:#32715f}.nav-item.active{font-weight:600}.nav-item.active>span{color:var(--green)}.nav-count{margin-left:auto;background:#f0f3f1;color:#747f7a;min-width:20px;height:18px;border-radius:10px;display:grid;place-items:center;font-size:9px;font-weight:600}.alert-count{background:#fff0e5;color:#cd7748}.sidebar-bottom{margin-top:auto}.privacy-note{height:50px;margin:0 4px 10px;background:#f6f8f6;border-radius:8px;display:flex;align-items:center;gap:9px;padding:0 10px}.privacy-icon{width:26px;height:26px;background:#e7f2eb;color:#4e8e70;border-radius:7px;display:grid;place-items:center;font-size:13px}.privacy-note strong{font-size:9px}.privacy-note small{color:#8e9892;font-size:8px;margin-top:3px}.user-menu{border-top:1px solid var(--line);padding:13px 4px 2px;display:flex;align-items:center;gap:9px}.avatar{background:#dbe9e1;color:#46715e;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-size:10px;font-weight:700;flex:none}.user-details{min-width:0}.user-details strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}.user-details small{font-size:9px;color:#909a96;margin-top:3px;text-transform:capitalize}.icon-button{border:0;background:transparent;color:#7f8a85;cursor:pointer}.user-menu .icon-button{margin-left:auto}.main-area{margin-left:247px;min-height:100vh}.topbar{height:55px;background:#fff;border-bottom:1px solid var(--line);padding:0 37px;display:flex;align-items:center;justify-content:space-between}.breadcrumbs{color:#929b98;font-size:10px}.breadcrumbs span{padding:0 9px;color:#c0c7c3}.breadcrumbs strong{color:#56615c;font-weight:600}.top-actions{display:flex;align-items:center;gap:17px}.live-indicator{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #e5eee8;background:#f9fcfa;border-radius:20px;color:#5f8170;font-size:9px}.live-indicator i,.live-pill i,.page-footer i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#57ad78}.notification-button{position:relative;font-size:16px}.notification-button b{position:absolute;top:1px;right:0;width:5px;height:5px;border-radius:50%;background:#db8c52}.top-divider{height:19px;border-left:1px solid var(--line)}.top-date{font-size:9px;color:#818d87}.small-avatar{width:26px;height:26px;font-size:9px}.content{max-width:1360px;padding:31px 37px 15px;margin:auto}.welcome-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:23px}.eyebrow{font-size:8px;letter-spacing:1.25px;color:#8a9690;font-weight:700;display:flex;align-items:center;gap:7px}.eyebrow-line{width:15px;border-top:1px solid #80a991}h1,h2,p{margin-top:0}.welcome-row h1{font:700 25px 'Segoe UI';letter-spacing:-.9px;margin:9px 0 5px}.welcome-row h1 span{color:var(--green)}.subtitle{color:#86918c;font-size:11px;margin:0}.welcome-actions{display:flex;gap:8px}.button{height:32px;border-radius:6px;padding:0 12px;border:1px solid #e1e7e3;background:white;color:#596660;font-size:10px;cursor:pointer}.button-primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 2px 5px #276f5e20}.button-primary:hover{background:var(--green-dark)}.button-secondary:hover{background:#f7faf7}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.metric-card,.panel{background:#fff;border:1px solid #edf0ee;border-radius:9px;box-shadow:var(--shadow)}.metric-card{height:111px;padding:14px 15px;position:relative;overflow:hidden}.metric-top{display:flex;align-items:center;justify-content:space-between}.metric-label{color:#7e8984;font-size:9px;font-weight:500}.metric-icon{height:23px;width:23px;border-radius:6px;display:grid;place-items:center;font-size:12px}.residents-icon{background:#eaf4ed;color:#4c8d69}.visitors-icon{background:#edf2fb;color:#6987c0}.entries-icon{background:#f0ecfa;color:#8871ba}.pending-icon{background:#fff3e4;color:#cf9455}.metric-value{font:700 22px 'Segoe UI';letter-spacing:-.5px;margin-top:7px}.metric-foot{display:flex;align-items:center;gap:6px;margin-top:5px}.metric-neutral{font-size:8px;color:#98a19c}.trend-up{font-size:8px;font-weight:600;color:#4c9a70}.metric-pending-foot{font-size:8px;color:#ba8a57}.sparkline{position:absolute;width:82px;height:28px;right:13px;bottom:10px;opacity:.75}.sparkline svg{width:100%;height:100%;overflow:visible}.sparkline path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.spark-green path{stroke:#85b89c}.spark-blue path{stroke:#9aaed5}.spark-purple path{stroke:#ad9bcf}.spark-amber path{stroke:#d8ad75}.section-grid{display:grid;grid-template-columns:minmax(0,1.73fr) minmax(265px,.9fr);gap:14px;margin-top:15px}.panel{min-width:0}.activity-panel,.alerts-panel{min-height:250px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 17px 13px}.panel-heading h2{font:700 12px 'Segoe UI';letter-spacing:-.2px;margin:0 0 4px}.panel-heading p{color:#97a09c;font-size:9px;margin:0}.text-link{color:#46846c;font-size:9px;text-decoration:none;white-space:nowrap}.text-link span,.table-footer a span,.alerts-link span{margin-left:3px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#fafbfa}th{height:29px;padding:0 11px;color:#a0a9a5;font-size:7px;letter-spacing:.85px;font-weight:600}th:first-child,td:first-child{padding-left:17px}td{height:45px;border-bottom:1px solid #f0f2f0;padding:0 11px;font-size:9px;color:#55615b}.person-cell{display:flex;align-items:center;gap:8px}.person-mini{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#5c806a;background:#e9f1eb;font-size:8px;font-weight:600}.person-mini.blue{background:#edf0f8;color:#727fa8}.person-mini.amber{background:#fbf0e4;color:#ad8051}.person-name{font-weight:600;color:#38443e}.person-sub{color:#a0a9a5;font-size:8px;margin-top:2px}.type-pill,.status-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border-radius:12px;font-size:8px}.type-resident{background:#edf5ef;color:#55816a}.type-visitor{background:#eef2fa;color:#6e80af}.type-unknown{background:#fff2e8;color:#c17b4e}.status-verified{background:#edf5ef;color:#548369}.status-pending{background:#fff3e6;color:#bb874e}.status-false{background:#f0f2f1;color:#828d87}.camera-cell{color:#78837e}.time-cell{color:#6d7973}.loading-cell{text-align:center;color:#9da7a2;height:84px}.table-footer{padding:11px 17px;display:flex;justify-content:space-between;color:#9ba49f;font-size:8px}.table-footer a,.alerts-link{color:#4b896e;text-decoration:none}.heading-with-icon{display:flex;gap:9px}.panel-icon{height:26px;width:26px;border-radius:7px;display:grid;place-items:center}.warning-icon{color:#be8047;background:#fff3e8;font-weight:700}.live-pill{display:flex;align-items:center;gap:4px;background:#edf6ef;color:#58916b;font-size:7px;font-weight:700;letter-spacing:.7px;border-radius:10px;padding:5px 7px}.live-pill i{height:5px;width:5px}.alert-list{padding:0 14px}.alert-card{padding:12px 0;border-top:1px solid #f0f2f0;display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center}.alert-camera{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;background:#fff2e6;color:#bd7e49;font-size:13px}.alert-title{font-size:9px;font-weight:600;color:#45514a}.alert-detail{font-size:8px;color:#929c96;margin-top:3px}.alert-time{color:#a0a9a4;font-size:8px;align-self:start}.alert-action{grid-column:2/4;color:#4a896e;font-size:8px;text-decoration:none}.empty-alert{height:110px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#96a19b}.empty-check{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;color:#4c926a;background:#edf6ef}.empty-alert strong{font-size:10px;color:#66726b}.empty-alert>span:last-child{font-size:8px}.alerts-link{display:block;margin:5px 14px 13px;padding-top:10px;border-top:1px solid #f0f2f0;font-size:8px}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.camera-panel,.registrations-panel{min-height:157px}.camera-list,.registration-list{padding:0 16px 12px}.camera-row,.registration-row{min-height:41px;border-top:1px solid #f0f2f0;display:flex;align-items:center;gap:8px}.camera-status-icon{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;background:#edf5ef;color:#5b926f;font-size:12px}.camera-status-icon.offline{background:#fbefea;color:#bd7258}.row-main{flex:1;min-width:0}.row-main strong{display:block;font-size:9px;font-weight:600}.row-main small{display:block;font-size:8px;color:#969f9a;margin-top:3px}.online-status{font-size:8px;color:#639270}.offline-status{font-size:8px;color:#bb7964}.register-initial{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#edf2ed;color:#63846d;font-size:8px;font-weight:600}.registration-action{border:1px solid #e0e9e2;border-radius:4px;background:#fff;color:#4d8569;padding:4px 6px;font-size:8px;cursor:pointer}.registration-action:hover{background:#f0f7f1}.no-items{border-top:1px solid #f0f2f0;padding:15px 2px;text-align:center;color:#9aa49f;font-size:9px}.page-footer{display:flex;justify-content:space-between;padding:19px 0 5px;color:#a0aaa4;font-size:8px}.page-footer>span:last-child{display:flex;align-items:center;gap:7px}.footer-lock{color:#629373}.page-footer i{width:5px;height:5px}.toast{position:fixed;right:22px;bottom:20px;z-index:15;padding:11px 15px;background:#243831;color:white;border-radius:7px;font-size:11px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;box-shadow:0 6px 24px #1c302943}.toast.show{opacity:1;transform:translateY(0)}.modal-backdrop{position:fixed;inset:0;background:#17261f70;z-index:10;display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal{position:relative;background:white;width:min(100%,410px);border-radius:12px;padding:28px;box-shadow:0 18px 70px #17261f40}.modal-close{position:absolute;right:15px;top:12px;font-size:21px}.modal-kicker{color:#6c9a7d;font-size:8px;font-weight:700;letter-spacing:1.4px}.modal h2{font:700 19px 'Segoe UI';margin:8px 0}.modal>p{font-size:10px;color:#88948e;line-height:1.6;margin-bottom:17px}.modal form{display:grid;gap:11px}.modal label{display:grid;gap:5px;font-size:9px;font-weight:600;color:#5d6962}.modal input,.modal select{width:100%;height:35px;border:1px solid #e2e9e4;border-radius:5px;padding:0 9px;background:white;color:#405048;font-size:10px;outline-color:#70a58b}.form-error{color:#b85747;font-size:9px;min-height:12px}.form-submit{width:100%;height:36px;display:flex;justify-content:center;align-items:center;gap:7px}.menu-button{display:none}
@media(min-width:1500px){.content{padding-top:38px}.metric-card{height:123px;padding:17px}.section-grid{margin-top:18px}.activity-panel,.alerts-panel{min-height:278px}td{height:51px}.bottom-grid{margin-top:18px}.camera-panel,.registrations-panel{min-height:176px}}
@media(max-width:1050px){.sidebar{width:216px}.main-area{margin-left:216px}.topbar{padding:0 25px}.content{padding:27px 25px 14px}.section-grid{grid-template-columns:minmax(0,1.5fr) minmax(245px,.9fr)}.metric-card{padding:12px}.sparkline{width:60px}.metrics-grid{gap:9px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:255px;box-shadow:12px 0 28px #15271c14}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.topbar{height:51px;padding:0 17px}.menu-button{display:block;margin-right:10px}.breadcrumbs{margin-right:auto}.top-actions{gap:10px}.live-indicator{font-size:0;padding:7px}.live-indicator i{width:7px;height:7px}.top-date,.top-divider{display:none}.content{padding:25px 17px 13px}.section-grid{grid-template-columns:1fr}.activity-panel{order:1}.alerts-panel{order:0;min-height:auto}.alerts-panel .empty-alert{height:85px}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{height:105px;padding:13px}.bottom-grid{grid-template-columns:1fr}.welcome-row{align-items:flex-start;gap:12px}.welcome-row h1{font-size:23px}.welcome-actions{align-self:flex-end}.welcome-actions .button{padding:0 9px}.welcome-actions .button span{font-size:0}.welcome-actions .button-primary span{font-size:0}.welcome-actions .button-primary{font-size:16px;width:34px;padding:0}.page-footer{gap:7px;font-size:7px}.page-footer>span:last-child{gap:4px}}
@media(max-width:420px){.top-actions{gap:7px}.notification-button{display:none}.content{padding-right:12px;padding-left:12px}.welcome-row{display:block}.welcome-actions{margin-top:13px;justify-content:flex-end}.metrics-grid{gap:8px}.metric-card{padding:11px}.metric-label{font-size:8px}.metric-value{font-size:20px}.sparkline{width:52px;right:9px}.bottom-grid,.section-grid{gap:10px}td{padding:0 8px;font-size:8px}th{padding:0 8px;font-size:6px}.person-name{font-size:8px}}

/* Shared sign-in experience */
[hidden], .app-shell[hidden], .register-field[hidden] { display: none !important; }
.auth-screen { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: 1.06fr 1fr; min-height: 100vh; background: #fff; overflow: auto; }
.auth-art { padding: 18px 30px 18px 20px; min-height: 100vh; display: grid; }
.auth-art-card { min-height: 560px; height: 100%; border-radius: 48px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg,#c8edbc 0%,#8edb76 17%,#078b45 39%,#133c30 58%,#133c30 100%); position: relative; }
.auth-art-card:after { content: ''; position: absolute; width: 98%; aspect-ratio: 1; border-radius: 50%; background: #fff; left: 1%; bottom: -36%; }
.auth-art-card img { width: min(70%,420px); z-index: 1; position: relative; margin-top: 31%; filter: drop-shadow(0 5px 10px #17392722); }
.auth-side { min-height: 100vh; display: grid; place-items: center; padding: 55px 34px; background: linear-gradient(125deg,#d4f3cb 0%,#b6e8aa 48%,#56bd72 100%); }
.auth-content { width: min(100%,430px); padding: 26px 10px; }
.auth-kicker { color: #477e4e; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.auth-content h1 { color: #050b07; font-family: 'Segoe UI',sans-serif; margin: 21px 0 74px; line-height: 1.12; }
.auth-content h1 strong,.auth-content h1 span { display: block; }
.auth-content h1 strong { font-size: clamp(32px,4vw,43px); font-weight: 800; }
.auth-content h1 span { margin-top: 3px; font-size: clamp(27px,3.3vw,36px); font-weight: 400; }
.auth-tabs { display: flex; gap: 18px; margin: -43px 10px 18px; }
.auth-tab { border: 0; background: transparent; color: #365547; padding: 8px 3px; cursor: pointer; font-size: 13px; }
.auth-tab.active { color: #123b2b; border-bottom: 2px solid #123b2b; font-weight: 700; }
.auth-content form { display: grid; gap: 15px; }
.auth-content form>label { color: #203c2d; font-size: 11px; font-weight: 700; display: grid; gap: 6px; }
.auth-content input:not([type=file]):not([type=checkbox]),.auth-content select { height: 48px; border: 0; border-radius: 28px; background: #fff; padding: 0 22px; color: #17251c; font-size: 13px; outline: 2px solid transparent; box-shadow: 0 2px 6px #173d2110; }
.auth-content input:focus,.auth-content select:focus { outline-color: #64a675; }
.auth-content input::placeholder { color: #435149; opacity: 1; }
.password-control { position: relative; display: block; }
.password-control input { width: 100%; padding-right: 52px !important; }
.password-toggle { position: absolute; right: 13px; top: 7px; width: 34px; height: 34px; border: 0; color: #15221a; background: transparent; cursor: pointer; font-size: 19px; }
.auth-content .file-field input { height: auto; padding: 10px; border-radius: 10px; background: #ffffffd9; }
.auth-content .consent-field { display: block; font-weight: 500; line-height: 1.5; }
.auth-content .consent-field input { margin: 0 6px 0 0; accent-color: #17442f; }
.auth-submit { justify-self: center; width: 160px; height: 43px; margin-top: 16px; border: 0; border-radius: 24px; background: #173d2e; color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; }
.auth-submit:hover { background: #0f3023; }
.auth-submit span { padding-left: 5px; }
.auth-footnote { margin: 28px 0 0; text-align: center; color: #436d51; font-size: 10px; }
.auth-content .form-error { min-height: 0; color: #913e37; font-size: 12px; }
.auth-content .success-message { color: #174b30; }

/* Admin workspace based on the supplied portal dashboard */
body.admin-ui { background: #263a33; color: #17241e; }
.admin-ui .sidebar { width: 200px; padding: 16px 10px 12px; color: #fff; background: #1b302a; border-right: 6px solid #d1d7d2; }
.admin-ui .brand { padding: 0 8px; color: #fff; gap: 10px; }
.admin-ui .brand-mark { width: 48px; height: 48px; object-fit: contain; display: block; border-radius: 50%; background: #fff; box-shadow: none; }
.admin-ui .brand strong { color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: .1px; }
.admin-ui .brand small { color: #bdcbc3; font-size: 9px; letter-spacing: .5px; }
.admin-ui .site-switch { margin: 21px 1px 19px; height: 48px; border: 1px solid #43584e; background: #233a31; }
.admin-ui .site-switch strong { color: #fff; }
.admin-ui .site-switch small,.admin-ui .chevron { color: #b7c6bc; }
.admin-ui .nav { gap: 4px; }
.admin-ui .nav-label { color: #93a79a; padding-bottom: 8px; font-size: 8px; }
.admin-ui .section-label { padding-top: 18px; }
.admin-ui .nav-item { height: 41px; border-radius: 8px; color: #edf4ef; font-size: 12px; gap: 10px; }
.admin-ui .nav-item>span { color: #e6f0e8; font-size: 17px; }
.admin-ui .nav-item:hover,.admin-ui .nav-item.active { background: #a9c2a9; color: #13241b; }
.admin-ui .nav-item.active>span { color: #14281e; }
.admin-ui .nav-count { background: #3a5146; color: #eef6ef; }
.admin-ui .alert-count { background: #8a403e; }
.admin-ui .privacy-note { background: #263b32; }
.admin-ui .privacy-note strong { color: #fff; }
.admin-ui .privacy-note small { color: #aebdb4; }
.admin-ui .user-menu { border-color: #43554c; }
.admin-ui .user-details strong { color: #fff; }
.admin-ui .user-details small { color: #b4c4ba; }
.admin-ui .icon-button { color: #eff7f0; }
.admin-ui .main-area { margin-left: 200px; }
.admin-ui .topbar { height: 72px; padding: 0 25px; color: #fff; background: #1b302a; border-bottom: 5px solid #d1d7d2; }
.admin-ui .breadcrumbs { color: #ccd8cf; }
.admin-ui .breadcrumbs strong { color: #fff; }
.admin-ui .top-date { color: #e7eee8; }
.admin-ui .live-indicator { color: #bce2c4; background: #2b4838; }
.admin-ui .notification-button { color: #fff; }
.admin-ui .content { min-height: calc(100vh - 72px); padding: 21px 22px 12px; background: #293d35; }
.admin-ui .welcome-row { color: #fff; margin-bottom: 18px; }
.admin-ui .welcome-row h1 { margin: 6px 0 4px; color: #fff; font-size: 24px; }
.admin-ui .eyebrow,.admin-ui .subtitle { color: #c4d2c8; }
.admin-ui .eyebrow-line { background: #9dc2a2; }
.admin-ui .button-secondary { background: #40584c; border-color: #718478; color: #fff; }
.admin-ui .button-primary { background: #a9c2a9; color: #17271d; border-color: #a9c2a9; }
.admin-ui .button { min-height: 36px; font-size: 10px; }
.admin-ui .metrics-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.admin-ui .metric-card { min-height: 94px; height: 94px; border-radius: 10px; padding: 12px 14px; box-shadow: 0 4px 13px #0e211a18; }
.admin-ui .metric-label { font-size: 9px; color: #405047; }
.admin-ui .metric-value { margin-top: 7px; font-size: 24px; color: #10241a; }
.admin-ui .metric-foot { font-size: 8px; }
.admin-ui .sparkline { opacity: .35; }
.admin-ui .admin-recognition { margin-top: 13px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px #10251c22; }
.admin-ui .recognition-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.admin-ui .recognition-kicker { color: #68816e; font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.admin-ui .recognition-heading h2 { margin: 3px 0; font: 700 15px 'Segoe UI',sans-serif; color: #183124; }
.admin-ui .recognition-heading p { margin: 0; color: #7d8881; font-size: 9px; }
.admin-ui .recognition-live { color: #4f8963; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.admin-ui .recognition-live i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #59a873; box-shadow: 0 0 0 3px #e7f3e9; }
.admin-ui .recognition-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.9fr); gap: 14px; }
.admin-ui .preview-frame { position: relative; min-height: 205px; overflow: hidden; border-radius: 8px; display: grid; place-items: center; background: #17261f; color: #fff; }
.admin-ui .preview-frame img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.admin-ui .preview-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; background: linear-gradient(145deg,#223b30,#17261f); color: #fff; text-align: center; padding: 15px; }
.admin-ui .preview-fallback strong { font-size: 12px; }
.admin-ui .preview-fallback>span:last-child { max-width: 250px; color: #b7c9bd; font-size: 9px; }
.admin-ui .preview-camera-icon { color: #a7c6ac; font-size: 26px; }
.admin-ui .preview-label { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; border-radius: 4px; background: #14241ed9; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.admin-ui .recognition-details { display: flex; min-width: 0; flex-direction: column; }
.admin-ui .recognition-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #e3e9e4; border-radius: 7px; overflow: hidden; }
.admin-ui .recognition-stats>div { min-height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border-right: 1px solid #e3e9e4; }
.admin-ui .recognition-stats>div:last-child { border: 0; }
.admin-ui .recognition-stats span { color: #7d8981; font-size: 8px; }
.admin-ui .recognition-stats strong { color: #17271e; font-size: 16px; }
.admin-ui .recognition-results-heading { display: flex; justify-content: space-between; margin: 11px 0 5px; color: #405047; font-size: 9px; }
.admin-ui .recognition-results-heading span { color: #929c95; font-weight: 400; }
.admin-ui .recognition-results { min-height: 66px; }
.admin-ui .recognition-result { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-top: 1px solid #edf0ed; }
.admin-ui .recognition-result>span:nth-child(2) { flex: 1; min-width: 0; }
.admin-ui .recognition-result strong,.admin-ui .recognition-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ui .recognition-result strong { color: #3a4b41; font-size: 8px; }
.admin-ui .recognition-result small { margin-top: 3px; color: #939c96; font-size: 7px; }
.admin-ui .recognition-result time { color: #7b8980; font-size: 8px; white-space: nowrap; }
.admin-ui .result-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #62a373; }
.admin-ui .result-dot.unknown { background: #cf9a37; }
.admin-ui .result-dot.visitor { background: #6598bd; }
.admin-ui .recognition-empty { padding: 12px 3px; color: #929c95; font-size: 9px; }
.admin-ui .recognition-disclaimer { margin: auto 0 0; padding-top: 8px; color: #87948b; font-size: 8px; line-height: 1.45; }
.admin-ui .section-grid { grid-template-columns: minmax(0,1.45fr) minmax(225px,.85fr); gap: 13px; margin-top: 13px; }
.admin-ui .bottom-grid { gap: 13px; margin-top: 13px; }
.admin-ui .panel { border-radius: 10px; box-shadow: 0 4px 14px #10251c18; }
.admin-ui .panel-heading { padding: 12px 13px 9px; }
.admin-ui .panel-heading h2 { color: #1c3025; font-size: 11px; }
.admin-ui .panel-heading p { font-size: 8px; }
.admin-ui .table-wrap { overflow-x: auto; }
.admin-ui table { min-width: 520px; }
.admin-ui th { font-size: 7px; }
.admin-ui td { height: 36px; font-size: 8px; }
.admin-ui .alerts-panel { background: #8d403d; color: #fff; }
.admin-ui .alerts-panel .panel-heading h2,.admin-ui .alerts-panel .panel-heading p { color: #fff; }
.admin-ui .alerts-panel .panel-heading { border-color: #b8756f; }
.admin-ui .alerts-panel .alert-card { border-color: #ae6761; }
.admin-ui .alerts-panel .alert-title,.admin-ui .alerts-panel .alert-detail { color: #fff; }
.admin-ui .alerts-panel .alert-time { color: #edcac5; }
.admin-ui .alerts-panel .alert-action,.admin-ui .alerts-panel .alerts-link { color: #fff1c9; }
.admin-ui .alerts-panel .alerts-link { border-color: #ae6761; }
.admin-ui .alerts-panel .alert-camera { color: #edbd39; background: #87403d; }
.admin-ui .alerts-panel .empty-alert { color: #f2d7d2; }
.admin-ui .alerts-panel .empty-alert strong { color: #fff; }
.admin-ui .alerts-panel .empty-check { background: #763b38; color: #e8d28d; }
.admin-ui .camera-row,.admin-ui .registration-row { min-height: 37px; }
.admin-ui .page-footer { color: #afc0b5; }
.admin-ui .footer-lock { color: #bad9bf; }
.admin-ui .modal-backdrop { background: #11231dbd; }
.admin-ui .modal { border-radius: 12px; }
@media(max-width:1100px) { .admin-ui .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .admin-ui .recognition-layout { grid-template-columns: minmax(0,1.1fr) minmax(220px,.9fr); } }
@media(max-width:760px) {
 .auth-screen { grid-template-columns: 1fr; grid-template-rows: minmax(180px,30vh) 1fr; }
 .auth-art { min-height: 0; padding: 12px 14px 0; }
 .auth-art-card { min-height: 180px; border-radius: 34px 34px 0 0; }
 .auth-art-card:after { width: 75%; left: 12.5%; bottom: -67%; }
 .auth-art-card img { width: min(36%,170px); margin-top: 5%; }
 .auth-side { min-height: 70vh; padding: 24px 25px 35px; }
 .auth-content { max-width: 500px; padding: 5px 0; }
 .auth-content h1 { margin: 12px 0 42px; }
 .auth-tabs { margin-top: -22px; }
 .auth-content form { gap: 12px; }
 .admin-ui .sidebar { width: 255px; }
 .admin-ui .main-area { margin-left: 0; }
 .admin-ui .topbar { height: 58px; padding: 0 14px; }
 .admin-ui .content { min-height: calc(100vh - 58px); padding: 18px 13px 12px; }
 .admin-ui .recognition-layout { grid-template-columns: 1fr; }
 .admin-ui .preview-frame { min-height: 220px; }
 .admin-ui .section-grid { grid-template-columns: 1fr; }
 .admin-ui .bottom-grid { grid-template-columns: 1fr; }
 .admin-ui .welcome-row { align-items: flex-start; flex-direction: column; }
 .admin-ui .welcome-actions { align-self: stretch; flex-wrap: wrap; }
 .admin-ui .welcome-actions .button { padding: 0 10px; }
 .admin-ui .welcome-actions .button span { font-size: inherit; }
}
@media(max-width:420px) {
 .auth-screen { grid-template-rows: minmax(145px,24vh) 1fr; }
 .auth-art { padding: 8px 9px 0; }
 .auth-art-card { min-height: 145px; }
 .auth-art-card img { width: 32%; }
 .auth-side { padding: 19px 19px 27px; }
 .auth-content h1 strong { font-size: 31px; }
 .auth-content h1 span { font-size: 27px; }
 .admin-ui .metrics-grid { gap: 8px; }
 .admin-ui .metric-card { min-height: 86px; height: 86px; padding: 10px; }
 .admin-ui .metric-value { font-size: 21px; }
 .recognition-toggle { order: 3; }
}

/* Login screen alignment tuned to the provided reference */
.auth-screen { grid-template-columns: 53.5% 46.5%; }
.auth-art { min-height: 100vh; padding: 22px 31px 0 26px; }
.auth-art-card { height: calc(100vh - 22px); min-height: 516px; border-radius: 50px 50px 0 0; background: linear-gradient(180deg,#c8edba 0%,#a5e38a 18%,#55c959 28%,#087d40 42%,#14392e 60%,#14392e 100%); }
.auth-art-card:after { width: 100%; left: 0; bottom: -24%; }
.auth-art-card img { position: absolute; top: 69%; left: 50%; width: min(62%,280px); margin: 0; transform: translate(-50%,-50%); filter: none; }
.auth-side { place-items: start stretch; min-height: 100vh; padding: 80px 24px 28px clamp(36px,6.2vw,59px); background-color: #91c694; background-image: repeating-linear-gradient(132deg,#ffffff00 0 3px,#ffffff0a 3px 4px),linear-gradient(125deg,#17291f 0%,#617c69 17%,#c5edb9 52%,#49b866 100%); }
.auth-content { width: min(100%,360px); padding: 0; }
.auth-kicker { display: none; }
.auth-content h1 { margin: 0 0 85px; line-height: 1.08; }
.auth-content h1 strong { font-size: clamp(34px,4.25vw,41px); font-weight: 800; letter-spacing: -.7px; }
.auth-content h1 span { margin-top: 5px; font-size: clamp(28px,3.5vw,33px); font-weight: 400; letter-spacing: -.6px; }
.auth-tabs { position: fixed; z-index: 31; right: 24px; bottom: 7px; gap: 12px; margin: 0; opacity: .75; }
.auth-tab { padding: 5px 3px; font-size: 10px; }
.auth-content form { width: min(100%,297px); margin-left: 17px; gap: 20px; }
.auth-content form>label.credential-label { display: block; gap: 0; color: transparent; font-size: 0; }
.auth-content form.register-mode>label.credential-label { display: grid; gap: 6px; color: #203c2d; font-size: 11px; }
.field-label { display: none; }
.auth-content form.register-mode .field-label { display: block; }
.auth-content input:not([type=file]):not([type=checkbox]),.auth-content select { height: 39px; border-radius: 22px; padding: 0 22px; font-size: 12px; box-shadow: none; }
.auth-content input::placeholder { color: #303a34; font-size: 12px; }
.input-icon-control,.password-control { position: relative; display: block; width: 100%; }
.input-icon-control input,.password-control input { width: 100%; padding-right: 49px !important; }
.input-icon { position: absolute; right: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: currentColor; color: #050907; pointer-events: none; }
.eye-input-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.password-toggle { right: 12px; top: 3px; width: 30px; height: 32px; padding: 0; font-size: 0; }
.password-toggle .input-icon { position: static; width: 20px; height: 20px; transform: none; }
.password-toggle.revealed .input-icon path:first-child { display: none; }
.auth-submit { width: 123px; height: 31px; min-height: 31px; margin: 13px 0 0 32px; border-radius: 18px; font-size: 14px; font-weight: 500; }
.auth-submit span { display: none; }
.auth-footnote { display: none; }
.auth-content form.register-mode { width: 100%; margin: 0; gap: 13px; }
.auth-content form.register-mode .auth-submit { justify-self: center; margin: 6px 0 0; }
.auth-content form.register-mode~.auth-footnote { display: block; }
.auth-content .file-field input { height: auto !important; min-height: 38px; }
@media(max-width:760px) {
 .auth-screen { grid-template-columns: 1fr; grid-template-rows: minmax(190px,34vh) 1fr; }
 .auth-art { min-height: 0; padding: 12px 14px 0; }
 .auth-art-card { height: 100%; min-height: 190px; border-radius: 34px 34px 0 0; }
 .auth-art-card:after { width: 76%; left: 12%; bottom: -61%; }
 .auth-art-card img { width: min(36%,170px); top: 71%; }
 .auth-side { min-height: 66vh; padding: 28px clamp(22px,8vw,54px) 45px; place-items: start center; }
 .auth-content { width: min(100%,380px); }
 .auth-content h1 { margin-bottom: 44px; }
 .auth-content form { margin-left: auto; margin-right: auto; }
 .auth-tabs { position: static; justify-content: center; margin: 0 0 12px; }
 .auth-content form.register-mode { margin: 0; }
}
@media(max-width:420px) {
 .auth-screen { grid-template-rows: minmax(150px,25vh) 1fr; }
 .auth-art { padding: 8px 9px 0; }
 .auth-art-card { min-height: 150px; }
 .auth-art-card img { width: 34%; }
 .auth-side { min-height: 75vh; padding: 24px 20px 35px; }
 .auth-content h1 { margin-bottom: 38px; }
 .auth-content h1 strong { font-size: 32px; }
 .auth-content h1 span { font-size: 27px; }
 .auth-content form { gap: 16px; }
 .auth-submit { justify-self: center; margin-left: 0; }
}

/* Refined account switch and accessible login controls */
.auth-side { background-image: repeating-linear-gradient(132deg,#ffffff00 0 3px,#ffffff0a 3px 4px),radial-gradient(ellipse at 72% 30%,#d7f4c8 0%,#a4d79e 42%,transparent 72%),linear-gradient(125deg,#17291f 0%,#536f5e 23%,#85ba88 70%,#55b872 100%); }
.auth-tabs { position: static; width: min(100%,297px); justify-content: center; align-items: baseline; gap: 5px; margin: 11px 0 0 17px; opacity: 1; }
.auth-switch-prompt { color: #41654b; font-size: 10px; }
.auth-tab,.auth-tab.active { border: 0; padding: 0 2px; background: transparent; color: #183f2b; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-tab.active { display: none; }
.auth-content input:not([type=file]):not([type=checkbox]):focus,.auth-content select:focus { outline: 2px solid #428354; outline-offset: 2px; }
.auth-content form>label.credential-label:focus-within .input-icon { color: #276842; }
.auth-submit { transition: background-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 5px 12px #153c2a30; }
.auth-submit:focus-visible,.auth-tab:focus-visible,.password-toggle:focus-visible { outline: 2px solid #173d2e; outline-offset: 3px; }
@media(max-width:760px) { .auth-tabs { position: static; margin: 11px auto 0; } }
#auth-form.register-mode + .auth-tabs { width: 100%; margin-left: 0; margin-right: 0; }
@media(max-width:420px) { .auth-tabs { margin-top: 10px; } }
@media(prefers-reduced-motion:reduce) { .auth-submit { transition: none; } }

/* Keep navigation usable when the sidebar is taller than the viewport */
.sidebar { overflow: hidden; }
.sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #c2ccc5 transparent; padding-right: 4px; }
.sidebar .nav::-webkit-scrollbar { width: 5px; }
.sidebar .nav::-webkit-scrollbar-track { background: transparent; }
.sidebar .nav::-webkit-scrollbar-thumb { background: #c2ccc5; border-radius: 8px; }
.admin-ui .sidebar .nav { scrollbar-color: #668073 transparent; }
.admin-ui .sidebar .nav::-webkit-scrollbar-thumb { background: #668073; }

/* Role-aware navigation views */
.sidebar { transition: width .2s ease, transform .2s ease; }
.sidebar-collapse { position: absolute; top: 24px; right: 8px; width: 28px; height: 28px; border: 1px solid #e5ebe7; border-radius: 7px; background: #fff; font-size: 19px; line-height: 1; }
.admin-ui .sidebar-collapse { top: 19px; right: 5px; border-color: #50645a; background: #263d33; color: #eaf1eb; }
.sidebar-collapse:hover { background: #edf5f0; color: #286f5d; }
.admin-ui .sidebar-collapse:hover { background: #a9c2a9; color: #13241b; }
.sidebar-scrim { display: none; }
.nav-item.nav-action { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }
.nav-item.nav-action:hover { background: #edf5f0; }
.admin-ui .nav-item.nav-action:hover { background: #a9c2a9; }
.nav-item .nav-text { min-width: 0; font-weight: inherit; }
.nav-item[aria-current="location"] { box-shadow: inset 3px 0 var(--green); }
.admin-ui .nav-item[aria-current="location"] { box-shadow: inset 3px 0 #17382a; }
.nav-item:focus-visible,.sidebar-collapse:focus-visible,.workspace-panel button:focus-visible,.workspace-panel input:focus-visible,.workspace-panel textarea:focus-visible { outline: 2px solid #65a17c; outline-offset: 2px; }
.nav-count[hidden] { display: none; }
.nav-section { scroll-margin-top: 22px; }
.workspace-panel { margin-top: 16px; padding: 0 17px 18px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0 15px; }
.workspace-heading h2 { margin: 4px 0; font: 700 16px 'Segoe UI'; }
.workspace-heading p { margin: 0; color: #929c96; font-size: 10px; }
.workspace-kicker { color: #6b9a7c; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.workspace-grid { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(0,1.25fr); gap: 22px; border-top: 1px solid #edf0ee; }
.workspace-form,.profile-form { display: grid; align-content: start; gap: 11px; padding: 16px 0 0; }
.workspace-form h3,.list-heading h3 { margin: 0; font: 700 11px 'Segoe UI'; }
.workspace-form label,.profile-form label { display: grid; gap: 5px; color: #5d6962; font-size: 9px; font-weight: 600; }
.workspace-form input,.workspace-form textarea,.profile-form input { width: 100%; border: 1px solid #e2e9e4; border-radius: 6px; padding: 8px 9px; background: #fff; color: #405048; font-size: 10px; outline-color: #70a58b; }
.workspace-form input,.profile-form input { height: 34px; }
.workspace-form textarea { resize: vertical; min-height: 68px; }
.workspace-form .button,.profile-form .button { justify-self: start; min-width: 130px; }
.workspace-error { min-height: 0; color: #b85747; font-size: 9px; }
.workspace-list { min-width: 0; padding-top: 16px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.list-heading .text-link,.workspace-heading .text-link { border: 0; background: transparent; color: #46846c; font-size: 9px; cursor: pointer; }
.visitor-row { min-height: 54px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px; border-top: 1px solid #edf0ee; padding: 8px 0; }
.visitor-row-main { min-width: 0; display: grid; gap: 3px; }
.visitor-row-main strong { color: #38443e; font-size: 10px; }
.visitor-row-main small { color: #929c96; font-size: 8px; }
.visitor-status { align-self: start; padding: 4px 7px; border-radius: 12px; background: #fff3e6; color: #ad7e49; font-size: 8px; text-transform: capitalize; }
.visitor-status.status-approved { background: #edf5ef; color: #548369; }
.visitor-status.status-rejected,.visitor-status.status-cancelled { background: #f8eeeb; color: #a86456; }
.visitor-status.status-completed { background: #eef1ef; color: #78837d; }
.visitor-review { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.reject-action { color: #a86456; border-color: #eedbd6; }
.load-more { display: block; margin: 12px auto 0; }
.profile-form { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 620px; border-top: 1px solid #edf0ee; }
.profile-form .workspace-error,.profile-form .button { grid-column: 1 / -1; }
.profile-form input[readonly] { background: #f6f8f6; color: #7d8982; }
.audit-table-wrap { overflow-x: auto; border-top: 1px solid #edf0ee; }
.audit-table { min-width: 560px; }
.audit-table td { height: 42px; }
.audit-action { text-transform: capitalize; }
#export-inline,.list-heading .text-link,.workspace-heading .text-link { background: none; border: 0; cursor: pointer; }
.admin-ui .workspace-panel { background: #fff; }
.admin-ui .workspace-form input,.admin-ui .workspace-form textarea,.admin-ui .profile-form input { border-color: #dfe7e1; }
.admin-ui .visitor-row,.admin-ui .audit-table-wrap,.admin-ui .workspace-grid,.admin-ui .profile-form { border-color: #e9eeea; }

body.sidebar-collapsed .sidebar { width: 74px; padding-left: 9px; padding-right: 9px; }
body.sidebar-collapsed .main-area { margin-left: 74px; }
body.sidebar-collapsed .brand { padding: 0; justify-content: center; }
body.sidebar-collapsed .brand>span,body.sidebar-collapsed .site-switch>span:not(.site-dot),body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-text,body.sidebar-collapsed .user-details,body.sidebar-collapsed .privacy-note { display: none; }
body.sidebar-collapsed .sidebar-collapse { right: 1px; top: 58px; }
body.sidebar-collapsed .site-switch { width: 38px; justify-content: center; margin: 32px auto 18px; padding: 0; }
body.sidebar-collapsed .nav-item { position: relative; justify-content: center; gap: 0; padding: 0; }
body.sidebar-collapsed .nav-item>span { width: auto; }
body.sidebar-collapsed .nav-count { position: absolute; top: -3px; right: -2px; min-width: 15px; height: 15px; font-size: 8px; }
body.sidebar-collapsed .user-menu { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .user-menu .icon-button { margin-left: 0; }
body.sidebar-collapsed .admin-ui .nav-count { background: #3a5146; }
body.sidebar-collapsed .nav-item[title]:hover::after { content: attr(title); position: absolute; left: calc(100% + 10px); z-index: 20; white-space: nowrap; border-radius: 5px; padding: 7px 9px; background: #1d3028; color: #fff; font-size: 10px; box-shadow: 0 4px 14px #12261f30; }
@media(max-width:760px) {
 .sidebar-collapse { display: none; }
 .sidebar-scrim { position: fixed; inset: 0; z-index: 4; border: 0; background: #10251d75; }
 .sidebar-scrim.visible { display: block; }
 body.sidebar-collapsed .sidebar { width: 255px; }
 body.sidebar-collapsed .main-area { margin-left: 0; }
 body.sidebar-collapsed .brand>span,body.sidebar-collapsed .site-switch>span:not(.site-dot),body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-text,body.sidebar-collapsed .user-details,body.sidebar-collapsed .privacy-note { display: initial; }
 body.sidebar-collapsed .nav-label { display: block; }
 body.sidebar-collapsed .nav-item { justify-content: flex-start; gap: 10px; padding: 0 12px; }
 body.sidebar-collapsed .nav-item>span { width: 15px; }
 body.sidebar-collapsed .nav-count { position: static; min-width: 20px; height: 18px; }
 body.sidebar-collapsed .user-menu { justify-content: flex-start; padding: 13px 4px 2px; }
 body.sidebar-collapsed .user-menu .icon-button { margin-left: auto; }
 .workspace-grid { grid-template-columns: 1fr; gap: 10px; }
 .workspace-form { padding-bottom: 14px; border-bottom: 1px solid #edf0ee; }
 .profile-form { max-width: none; }
}
@media(max-width:420px) { .workspace-panel { padding-left: 12px; padding-right: 12px; } .profile-form { grid-template-columns: 1fr; } .profile-form .workspace-error,.profile-form .button { grid-column: auto; } }
@media(prefers-reduced-motion:reduce) { .sidebar { transition: none; } }
.camera-registration { padding: 0 0 12px; border-bottom: 1px solid #edf0ee; }
.camera-registration summary { color: #46846c; font-size: 10px; font-weight: 600; cursor: pointer; }
.camera-registration-form { padding-top: 12px; }
.camera-registration-form select { height: 34px; border: 1px solid #dfe7e1; border-radius: 6px; padding: 0 9px; background: #fff; color: #405048; font-size: 10px; }
.camera-secret-note { color: #89958e; font-size: 9px; line-height: 1.45; }
.camera-row { flex-wrap: wrap; }
.camera-row .registration-action { margin-left: auto; }
.camera-registration [hidden] { display: none !important; }
.recognition-camera-controls { display: grid; gap: 4px; min-width: 180px; margin-left: auto; }
.recognition-camera-controls label { display: grid; gap: 4px; color: #79867e; font-size: 9px; font-weight: 600; }
.recognition-camera-controls select { max-width: 240px; height: 32px; border: 1px solid #dfe7e1; border-radius: 6px; padding: 0 9px; background: #fff; color: #405048; font-size: 10px; }
.recognition-camera-controls small { color: #929c96; font-size: 8px; line-height: 1.4; }
@media(max-width:700px) { .recognition-camera-controls { width: 100%; margin: 10px 0; } .recognition-camera-controls select { max-width: 100%; } }
.password-form { margin-top: 18px; }
.password-form h3,.password-form small { grid-column: 1 / -1; margin: 0; }
.password-form small { color: #7d8982; font-size: 9px; }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.user-inactive { color: #a35a4a; }
.alert-snapshot { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.face-enrollment-pill.face-ready { background: #e3f4e8; color: #1e7047; }
.face-enrollment-pill.face-pending { background: #fff4dc; color: #8a5a00; }
.face-enrollment-pill.face-failed { background: #fde8e4; color: #a33a2a; }
#face-enrollment-status[data-state="READY"] { color: #1e7047; }
#face-enrollment-status[data-state="FAILED"] { color: #a33a2a; }

/* Sidebar routes keep each module mounted while showing only the selected view. */
.page-view[hidden] { display: none !important; }
.page-view { display: block; width: 100%; min-width: 0; animation: page-view-enter .16s ease-out; }
.page-view > .workspace-panel { width: 100%; margin: 0; }
.page-view > .welcome-row { margin-bottom: 22px; }
.page-view > .metrics-grid { margin-bottom: 15px; }
.page-view > .admin-recognition { margin: 0; }
.page-view > .panel { width: 100%; }
/* Tables and wide forms stay within the available viewport on small screens. */
.page-view, .workspace-panel, .panel { min-width: 0; }
.audit-table-wrap, .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.workspace-form input, .workspace-form select, .workspace-form textarea,
.profile-form input, .profile-form select, .profile-form textarea { max-width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .page-view > .workspace-panel { padding: 18px; }
  .audit-table { min-width: 620px; }
  .event-table { min-width: 560px; }
}
@media (max-width: 420px) {
  .page-view > .workspace-panel { padding: 13px 12px; }
  .workspace-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .workspace-heading > .button, .workspace-heading > .text-link { flex: 0 0 auto; }
}
@keyframes page-view-enter { from { opacity: .82; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

/* Recognition photo evidence in the verification module. */
.recognition-evidence { margin: 6px 14px 14px; border-top: 1px solid #f0f2f0; padding-top: 12px; }
.evidence-heading h3 { margin: 0 0 4px; color: #45514a; font-size: 10px; }
.evidence-heading p { margin: 0 0 9px; color: #929c96; font-size: 8px; }
.recognition-evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.evidence-card { min-width: 0; overflow: hidden; border: 1px solid #e7ece8; border-radius: 7px; background: #fff; }
.evidence-photo-link { display: block; height: 105px; background: #edf1ed; }
.evidence-photo-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evidence-card-info { display: grid; gap: 4px; padding: 7px; }
.evidence-card-info strong { overflow: hidden; color: #45514a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-card-info small { overflow: hidden; color: #929c96; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-card-info a { color: #46846c; font-size: 8px; text-decoration: none; }
.evidence-empty { grid-column: 1/-1; padding: 12px 0; color: #929c96; font-size: 8px; text-align: center; }
.admin-ui .recognition-evidence { border-color: #ae6761; }
.admin-ui .evidence-heading h3,.admin-ui .evidence-card-info strong { color: #fff; }
.admin-ui .evidence-heading p,.admin-ui .evidence-card-info small,.admin-ui .evidence-empty { color: #edcac5; }
.admin-ui .evidence-card { border-color: #ae6761; background: #87403d; }
.admin-ui .evidence-card-info a { color: #fff1c9; }
.evidence-card.evidence-resident,.evidence-card.evidence-visitor { border-color: #8fc99b; background: #e7f5e9; }
.evidence-card.evidence-unknown { border-color: #e58b86; background: #fde9e7; }
.admin-ui .evidence-card.evidence-resident,.admin-ui .evidence-card.evidence-visitor { border-color: #8fc99b; background: #e7f5e9; }
.admin-ui .evidence-card.evidence-unknown { border-color: #e58b86; background: #fde9e7; }
.admin-ui .evidence-card.evidence-resident .evidence-card-info strong,.admin-ui .evidence-card.evidence-visitor .evidence-card-info strong { color: #245833; }
.admin-ui .evidence-card.evidence-resident .evidence-card-info small,.admin-ui .evidence-card.evidence-visitor .evidence-card-info small { color: #426b4a; }
.admin-ui .evidence-card.evidence-resident .evidence-card-info a,.admin-ui .evidence-card.evidence-visitor .evidence-card-info a { color: #246437; }
.admin-ui .evidence-card.evidence-unknown .evidence-card-info strong { color: #fff; }
.admin-ui .evidence-card.evidence-unknown .evidence-card-info small { color: #ffe5e2; }
.admin-ui .evidence-card.evidence-unknown .evidence-card-info a { color: #fff1c9; }
.alert-card.alert-unknown { border-radius: 9px; border-bottom-color: #e9a19a; background: #fff0ee; }
.evidence-photo-missing { display: grid; height: 105px; place-items: center; background: #f0f2f0; color: #69756d; font-size: 11px; }
@media(max-width:760px) { .recognition-evidence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .evidence-photo-link { height: 125px; } }
