.lysrom-tuning-toggle,
.lysrom-tuning {
  --tuning-ink: #24362d;
  --tuning-paper: #f3efe6;
  --tuning-border: #bdb7a9;
  font-family: Hanken, Arial, sans-serif;
  color: var(--tuning-ink);
}

.lysrom-tuning-toggle {
  position: fixed;
  z-index: 40;
  top: 76px;
  right: 5vw;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #819083;
  border-radius: 4px;
  background: #f3efe6;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.lysrom-tuning[hidden] { display: none; }
.lysrom-tuning {
  position: fixed;
  z-index: 40;
  top: 128px;
  right: 5vw;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100svh - 144px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  border: 1px solid var(--tuning-border);
  border-radius: 6px;
  background: var(--tuning-paper);
  box-shadow: 0 12px 36px #16251c30;
}

.lysrom-tuning__header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.lysrom-tuning__eyebrow { margin: 0 0 5px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lysrom-tuning h2 { margin: 0; font-family: Instrument, Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1; }
.lysrom-tuning__close, .lysrom-tuning__reset { min-height: 44px; padding: 8px 12px; border: 1px solid #819083; border-radius: 4px; background: transparent; cursor: pointer; }
.lysrom-tuning__intro { margin: 16px 0 20px; font-size: 13px; line-height: 1.45; }
.lysrom-tuning fieldset { margin: 0; padding: 0; border: 0; }
.lysrom-tuning fieldset + fieldset { margin-top: 24px; }
.lysrom-tuning legend { width: 100%; margin-bottom: 13px; padding: 0 0 8px; border-bottom: 1px solid #c9c4b7; font-size: 13px; font-weight: 750; }
.lysrom-tuning__field + .lysrom-tuning__field { margin-top: 17px; }
.lysrom-tuning__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 650; }
.lysrom-tuning output { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lysrom-tuning input[type=range] { display: block; width: 100%; height: 28px; margin: 3px 0 0; accent-color: #415e4c; cursor: pointer; }
.lysrom-tuning__hint { margin: 0; color: #53675a; font-size: 12px; line-height: 1.35; }
.lysrom-tuning__footer { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.lysrom-tuning__storage { margin: 0; color: #53675a; font-size: 11px; line-height: 1.35; }
.lysrom-tuning-toggle:focus-visible, .lysrom-tuning :focus-visible { outline: 3px solid #926b43; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .lysrom-tuning-toggle:hover, .lysrom-tuning__close:hover, .lysrom-tuning__reset:hover { background: #e0dfd1; }
}
@media (max-width: 700px) {
  .lysrom-tuning-toggle { top: 66px; right: 6vw; }
  .lysrom-tuning { top: 118px; right: 6vw; width: min(340px, 88vw); max-height: min(55svh, 520px); padding: 18px; }
}
@media (max-width: 360px) {
  .lysrom-tuning h2 { font-size: 21px; }
  .lysrom-tuning__intro { margin: 12px 0 16px; }
}
