/* A light dial, drawn with typography and a continuous dusk gradient. */
.room-light-controls {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 25px;
  padding: 19px 22px;
  margin-bottom: 17px;
  border: 1px solid #c6cfb8;
  border-top: 2px solid #b18a5d;
  background: #f5f2e8;
}
.room-light-heading > label { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.3; letter-spacing: -.4px; }
.room-light-heading > span { display: block; margin-top: 6px; color: #626b57; font-size: 11px; line-height: 1.6; }
.room-light-track { min-width: 0; }
.room-light-scale { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #626b57; font-size: 10px; letter-spacing: .5px; }
.room-light-scale output { color: #805334; font-size: 11px; letter-spacing: 0; }
#room-light {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 36px;
  padding: 0;
  margin: 4px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#room-light::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, #e7ddbd, #c58e62 50%, #405d5c); box-shadow: 0 0 0 1px #b4baa480; }
#room-light::-moz-range-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, #e7ddbd, #c58e62 50%, #405d5c); }
#room-light::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 24px; margin-top: -9px; border: 2px solid #faf7f0; border-radius: 4px; background: #8a6746; box-shadow: 0 0 0 1px #896b4b, 0 2px 5px #253c3020; }
#room-light::-moz-range-thumb { width: 15px; height: 21px; border: 2px solid #faf7f0; border-radius: 4px; background: #8a6746; box-shadow: 0 0 0 1px #896b4b; }
#room-light:focus-visible { outline-offset: 1px; }
.room-light-presets { display: flex; gap: 5px; }
.room-light-presets button { min-height: 44px; padding: 8px 11px; border: 1px solid #c6cdb9; font-size: 11px; white-space: nowrap; }
.room-light-presets button:hover { background: #eceadb; }
.room-light-presets button[aria-pressed=true] { border-color: #8d7352; background: #e8dfcf; box-shadow: inset 0 -2px 0 #a58056; }
.room-illustration .room-wall-stop-0 { stop-color: var(--light-wallStart, #f3eee4); }
.room-illustration .room-wall-stop-1 { stop-color: var(--light-wallEnd, #e5dfd1); }
.room-illustration .room-salt-stop-0 { stop-color: var(--light-salt0, #efd3b9); }
.room-illustration .room-salt-stop-1 { stop-color: var(--light-salt1, #e3ac7b); }
.room-illustration .room-salt-stop-2 { stop-color: var(--light-salt2, #b87550); }
.room-illustration .room-floor { fill: var(--light-floor, #dedfce); }
.room-illustration .room-window-sky { fill: var(--light-sky, #f7f0da); }
.room-illustration .room-window-sun { fill: var(--light-sun, #eed6a9); opacity: var(--light-day, .7); }
.room-illustration .room-day-cast { opacity: var(--light-day, .7); }
.room-illustration .room-ambient-shade { opacity: var(--light-night, 0); }
.room-illustration .room-lamp-relight { opacity: var(--light-relight, 0); }
.room-illustration .room-lamp-glow { opacity: var(--light-glow, .37); }
.room-illustration .room-window-moon { opacity: var(--light-moon, 0); }
.room-illustration .room-ambient-shade,
.room-illustration .room-lamp-relight,
.room-illustration .room-lamp-glow,
.room-illustration .room-day-cast,
.room-illustration .room-window-sun,
.room-illustration .room-window-moon { transition: opacity .5s ease; }
.room-illustration .room-wall-stop-0,
.room-illustration .room-wall-stop-1,
.room-illustration .room-salt-stop-0,
.room-illustration .room-salt-stop-1,
.room-illustration .room-salt-stop-2 { transition: stop-color .5s ease; }
.room-illustration .room-floor,
.room-illustration .room-window-sky { transition: fill .5s ease; }
@media (max-width: 1100px) {
  .room-light-controls { grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr); gap: 15px 24px; }
  .room-light-presets { grid-column: 2; }
}
@media (max-width: 680px) {
  .room-light-controls { grid-template-columns: 1fr; gap: 15px; padding: 19px 17px 17px; }
  .room-light-heading > label { font-size: 24px; }
  .room-light-presets { grid-column: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .room-light-presets button { padding: 8px 4px; }
  .room-light-scale { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-illustration * { transition: none !important; }
}
