:root{font-family:Inter,Segoe UI,sans-serif;color:#203c31;background:#edf0eb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #92ad68;outline-offset:5px}.app{max-width:480px;min-height:100dvh;margin:0 auto;background:#fafbf8;padding:0 24px;padding-top:env(safe-area-inset-top);box-shadow:0 0 80px #243b2910}header{display:flex;justify-content:space-between;align-items:center;height:88px}.brand{text-decoration:none;color:#244333;font-size:29px;font-weight:750;letter-spacing:-1.5px}.brand>span{color:#86a15f;font-size:26px;margin-right:5px}.connection{font-size:11px;color:#778273;display:flex;align-items:center;gap:6px}.connection i{width:6px;height:6px;background:#91a971;border-radius:50%}.welcome{padding:21px 0 29px}.welcome>p{font-size:9px;font-weight:700;letter-spacing:2.3px;color:#819070;margin:0 0 10px}h1{font-size:32px;line-height:1.2;letter-spacing:-1.3px;margin:0 0 10px;font-weight:650}.welcome>span{font-size:13px;color:#83907e}.discovery{background:#eef2e7;border:1px solid #e1e8d6;border-radius:23px;text-align:center;padding:24px 23px 20px}.radar{margin:0 auto 17px;display:grid;place-items:center;width:76px;height:76px;border:1px solid #d4dfc5;border-radius:50%;box-shadow:0 0 0 8px #e8eedf}.radar>span{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:#dce7cc;color:#658248;font-size:38px;line-height:1}.discovery h2{font-size:19px;letter-spacing:-.6px;font-weight:650;margin:0 0 9px}.discovery p{font-size:12px;line-height:1.6;color:#7b886f;max-width:250px;margin:0 auto 20px}.discover-button{border:0;border-radius:12px;background:#2e503c;color:#fff;min-height:50px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600}.discover-button:hover:enabled{background:#3c6249}.discover-button>span{font-size:22px;font-weight:400}.discovery small{display:block;font-size:10px;line-height:1.5;color:#89957d;margin-top:12px}.searching .radar{animation:pulse 1.4s infinite}@keyframes pulse{50%{box-shadow:0 0 0 14px #dfe8d1;opacity:.6}}.list-section{margin-top:30px}.list-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.list-heading h2{font-size:16px;margin:0;font-weight:650;letter-spacing:-.4px}.list-heading h2 span{margin-left:5px;font-size:11px;background:#eaf0e3;color:#829271;border-radius:6px;padding:3px 6px;font-weight:500}.refresh{background:none;border:0;font-size:11px;color:#829175;min-height:44px;padding:0 0 0 12px}.device-list{background:#fff;border:1px solid #e5e9df;border-radius:18px;overflow:hidden}.device+.device{border-top:1px solid #edf0e8}.device-row{display:flex;gap:13px;align-items:center;min-height:97px;padding:20px 17px}.device-row+.device-row{border-top:1px solid #edf0e8}.light-icon{height:44px;width:44px;border-radius:13px;background:#f1f3ed;display:grid;place-items:center;color:#98a48c;flex-shrink:0}.light-icon svg{height:25px;width:25px}.on .light-icon{background:#eaf1db;color:#7b9856}.device-info{flex:1;min-width:0}.device-info h3{font-size:14px;font-weight:600;line-height:1.4;margin:0;overflow-wrap:anywhere;letter-spacing:-.2px}.device-info p{display:flex;align-items:center;gap:5px;font-size:11px;color:#99a18f;margin:7px 0 0}.device-info p i{width:5px;height:5px;border-radius:50%;background:#b4bcaa}.on .device-info p{color:#859c66}.on .device-info p i{background:#97af74}.channel-name{font-size:10px;color:#8c9881}.device-info p.offline{color:#a38f7f}.toggle{flex-shrink:0;position:relative;border:0;background:transparent;width:52px;height:44px;padding:0}.toggle:before{content:"";position:absolute;inset:8px 0;background:#e1e6db;border-radius:28px;transition:background .2s}.toggle>span{position:absolute;top:12px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transition:transform .2s}.toggle.active:before{background:#89a965}.toggle.active>span{transform:translate(24px)}.empty{text-align:center;padding:32px 24px}.empty>span{font-size:36px;color:#9baa89}.empty h3{font-size:14px;font-weight:600;margin:10px 0}.empty p{color:#98a08f;font-size:12px;line-height:1.7;max-width:235px;margin:auto}.feedback{font-size:12px;line-height:1.6;background:#eaf1e2;color:#5c7648;padding:13px 16px;border-radius:12px;overflow-wrap:anywhere}.error{background:#faece6;color:#995a40}.device-error{font-size:11px;color:#995a40;line-height:1.6;padding:0 18px 15px;margin:0;overflow-wrap:anywhere}.help{margin:23px 0;font-size:11px;color:#829174;line-height:1.8}.help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;gap:9px}.help summary:after{content:"\2304"}.help[open] summary:after{content:"\2303"}.help ol{padding-left:20px}.help li{padding:5px 0}footer{border-top:1px solid #e7ebdf;display:flex;align-items:center;justify-content:center;gap:7px;color:#708760;font-size:11px;padding:17px 0 max(23px,env(safe-area-inset-bottom))}footer>span{font-size:20px}@media(min-width:540px){.app{margin-top:24px;margin-bottom:24px;min-height:calc(100dvh - 48px);border:1px solid #e0e6d8;border-radius:28px}}@media(max-width:350px){.app{padding-left:16px;padding-right:16px}.device-row{gap:10px;padding:16px 12px}.discovery{padding:23px 17px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}.settings-button{display:block;margin:0 0 18px;padding:12px 0;background:none;border:0;color:#597449;font-size:12px}.account-panel{background:#fff;border:1px solid #dce5d3;border-radius:18px;padding:22px;margin:0 0 24px}.account-panel h2{font-size:19px;margin-top:0}.account-panel p,.account-panel small{font-size:12px;line-height:1.7;color:#6e7c62}.account-panel label{display:block;font-size:12px;margin:18px 0 8px}.account-panel input,.account-panel select{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #d5dfcb;border-radius:8px;padding:10px;font:inherit;font-size:14px;background:#fafbf8;color:#203c31}.account-panel .discover-button{margin:22px 0 15px}.account-panel input:focus,.account-panel select:focus{outline:2px solid #92ad68}.account-panel small{display:block}.account-panel .settings-button{margin:12px 0 0}.header-actions{display:flex;align-items:center;gap:14px}.logout-button{border:1px solid #d5dfcb;border-radius:8px;background:transparent;color:#38553e;min-height:44px;padding:8px 12px;font-size:12px}.logout-button:hover:enabled{background:#eaf0e3}.mobile-menu{position:relative}.menu-toggle{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d5dfcb;border-radius:10px;background:transparent;color:#38553e;font-size:22px}.menu-panel{position:absolute;right:0;top:52px;z-index:10;width:230px;max-width:calc(100vw - 48px);padding:6px;background:#fff;border:1px solid #dce5d3;border-radius:14px;box-shadow:0 8px 28px #243b2920}.menu-panel button{display:block;width:100%;min-height:48px;padding:12px;text-align:left;background:transparent;border:0;border-radius:8px;color:#38553e;font-size:13px}.menu-panel button:hover:enabled,.menu-toggle:hover{background:#eaf0e3}.welcome+.list-section{margin-top:0}.device-heading{display:flex;align-items:center;justify-content:space-between;padding:0 17px}.rename-button{min-height:44px;border:0;background:transparent;color:#38553e;font-size:12px;padding:8px}.rename-form{padding:0 17px 16px}.rename-form label{display:block;font-size:12px;margin-bottom:8px}.rename-form input{width:100%;min-height:44px;border:1px solid #d5dfcb;border-radius:8px;padding:10px;font:inherit;color:#203c31;background:#fafbf8}.rename-form input:focus{outline:2px solid #92ad68}.rename-actions{display:flex;gap:10px;margin-top:10px}.rename-actions button{min-height:44px;padding:8px 16px;border:1px solid #d5dfcb;border-radius:8px;background:#fff;color:#38553e}.rename-actions button[type=submit]{background:#2e503c;color:#fff}.app{max-width:1040px;padding-left:28px;padding-right:28px}.device-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:transparent;border:0;overflow:visible}.device{min-width:0;display:flex;flex-direction:column;gap:12px}.device+.device{border:0}.device-heading{padding:0 4px;gap:8px}.light-button{width:100%;min-height:200px;border:1px solid #dce4d9;border-radius:24px;padding:22px;text-align:left;background:linear-gradient(145deg,#fff,#f0f4ed);color:#284635;box-shadow:0 7px 20px #233f3010;display:flex;flex-direction:column;align-items:flex-start;gap:10px;transition:transform .18s,box-shadow .18s,background .18s}.light-button-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:12px}.light-button .light-icon{width:54px;height:54px;border-radius:17px;background:#e6eddf;color:#668453}.light-button .light-icon svg{width:30px;height:30px}.power-icon{font-size:27px;color:#84947b}.light-button-name{font-size:21px;font-weight:650;letter-spacing:-.5px;line-height:1.25;overflow-wrap:anywhere}.light-button-channel{font-size:14px;font-weight:600;overflow-wrap:anywhere}.light-button-status{margin-top:auto;display:flex;align-items:center;gap:7px;font-size:13px;color:#687961}.light-button-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.light-button.on{background:linear-gradient(140deg,#315c43,#193c2d);border-color:#315c43;color:#fff;box-shadow:0 8px 24px #244e3928}.light-button.on .light-icon{background:#ffffff18;color:#d7eeac}.light-button.on .power-icon,.light-button.on .light-button-status{color:#d7eeac}.light-button:disabled{opacity:1;cursor:default}.light-button:disabled:not(.on){color:#788472;background:#edf0ea}.light-button-status.offline{color:#98674f}.light-button:active:enabled{transform:scale(.98)}.device-error{padding:0 4px 12px}.device-list>.empty{grid-column:1/-1}@media(hover:hover){.light-button:hover:enabled{transform:translateY(-3px);box-shadow:0 12px 28px #233f3020}}@media(min-width:760px){.device-list{grid-template-columns:repeat(3,minmax(0,1fr))}.welcome{padding-top:32px}.light-button{min-height:220px}}@media(max-width:539px){.app{padding-left:12px;padding-right:12px}.device-list{gap:8px}.light-button{padding:12px;min-height:180px;border-radius:18px;gap:8px}.light-button-name{font-size:15px}.light-button-channel,.light-button-status{font-size:11px}.light-button-top{margin-bottom:8px}.light-button .light-icon{width:36px;height:36px;border-radius:12px}.light-button .light-icon svg{width:23px;height:23px}.power-icon{font-size:20px}.device-heading{flex-wrap:wrap;gap:0;padding:0}.device-heading .channel-name{font-size:9px}.rename-button{font-size:10px;padding:4px 0}.rename-form{padding:0 0 12px}.rename-actions{flex-direction:column;gap:6px}.rename-actions button{padding:8px 4px}.light-button-status i{flex-shrink:0}}.menu-panel{max-height:calc(100dvh - 140px);overflow-y:auto}.menu-devices summary{min-height:48px;padding:12px;color:#38553e;font-size:13px;cursor:pointer;border-radius:8px}.menu-devices summary:hover{background:#eaf0e3}.menu-devices>p{padding:0 12px;font-size:12px;color:#6e7c62}.menu-panel .rename-actions button{width:auto;text-align:center}.menu-panel .rename-actions button[type=submit]{background:#2e503c;color:#fff}
