/* Match the AC remote's satin enclosure. The inset bank stays dark in either
 * app theme so the position and contrast of a rocker stay familiar. */
.room-panels .room-switch-panel {
  padding: 0 clamp(10px, 1.5vw, 15px) clamp(10px, 1.5vw, 15px);
  color: #1d2929;
  border: 1px solid #bdc7c0;
  border-radius: 21px;
  background: linear-gradient(145deg, #f5f6f2, #e9ebe7 65%, #e1e5df);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px #192d2910;
}
.room-switch-panel h4 {
  min-height: 58px;
  padding: 9px 3px;
  gap: 10px;
  color: #1d2929;
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -.015em;
}
.room-switch-panel h4 .ic-svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  color: #35544f;
  background: #e2e9e2;
  border: 1px solid #bccbc2;
  border-radius: 10px;
}
.room-switch-bank {
  --text: #edf6f2;
  --dim: #baccc7;
  --faint: #acbdb8;
  --line: #526966;
  --line-2: #83a29b;
  --panel: #203335;
  --panel2: #2c4143;
  --accent: #a3e7da;
  --accent-dim: #3f645e;
  --warn: #ffcf95;
  padding: 1px 12px;
  min-width: 0;
  background: linear-gradient(118deg, #172526, #203436 65%, #293e40);
  color: var(--text);
  border: 1px solid #162527;
  border-radius: 14px;
  box-shadow: inset 0 1px 2px #8fb6af35, 0 1px 0 white;
  color-scheme: dark;
}
.room-switch-bank > .dev {
  margin: 0;
  padding: 10px 0;
  overflow: visible;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.room-switch-bank > .dev::before { display: none; }
.room-switch-bank > .dev + .dev { border-top: 1px solid #8db0a836; }
.room-switch-bank .dev .device-name { color: var(--text); font-weight: 600; }
.room-switch-bank .dev .meta { margin-top: 3px; color: var(--dim); font-variant-numeric: tabular-nums; }
.room-switch-bank .dev:is(.disconnected, .unavailable) { opacity: 1; filter: none; }
.room-switch-bank .badge { background: #283e40; color: #e1eae7; border-color: #6b837e; }
.room-switch-bank .badge:is(.stale, .off, .degraded, .poor) { background: #403b33; color: #ffcf95; border-color: #887152; }
.room-switch-bank .device-history { text-align: start; }
.room-switch-bank .dev .tglslot { gap: 3px !important; }
.room-switch-bank .tglslot .del {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #b9c9c5;
}
.room-switch-bank .dev .tgl.device-power { width: 62px; height: 44px; margin: 0; }
.room-switch-bank .dev .device-power i {
  inset: 5px 0;
  background: #101c1d;
  border: 1px solid #79908b;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px #07101094;
}
.room-switch-bank .dev .device-power i::after {
  top: 3px;
  left: 3px;
  width: 27px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(#a8b6b3, #869792);
  box-shadow: inset 0 1px 0 #ffffff7a, 0 1px 3px #0815168c;
}
.room-switch-bank .dev .device-power input:checked + i { background: #32635c; border-color: #84b7ad; }
.room-switch-bank .dev .device-power input:checked + i::after {
  transform: translateX(27px);
  background: linear-gradient(#c4f1e5, #9dd5c8);
}
.room-switch-bank .dev .device-power input:indeterminate + i { background: #283636; border-color: #85918a; }
.room-switch-bank .dev .device-power input:indeterminate + i::after {
  transform: translateX(13.5px);
  background: linear-gradient(#b9c3bd, #95a29a);
}
.room-switch-bank .dev .device-power input:is(:disabled, [aria-disabled="true"]) + i { opacity: .64; }
.room-switch-bank .controls:not(:empty) { border-color: #718c864f; }
.room-switch-bank .controls > .mbtn:only-child { color: var(--accent); }
.room-switch-bank :is(button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.room-switch-bank .dev .device-power input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .room-switch-bank .tglslot .del:hover { color: #f0f7f4; background: #526b653d; }
  .room-switch-bank .device-power:hover input:enabled:not([aria-disabled="true"]) + i { border-color: #b4d2c8; }
}
@media (forced-colors: active) {
  .room-switch-bank .dev .device-power i { forced-color-adjust: none; background: Canvas; border: 2px solid ButtonText; }
  .room-switch-bank .dev .device-power i::after { background: ButtonText; }
  .room-switch-bank .dev .device-power input:checked + i { background: Highlight; border-color: Highlight; }
  .room-switch-bank .dev .device-power input:checked + i::after { background: HighlightText; }
  .room-switch-bank .dev .device-power input:indeterminate + i { background: Canvas; border-color: GrayText; }
  .room-switch-bank .dev .device-power input:indeterminate + i::after { background: GrayText; }
  .room-switch-bank .dev .device-power input:focus-visible + i { outline-color: Highlight; }
  .room-switch-bank > .dev + .dev { border-color: CanvasText; }
}
