:root { font-family: ui-sans-serif, system-ui, sans-serif; color: #f1edf8; background: #15121d; color-scheme: dark; --muted: #b3a9c3; --accent: #d4c1ff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
main { width: min(100%, 620px); margin: auto; padding: max(24px, env(safe-area-inset-top)) 22px max(32px, env(safe-area-inset-bottom)); }
header, .section-heading, .slider-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -2px; }
.wordmark span { color: var(--accent); }
.badge { font-size: 11px; letter-spacing: .04em; border: 1px solid #564960; border-radius: 20px; padding: 7px 10px; text-align: center; }

p { line-height: 1.6; }

#notice { padding: 14px 16px; border: 1px solid #564960; border-radius: 12px; background: #251e30; font-size: 14px; overflow-wrap: anywhere; }
.panel { background: #1e1927; border: 1px solid #413548; border-radius: 20px; padding: 22px; margin-top: 20px; }
h2 { font-size: 14px; font-weight: 650; margin: 0; }
.muted, .hint, footer { color: var(--muted); font-size: 13px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
button { border: 1px solid #665673; border-radius: 12px; background: #31273e; color: #f1edf8; padding: 13px 17px; font: inherit; font-size: 14px; min-height: 48px; cursor: pointer; touch-action: manipulation; }
button.primary { background: var(--accent); color: #231530; border-color: var(--accent); font-weight: 700; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:not(:disabled):active { transform: translateY(1px); }
:focus-visible { outline: 3px solid #e5d9ff; outline-offset: 4px; }
.slider-label { font-size: 14px; margin-top: 28px; }
output { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; height: 48px; margin: 10px 0 0; accent-color: var(--accent); cursor: pointer; }
input:disabled { opacity: .4; cursor: not-allowed; }
input[type="text"] { width: 100%; margin-top: 10px; background: #15121d; border: 1px solid #665673; border-radius: 10px; padding: 14px; color: #d4c1ff; font: inherit; font-size: 13px; }
label { font-size: 14px; }

.room-heading { border-top: 1px solid #413548; padding-top: 24px; margin-top: 28px; }

.stop { width: 100%; margin-top: 22px; background: #521f2d; border: 2px solid #e595aa; color: #ffdae3; font-size: 20px; font-weight: 750; min-height: 88px; }
.stop.enable { background: var(--accent); border-color: var(--accent); color: #231530; }
footer { margin-top: 26px; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 380px) { main { padding-inline: 14px; } .panel { padding: 17px; } .section-heading { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { button:active { transform: none !important; } }
