:root{
  color-scheme:dark;--bg:#0b0c10;--surface:#12141a;--surface-2:#171a21;--line:rgba(255,255,255,.075);--line-strong:rgba(255,255,255,.12);
  --text:#f4f4f6;--muted:#989aa5;--dim:#696c78;--accent:#f04d63;--accent-soft:rgba(240,77,99,.13);--green:#4dd99a;--amber:#f0bb62;--radius:18px;--sidebar:244px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{min-width:320px;background:radial-gradient(ellipse at 86% -10%,rgba(131,73,112,.12),transparent 34%),var(--bg)}
button,input,select{font:inherit}button{color:inherit}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;padding:27px 16px 18px;background:rgba(15,16,21,.94);border-right:1px solid var(--line);z-index:5}
.brand{height:44px;display:flex;align-items:center;gap:12px;padding:0 12px;color:inherit;text-decoration:none}
.brand-mark{width:29px;height:29px;display:flex;align-items:flex-end;gap:3px;padding:5px;border:1px solid rgba(240,77,99,.4);border-radius:9px;background:var(--accent-soft)}
.brand-mark i{display:block;width:4px;border-radius:4px;background:var(--accent)}
.brand-mark i:nth-child(1){height:8px;opacity:.65}.brand-mark i:nth-child(2){height:15px}.brand-mark i:nth-child(3){height:11px;opacity:.8}
.brand-copy{display:grid;gap:2px}.brand-copy strong{font-size:12px;letter-spacing:.14em;font-weight:800}.brand-copy small{color:var(--dim);font-size:8px;letter-spacing:.18em}
.side-section{margin-top:54px}.side-label{display:block;padding:0 13px 12px;color:#686b76;font-size:9px;font-weight:750;letter-spacing:.16em}
.nav-item{width:100%;height:45px;padding:0 12px;display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:12px;background:transparent;color:#a6a8b1;text-align:left;cursor:pointer}
.nav-item svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(240,77,99,.16),rgba(240,77,99,.035));border-color:rgba(240,77,99,.16)}
.nav-item.active svg{color:#ff7182}.nav-count{margin-left:auto;color:#b1b2bc;font-size:11px;font-variant-numeric:tabular-nums}
.sidebar-bottom{margin-top:auto;display:grid;gap:22px}
.privacy-note{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.018)}
.privacy-dot,.state-dot{width:7px;height:7px;flex:none;margin-top:4px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(77,217,154,.5)}
.privacy-note b{display:block;font-size:10px;font-weight:650}.privacy-note small{display:block;margin-top:4px;color:var(--dim);font-size:9px;line-height:1.45}
.build-label{padding:0 12px;color:#666975;font-size:9px;letter-spacing:.13em}.build-label span{color:#a1a2ab}
.main{min-height:100vh;margin-left:var(--sidebar)}
.topbar{height:70px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(12,13,17,.42);backdrop-filter:blur(16px)}
.breadcrumb{display:flex;align-items:center;gap:10px;color:#878994;font-size:12px}.breadcrumb strong{color:#e5e5e9;font-weight:600}.crumb-sep{color:#4d505a}
.top-actions{display:flex;align-items:center;gap:14px}.connection-state{display:flex;align-items:center;gap:8px;color:#a7a9b1;font-size:11px}.connection-state .state-dot{width:6px;height:6px;margin:0}
.connection-state[data-state=checking] .state-dot{background:var(--amber);box-shadow:0 0 10px rgba(240,187,98,.3)}
.connection-state[data-state=offline] .state-dot{background:var(--accent);box-shadow:0 0 10px rgba(240,77,99,.35)}
.icon-button,.mini-action{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line-strong);border-radius:10px;background:rgba(255,255,255,.025);color:#b6b7c0;cursor:pointer;transition:.18s ease}
.icon-button:hover,.mini-action:hover{border-color:rgba(240,77,99,.45);color:#fff;background:var(--accent-soft)}
.icon-button svg,.mini-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.page-content{max-width:1480px;margin:0 auto;padding:43px 38px 22px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:29px}
.eyebrow{display:flex;align-items:center;gap:9px;color:#c27682;font-size:9px;font-weight:750;letter-spacing:.19em}
.eyebrow-line{width:20px;height:1px;background:var(--accent)}
h1{margin:12px 0 7px;font-size:clamp(28px,3vw,39px);line-height:1.08;letter-spacing:-.045em;font-weight:650}
.page-subtitle{margin:0;color:#878994;font-size:12px}
.summary-card{min-width:148px;display:flex;align-items:center;gap:12px;padding:12px 15px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.012))}
.summary-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:#fb7180}
.summary-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.summary-card small{display:block;color:#777a84;font-size:8px;letter-spacing:.1em}.summary-card strong{display:block;margin-top:3px;font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.search-box{height:40px;width:min(380px,100%);display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--line-strong);border-radius:11px;background:rgba(255,255,255,.022);color:#858792;transition:border-color .18s}
.search-box:focus-within{border-color:rgba(240,77,99,.48)}
.search-box svg,.filter-wrap svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}.search-box input::placeholder{color:#747681}
kbd{padding:2px 6px;border:1px solid var(--line-strong);border-radius:5px;color:#777a84;font-size:9px}
.toolbar-right{display:flex;align-items:center;gap:9px}
.filter-wrap{height:38px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02);color:#898b95}
.filter-wrap select{max-width:140px;border:0;outline:0;background:transparent;color:#c7c8ce;font-size:10px;cursor:pointer}.filter-wrap option{background:#171920}
.layout-switch{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.layout-switch button{width:29px;height:27px;border:0;border-radius:7px;background:transparent;color:#7e808a;font-size:16px;cursor:pointer}
.layout-switch button.selected{background:#2a2d36;color:#fff}
.camera-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.camera-grid[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.camera-grid[hidden]{display:none}
.camera-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));transition:border-color .2s,transform .2s,box-shadow .2s}
.camera-card:hover{border-color:rgba(255,255,255,.14);transform:translateY(-2px);box-shadow:0 16px 34px rgba(0,0,0,.18)}
.card-top{min-height:67px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.camera-group{display:inline-flex;align-items:center;gap:6px;color:#c47b85;font-size:8px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.camera-group:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent)}
.camera-title-block h2{margin:5px 0 0;font-size:13px;font-weight:600;letter-spacing:-.01em}
.camera-state{display:flex;align-items:center;gap:7px;max-width:45%;overflow:hidden;color:#83858f;font-size:9px;white-space:nowrap;text-overflow:ellipsis}
.camera-state i{width:6px;height:6px;flex:none;border-radius:50%;background:#61636d}
.camera-state.is-live i{background:var(--amber);box-shadow:0 0 9px rgba(240,187,98,.35)}
.camera-state.is-error i{background:var(--accent)}
.camera-card.is-live .camera-state.is-live i{background:var(--green);box-shadow:0 0 10px rgba(77,217,154,.4)}
.video-stage{position:relative;display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,rgba(35,38,47,.58),rgba(14,15,20,.96) 65%),#0e0f13;border-top:1px solid rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.045);cursor:pointer}
.video-stage:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.018),transparent 42%)}
.video-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;color:#9b9da7;font-size:10px;pointer-events:none}
.video-empty[hidden]{display:none}
.video-empty small{color:#646772;font-size:9px}
.video-empty-icon{position:relative;width:38px;height:31px;border:1px solid #444751;border-radius:8px;opacity:.8}
.video-empty-icon:before{content:"";position:absolute;left:8px;top:7px;width:13px;height:13px;border:1px solid #666974;border-radius:50%}
.video-empty-icon:after{content:"";position:absolute;right:-8px;top:9px;width:7px;height:11px;border:1px solid #666974;border-left:0;clip-path:polygon(0 20%,100% 0,100% 100%,0 80%)}
.player-mount{position:absolute;inset:0;display:none}.camera-card.is-live .player-mount{display:block}
.camera-player{position:absolute;inset:0;display:block;width:100%;height:100%;background:#050506}
.camera-player video{width:100%;height:100%;object-fit:contain;background:#050506}
.camera-player .info{z-index:2;padding:8px 10px!important;font-size:8px!important;text-shadow:0 1px 5px #000}
.camera-player .mode{padding:3px 6px;border-radius:5px;background:rgba(0,0,0,.42);font-size:8px}
.card-bottom{min-height:57px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.camera-subtitle{overflow:hidden;color:#797c87;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.camera-controls{display:flex;align-items:center;gap:7px}
.mini-action{width:29px;height:29px;border-radius:8px}.mini-action[hidden]{display:none}
.watch-button{height:31px;display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid rgba(240,77,99,.3);border-radius:8px;background:var(--accent-soft);color:#ff8793;font-size:9px;font-weight:650;cursor:pointer;transition:.18s}
.watch-button:hover{background:rgba(240,77,99,.22);border-color:rgba(240,77,99,.55);color:#ffd2d7}
.watch-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.empty-state{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 20px;border:1px dashed rgba(255,255,255,.11);border-radius:var(--radius);text-align:center;background:radial-gradient(ellipse at center,rgba(240,77,99,.045),transparent 60%)}
.empty-state[hidden]{display:none}
.empty-graphic{position:relative;width:74px;height:74px;display:grid;place-items:center;margin-bottom:17px}
.empty-graphic svg{position:relative;z-index:1;width:25px;height:25px;fill:none;stroke:#e37a86;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.empty-orbit{position:absolute;inset:7px;border:1px solid rgba(240,77,99,.19);border-radius:21px;transform:rotate(45deg)}
.orbit-b{inset:0 16px;border-color:rgba(255,255,255,.09);border-radius:50%;transform:rotate(-25deg)}
.empty-state h2{margin:0 0 7px;font-size:16px;font-weight:600}.empty-state p{max-width:430px;margin:0;color:#858792;font-size:11px;line-height:1.6}
.empty-hint{margin-top:20px;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;color:#898b95;font-size:9px;background:rgba(255,255,255,.02)}
.hint-mark{width:14px;height:14px;display:grid;place-items:center;border:1px solid #676a75;border-radius:50%;font-size:9px}
.page-footer{display:flex;justify-content:center;align-items:center;gap:9px;margin:25px 0 0;color:#656873;font-size:9px}
.footer-divider{width:3px;height:3px;border-radius:50%;background:#454751}
.toast{position:fixed;left:50%;bottom:22px;z-index:20;max-width:calc(100vw - 32px);padding:11px 15px;border:1px solid var(--line-strong);border-radius:11px;background:#242630;color:#f0f0f4;font-size:11px;box-shadow:0 12px 38px rgba(0,0,0,.35);opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:opacity .2s,transform .2s}
.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1120px){:root{--sidebar:210px}.page-content{padding:34px 26px 20px}.topbar{padding:0 26px}.camera-grid[data-columns="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{position:sticky;top:0;width:100%;height:60px;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;border-right:0;border-bottom:1px solid var(--line);background:rgba(14,15,19,.96);backdrop-filter:blur(18px)}.brand{padding:0}.side-section,.sidebar-bottom{display:none}.main{margin-left:0}.topbar{height:50px;padding:0 17px}.page-content{padding:26px 16px 18px}.page-heading{align-items:flex-start;margin-bottom:22px}.summary-card{min-width:0;padding:9px 10px}.summary-icon{width:28px;height:28px}.summary-card small{font-size:7px}.summary-card strong{font-size:16px}.page-subtitle{max-width:250px;font-size:10px}.toolbar{align-items:stretch;flex-direction:column}.search-box{width:100%}.toolbar-right{justify-content:space-between}.camera-grid,.camera-grid[data-columns="3"]{grid-template-columns:1fr;gap:12px}.camera-card{border-radius:15px}.camera-grid[data-columns="2"]{grid-template-columns:1fr}.page-footer{flex-wrap:wrap;font-size:8px}.connection-state{font-size:9px}.layout-switch{margin-left:auto}}
@media(max-width:410px){.connection-state span:not(.state-dot){max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-heading{gap:10px}.summary-card{gap:7px}.summary-card small{letter-spacing:.04em}.eyebrow{font-size:8px}}

/* Branded session login, entrance motion and touch-friendly mobile controls */
[hidden]{display:none!important}
:root{--safe-bottom:env(safe-area-inset-bottom,0px)}
.login-screen{position:relative;min-height:100vh;min-height:100svh;display:grid;place-items:center;overflow:hidden;padding:32px 18px;background:radial-gradient(ellipse at 12% 2%,rgba(240,77,99,.17),transparent 38%),radial-gradient(ellipse at 90% 92%,rgba(65,118,180,.12),transparent 40%),var(--bg)}
.login-card{position:relative;z-index:1;width:min(100%,420px);padding:clamp(26px,6vw,42px);border:1px solid rgba(255,255,255,.1);border-radius:24px;background:rgba(18,20,26,.88);box-shadow:0 28px 90px rgba(0,0,0,.4);backdrop-filter:blur(22px);animation:login-rise .55s cubic-bezier(.2,.8,.2,1) both}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:48px}
.login-kicker{display:flex;align-items:center;gap:9px;color:#d58b94;font-size:9px;font-weight:750;letter-spacing:.16em}
.login-card h1{margin:13px 0 8px;font-size:clamp(28px,7vw,35px);letter-spacing:-.04em}
.login-copy{margin:0 0 27px;color:var(--muted);font-size:13px;line-height:1.55}
.login-form{display:grid;gap:9px}
.login-form label{margin-top:7px;color:#b8bac3;font-size:11px;font-weight:600}
.login-form input{width:100%;height:48px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;outline:0;background:#0e1015;color:var(--text);font-size:16px;transition:border-color .2s,box-shadow .2s}
.login-form input:focus{border-color:rgba(240,77,99,.72);box-shadow:0 0 0 3px rgba(240,77,99,.12)}
.login-submit{height:48px;display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:0 16px;border:1px solid rgba(240,77,99,.4);border-radius:12px;background:linear-gradient(110deg,#df4057,#a73865);color:#fff;font-size:13px;font-weight:700;cursor:pointer;transition:transform .18s,filter .18s,box-shadow .18s}
.login-submit:hover{filter:brightness(1.08);box-shadow:0 9px 26px rgba(215,55,83,.25)}
.login-submit:active{transform:scale(.985)}
.login-submit:disabled{opacity:.65;cursor:wait}
.login-error{margin:2px 0 0;color:#ff909c;font-size:11px;line-height:1.45}
.login-foot{display:flex;align-items:center;gap:9px;margin-top:24px;color:#81838e;font-size:10px;line-height:1.5}
.login-foot .privacy-dot{width:6px;height:6px;margin:0}
.login-decoration{position:absolute;inset:0;pointer-events:none;opacity:.5}
.login-decoration span{position:absolute;width:270px;height:270px;border:1px solid rgba(240,77,99,.09);border-radius:50%;animation:orbit-drift 18s linear infinite}
.login-decoration span:nth-child(1){top:-160px;left:-95px}
.login-decoration span:nth-child(2){right:-130px;bottom:-145px;width:340px;height:340px;animation-direction:reverse;animation-duration:26s}
.login-decoration span:nth-child(3){right:12%;top:18%;width:7px;height:7px;border:0;background:#f04d63;box-shadow:0 0 22px 5px rgba(240,77,99,.18)}
.logout-button{height:34px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:rgba(255,255,255,.025);color:#b6b7c0;font-size:10px;cursor:pointer;transition:.18s}
.logout-button:hover{border-color:rgba(240,77,99,.45);color:#fff;background:var(--accent-soft)}
.app-shell:not([hidden]){animation:app-fade .32s ease both}
.camera-card{animation:card-enter .4s cubic-bezier(.2,.75,.25,1) both}
.camera-card:nth-child(2){animation-delay:.045s}.camera-card:nth-child(3){animation-delay:.09s}.camera-card:nth-child(4){animation-delay:.135s}
.watch-button,.mini-action,.icon-button,.layout-switch button,.nav-item{min-height:40px}
@keyframes login-rise{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes app-fade{from{opacity:0}to{opacity:1}}
@keyframes card-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes orbit-drift{to{transform:rotate(360deg)}}
@media(max-width:760px){
  .login-screen{min-height:100dvh;padding:18px 14px calc(18px + var(--safe-bottom))}
  .login-card{padding:27px 22px;border-radius:20px}
  .login-brand{margin-bottom:38px}
  .logout-button{height:38px;padding:0 10px}
  .topbar{min-height:54px;height:auto;gap:10px}
  .top-actions{gap:8px}
  .page-content{padding:20px 14px calc(18px + var(--safe-bottom))}
  .page-heading{flex-direction:column;align-items:stretch;gap:14px}
  .summary-card{width:max-content}
  .search-box{height:46px}
  .search-box input{font-size:16px}
  .filter-wrap{height:42px}
  .layout-switch button{height:34px;width:36px}
  .camera-grid,.camera-grid[data-columns="2"],.camera-grid[data-columns="3"]{grid-template-columns:minmax(0,1fr);gap:12px}
  .camera-card{border-radius:16px}
  .card-top{min-height:64px;padding:12px 13px}
  .camera-title-block h2{font-size:14px}
  .camera-state{font-size:10px}
  .card-bottom{min-height:62px;padding:10px 12px}
  .watch-button{height:40px;padding:0 12px;font-size:11px}
  .mini-action{width:38px;height:38px}
  .page-footer{padding-bottom:4px;text-align:center;line-height:1.6}
}
@media(max-width:390px){
  .login-card{padding:23px 18px}
  .login-brand{margin-bottom:31px}
  .topbar{padding:0 12px}
  .breadcrumb{gap:6px;font-size:10px}
  .connection-state{font-size:8px}
  .connection-state span:not(.state-dot){max-width:88px}
  .page-content{padding-inline:11px}
  .card-top{gap:7px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* Auto-playing camera wall */
.wall-button{height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid rgba(240,77,99,.3);border-radius:10px;background:var(--accent-soft);color:#ff8793;font-size:10px;font-weight:650;cursor:pointer;white-space:nowrap;transition:.18s}
.wall-button:hover{background:rgba(240,77,99,.22);border-color:rgba(240,77,99,.55);color:#ffd2d7}
.wall-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.camera-grid:fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100vh;height:100dvh;overflow:auto;align-content:start;grid-template-columns:repeat(auto-fit,minmax(min(28vw,400px),1fr));gap:12px;padding:16px;background:#090a0f}
.camera-grid:fullscreen .camera-card{transform:none;box-shadow:none}
.camera-grid:fullscreen .video-stage{aspect-ratio:16/9}
@media(max-width:760px){
  .wall-button{height:42px;padding:0 10px;font-size:9px}
  .camera-grid:fullscreen{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}
  .camera-grid:fullscreen .card-top{min-height:43px;padding:7px 8px}
  .camera-grid:fullscreen .camera-title-block h2{font-size:10px}
  .camera-grid:fullscreen .camera-group{font-size:6px}
  .camera-grid:fullscreen .camera-state{font-size:7px}
  .camera-grid:fullscreen .card-bottom{min-height:38px;padding:5px 7px}
  .camera-grid:fullscreen .watch-button{height:30px;font-size:8px}
}


/* Account administration and first-login password change */
.password-screen{position:relative;min-height:100vh;min-height:100svh;display:grid;place-items:center;overflow:hidden;padding:32px 18px;background:radial-gradient(ellipse at 12% 2%,rgba(240,77,99,.17),transparent 38%),radial-gradient(ellipse at 90% 92%,rgba(65,118,180,.12),transparent 40%),var(--bg)}
.user-manage-button{height:34px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:rgba(255,255,255,.025);color:#e4c4c8;font-size:10px;cursor:pointer}
.user-manage-button:hover{border-color:rgba(240,77,99,.45);color:#fff;background:var(--accent-soft)}
.users-overlay{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:20px;background:rgba(3,4,8,.78);backdrop-filter:blur(8px)}
.users-panel{width:min(920px,100%);max-height:min(88vh,900px);overflow:auto;border:1px solid var(--line-strong);border-radius:20px;background:#15171e;box-shadow:0 28px 90px rgba(0,0,0,.55);animation:login-rise .24s ease both}
.users-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);background:rgba(21,23,30,.96);backdrop-filter:blur(14px)}
.users-header h2{margin:8px 0 0;font-size:22px}
.users-close{width:38px;height:38px;border:1px solid var(--line-strong);border-radius:10px;background:transparent;color:var(--text);font-size:25px;cursor:pointer}
.users-body{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:24px;padding:22px 24px 26px}
.user-create-form,.users-list-wrap{min-width:0}
.user-create-form h3,.users-list-wrap h3{margin:0 0 14px;font-size:14px}
.user-create-form{display:grid;align-content:start;gap:8px;padding:17px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.018)}
.user-create-form label{margin-top:5px;color:#b8bac3;font-size:10px}
.user-create-form input,.user-create-form select,.user-role-select{height:40px;min-width:0;padding:0 10px;border:1px solid var(--line-strong);border-radius:9px;outline:0;background:#0e1015;color:var(--text);font-size:12px}
.user-create-form input:focus,.user-create-form select:focus,.user-role-select:focus{border-color:rgba(240,77,99,.65)}
.users-hint{margin:4px 0;color:#888b95;font-size:10px;line-height:1.55}
.users-list{display:grid;gap:9px}
.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.018)}
.user-row-name{display:grid;gap:4px;min-width:90px}
.user-row-name strong{font-size:12px}.user-row-name small{color:#9396a0;font-size:9px}
.user-row-actions{display:flex;align-items:center;gap:6px}
.user-role-select{height:34px;max-width:145px;font-size:10px}
.user-small-button{height:34px;padding:0 9px;border:1px solid var(--line-strong);border-radius:8px;background:rgba(255,255,255,.025);color:#d5d6dc;font-size:10px;cursor:pointer}
.user-small-button:hover{border-color:rgba(240,77,99,.45);color:#fff}
.user-small-button.danger{color:#ff929d}
.user-small-button:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:700px){
  .password-screen{min-height:100dvh;padding:18px 14px}
  .users-overlay{padding:9px}
  .users-panel{max-height:94dvh;border-radius:16px}
  .users-header{padding:16px}
  .users-body{grid-template-columns:1fr;gap:18px;padding:14px}
  .user-row{align-items:flex-start;flex-direction:column}
  .user-row-actions{width:100%;flex-wrap:wrap}
  .user-role-select{flex:1}
  .user-manage-button{height:38px;padding:0 8px;font-size:9px}
}


.archive-open-button{height:38px;padding:0 15px;border:1px solid rgba(240,77,99,.38);border-radius:11px;background:rgba(240,77,99,.09);color:#ffd7dc;font-size:12px;font-weight:650;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.archive-open-button:hover{background:rgba(240,77,99,.17);border-color:rgba(240,77,99,.7);transform:translateY(-1px)}
.archive-overlay{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:24px;background:rgba(3,4,8,.78);backdrop-filter:blur(12px);animation:archiveFade .18s ease-out}
.archive-overlay[hidden]{display:none}
.archive-panel{display:flex;flex-direction:column;gap:16px;width:min(1120px,100%);max-height:min(94vh,980px);overflow:auto;padding:22px;border:1px solid var(--line-strong);border-radius:20px;background:#14151b;box-shadow:0 24px 90px rgba(0,0,0,.55);animation:archiveRise .24s cubic-bezier(.2,.8,.2,1)}
.archive-header{display:flex;align-items:center;justify-content:space-between;gap:15px}
.archive-header h2{margin:8px 0 0;font-size:22px}
.archive-close{width:38px;height:38px;border:1px solid var(--line-strong);border-radius:11px;background:transparent;color:var(--text);font-size:25px;cursor:pointer}
.archive-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.archive-controls label{display:grid;gap:7px;min-width:190px;color:#a6a8b1;font-size:11px}
.archive-controls select,.archive-controls input{height:40px;padding:0 11px;border:1px solid var(--line-strong);border-radius:10px;background:#0d0e13;color:var(--text);font:inherit}
.archive-refresh,.archive-step{height:40px;padding:0 13px;border:1px solid var(--line-strong);border-radius:10px;background:rgba(255,255,255,.035);color:var(--text);font-size:11px;cursor:pointer}
.archive-message{flex:1;min-width:180px;padding:10px 0;color:#a2a3ad;font-size:11px}
.archive-video{display:block;width:100%;max-height:62vh;aspect-ratio:16/9;background:#050609;border-radius:13px;object-fit:contain}
.archive-timeline{display:flex;align-items:center;gap:12px}
.archive-range-wrap{display:flex;align-items:center;gap:12px;flex:1;min-width:100px}
.archive-range{width:100%;accent-color:#f04d63}
.archive-clock{color:#a7a9b2;font:11px ui-monospace,SFMono-Regular,Consolas,monospace}
.archive-list{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px}
.archive-clip{flex:0 0 auto;padding:8px 12px;border:1px solid var(--line-strong);border-radius:9px;background:rgba(255,255,255,.035);color:#dedee4;font:11px ui-monospace,SFMono-Regular,Consolas,monospace;cursor:pointer}
.archive-clip:hover,.archive-clip.selected{border-color:rgba(240,77,99,.7);background:rgba(240,77,99,.12);color:#fff}
@keyframes archiveFade{from{opacity:0}to{opacity:1}}
@keyframes archiveRise{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){.archive-overlay{padding:9px}.archive-panel{gap:12px;max-height:96dvh;padding:14px;border-radius:15px}.archive-header h2{font-size:19px}.archive-controls{align-items:stretch;display:grid;grid-template-columns:1fr 1fr;gap:9px}.archive-controls label{min-width:0}.archive-refresh{align-self:end}.archive-message{grid-column:1/-1;min-width:0;padding:0}.archive-video{max-height:54dvh;border-radius:9px}.archive-timeline{gap:6px}.archive-step{height:35px;padding:0 8px;font-size:9px}.archive-range-wrap{gap:6px}.archive-clock{font-size:9px}}
