:root { color-scheme: light; font-family: Geist, "Segoe UI", system-ui, sans-serif; color: #191a16; background: #f8f8f5; font-synthesis: none; -webkit-tap-highlight-color: transparent; }
@property --lamp { syntax: "<color>"; inherits: true; initial-value: #d8ef9b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button { padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid #191a16; outline-offset: 4px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.lights { --lamp: #d8ef9b; width: min(100%, 410px); margin: 0 auto; padding: max(30px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); transition: --lamp 150ms ease-out; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
h1 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 24px; font-weight: 665; letter-spacing: -.067em; }
h1 img { border-radius: 8px; }
.actions { display: flex; align-items: center; gap: 5px; }
.icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: transparent; transition: background 140ms; }
.icon:hover { background: #ebede5; }
.icon i { display: none; position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #538200; box-shadow: 0 0 0 2px #f8f8f5; }
[data-link="ready"] .icon i, [data-link="busy"] .icon i { display: block; }
[data-link="busy"] .icon i, [data-link="busy"] .panel svg { animation: blink 750ms ease-in-out infinite alternate; }
@keyframes blink { to { opacity: .2; } }
.panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  width: 100%;
  height: clamp(174px, 28svh, 241px);
  border-radius: 22px;
  background: var(--lamp);
  color: #1e2416;
  transition: background 170ms, color 170ms, transform 160ms ease;
}
.panel svg { width: 34px; height: 34px; stroke-width: 1.4; }
.panel span { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.panel:active:not(:disabled) { transform: scale(.984); }
[data-link="ready"][data-power="off"] .panel { background: #e8e9e2; color: #4e5047; }
.controls { margin-top: 27px; }
.level-label { display: flex; align-items: center; gap: 8px; font-weight: 580; font-size: 14px; }
.level-label svg { width: 17px; height: 17px; }
.level-label output { margin-left: auto; color: #595d51; font-size: 13px; font-variant-numeric: tabular-nums; }
.slider {
  --position: 0%;
  --track: #dcded5;
  appearance: none;
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 1px;
  margin: 7px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.slider:disabled { opacity: .43; }
.slider::-webkit-slider-runnable-track { height: 7px; border-radius: 100px; background: var(--track); }
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #f8f8f5;
  background: #272921;
  box-shadow: 0 0 0 1px #272921;
  transition: transform 120ms;
}
.slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.brightness { --track: linear-gradient(90deg, #282a22 var(--position), #dedfd7 var(--position)); }
.modes { display: flex; gap: 20px; margin-top: 21px; border-bottom: 1px solid #dcddd6; }
.modes button { position: relative; background: none; padding: 0 0 10px; color: #62655b; font-size: 14px; font-weight: 570; }
.modes button[aria-pressed="true"] { color: #171a13; }
.modes button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #22251a; border-radius: 2px; }
.swatches { display: flex; justify-content: space-between; gap: 3px; margin: 14px 0 3px; }
.swatch { display: grid; place-items: center; width: 43px; height: 43px; background: transparent; border-radius: 50%; }
.swatch::before { content: ""; width: min(30px, 7.6vw); aspect-ratio: 1; border-radius: 50%; background: var(--color); transition: transform 150ms ease; }
.swatch[aria-pressed="true"]::before { box-shadow: 0 0 0 2px #f8f8f5, 0 0 0 3.4px #22261a; }
.swatch:disabled { opacity: .55; }
.swatch:hover:not(:disabled)::before { transform: scale(1.12); }
.red { --color: #fe5359; }
.amber { --color: #ffac52; }
.green { --color: #97cd62; }
.teal { --color: #54c7ae; }
.blue { --color: #7296f2; }
.violet { --color: #a77fe5; }
.pink { --color: #ec7cb8; }
.hue { --track: linear-gradient(90deg, #f45b5b, #f7d855, #90cc5e, #58ccbd, #6d8eea, #d475dc, #f45b5b); }
.hue::-webkit-slider-thumb { background: var(--cursor, #272921); }
.warmth { --track: linear-gradient(90deg, #e9a365, #eedbbc, #afc7e9); margin-top: 16px; }
.ends { display: flex; justify-content: space-between; color: #62655b; font-size: 12px; }
.ends output { font-variant-numeric: tabular-nums; }
.feedback { margin: 14px 0 0; font-size: 13px; color: #613b23; }
.feedback:empty { display: none; }
@media (min-height: 700px) and (min-width: 540px) { .lights { padding-top: 68px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
