:root {
  color-scheme: light dark;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #121826;
  --muted: #667085;
  --border: #e3e7ee;
  --accent: #2f6bff;
  --accent-ink: #ffffff;
  --danger: #d92d20;
  --ok: #12b76a;
  --warn: #f79009;
  --t-person: #2f6bff;
  --t-vehicle: #7a5af8;
  --t-pet: #ee6a2c;
  --t-package: #0e9384;
  --t-face: #dd2590;
  --t-motion: #98a2b3;
  --t-doorbell: #eaaa08;
  --t-continuous: #d0d5dd;
  --tab-h: 62px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card: #141c2c;
    --text: #eef2f8;
    --muted: #98a2b3;
    --border: #233047;
    --accent: #5b8cff;
    --t-motion: #667085;
    --t-continuous: #344054;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 26px; margin: 4px 0 12px; letter-spacing: -0.01em; }
h1.tight { margin-bottom: 6px; }
h2 { font-size: 17px; margin: 0 0 10px; }

/* ---------- top bar & tab bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; }
.back { font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.signout { color: var(--muted); }
.link-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.link-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.link-status.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }

.page {
  max-width: 760px; margin: 0 auto;
  padding: 14px 16px calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px);
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--border);
}
.tabbar a {
  position: relative; flex: 1; max-width: 140px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; color: var(--muted); font-size: 11px; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a.active { color: var(--accent); }
.badge {
  position: absolute; top: 0; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* ---------- controls ---------- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
button.primary, .button.primary { background: var(--accent); color: var(--accent-ink); }
button.ghost, .button.ghost { background: var(--card); color: var(--text); border-color: var(--border); }
button.small, .button.small { padding: 8px 12px; font-size: 14px; }
button:disabled { opacity: 0.5; cursor: default; }
select, input[type="date"], input[type="password"], input[type="text"] {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; min-height: 42px;
}
.error { color: var(--danger); font-size: 14px; }
.notice {
  background: color-mix(in srgb, var(--ok) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--border));
  border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
.hint { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }
.meta { color: var(--muted); font-size: 14px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.filters { display: flex; gap: 8px; margin-bottom: 10px; }
.filters select { flex: 1; min-width: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
}
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 6px; color: #fff; background: var(--t-motion);
}
.tag.muted { background: transparent; color: var(--muted); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; font-weight: 600; }
.t-person { --c: var(--t-person); } .t-vehicle { --c: var(--t-vehicle); } .t-pet { --c: var(--t-pet); }
.t-package { --c: var(--t-package); } .t-face { --c: var(--t-face); } .t-motion { --c: var(--t-motion); }
.t-doorbell { --c: var(--t-doorbell); } .t-continuous { --c: var(--t-continuous); }
.tag[class*="t-"] { background: var(--c); }
.chip.on[class*="t-"] { background: var(--c); border-color: var(--c); }

.pill { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

/* ---------- event list ---------- */
.event-list, .clip-list { display: flex; flex-direction: column; gap: 8px; }
.event-row {
  display: flex; align-items: center; gap: 12px; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px;
}
.event-row.unreviewed { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.thumb { width: 92px; height: 60px; object-fit: cover; border-radius: 9px; background: var(--border); flex: none; }
.thumb.missing { visibility: hidden; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-weight: 700; font-size: 15px; }
.event-time { font-size: 13px; color: var(--muted); }
.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-right: 4px; }
.more { display: block; text-align: center; padding: 14px; font-weight: 600; }

/* ---------- player & actions ---------- */
.player { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: #000; margin: 10px 0; }
.player.missing { visibility: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.actions form { display: contents; }
.actions .button, .actions button { flex: 1 1 140px; }

/* ---------- recordings ---------- */
.daynav { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 4px 0 12px; }
.timeline {
  position: relative; height: 38px; border-radius: 10px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: calc(100% / 24) 100%;
}
.timeline .seg { position: absolute; top: 5px; bottom: 5px; min-width: 4px; border-radius: 3px; background: var(--c, var(--t-motion)); }
.timeline .seg:hover, .timeline .seg:focus { outline: 2px solid var(--text); z-index: 2; }
.now-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }
.timeline-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 4px 2px 12px; }
.clip-row {
  display: grid; grid-template-columns: minmax(104px, max-content) 1fr auto; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text);
}
.clip-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clip-len { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- cameras ---------- */
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.cam-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.cam-tile.off { opacity: 0.6; }
.cam-tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cam-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff;
}
.cam-name { font-weight: 700; }
.cam-caption .pill { background: rgba(0,0,0,0.45); }
.live-wrap { position: relative; }
.live-badge {
  position: absolute; top: 20px; left: 10px; padding: 2px 7px; border-radius: 6px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}
.live-wrap .player { margin-bottom: 8px; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
form.inline { display: flex; gap: 6px; }
form.inline select { min-height: 36px; padding: 6px 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .btn-row { margin: 0; }
.label { margin: 8px 0 0; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.slider { display: flex; flex-direction: column; gap: 4px; }
.slider span { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.slider output, .slider b { font-variant-numeric: tabular-nums; color: var(--accent); }
.slider input { width: 100%; accent-color: var(--accent); }
.slider small { color: var(--muted); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
fieldset.ai { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.ai legend { font-weight: 700; padding: 0 6px; }

/* ---------- sign in / offline ---------- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; width: 100%; max-width: 360px; text-align: left;
}
.card h1 { font-size: 22px; margin: 8px 0 14px; }
.card label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.card input { width: 100%; margin-bottom: 14px; }
.card button { width: 100%; }
.login-icon { border-radius: 13px; }

@media (min-width: 700px) {
  .tabbar { justify-content: center; gap: 40px; }
}

/* ---------- live home ---------- */
.layout-toggle { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.layout-toggle button { background: transparent; color: var(--muted); padding: 5px 7px; border-radius: 7px; }
.layout-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.layout-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.live-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.live-grid[data-cols="2"] { grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 900px) { .live-grid[data-cols="2"] { grid-template-columns: repeat(3, 1fr); } }
.live-home .page { max-width: 1200px; }
.live-tile {
  position: relative; display: block; overflow: hidden; color: #fff;
  aspect-ratio: 16 / 9; border-radius: 12px; background: #05080f; border: 1px solid var(--border);
}
.live-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-tile.off img { filter: grayscale(0.6) brightness(0.8); }
.tile-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #98a2b3; font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.tile-top, .tile-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 7px 8px; }
.tile-top { top: 0; justify-content: space-between; background: linear-gradient(rgba(0,0,0,0.6), transparent); }
.tile-bottom { bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding-top: 18px; }
.tile-name { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.tile-ago { margin-left: auto; font-size: 12px; font-weight: 600; opacity: 0.9; }
.tile-top .pill { background: rgba(0,0,0,0.55); }
.live-grid[data-cols="2"] .tile-name { font-size: 12px; }
.live-grid[data-cols="2"] .tile-bottom .tag { font-size: 9px; padding: 1px 5px; }
.live-grid[data-cols="2"] .tile-bottom .tag + .tag { display: none; }
.live-grid[data-cols="2"] .tile-ago { font-size: 11px; }
.live-tile.unusable { opacity: 0.7; }
.recent-head { margin-top: 22px; }
.recent-head h2 { margin: 0; }
.recent-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.recent-card { flex: none; width: 170px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; color: var(--text); }
.recent-card.unreviewed { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.recent-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--border); }
.recent-card img.missing { visibility: hidden; }
.recent-info { display: flex; flex-direction: column; padding: 7px 9px 9px; }
.recent-cam { font-weight: 700; font-size: 14px; }
.recent-meta { font-size: 12px; color: var(--muted); }
.t-visitor { --c: #eaaa08; }

.hd-toggle {
  position: absolute; top: 18px; right: 10px; padding: 3px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.35);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}
.hd-toggle.on { background: var(--accent); border-color: var(--accent); }

/* ---------- alert details ---------- */
.event-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ai-desc {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 15px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
}
.event-desc { font-size: 13px; color: var(--text); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.narrow-wrap { max-width: 760px; }

/* ---------- wide screens: sidebar navigation ---------- */
@media (min-width: 900px) {
  :root { --side-w: 88px; }
  body { padding-left: var(--side-w); }
  .tabbar {
    top: 0; bottom: 0; left: 0; right: auto; width: var(--side-w);
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px;
    padding: 70px 8px 16px; border-top: none; border-right: 1px solid var(--border);
  }
  .tabbar a { flex: none; max-width: none; padding: 10px 0; border-radius: 12px; font-size: 12px; }
  .tabbar a.active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
  .tabbar svg { width: 26px; height: 26px; }
  .badge { top: 4px; left: calc(50% + 8px); }
  .page { max-width: 1400px; padding-bottom: 32px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
}

/* ---------- wide screens: split-view alerts ---------- */
.split-view { display: none; }
@media (min-width: 1000px) {
  .alerts-page .page { max-width: none; padding-right: 20px; }
  .split { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 20px; align-items: start; }
  .split-list { min-width: 0; }
  .split-view {
    display: block; position: sticky; top: 68px;
    max-height: calc(100vh - 84px); overflow-y: auto;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  }
  .split-view .player { margin: 12px 0 8px; }
  .split-view .actions .button, .split-view .actions button { flex: 0 1 auto; }
  .event-row { cursor: pointer; }
  .event-row.selected { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
  .split-list .filters { flex-wrap: wrap; }
}

/* Live page uses the full window on wide screens */
@media (min-width: 900px) { .live-home .page { max-width: none; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1300px) { .live-grid[data-cols="2"] { grid-template-columns: repeat(4, 1fr); } }

/* ---------- real live video (falls back to snapshots underneath) ---------- */
.live-tile video.live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.live-tile .tile-top, .live-tile .tile-bottom { z-index: 2; }
.live-wrap { position: relative; }
.live-wrap video.live-video {
  position: absolute; left: 0; right: 0; top: 10px; width: 100%; aspect-ratio: 16 / 9;
  object-fit: contain; border-radius: var(--radius); background: transparent;
}
.live-wrap .live-badge, .live-wrap .hd-toggle { z-index: 2; }
.ai-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ai-note textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical; width: 100%;
}

/* ---------- garage ---------- */
.garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-bottom: 14px; }
.door-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; --tone: var(--muted); }
.door-card.s-closed { --tone: var(--ok); }
.door-card.s-open, .door-card.s-stopped { --tone: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.door-card.s-opening, .door-card.s-closing { --tone: var(--accent); }
.door-card.s-offline { --tone: var(--danger); opacity: 0.85; }
.door-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.door-top h2 { margin: 0; font-size: 19px; }
.door-ago { font-size: 13px; color: var(--muted); }
.door-visual { position: relative; height: 92px; margin: 14px 0 10px; border-radius: 10px 10px 0 0; overflow: hidden;
  background: color-mix(in srgb, var(--tone) 10%, var(--bg)); border: 3px solid color-mix(in srgb, var(--tone) 60%, var(--border)); border-bottom: none; }
.door-panel { position: absolute; left: 0; right: 0; top: 0; height: 100%;
  transform: translateY(calc(-100% * var(--open, 0))); transition: transform 1.2s ease;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--tone) 35%, var(--card)) 0 21px, color-mix(in srgb, var(--tone) 55%, var(--card)) 21px 23px); }
.door-status { font-size: 22px; font-weight: 800; color: var(--tone); }
.door-warn { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--danger); }
.door-actions { display: flex; gap: 8px; margin: 14px 0 10px; }
.door-actions .big { flex: 1; padding: 14px; font-size: 17px; }
.door-extras { display: flex; flex-wrap: wrap; gap: 6px; }
.code { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; overflow-x: auto; }
.garage-history { display: flex; flex-direction: column; }
.gh-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.gh-row:last-child { border-bottom: none; }
.gh-time { color: var(--muted); min-width: 150px; font-variant-numeric: tabular-nums; }
.pin-dialog { border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--text); padding: 20px; width: min(92vw, 340px); }
.pin-dialog::backdrop { background: rgba(0,0,0,0.55); }
.pin-dialog h2 { margin-top: 0; }
.pin-dialog input { width: 100%; font-size: 22px; letter-spacing: 0.3em; text-align: center; margin-bottom: 12px; }
.pin-dialog .btn-row button { flex: 1; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 50; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.garage-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.garage-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); }
.garage-pill svg { width: 16px; height: 16px; fill: currentColor; }
.garage-pill.s-closed strong { color: var(--ok); }
.garage-pill.s-open strong, .garage-pill.s-stopped strong, .garage-pill.s-opening strong { color: var(--warn); }
.garage-pill.s-offline strong { color: var(--danger); }
.garage-badge { background: var(--warn); }

/* ---------- notifications ---------- */
.bell { display: inline-flex; color: var(--muted); padding: 4px; border-radius: 8px; }
.bell svg { width: 20px; height: 20px; fill: currentColor; }
.bell.active, .bell:hover { color: var(--accent); }
.push-state { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.push-state.on { color: var(--ok); }
.push-state.off { color: var(--muted); }
.notice-plain { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 8px 0 12px; font-size: 15px; }
.notice-plain ol { margin: 6px 0 0; padding-left: 20px; }
.field input[type="text"] { width: 100%; }
#push-controls .field { margin-bottom: 12px; }
.device-list { display: flex; flex-direction: column; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.device-row:last-child { border-bottom: none; }
.push-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 12px; padding: 10px 12px;
  border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); font-size: 14px; }
.push-banner span { flex: 1 1 200px; font-weight: 600; }
