:root{color-scheme:light;background:#ecf1eb;color:#182c25;font:1rem/1.55 system-ui,sans-serif;--green:#174735;--muted:#496455;--line:#c3d3c6}
*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}a{color:var(--green);text-underline-offset:.2em}
.shell{width:min(100% - clamp(1.75rem,7vw,7rem),1150px);margin:auto}
.top{border-bottom:1px solid var(--line)}.top .shell,.hero-inner,.section-head,.device-header,.device-actions,.history li{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.top .shell{min-height:68px;padding:.5rem 0}.top nav,.hero-links{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem}
.brand{text-decoration:none;font-weight:780}.brand span{margin-right:.4rem}
.hero{background:radial-gradient(ellipse at 87% 100%,#367356,transparent 64%),#173d30;color:#f7fffa;padding:clamp(1.5rem,5vw,4.5rem);border-radius:1.15rem;margin:1.25rem 0 1.5rem}
.hero a{color:#f7fffa}.hero .eyebrow{font-size:.875rem;font-weight:730;letter-spacing:.08em;color:#bae5c8}
h1{font-size:clamp(2.6rem,7vw,5.4rem);letter-spacing:-.075em;line-height:1.05;margin:.4rem 0 .7rem}h2{font-size:clamp(1.4rem,3vw,2rem);letter-spacing:-.045em}h3{font-size:1.15rem;overflow-wrap:anywhere}
.hero p{max-width:55ch}.hero-inner{align-items:flex-end}.badge{font-size:.875rem;font-weight:670;background:#daefe0;border-radius:4rem;color:#1c5238;padding:.15rem .65rem;max-width:100%;overflow-wrap:anywhere}.badge.off{background:#e9e9e1;color:#51534b}
section{margin:0 0 1.5rem}.section-head{margin-bottom:.65rem}.section-head select{max-width:100%}
.devices,.scenes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:.75rem}
.device,.history,.login-form,.scene{background:#fafffa;border:1px solid var(--line);border-radius:.85rem;padding:1rem}
.device-header{align-items:start;flex-wrap:nowrap}.device-icon{display:grid;place-items:center;width:2.25rem;height:2.25rem;background:#e1ede2;border-radius:.55rem;color:#244c38;font-size:1.1rem;flex:none}.device-state,.hint,.section-head label,time{color:var(--muted);font-size:.875rem}
.device-actions{justify-content:flex-start;margin-top:.75rem}.device input[type=range]{width:100%;accent-color:var(--green);min-height:44px}.device label{display:block;margin-top:.65rem}
button,select,input:not([type=range]){font:inherit;min-height:44px;padding:.46rem .7rem;border:1px solid #a8c0af;border-radius:.45rem;background:#fafffa;color:inherit}
button{cursor:pointer;font-weight:650}button:hover:not(:disabled){border-color:var(--green);background:#e6f4e7}button.primary{color:white;background:var(--green);border-color:var(--green)}button.primary:hover:not(:disabled){background:#286448}button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #075d55;outline-offset:3px}.hero :focus-visible{outline-color:#c7f3d0}
.scene{text-align:left;min-height:78px}.scene span{display:block;font-weight:400;color:var(--muted);font-size:.875rem}
.history{list-style:none;margin:0}.history li{justify-content:flex-start;padding:.6rem 0;border-bottom:1px solid var(--line)}.history li:first-child{padding-top:0}.history li:last-child{padding-bottom:0;border:0}.history time{margin-left:auto}
#result{min-height:1.6rem;margin-top:.5rem}.login-form{display:grid;gap:.7rem;margin:0 auto 2rem;width:min(100%,32rem)}.login-form :is(label,input){width:100%;display:block}.login-form input{margin-top:.3rem}
@media(max-width:440px){.top .shell{align-items:flex-start;flex-direction:column}.hero{margin-top:.8rem}.hero-inner{align-items:flex-start}.device-header{flex-wrap:wrap}}
