:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:#090b0e; color:#f7f8fa; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 85% -10%,#23374e 0,transparent 34%),#090b0e; }
.shell { width:min(960px,100%); margin:auto; padding:28px 18px 56px; }
header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:24px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(30px,6vw,48px); letter-spacing:-.04em; }
.eyebrow,.label { color:#77bfff; font-size:12px; font-weight:800; letter-spacing:.14em; }
.card { background:rgba(24,28,34,.9); border:1px solid #2b323b; border-radius:20px; box-shadow:0 18px 50px rgba(0,0,0,.25); }
.pill { display:flex; align-items:center; gap:8px; padding:9px 13px; border-radius:999px; background:#252a31; font-weight:750; font-size:13px; }
.pill span { width:9px; height:9px; border-radius:50%; background:#8a919a; }
.pill.online { color:#8af3b3; background:#113222; }.pill.online span { background:#44df80; box-shadow:0 0 14px #44df80; }
.pill.offline { color:#ffaaa3; background:#3b1717; }.pill.offline span { background:#ff6259; }
.hero { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:26px; }
.hero h2 { margin-top:6px; font-size:clamp(24px,4vw,34px); }
.muted { color:#9ca5b0; margin-top:7px; line-height:1.45; }
.record-state { display:flex; align-items:center; gap:9px; padding:11px 14px; background:#11151a; border-radius:13px; }
.record-state span { width:11px; height:11px; border-radius:50%; background:#717984; }
.record-state.active span { background:#ff4949; box-shadow:0 0 15px #ff4949; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin:13px 0; }
.metric { padding:20px; }.metric p { color:#aab2bc; font-size:13px; }.metric strong { display:block; margin:8px 0 3px; font-size:26px; }.metric small { color:#737d88; }
.alert-card { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:23px; margin-bottom:13px; }
.alert-card h3 { margin-top:5px; }
.storage-warning { margin-bottom:13px; padding:18px 22px; border-color:#8b5f18; background:#35250e; color:#ffd88a; }
.storage-warning p { margin-top:5px; color:#e6c58a; }
button { border:0; border-radius:13px; padding:13px 18px; background:#3f9cff; color:white; font-weight:800; cursor:pointer; white-space:nowrap; }
button:disabled { background:#343a42; color:#7c858f; cursor:not-allowed; }
.button-link { display:inline-flex; align-items:center; justify-content:center; border-radius:13px; padding:12px 16px; background:#3f9cff; color:#fff; font-size:13px; font-weight:800; text-decoration:none; }
.download-actions { display:flex; align-items:center; gap:9px; }
.download-actions select { width:auto; min-width:105px; }
.secondary { background:#2c3744; color:#dcecff; }
.danger { background:#8f302f; }
.latest-card { padding:23px; margin-top:13px; }
.latest-card h3 { margin-top:5px; }
.latest-frame { display:grid; place-items:center; min-height:260px; margin-top:18px; overflow:hidden; border-radius:15px; background:#080a0d; border:1px solid #29303a; }
.latest-frame img { display:block; width:100%; max-height:600px; object-fit:contain; background:#050607; }
.photo-meta { display:flex; justify-content:space-between; gap:14px; margin-top:12px; color:#87919d; font-size:12px; }
.photo-meta strong { color:#cfd5dc; }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.auth-card { width:min(460px,100%); padding:30px; }
.auth-card h1 { margin-top:8px; font-size:clamp(30px,8vw,42px); }
form { display:grid; gap:16px; margin-top:26px; }
label { display:grid; gap:7px; color:#c8cdd3; font-size:13px; font-weight:700; }
input { width:100%; border:1px solid #3a424c; border-radius:12px; padding:13px 14px; background:#0f1318; color:#fff; font:inherit; outline:none; }
select { width:100%; border:1px solid #3a424c; border-radius:12px; padding:13px 14px; background:#0f1318; color:#fff; font:inherit; outline:none; }
input:focus { border-color:#3f9cff; box-shadow:0 0 0 3px rgba(63,156,255,.15); }
.form-error { min-height:20px; color:#ff8f88; font-size:13px; }
.hint { color:#7e8893; font-size:12px; line-height:1.4; }
.admin-card { padding:23px; margin-bottom:13px; }
.controls-card { padding:23px; margin-bottom:13px; }
.controls-card h3 { margin-top:5px; }
.control-grid { display:grid; grid-template-columns:minmax(220px,1fr) repeat(4,auto); align-items:end; gap:12px; margin-top:20px; }
.config-row { grid-template-columns:minmax(220px,1fr) auto; max-width:580px; padding-top:18px; border-top:1px solid #2b323b; }
.mini-pill { padding:7px 11px; border-radius:999px; font-size:12px; font-weight:800; }
.mini-pill.running { color:#8af3b3; background:#113222; }
.mini-pill.stopped { color:#c3cad2; background:#252a31; }
.preferences-card { padding:23px; margin-bottom:13px; }
.preferences-card h3 { margin-top:5px; }
.preferences-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:20px; }
.preference { display:grid; grid-template-columns:1fr auto; align-items:end; gap:10px; padding:16px; border:1px solid #303842; border-radius:15px; background:#11151a; }
.preference button { padding:12px 14px; }
.invite-form { grid-template-columns:1fr 1fr auto; align-items:end; }
.invite-result { display:grid; grid-template-columns:1fr auto; align-items:end; gap:12px; margin-top:18px; }
.invite-result .hint { grid-column:1 / -1; }
.user-list { margin-top:20px; border-top:1px solid #2b323b; }
.user-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid #2b323b; }
.user-row strong,.user-row small { display:block; }
.user-row small { margin-top:4px; color:#818b96; }
.role-button { padding:9px 12px; font-size:12px; }
[hidden] { display:none !important; }
.events-card { padding:23px; }.section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; }.section-heading span { color:#858f9a; font-size:12px; }
.events { margin-top:16px; }.event { display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid #2b323b; }.event strong { font-size:14px; }.event time { color:#818b96; font-size:12px; }
.audit-entry { display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid #2b323b; }
.audit-entry strong,.audit-entry small { display:block; }
.audit-entry small { margin-top:4px; color:#7f8995; }
.audit-entry time { color:#818b96; font-size:12px; white-space:nowrap; }
@media (max-width:820px) { .control-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:720px) { .metrics { grid-template-columns:repeat(2,1fr); } .hero,.alert-card { align-items:flex-start; flex-direction:column; } .invite-form,.invite-result,.control-grid,.config-row,.preferences-grid { grid-template-columns:1fr; max-width:none; } .invite-result .hint { grid-column:1; } .section-heading,.photo-meta,.user-row,.audit-entry { align-items:flex-start; flex-direction:column; } .download-actions { width:100%; flex-wrap:wrap; } .latest-frame { min-height:190px; } }
