*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#0f172a;color:#e2e8f0}a{color:#60a5fa;text-decoration:none}button{background:#2563eb;color:#fff;border:0;padding:8px 14px;border-radius:6px;cursor:pointer;font-weight:500}button.secondary{background:#334155}button.danger{background:#dc2626}input:not([type=checkbox]):not([type=radio]),select,textarea{background:#1e293b;color:#e2e8f0;border:1px solid #334155;padding:8px 10px;border-radius:6px;width:100%}input[type=checkbox],input[type=radio]{accent-color:#2563eb;cursor:pointer;margin:0}.app{min-height:100vh;display:flex;flex-direction:column}.nav{display:flex;gap:16px;padding:12px 24px;background:#1e293b;border-bottom:1px solid #334155;align-items:center}.nav .spacer{flex:1}.nav-links{display:flex;gap:16px;align-items:center}.nav-links a{color:#cbd5e1}.nav-links a.active{color:#fff;font-weight:600}.nav a{color:#cbd5e1}.nav a.active{color:#fff;font-weight:600}.nav-burger{display:none;background:transparent;color:#cbd5e1;border:1px solid #334155;border-radius:6px;padding:6px;cursor:pointer;line-height:0}.nav-burger:hover{background:#334155}.nav-stats{display:flex;align-items:center;gap:8px}.circle-stat{display:inline-flex;align-items:center;gap:4px}.circle-stat svg{display:block;max-height:100%}.circle-stat-label{font-size:.75em}@media (max-width: 640px){.nav-stats{gap:4px}.circle-stat-label{display:none}.circle-stat svg{width:28px;height:28px}}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1100}.drawer{position:fixed;top:0;left:0;bottom:0;width:min(280px,80vw);background:#1e293b;border-right:1px solid #334155;z-index:1101;display:flex;flex-direction:column;animation:slideIn .15s ease-out}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #334155}.drawer-user{padding:12px 16px;border-bottom:1px solid #334155;line-height:1.4}.drawer-links{display:flex;flex-direction:column;padding:8px 0;flex:1}.drawer-links a{padding:12px 16px;color:#cbd5e1;border-left:3px solid transparent}.drawer-links a:hover{background:#334155}.drawer-links a.active{background:#2563eb26;border-left-color:#2563eb;color:#fff}.drawer-foot{padding:12px 16px;border-top:1px solid #334155}.drawer-foot .secondary{width:100%}.container{padding:20px 28px;max-width:1600px;width:100%;margin:0 auto}.card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:16px;margin-bottom:16px}table{width:100%;border-collapse:collapse}th,td{padding:10px 12px;border-bottom:1px solid #334155;text-align:left}th{background:#0f172a}.row{display:flex;gap:12px;align-items:center}.col{display:flex;flex-direction:column;gap:8px}.error{color:#fca5a5}.muted{color:#94a3b8;font-size:.9em}.login-wrap{flex:1;display:flex;align-items:center;justify-content:center;position:relative}.login-card{width:min(360px,calc(100vw - 32px))}.login-lang{position:fixed;top:16px;right:16px;z-index:10}.grid-form{display:grid;grid-template-columns:1fr;gap:10px}.grid-form label{display:flex;flex-direction:column;gap:4px;font-size:.9em;color:#cbd5e1}.field-error{color:#fca5a5;font-size:.85em}input.invalid,select.invalid{border-color:#dc2626}.viewer{display:flex;flex-direction:column;min-height:100vh}.viewer-header{padding:12px 16px;border-bottom:1px solid #334155;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.header-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap}.viewer-body{display:flex;gap:12px;padding:12px;flex:1;min-height:0}.viewer-side{width:280px;flex-shrink:0}.viewer-main{flex:1;min-width:0}.cal{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:10px}.cal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.cal-dow>div{text-align:center;font-size:.8em;padding:4px 0}.cal-cell{background:transparent;color:#e2e8f0;border:1px solid transparent;border-radius:4px;padding:6px 0;cursor:pointer;font-size:.9em}.cal-cell:hover{background:#334155}.cal-cell.has{background:#2563eb40}.cal-cell.selected{background:#2563eb;color:#fff;font-weight:600}.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:6px;margin-top:6px}.folder-tile{display:flex;align-items:center;gap:8px;background:#0f172a;color:#e2e8f0;border:1px solid #334155;padding:9px 10px;border-radius:6px;font-size:.9em;min-width:0;overflow:hidden}.folder-tile.selected{outline:2px solid #2563eb}.folder-tile:hover{background:#142036}.folder-tile-btn{flex:1 1 0;min-width:0;background:transparent;color:inherit;border:0;padding:0;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.folder-cb{flex-shrink:0}.files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-top:6px}.preview{padding:8px;min-width:0;overflow:hidden}.preview.selected{outline:2px solid #2563eb}.preview.uploading{outline:1px dashed #f59e0b}.upload-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(245,158,11,.3);border-top-color:#f59e0b;border-radius:50%;animation:spin .9s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.upload-bar{position:relative;height:4px;margin-top:8px;background:#f59e0b26;border-radius:2px;overflow:hidden}.upload-bar-fill{position:absolute;left:0;top:0;bottom:0;width:30%;background:#f59e0b;border-radius:2px;animation:upload-slide 1.4s linear infinite}@keyframes upload-slide{0%{left:-30%}to{left:100%}}.preview-title{display:flex;justify-content:space-between;gap:6px;margin-bottom:4px;font-size:.85em;align-items:center;min-width:0}.preview-title>span.muted{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1}.preview-name{display:inline-flex;align-items:center;gap:8px;min-width:0}.preview-fname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-cb{width:18px;height:18px;flex-shrink:0}.preview-poster{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16 / 9;border:0;border-radius:6px;background-color:#000;color:#f1f5f9;cursor:pointer;background-size:cover;background-position:center;background-repeat:no-repeat}.preview-poster-audio{aspect-ratio:auto;height:56px;background-color:#0f172a}.preview-poster-play{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#0000008c;font-size:22px;padding-left:4px;transition:background-color .15s}.preview-poster:hover .preview-poster-play{background:#000000bf}.preview-poster-video:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:6px;background:linear-gradient(to top,#00000059,#0000 40%);pointer-events:none}.viewer-header button{display:inline-flex;align-items:center;gap:6px;line-height:1.2}.viewer-header button>svg{display:block}.exp-indicator{position:relative}.exp-btn{position:relative;background:transparent;color:#cbd5e1;border:1px solid #334155;border-radius:6px;padding:6px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}.exp-btn:hover{background:#334155}.exp-badge{position:absolute;top:-6px;right:-6px;background:#2563eb;color:#fff;font-size:.7em;border-radius:10px;padding:1px 6px;font-weight:600}.exp-badge.running{background:#f59e0b;color:#0f172a}.exp-pop{position:absolute;right:0;top:calc(100% + 8px);width:360px;max-width:calc(100vw - 16px);max-height:480px;overflow:auto;background:#1e293b;border:1px solid #334155;border-radius:8px;box-shadow:0 6px 20px #0006;z-index:1100;box-sizing:border-box}.exp-item-name{max-width:100%}.exp-pop-head{padding:10px 14px;border-bottom:1px solid #334155}.exp-pop-list{padding:8px;display:flex;flex-direction:column;gap:8px}.exp-item{background:#0f172a;border:1px solid #334155;border-radius:6px;padding:10px}.exp-item-row{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}.exp-item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px;font-size:.9em}.exp-status{font-size:.8em;padding:1px 6px;border-radius:10px}.exp-status-ready{background:#22c55e2e;color:#86efac}.exp-status-running,.exp-status-pending{background:#f59e0b2e;color:#fbbf24}.exp-status-error{background:#dc26262e;color:#fca5a5}.exp-bar{height:4px;background:#ffffff1a;border-radius:2px;overflow:hidden;margin:6px 0}.exp-bar-fill{height:100%;background:#2563eb;transition:width .3s ease}.exp-item-actions{display:flex;gap:6px;justify-content:flex-end;margin-top:6px}.exp-item-actions .secondary{padding:4px 8px;font-size:.85em;display:inline-flex;align-items:center;gap:4px}.exp-item-meta{font-size:.8em}.mp-wrap{position:relative;background:#000;border-radius:6px;overflow:hidden;-webkit-user-select:none;user-select:none;max-width:100%;min-width:0}.mp-wrap.mp-audio{background:#0f172a;padding:8px}.mp-wrap video{display:block;width:100%;max-height:270px;background:#000}.mp-wrap.mp-full{border-radius:0}.mp-wrap.mp-full video{max-height:100vh;height:100vh;object-fit:contain}.mp-wrap audio{display:none}.mp-controls{background:linear-gradient(to top,#000000d9,#0000);padding:8px 10px 6px;color:#f1f5f9}.mp-wrap.mp-video .mp-controls{position:absolute;left:0;right:0;bottom:0}.mp-wrap.mp-audio .mp-controls{background:transparent;padding:4px 0 0}.mp-track{display:flex;align-items:center;gap:10px;margin-bottom:6px}.mp-track .mp-time{min-width:48px;text-align:center}.mp-track .mp-time:first-child{text-align:right}.mp-track .mp-time:last-child{text-align:left}.mp-seek{position:relative;height:6px;flex:1;background:#ffffff2e;border-radius:3px;cursor:pointer}.mp-seek-buf{position:absolute;top:0;right:0;bottom:0;left:0;background:#ffffff52;border-radius:3px}.mp-seek-played{position:absolute;top:0;right:0;bottom:0;left:0;background:#2563eb;border-radius:3px}.mp-seek-thumb{position:absolute;top:50%;width:12px;height:12px;background:#fff;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.mp-row{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}.mp-row>*{flex:0 0 auto}.mp-spacer{flex:1 1 auto}.mp-btn{background:transparent;color:#f1f5f9;border:0;padding:4px 8px;font-size:16px;cursor:pointer;border-radius:4px}.mp-btn:hover{background:#ffffff1a}.mp-btn svg{display:block}.mp-time{font-size:.85em;font-variant-numeric:tabular-nums;opacity:.9}input.mp-vol[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:90px;height:4px;padding:0;margin:0;border:0;border-radius:2px;background:#ffffff40;cursor:pointer;vertical-align:middle;accent-color:#2563eb}input.mp-vol[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:#ffffff40}input.mp-vol[type=range]::-moz-range-track{height:4px;border-radius:2px;background:#ffffff40}input.mp-vol[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:0;cursor:pointer;margin-top:-5px}input.mp-vol[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:0;cursor:pointer}select.mp-rate{width:auto;background:#0f172a;color:#f1f5f9;border:1px solid rgba(255,255,255,.18);border-radius:4px;padding:2px 6px;font-size:.85em;cursor:pointer}select.mp-rate:focus{outline:2px solid #2563eb;outline-offset:0}select.mp-rate option{background:#0f172a;color:#f1f5f9}.mp-wrap{container-type:inline-size}@container (max-width: 360px){input.mp-vol[type=range],select.mp-rate{display:none}}.mp-error{position:absolute;top:8px;left:8px;padding:4px 8px;background:#dc2626e6;color:#fff;border-radius:4px;font-size:.85em}.mp-live-badge{position:absolute;top:8px;left:8px;z-index:2;display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:4px;background:#dc2626eb;color:#fff;font-size:.78em;font-weight:700;letter-spacing:.06em;pointer-events:none}.mp-live-dot{width:8px;height:8px;border-radius:50%;background:#fff;animation:mp-live-pulse 1.4s ease-in-out infinite}@keyframes mp-live-pulse{0%,to{opacity:1}50%{opacity:.35}}.stream-wrap{position:relative}.rec-badge{position:absolute;top:8px;right:8px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:4px;background:#000000b3;color:#fff;font-size:.78em;font-weight:700;letter-spacing:.06em;pointer-events:none}.fs-archive-badge{position:absolute;top:8px;left:8px;z-index:3;padding:3px 10px;border-radius:4px;background:#1d4ed8d9;color:#fff;font-size:.78em;font-weight:700;letter-spacing:.04em;pointer-events:auto;cursor:help}.rec-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ef4444;animation:mp-live-pulse 1.4s ease-in-out infinite}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{width:min(520px,92vw);background:#1e293b;border:1px solid #334155;border-radius:10px;box-shadow:0 10px 40px #0006;display:flex;flex-direction:column;max-height:90vh}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #334155}.modal-head h3{margin:0}.modal-body{padding:16px;overflow:auto}.modal-foot{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #334155}.icon-btn{background:transparent;color:#cbd5e1;border:0;font-size:22px;cursor:pointer;padding:0 4px}.fab{position:fixed;right:24px;bottom:24px;width:56px;height:56px;border-radius:50%;font-size:28px;line-height:1;padding:0;background:#2563eb;color:#fff;border:0;box-shadow:0 6px 16px #0006;cursor:pointer;z-index:900}.fab-menu{position:fixed;right:24px;bottom:96px;z-index:900;background:#1e293b;border:1px solid #334155;border-radius:8px;padding:6px 0;min-width:200px;box-shadow:0 6px 20px #0006}.fab-menu-item{display:block;width:100%;text-align:left;background:transparent;color:#e2e8f0;padding:10px 14px;border:0;cursor:pointer}.fab-menu-item:hover{background:#334155}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.toolbar .spacer{flex:1}tr.selected{background:#2563eb14}.cb-col{width:36px;text-align:center}.cb-col input{width:auto}.actions-cell{white-space:nowrap}.actions-cell>*+*{margin-left:6px}.icon-action{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;background:#334155;color:#e2e8f0;border:1px solid #475569;border-radius:6px;cursor:pointer;vertical-align:middle}.icon-action:hover{background:#3f4f66;border-color:#64748b}.icon-action.danger{background:#dc2626;border-color:#b91c1c;color:#fff}.icon-action.danger:hover{background:#b91c1c}.icon-action svg{display:block}.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#475569}.status-dot.alive{background:#22c55e;box-shadow:0 0 #22c55eb3;animation:pulse-green 1.4s infinite}.status-dot.dead{background:#ef4444}.status-dot.unknown{background:#f59e0b;opacity:.7}@keyframes pulse-green{0%{box-shadow:0 0 #22c55ea6}70%{box-shadow:0 0 0 10px #22c55e00}to{box-shadow:0 0 #22c55e00}}.terminal{background:#0a0f1a;color:#cbd5e1;border:1px solid #1e293b;border-radius:6px;padding:10px 12px;font-family:ui-monospace,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.85em;line-height:1.4;max-height:280px;min-height:160px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.terminal-line{padding:1px 0}.terminal-line.lvl-cmd{color:#93c5fd}.terminal-line.lvl-out{color:#cbd5e1}.terminal-line.lvl-err{color:#fca5a5}.terminal-line.lvl-info{color:#94a3b8}.terminal-line.lvl-warn{color:#fbbf24}.terminal-line.lvl-ok{color:#86efac;font-weight:600}.terminal-line.lvl-error{color:#fca5a5;font-weight:600}.toolbar>button,.viewer-header>button{display:inline-flex;align-items:center;gap:6px}@media (max-width: 960px){.nav{flex-wrap:wrap;padding:10px 14px;gap:10px;row-gap:8px}.nav .spacer{flex-basis:100%;height:0}.container{padding:16px}.toolbar{gap:8px}.toolbar>*{flex:0 1 auto}.viewer-body{flex-direction:column}.viewer-side{width:100%}.cal{max-width:480px}.files-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}@media (max-width: 640px){.container{padding:12px}.nav{padding:8px 12px;gap:10px;font-size:.95em}.nav strong{font-size:1em}.nav-links{display:none}.nav-burger{display:inline-flex}.nav-user,.nav-logout{display:none}.card{padding:12px}.toolbar{flex-wrap:wrap}.toolbar>input,.toolbar>select,.toolbar>.toolbar-search{flex:1 1 100%!important;max-width:100%!important}.toolbar input[type=search]{max-width:100%!important}.modal{width:96vw;max-height:92vh}.modal-body{max-height:calc(92vh - 110px)}.nav{flex-wrap:nowrap;position:sticky;top:0;z-index:50}.nav .spacer{flex:1 1 auto;flex-basis:auto;height:auto}.fab{right:16px;bottom:16px;width:48px;height:48px;font-size:24px}.fab-menu{right:16px;bottom:76px;min-width:180px}.exp-pop{position:fixed;top:60px;right:8px;left:8px;width:auto;max-width:calc(100vw - 16px);max-height:calc(100vh - 80px)}.exp-item-name{max-width:100%}.viewer-header{flex-wrap:wrap;gap:8px;padding:10px 12px}.viewer-body{padding:8px;gap:8px}.files-grid{grid-template-columns:1fr}.folder-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.folder-tile{padding:8px}.mp-wrap video{max-height:220px}table,thead,tbody,tr,th,td{display:block}thead{display:none}table{width:100%}tbody tr{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:10px 12px;margin-bottom:10px}tbody tr.selected{outline:2px solid #2563eb}tbody td{padding:6px 0;border:0!important;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:right;font-size:.95em}tbody td:not(.cb-col):before{content:attr(data-label);color:#94a3b8;font-size:.8em;font-weight:500;text-transform:uppercase;letter-spacing:.03em;flex:0 0 auto;text-align:left}tbody td.cb-col{width:auto;justify-content:flex-end}tbody td.cb-col:before{content:attr(data-label);color:#94a3b8;font-size:.8em;flex:1 1 auto;text-align:left}tbody td.actions-cell{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:6px;padding-top:8px!important;border-top:1px solid #334155!important}tbody td.actions-cell:before{display:none!important;content:none!important}tbody td.actions-cell>*+*{margin-left:0}tbody td.actions-cell>button:not(.icon-action),tbody td.actions-cell>a:not(.icon-action){flex:1 1 calc(50% - 3px);min-width:0;white-space:nowrap;text-align:center;padding:8px 10px}tbody td.actions-cell>.icon-action{flex:0 0 auto}.pager{flex-wrap:wrap;justify-content:center!important;row-gap:8px}}@media (max-width: 380px){.files-grid,.folder-grid{grid-template-columns:1fr}.mp-controls .mp-rate{display:none}.mp-vol{width:60px}}.lang-switch{position:relative;margin:0 4px;display:inline-block}.lang-switch-btn{background:#0f172a;border:1px solid #334155;color:#e2e8f0;padding:4px 8px;border-radius:6px;font-size:.82em;font-weight:700;cursor:pointer;letter-spacing:.04em;min-width:36px;height:32px}.lang-switch-btn:hover{background:#1e293b;border-color:#475569}.lang-switch-menu{position:absolute;top:calc(100% + 6px);right:0;background:#1e293b;border:1px solid #334155;border-radius:8px;padding:4px;min-width:160px;z-index:100;box-shadow:0 8px 24px #0006;display:flex;flex-direction:column;gap:2px}.lang-switch-item{display:flex;align-items:center;gap:10px;background:transparent;border:none;color:#e2e8f0;padding:8px 12px;border-radius:6px;font-size:.9em;cursor:pointer;text-align:left}.lang-switch-item:hover{background:#0f172a}.lang-switch-item.active{background:#1d4ed8;color:#fff}.lang-switch-item.active .muted{color:#ffffffbf}.lang-switch-code{font-weight:700;letter-spacing:.04em;min-width:22px}.drawer-foot .lang-switch{margin:0 0 8px}.drawer-foot .lang-switch-btn{width:100%}.drawer-foot .lang-switch-menu{left:0;right:0}.dash{padding:8px 0}.page-title{margin-bottom:12px;font-size:1.05em}.dash-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.dash-chip{background:#0f172a;border:1px solid #334155;color:#e2e8f0;padding:5px 10px;border-radius:999px;font-size:.88em;cursor:pointer}.dash-chip:hover{background:#1e293b;border-color:#475569}.dash-chip.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.dash-chip.active .muted{color:#ffffffbf}.dash-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}.dash-pager .dash-btn{flex:0 0 auto;min-width:100px}.dash-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.dash-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-width:0}.dash-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.dash-card-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dash-card-body{display:flex;flex-direction:column;gap:6px}.dash-card-foot{display:flex;flex-wrap:wrap;gap:6px}.dash-card-toggle{background:transparent;border:none;color:#94a3b8;padding:2px 4px;cursor:pointer;font-size:.85em;display:inline-flex;align-items:center;gap:6px;align-self:center;border-radius:4px}.dash-card-toggle:hover{color:#e2e8f0;background:#94a3b814}.dash-chev{display:inline-block;transition:transform .15s ease;transform:rotate(-90deg);font-size:.85em;line-height:1}.dash-chev.open{transform:rotate(0)}.dash-btn{flex:1 1 auto;min-width:70px;background:#0f172a;border:1px solid #334155;color:#e2e8f0;padding:5px 8px;border-radius:4px;font-size:.88em;cursor:pointer;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:4px}.dash-btn:hover:not(:disabled){background:#1e293b;border-color:#475569}.dash-btn:disabled{opacity:.5;cursor:not-allowed}.dash-btn.primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.dash-btn.primary:hover:not(:disabled){background:#2563eb}.dash-btn.danger{background:#b91c1c;border-color:#b91c1c;color:#fff}.dash-btn.danger:hover:not(:disabled){background:#dc2626}.dash-error{background:#dc262626;border-left:3px solid #ef4444;padding:4px 8px;border-radius:3px;font-size:.82em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.75em;font-weight:700;letter-spacing:.04em;white-space:nowrap}.status-badge.rec{background:#b91c1c;color:#fff}.status-badge.off{background:#475569;color:#cbd5e1}.status-badge.wait{background:#ca8a04;color:#1c1c1c}.status-badge.sched{background:#1d4ed8;color:#fff}.status-badge.on{background:#16a34a;color:#fff}.spark{display:flex;gap:0;height:24px;width:100%;background:#0f172a;border-radius:3px;overflow:hidden;padding:2px;box-sizing:border-box}.spark-bar{flex:1;height:100%;min-width:1px}.spark-bar.empty{background:transparent}.spark-bar.offline{background:#ef4444}.spark-bar.online{background:#22c55e}.spark-bar.recording{background:#2563eb}.spark.spark-empty{display:flex;align-items:center;justify-content:center;font-size:.78em;padding:4px;height:24px}.sched-list{display:flex;flex-direction:column;gap:8px}.sched-row{display:flex;gap:10px;align-items:center;background:#0f172a;border:1px solid #334155;border-radius:6px;padding:8px}.sched-days{display:flex;gap:3px;flex-wrap:wrap}.sched-day{width:32px;height:28px;padding:0;border-radius:4px;background:#1e293b;border:1px solid #475569;color:#94a3b8;cursor:pointer;font-size:.82em}.sched-day.on{background:#2563eb;border-color:#2563eb;color:#fff}.sched-time{display:flex;gap:6px;align-items:center}.sched-time input{width:90px;padding:4px}.sched-remove{background:transparent;border:0;color:#ef4444;font-size:1.2em;cursor:pointer;padding:0 6px;line-height:1}.sched-add{align-self:flex-start;margin-top:4px}.sched-idx{font-size:.8em;min-width:22px;text-align:center;align-self:center}.sched-row-conflict{border-color:#ef4444;background:#ef444414}.sched-row-invalid{border-color:#eab308;background:#eab30814}.toasts{position:fixed;bottom:16px;right:16px;z-index:2000;display:flex;flex-direction:column;gap:8px;max-width:380px;pointer-events:none}.toast{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;background:#1e293b;border:1px solid #475569;color:#f1f5f9;font-size:.9em;box-shadow:0 4px 16px #0006;pointer-events:auto;cursor:pointer;animation:toast-in .2s ease-out}.toast-msg{flex:1;min-width:0;word-break:break-word}.toast-close{background:transparent;border:0;color:inherit;font-size:1.2em;cursor:pointer;opacity:.7;padding:0 4px;line-height:1}.toast-close:hover{opacity:1}.toast-info{border-left:4px solid #3b82f6}.toast-success{border-left:4px solid #22c55e}.toast-warn{border-left:4px solid #eab308;background:#1f2937}.toast-error{border-left:4px solid #ef4444;background:#2a1212}@keyframes toast-in{0%{transform:translate(20px);opacity:0}to{transform:translate(0);opacity:1}}@media (max-width: 600px){.dash-grid{grid-template-columns:1fr}.dash-pager{flex-direction:column;gap:6px}.dash-pager .dash-btn{width:100%}.sched-row{flex-wrap:wrap}.toasts{left:8px;right:8px;bottom:8px;max-width:none}}.notif-item{border-left:3px solid transparent;padding-left:8px}.notif-item.notif-error{border-left-color:#ef4444}.notif-item.notif-warn{border-left-color:#eab308}.notif-item.notif-success{border-left-color:#22c55e}.notif-item.notif-info{border-left-color:#3b82f6}.exp-pop-head{display:flex;justify-content:space-between;align-items:center}.fs-win{position:fixed;width:480px;background:#0f172a;border:1px solid #334155;border-radius:8px;box-shadow:0 12px 32px #00000080;display:flex;flex-direction:column;overflow:hidden;resize:both;min-width:320px;min-height:200px;max-width:95vw;max-height:90vh}.fs-win.fs-min{resize:none;height:auto!important;min-height:0}.fs-win.fs-min .fs-body{display:none}.fs-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:#1e293b;border-bottom:1px solid #334155;cursor:move;-webkit-user-select:none;user-select:none;touch-action:none}.fs-title{font-weight:600;font-size:.9em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;padding-right:8px}.fs-rec-tag{color:#f87171;font-weight:500;font-size:.85em}.fs-actions{display:flex;gap:4px;flex-shrink:0}.fs-btn{background:transparent;color:#cbd5e1;border:0;padding:2px 8px;border-radius:4px;cursor:pointer;font-size:1em;line-height:1}.fs-btn:hover{background:#ffffff1a;color:#fff}.fs-close:hover{background:#dc2626;color:#fff}.fs-body{position:relative;display:flex;flex-direction:column;padding:8px;gap:8px;flex:1;min-height:0}.fs-body .mp-wrap{flex:1;min-height:0}.fs-body .mp-wrap video{max-height:none;height:100%;width:100%;object-fit:contain}.fs-status{font-size:.85em}.fs-toolbar{display:flex;gap:6px}@media (max-width: 600px){.fs-win{width:94vw!important;left:3vw!important}}.notif-clear{background:transparent;color:#94a3b8;border:0;padding:2px 6px;cursor:pointer;font-size:.8em;display:inline-flex;align-items:center;gap:4px;border-radius:4px}.notif-clear:hover{background:#ef444426;color:#fca5a5}.notif-clear svg{width:14px;height:14px}.notif-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 10px;border-top:1px solid #334155;font-size:.85em}.notif-pager button{background:#0f172a;border:1px solid #334155;color:#cbd5e1;width:28px;height:24px;padding:0;border-radius:4px;cursor:pointer;font-weight:500}.notif-pager button:disabled{opacity:.4;cursor:not-allowed}.folder-tile-btn{display:inline-flex;align-items:center;gap:8px}.folder-tile-icon{width:16px;height:16px;flex-shrink:0;color:#94a3b8}.folder-tile-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-tile:hover .folder-tile-icon{color:#cbd5e1}.sched-segment{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 0 8px;background:#0f172a;border:1px solid #334155;border-radius:6px}.sched-segment label{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:.9em}.sched-segment select{width:110px;padding:4px 8px}.sched-hint{font-size:.8em}.sync-progress{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:12px 14px}.sync-progress-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}.sync-percent{font-size:1.1em;font-weight:700}.sync-percent.ok{color:#22c55e}.sync-percent.err{color:#ef4444}.sync-bar{height:6px;background:#ffffff14;border-radius:3px;overflow:hidden;margin-bottom:14px}.sync-bar-fill{height:100%;background:linear-gradient(90deg,#2563eb,#22c55e);border-radius:3px;transition:width .4s ease-out}.sync-bar-fill.err{background:#ef4444}.sync-stages{display:flex;flex-direction:column;gap:10px}.stage-row{display:flex;align-items:flex-start;gap:10px;padding:6px 8px;border-radius:6px;transition:background-color .2s}.stage-row.stage-running{background:#2563eb14}.stage-row.stage-done{opacity:.85}.stage-row.stage-error{background:#ef44441a}.stage-icon{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.9em;flex-shrink:0}.stage-icon.stage-idle{background:#1e293b;border:1px solid #334155}.stage-icon.stage-done{background:#16a34a;color:#fff}.stage-icon.stage-error{background:#dc2626;color:#fff}.stage-spinner{width:22px;height:22px;border-radius:50%;border:2px solid rgba(37,99,235,.25);border-top-color:#60a5fa;animation:spin .7s linear infinite;flex-shrink:0}.stage-body{flex:1;min-width:0;padding-top:1px}.stage-label{font-size:.93em}.stage-row.stage-done .stage-label{color:#cbd5e1}.stage-row.stage-running .stage-label{color:#fff;font-weight:500}.stage-message{font-size:.83em;margin-top:2px}.sync-details-toggle{background:transparent;color:#94a3b8;border:0;text-align:left;padding:4px 0;cursor:pointer;font-size:.85em;font-weight:400}.sync-details-toggle:hover{color:#cbd5e1;background:transparent}.spark-wrap{display:flex;flex-direction:column;gap:2px}.spark{position:relative}.spark-ticks{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.spark-tick{position:absolute;top:-1px;bottom:-1px;width:1px;background:#ffffff2e;transform:translate(-.5px)}.spark-axis{position:relative;height:12px;font-size:.7em;color:#94a3b8}.spark-axis-label{position:absolute;top:0;transform:translate(-50%);white-space:nowrap}.spark-axis-label[style*="left: 0%"]{transform:translate(0)}.spark-axis-label[style*="left: 100%"]{transform:translate(-100%)}.sched-streams{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.sched-stream-toggle{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:.9em;padding:4px 10px;border:1px solid #334155;border-radius:6px;background:#1e293b}.sched-stream-toggle input{width:auto}.sched-stream-toggle:hover{border-color:#475569}.spark-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:.72em;color:#94a3b8;margin-top:2px}.spark-legend-item{display:inline-flex;align-items:center;gap:4px}.spark-legend-dot{display:inline-block;width:10px;height:10px;border-radius:2px}.spark-legend-dot.recording{background:#2563eb}.spark-legend-dot.online{background:#22c55e}.spark-legend-dot.offline{background:#ef4444}.spark-legend-dot.empty{background:#ffffff1f;border:1px solid rgba(255,255,255,.25)}.spark-wrap{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.spark-wrap:active{cursor:grabbing}.spark-zoom-info{margin-left:auto;font-size:.7em;color:#64748b;white-space:nowrap}.spark-empty-overlay{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:.78em;opacity:.6}.fs-video{width:100%;flex:1;min-height:0;background:#000;border-radius:6px;object-fit:contain}
