:root{--bg:#f4f6f9;--surface:#fff;--surface-subtle:#f8fafc;--text:#233044;--muted:#617086;--brand:#285ea8;--brand-hover:#204b87;--brand-soft:#edf3fc;--line:#dde3eb;--input-line:#8392a6;--danger:#b3333e;--sidebar:#1e2b3e;--radius:8px;--space:8px;--font:"Segoe UI","Microsoft JhengHei",system-ui,sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font:14px/1.6 var(--font);margin:0}button,input,select{font:inherit}button{cursor:pointer;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:6px;min-height:42px;padding:8px 16px;font-weight:600}button:hover{background:var(--surface-subtle);border-color:var(--input-line)}button.primary{background:var(--brand);border-color:var(--brand);color:#fff}button.primary:hover{background:var(--brand-hover)}button:disabled{cursor:not-allowed;color:#778294;border-color:var(--line);background:#f0f2f5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #4685db}.layout{grid-template-columns:216px minmax(0,1fr);min-height:100dvh;display:grid}aside{background:var(--sidebar);color:#fff;padding:24px 16px}.brand{align-items:center;gap:10px;padding:0 4px;font-size:19px;font-weight:650;line-height:1.4;display:flex}.mark{color:#edf3fc;letter-spacing:1px;background:#344860;border:1px solid #53657d;border-radius:8px;place-items:center;width:36px;height:36px;font-size:12px;display:grid}.brand small{letter-spacing:1px;color:#b9c7d9;font-size:10px;font-weight:400;display:block}.nav-label{color:#adbbcd;letter-spacing:1px;margin:42px 16px 12px;font-size:11px}nav{gap:6px;display:grid}nav button{text-align:left;color:#c6d1e0;background:0 0;border:1px solid #0000;align-items:center;gap:12px;font-weight:400;display:flex}.nav-index{letter-spacing:1px;opacity:.8;font-variant-numeric:tabular-nums;font-size:10px}nav button:hover{background:#2b3c53;border-color:#0000}nav button[aria-current=page]{color:#fff;background:#344860;border-color:#4b607d;font-weight:600}.workspace{min-width:0}header{border-bottom:1px solid var(--line);background:var(--surface);height:64px;color:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:0 36px;font-size:12px;display:flex}.breadcrumb{align-items:center;gap:12px;display:flex}.breadcrumb b{color:var(--text);font-weight:500}.preview-label{border:1px solid var(--line);white-space:nowrap;border-radius:4px;padding:3px 9px;font-size:11px}main{max-width:1280px;margin:0 auto;padding:32px 36px 48px}.heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px;display:flex}h1{letter-spacing:-.5px;margin:0 0 8px;font-size:28px;font-weight:650;line-height:1.3}h2{margin:0;font-size:16px;font-weight:650}h3{margin:12px 0 4px;font-size:16px;font-weight:600}.sub,.muted,.helper{color:var(--muted)}.sub{margin:0;font-size:13px}.heading .actions{flex-shrink:0}.preview-note{background:var(--brand-soft);color:#405c7e;border:1px solid #d5e1f2;border-radius:6px;align-items:baseline;gap:12px;margin-bottom:24px;padding:11px 16px;font-size:12px;display:flex}.preview-note strong{white-space:nowrap;color:var(--brand);font-weight:600}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px;overflow:hidden;box-shadow:0 2px 3px #23304403}.section-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:19px 24px;display:flex}.section-head p{color:var(--muted);margin:3px 0 0;font-size:12px}.section-number{color:var(--muted);letter-spacing:1px;font-size:11px}.panel-body{padding:24px}.actions{flex-wrap:wrap;gap:8px;display:flex}.fields{grid-template-columns:1.4fr 1fr 1fr;gap:24px;display:grid}label{align-content:start;gap:7px;font-size:12px;font-weight:600;display:grid}input,select{border:1px solid var(--input-line);background:var(--surface);width:100%;min-width:0;min-height:42px;color:var(--text);border-radius:6px;padding:8px 12px;font-size:13px;font-weight:400}input[aria-invalid=true]{border-color:var(--danger)}.validation{color:var(--danger);margin:8px 0 0;font-size:12px}.helper{margin:14px 0 0;font-size:11px}.form-footer{background:var(--surface-subtle);border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;display:flex}.form-footer .helper{margin:0}.badge{background:var(--brand-soft);color:var(--brand);white-space:nowrap;border-radius:4px;align-items:center;gap:6px;padding:3px 8px;font-size:11px;font-weight:500;display:inline-flex}.badge.neutral{color:#526176;background:#f0f3f7}.table-wrap{overflow:auto}table{border-collapse:collapse;text-align:left;width:100%}th{color:var(--muted);background:var(--surface-subtle);font-size:11px;font-weight:600}th,td{border-bottom:1px solid var(--line);padding:14px 24px}td{font-size:13px}td small{color:var(--muted);margin-top:4px;font-size:11px;display:block}td:nth-child(3){font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}th:last-child,td:last-child{text-align:right}td button{min-height:36px;color:var(--brand);background:0 0;border-color:#0000;padding:5px 10px;font-size:12px}.pagination{color:var(--muted);justify-content:space-between;align-items:center;padding:16px 24px;font-size:12px;display:flex}.pagination button{min-height:36px;padding:5px 12px;font-size:12px}.state{min-height:192px;color:var(--muted);text-align:center;align-content:center;justify-items:center;padding:32px 24px;display:grid}.state p{margin:4px 0 16px;font-size:12px}.state-symbol{border:1px solid var(--line);background:var(--surface-subtle);border-radius:8px;place-items:center;width:32px;height:32px;font-size:16px;display:grid}.error h3,.error .state-symbol{color:var(--danger)}.loader{border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;width:24px;height:24px;margin-bottom:12px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.overview{padding:28px}.overview p{color:var(--muted)}dialog{border:1px solid var(--line);width:calc(100% - 32px);max-width:448px;color:var(--text);border-radius:12px;padding:0;box-shadow:0 24px 80px #13233e33}dialog::backdrop{background:#16223880}.dialog-body{padding:28px}dialog h2{margin:12px 0 8px;font-size:19px}dialog p{color:var(--muted);margin:0;font-size:13px}dialog .actions{border-top:1px solid var(--line);background:var(--surface-subtle);justify-content:flex-end;padding:16px 24px}.toast{background:var(--sidebar);color:#fff;border:1px solid #4b607d;border-radius:8px;max-width:calc(100% - 48px);padding:12px 20px;font-size:13px;position:fixed;bottom:24px;right:24px;box-shadow:0 4px 20px #23304422}.skip{z-index:10;background:#fff;padding:12px;position:absolute;top:-100px;left:16px}.skip:focus{top:16px}.sr-only{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=1024px){.layout{grid-template-columns:192px minmax(0,1fr)}main{padding:28px 24px}header{padding:0 24px}.heading{flex-direction:column;align-items:flex-start;gap:16px}.fields{grid-template-columns:1fr;gap:16px}}@media (width<=640px){.layout{display:block}aside{padding:16px}.brand{font-size:17px}.brand small{font-size:9px}.nav-label{display:none}nav{gap:8px;margin-top:16px;display:flex}nav button{flex:1;padding:8px 12px;font-size:12px}header{gap:8px;height:auto;min-height:56px;padding:12px 16px}.breadcrumb{gap:8px;font-size:11px}.preview-label{font-size:10px}main{padding:24px 16px}h1{font-size:25px}.preview-note{padding:12px 14px;display:block}.preview-note strong{margin-bottom:4px;display:block}.panel{margin-bottom:20px}.section-head{padding:16px}.panel-body{padding:20px 16px}.form-footer{flex-direction:column;align-items:flex-start;gap:12px;padding:14px 16px}.table-wrap{padding:0 16px;overflow:visible}table,tbody,tr{display:block}thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}tbody tr{padding:12px 0}td{overflow-wrap:anywhere;border:0;grid-template-columns:64px minmax(0,1fr);gap:4px 12px;padding:9px 0;display:grid}td:before{content:attr(data-label);color:var(--muted);grid-area:1/1;font-size:11px}td small{grid-column:2;margin:0}td .badge,td button{justify-self:start}td:last-child{text-align:left}td button{min-height:42px;padding:6px 0}.pagination{border-top:1px solid var(--line);flex-wrap:wrap;gap:12px;padding:16px}.pagination button{min-height:42px}.toast{max-width:calc(100% - 32px);bottom:16px;right:16px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation:none!important}}.api-secret{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;display:grid}.api-secret>p{grid-column:1/-1}.api-secret>label{min-width:0}.api-secret input{width:100%;min-width:0}.api-secret>button{white-space:nowrap}@media (width<=480px){.api-secret{grid-template-columns:minmax(0,1fr)}.api-secret>button{justify-self:end}}.users-app .login-page{flex-direction:column;justify-content:center;align-items:center;max-width:none;min-height:100dvh;padding:32px 20px;display:flex}.login-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;width:100%;max-width:430px;padding:32px;box-shadow:0 8px 36px #1e2b3e08}.login-logo{object-fit:contain;width:144px;height:144px;margin:-8px auto 4px;display:block}.login-kicker{text-align:center;color:var(--muted);margin:0 0 24px;font-size:12px}.login-card h1{margin-bottom:8px;font-size:24px}.login-form{gap:18px;margin:28px 0 16px;display:grid}.login-form button{min-height:44px;margin-top:4px}.login-foot{color:var(--muted);margin:20px 0 0;font-size:11px}.brand-logo{object-fit:contain;background:#fff;border-radius:8px;flex-shrink:0;width:38px;height:38px}.account-menu{align-items:center;gap:16px;display:flex}.account-menu button{min-height:36px;padding:5px 12px;font-size:12px}.users-app header{height:auto;min-height:72px;padding-top:12px;padding-bottom:12px}.users-app .profile{max-width:560px}.profile form{gap:18px;display:grid}.profile button{justify-self:start}.inline-error{color:var(--danger);background:#fff2f3;border:1px solid #edc7cc;border-radius:8px;margin-bottom:20px;padding:14px 16px}.inline-error button{margin-left:12px}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.row-actions button{white-space:nowrap}.badge.warn{color:#874919;background:#fff2e8}.danger-text{color:var(--danger)!important}button.danger{background:var(--danger);border-color:var(--danger);color:#fff}.users-app dialog{max-height:calc(100dvh - 32px);overflow:auto}.dialog-fields{gap:16px;margin-top:20px;display:grid}.dialog-fields small,.password-field small{color:var(--muted);font-size:11px;font-weight:400}.password-field{margin-top:16px}.checkbox{align-items:center;gap:8px;display:flex}.checkbox input{width:16px;min-height:16px}.confirm-copy{margin-top:18px!important}.users-app td:nth-child(3){font-size:13px}.users-app nav{margin-top:0}@media (width<=1024px){.row-actions{justify-content:flex-start}.users-app .brand{font-size:16px}}@media (width<=640px){.login-card{padding:24px}.login-logo{width:128px;height:128px}.users-app .brand-logo{width:36px;height:36px}.users-app nav{flex-wrap:wrap;margin-top:16px}.users-app nav button{flex:auto}.users-app header{flex-direction:column;align-items:flex-start;gap:12px}.account-menu{justify-content:space-between;width:100%}.account-menu>span{overflow-wrap:anywhere}.users-app td .row-actions{grid-column:2;justify-content:flex-start}.users-app td .row-actions button{min-height:42px;padding:6px 8px}.users-app .heading{gap:16px}.users-app .heading>.primary{width:100%}.users-app .dialog-body{padding:24px}.users-app .nav-index{display:none}}.users-app .event-actor{overflow-wrap:anywhere;max-width:26ch;margin-top:6px;display:block}.users-app .account-menu{position:relative}.users-app .account-trigger{overflow-wrap:anywhere;align-items:center;gap:8px;max-width:100%;min-height:42px;display:flex}.users-app .account-dropdown{background:var(--surface);border:1px solid var(--line);z-index:20;border-radius:8px;min-width:160px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #1e2b3e20}.users-app .account-dropdown button{text-align:left;border:0;width:100%;min-height:42px;display:block}.users-app .password-dialog{width:min(460px,100vw - 32px)}.users-app .password-dialog .helper{margin:0}.users-app .login-card h1{text-align:center}.users-app .row-actions{max-width:350px;margin-left:auto}@media (width<=640px){.users-app .account-menu{justify-content:flex-end}.users-app .row-actions{margin-left:0}}.users-app .brand{font-size:20px;font-weight:650;line-height:1.35}.users-app .nav-label{letter-spacing:0;margin-top:36px;font-size:12px}.users-app nav button{font-size:14px}.users-app .breadcrumb{flex-wrap:wrap;gap:10px;font-size:14px}.users-app .account-trigger{background:0 0;border:0;border-radius:0;padding:6px 0 6px 12px;font-size:14px;font-weight:500}.users-app .account-trigger:hover{color:var(--brand);background:0 0}.users-app .event-filters{background:var(--surface);border:1px solid var(--line);border-radius:8px;grid-template-columns:minmax(140px,1.3fr) repeat(2,minmax(140px,1fr)) repeat(2,minmax(100px,.8fr));gap:16px;margin-bottom:24px;padding:20px 24px;display:grid}.users-app .event-filters>.actions{grid-column:1/-1;justify-content:flex-end}.users-app .security-confirm,.users-app .temporary-secret{border:1px solid var(--line);border-radius:8px;padding:16px}.users-app .temporary-secret{gap:12px;display:grid}.users-app input[readonly]{background:var(--surface-subtle)}@media (width<=1024px){.users-app .event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.users-app .brand{font-size:18px}}@media (width<=640px){.users-app .event-filters{grid-template-columns:minmax(0,1fr);padding:16px}.users-app .breadcrumb{font-size:13px}.users-app .brand{font-size:18px}}.users-app .brand{font-size:19px;font-weight:700}.users-app .nav-parent{color:#e1e8f2;background:0 0;border:1px solid #0000;justify-content:space-between;align-items:center;width:100%;margin-top:28px;padding:10px 12px;font-size:15px;font-weight:600;display:flex}.users-app .nav-parent:hover{background:#2b3c53}.users-app nav{border-left:1px solid #4b607d;gap:4px;margin:4px 0 0 12px;padding-left:8px;display:grid}.users-app nav button{padding-left:12px;font-size:14px;font-weight:500}.users-app .breadcrumb,.users-app .breadcrumb b{font-size:13px;font-weight:400}.users-app .event-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;padding:20px 24px}.users-app .event-filters h2{grid-column:1/-1;margin:0 0 2px}.users-app .event-filters>.actions{grid-column:auto;justify-content:flex-end;align-self:end}.users-app .filter-error{grid-column:1/-1;margin:0}.users-app .date-field{align-content:start;gap:7px;min-width:0;display:grid}.users-app .field-label{font-size:12px;font-weight:600}.users-app .date-trigger{border-color:var(--input-line);justify-content:space-between;gap:8px;width:100%;padding:8px 12px;font-size:13px;font-weight:400;display:flex}.users-app .calendar-dialog{width:min(348px,100vw - 32px);padding:0}.users-app .calendar-body{padding:16px}.users-app .calendar-month{justify-content:space-between;align-items:center;gap:8px;margin:16px 0 12px;display:flex}.users-app .calendar-month button{min-width:42px;padding:0;font-size:20px}.users-app .calendar-week,.users-app .calendar-days{text-align:center;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.users-app .calendar-week{color:var(--muted);margin-bottom:6px;font-size:12px}.users-app .calendar-days button{border:0;min-width:0;min-height:36px;padding:0;font-size:13px;font-weight:400}.users-app .calendar-days .other-month{color:var(--muted);background:var(--surface-subtle)}.users-app .calendar-days button[aria-pressed=true]{background:var(--brand);color:#fff}.users-app .calendar-days button:focus-visible{outline-offset:-3px}.users-app .calendar-actions{justify-content:space-between;gap:8px;margin-top:16px;display:flex}@media (width<=1024px){.users-app .event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.users-app .event-filters>.actions{grid-column:auto}}@media (width<=640px){.users-app .event-filters{grid-template-columns:minmax(0,1fr);padding:16px}.users-app nav{margin-top:4px}.users-app .nav-parent{margin-top:16px}.users-app .event-filters>.actions{grid-column:1}.users-app .brand{font-size:19px}}.users-app .event-filters.login-log-filters{flex-direction:column;gap:16px;display:flex}.users-app .event-filters.login-log-filters .log-fields{flex-wrap:wrap;align-items:flex-end;gap:16px;display:flex}.users-app .event-filters.login-log-filters .log-fields>label{width:150px;min-width:0;max-width:100%}.users-app .event-filters.login-log-filters .log-fields>label:first-child{width:220px}.users-app .event-filters.login-log-filters .log-dates{gap:16px;max-width:100%;display:flex}.users-app .event-filters.login-log-filters .log-dates>.date-field{width:180px;min-width:0}.users-app .event-filters.login-log-filters input,.users-app .event-filters.login-log-filters select,.users-app .event-filters.login-log-filters .date-trigger{height:42px;min-height:42px}.users-app .event-filters.login-log-filters>.actions{justify-content:flex-end;align-self:stretch}@media (width<=640px){.users-app .event-filters.login-log-filters .log-fields{flex-direction:column;align-items:stretch;display:flex}.users-app .event-filters.login-log-filters .log-fields>label,.users-app .event-filters.login-log-filters .log-fields>label:first-child,.users-app .event-filters.login-log-filters .log-dates,.users-app .event-filters.login-log-filters .log-dates>.date-field{width:100%}.users-app .event-filters.login-log-filters .log-dates{flex-direction:column}}.settings-page{gap:24px;display:grid}.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:8px;min-width:0;padding:24px}.settings-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.settings-heading h2{margin:0;font-size:18px}.settings-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.settings-fields label{min-width:0}.settings-fields small{color:var(--muted);font-size:12px;font-weight:400}.settings-fields input,.settings-fields select{width:100%;min-width:0}.settings-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;margin-top:24px;padding-top:20px;display:flex}.settings-footer>span{color:var(--muted)}.settings-note{color:var(--muted);margin:20px 0 0;font-size:13px;line-height:1.7}.certificate-summary{grid-template-columns:120px minmax(0,1fr);gap:16px;margin:0;display:grid}.certificate-summary dt{color:var(--muted)}.certificate-summary dd{overflow-wrap:anywhere;margin:0}.certificate-dialog{width:min(720px,100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}.certificate-dialog .dialog-body{padding:24px}.certificate-dialog .settings-heading{margin-bottom:16px}.settings-card dialog p{overflow-wrap:anywhere}.settings-page .validation button{margin-top:8px}@media (width<=640px){.settings-page{gap:16px}.settings-card{padding:16px}.settings-fields{grid-template-columns:minmax(0,1fr);gap:20px}.settings-heading{gap:12px}.settings-heading h2{font-size:16px}.settings-footer{align-items:flex-end;gap:12px}.settings-footer .actions{flex-wrap:wrap;justify-content:flex-end}.certificate-summary{grid-template-columns:1fr;gap:6px}.certificate-summary dd{margin-bottom:12px}.certificate-dialog .dialog-body{padding:16px}}.users-app .settings-heading{height:auto;min-height:0;color:var(--text);background:0 0;border:0;flex-direction:row;align-items:center;padding:0}.users-app .settings-heading h2{margin:0;font-size:16px}.users-app .settings-heading>button{flex-shrink:0}.users-app .certificate-dialog{max-width:720px}.users-app .certificate-dialog .settings-footer .actions{background:0 0;border:0;flex-wrap:nowrap;flex-shrink:0;padding:0}.users-app .certificate-dialog .dialog-body{padding:24px}@media (width<=640px){.users-app .certificate-dialog .dialog-body{padding:16px}}.retention-days-input{align-items:center;gap:12px;display:flex}.retention-days-input input{flex:1;min-width:0}.maintenance-card input{min-width:0;max-width:100%}.maintenance-card input[type=password]::-ms-reveal{display:none}.maintenance-card>form>label{max-width:480px}.maintenance-section{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.maintenance-card h3{margin:0 0 20px;font-size:15px}.maintenance-card .settings-footer{flex-wrap:wrap}.maintenance-card .settings-footer>span{flex:1;min-width:160px}.maintenance-card .settings-footer button{white-space:nowrap}.maintenance-card .maintenance-checkbox{align-items:center;gap:10px;display:flex}.maintenance-card .maintenance-checkbox input{width:auto}.maintenance-changes{overflow-wrap:anywhere;max-height:280px;overflow:auto}.maintenance-card dialog{max-width:min(560px,100vw - 32px)}.maintenance-card details summary{cursor:pointer;padding:12px 0}.data-management-card h3{margin:0 0 20px;font-size:15px}.data-management-card .storage-information{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.data-management-card .storage-summary{overflow-wrap:anywhere;flex-wrap:wrap;align-items:baseline;gap:12px 24px;display:flex}.data-management-card .storage-summary>div{align-items:baseline;gap:12px;display:flex}.data-management-card .storage-label{color:var(--muted)}.data-management-card .storage-usage{font-variant-numeric:tabular-nums;font-size:28px;line-height:1.3}.data-management-card progress{width:100%;height:8px;accent-color:var(--primary);margin:16px 0 20px;display:block}.data-management-card .storage-updated{color:var(--muted);overflow-wrap:anywhere;margin-bottom:0;font-size:13px}.maintenance-card .maintenance-upload{margin-top:20px;margin-bottom:20px}.maintenance-card input[type=file]{width:100%;box-shadow:none;font:inherit;background:0 0;border:0;border-radius:0;padding:0}.maintenance-password-row{flex-wrap:wrap;align-items:flex-end;gap:12px 16px;max-width:640px;display:flex}.maintenance-password-row>label{flex:0 240px;min-width:0;max-width:100%}.maintenance-password-row input{width:100%}.maintenance-password-row>button{white-space:nowrap;flex:none}.backup-section+.backup-section{margin-top:32px}.backup-section h3{margin-bottom:16px}@media (width<=400px){.maintenance-password-row>label{flex-basis:100%}}.maintenance-restore-form{grid-template-columns:minmax(0,1fr);justify-items:start;gap:10px;min-width:0;display:grid}.maintenance-restore-form>.maintenance-upload{width:300px;min-width:0;max-width:100%;margin:0}.maintenance-restore-form>.maintenance-password-row{width:100%;min-width:0}.maintenance-restore-form input[type=file]{text-overflow:ellipsis;white-space:nowrap;min-height:36px;overflow:hidden}.users-app .maintenance-actions{flex-wrap:wrap;justify-content:flex-start}.cctv-module .sub{color:var(--muted);margin:4px 0 0}.cctv-filters{margin-bottom:24px;padding:20px 24px}.cctv-filter-fields{grid-template-columns:minmax(180px,260px) minmax(130px,160px) auto;justify-content:start;align-items:end;gap:20px;margin-top:16px;display:grid}.cctv-module .helper{color:var(--muted);margin:0;font-size:12px;font-weight:400}.cctv-notice{border:1px solid var(--line);background:var(--surface);border-radius:6px;margin:0 0 16px;padding:12px 16px}.cctv-notice button{margin-left:12px}.cctv-row-hint{color:var(--muted);font-size:12px;font-weight:400;display:block}.cctv-more{position:relative}.cctv-actions{z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:6px;min-width:174px;padding:6px;display:grid;position:absolute;top:100%;right:0;box-shadow:0 4px 16px #2330441a}.cctv-actions button{text-align:left;border-color:#0000}.cctv-module .table-wrap,.cctv-module .panel{overflow:visible}.cctv-module .row-actions{flex-wrap:nowrap}.cctv-editor{width:min(720px,100vw - 32px);max-width:720px}.cctv-fields{grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;display:grid}.cctv-fields .full{grid-column:1/-1}.cctv-fields input,.cctv-fields label{min-width:0}.cctv-password{display:block;position:relative}.cctv-password input{width:100%;padding-right:48px}.cctv-password button{background:0 0;border:0;width:42px;padding:0;font-size:21px;position:absolute;top:1px;bottom:1px;right:1px}.cctv-tabs{border-bottom:1px solid var(--line);gap:12px;margin-top:20px;display:flex}.cctv-tabs button{color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0}.cctv-tabs button[aria-selected=true]{border-bottom-color:var(--brand);color:var(--brand)}.cctv-watch{width:min(900px,100vw - 32px);max-width:900px}.cctv-player video{aspect-ratio:16/9;background:#111820;width:100%;margin-top:16px;display:block}.overview-content{padding:24px}.overview-content p{color:var(--muted)}@media (width<=1024px){.cctv-filter-fields{grid-template-columns:1fr 1fr}.cctv-filter-fields .actions{grid-column:1/-1;justify-content:flex-end}}@media (width<=640px){.cctv-filter-fields,.cctv-fields{grid-template-columns:1fr}.cctv-filters{padding:16px}.cctv-module .heading{align-items:flex-start;gap:12px}.cctv-module .heading button{white-space:nowrap;padding:8px 10px}.cctv-module td:last-child,.cctv-module .row-actions{justify-content:flex-end}.cctv-editor .dialog-body{padding:20px}.cctv-tabs{gap:4px}}.cctv-password input::-ms-reveal{display:none}.cctv-password input::-ms-clear{display:none}.cctv-password button{place-items:center;min-width:40px;min-height:40px;display:grid}.cctv-password svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.cctv-heading-actions{flex-wrap:wrap}.cctv-import{width:min(680px,100vw - 32px);max-width:680px}.cctv-import .dialog-body{max-height:70vh;overflow:auto}.cctv-import-summary{margin:20px 0;font-weight:600}.cctv-file{max-width:290px}.cctv-file input{max-width:100%}.cctv-ack{align-items:center;gap:10px;margin-top:20px;display:flex}.cctv-ack input{width:20px;min-height:20px}.cctv-module td{overflow-wrap:anywhere}@media (width<=640px){.cctv-module .heading{flex-direction:column}.cctv-filter-fields{justify-content:stretch}.cctv-import .dialog-body{padding:16px}.cctv-import .actions{flex-wrap:wrap}.cctv-heading-actions{gap:8px}}.cctv-header-more{position:relative}.cctv-module th,.cctv-module td[data-label=API\ 狀態] .badge{white-space:nowrap}.cctv-test{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.cctv-test [role=status]{font-size:14px}.cctv-import-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.cctv-import-heading h2{margin:0}.cctv-import-heading button{white-space:nowrap}.cctv-import-file{gap:8px;margin-top:24px;display:grid}.cctv-import .cctv-file{max-width:none}.cctv-file-name{overflow-wrap:anywhere;color:var(--muted);font-size:14px}.cctv-import .actions button{min-height:42px}.cctv-module .badge.health-failed{color:#a12622;background:#fcebea}.users-app .cctv-import-heading{border:0;flex-direction:row;align-items:center;gap:12px;min-height:0;padding:0}.cctv-import-heading h2{color:var(--text)}.cctv-mode-help{color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}.cctv-copy-buffer{opacity:0;position:fixed;top:0;left:-10000px}.integration-page .api-config{padding:24px}.integration-page .api-config label{flex-direction:column;gap:8px;margin:16px 0;display:flex}.integration-page .api-tabs{gap:8px;margin:16px 0;display:flex}.integration-page .api-tabs [aria-selected=true]{border-bottom:3px solid var(--primary,#285ea8);font-weight:600}.integration-page .panel{margin-bottom:24px}.integration-page .api-secret input{width:100%;font-family:monospace}.integration-page .row-actions{flex-wrap:wrap}.integration-page .page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}@media (width<=640px){.integration-page .page-heading{flex-direction:column;align-items:flex-start}.integration-page .api-config{padding:16px}.integration-page .actions{flex-wrap:wrap}}.users-app .integration-page .event-filters.hls-filters{flex-direction:column;gap:16px;display:flex}.users-app .integration-page .event-filters.hls-filters .log-fields{flex-wrap:wrap;align-items:flex-end;gap:16px;display:flex}.users-app .integration-page .event-filters.hls-filters .log-fields>label{width:150px;min-width:0;max-width:100%}.users-app .integration-page .event-filters.hls-filters .log-fields>label:first-child{width:220px}.users-app .integration-page .event-filters.hls-filters .log-dates{gap:16px;max-width:100%;display:flex}.users-app .integration-page .event-filters.hls-filters .log-dates>.date-field{width:180px;min-width:0}.users-app .integration-page .event-filters.hls-filters input,.users-app .integration-page .event-filters.hls-filters select,.users-app .integration-page .event-filters.hls-filters .date-trigger{height:42px;min-height:42px}.users-app .integration-page .event-filters.hls-filters>.actions{justify-content:flex-end;align-self:stretch}@media (width<=640px){.users-app .integration-page .event-filters.hls-filters .log-fields{flex-direction:column;align-items:stretch;display:flex}.users-app .integration-page .event-filters.hls-filters .log-fields>label,.users-app .integration-page .event-filters.hls-filters .log-fields>label:first-child,.users-app .integration-page .event-filters.hls-filters .log-dates,.users-app .integration-page .event-filters.hls-filters .log-dates>.date-field{width:100%}.users-app .integration-page .event-filters.hls-filters .log-dates{flex-direction:column}}.bandwidth-page .panel{padding:24px}.bandwidth-page .page-heading{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.bandwidth-page .bandwidth-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;display:grid;overflow:visible}.bandwidth-filters h2,.bandwidth-filters .actions{grid-column:1/-1}.bandwidth-filters .actions{justify-content:flex-end}.bandwidth-page button,.bandwidth-page select{min-height:44px}.bandwidth-page .page-heading{flex-wrap:wrap;gap:16px}.bandwidth-range{color:var(--muted);flex-wrap:wrap;gap:10px 24px;margin:22px 0;display:flex}.bandwidth-range strong{color:var(--text)}.bandwidth-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.bandwidth-summary .panel{margin:0;padding:20px}.bandwidth-summary h2{font-size:14px}.bandwidth-summary strong{overflow-wrap:anywhere;margin:16px 0;font-size:25px;display:block}.bandwidth-summary p{color:var(--muted);font-size:12px}.bandwidth-peak p,.bandwidth-limits li{line-height:1.7}.bandwidth-chart svg{width:100%;height:auto;min-height:150px;display:block}.bandwidth-chart text{fill:var(--muted);font-size:12px}.bandwidth-chart path{fill:none;stroke-width:2px;stroke:var(--brand)}.bandwidth-chart circle{fill:var(--brand)}.bandwidth-chart .cameras path{stroke:#23776f;stroke-dasharray:6 3}.bandwidth-chart .cameras circle{fill:#23776f}.bandwidth-chart .axis{stroke:var(--muted)}.bandwidth-chart .grid{stroke:var(--line)}.bandwidth-axis{color:var(--muted);justify-content:space-between;gap:16px;font-size:12px;display:flex}.bandwidth-legend{gap:24px;display:flex}.bandwidth-legend span:first-child{color:var(--brand)}.bandwidth-legend span:last-child{color:#23776f}.bandwidth-page td{overflow-wrap:anywhere}.bandwidth-limits ul{padding-left:20px}@media (width<=1100px){.bandwidth-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.bandwidth-page .bandwidth-filters,.bandwidth-summary{grid-template-columns:1fr}.bandwidth-axis{flex-wrap:wrap;font-size:11px}.bandwidth-page .page-heading button,.bandwidth-page .bandwidth-filters .actions button{width:100%}}.bandwidth-scale{color:var(--muted);font-size:13px}.bandwidth-chart path,.bandwidth-chart line{vector-effect:non-scaling-stroke}.bandwidth-live{margin:24px 0}.bandwidth-summary h3{margin:0;font-size:14px}.bandwidth-summary .panel{flex-direction:column;align-items:flex-start;display:flex}.bandwidth-summary span{color:var(--muted);font-size:13px}.bandwidth-peak-value{align-items:baseline;gap:10px;display:flex}.bandwidth-peak-value strong{font-size:30px}.bandwidth-peak-counts{flex-wrap:wrap;gap:24px;display:flex}.bandwidth-filters>p{grid-column:1/-1;margin:0}.bandwidth-plot{position:relative}.bandwidth-yaxis{color:var(--muted);z-index:1;flex-direction:column;justify-content:space-between;font-size:13px;display:flex;position:absolute;inset:0 auto 14% 0}.bandwidth-axis{font-size:13px}.bandwidth-chart svg{min-height:0}.bandwidth-legend{flex-wrap:wrap;font-size:13px}@media (width<=640px){.bandwidth-chart svg{height:180px}.bandwidth-filters .actions{flex-wrap:wrap}.bandwidth-peak-value strong{font-size:26px}.bandwidth-yaxis{inset:0 auto 22% 0}.bandwidth-page .panel{padding:18px}}.bandwidth-yaxis{pointer-events:none;width:44px;display:block;inset:0 auto 0 0}.bandwidth-yaxis span{position:absolute;left:0}.bandwidth-yaxis span:first-child{top:0}.bandwidth-yaxis span:nth-child(2){top:14%}.bandwidth-yaxis span:nth-child(3){top:82%}.bandwidth-chart svg{width:calc(100% - 44px);margin-left:44px}.bandwidth-yaxis{text-align:right;width:38px}.bandwidth-yaxis span{left:auto;right:0}.bandwidth-axis{padding-left:44px}.bandwidth-yaxis span{white-space:nowrap}.bandwidth-card-value{align-items:baseline;gap:8px;margin-top:12px;display:flex}.bandwidth-card-value strong{margin:0}.bandwidth-summary .panel{padding:20px}.bandwidth-summary{align-items:stretch}.bandwidth-peak-value small{font-size:20px}.bandwidth-chart-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.bandwidth-chart-heading h2{margin:0}.bandwidth-legend{gap:16px;margin:0}.bandwidth-legend span{align-items:center;gap:6px;display:flex}.bandwidth-legend i{border-top:2px solid;width:18px;display:inline-block}.bandwidth-legend span:last-child i{border-top-style:dashed}.bandwidth-plot{margin-top:18px}.bandwidth-crosshair{stroke:var(--muted);stroke-dasharray:3 3;pointer-events:none}.bandwidth-tooltip{z-index:2;background:var(--surface,#fff);border:1px solid var(--line);pointer-events:none;width:max-content;max-width:100%;color:var(--text);border-radius:6px;flex-direction:column;gap:3px;padding:8px 12px;font-size:12px;display:flex;position:absolute;top:12px;box-shadow:0 2px 8px #16345520}.bandwidth-chart svg{touch-action:pan-y}.bandwidth-chart svg:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.bandwidth-axis{height:28px;margin-top:4px;padding-left:44px;display:block}.bandwidth-axis>div{width:100%;height:24px;position:relative}.bandwidth-axis span{white-space:nowrap;position:absolute}.bandwidth-axis .mobile-ticks{display:none}@media (width<=640px){.bandwidth-axis .desktop-ticks{display:none}.bandwidth-axis .mobile-ticks{display:block}.bandwidth-axis{font-size:12px}.bandwidth-chart-heading{align-items:flex-start}.bandwidth-legend{margin-left:auto;font-size:12px}.bandwidth-peak-value{flex-wrap:wrap}}.mobile-svg-ticks{display:none}@media (width<=640px){.desktop-svg-ticks{display:none}.mobile-svg-ticks{display:block}}.bandwidth-legend span:only-child{color:var(--brand)}.bandwidth-legend span:only-child i{border-top-style:solid}.overview-page .page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.overview-cards{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:16px;display:grid}.overview-cards .panel{flex-direction:column;margin:0;padding:20px;display:flex}.overview-cards h2{margin:0;font-size:14px}.overview-value{flex-wrap:wrap;align-items:baseline;gap:8px;margin:16px 0;display:flex}.overview-value strong{font-variant-numeric:tabular-nums;font-size:28px;line-height:1.3}.overview-value span,.overview-cards p,.overview-context{color:var(--muted);font-size:13px}.overview-cards p{margin:auto 0 0}.overview-context{margin:16px 0 24px;line-height:1.6}.overview-page .overview-chart{padding:24px}.overview-detail{color:var(--brand);background:0 0;border:0;min-height:44px;padding:0;text-decoration:underline}.overview-chart .sub{color:var(--muted);font-size:13px}@media (width<=1100px){.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.overview-cards{grid-template-columns:1fr}.overview-page .overview-chart{padding:18px}.overview-value strong{font-size:26px}}.overview-cards{margin-bottom:24px}.overview-cards h2{align-items:center;gap:10px;font-weight:600;display:flex}.overview-icon{fill:none;width:22px;height:22px;stroke:var(--brand);stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex:none}.overview-value{margin-bottom:0}.users-app .audit-page table{table-layout:fixed;width:100%}.users-app .audit-page th:first-child{width:165px}.users-app .audit-page th:nth-child(2){width:12%}.users-app .audit-page th:nth-child(3){width:17%}.users-app .audit-page th:nth-child(4){width:18%}.users-app .audit-page th:nth-child(5){width:85px}.users-app .audit-page th:nth-child(6){width:135px}.users-app .audit-page th:nth-child(7){width:80px}.users-app .audit-page th,.users-app .audit-page td{vertical-align:top;padding:14px 10px}.audit-clip{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.audit-time{white-space:nowrap;font-size:13px}.audit-operation-text{overflow-wrap:anywhere}.users-app .audit-dialog{width:min(560px,100vw - 32px)}.audit-fields{grid-template-columns:100px minmax(0,1fr);gap:14px 16px;margin-top:24px;display:grid}.audit-fields dt{color:var(--muted)}.audit-fields dd{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}@media (width<=1100px) and (width>=641px){.users-app .audit-page th:first-child{width:115px}.audit-time{white-space:normal}.users-app .audit-page th:nth-child(6){width:110px}}@media (width<=760px){.users-app .audit-page table{table-layout:auto}.users-app .audit-page .pagination{flex-wrap:wrap;gap:1rem}.users-app .audit-page td,.users-app .audit-page td .audit-clip{min-width:0}}@media (width<=400px){.audit-fields{grid-template-columns:1fr;gap:6px}.audit-fields dd{margin-bottom:10px}}.users-app .audit-page .event-filters{flex-direction:column;gap:16px;display:flex}.users-app .audit-page .event-filters .log-fields{flex-wrap:wrap;align-items:flex-end;gap:16px;display:flex}.users-app .audit-page .event-filters .log-fields>label{width:150px;min-width:0;max-width:100%}.users-app .audit-page .event-filters .log-fields>label:first-child{width:220px}.users-app .audit-page .event-filters .log-dates{gap:16px;max-width:100%;display:flex}.users-app .audit-page .event-filters .log-dates>.date-field{width:180px;min-width:0}.users-app .audit-page .event-filters input,.users-app .audit-page .event-filters select,.users-app .audit-page .event-filters .date-trigger{height:42px;min-height:42px}.users-app .audit-page .event-filters>.actions{justify-content:flex-end;align-self:stretch}@media (width<=640px){.users-app .audit-page .event-filters .log-fields{flex-direction:column;align-items:stretch;display:flex}.users-app .audit-page .event-filters .log-fields>label,.users-app .audit-page .event-filters .log-fields>label:first-child,.users-app .audit-page .event-filters .log-dates,.users-app .audit-page .event-filters .log-dates>.date-field{width:100%}.users-app .audit-page .event-filters .log-dates{flex-direction:column}}
