:root {
  --bg: #090d16;
  --surface: #111827;
  --surface-2: #192235;
  --surface-3: #222e46;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.16);
  --blue: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 18% 0%, #16223b 0%, var(--bg) 52%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.sm { font-size: 0.86rem; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* Stack utilities */
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }

/* Auth / Setup */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card-sm { max-width: 390px; }
.brand-hero { text-align: center; margin-bottom: 24px; }
.brand-logo { width: 68px; height: 68px; margin-bottom: 12px; }
.brand-hero h1 { font-size: 1.55rem; margin-bottom: 6px; }

/* Inputs & Fields */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field label { font-size: 0.85rem; font-weight: 600; color: #cbd5e1; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="time"],
input[type="search"],
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #0c1220;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus { border-color: var(--accent); }
input[type="color"] {
  width: 38px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #0c1220;
  cursor: pointer;
}
.select-sm { width: auto; padding: 7px 10px; font-size: 0.88rem; }
.select-md { max-width: 260px; }
.num-sm { width: 64px !important; padding: 6px 8px !important; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, border-color 0.15s, opacity 0.15s;
  color: var(--text);
  background: var(--surface-2);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #f5a623, #f97316);
  color: #0b0f19;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: #2c3b59; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: #cbd5e1;
}
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.btn-danger-soft {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.btn-danger-soft:hover { background: rgba(239, 68, 68, 0.25); }
.btn-sm { padding: 7px 12px; font-size: 0.83rem; }
.btn-lg { padding: 13px 18px; font-size: 1rem; width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

.alert-error {
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.88rem;
}

/* App Shell & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 13, 22, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-icon { width: 34px; height: 34px; }
.topbar-title { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.topbar-sub { font-size: 0.76rem; color: var(--muted); }

.desktop-nav { display: flex; gap: 6px; }
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(245, 166, 35, 0.3);
}

.main-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 16px 96px;
}

.tab-panel { display: none; flex-direction: column; gap: 16px; }
.tab-panel.active { display: flex; }

/* Bottom Nav (Mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(12, 17, 29, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
}
.bnav-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.bnav-icon { font-size: 1.2rem; }
.bnav-btn.active { color: var(--accent); }

/* Cards & Sections */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.13), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(245, 166, 35, 0.25);
  font-size: 0.9rem;
}

/* Sliders & Chips */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-label { font-size: 0.84rem; color: var(--muted); min-width: 78px; }
.slider-val { font-size: 0.84rem; font-weight: 700; min-width: 44px; text-align: right; color: #e2e8f0; }

.range-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  outline: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #090d16;
  cursor: pointer;
}
.range-kelvin {
  background: linear-gradient(90deg, #ff9933 0%, #ffd59e 35%, #ffffff 65%, #b8dbff 100%);
}

.quick-chips, .filter-bar, .pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.master-controls { display: flex; flex-direction: column; gap: 14px; }

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--accent-soft);
  border-color: rgba(245, 166, 35, 0.45);
  color: var(--accent);
}
.chip-sm { padding: 5px 10px; font-size: 0.78rem; }

/* Lights Grid */
.lights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.light-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.light-card.is-on {
  border-color: rgba(245, 166, 35, 0.42);
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.08), inset 0 1px 0 rgba(255, 210, 130, 0.14);
}
.light-live-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.light-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  margin-right: 6px;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.light-live-canvas {
  height: 68px;
  border-radius: 10px;
}
.light-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.light-name { font-size: 1.05rem; font-weight: 700; }
.light-meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge-on { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.badge-accent { background: var(--accent-soft); border-color: rgba(245, 166, 35, 0.35); color: var(--accent); }

/* Toggle Switch */
.switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.2s;
}
.switch input:checked + .switch-track {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .switch-track::after {
  transform: translateX(22px);
  background: #090d16;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s;
}
.swatch:hover { transform: scale(1.14); }

/* Patterns & Studio */
.target-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.target-label { font-size: 0.84rem; font-weight: 700; color: var(--muted); }

.subtabs {
  display: flex;
  gap: 6px;
  background: var(--surface);
  padding: 5px;
  border-radius: 13px;
  border: 1px solid var(--border);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.subtab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}
.subtab.active { background: var(--surface-3); color: var(--text); }
.subtab-panel { display: none; flex-direction: column; gap: 14px; }
.subtab-panel.active { display: flex; }

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.preset-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}
.preset-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: #070a12;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.preview-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-dot.is-off {
  background: #1e293b !important;
  box-shadow: none !important;
  opacity: 0.45;
}

/* Studio LED Strip */
.studio-card { display: flex; flex-direction: column; gap: 18px; }
.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.studio-count-wrap { display: flex; align-items: center; gap: 8px; }
.eave-preview-box {
  background: linear-gradient(180deg, #060910 0%, #0d1424 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 14px 26px;
  position: relative;
  overflow-x: auto;
}
.eave-roofline {
  height: 6px;
  border-radius: 999px;
  background: #243047;
  margin-bottom: 14px;
}
.led-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 320px;
  user-select: none;
  touch-action: none;
}
.led-puck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
}
.led-bulb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  transition: transform 0.1s;
}
.led-puck:hover .led-bulb { transform: scale(1.18); }
.led-bulb.is-off {
  background: #1e293b !important;
  box-shadow: none !important;
  border-color: rgba(148,163,184,0.2);
}
.led-num { font-size: 0.68rem; color: var(--muted); }

.gen-title { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.gen-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gen-panel { display: none; background: #0c1220; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.gen-panel.active { display: block; }
.gen-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: #cbd5e1; }
.color-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-pill { position: relative; display: inline-flex; align-items: center; }
.color-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #334155;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  line-height: 16px;
  padding: 0;
}
.studio-footer { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.studio-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Govee Scenes Browser & Animated Canvases */
.scenes-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 200px; }
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px;
}
.scene-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  transition: border-color 0.15s, transform 0.12s;
}
.scene-tile:hover { border-color: var(--border-strong); }
.scene-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.scene-name { font-weight: 700; font-size: 0.94rem; line-height: 1.25; }
.scene-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.star-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 2px;
}
.star-btn.starred { color: var(--accent); }

.anim-canvas {
  display: block;
  width: 100%;
  height: 58px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: #060911;
}
.anim-canvas-lg {
  height: 76px;
  cursor: default;
}
.anim-canvas-xl {
  height: 112px;
  cursor: default;
  border-radius: 14px;
}
.studio-live-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-motion {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}

/* Schedules */
.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.starter-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.starter-btn:hover { border-color: var(--accent); }
.starter-icon { font-size: 1.3rem; }

.schedule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.schedule-card.is-disabled { opacity: 0.56; }
.sch-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.sch-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sch-time-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.sch-days-mini { display: flex; gap: 4px; }
.sch-day-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: #475569;
}
.sch-day-dot.on { background: rgba(56, 189, 248, 0.16); color: var(--blue); }
.sch-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.log-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #cbd5e1;
  list-style: none;
}
.log-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.log-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #0c1220;
  font-size: 0.82rem;
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}
.kv-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.device-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #0c1220;
  border: 1px solid var(--border);
}
.device-setting-row input[type="text"] { padding: 7px 10px; font-size: 0.88rem; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 6, 12, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-lg { max-width: 540px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.seg-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #0c1220;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.seg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 9px 6px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.seg-btn.active { background: var(--accent-soft); color: var(--accent); }

.quick-days { display: flex; gap: 6px; margin-bottom: 6px; }
.day-pills { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-pill {
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0c1220;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.day-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--blue);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.toast {
  background: #172033;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.18s ease-out;
}
.toast.ok { border-color: rgba(34, 197, 94, 0.45); }
.toast.err { border-color: rgba(239, 68, 68, 0.55); color: #fecaca; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .bottom-nav { display: grid; }
  .field-row { grid-template-columns: 1fr; }
  .main-content { padding: 14px 12px 92px; }
  .lights-grid, .preset-grid { grid-template-columns: 1fr; }
}
