/* Mellfam Command: dark glass HUD. Mobile first; the sidebar appears at 900px. */
@font-face { font-family: "Orbitron"; src: url(fonts/orbitron-500-900.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #03050c;
  --line: rgba(130, 180, 255, 0.13);
  --line-2: rgba(130, 180, 255, 0.26);
  --text: #e8f1ff;
  --muted: #8fa3c8;
  --dim: #5e6f93;
  --cyan: #2ee6ff;
  --blue: #4f8cff;
  --violet: #9b6bff;
  --pink: #ff4fd8;
  --ok: #2df5a0;
  --warn: #ffc23d;
  --crit: #ff4d6d;
  --idle: #6b7a99;
  --radius: 20px;
  --display: "Orbitron", "Rajdhani", system-ui, sans-serif;
  --ui: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side: 252px;
  --top: 64px;
  --tab: 66px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
::selection { background: rgba(46, 230, 255, 0.3); }

/* ---------------------------------------------------------------- living background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #0d1736 0%, var(--bg) 58%); }
.bg-aurora { position: absolute; inset: -25%; filter: blur(14px); will-change: transform;
  background:
    radial-gradient(38% 32% at 18% 18%, rgba(79, 140, 255, 0.24), transparent 70%),
    radial-gradient(32% 28% at 86% 12%, rgba(46, 230, 255, 0.17), transparent 70%),
    radial-gradient(44% 38% at 72% 86%, rgba(155, 107, 255, 0.19), transparent 70%),
    radial-gradient(28% 28% at 8% 92%, rgba(255, 79, 216, 0.11), transparent 70%);
  animation: aurora 30s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(4%, -3%, 0) rotate(7deg) scale(1.08); } }
.bg-stars { position: absolute; inset: -240px 0 0; opacity: 0.55; will-change: transform;
  background-image:
    radial-gradient(1.2px 1.2px at 22px 34px, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 142px 82px, rgba(160, 200, 255, 0.75), transparent 60%),
    radial-gradient(1.4px 1.4px at 92px 166px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 204px 214px, rgba(180, 160, 255, 0.75), transparent 60%),
    radial-gradient(1.1px 1.1px at 60px 228px, rgba(46, 230, 255, 0.6), transparent 60%);
  background-size: 240px 240px; animation: drift 90s linear infinite; }
@keyframes drift { to { transform: translate3d(0, 240px, 0); } }
.bg-grid { position: absolute; left: -50%; right: -50%; bottom: -12%; height: 60%; opacity: 0.45;
  background-image: linear-gradient(rgba(46, 230, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 230, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px; transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 78%); mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 78%);
  animation: grid 6s linear infinite; }
@keyframes grid { from { transform: perspective(520px) rotateX(64deg) translateY(0); } to { transform: perspective(520px) rotateX(64deg) translateY(64px); } }
.bg-scan { position: absolute; left: 0; right: 0; height: 30vh; top: -30vh; background: linear-gradient(180deg, transparent, rgba(46, 230, 255, 0.045), transparent); animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: translateY(160vh); } }

/* ---------------------------------------------------------------- icons, logo */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico.sm { width: 16px; height: 16px; }
.ico.spinning { animation: spin 1s linear infinite; }
.logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(46, 230, 255, 0.55)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- glass */
.glass { position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 34, 72, 0.55), rgba(8, 14, 34, 0.58));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(135%); backdrop-filter: blur(16px) saturate(135%); }
.glass::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); opacity: 0.75; }
.card { padding: 18px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; min-height: 28px; font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card-h > .ico { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.6)); }
.card-h .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.28em; color: var(--cyan); text-transform: uppercase; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 16px 0; }

/* ---------------------------------------------------------------- layout */
#app { min-height: 100vh; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 30; height: calc(var(--top) + var(--safe-t)); padding: var(--safe-t) 14px 0; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.9), rgba(3, 5, 12, 0.6)); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-family: var(--display); font-weight: 800; letter-spacing: 0.18em; font-size: 14px; }
.top-brand .logo { width: 30px; height: 30px; }
.top-title { display: none; flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 10px; }
.clock { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.health { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 16, 36, 0.65);
  font-family: var(--ui); font-weight: 700; letter-spacing: 0.14em; font-size: 12px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.health.ok { color: var(--ok); border-color: rgba(45, 245, 160, 0.35); }
.health.warn { color: var(--warn); border-color: rgba(255, 194, 61, 0.4); }
.health.crit { color: var(--crit); border-color: rgba(255, 77, 109, 0.5); box-shadow: 0 0 18px rgba(255, 77, 109, 0.25); }
.me-chip { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid rgba(46, 230, 255, 0.4); display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(46, 230, 255, 0.28), rgba(155, 107, 255, 0.28)); font-family: var(--display); font-weight: 800; font-size: 13px; color: #fff; }
.me-chip.xl { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 30px rgba(46, 230, 255, 0.25); }
.main { padding: 16px 12px calc(var(--tab) + var(--safe-b) + 30px); max-width: 1560px; margin: 0 auto; }
.page { display: grid; gap: 16px; animation: pageIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

.tabbar { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); height: var(--tab); display: grid; grid-template-columns: repeat(5, 1fr);
  border-radius: 22px; background: rgba(7, 12, 28, 0.86); border: 1px solid var(--line-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(46, 230, 255, 0.04); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; background: none;
  color: var(--muted); font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.tabbar .on { color: var(--cyan); text-shadow: 0 0 12px rgba(46, 230, 255, 0.6); }
.tabbar .on .ico { filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.9)); }
.tabbar .on::after { content: ""; position: absolute; top: 6px; width: 22px; height: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

@media (min-width: 900px) {
  .side { display: flex; position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 35; flex-direction: column; padding: 22px 14px 18px;
    border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 10, 26, 0.85), rgba(3, 5, 12, 0.85)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .top, .main { margin-left: var(--side); }
  .top-brand { display: none; }
  .top-title { display: block; }
  .tabbar { display: none; }
  .main { padding: 24px 28px 48px; }
}
@media (max-width: 520px) { .clock { display: none; } .health { padding: 0 10px; } }

.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 24px; }
.brand .logo { width: 44px; height: 44px; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: 0.18em; }
.brand-sub { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.55em; color: var(--cyan); margin-top: 2px; }
.side-nav { display: grid; gap: 3px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; color: var(--muted);
  font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s, background 0.2s; }
.side-nav a:hover { color: var(--text); background: rgba(80, 120, 220, 0.08); }
.side-nav a.on { color: #fff; background: linear-gradient(90deg, rgba(46, 230, 255, 0.17), rgba(155, 107, 255, 0.05)); border-color: rgba(46, 230, 255, 0.25); }
.side-nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.side-nav a.on .ico { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.85)); }
.side-sep { height: 1px; margin: 10px 8px; background: var(--line); }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-name { font-family: var(--ui); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- grids */
.grid { display: grid; gap: 16px; min-width: 0; }
.g2 { grid-template-columns: minmax(0, 1fr); }
.ov { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ov { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1380px) { .ov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.span-all { grid-column: 1 / -1; }
@media (min-width: 760px) { .span2 { grid-column: span 2; } }
.stack { display: grid; gap: 16px; min-width: 0; }

/* ---------------------------------------------------------------- hero / core */
.hero { display: grid; gap: 16px; padding: 18px; align-items: center; overflow: hidden; }
@media (min-width: 820px) { .hero { grid-template-columns: 330px minmax(0, 1fr); padding: 26px 28px; gap: 28px; } }
.core { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.core svg { width: 100%; height: 100%; overflow: visible; }
.core .spin { transform-box: view-box; transform-origin: 50% 50%; }
.core .s1 { animation: spin 120s linear infinite; }
.core .s2 { animation: spin 80s linear infinite reverse; }
.core .s3 { animation: spin 22s linear infinite; }
.seg { fill: none; stroke-width: 7; stroke-linecap: round; stroke: var(--idle); opacity: 0.55; transition: stroke 0.4s; }
.seg.ok { stroke: var(--ok); opacity: 1; filter: drop-shadow(0 0 4px rgba(45, 245, 160, 0.75)); }
.seg.warn { stroke: var(--warn); opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 194, 61, 0.8)); }
.seg.crit { stroke: var(--crit); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 77, 109, 0.9)); animation: blink 1.4s ease-in-out infinite; }
.seg.m { stroke-width: 5; }
@keyframes blink { 50% { opacity: 0.35; } }
.core-halo { fill: url(#coreHalo); }
.core-dash { fill: none; stroke: rgba(46, 230, 255, 0.28); stroke-width: 1.2; stroke-dasharray: 2 7; }
.core-tick { fill: none; stroke: rgba(155, 107, 255, 0.55); stroke-width: 2; stroke-dasharray: 18 120; stroke-linecap: round; }
.core-inner { fill: rgba(3, 6, 16, 0.75); stroke: rgba(46, 230, 255, 0.18); stroke-width: 1; }
.load-track { fill: none; stroke: rgba(140, 170, 255, 0.1); stroke-width: 6; }
.load { fill: none; stroke: url(#gGrad); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray 1s cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 0 5px rgba(46, 230, 255, 0.6)); }
.core-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.core-label { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.4em; color: var(--muted); margin-left: 0.4em; }
.core-score { font-family: var(--display); font-weight: 900; font-size: clamp(46px, 13vw, 62px); line-height: 1; margin: 4px 0;
  background: linear-gradient(180deg, #ffffff, #9fe9ff 60%, #7aa7ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(46, 230, 255, 0.45)); }
.core-score span { font-size: 0.42em; margin-left: 2px; }
.core-word { font-family: var(--ui); font-weight: 700; letter-spacing: 0.22em; font-size: 11.5px; color: var(--ok); }
.core-warn .core-word { color: var(--warn); }
.core-crit .core-word { color: var(--crit); }
.core-legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.core-legend b { color: var(--text); font-family: var(--display); font-size: 12px; letter-spacing: 0.04em; }
.hero-side { display: grid; gap: 18px; min-width: 0; }
.hello h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 5vw, 32px); letter-spacing: 0.04em; margin: 6px 0 6px; }
.hello p { color: var(--muted); line-height: 1.5; font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 4px; padding: 13px 14px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.55); transition: border-color 0.2s, transform 0.2s; }
.kpi:hover { border-color: rgba(46, 230, 255, 0.4); transform: translateY(-2px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.kpi-top .ico { color: var(--cyan); width: 18px; height: 18px; }
.kpi-val { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.kpi-val small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kpi-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.warn .kpi-val { color: var(--warn); }
.kpi.crit .kpi-val { color: var(--crit); }

/* ---------------------------------------------------------------- dots, pills, chips */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--idle); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(45, 245, 160, 0.85); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px rgba(255, 194, 61, 0.85); }
.dot.crit { background: var(--crit); box-shadow: 0 0 12px rgba(255, 77, 109, 0.95); animation: pulse 1.5s ease-in-out infinite; }
.dot.live { background: var(--crit); box-shadow: 0 0 10px var(--crit); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.4); opacity: 0.65; } }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; background: rgba(6, 10, 24, 0.5); }
.pill.ok { color: var(--ok); border-color: rgba(45, 245, 160, 0.38); background: rgba(45, 245, 160, 0.07); }
.pill.warn { color: var(--warn); border-color: rgba(255, 194, 61, 0.42); background: rgba(255, 194, 61, 0.07); }
.pill.crit { color: var(--crit); border-color: rgba(255, 77, 109, 0.5); background: rgba(255, 77, 109, 0.08); }
.pill.info { color: var(--cyan); border-color: rgba(46, 230, 255, 0.35); background: rgba(46, 230, 255, 0.06); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: rgba(46, 230, 255, 0.08); border: 1px solid rgba(46, 230, 255, 0.25); font-family: var(--ui); font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(40, 60, 112, 0.5), rgba(18, 28, 58, 0.5)); color: var(--text);
  font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  transition: transform 0.12s, border-color 0.2s, box-shadow 0.2s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.btn:hover { border-color: rgba(46, 230, 255, 0.6); box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.2), 0 0 24px rgba(46, 230, 255, 0.16); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .tgl:focus-visible, .alert:focus-visible, .site:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn.primary { border-color: transparent; color: #030614; background: linear-gradient(135deg, #2ee6ff, #7b8cff 55%, #9b6bff); box-shadow: 0 8px 30px rgba(79, 140, 255, 0.35); }
.btn.primary .ico { stroke-width: 2.4; }
.btn.danger { border-color: rgba(255, 77, 109, 0.5); color: #ffd3dc; background: linear-gradient(180deg, rgba(120, 22, 46, 0.5), rgba(58, 10, 24, 0.5)); }
.btn.danger:hover { border-color: var(--crit); box-shadow: 0 0 24px rgba(255, 77, 109, 0.25); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.38; pointer-events: none; }
.btn .hold-hint { font-size: 9.5px; letter-spacing: 0.18em; opacity: 0.55; padding-left: 2px; }
/* hold-to-confirm: a charge bar fills while the button is pressed */
.btn[data-hold]::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, rgba(46, 230, 255, 0.35), rgba(155, 107, 255, 0.6)); transition: transform 0.25s ease-out; }
.btn.danger[data-hold]::after { background: linear-gradient(90deg, rgba(255, 77, 109, 0.35), rgba(255, 79, 216, 0.6)); }
.btn.holding::after { transform: scaleX(1); transition: transform 1.1s linear; }
.btn.held { animation: held 0.6s ease-out; }
@keyframes held { from { box-shadow: 0 0 0 0 rgba(46, 230, 255, 0.9); } to { box-shadow: 0 0 0 16px rgba(46, 230, 255, 0); } }
.btn.zap { animation: zap 0.3s ease-out; }
@keyframes zap { from { box-shadow: 0 0 0 0 rgba(46, 230, 255, 0.8); background: rgba(46, 230, 255, 0.25); } }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.row-btns.center { justify-content: center; }

/* ---------------------------------------------------------------- gauges + charts */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gauge { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(135deg); overflow: visible; }
.g-track { fill: none; stroke: rgba(140, 170, 255, 0.12); stroke-width: 7; stroke-linecap: round; }
.g-val { fill: none; stroke: url(#gGrad); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(46, 230, 255, 0.55));
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.4s; }
.gauge.warn .g-val { stroke: var(--warn); filter: drop-shadow(0 0 5px rgba(255, 194, 61, 0.6)); }
.gauge.crit .g-val { stroke: var(--crit); filter: drop-shadow(0 0 6px rgba(255, 77, 109, 0.7)); }
.g-mid { position: relative; text-align: center; line-height: 1.05; padding-top: 4px; }
.g-num { font-family: var(--display); font-weight: 800; font-size: clamp(14px, 3.7vw, 21px); letter-spacing: 0.02em; }
.g-label { font-family: var(--ui); font-weight: 700; font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.g-sub { font-size: 10px; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.gauges.big { width: 100%; max-width: 760px; margin: 0 auto; gap: 14px; }
@media (min-width: 900px) { .gauges.big .g-num { font-size: 24px; } .gauges.big .g-label { font-size: 12px; } }
.chart { padding: 12px 12px 8px; border-radius: 15px; background: rgba(4, 8, 20, 0.45); border: 1px solid var(--line); min-width: 0; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.chart-h b { color: var(--text); font-family: var(--display); font-size: 13px; letter-spacing: 0.04em; text-transform: none; white-space: nowrap; }
.spark { width: 100%; height: 58px; display: block; overflow: visible; }
.sp-line { fill: none; stroke: url(#spLine); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(46, 230, 255, 0.55)); }
.sp-area { fill: url(#spArea); stroke: none; }
.spark.warm .sp-line { stroke: url(#spWarm); filter: drop-shadow(0 0 4px rgba(255, 194, 61, 0.5)); }
.spark.warm .sp-area { fill: url(#spAreaWarm); }
.spark.violet .sp-line { stroke: url(#spViolet); filter: drop-shadow(0 0 4px rgba(155, 107, 255, 0.55)); }
.spark.violet .sp-area { fill: url(#spAreaViolet); }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

/* ---------------------------------------------------------------- hosts */
.host { padding: 18px; display: grid; gap: 18px; min-width: 0; }
@media (min-width: 900px) { .host { padding: 24px; } }
.host-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.host-badge { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--cyan);
  background: linear-gradient(135deg, rgba(46, 230, 255, 0.18), rgba(155, 107, 255, 0.18)); border: 1px solid rgba(46, 230, 255, 0.3); box-shadow: 0 0 22px rgba(46, 230, 255, 0.15); }
.host-badge .ico { width: 24px; height: 24px; }
.host-id { flex: 1; min-width: 0; }
.host-name { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: 0.16em; }
.host-role { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.host-meta span { display: inline-flex; align-items: center; gap: 6px; }
.host-meta b { color: var(--text); font-weight: 600; }
.host-meta .ico { width: 15px; height: 15px; color: var(--cyan); }
.host-off { display: grid; place-items: center; gap: 10px; padding: 34px 10px; color: var(--crit); font-family: var(--ui); font-weight: 700; letter-spacing: 0.16em; text-align: center; }
.host-off .ico { width: 34px; height: 34px; }
.mini-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.mini-foot span { display: inline-flex; align-items: center; gap: 6px; }
.mini-foot .ico { width: 15px; height: 15px; }
.mini-foot a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-family: var(--ui); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.disks { display: grid; gap: 10px; }
.disk-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.disk-h b { font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.bar { height: 8px; border-radius: 99px; background: rgba(140, 170, 255, 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px rgba(46, 230, 255, 0.5); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.warn i { background: linear-gradient(90deg, #ffe08a, var(--warn)); }
.bar.crit i { background: linear-gradient(90deg, #ff8a9c, var(--crit)); }
.sub-box { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(4, 8, 20, 0.4); }
.sub-box .card-h { margin-bottom: 10px; }
.mc { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mc-n { font-family: var(--display); font-weight: 800; font-size: 30px; }
.mc-n span { font-size: 16px; color: var(--muted); }
.mc-p { display: flex; flex-wrap: wrap; gap: 6px; }
.host-power { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.upd { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.upd .ico { color: var(--cyan); }
.power-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- services */
.svc-group-h { font-family: var(--ui); font-weight: 700; font-size: 11.5px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; margin: 14px 4px 6px; }
.svc-group:first-of-type .svc-group-h { margin-top: 2px; }
.svc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; }
.svc:hover { background: rgba(80, 120, 220, 0.06); border-color: var(--line); }
.svc-name { font-family: var(--ui); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-desc { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-desc .bad { color: var(--crit); font-weight: 600; }
.svc-acts { display: flex; gap: 6px; }
.svc-cols { display: grid; gap: 4px 24px; }
@media (min-width: 1200px) { .svc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- alerts */
.alerts { display: grid; gap: 8px; }
.alert { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 12px 11px 0; text-align: left;
  border-radius: 13px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.55); color: inherit; transition: border-color 0.2s, transform 0.2s; }
.alert:hover { border-color: var(--line-2); transform: translateX(2px); }
.alert::before { content: ""; align-self: stretch; border-radius: 0 4px 4px 0; background: var(--idle); }
.alert.crit::before { background: var(--crit); box-shadow: 0 0 12px var(--crit); }
.alert.warn::before { background: var(--warn); box-shadow: 0 0 10px rgba(255, 194, 61, 0.6); }
.alert.info::before { background: var(--cyan); box-shadow: 0 0 10px rgba(46, 230, 255, 0.5); }
.alert-body { display: grid; gap: 2px; min-width: 0; }
.alert-t { font-weight: 600; font-size: 14.5px; }
.alert-d { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-lv { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.alert.crit .alert-lv { color: var(--crit); }
.alert.warn .alert-lv { color: var(--warn); }
.all-clear { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; color: var(--ok); background: rgba(45, 245, 160, 0.06); border: 1px solid rgba(45, 245, 160, 0.25);
  font-family: var(--ui); font-weight: 700; letter-spacing: 0.14em; font-size: 14px; }
.more-note { font-size: 12.5px; color: var(--muted); text-align: center; padding-top: 4px; }

/* ---------------------------------------------------------------- cameras */
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cams.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cam { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 40%, #0b1430, #03050c); }
.cam::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); }
.cam::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55); border-radius: inherit; }
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.4s; }
.cam img[src] { opacity: 1; }
.cam:has(img[data-err="1"]) img { opacity: 0.12; }
.cam-full { aspect-ratio: auto; min-height: 200px; cursor: default; }
.cam-full img { position: relative; height: auto; max-height: 72vh; object-fit: contain; }
.cam-tag { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 9px;
  background: rgba(3, 5, 12, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--ui); font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.cam-live { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(3, 5, 12, 0.62);
  font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: #ffd3dc; }
.cams.mini .cam-tag { font-size: 10.5px; padding: 3px 7px; left: 6px; top: 6px; }
.cams.mini .cam-live { display: none; }
.cam-nosig { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; font-family: var(--display); font-size: 12px; letter-spacing: 0.4em; color: var(--muted); }
.cam:has(img[data-err="1"]) .cam-nosig, .cam.off .cam-nosig { display: grid; }

/* ---------------------------------------------------------------- devices */
.devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dev { display: grid; gap: 8px; padding: 13px; border-radius: 15px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.55); }
.dev-top { display: flex; align-items: center; justify-content: space-between; }
.dev-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(46, 230, 255, 0.09); color: var(--cyan); border: 1px solid rgba(46, 230, 255, 0.2); }
.dev.off .dev-ico { background: rgba(140, 150, 180, 0.06); color: var(--dim); border-color: var(--line); }
.dev-name { font-family: var(--ui); font-weight: 700; font-size: 16px; }
.dev-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- weather */
.wx { display: grid; gap: 16px; }
.wx-now { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wx-temp { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 15vw, 76px); line-height: 0.9; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff, #ffd98a 120%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 194, 61, 0.25)); }
.wx-temp span { font-size: 0.45em; vertical-align: top; margin-left: 2px; }
.wx-cond { display: grid; gap: 4px; min-width: 0; }
.wx-cond b { font-family: var(--ui); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.wx-cond span { color: var(--muted); font-size: 13.5px; }
.wx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.wx-stat { padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.5); }
.wx-stat small { display: block; font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.wx-stat b { font-family: var(--display); font-weight: 700; font-size: 17px; }
.wx-stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.wx-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.wx-h { display: grid; justify-items: center; gap: 5px; padding: 10px 4px; border-radius: 13px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.5); font-size: 12px; color: var(--muted); }
.wx-h b { font-family: var(--display); font-size: 15px; color: var(--text); }
.wx-h .ico { color: var(--cyan); }
.wx-h .pop { color: #7fd4ff; font-weight: 600; }
.wx-days { display: grid; gap: 6px; }
.wx-d { display: grid; grid-template-columns: 56px 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(6, 11, 28, 0.45); border: 1px solid var(--line); }
.wx-d .dn { font-family: var(--ui); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.wx-d .ds { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-d .dt { font-family: var(--display); font-size: 14px; white-space: nowrap; }
.wx-d .dt span { color: var(--muted); }
.wx-d .ico { color: var(--cyan); }
.wx-note { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 13px; background: linear-gradient(90deg, rgba(46, 230, 255, 0.1), rgba(155, 107, 255, 0.05)); border: 1px solid rgba(46, 230, 255, 0.25); font-size: 14px; }
.wx-note .ico { color: var(--cyan); }

/* ---------------------------------------------------------------- LifeHub */
.lh-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .lh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lh-list { display: grid; gap: 6px; }
.lh-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px; background: rgba(6, 11, 28, 0.5); border: 1px solid var(--line); }
.lh-item .t { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lh-item .d { font-size: 12px; color: var(--muted); }
.lh-item .when { font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--cyan); white-space: nowrap; }
.lh-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 79, 216, 0.1); color: var(--pink); border: 1px solid rgba(255, 79, 216, 0.25); }
.lh-badge.cal { background: rgba(46, 230, 255, 0.08); color: var(--cyan); border-color: rgba(46, 230, 255, 0.22); }
.lh-empty { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }
.gl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gl-num { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.gl-num small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.gl.in_range .gl-num { color: var(--ok); text-shadow: 0 0 22px rgba(45, 245, 160, 0.35); }
.gl.high .gl-num, .gl.urgent_high .gl-num { color: var(--warn); }
.gl.low .gl-num, .gl.urgent_low .gl-num { color: var(--crit); }
.gl-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(6, 11, 28, 0.6); }
.gl-arrow .ico { transition: transform 0.6s; }
.gl-info { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.gl-info b { color: var(--text); font-family: var(--ui); font-size: 16px; letter-spacing: 0.04em; }
.dash-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.dash-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.55); color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.dash-link:hover { border-color: rgba(46, 230, 255, 0.45); transform: translateY(-2px); }
.dash-link .n { font-family: var(--ui); font-weight: 700; font-size: 16px; }
.dash-link .d { font-size: 12px; color: var(--muted); }
.dash-link > .ico:last-child { color: var(--muted); }
.home-only { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* ---------------------------------------------------------------- media */
.vol { display: grid; grid-template-columns: auto minmax(0, 1fr) 58px; align-items: center; gap: 12px; }
.vol-num { font-family: var(--display); font-weight: 700; font-size: 15px; text-align: right; }
.vol.muted .vol-num { color: var(--crit); font-size: 12px; letter-spacing: 0.12em; }
.vol.muted .range { opacity: 0.5; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet) var(--p), rgba(140, 170, 255, 0.15) var(--p)); box-shadow: 0 0 14px rgba(46, 230, 255, 0.3); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(140, 170, 255, 0.15); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 35%, #fff, #9fe9ff 45%, var(--cyan)); box-shadow: 0 0 0 4px rgba(46, 230, 255, 0.18), 0 0 18px rgba(46, 230, 255, 0.8); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 35%, #fff, #9fe9ff 45%, var(--cyan)); box-shadow: 0 0 0 4px rgba(46, 230, 255, 0.18), 0 0 18px rgba(46, 230, 255, 0.8); }
.tg-rows { display: grid; gap: 10px; margin-top: 16px; }
.tg-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.5); }
.tg-row > div { flex: 1; min-width: 0; }
.tg-t { font-family: var(--ui); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.tg-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tgl { position: relative; width: 56px; height: 32px; flex: none; padding: 0; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(140, 170, 255, 0.12); transition: background 0.25s, box-shadow 0.25s; }
.tgl::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #c8d4ee; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s; }
.tgl.on { border-color: transparent; background: linear-gradient(90deg, rgba(46, 230, 255, 0.7), rgba(155, 107, 255, 0.7)); box-shadow: 0 0 18px rgba(46, 230, 255, 0.4); }
.tgl.on::after { transform: translateX(24px); background: #fff; }
.tgl[disabled] { opacity: 0.4; }
.pad { position: relative; width: 216px; height: 216px; margin: 4px auto 0; border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(circle, rgba(30, 46, 92, 0.75), rgba(8, 14, 34, 0.85)); box-shadow: inset 0 0 32px rgba(46, 230, 255, 0.12), 0 0 34px rgba(79, 140, 255, 0.12); }
.pad::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(46, 230, 255, 0.18); }
.pad button { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; transition: transform 0.1s, color 0.2s; }
.pad button:hover { color: var(--cyan); }
.pad button:active { transform: scale(0.88); }
.pad .ico { width: 28px; height: 28px; }
.pad .up { top: 6px; left: 76px; }
.pad .down { bottom: 6px; left: 76px; }
.pad .left { left: 6px; top: 76px; }
.pad .right { right: 6px; top: 76px; }
.pad .ok { top: 66px; left: 66px; width: 84px; height: 84px; border: 1px solid rgba(46, 230, 255, 0.5); font-family: var(--display); font-weight: 800; letter-spacing: 0.1em;
  background: radial-gradient(circle at 35% 30%, rgba(46, 230, 255, 0.55), rgba(79, 140, 255, 0.3) 60%, rgba(155, 107, 255, 0.35)); box-shadow: 0 0 24px rgba(46, 230, 255, 0.35); }
.pad.off { opacity: 0.45; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 300px; margin: 16px auto 0; }

/* ---------------------------------------------------------------- lists, sites, backups, users */
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 13px; background: rgba(6, 11, 28, 0.5); border: 1px solid var(--line); }
.row-t { font-weight: 600; font-size: 14.5px; }
.row-d { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.row-time { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.site { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.5); color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.site:hover { border-color: rgba(46, 230, 255, 0.4); transform: translateX(2px); }
.site-name { font-family: var(--ui); font-weight: 700; font-size: 16px; }
.site-url { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.site-r { display: grid; gap: 4px; justify-items: end; font-size: 12px; color: var(--muted); }
.bk-hero { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .bk-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; } }
.bk-big { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 36px); margin: 6px 0 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.5); }
.stat small { display: block; font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.stat b { font-family: var(--display); font-weight: 700; font-size: 16px; }
.stat.ok b { color: var(--ok); }
.stat.crit b { color: var(--crit); }
.cover { display: grid; gap: 8px; }
.cov { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.cov.ok .ico { color: var(--ok); }
.cov.miss { color: var(--muted); }
.cov.miss .ico { color: var(--warn); }
.job { display: grid; gap: 10px; padding: 14px; border-radius: 15px; border: 1px solid rgba(46, 230, 255, 0.35); background: rgba(46, 230, 255, 0.05); }
.job.done { border-color: rgba(45, 245, 160, 0.35); background: rgba(45, 245, 160, 0.05); }
.job.bad { border-color: rgba(255, 77, 109, 0.45); background: rgba(255, 77, 109, 0.05); }
.job-h { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.scan { height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: scanbar 1.3s linear infinite; }
@keyframes scanbar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
pre.logs, pre.job-log { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); color: #bfe8ff;
  font: 12px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; overflow: auto; }
pre.logs { max-height: 62vh; }
pre.job-log { max-height: 220px; font-size: 11.5px; }
.users-row .me-chip { width: 40px; height: 40px; }
.role-cards { display: grid; gap: 10px; }
@media (min-width: 760px) { .role-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-card { padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.5); }
.role-card h4 { margin: 0 0 6px; font-family: var(--display); letter-spacing: 0.12em; font-size: 14px; }
.role-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.acct { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.acct-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }
.field label { font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(3, 6, 16, 0.75); color: var(--text); font-size: 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.15), 0 0 22px rgba(46, 230, 255, 0.15); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: #0a1026; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin: 4px 0 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--cyan); }
.form-err { color: var(--crit); min-height: 20px; font-weight: 600; font-size: 14px; margin: 2px 0 6px; }

/* ---------------------------------------------------------------- sign-in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: calc(28px + var(--safe-t)) 16px calc(28px + var(--safe-b)); }
.auth-box { width: min(430px, 100%); padding: 32px 26px 24px; text-align: center; }
.auth-logo { position: relative; width: 118px; height: 118px; margin: -6px auto 14px; }
.auth-logo .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--violet); animation: spin 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(46, 230, 255, 0.7)); }
.auth-logo .ring.r2 { inset: 13px; border-top-color: var(--pink); border-right-color: transparent; border-left-color: var(--cyan); animation-duration: 4.2s; animation-direction: reverse; }
.auth-logo .logo { position: absolute; inset: 31px; width: 56px; height: 56px; }
.auth-title { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: 0.22em; margin-left: 0.22em; }
.auth-sub { color: var(--cyan); font-family: var(--ui); letter-spacing: 0.5em; font-weight: 700; font-size: 12px; margin: 8px 0 24px 0.5em; text-transform: uppercase; }
.auth-note { color: var(--muted); line-height: 1.5; margin: -6px 0 18px; font-size: 14.5px; }
.auth-foot { margin-top: 18px; font-size: 12px; color: var(--dim); display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-foot .ico { width: 14px; height: 14px; }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.boot-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(46, 230, 255, 0.15); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; filter: drop-shadow(0 0 10px rgba(46, 230, 255, 0.6)); }
.boot-txt { font-family: var(--display); letter-spacing: 0.45em; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- modal, toasts, skeleton */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(2, 4, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; animation: pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-box.wide { width: min(1100px, 100%); }
@keyframes pop { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.modal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-h { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; font-size: 17px; }
.modal-h .ico { color: var(--cyan); }
.modal-p { color: var(--muted); margin: 6px 0 16px; line-height: 1.5; }
.modal-acts { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 600px) {
  .modal { place-items: end center; padding: 0; }
  .modal-box { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + var(--safe-b)); animation: sheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .modal-box.wide { width: 100%; }
}
@keyframes sheet { from { transform: translateY(60px); opacity: 0; } }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.more-item { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 11, 28, 0.6); color: var(--text);
  font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
.more-item .ico { color: var(--cyan); }
.more-item.on { border-color: rgba(46, 230, 255, 0.45); background: rgba(46, 230, 255, 0.08); }
#toasts { position: fixed; z-index: 120; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 15px; background: rgba(8, 14, 32, 0.94); border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); font-weight: 600; font-size: 14.5px; animation: toastIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); transition: opacity 0.35s, transform 0.35s; }
.toast .ico { color: var(--cyan); }
.toast.ok { border-color: rgba(45, 245, 160, 0.45); }
.toast.ok .ico { color: var(--ok); }
.toast.err { border-color: rgba(255, 77, 109, 0.55); }
.toast.err .ico { color: var(--crit); }
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } }
.skel { height: 190px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, rgba(20, 30, 62, 0.35) 30%, rgba(46, 230, 255, 0.08) 50%, rgba(20, 30, 62, 0.35) 70%);
  background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
body.stale .top { border-bottom-color: rgba(255, 77, 109, 0.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- small extras */
button.kpi { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.who { color: var(--text); }
.who:hover .who-name { color: var(--cyan); }
.core-wrap { min-width: 0; }
.home-only a { font-weight: 600; }
.alert-body, .svc > div { min-width: 0; }
.core-cap { text-align: center; font-size: 11.5px; color: var(--dim); margin-top: 6px; letter-spacing: 0.04em; }
.core-legend span { display: inline-flex; align-items: center; gap: 6px; }
/* the Install chip in the top bar: make room for it on narrow phones */
.top .install-btn { min-height: 34px; padding: 0 12px; font-size: 12px; }
@media (max-width: 520px) { .top:has(.install-btn:not(.hidden)) .top-brand span { display: none; } .top .install-btn { padding: 0 10px; } }

/* ---------------------------------------------------------------- the Minutesman */
.vl-intro { line-height: 1.55; margin: -4px 0 16px; max-width: 760px; }
.vl-opts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.vl-opts label { font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vl-opts select, .vl-rerun-sel { width: auto; min-width: 190px; height: 40px; font-size: 15px; }
.vl-upload { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid rgba(46, 230, 255, 0.35); background: rgba(46, 230, 255, 0.05); }
.vl-up-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vl-up-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-up-top span { font-family: var(--display); font-size: 13px; color: var(--muted); }
.vl-job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(6, 11, 28, 0.55); color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.vl-job:hover { border-color: rgba(46, 230, 255, 0.45); transform: translateX(2px); }
.vl-job-n { font-family: var(--ui); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-job-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.vl-job .bar { margin-top: 8px; height: 5px; }
.vl-head-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.vl-title { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 4.5vw, 26px); letter-spacing: 0.04em; overflow-wrap: anywhere; margin-bottom: 4px; }
.vl-timeline { position: relative; cursor: pointer; padding: 10px 10px 6px; border-radius: 15px; background: rgba(3, 6, 16, 0.6); border: 1px solid var(--line); }
.vl-svg { display: block; width: 100%; height: clamp(120px, 22vw, 170px); }
.vl-wave { fill: rgba(150, 190, 255, 0.35); }
.vl-playhead { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px #fff); }
.vl-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 2px; font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.vl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.vl-legend i { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 10px currentColor; }
.vl-audio, .vl-mini { width: 100%; height: 44px; color-scheme: dark; border-radius: 12px; }
.vl-mini { height: 38px; margin-top: 2px; }
.vl-voices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vl-voice { position: relative; display: grid; gap: 12px; padding: 16px 16px 16px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.75), rgba(5, 9, 22, 0.75)); overflow: hidden; }
.vl-voice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--vc); box-shadow: 0 0 18px var(--vc); }
.vl-voice header { display: flex; align-items: center; gap: 10px; }
.vl-voice header > div { flex: 1; }
.vl-voice h3 { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.vl-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--vc); box-shadow: 0 0 14px var(--vc); }
.vl-maybe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(255, 194, 61, 0.08); border: 1px solid rgba(255, 194, 61, 0.35); font-size: 14px; }
.vl-maybe span { flex: 1; min-width: 160px; }
.vl-share { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.vl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vl-stats .stat b, .vl-tiles .stat b { font-size: 15px; }
.stat em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.vl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-sim { margin-top: 16px; overflow-x: auto; }
.vl-sim table { border-collapse: separate; border-spacing: 4px; font-family: var(--ui); font-weight: 700; font-size: 14px; }
.vl-sim th { text-align: left; padding: 4px 8px; white-space: nowrap; }
.vl-sim td { min-width: 70px; text-align: center; padding: 8px; border-radius: 9px; border: 1px solid var(--line); font-family: var(--display); font-size: 13px; }
.vl-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 520px) { .vl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-h.vl-h { flex-wrap: wrap; row-gap: 8px; }
.card-h.vl-h .ttl { flex: 1 0 auto; max-width: 100%; }
.vl-bands { display: grid; gap: 9px; }
.vl-band { display: grid; grid-template-columns: 120px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.vl-band span { font-family: var(--ui); font-weight: 700; letter-spacing: 0.04em; }
.vl-band span em { display: block; font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.vl-band b { font-family: var(--display); font-size: 13px; text-align: right; }
.vl-spec { width: 100%; height: 160px; display: block; }
.vl-tick { stroke: rgba(140, 170, 255, 0.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vl-ticks { position: relative; height: 16px; margin-top: 3px; }
.vl-ticks span { position: absolute; top: 0; transform: translateX(4px); font-family: var(--ui); font-size: 11px; color: var(--muted); white-space: nowrap; }
.vl-ticks span.end { transform: translateX(calc(-100% - 4px)); }
.vl-details summary { cursor: pointer; font-family: var(--ui); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; color: var(--cyan); padding: 6px 0; }
.vl-segs { display: grid; gap: 4px; margin-top: 10px; max-height: 420px; overflow: auto; }
.vl-seg { display: grid; grid-template-columns: 10px 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 9px; background: rgba(6, 11, 28, 0.5); font-size: 13.5px; }
.vl-seg i { width: 10px; height: 10px; border-radius: 3px; }
.vl-seg span { font-family: var(--display); font-size: 12px; color: var(--muted); }
.vl-seg em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .vl-seg { grid-template-columns: 10px 1fr auto; } .vl-seg b { grid-column: 2; } .vl-band { grid-template-columns: 96px minmax(0, 1fr) 46px; } }

/* the Minutesman: written minutes */
.vl-lines { position: relative; max-height: 560px; overflow-y: auto; display: grid; gap: 2px; margin: 2px -6px 0; padding: 0 6px; scrollbar-width: thin; overscroll-behavior: contain; }
.vl-line { display: grid; grid-template-columns: 8px auto 1fr; column-gap: 10px; row-gap: 3px; align-items: baseline; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.vl-line i { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.vl-line b { font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-line time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vl-line p { grid-column: 2 / -1; margin: 0; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.vl-line:hover { background: rgba(140, 170, 255, .06); }
.vl-line.now { background: rgba(46, 230, 255, .09); box-shadow: inset 3px 0 0 var(--cyan); }
.vl-tx-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vl-tx-note p { margin: 0; flex: 1 1 240px; }
.vl-tx-prog { margin-bottom: 10px; }
@media (max-width: 520px) { .vl-lines { max-height: 70vh; } .vl-line { padding: 9px 8px; } }

/* the Minutesman: recording, search, summary, fixing, people, family stats */
.vl-rec { padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 79, 120, .5); background: rgba(255, 79, 120, .07); }
.vl-rec-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vl-rec-top b { font-family: var(--display); font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.vl-rec-dot { width: 16px; height: 16px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 14px #ff4d6d; animation: vlpulse 1.2s ease-in-out infinite; }
.vl-rec.paused .vl-rec-dot { animation: none; background: var(--muted); box-shadow: none; }
@keyframes vlpulse { 50% { opacity: .35; transform: scale(.8); } }
#vlBlack { position: fixed; inset: 0; z-index: 9999; background: #000; opacity: 0; transition: opacity .6s ease; cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
#vlBlack.on { opacity: 1; }
#vlBlack .vlb-in { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .28; animation: vlbdrift 90s ease-in-out infinite alternate; }
#vlBlack b { font: 600 40px var(--display, sans-serif); letter-spacing: .06em; color: #8a93a6; font-variant-numeric: tabular-nums; }
#vlBlack .vlb-dot { width: 12px; height: 12px; border-radius: 50%; background: #b3263f; animation: vlpulse 2s ease-in-out infinite; }
#vlBlack.paused .vlb-dot { animation: none; background: #555; }
#vlBlack .vlb-tip { font: 500 13px var(--ui, sans-serif); color: #6b7280; letter-spacing: .04em; }
@keyframes vlbdrift { 0% { transform: translate(-18vw, -22vh); } 50% { transform: translate(16vw, 6vh); } 100% { transform: translate(-6vw, 24vh); } }
.vl-titlef { display: grid; gap: 6px; margin: 0 0 14px; }
.vl-titlef label { font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vl-copy { margin-top: 12px; }
.vl-copy .check { font-size: 15px; }
.vl-copy p { margin: 4px 0 0 28px; }
.vl-markbtn { width: 100%; justify-content: center; margin-bottom: 12px; border-color: rgba(255, 194, 61, .55); color: #ffd36b; }
.vl-markbtn svg { color: #ffc23d; }
#vlBlack .vlb-mark { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 40px; border: 1px solid rgba(255, 194, 61, .22); background: rgba(255, 194, 61, .05); color: rgba(255, 211, 107, .5); font: 600 15px var(--ui, sans-serif); letter-spacing: .06em; cursor: pointer; }
#vlBlack .vlb-mark svg { width: 20px; height: 20px; }
#vlBlack .vlb-mark.hit { animation: vlbhit .9s ease-out; }
@keyframes vlbhit { 0% { background: rgba(255, 194, 61, .55); color: #fff; box-shadow: 0 0 40px rgba(255, 194, 61, .6); } 100% { background: rgba(255, 194, 61, .05); } }
.vl-local { margin-top: 16px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 194, 61, .35); background: rgba(255, 194, 61, .05); display: grid; gap: 12px; }
.vl-local-row { display: grid; gap: 8px; }
.vl-local-row b { font-size: 16px; }
.warn-t { color: #ffc23d; }
.vl-rn { margin-left: 8px; vertical-align: middle; }
.vl-star { grid-column: 4; grid-row: 1; width: 30px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; opacity: .35; }
.vl-star svg { width: 15px; height: 15px; }
.vl-line:hover .vl-star { opacity: .8; }
.vl-star.on { opacity: 1; color: #ffc23d; }
.vl-star.on svg { fill: #ffc23d; }
.vl-line.marked { background: rgba(255, 194, 61, .08); box-shadow: inset 3px 0 0 #ffc23d; }
.vl-marks { display: grid; gap: 6px; margin: 0 0 14px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 194, 61, .3); background: rgba(255, 194, 61, .05); }
.vl-mk { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; text-align: left; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.vl-mk:hover { background: rgba(255, 194, 61, .08); }
.vl-mk time { color: #ffc23d; font-variant-numeric: tabular-nums; font-size: 14px; }
.vl-mk span { min-width: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 520px) { .vl-mk { grid-template-columns: auto 1fr; } .vl-mk span { grid-column: 1 / -1; } }
.vl-same { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; border-radius: 16px; border: 1px solid rgba(155, 107, 255, .45); background: rgba(155, 107, 255, .07); }
.vl-same-row p { margin: 0 0 8px; line-height: 1.5; }
.vl-same-row + .vl-same-row { border-top: 1px solid var(--line, rgba(140, 170, 255, .15)); padding-top: 10px; }
.vl-space { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.vl-space .bar { height: 6px; }
.vl-space.full { color: #ffc23d; }
.vl-space.full .bar i { background: #ffc23d; }
.vl-getapp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(46, 230, 255, .3); background: rgba(46, 230, 255, .05); font-size: 14.5px; }
.vl-getapp span { flex: 1 1 200px; }
.vl-rec-meter { height: 10px; border-radius: 6px; background: rgba(140, 170, 255, .1); overflow: hidden; margin-bottom: 14px; }
.vl-rec-meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #2df5a0, #ffc23d 70%, #ff4d6d); transition: width .08s linear; }
.vl-q { margin-bottom: 4px; }
.vl-hits-n { margin: 10px 2px 6px; }
.vl-hits { display: grid; gap: 6px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.vl-hit { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 8, 20, .35); color: var(--text); text-decoration: none; }
.vl-hit:hover { border-color: var(--line-2); background: rgba(140, 170, 255, .06); }
.vl-hit-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.vl-hit-h b { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-hit-t { line-height: 1.5; }
.vl-hit-t i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.vl-hit-t b { font-family: var(--ui); font-size: 13px; letter-spacing: .04em; }
mark { background: rgba(255, 194, 61, .3); color: inherit; border-radius: 3px; padding: 0 2px; }
.vl-plink { color: var(--text); text-decoration: none; }
.vl-plink:hover { color: var(--cyan); }
.vl-words { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.vl-words .chip { font-size: 12.5px; padding: 3px 9px; }
.vl-words .chip em { font-style: normal; color: var(--muted); font-weight: 600; }
.vl-person-h { display: flex; align-items: center; gap: 16px; margin: 14px 0 16px; }
.vl-quote { margin-top: 4px; font-style: italic; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.vl-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.vl-award { padding: 16px; border-radius: 18px; text-align: center; }
.vl-award-e { font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
.vl-award-n { font-family: var(--display); font-size: 20px; margin: 4px 0; }
.vl-award-n a, .vl-bname a { color: var(--text); text-decoration: none; }
.vl-board { display: grid; gap: 12px; }
.vl-brow { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.vl-rank { font-family: var(--display); font-size: 20px; color: var(--cyan); text-align: center; }
.vl-bname { font-weight: 700; margin-bottom: 4px; }
.vl-brow .bar { margin-bottom: 4px; }
.vl-sumprint { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.vl-sum { font-size: 16.5px; line-height: 1.6; margin: 0 0 6px; }
.vl-todo, .vl-dec { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.vl-todo li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.vl-box { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 5px; border: 2px solid var(--cyan); box-shadow: 0 0 8px rgba(46, 230, 255, .35); }
.vl-dec li { position: relative; padding-left: 18px; line-height: 1.5; }
.vl-dec li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet, #9b6bff); }
.vl-line { grid-template-columns: 8px auto 1fr auto auto; }
.vl-line p { grid-column: 2 / -1; }
.vl-line time em { font-style: normal; color: var(--cyan); }
.vl-fix { grid-column: 5; grid-row: 1; width: 30px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; opacity: .55; }
.vl-fix svg { width: 15px; height: 15px; }
.vl-line:hover .vl-fix, .vl-fix:focus-visible { opacity: 1; border-color: var(--line-2); }
@media (hover: none) { .vl-fix { opacity: .8; } }
.vl-line.found { background: rgba(255, 194, 61, .14); box-shadow: inset 3px 0 0 #ffc23d; }
.vl-edit-text { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; font: inherit; }
.vl-menu { position: relative; }
.vl-menu summary { list-style: none; }
.vl-menu summary::-webkit-details-marker { display: none; }
.vl-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; display: grid; padding: 6px; border-radius: 14px;
  background: rgba(8, 13, 30, .97); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.vl-menu-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; text-transform: none; letter-spacing: 0; font: 600 14.5px var(--ui, inherit); }
.vl-menu-list a svg { width: 16px; height: 16px; color: var(--cyan); }
.vl-menu-list a:hover { background: rgba(46, 230, 255, .08); }
@media (max-width: 520px) { .vl-menu-list { right: auto; left: 0; } .vl-tap { display: none; } }
.vl-burn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.vl-burn .job { flex: 1 1 100%; }
.vl-clean .vl-ab { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 8px; }
.vl-clean .vl-ab audio { width: 100%; }
.vl-video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; display: block; margin-top: 6px; }

/* the Minutesman: questions, notifications */
.vl-notify { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 8, 20, .35); }
.vl-notify > svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.vl-notify span { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; }
.vl-askf { display: flex; gap: 10px; }
.vl-askf .input { flex: 1; min-width: 0; }
.vl-ask { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 8, 20, .35); }
.vl-ask-q { display: flex; align-items: center; gap: 10px; }
.vl-ask-q > svg { width: 18px; height: 18px; color: var(--violet, #9b6bff); flex: none; }
.vl-ask-q b { flex: 1; min-width: 0; }
.vl-ask-a { margin: 10px 0 0; line-height: 1.6; font-size: 15.5px; }
.vl-thinking { margin-top: 10px; }
.vl-srcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vl-src { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(46, 230, 255, .3); background: rgba(46, 230, 255, .06); color: var(--text); text-decoration: none; font-size: 13px; }
.vl-src svg { width: 13px; height: 13px; color: var(--cyan); flex: none; }
.vl-src span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vl-src em { font-style: normal; color: var(--muted); white-space: nowrap; }
.vl-src:hover { border-color: var(--cyan); }

/* the Minutesman: Record now / Choose a recording, a matched pair of sci-fi buttons */
.vl-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vl-tile { --cut: 20px; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 200px; padding: 24px 14px; border: 0; cursor: pointer; text-align: center; color: var(--text); font: inherit; background: linear-gradient(135deg, var(--tc), var(--tc2));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform .25s ease; }
.vl-tile::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; clip-path: inherit; transition: background .3s;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tc) 20%, transparent), transparent 62%), linear-gradient(180deg, #0b1328, #050914 85%); }
.vl-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    linear-gradient(var(--tc), var(--tc)) left 28px top 10px / 34px 2px no-repeat, linear-gradient(var(--tc2), var(--tc2)) right 28px bottom 10px / 34px 2px no-repeat; }
.vl-tile:hover, .vl-tile:focus-visible, .vl-tile.over { transform: translateY(-3px); }
.vl-tile:hover::before, .vl-tile:focus-visible::before, .vl-tile.over::before {
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tc) 38%, transparent), transparent 66%), linear-gradient(180deg, #0d1730, #060b18 85%); }
.vl-tile:active { transform: translateY(0) scale(.985); }
.vl-orb { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tc) 32%, transparent), transparent 70%); }
.vl-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; animation: vlspin 6s linear infinite;
  background: conic-gradient(from 0deg, var(--tc), transparent 30%, var(--tc2) 55%, transparent 80%, var(--tc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.vl-orb::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
.vl-orb svg { width: 32px; height: 32px; color: #fff; filter: drop-shadow(0 0 7px var(--tc)) drop-shadow(0 0 14px var(--tc)); }
.vl-tile b { font-family: var(--ui); font-size: 16px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 14px color-mix(in srgb, var(--tc) 60%, transparent); }
.vl-sub { color: var(--muted); font-size: 12.5px; line-height: 1.4; max-width: 30ch; }
@keyframes vlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vl-orb::before { animation: none; } }
@media (max-width: 520px) { .vl-in { gap: 12px; } .vl-tile { --cut: 14px; min-height: 168px; padding: 18px 8px; gap: 8px; } .vl-orb { width: 62px; height: 62px; }
  .vl-orb svg { width: 26px; height: 26px; } .vl-tile b { font-size: 13px; letter-spacing: .12em; } .vl-sub { font-size: 11.5px; } }

/* sounds heard (laughter, applause, the doorbell...) */
.vl-sounds { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(46, 230, 255, .22); background: rgba(46, 230, 255, .04); }
div.vl-sounds { display: flex; gap: 8px; align-items: center; }
.vl-sounds summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; list-style: none; }
.vl-sounds summary::-webkit-details-marker { display: none; }
.vl-sounds summary .svc-group-h { margin: 0 4px 0 0; }
.vl-sc { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; font-variant-numeric: tabular-nums; }
.vl-sk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.vl-sk b { font-weight: 600; font-size: 14px; margin-right: 4px; min-width: 9.5em; }
.vl-st { border: 0; border-radius: 8px; padding: 3px 8px; background: rgba(46, 230, 255, .1); color: var(--text); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.vl-st:hover { background: rgba(46, 230, 255, .2); }
.vl-snds { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.vl-snd { border: 0; background: transparent; padding: 0 2px; font-size: 15px; line-height: 1; cursor: pointer; }
.vl-snd:hover { transform: scale(1.2); }

/* what the cameras saw (camera-ai) */
.seen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.seen { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); cursor: zoom-in; min-width: 0; }
.seen:hover, .seen:focus-visible { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.seen-img { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.seen-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seen-t { font-weight: 600; line-height: 1.35; }
.seen-d { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.seen-still { font-weight: 400; color: var(--muted); }
.seen-full { aspect-ratio: auto; cursor: default; }
.seen-full img { position: static; opacity: 1; height: auto; }
.seen-line { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: none; min-width: 0; }
.seen-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.sm { font-size: 10.5px; padding: 1px 7px; }

/* Wall clock: the time drawn like the LED matrix on the wall */
.clk { display: grid; gap: 4px; justify-items: start; }
.clk-face { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 8vw, 42px); letter-spacing: 0.08em; padding: 8px 16px; border-radius: 12px;
  color: #ff5a3c; background: radial-gradient(circle, rgba(255, 90, 60, 0.12) 1px, transparent 1.6px) 0 0 / 5px 5px, #0a0406;
  border: 1px solid rgba(255, 90, 60, 0.28); text-shadow: 0 0 6px rgba(255, 90, 60, 0.85), 0 0 18px rgba(255, 60, 30, 0.45); }
.clk-sub { color: var(--muted); font-size: 14px; }
.clk-sub b { color: var(--text, #e8eefc); font-weight: 600; }

/* Slot machine TV: Slots / DJ screen switch and the live picture of the screen (the TV stands upright) */
.tv-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.tv-h .svc-group-h { margin: 0 4px; }
.tvswitch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tvswitch > :nth-child(5) { grid-column: 1 / -1; }         /* admins: Desktop across the bottom */
.tvswitch .btn { padding: 0 10px; }
.tvshot { aspect-ratio: 9 / 16; max-height: 440px; margin: 10px auto 0; width: auto; cursor: zoom-in; }
.tvshot img { object-fit: contain; background: #000; }
.tvshot-full img { max-height: 76vh; }

/* Podcasts on the TVs */
.pod-tv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 13px; background: rgba(6, 11, 28, 0.5); border: 1px solid var(--line); }
.pod-art { width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg, #a46bff, #ff3cac) center / cover; }
.pod-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin: 7px 0 3px; overflow: hidden; }
.pod-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #c77dff); }
.pod-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* the TV's looks: one row each like the toggles; "Change" opens the choices under it */
.looks { display: grid; gap: 8px; }
.look-row { padding: 10px 12px; gap: 12px; }
.look-row .tg-t { font-size: 15px; }
.look-dot { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--cyan); }
.look-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; margin-top: -2px; border-radius: 14px; border: 1px solid rgba(46, 230, 255, 0.25); background: rgba(6, 11, 28, 0.6); }
.look-opt { display: flex; min-width: 0; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 6px; border-radius: 10px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(40, 60, 112, 0.5), rgba(18, 28, 58, 0.5)); color: var(--text); font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
.look-opt .look-dot { width: 24px; height: 24px; border-radius: 7px; }
.look-opt .look-dot .ico { width: 13px; height: 13px; }
.look-opt.on { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.3), 0 0 18px rgba(46, 230, 255, 0.2); color: var(--cyan); }
.look-opt:disabled { opacity: 0.4; }

/* the Front Door page: live video (go2rtc's player) over a still picture */
.door-live { position: relative; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.door-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.4s; }
.door-live img[src] { opacity: 1; }
.door-live mf-cam { position: absolute; inset: 0; display: block; }
.door-live mf-cam video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.door-live:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }
.door-cams { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* the big camera view: live video over the refreshing picture */
.cam-livebox { background: #000; }
.cam-livebox mf-cam { position: absolute; inset: 0; display: block; }
.cam-livebox mf-cam video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cam-livebox:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }
