/* Pandent palette from the supplied site.css; original logo is used unchanged. */
:root {
  --primary: #7f2461;
  --primary-dark: #6a1f52;
  --primary-light: #e6dce7;
  --secondary: #5a99a8;
  --bg: #100e14;
  --panel: #1b1720;
  --line: #3a2e40;
  --text: #f3edf4;
  --muted: #b3a7b9;
  --accent: #e5a8d1;
  --danger: #ffabae;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body { background: var(--bg); }
button { background: #261f2c; border-color: var(--line); }
button:hover { background: #38283d; }
input, select { background: #120f18; border-color: #524059; color: var(--text); }
input:focus, select:focus { border-color: var(--accent); }
label { color: #e0d6e5; }
button.primary { background: var(--primary); color: #fff; border-color: #a44384; font-weight: 600; }
button.primary:hover { background: #943477; border-color: #c56da7; }
.topbar { height: auto; min-height: 94px; gap: 24px; padding: 16px 34px; background: #1a141e; border-bottom: 1px solid #503047; }
.brand { gap: 19px; min-width: 0; }
.logo-plate { display: block; background: var(--primary-light); border-radius: 8px; padding: 8px 10px; flex-shrink: 0; }
.logo-plate img { display: block; width: 154px; height: auto; }
.brand-name { font-size: 20px; font-weight: 650; white-space: nowrap; letter-spacing: -.6px; }
.brand-name span, .login-panel h1 span { color: var(--accent); }
.identity { font-size: 12px; color: #bbdbe2; padding: 8px 12px; border-left: 2px solid var(--secondary); max-width: 250px; overflow-wrap: anywhere; }
.header-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.quiet { background: transparent; }
.workspace { padding-top: 36px; }
.heading { margin-bottom: 24px; gap: 24px; }
.heading h1 { font-size: 32px; margin-bottom: 12px; }
.heading .eyebrow { margin-bottom: 14px; }
.heading #page-subtitle { margin: 0; font-size: 13px; }
.heading #summary { flex-shrink: 0; font-size: 12px; margin-bottom: 2px; }
.live-label { margin-left: 12px; border-color: #496b72; color: #afd7df; background: #203039; font-size: 9px; vertical-align: middle; }
.segmented { background: #19141e; }
.segmented button[aria-pressed=true] { background: #47233e; color: #f3d2e8; border-color: #884e75; }
.camera-card { border-color: #392c40; box-shadow: 0 4px 24px #0002; }
.card-heading { padding-top: 17px; }
.card-heading h2 { font-weight: 600; }
.camera-group { font-family: inherit; }
.video-area { background: #0b090e; }
.video-overlay { background: #21192be8; border: 1px solid #48374f; }
.source-caption { color: #aa97b2; }
.status-dot { background: #e4c38a; }
.camera-card[data-state=online] .status-dot { background: #86cbd4; }
.card-controls { background: #201923; border-top: 1px solid #32253a; }
.audio[aria-pressed=true] { color: #c2e5eb; background: #20373d; border-color: var(--secondary); }
.audio-only .video-area { min-height: 205px; aspect-ratio: auto; background: radial-gradient(ellipse at center, #302036, #130e18 75%); }
.audio-art { position: absolute; inset: 26% 0 auto; display: grid; gap: 8px; text-align: center; color: #bcdde3; }
.audio-art span { font: 40px 'Segoe UI', sans-serif; letter-spacing: -3px; }
.audio-art strong { font-size: 13px; font-weight: 500; color: var(--muted); }
.audio-only .stream-detail { inset: auto 8% 8%; margin: 0; font-size: 11px; }
.audio-only audio { display: none; }
.empty { background: #19141e; }
.workspace-footer { color: #a18da8; }
dialog { background: var(--panel); border-color: #604365; width: min(960px, calc(100% - 24px)); box-shadow: 0 24px 80px #0009; }
.dialog-heading { background: #251a29; border-color: #53344d; }
.dialog-heading h2 { font-size: 22px; }
.camera-list-panel { background: #18131c; }
#camera-list button[aria-pressed=true] { background: #382033; border-color: #a76191; }
#toast { background: #39243a; border-color: #ab6a99; color: #f6eafa; }
.login-page { background: radial-gradient(ellipse at 25% 0, #4a213e 0, transparent 50%), radial-gradient(ellipse at 95% 100%, #19313b 0, transparent 50%), #100e14; }
.login-panel { width: min(450px, calc(100% - 32px)); background: #1b1522f5; border-color: #613751; border-radius: 18px; padding: 38px; box-shadow: 0 25px 90px #0006; }
.login-logo { width: fit-content; margin: 0 0 32px; padding: 12px 17px; }
.login-logo img { width: 230px; max-width: 100%; height: auto; }
.login-panel h1 { font-size: 30px; font-weight: 650; letter-spacing: -1px; }
.login-panel .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
.login-panel form { margin-top: 28px; }
.login-panel .primary { padding: 13px; }
.users-body { padding: 24px; }
.user-tabs { display: flex; gap: 8px; margin: 20px 0 24px; flex-wrap: wrap; }
.user-tabs button[aria-pressed=true] { background: #48213e; color: #f6d8ed; border-color: #aa6291; }
.user-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.user-fields label { min-width: 0; }
.permissions-heading { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin-top: 28px; }
.permissions-heading h3 { margin-bottom: 14px; }
.permissions-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; }
.permissions-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.permissions-table thead { background: #2b1d2e; color: #e6c6de; }
.permissions-table th, .permissions-table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
.permissions-table thead th { font-weight: 600; }
.permissions-table th[scope=row] { font-weight: 500; overflow-wrap: anywhere; }
.permissions-table th[scope=row] small { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; }
.permissions-table td { width: 80px; text-align: center; }
.permissions-table thead th:not(:first-child) { text-align: center; }
.permissions-table tr:last-child th, .permissions-table tr:last-child td { border-bottom: 0; }
.permissions-table input { width: 19px; height: 19px; margin: 0; accent-color: #a94787; cursor: pointer; }
.permissions-table input:disabled { opacity: .25; cursor: not-allowed; }
.notice { background: #261e2c; border-left: 3px solid var(--secondary); padding: 20px; line-height: 1.7; }
@media(max-width:1100px) {
  .topbar { flex-wrap: wrap; gap: 16px; }
  .header-actions { justify-content: flex-start; }
  .heading { align-items: flex-start; }
  .heading #summary { flex-shrink: 1; }
}
@media(max-width:650px) {
  .topbar { padding: 14px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 18px; }
  .logo-plate img { width: 128px; }
  .header-actions { width: 100%; gap: 8px; }
  .identity { max-width: none; width: 100%; padding: 4px 9px; margin-bottom: 4px; }
  .heading h1 { font-size: 28px; }
  .heading #summary { margin-top: 16px; }
  .login-panel { padding: 28px; }
  .login-logo img { width: 220px; }
  .login-panel h1 { font-size: 28px; }
  .users-body { padding: 18px; }
  .user-fields { grid-template-columns: 1fr; gap: 0; }
  .permissions-heading { display: block; margin-bottom: 12px; }
  .permissions-heading h3 { margin-bottom: 4px; }
  .permissions-table th, .permissions-table td { padding: 12px 8px; }
  .permissions-table td { width: 48px; }
  .dialog-heading h2 { font-size: 19px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none !important; } }
