:root { color-scheme: light; font-family: system-ui, sans-serif; color: #18251f; background: #f3f6f1; }
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #18251f; color: #f3f6f1; }
header button { color: #18251f; }
.shell { width: min(100% - 2rem, 67rem); margin: auto; }
.top, .heading, .intro, .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 4.5rem; }
.brand { font-size: 1.25rem; font-weight: 750; color: inherit; text-decoration: none; }
.brand span { color: #f1ca76; margin-right: .3rem; }
.badge { border: 1px solid #789682; border-radius: 2rem; padding: .4rem .7rem; font-size: .875rem; }
.intro { padding: 2.75rem clamp(1.25rem, 5vw, 3rem); margin-top: 1.5rem; color: #f3f6f1; background: radial-gradient(ellipse at 90% 5%, #486b55, #233b2d 65%); border-radius: 1.4rem; }
.intro p { margin-bottom: 0; color: #e3ece4; }
.eyebrow { font-size: .875rem; letter-spacing: .13em; font-weight: 650; margin-top: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 400; margin: .15em 0 0; line-height: 1; }
h2 { font-size: 1.45rem; margin: 0; }
.summary { min-width: 7rem; background: #142a1f; border-radius: 1rem; padding: 1rem; text-align: center; }
.summary strong, .summary span { display: block; }
.summary strong { color: #f1ca76; font-size: 2rem; }
section { margin: 1.75rem 0; }
.heading { margin-bottom: .75rem; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.card, .row, .empty { background: white; border: 1px solid #d7e2d9; border-radius: 1rem; padding: 1rem; }
.card { display: grid; gap: .85rem; align-content: start; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card.sensor { display: flex; justify-content: space-between; align-items: center; }
.value { font-size: 1.35rem; font-weight: 650; white-space: nowrap; }
.pill { border: 1px solid #d7e2d9; border-radius: 2rem; padding: .35rem .75rem; font-size: .875rem; white-space: nowrap; }
.slider { margin: 0; gap: .2rem; }
.slider-head { display: flex; justify-content: space-between; font-size: .875rem; color: #4e6257; }
input[type=range] { width: 100%; padding: 0; min-height: 2rem; border: 0; accent-color: #29523d; }
.thermostat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.reading { display: grid; }
.big { font-size: 1.75rem; font-weight: 650; }
.target { min-width: 5.5rem; text-align: center; font-weight: 600; }
.thermostat .buttons button { width: 2.75rem; padding: 0; }
[hidden] { display: none !important; }
.card strong, .row strong { display: block; }
.meta, small { color: #4e6257; font-size: .875rem; }
.list { display: grid; gap: .5rem; }
button, input, select { font: inherit; border-radius: .65rem; border: 1px solid #9caf9f; padding: .55rem .8rem; min-height: 2.75rem; color: inherit; background: white; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button.primary, button[aria-pressed=true] { background: #29523d; border-color: #29523d; color: white; }
button:focus-visible, a:focus-visible { outline: 3px solid #b07b23; outline-offset: 3px; }
dialog { width: min(100% - 2rem, 34rem); border-radius: 1rem; border: 1px solid #9caf9f; padding: 1.25rem; color: inherit; }
dialog::backdrop { background: #142a1fb0; }
label { display: grid; gap: .3rem; margin-bottom: 1rem; }
.action, .buttons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.action { margin-bottom: .6rem; }
.action select:first-child { flex: 1; min-width: 9rem; }
.action input[type=number] { width: 6rem; }
#status:empty, #form-error:empty { display: none; }
#form-error { color: #9f2c24; }
@media (max-width: 36rem) { .intro { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; } .summary { display: flex; gap: .5rem; align-items: center; padding: .4rem .75rem; } .summary strong { font-size: 1.25rem; } .row { flex-wrap: wrap; } }
.pair { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.pair label { flex: 1 1 16rem; }
.top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; align-items: center; }
.integration { border: 1px solid #c9d6cb; border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
.integration h3 { margin: 0; font-size: 1.05rem; }
.integration .error, .pill.error { color: #a12a1b; }
.check { display: flex; gap: .5rem; align-items: center; }
.check input { width: auto; }
.notice { padding: .75rem 1rem; border-radius: .75rem; background: #eef4ef; }
.problems { background: #fbeee9; color: #7a2414; }
.problems p { margin: .25rem 0; }
pre.command { white-space: pre-wrap; word-break: break-all; background: #18251f; color: #eef4ef; padding: .75rem; border-radius: .65rem; font-size: .85rem; }
