:root {
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:#292b25;
    background:#f5f5f0;
    font-size:15px;
    line-height:1.55;
    --ink:#292b25;
    --muted:#717469;
    --border:#e3e4db;
    --accent:#e8b866;
    --green:#2e6950;
    --sidebar:260px;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
}
a {
    color:inherit;
    text-decoration:none;
}
button,input,select {
    font:inherit;
}
button,a,input,select,summary {
    touch-action:manipulation;
}
button {
    cursor:pointer;
}
a,button,input,select,summary {
    outline-offset:4px;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
    outline:3px solid #a46e1b;
}
button:disabled {
    cursor:wait;
    opacity:.6;
}
[hidden] {
    display:none!important;
}
h1,h2,h3,p {
    margin:0;
}
h1 {
    font-size:clamp(1.65rem,2.4vw,2.2rem);
    line-height:1.25;
    font-weight:650;
    letter-spacing:-.035em;
}
h2 {
    font-size:1.18rem;
    line-height:1.4;
    font-weight:650;
    letter-spacing:-.018em;
}
h3 {
    font-size:1.08rem;
    font-weight:650;
}
p {
    color:#65695e;
}
strong {
    font-weight:650;
}
.icon {
    display:inline-block;
    width:21px;
    height:21px;
    flex-shrink:0;
    vertical-align:middle;
}
.muted,.field-hint {
    color:var(--muted);
}
.small,.field-hint {
    font-size:.85rem;
}
.nowrap {
    white-space:nowrap;
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.skip-link {
    position:fixed;
    top:-100px;
    left:1rem;
    z-index:20;
    padding:.8rem;
    background:#fff;
    border-radius:8px;
}
.skip-link:focus {
    top:1rem;
}
.sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--sidebar);
    background:#262820;
    color:#e5e7de;
    padding:34px 20px 22px;
    display:flex;
    flex-direction:column;
    z-index:3;
}
.brand {
    display:flex;
    gap:12px;
    align-items:center;
    padding:0 8px;
    color:#fff;
    font-size:1.23rem;
    letter-spacing:-.02em;
    line-height:1.4;
}
.brand b {
    color:var(--accent);
    font-weight:600;
}
.brand small {
    display:block;
    color:#a7ac9d;
    font-size:.72rem;
    letter-spacing:.025em;
    margin-top:3px;
}
.brand-mark {
    width:43px;
    height:47px;
    border:1px solid #616349;
    border-radius:11px;
    display:grid;
    place-items:center;
    color:var(--accent);
    flex-shrink:0;
}
.brand-mark .icon {
    width:27px;
    height:27px;
}
.nav-label {
    margin:48px 15px 12px;
    color:#929987;
    text-transform:uppercase;
    font-size:.67rem;
    letter-spacing:.14em;
}
.main-nav {
    display:grid;
    gap:7px;
}
.nav-item {
    display:flex;
    gap:13px;
    align-items:center;
    min-height:47px;
    padding:10px 15px;
    border-radius:8px;
    color:#bfc5b6;
    font-weight:500;
    font-size:.94rem;
}
.nav-item:hover {
    background:#34372d;
    color:white;
}
.nav-item.active {
    background:#e8b866;
    color:#292b25;
}
.sidebar-bottom {
    margin-top:auto;
    padding:30px 10px 0;
}
.sidebar-note {
    display:flex;
    gap:10px;
    align-items:center;
    font-size:.76rem;
    color:#b2b9a6;
}
.sidebar-note small {
    display:block;
    color:#8c9580;
    font-size:.69rem;
    margin-top:3px;
}
.account {
    display:flex;
    align-items:center;
    gap:10px;
    margin:25px 0 14px;
    padding-top:22px;
    border-top:1px solid #404437;
    min-width:0;
}
.account>div {
    min-width:0;
}
.account strong,.account small {
    display:block;
    overflow-wrap:anywhere;
}
.account strong {
    font-size:.85rem;
    color:#e9ece2;
}
.account small {
    font-size:.7rem;
    color:#a7af9b;
    margin-top:2px;
}
.avatar {
    display:grid;
    place-items:center;
    width:35px;
    height:35px;
    background:#424735;
    color:#e9cf9b;
    border:1px solid #555d47;
    border-radius:50%;
    font-weight:600;
    flex-shrink:0;
}
.logout {
    display:flex;
    align-items:center;
    gap:9px;
    background:none;
    border:0;
    color:#b5bca8;
    font-size:.8rem;
    padding:8px 0;
}
.logout:hover {
    color:white;
}
.workspace {
    margin-left:var(--sidebar);
    min-height:100vh;
    display:flex;
    flex-direction:column;
}
.topbar {
    height:75px;
    background:#fff;
    border-bottom:1px solid var(--border);
    padding:0 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:.82rem;
    color:#777d6e;
}
.topbar strong {
    color:#3c4134;
    font-weight:500;
    margin-left:5px;
}
.topbar-private {
    display:flex;
    gap:7px;
    align-items:center;
    font-size:.73rem;
}
.topbar-private .icon {
    width:15px;
    height:15px;
}
main {
    padding:42px 40px 30px;
    width:100%;
    max-width:1490px;
    margin:0 auto;
    flex:1;
    min-width:0;
}
main:focus {
    outline:none;
}
footer {
    padding:22px 40px;
    color:#717962;
    font-size:.72rem;
    display:flex;
    align-items:center;
    gap:8px;
}
.footer-private {
    margin-left:auto;
}
.page-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin-bottom:32px;
}
.eyebrow {
    display:block;
    color:#6c725f;
    font-size:.65rem;
    letter-spacing:.15em;
    font-weight:650;
    margin-bottom:10px;
}
.page-heading p {
    margin-top:9px;
    font-size:.92rem;
}
.badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    white-space:normal;
    max-width:100%;
    background:#f0f1eb;
    color:#646c57;
    border:1px solid #e2e5d9;
    padding:4px 9px;
    border-radius:6px;
    font-size:.7rem;
    line-height:1.45;
    font-weight:550;
    overflow-wrap:anywhere;
}
.badge .icon {
    width:15px;
    height:15px;
}
.badge-success {
    background:#edf5ef;
    color:#386b4b;
    border-color:#d9e8dc;
}
.badge-warning {
    background:#fff6e7;
    color:#8e651f;
    border-color:#eddcbf;
}
.page-heading>.badge {
    white-space:nowrap;
}
.icon-box {
    width:44px;
    height:44px;
    background:#f8f1e3;
    color:#9c7835;
    display:inline-grid;
    place-items:center;
    border-radius:11px;
    flex-shrink:0;
}
.icon-box-green {
    background:#edf3e9;
    color:#607b48;
}
.overview-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin-bottom:38px;
}
.overview-card {
    padding:24px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    display:flex;
    gap:19px;
    align-items:center;
    transition:border-color .15s,box-shadow .15s;
}
.overview-card:hover,.camera-card:hover {
    border-color:#bdc3ad;
    box-shadow:0 4px 18px #242c1610;
}
.overview-card>.icon {
    margin-left:auto;
    color:#a0a58f;
    width:18px;
}
.overview-card h2 {
    font-size:.9rem;
    margin-top:3px;
}
.overview-card p {
    font-size:.75rem;
    margin-top:6px;
    color:#737a66;
}
.stat-value {
    font-size:1.9rem;
    line-height:1.2;
    letter-spacing:-.04em;
    font-weight:600;
}
.stat-label {
    font-size:1.35rem;
    color:#477053;
    font-weight:550;
}
.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}
.section-heading p {
    font-size:.83rem;
    margin-top:5px;
}
.text-link,.back-link {
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#777348;
    font-size:.84rem;
    font-weight:550;
}
.text-link:hover,.back-link:hover {
    color:#303b21;
    text-decoration:underline;
}
.text-link .icon {
    width:17px;
}
.back-link {
    margin-bottom:22px;
    color:#737a65;
}
.camera-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}
.camera-card {
    background:white;
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    transition:box-shadow .15s,border-color .15s;
}
.camera-visual {
    height:180px;
    background:#30372e;
    display:grid;
    place-items:center;
    position:relative;
    overflow:hidden;
    color:#bec9ae;
}
.camera-grid-pattern {
    position:absolute;
    inset:0;
    background:linear-gradient(145deg,#404b3a30,transparent),linear-gradient(#9eaa870a 1px,transparent 1px),linear-gradient(90deg,#9eaa870a 1px,transparent 1px);
    background-size:100% 100%,24px 24px,24px 24px;
}
.camera-visual>.icon {
    width:48px;
    height:48px;
    opacity:.65;
}
.camera-tag {
    position:absolute;
    top:14px;
    left:15px;
    font-size:.55rem;
    letter-spacing:.14em;
    color:#c3ceb2;
    border:1px solid #75856250;
    background:#1c241b80;
    padding:4px 7px;
    border-radius:4px;
}
.camera-open {
    position:absolute;
    right:15px;
    bottom:15px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#e8b866;
    color:#343827;
    display:grid;
    place-items:center;
}
.camera-open .icon {
    width:15px;
    height:15px;
    margin-left:2px;
}
.camera-body {
    padding:21px;
}
.camera-body p {
    font-size:.74rem;
    margin:5px 0 20px;
    color:#737a66;
}
.camera-body .button {
    width:100%;
    justify-content:space-between;
    font-size:.8rem;
}
.info-strip {
    display:flex;
    gap:11px;
    align-items:flex-start;
    margin-top:25px;
    padding:15px 0;
    color:#9ca38d;
}
.info-strip .icon {
    width:17px;
    height:17px;
    margin-top:2px;
}
.info-strip p {
    font-size:.77rem;
    color:#717962;
    max-width:830px;
}
.empty-state {
    grid-column:1/-1;
    border:1px dashed #d1d7c6;
    border-radius:12px;
    min-height:260px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:32px;
    text-align:center;
}
.empty-state h2 {
    margin:15px 0 9px;
}
.empty-state p {
    max-width:500px;
    font-size:.88rem;
    margin-bottom:17px;
}
.panel {
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:25px;
    margin-bottom:24px;
    min-width:0;
}
.panel>p {
    font-size:.88rem;
    margin:10px 0 18px;
}
.panel-heading {
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:24px;
}
.panel-heading p {
    font-size:.78rem;
    margin-top:4px;
}
.security-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    align-items:start;
}
.stack {
    display:flex;
    flex-direction:column;
    gap:17px;
    margin-top:24px;
}
.stack>.button {
    align-self:flex-start;
}
.stack label {
    width:100%;
}
label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:.8rem;
    font-weight:550;
    color:#545c48;
}
input:not([type=hidden]),select {
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid #d9ddcf;
    border-radius:7px;
    background:#fff;
    color:#30362a;
    font-size:.9rem;
    min-width:0;
}
input::placeholder {
    color:#747e64;
}
select {
    padding-right:24px;
}
input:hover,select:hover {
    border-color:#aeb99e;
}
.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:42px;
    padding:10px 17px;
    border:1px solid #30382a;
    border-radius:7px;
    color:#fff;
    background:#30382a;
    font-weight:550;
    font-size:.82rem;
    line-height:1.45;
    text-align:center;
}
.button:hover {
    background:#48523d;
    border-color:#48523d;
}
.button-secondary {
    background:#fff;
    color:#525e44;
    border-color:#d9dfce;
}
.button-secondary:hover {
    background:#f4f6ef;
    border-color:#b6c2a7;
}
.button-danger {
    background:#fff6f3;
    color:#a24332;
    border-color:#ebcfc6;
}
.button-danger:hover {
    background:#f8e7e1;
    border-color:#cf9b8b;
}
.button-small {
    min-height:32px;
    padding:5px 11px;
    font-size:.73rem;
}
.button .icon {
    width:17px;
    height:17px;
}
.button-row {
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}
.button.disabled {
    opacity:.4;
    pointer-events:none;
}
.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin-top:25px;
}
.form-footer {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:18px;
    justify-content:space-between;
}
.form-footer p {
    max-width:500px;
}
.field-hint {
    font-weight:400;
}
.stack>.field-hint {
    margin-top:-10px;
}
.notice {
    display:flex;
    gap:11px;
    padding:15px 18px;
    border-radius:9px;
    border:1px solid var(--border);
    font-size:.85rem;
    margin-bottom:24px;
    align-items:flex-start;
}
.notice .icon {
    width:18px;
    height:18px;
    margin-top:2px;
}
.notice-success {
    background:#edf6ee;
    color:#396948;
    border-color:#d5e8d8;
}
.notice-error {
    background:#fcf0ec;
    color:#9b4432;
    border-color:#efd6ce;
}
.notice-warning {
    background:#fff7e9;
    color:#8b682b;
    border-color:#eee0c5;
}
.notice-info {
    background:#f0f3e9;
    color:#5b6949;
    border-color:#dfe5d3;
}
.notice ul {
    margin:5px 0 0;
    padding-left:18px;
}
.field-error {
    color:#ab4932;
    font-size:.85rem;
}
summary {
    cursor:pointer;
    font-size:.84rem;
    font-weight:550;
    color:#64724f;
    padding:8px 0;
}
details p {
    font-size:.83rem;
    margin:12px 0;
}
details form {
    margin-top:15px;
}
.steps {
    padding-left:22px;
    font-size:.85rem;
    color:#747d66;
    line-height:2.2;
}
.qr-code {
    padding:16px;
    background:#fff;
    display:inline-block;
    border:1px solid var(--border);
    border-radius:8px;
}
.qr-code svg {
    width:190px;
    height:190px;
    max-width:100%;
}
.setup-key {
    display:block;
    padding:13px 0;
    font-size:.85rem;
    overflow-wrap:anywhere;
    letter-spacing:.04em;
}
.otp {
    letter-spacing:.3em;
    font-size:1.3rem!important;
    max-width:230px;
}
.security-active {
    display:flex;
    align-items:flex-start;
    gap:12px;
    background:#f1f6ed;
    padding:17px;
    border-radius:8px;
    color:#5d7a44;
}
.security-active p {
    font-size:.82rem;
    margin-top:5px;
}
.recovery-details {
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    padding:11px 0;
    margin:22px 0;
}
.recovery-codes {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    list-style:none;
    padding:12px;
    gap:9px;
    background:#f5f7f0;
    border-radius:7px;
    font-size:.8rem;
}
.danger-details {
    margin-top:30px;
}
.danger-details summary {
    color:#a17a68;
}
.tabs {
    display:flex;
    gap:7px;
    margin:0 0 26px;
    border-bottom:1px solid var(--border);
    overflow-x:auto;
}
.tab {
    display:flex;
    align-items:center;
    gap:8px;
    padding:13px 16px;
    color:#808774;
    white-space:nowrap;
    font-size:.86rem;
    border-bottom:2px solid transparent;
}
.tab .icon {
    width:17px;
    height:17px;
}
.tab.active {
    color:#424f32;
    border-color:#9cae79;
    font-weight:650;
}
.tab:hover {
    color:#353f2b;
}
.count {
    font-size:.74rem;
    background:#edf0e6;
    border-radius:5px;
    padding:2px 7px;
    color:#788466;
    vertical-align:middle;
    margin-left:5px;
}
.search-form {
    display:flex;
    gap:10px;
    margin-bottom:20px;
    align-items:center;
    flex-wrap:wrap;
}
.search-form input {
    max-width:320px;
}
.table-scroll {
    overflow-x:auto;
    max-width:100%;
}
table {
    width:100%;
    border-collapse:collapse;
    font-size:.8rem;
    text-align:left;
}
th {
    padding:12px 14px;
    color:#6c765d;
    font-size:.68rem;
    font-weight:550;
    letter-spacing:.03em;
    background:#f7f8f3;
    white-space:nowrap;
}
td {
    padding:16px 14px;
    border-bottom:1px solid #edf0e6;
    color:#5e6851;
    vertical-align:top;
}
td strong {
    color:#39432e;
}
td small {
    display:block;
    font-size:.73rem;
    color:#717962;
    margin-top:4px;
}
tr:last-child td {
    border-bottom:0;
}
.table-empty {
    text-align:center;
    padding:36px;
}
.you {
    font-size:.65rem;
    color:#9ca88e;
}
.row-actions {
    min-width:115px;
}
.row-actions summary {
    padding:0;
    font-size:.76rem;
}
.row-actions form {
    margin:10px 0 0;
}
.row-actions .button {
    font-size:.72rem;
    white-space:nowrap;
}
.role-list {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:20px 0;
}
.module-row {
    display:flex;
    align-items:center;
    gap:20px;
    border-top:1px solid var(--border);
    padding:25px 0 5px;
    margin-top:22px;
}
.module-description {
    flex:1;
}
.module-description p {
    font-size:.82rem;
    max-width:400px;
    margin:5px 0 12px;
}
.inline-form {
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}
.inline-form select {
    width:auto;
}
.pagination {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-top:25px;
    font-size:.77rem;
    color:#6d785e;
}
.page-number {
    font-size:.76rem;
    padding:0 5px;
}
.pagination .button {
    font-size:.74rem;
    min-height:35px;
}
.live-panel {
    padding:12px 12px 0;
}
.live-toolbar {
    padding:18px 10px;
    display:flex;
    gap:20px;
    align-items:center;
    justify-content:space-between;
}
.live-toolbar p {
    font-size:.8rem;
}
.live-toolbar .button {
    flex-shrink:0;
}
video {
    display:block;
    width:100%;
    max-height:70vh;
    min-height:180px;
    background:#111711;
    border-radius:7px;
}
video[hidden] {
    display:none;
}
dialog {
    border:1px solid var(--border);
    padding:30px;
    width:min(480px,calc(100% - 32px));
    border-radius:14px;
    box-shadow:0 20px 80px #141b2040;
    color:var(--ink);
}
dialog::backdrop {
    background:#18201685;
    backdrop-filter:blur(3px);
}
dialog .stack {
    margin:0;
}
dialog h2 {
    font-size:1.4rem;
}
dialog p {
    font-size:.86rem;
}
.guest {
    --sidebar:40vw;
}
.guest .sidebar {
    padding:42px 45px;
    background:radial-gradient(ellipse at 90% 100%,#465436 0,transparent 65%),#262820;
}
.guest .brand {
    font-size:1.4rem;
}
.guest-intro {
    margin:auto 8px;
    max-width:370px;
    padding:60px 0;
}
.guest-intro .eyebrow {
    color:#aab798;
    font-size:.65rem;
    letter-spacing:.2em;
}
.guest-intro h2 {
    font-size:clamp(2.5rem,3.7vw,4rem);
    line-height:1.12;
    color:#f2f2e7;
    letter-spacing:-.045em;
    font-weight:500;
    margin:25px 0;
}
.guest-intro p {
    color:#b8c2a8;
    font-size:.93rem;
    line-height:1.85;
    max-width:320px;
}
.guest-intro p.small {
    font-size:.78rem;
    color:#95a381;
}
.guest-line {
    width:45px;
    height:2px;
    background:#a3b389;
    margin:30px 0;
}
.guest .topbar {
    background:transparent;
    border:0;
    justify-content:flex-end;
}
.guest .topbar>span:first-child {
    display:none;
}
.guest main {
    display:flex;
    flex-direction:column;
    justify-content:center;
    max-width:530px;
    padding:40px;
}
.auth-card {
    width:100%;
}
.auth-card>.icon-box {
    margin-bottom:24px;
}
.auth-card h1 {
    font-size:1.9rem;
}
.auth-card>p {
    font-size:.88rem;
    margin-top:12px;
}
.auth-card .stack {
    margin-top:30px;
    gap:21px;
}
.auth-card .stack>.button {
    width:100%;
    margin-top:5px;
}
.auth-help {
    border-top:1px solid var(--border);
    margin-top:30px;
    padding-top:22px;
    font-size:.8rem;
}
.auth-help p {
    font-size:.79rem;
    margin-top:6px;
    line-height:1.7;
}
.auth-help strong {
    font-size:.83rem;
}
.auth-card>.back-link {
    margin-top:22px;
}
.guest footer {
    font-size:.67rem;
    padding-bottom:25px;
}
.guest .footer-private {
    display:none;
}
@media(min-width:1600px) {
    :root {
        --sidebar:280px;
    }
    main {
        padding-top:50px;
    }
    .sidebar {
        padding-top:42px;
    }
    .camera-visual {
        height:210px;
    }
}
@media(max-width:1250px) {
    :root {
        --sidebar:228px;
    }
    .sidebar {
        padding-left:15px;
        padding-right:15px;
    }
    .brand {
        font-size:1.07rem;
        gap:8px;
    }
    .brand-mark {
        width:38px;
    }
    .topbar,footer {
        padding-left:28px;
        padding-right:28px;
    }
    main {
        padding:32px 28px;
    }
    .camera-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .overview-card {
        padding:20px;
        gap:13px;
    }
    .overview-card>.icon {
        display:none;
    }
    .overview-card p {
        font-size:.71rem;
    }
    .module-row {
        flex-wrap:wrap;
    }
    .module-row form {
        margin-left:64px;
    }
    .guest {
        --sidebar:40vw;
    }
    .guest .sidebar {
        padding:30px;
    }
}
@media(max-width:1000px) {
    .security-grid {
        grid-template-columns:1fr;
    }
    .overview-grid {
        gap:14px;
    }
    .overview-card {
        align-items:flex-start;
    }
    .overview-card>.icon-box {
        display:none;
    }
    .page-heading {
        align-items:flex-start;
    }
    .page-heading>.badge {
        font-size:.65rem;
    }
    .guest .sidebar {
        padding:30px 20px;
    }
    .guest .brand {
        font-size:1.15rem;
    }
    .guest-intro h2 {
        font-size:2.6rem;
    }
    .guest main {
        padding:30px;
    }
    .guest footer {
        flex-wrap:wrap;
    }
}
@media(max-width:760px) {
    .sidebar {
        position:static;
        width:100%;
        padding:18px 20px 0;
    }
    .brand {
        font-size:1.1rem;
    }
    .brand-mark {
        height:37px;
        width:35px;
        border-radius:8px;
    }
    .brand-mark .icon {
        height:22px;
        width:22px;
    }
    .brand small {
        font-size:.65rem;
    }
    .nav-label,.sidebar-note,.account {
        display:none;
    }
    .main-nav {
        display:flex;
        gap:3px;
        overflow-x:auto;
        margin-top:18px;
    }
    .nav-item {
        white-space:nowrap;
        padding:12px 11px;
        min-height:44px;
        border-radius:7px 7px 0 0;
        font-size:.79rem;
        gap:7px;
    }
    .nav-item .icon {
        height:17px;
        width:17px;
    }
    .sidebar-bottom {
        position:absolute;
        right:20px;
        top:19px;
        padding:0;
        margin:0;
    }
    .logout {
        font-size:.72rem;
        gap:6px;
        padding:8px 0;
    }
    .logout .icon {
        width:16px;
        height:16px;
    }
    .workspace {
        margin:0;
        min-height:calc(100vh - 116px);
    }
    .topbar {
        height:46px;
        padding:0 20px;
        font-size:.72rem;
    }
    .topbar-private {
        font-size:.63rem;
    }
    .topbar-private .icon {
        width:13px;
        height:13px;
    }
    main {
        padding:26px 20px 15px;
    }
    .page-heading {
        margin-bottom:25px;
        gap:10px;
    }
    .page-heading>.badge {
        display:none;
    }
    .page-heading p {
        font-size:.84rem;
    }
    .eyebrow {
        font-size:.6rem;
    }
    .overview-grid {
        margin-bottom:28px;
    }
    .overview-card {
        padding:17px;
        gap:0;
    }
    .overview-card h2 {
        font-size:.82rem;
    }
    .overview-card p {
        font-size:.7rem;
    }
    .stat-label {
        font-size:1.15rem;
    }
    .stat-value {
        font-size:1.7rem;
    }
    .section-heading {
        gap:10px;
    }
    .section-heading p {
        font-size:.78rem;
    }
    .section-heading .text-link {
        font-size:.75rem;
        white-space:nowrap;
    }
    .panel {
        padding:20px;
        margin-bottom:20px;
    }
    .security-grid {
        gap:0;
    }
    .tabs {
        margin-bottom:20px;
    }
    .tab {
        padding:12px 10px;
        font-size:.78rem;
    }
    .tab .icon {
        width:15px;
        height:15px;
    }
    .form-grid {
        gap:16px;
    }
    .form-footer {
        align-items:flex-start;
        flex-direction:column;
    }
    .live-panel {
        padding:7px 7px 0;
    }
    .live-toolbar {
        flex-direction:column;
        align-items:flex-start;
        padding:15px 8px;
    }
    .live-toolbar .button {
        font-size:.75rem;
    }
    .info-strip {
        margin-top:17px;
    }
    .module-row form {
        margin-left:0;
    }
    .module-row {
        gap:14px;
    }
    .module-description {
        min-width:180px;
    }
    .pagination {
        align-items:flex-start;
        flex-direction:column;
    }
    .pagination .button-row {
        flex-wrap:nowrap;
        gap:5px;
    }
    footer {
        padding:20px;
        font-size:.66rem;
        flex-wrap:wrap;
    }
    .footer-private {
        display:none;
    }
    .guest .sidebar {
        padding:22px;
    }
    .guest .sidebar-bottom,.guest-intro {
        display:none;
    }
    .guest .workspace {
        min-height:calc(100vh - 81px);
    }
    .guest .topbar {
        height:35px;
        padding:0 22px;
    }
    .guest main {
        max-width:480px;
        padding:25px 25px 40px;
    }
    .guest .brand {
        font-size:1.2rem;
    }
    .guest .brand small {
        font-size:.68rem;
    }
    .guest footer {
        justify-content:center;
    }
    .auth-card h1 {
        font-size:1.7rem;
    }
}
@media(max-width:480px) {
    .camera-grid {
        grid-template-columns:1fr;
    }
    .camera-visual {
        height:170px;
    }
    .camera-body {
        padding:19px;
    }
    .overview-grid {
        gap:10px;
    }
    .overview-card {
        padding:15px 12px;
    }
    .overview-card p {
        font-size:.67rem;
    }
    .overview-card h2 {
        font-size:.76rem;
    }
    .section-heading {
        flex-wrap:wrap;
    }
    .form-grid {
        grid-template-columns:1fr;
    }
    .form-footer {
        grid-column:1;
    }
    .search-form input {
        max-width:none;
    }
    .panel {
        padding:18px;
    }
    .live-panel {
        padding:6px 6px 0;
    }
    .button-row .button {
        flex:1;
    }
    .nav-item {
        padding:12px 9px;
        font-size:.75rem;
    }
    .nav-item .icon {
        display:none;
    }
    .sidebar {
        padding-left:16px;
        padding-right:16px;
    }
    .sidebar-bottom {
        right:16px;
    }
    .logout {
        font-size:.68rem;
    }
    .topbar-private {
        display:none;
    }
    .guest .topbar-private {
        display:flex;
    }
    .recovery-codes {
        font-size:.7rem;
    }
    .notice {
        padding:13px;
        font-size:.8rem;
    }
    .pagination .button {
        font-size:.69rem;
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior:auto!important;
        transition:none!important;
    }
}
