:root{color:var(--ink);background:var(--bg);font-synthesis:none;--bg:#f4f3ed;--card:#fffefa;--ink:#25352d;--muted:#6c756d;--line:#e3e5dc;--accent:#345d45;--wash:#e8eee4;--shadow:0 12px 40px #263a2c0a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:0 0;border:0}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #8eac66}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}h1{letter-spacing:-1.6px;font-size:clamp(34px,5vw,48px);font-weight:650;line-height:1.12}h2{letter-spacing:-.5px;font-size:20px;font-weight:650}h3{font-size:18px}p{line-height:1.6}small{font-size:13px}.muted,.fine{color:var(--muted)}.fine{font-size:12px;line-height:1.6}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;color:var(--muted);margin-bottom:12px;font-size:11px;font-weight:650}.dot{color:#789061}a{color:var(--accent);text-underline-offset:3px}a svg{vertical-align:middle}.topbar{justify-content:space-between;align-items:center;max-width:1120px;margin:auto;padding:22px 28px 10px;display:flex}.wordmark{letter-spacing:-.4px;align-items:center;gap:10px;min-height:48px;font-size:17px;font-weight:650;display:flex}.brand-mark{background:var(--accent);color:#fff;border-radius:22px;justify-content:center;align-items:center;width:76px;height:76px;display:inline-flex}.brand-mark.small{border-radius:11px;width:34px;height:34px}.avatar{background:#dfdfd1;border-radius:50%;width:44px;height:44px;font-size:16px}.content{max-width:1040px;margin:auto;padding:16px 28px 128px}.page-intro{margin:24px 0 28px}.hero{color:#fcfff7;background:#294b3b;border-radius:26px;grid-template-columns:1fr auto;gap:24px;padding:28px;display:grid;position:relative;overflow:hidden}.hero:after{content:"";pointer-events:none;border:1px solid #ffffff12;border-radius:50%;width:400px;height:400px;position:absolute;top:-130px;right:80px}.hero-icon{background:#ffffff15;border-radius:16px;justify-content:center;align-items:center;width:50px;height:50px;margin-bottom:24px;display:inline-flex}.hero h2{letter-spacing:-.7px;font-size:24px}.hero p{color:#d0dccd;margin-top:8px;font-size:13px}.hero-weather{text-align:right;flex-direction:column;justify-content:center;align-items:flex-end;gap:7px;max-width:130px;display:flex}.hero-weather strong{letter-spacing:-2px;font-size:44px;font-weight:500}.hero-weather small{color:#d0dccd}.hero-bottom{color:#e5eddf;border-top:1px solid #ffffff24;flex-wrap:wrap;grid-column:1/-1;gap:12px 22px;padding-top:20px;font-size:13px;display:flex}.hero-bottom span,.hero-bottom button{align-items:center;gap:8px;display:flex}.hero-bottom button{min-height:32px;padding:0}.content section{margin-bottom:28px}.section-title{justify-content:space-between;align-items:center;gap:12px;margin:28px 0 16px;display:flex}.section-title button{min-height:44px;color:var(--muted);align-items:center;gap:7px;font-size:13px;display:flex}section>h2{margin:24px 0 16px}.room-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.room-card{text-align:left;background:#e9e9de;border:1px solid #00000003;border-radius:21px;flex-direction:column;gap:8px;min-height:174px;padding:20px;display:flex;position:relative;overflow:hidden}.room-card strong{max-width:90%;margin-top:auto;font-size:17px;font-weight:600}.room-card small{color:#656e60}.room-card>svg:last-child{position:absolute;bottom:22px;right:14px}.room-card b{font-size:20px;font-weight:500;position:absolute;top:20px;right:18px}.room-1{background:#e5e9e0}.room-2{background:#eee4db}.room-3{background:#e2e8e5}.room-art{opacity:.7;margin-bottom:12px;display:block}.controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.control{background:var(--card);border:1px solid var(--line);border-radius:18px;align-items:center;gap:10px;min-height:88px;padding:8px 14px 8px 8px;display:flex}.control-main{text-align:left;flex:1;align-items:center;gap:14px;min-width:0;min-height:68px;padding:8px;display:flex}.control-main>span:last-child{min-width:0}.control strong{overflow-wrap:anywhere;font-size:14px;font-weight:600;display:block}.control small{color:var(--muted);margin-top:5px;display:block}.device-icon{background:var(--bg);width:46px;height:46px;color:var(--muted);border-radius:14px;flex:none;justify-content:center;align-items:center;display:flex}.active .device-icon{background:var(--wash);color:var(--accent)}.toggle{flex:none;justify-content:center;align-items:center;width:52px;height:48px;display:flex;position:relative}.toggle:before{content:"";background:#dfe2db;border-radius:16px;width:44px;height:28px;position:absolute;top:10px;left:4px}.toggle span{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .18s;position:absolute;top:13px;left:7px;box-shadow:0 2px 3px #0001}.toggle.is-on:before{background:var(--accent)}.toggle.is-on span{transform:translate(16px)}.toggle svg{z-index:1}.scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.scene{background:var(--card);border:1px solid var(--line);text-align:left;border-radius:18px;align-items:center;gap:14px;min-height:82px;padding:20px;display:flex}.scene strong{flex:1;font-size:14px}.scene>svg:first-child{color:var(--accent)}.bottom-nav{background:color-mix(in srgb, var(--card) 94%, transparent);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:9px 12px calc(9px + env(safe-area-inset-bottom));z-index:10;justify-content:center;gap:60px;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav button{min-width:70px;min-height:55px;color:var(--muted);border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:11px;display:flex}.bottom-nav button.selected{color:var(--accent);background:var(--wash);font-weight:650}.row-link{text-align:left;border-bottom:1px solid var(--line);align-items:center;gap:16px;width:100%;min-height:72px;padding:12px 4px;display:flex}.row-link>svg:last-child{margin-left:auto}.row-link strong{font-size:16px}.back{min-height:44px;color:var(--muted);align-items:center;gap:8px;margin-bottom:16px;padding:0;font-size:14px;display:flex}.alarm-card{background:var(--wash);border:1px solid var(--line);text-align:center;border-radius:24px;padding:32px}.alarm-card>svg{color:var(--accent);margin-bottom:16px}.alarm-card h2{font-size:28px}.alarm-card p{color:var(--muted);margin:8px 0 20px;font-size:14px}.badge{border:1px solid var(--line);background:var(--card);border-radius:20px;align-items:center;gap:7px;padding:9px 12px;font-size:11px;display:inline-flex}.alarm-alert{color:#8f3029;background:#fae2df}.camera-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.camera-card{color:#f1f5ed;text-align:left;background:#293c35;border-radius:18px;flex-direction:column;align-items:flex-start;gap:12px;min-height:150px;padding:20px;display:flex;position:relative}.camera-card>svg:last-child{position:absolute;bottom:20px;right:16px}.camera-card strong{max-width:90%;font-size:14px}.camera-card small{color:#bfcbbd}.warning,.connection,.error{text-align:left;background:#f1e7cf;border-radius:16px;align-items:center;gap:12px;width:100%;margin:14px 0;padding:16px;font-size:13px;line-height:1.5;display:flex}.warning>svg:last-child{flex:none;margin-left:auto}.error{color:#873d30;background:#f5ded8}.error button{min-width:40px;min-height:40px;margin-left:auto}.connection{background:var(--wash);color:var(--ink)}.settings-card{background:var(--card);border:1px solid var(--line);border-radius:20px;margin-top:18px;padding:24px}.settings-card .section-title{margin:0 0 12px}.settings-card h2{margin:0 0 18px}.settings-card p{color:var(--muted);margin:12px 0;font-size:14px}.segmented{background:var(--bg);border:1px solid var(--line);border-radius:16px;gap:5px;margin:14px 0;padding:5px;display:flex}.segmented button{border-radius:12px;flex:1;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:8px;font-size:13px;display:flex}.segmented button.selected{background:var(--card);color:var(--accent);font-weight:600;box-shadow:0 2px 6px #0000000a}.primary,.secondary{border-radius:14px;justify-content:center;align-items:center;gap:12px;width:100%;min-height:52px;margin-top:12px;padding:14px 20px;font-size:14px;font-weight:600;display:flex}.primary{background:var(--accent);color:#fff}.secondary{background:var(--wash);color:var(--accent);border:1px solid var(--line)}label{margin:20px 0;font-size:13px;font-weight:550;display:block}input:not([type=checkbox]):not([type=range]),select{border:1px solid var(--line);background:var(--card);width:100%;min-height:48px;color:var(--ink);border-radius:12px;margin-top:8px;padding:12px;font-size:16px}input[type=range]{width:100%;accent-color:var(--accent);min-height:48px}input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent);flex:none}.check-row{align-items:center;gap:12px;min-height:48px;line-height:1.5;display:flex}.welcome{justify-content:center;align-items:center;min-height:100svh;padding:36px 24px;display:flex}.welcome-card{width:100%;max-width:370px}.welcome .eyebrow{margin:30px 0 16px}.welcome h1{letter-spacing:-3px;font-size:62px;line-height:1.02}.welcome .muted{margin:20px 0 32px;font-size:17px}.welcome .fine{margin-top:22px}.welcome h2{margin-top:26px}.welcome p+button{margin-top:24px}.icon-button{border-radius:14px;flex:none;justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.empty{color:var(--muted);padding:28px 14px;font-size:14px;line-height:1.7}.toast{bottom:calc(98px + env(safe-area-inset-bottom));background:var(--ink);color:var(--card);z-index:30;box-shadow:var(--shadow);border-radius:14px;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 32px);padding:16px 20px;font-size:13px;display:flex;position:fixed;left:50%;transform:translate(-50%)}.activity-row{border-bottom:1px solid var(--line);align-items:center;gap:14px;padding:18px 4px;font-size:13px;display:flex}.activity-row div{overflow-wrap:anywhere;flex:1;min-width:0}.activity-row small{color:var(--muted);margin-top:5px;display:block}.activity-row time{color:var(--muted);text-align:right;flex:none;max-width:90px;font-size:11px}.admin-device{border-bottom:1px solid var(--line);text-align:left;align-items:center;gap:14px;width:100%;min-height:72px;padding:12px 0;display:flex}.admin-device span{flex:1;min-width:0}.admin-device strong{font-size:14px;display:block}.admin-device small{color:var(--muted);overflow-wrap:anywhere;margin-top:5px;font-size:11px;display:block}.search{align-items:center;gap:10px;display:flex}.search input{margin:0!important}.status-dot{background:#b89057;border-radius:50%;width:10px;height:10px}.status-dot.live{background:#739d69}.danger{color:#9e493e}.order-row{align-items:center;gap:8px;font-size:13px;display:flex}.order-row>span{flex:1}dialog{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:26px;width:calc(100% - 24px);max-width:460px;max-height:85svh;padding:24px;overflow-y:auto;box-shadow:0 24px 80px #0003}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#14251ac0}.dialog-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;display:flex}.dialog-title h2{overflow-wrap:anywhere}.detail-state{text-align:center;color:var(--accent);margin:24px 0}.detail-state h2{margin-top:12px}.camera-image{background:var(--bg);object-fit:contain;border-radius:14px;width:100%;min-height:140px}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}:root[data-theme=dark]{--bg:#17211c;--card:#222e27;--ink:#ecf1e8;--muted:#abb5a7;--line:#38463b;--accent:#9fc6a3;--wash:#2d4133;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=dark] .primary{color:#14291b}:root[data-theme=dark] .room-card{color:var(--ink);background:#303c2d}:root[data-theme=dark] .room-1{background:#293c34}:root[data-theme=dark] .room-2{background:#433c33}:root[data-theme=dark] .room-3{background:#303c40}:root[data-theme=dark] .room-card small{color:#bac5b6}:root[data-theme=dark] .avatar{background:#3a4a3d}:root[data-theme=dark] .warning{background:#4a4129}:root[data-theme=dark] .error{color:#ffc7b8;background:#4b2d2a}:root[data-theme=dark] .brand-mark{color:#1c3524}:root[data-theme=dark] .toggle.is-on span{background:#17321c}@media (prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=dark]){--bg:#17211c;--card:#222e27;--ink:#ecf1e8;--muted:#abb5a7;--line:#38463b;--accent:#9fc6a3;--wash:#2d4133;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=system] .primary{color:#14291b}:root[data-theme=system] .room-card{color:var(--ink);background:#303c2d}:root[data-theme=system] .room-card small{color:#bac5b6}}@media (width<=650px){.topbar{padding:14px 20px 0}.content{padding:12px 20px 120px}.page-intro{margin:22px 0 24px}.hero{gap:18px;padding:23px}.hero h2{font-size:21px}.hero-weather strong{font-size:38px}.hero-weather{max-width:100px}.hero-weather small{font-size:11px}.hero-icon{margin-bottom:20px}.hero-bottom{gap:9px 18px;padding-top:14px;font-size:12px}.room-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.room-card{min-height:166px;padding:18px}.room-card strong{font-size:16px}.room-card small{font-size:11px}.room-card b{font-size:18px}.controls,.scenes{grid-template-columns:1fr}.scene{min-height:72px}.bottom-nav{justify-content:space-around;gap:0}.bottom-nav button{flex:1;min-width:64px;max-width:100px}.camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.camera-card{min-height:144px;padding:18px}.section-title{margin:24px 0 12px}.section-title h2{font-size:19px}.settings-card{padding:20px}.segmented button{padding:7px 4px;font-size:12px}.segmented button svg{width:17px}.admin-tabs{z-index:1;background:var(--bg);position:sticky;top:0}dialog{padding-bottom:calc(24px + env(safe-area-inset-bottom));border-radius:24px;margin:auto auto 12px}.welcome h1{font-size:58px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.disclosure{color:var(--muted);margin:16px 0;font-size:13px}.disclosure summary{cursor:pointer;align-items:center;min-height:48px;display:flex}.disclosure[open] summary{margin-bottom:12px}
