:root{color-scheme:light;--ink:#20374e;--muted:#6e8296;--blue:#326baf;--line:#e1e9f0;--paper:#fff}
*{box-sizing:border-box}body{margin:0;background:#edf3f8;color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}main{max-width:1000px;margin:auto;padding:28px 32px}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:13px;padding:11px 16px;background:#eef4fa;color:var(--ink);transition:background .15s,box-shadow .15s}button:hover{background:#e1edf8}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #6ea5dd;outline-offset:3px}input{display:block;width:100%;padding:13px 15px;margin:8px 0 15px;border:1px solid #c8d8e6;border-radius:12px;background:#fff;color:var(--ink)}h1,h2,h3,p{margin:0}h2{font-size:22px;line-height:1.25;letter-spacing:-.5px}h3{margin:26px 0 12px;font-size:18px}section{padding:26px;background:var(--paper);border-radius:24px;margin:20px 0}section>p{margin:12px 0}a{color:var(--blue);overflow-wrap:anywhere}.muted{color:var(--muted);font-size:14px}[hidden]{display:none!important}
.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-.5px;font-size:20px}.brand-sun{display:grid;place-items:center;width:34px;height:34px;background:#fff1c9;color:#cf8b15;border-radius:11px;font-size:25px}.app-header button{font-size:14px;background:#fff;padding:8px 13px}#state:empty{display:none}#state{margin:12px 0}.location-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 18px}.location-button{padding:0;background:transparent;border:0;font-size:27px;font-weight:700;letter-spacing:-.6px;text-align:left}.location-button:hover{background:transparent;color:var(--blue)}.location-button>span:first-child{font-weight:400;color:var(--blue)}.chevron{color:#889bac;font-size:23px}.quiet-button{background:transparent;color:var(--blue);font-size:14px;white-space:nowrap}.search-panel{margin:10px 0 20px}.search-panel label{font-weight:600}#cityResults{display:grid;gap:7px}#cityResults button{text-align:left;background:#f5f8fc}#cityResults small{display:block;color:var(--muted)}.weather-error{background:#fff5df;border-radius:12px;padding:14px;margin:12px 0;color:#725018}.weather-error button{margin-left:10px}
.hero{position:relative;overflow:hidden;margin:0;background:linear-gradient(115deg,#dceafa 0%,#e9f2fb 48%,#f9f3df 100%);padding:28px 34px;border:1px solid #ffffffa0;box-shadow:0 12px 35px #50678408}.hero-top{display:flex;justify-content:space-between;gap:10px;color:#637d97;font-size:13px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.5px;color:#75899c}.current-weather{display:flex;justify-content:space-between;align-items:center;padding:12px 0 24px}.current-weather h1{font-size:100px;line-height:1.15;font-weight:500;letter-spacing:-7px}.current-weather p{font-size:19px;margin:3px 0}.current-weather .hero-secondary{font-size:14px;color:#6c8299}.current-icon{width:180px;max-width:38%;filter:drop-shadow(0 12px 16px #b6c3b922)}.weather-icon{display:block;width:100%;height:auto}.weather-metrics{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #688dab22;padding-top:19px;gap:16px}.weather-metrics div{display:flex;flex-direction:column;gap:4px}.weather-metrics span{color:#6e849a;font-size:13px}.weather-metrics strong{font-size:18px;font-weight:650}.rain-outlook{display:flex;align-items:center;gap:15px;padding:21px 8px}.rain-mark{display:grid;place-items:center;background:#dfeaf5;border-radius:14px;color:#467fba;width:44px;height:44px;flex-shrink:0;font-size:25px}.rain-outlook strong{font-size:16px;font-weight:600}.rain-outlook p{font-size:13px;color:var(--muted);margin-top:2px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.section-heading>.muted{font-size:12px}.forecast-section{margin-top:0}.day-list{display:grid;grid-template-columns:repeat(7,minmax(88px,1fr));gap:8px;overflow-x:auto;padding:3px 2px 10px;scrollbar-width:thin;scroll-snap-type:x proximity}.day-card{display:flex;align-items:center;flex-direction:column;gap:6px;border:1px solid transparent;border-radius:16px;background:#f4f7fa;padding:15px 8px;scroll-snap-align:start;font-size:14px;min-width:0}.day-card[aria-pressed=true]{background:#e7f0fc;border-color:#88add9;box-shadow:0 2px 7px #527dbf10}.day-card .weather-icon{width:45px;height:45px;margin:3px 0}.day-card strong{font-weight:650;font-size:13px}.day-card small{color:var(--muted);font-size:11px}.day-card .day-temp{font-weight:650;white-space:nowrap}.day-temp span{font-weight:400;color:var(--muted)}.day-card .day-rain{font-size:12px;color:var(--blue)}.hourly-section{margin-top:0}.section-heading h2{margin-top:4px}.scroll-controls{display:flex;gap:7px}.scroll-controls button{width:36px;height:36px;display:grid;place-items:center;padding:0;font-size:19px;background:white}#daySummary{margin-top:-9px;font-size:13px}.hour-list{display:flex;overflow-x:auto;gap:5px;padding:10px 0 15px;scrollbar-width:thin;scroll-snap-type:x proximity}.hour-card{flex:0 0 76px;text-align:center;padding:12px 5px 10px;border-radius:13px;scroll-snap-align:start;background:#f7f9fb}.hour-card.now{background:#eaf2fc;box-shadow:inset 0 0 0 1px #aac9e9}.hour-time{font-size:11px;color:#697f94;white-space:nowrap}.hour-card .weather-icon{width:32px;height:32px;margin:9px auto 5px}.hour-temp{font-size:18px;font-weight:650}.rain-bar-track{height:65px;display:flex;align-items:flex-end;justify-content:center;margin:12px 0 5px}.rain-bar{width:25px;min-height:2px;border-radius:5px 5px 2px 2px;background:linear-gradient(#639ede,#8dbbe9)}.rain-bar.dry{background:#e0e7ee}.hour-mm{font-size:12px;font-weight:600;color:#3269a4}.hour-probability{font-size:11px;color:var(--muted);margin-top:4px}.forecast-legend{display:flex;flex-wrap:wrap;gap:8px 18px;border-top:1px solid var(--line);padding-top:15px;font-size:11px;color:var(--muted);margin-top:7px}.forecast-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#70a5df;margin-right:3px}.forecast-legend span:last-child{margin-left:auto}.optional-cards{display:flex;flex-wrap:wrap;gap:16px}.optional-cards section{flex:1 1 260px;margin:0 0 20px;padding:22px}.optional-cards h2{font-size:18px}.optional-cards p{font-size:14px;color:var(--muted);margin:12px 0}.optional-cards button{font-size:14px}.optional-cards p:empty{display:none}footer{color:var(--muted);font-size:12px;text-align:center;padding:12px 0 25px}footer span{display:block;margin-top:5px}footer a{color:inherit}
#admin>button{margin:5px 6px 5px 0}#admin h2{margin:16px 0}#admin label{display:block;margin-top:20px}#invitation{margin:16px 0;display:grid;gap:10px}#invitation button{justify-self:start}.device{border-top:1px solid var(--line);padding:20px 0}.device p{margin-bottom:7px}.device-id{overflow-wrap:anywhere;font:11px/1.5 monospace}.device button{margin:8px 7px 0 0}.role-badge{display:inline-block;border-radius:7px;background:#e8f0fb;color:#3568a2;padding:3px 7px;font-size:12px}.admin-note{font-size:12px;color:var(--muted)}#requestForm button{margin-top:8px}
@media(max-width:650px){main{padding:20px 16px}.app-header{margin-bottom:24px}.brand{font-size:18px;gap:8px}.brand-sun{width:30px;height:30px;font-size:23px}.location-button{font-size:23px}.quiet-button{font-size:12px;padding:8px 10px}.hero{padding:22px 24px}.current-weather h1{font-size:88px}.current-weather p{font-size:16px}.current-icon{width:140px}.weather-metrics{gap:9px}.weather-metrics strong{font-size:16px}.weather-metrics span{font-size:12px}section{padding:20px;border-radius:20px}h2{font-size:20px}.day-list{grid-template-columns:repeat(7,87px);margin:0 -7px;padding:3px 7px 10px}.forecast-section .section-heading>.muted{font-size:11px}.hour-list{margin:0 -7px;padding-left:7px;padding-right:7px}.forecast-legend span:last-child{margin-left:0;flex-basis:100%}.rain-outlook{padding:20px 3px;gap:12px}.rain-outlook strong{font-size:14px}.rain-outlook p{font-size:12px}.hero-top{font-size:11px}.section-heading{gap:8px}.scroll-controls button{height:32px;width:32px}.optional-cards section{flex-basis:100%}#admin{padding:18px}.hour-card{flex-basis:72px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#devices>section{padding:0;margin:24px 0;border-top:2px solid var(--line);border-radius:0}#devices>section>h3{margin-top:18px}.device-activity{font-size:12px}
#updateNotice{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff7df;margin-bottom:16px;font-size:14px}#updateNotice button{margin:8px 0 0}
#updateAppliedNotice{padding:14px;border:1px solid #bedbcb;border-radius:14px;background:#edf8f1;margin-bottom:16px;font-size:14px;color:#25583a}#updateAppliedNotice button{margin-left:10px;background:#fff}
#weatherBanner{margin:0 0 20px}#toggleWeather{display:flex;align-items:center;gap:14px;width:100%;padding:18px 22px;border:1px solid #d9e5f1;border-radius:20px;background:linear-gradient(110deg,#e5effb,#f8f4e8);text-align:left}#compactIcon{width:44px;flex:0 0 44px}.compact-summary{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}.compact-summary strong{font-size:19px}#compactTemperature{margin-left:7px}#compactRain{font-size:12px;color:var(--muted)}#weatherToggleLabel{font-size:12px;color:var(--blue);white-space:nowrap}.push-device-result{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}.push-device-result p{margin:6px 0;color:var(--muted)}.push-device-result[data-result=failed] p{color:#9b3c27}#interfaceStatus{overflow-wrap:anywhere}
@media(max-width:650px){#toggleWeather{padding:14px;gap:10px;flex-wrap:wrap}.compact-summary strong{font-size:17px}#weatherToggleLabel{margin-left:54px;flex-basis:100%}#compactRain{font-size:12px}}
.admin-tools{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:16px 0}.admin-tools summary{cursor:pointer;font-weight:600}.admin-tools>p{margin:12px 0}.list-toolbar{display:flex;align-items:center;gap:10px;margin-top:20px}.list-toolbar input{margin:0}.list-toolbar button{flex-shrink:0}.device{padding:12px 0}.device-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.device-label{flex:1;min-width:150px;display:flex;gap:4px 10px;flex-wrap:wrap;align-items:center}.device-label strong{flex-basis:100%;font-size:15px}.device-label .muted{font-size:12px}.device-line button{margin:0;font-size:13px;padding:8px 10px}.device-line .icon-button{padding:5px;width:34px;min-height:34px;background:transparent;border-color:transparent;font-size:20px}.device-details{padding:12px;background:#f5f8fc;border-radius:10px;margin-top:10px}.device-details .device-id{font-family:inherit;font-size:12px}.device-editor{padding:16px;background:#f5f8fc;border-radius:12px;margin-top:12px}#admin .device-editor label{margin-top:10px}.device-editor input{margin-bottom:10px}.activation-methods{border-top:1px solid var(--line);margin-top:14px;padding-top:6px}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px}.activation-code{font-size:30px;letter-spacing:6px;font-weight:700;margin:12px 0}#installHelp ol{padding-left:21px;margin-bottom:0}#installHelp li{margin:9px 0}#installHelp{margin-top:16px}#deviceCodeStep{padding:16px;margin-bottom:20px;font-size:14px}#deviceCodeStep summary{cursor:pointer;color:var(--muted)}#deviceCodeStep p{margin:12px 0}
@media(max-width:650px){.device-line{gap:6px}.device-label{min-width:calc(100% - 86px)}.device-line>[data-decision],.device-line>.activate-device{margin-top:4px}.device-details{overflow-wrap:anywhere}}
