/* Visual implementation of the approved concept: product first, compact controls. */
:root{--concept-navy:#102b39;--concept-blue:#1674f8;--concept-green:#27896b;--concept-border:#e6e9e7}
.page-home,.page-relay,.page-plans{background:#faf9f6}
.page-home .site-header,.page-relay .site-header,.page-plans .site-header{background:#fdfcf9;border-bottom-color:#eeeae4}
.page-home .product-hero{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.18fr);gap:32px;align-items:center;padding-top:40px;padding-bottom:32px;min-height:500px}
.page-home .product-hero h1{font-size:56px;line-height:1.075;letter-spacing:-.047em;color:var(--concept-navy);max-width:540px;margin:16px 0 24px;font-weight:750}
.page-home .product-hero .value-eyebrow{font-size:11px;letter-spacing:.1em;color:#4c686b}
.page-home .product-hero .product-lead{font-size:24px;line-height:1.45;max-width:490px;color:#546976;margin-bottom:27px}
.page-home .product-hero .product-actions{gap:12px;flex-wrap:wrap;align-items:center}
.page-home .product-hero .button{padding:16px 22px;background:linear-gradient(135deg,#1685ff,#1465ee);border:1px solid #1674f8;border-radius:12px;min-height:64px;min-width:346px;gap:22px;font-size:18px;box-shadow:0 6px 15px #1372ed1a}
.page-home .product-hero .product-actions>.text-button{font-size:13px;padding:8px 0}
.page-home .product-hero .product-reassurance{font-size:16px;line-height:1.5;margin:11px 0 0;color:#536b76}
.page-home .product-hero .product-reassurance+.product-reassurance{margin-top:4px;font-size:14px}
.page-home .product-hero .product-alternative{font-size:14px;line-height:1.6;margin-top:20px;color:#536b76}
.product-hero-preview{min-width:0;align-self:center}
.product-real-preview{margin:0;overflow:visible}
.product-real-preview .preview-devices{position:relative;padding:24px 24px 36px 62px;isolation:isolate}
.product-real-preview .preview-devices::before{content:"";position:absolute;inset:12% 0 0;z-index:-1;background:radial-gradient(ellipse at 60% 70%,#e6dfd2bb,transparent 68%);filter:blur(12px)}
.preview-laptop{position:relative;transform:perspective(1200px) rotateY(-15deg) rotateX(5deg) rotateZ(1deg);transform-origin:center bottom;padding-bottom:15px}
.preview-laptop-screen{padding:13px 9px 10px;border-radius:18px 18px 7px 7px;background:linear-gradient(145deg,#263236,#0f171b);border:1px solid #546065;box-shadow:0 18px 28px #162b3b26;position:relative}
.preview-laptop-screen::before{content:"";position:absolute;top:5px;left:50%;width:3px;height:3px;border-radius:100%;background:#5a686e}
.product-real-preview .preview-desktop{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;object-position:top;border:0;border-radius:3px;box-shadow:none;background:#f8f9f7}
.preview-laptop-base{position:absolute;bottom:0;left:-4%;right:-4%;height:25px;border-radius:2px 2px 50% 50%/2px 2px 100% 100%;background:linear-gradient(#cbd0d2 0%,#eef0f0 20%,#9babad 40%,#667475 88%,#465251);box-shadow:0 13px 15px -6px #172e394f}
.preview-laptop-base::before{content:"";position:absolute;left:41%;right:41%;height:5px;border-radius:0 0 8px 8px;background:#9faeb2}
.preview-handset{position:absolute;z-index:2;bottom:32px;left:0;width:28%;padding:6px;background:#172026;border:1px solid #536068;border-radius:25px;transform:rotate(-2deg);box-shadow:4px 14px 25px #17323f38}
.preview-handset::before{content:"";position:absolute;top:5px;left:31%;right:31%;height:9px;background:#172026;border-radius:0 0 8px 8px;z-index:1}
.product-real-preview .preview-phone{position:static;display:block;width:100%;height:auto;aspect-ratio:9/19;object-fit:cover;object-position:top;border:0;border-radius:19px;box-shadow:none;background:#fafbf9}
.product-real-preview figcaption{color:#637477;font-size:10px;margin-top:12px;text-align:center}
.page-home .product-trust-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #e4e3df;border-bottom:1px solid #e4e3df;padding:27px 0;margin-top:8px;margin-bottom:32px}
.page-home .product-trust-strip>span{display:flex;align-items:center;gap:13px;padding:0 24px;border-right:1px solid #e4e3df}
.page-home .product-trust-strip>span:first-child{padding-left:0}.page-home .product-trust-strip>span:last-child{padding-right:0;border:0}
.page-home .product-trust-strip>span>svg{width:30px;height:30px;flex-shrink:0;color:#163e50}
.page-home .product-trust-strip>span>span{display:block}
.page-home .product-trust-strip strong{display:block;color:#143345;font-weight:650;font-size:12px;line-height:1.4}
.page-home .product-trust-strip small{display:block;font-size:10px;font-weight:400;color:#586f7b;margin-top:4px;line-height:1.5}
.product-story .product-choice-card{border:1px solid #e3e7e3;box-shadow:0 4px 18px #1b394505;border-radius:16px;background:#fff}
.product-story .product-choice-relay{border-color:#bdd7cb}.product-story h2{color:var(--concept-navy)}.product-story .value-invitation h2{color:inherit}
/* The dashboard has one compact live status and a two-column working area. */
body.personal-area.page-relay-dashboard{background:#f8f9f7;color:var(--concept-navy)}
body.personal-area.page-relay-dashboard .site-header{background:#fefefd;border-bottom:1px solid #e7eae7}
body.personal-area.page-relay-dashboard .header-inner{min-height:80px}
body.personal-area.page-relay-dashboard .relay-home{max-width:1200px;padding-top:32px;padding-bottom:34px}
body.personal-area.page-relay-dashboard .relay-home .relay-home-topbar{display:grid;grid-template-columns:1fr auto;gap:10px 20px;margin:0 0 28px;align-items:start;position:relative;top:0}
body.personal-area.page-relay-dashboard .relay-home .home-eyebrow{display:none}
body.personal-area.page-relay-dashboard .relay-home .relay-home-topbar h1{font-size:36px;line-height:1.222;letter-spacing:-.04em;color:var(--concept-navy);margin:0}
body.personal-area.page-relay-dashboard .relay-home .relay-live-summary{grid-column:1;grid-row:2;display:flex;align-items:center;justify-self:start;gap:6px;padding:5px 10px;background:#e8f3ed;border-radius:30px;text-align:left;max-width:100%;flex-wrap:wrap}
body.personal-area.page-relay-dashboard .relay-home .relay-live-label{font-size:11px;gap:6px;color:#245e49}
body.personal-area.page-relay-dashboard .relay-home .relay-live-label strong{font-size:11px;font-weight:500}
body.personal-area.page-relay-dashboard .relay-home .relay-live-summary p{margin:0;font-size:10px;color:#3b6858}
body.personal-area.page-relay-dashboard .relay-home .relay-live-summary p::before{content:"·";margin-right:6px}
body.personal-area.page-relay-dashboard .relay-home .relay-live-summary:has(.is-stale){background:#fff1d8}
body.personal-area.page-relay-dashboard .relay-home .dashboard-settings-link{grid-column:2;grid-row:1/3;background:#fff;align-self:center;font-size:12px;min-height:40px;border-color:#e1e6e3;border-radius:10px}
.relay-workspace{display:grid;grid-template-columns:minmax(0,1fr) 328px;gap:16px;align-items:start}
.relay-workspace.is-shared{grid-template-columns:1fr}
.relay-workspace-main{min-width:0}
.relay-entities-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.relay-entities-heading h2{font-size:17px;font-weight:650;letter-spacing:-.025em;margin:0;color:var(--concept-navy)}
.relay-entities-heading>span{font-size:11px;color:#586f7b}
body.personal-area.page-relay-dashboard .relay-home .relay-finder{margin-bottom:17px}
body.personal-area.page-relay-dashboard .relay-home .relay-findbar{max-width:none;gap:8px}
body.personal-area.page-relay-dashboard .relay-home .relay-search-field{border-color:#e2e8e3;border-radius:9px;background:#ffffffb3}
body.personal-area.page-relay-dashboard .relay-home .relay-search-field input{height:38px;min-height:38px;font-size:12px;padding-block:8px}
body.personal-area.page-relay-dashboard .relay-home .relay-search-field>svg{width:15px;height:15px}
body.personal-area.page-relay-dashboard .relay-home .relay-filter-menu>summary{min-height:38px;padding:8px 12px;border-radius:9px;font-size:11px;background:#fff;border-color:#e2e8e3}
body.personal-area.page-relay-dashboard .relay-home .relay-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
body.personal-area.page-relay-dashboard .relay-home :is(.relay-category,.relay-category-card,.relay-room,.relay-room-entities){display:contents}
body.personal-area.page-relay-dashboard .relay-home .relay-category>h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.personal-area.page-relay-dashboard .relay-home .relay-entity{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-areas:'icon identity' 'state state' 'actions actions' 'command command';grid-template-rows:auto 1fr auto auto;align-items:start;align-content:start;gap:12px 11px;min-height:188px;padding:18px 16px 15px;border:1px solid #e7ebe8;border-radius:11px;background:#fff;box-shadow:0 3px 12px #17383b05;margin:0;min-width:0;transition:border-color .15s,box-shadow .15s}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:hover{border-color:#ccd9d1;box-shadow:0 4px 18px #17383b09}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-identity{grid-area:identity;min-width:0;padding-right:12px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-room{display:block;font-size:12px;line-height:1.4;color:#5c7082;margin-bottom:3px;overflow-wrap:anywhere}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-name{font-size:14px;font-weight:600;line-height:1.4;letter-spacing:-.015em;color:#102839;margin:0;overflow-wrap:anywhere}
body.personal-area.page-relay-dashboard .relay-home .relay-device-symbol{grid-area:icon;width:38px;height:40px;border-radius:10px;background:#e8f4ef;color:#126b52;align-self:start}
body.personal-area.page-relay-dashboard .relay-home .relay-device-symbol svg{width:24px;height:24px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=script] .relay-device-symbol{background:#eaf2ff;color:#0879f9}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details{margin:0}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details>summary{position:absolute;top:17px;right:8px;display:block;list-style:none;font-size:0;min-width:20px;min-height:28px;padding:3px 4px;color:#526b78;border-radius:5px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details>summary::-webkit-details-marker{display:none}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details>summary::after{content:'›';font-size:19px;line-height:20px;display:block}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details[open]>summary::after{content:'⌄'}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details[open]{padding-top:8px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details[open] :is(code,.relay-entity-changed){font-size:10px;line-height:1.6;overflow-wrap:anywhere}
body.personal-area.page-relay-dashboard .relay-home .relay-state,body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=sensor] .relay-state.is-value{grid-area:state;justify-self:start;align-self:end;background:transparent;border:0;border-radius:0;font-size:24px;font-weight:650;letter-spacing:-.04em;line-height:1.2;padding:5px 0 0;margin:0;color:#112c3c;max-width:100%;overflow-wrap:anywhere;text-transform:capitalize}
body.personal-area.page-relay-dashboard .relay-home .relay-state.is-value{font-size:27px;text-transform:none;font-weight:600}
body.personal-area.page-relay-dashboard .relay-home .relay-state.is-unavailable{font-size:15px;color:#677788;font-weight:500}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-actions{grid-area:actions;display:flex;gap:7px;justify-content:flex-start;align-self:end;min-width:0}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-toggle:not([hidden])) .relay-entity-actions{position:absolute;right:16px;top:12px;grid-area:auto;}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-toggle:not([hidden])) .relay-state{padding-right:52px}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle{width:46px;height:44px;min-height:44px;padding:13px 3px;border:0;background:linear-gradient(#e8efea,#e8efea) center/46px 26px no-repeat;position:relative;isolation:isolate}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle-thumb{width:18px;height:18px}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle[aria-checked=true]{background:linear-gradient(var(--concept-blue),var(--concept-blue)) center/46px 26px no-repeat;border-color:var(--concept-blue)}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle[aria-checked=true] .relay-toggle-thumb{transform:translateX(22px)}
body.personal-area.page-relay-dashboard .relay-home .relay-action{flex:1;min-width:0;min-height:44px;font-size:14px;border-radius:7px;padding:6px 9px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=script] .relay-entity-actions{margin-top:22px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=script] .relay-action{background:linear-gradient(135deg,#1287ff,#1b6ff1);color:#fff;border-color:#1674f8;font-size:13px;font-weight:600}
body.personal-area.page-relay-dashboard .relay-home .relay-command{grid-area:command;margin:0;font-size:11px;min-width:0}
body.personal-area.page-relay-dashboard .relay-home .relay-command-chip{font-size:10px;line-height:1.5;white-space:normal;border-radius:7px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-command:not([hidden])) .relay-entity-actions{position:static}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-command:not([hidden])) .relay-state{padding-right:0}
body.personal-area.page-relay-dashboard .relay-home .relay-reported-age{font-size:12px;margin-top:5px;color:#526976}
body.personal-area.page-relay-dashboard .relay-home .relay-entity.is-stale-reading{background:#fcfbf7}
body.personal-area.page-relay-dashboard .relay-home .relay-entity.is-stale-reading .relay-state{color:#657061}
.relay-workspace-aside{display:grid;gap:14px;padding-top:0;min-width:0}
.relay-side-card{border:1px solid #e6e9e7;border-radius:11px;padding:20px;background:#fff;box-shadow:0 3px 12px #17383b04}
.relay-side-card h2{font-size:14px;letter-spacing:-.015em;font-weight:650;color:#102839;margin:0 0 13px;display:flex;align-items:center;gap:8px}
.relay-side-card h2 svg{width:18px;height:18px}
.relay-side-card p{font-size:14px;line-height:1.65;color:#617387;margin:11px 0}
.relay-side-card a{font-size:14px;color:#0871e9;text-decoration:none;line-height:1.5}
.relay-side-card a:hover{text-decoration:underline}
.relay-side-card .relay-plan-used{color:#34485c;font-size:12px;margin:0 0 8px}
.relay-plan-card meter{display:block;width:100%;height:12px;appearance:none;border-radius:20px;background:#e9edf0;overflow:hidden;border:0}
.relay-plan-card meter::-webkit-meter-bar{height:10px;border:0;background:#e9edf0;border-radius:20px}
.relay-plan-card meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#3b9c7d,#258666);border-radius:20px}
.relay-plan-card meter::-moz-meter-bar{background:#278b6b;border-radius:20px}
.relay-quick-actions{padding:20px 18px 13px}
.relay-quick-actions>a{display:flex;align-items:center;gap:11px;padding:10px 0;min-width:0;text-decoration:none}
.relay-quick-actions>a>span:nth-child(2){flex:1;min-width:0}
.relay-quick-actions strong{display:block;color:#1c3345;font-size:14px;font-weight:550;line-height:1.45}
.relay-quick-actions small{display:block;font-size:12px;line-height:1.5;color:#63778b;margin-top:3px}
.relay-shortcut-icon{width:32px;height:34px;display:grid;place-items:center;flex-shrink:0;background:#eaf4ef;border-radius:8px;color:#167859}
.relay-shortcut-icon svg{width:20px;height:20px}
.relay-quick-actions>a:nth-of-type(2) .relay-shortcut-icon{color:#247bea;background:#eaf2ff}
body.personal-area.page-relay-dashboard .relay-home .relay-dashboard-settings{margin-top:28px;padding-top:13px}
body.personal-area.page-relay-dashboard .site-footer{margin-top:32px;background:transparent}
/* Dense mode retains all controls and scales to hundreds of entities. */
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity{min-height:112px;padding:13px;gap:6px 10px;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:'icon identity state' 'actions actions actions' 'command command command';grid-template-rows:auto auto auto}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-device-symbol{width:32px;height:34px}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-state,body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity[data-domain=sensor] .relay-state.is-value{font-size:19px;align-self:center;padding:0 15px 0 0;grid-area:state}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity:has(.relay-toggle:not([hidden])) .relay-entity-actions{position:static;justify-self:end}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity[data-domain=script] .relay-entity-actions{margin-top:0}
/* Carry the same white cards, spacing and blue accents through plan selection. */
.page-plans .plans-page .container{max-width:1200px}.page-plans .plans-intro{padding-top:24px;padding-bottom:30px}
.page-plans .plans-intro h1{font-size:clamp(30px,3.4vw,46px);letter-spacing:-.045em;color:var(--concept-navy)}
.page-plans .plans-intro .lead{font-size:16px;max-width:650px;margin-inline:auto}
.page-plans .plans-grid{gap:15px}.page-plans .plans-grid .plan-card{border:1px solid #e1e7e3;border-radius:14px;box-shadow:0 5px 20px #17383b06}
.page-plans .plans-grid .plan-card:has(.plans-recommended){border-color:#74aeee}
.page-plans .plans-grid .button{border-radius:9px;font-size:13px}
@media(max-width:1100px){.relay-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:18px}body.personal-area.page-relay-dashboard .relay-home .relay-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.page-home .product-hero{grid-template-columns:1fr 1.1fr;gap:20px}.page-home .product-hero h1{font-size:39px}.page-home .product-hero .product-lead{font-size:17px}.page-home .product-trust-strip>span{padding-inline:15px;gap:10px}.page-home .product-trust-strip strong{font-size:11px}}
@media(max-width:800px){.relay-workspace{grid-template-columns:1fr}.relay-workspace-aside{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.relay-side-card{padding:16px}.relay-quick-actions small{display:none}.page-home .product-hero{grid-template-columns:1fr;padding-top:35px;gap:16px;min-height:0}.page-home .product-hero h1{font-size:43px;max-width:600px}.page-home .product-hero .product-lead{max-width:570px}.page-home .product-hero-preview{max-width:640px;width:100%;margin-inline:auto}.page-home .product-trust-strip{grid-template-columns:1fr 1fr;row-gap:22px}.page-home .product-trust-strip>span{padding-inline:18px}.page-home .product-trust-strip>span:nth-child(2){border:0}.page-home .product-trust-strip>span:nth-child(3){padding-left:0}}
@media(max-width:600px){.page-home .product-hero{padding-top:30px;padding-bottom:28px}.page-home .product-hero h1{font-size:36px;line-height:1.14;margin:12px 0 18px}.page-home .product-hero .product-lead{font-size:16px;line-height:1.65;margin-bottom:21px}.page-home .product-hero .product-actions{display:flex;align-items:center;gap:9px}.page-home .product-hero .button{width:100%;min-width:0;font-size:16px;min-height:52px;padding:12px 18px;gap:20px}.page-home .product-hero .product-actions>.text-button{font-size:11px;min-height:35px}.page-home .product-hero .product-alternative{margin-top:13px;font-size:11px}.product-real-preview .preview-devices{padding:24px 5px 23px 38px}.preview-laptop-screen{padding:9px 5px 6px;border-radius:10px 10px 4px 4px}.preview-laptop-screen::before{top:3px;width:2px;height:2px}.preview-laptop{padding-bottom:10px}.preview-laptop-base{height:12px}.preview-handset{padding:4px;border-radius:16px;bottom:14px;width:25%;left:1%}.preview-handset::before{top:3px;height:6px}.product-real-preview .preview-phone{border-radius:11px}.product-real-preview figcaption{margin-top:4px;font-size:9px}.page-home .product-trust-strip{padding:23px 0;gap:20px 0;margin-top:0;margin-bottom:18px}.page-home .product-trust-strip>span{gap:9px;padding-inline:12px}.page-home .product-trust-strip>span>svg{width:24px;height:24px}.page-home .product-trust-strip strong{font-size:10px}.page-home .product-trust-strip small{font-size:9px}body.personal-area.page-relay-dashboard .relay-home{padding-top:23px}body.personal-area.page-relay-dashboard .relay-home .relay-home-topbar{gap:9px;margin-bottom:24px}body.personal-area.page-relay-dashboard .relay-home .relay-home-topbar h1{font-size:27px}body.personal-area.page-relay-dashboard .relay-home .relay-live-summary{margin:0;flex-basis:auto;gap:4px;padding:5px 8px}body.personal-area.page-relay-dashboard .relay-home .relay-live-label strong{font-size:10px}body.personal-area.page-relay-dashboard .relay-home .relay-live-summary p{font-size:9px}body.personal-area.page-relay-dashboard .relay-home .dashboard-settings-link{min-height:36px;padding:8px}.relay-entities-heading h2{font-size:16px}.relay-entities-heading>span{font-size:10px}body.personal-area.page-relay-dashboard .relay-home .relay-groups{grid-template-columns:1fr;gap:12px}body.personal-area.page-relay-dashboard .relay-home .relay-entity{min-height:188px;grid-template-columns:30px minmax(0,1fr);padding:14px 11px 13px;gap:11px 8px;border-radius:11px}body.personal-area.page-relay-dashboard .relay-home .relay-device-symbol{width:30px;height:33px;border-radius:8px}body.personal-area.page-relay-dashboard .relay-home .relay-device-symbol svg{width:21px;height:21px}body.personal-area.page-relay-dashboard .relay-home .relay-entity-room{font-size:12px}body.personal-area.page-relay-dashboard .relay-home .relay-entity-name{font-size:14px}body.personal-area.page-relay-dashboard .relay-home .relay-state,body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=sensor] .relay-state.is-value{font-size:23px}body.personal-area.page-relay-dashboard .relay-home .relay-state.is-unavailable{font-size:12px}body.personal-area.page-relay-dashboard .relay-home .relay-entity-details>summary{top:11px;right:3px;min-width:20px}body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-toggle:not([hidden])) .relay-entity-actions{right:16px;top:12px;grid-area:auto;}body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=script] .relay-entity-actions{margin-top:16px}body.personal-area.page-relay-dashboard .relay-home .relay-action{font-size:10px;padding:6px 5px;min-height:34px}.relay-workspace-aside{grid-template-columns:1fr;gap:12px}.relay-side-card{padding:18px}.relay-quick-actions>a{padding:9px 0}.relay-quick-actions small{display:block}.relay-plan-card{display:grid;grid-template-columns:1fr auto;gap:5px 14px}.relay-plan-card h2{margin:0}.relay-plan-card .relay-plan-used{margin:0;text-align:right}.relay-plan-card meter{grid-column:1/-1;margin:7px 0}.relay-plan-card p{margin:0}.relay-plan-card a{justify-self:end;font-size:11px}.relay-connection-card{display:none}body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-groups{grid-template-columns:1fr}body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity{min-height:105px}body.personal-area.page-relay-dashboard .site-footer{margin-top:16px}.page-plans .plans-intro h1{font-size:32px}.page-plans .plans-intro .lead{font-size:14px}}
@media(max-width:359px){body.personal-area.page-relay-dashboard .relay-home .relay-groups{grid-template-columns:1fr}body.personal-area.page-relay-dashboard .relay-home .relay-entity{min-height:155px}.page-home .product-hero h1{font-size:32px}.page-home .product-trust-strip>span{align-items:flex-start}.page-home .product-trust-strip strong{font-size:9px}}


body.personal-area.page-relay-dashboard .relay-home .relay-live-summary{flex-direction:row;max-width:none}
body.personal-area.page-relay-dashboard .relay-home .relay-state:is(.is-on,.is-off){background:transparent;color:var(--concept-navy)}
body.personal-area.page-relay-dashboard .relay-home .is-stale-reading .relay-state.is-off{background:transparent;color:#657061}
body.personal-area.page-relay-dashboard .relay-home .relay-side-card a{ text-decoration:none }
body.personal-area.page-relay-dashboard .relay-home .relay-side-card a:hover{ text-decoration:underline }
body.personal-area.page-relay-dashboard .relay-home .relay-side-card strong{font-weight:600}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details>summary{min-width:24px}

/* Shared page geometry. Mobile uses one navigation menu and one readable tile per row. */
.mobile-account-links{display:none}
body .site-header .header-inner{min-height:80px;padding-block:0}
body.personal-area :is(.account-settings,.support-page,.relay-simple-setup){max-width:760px}
body.personal-area .account-settings form{max-width:none}
body.personal-area .account-settings .card{padding:24px;margin-bottom:24px}
body.personal-area :is(.account-settings,.support-page) h1{font-size:36px;line-height:44px}
body.personal-area .support-page textarea{min-height:160px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-toggle:not([hidden])) .relay-entity-identity{padding-right:50px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details>summary{top:auto;bottom:6px;right:4px;width:44px;height:44px;display:grid;place-items:center}
body.personal-area.page-relay-dashboard .relay-home .relay-entity-details[open]{padding-bottom:32px}
body.personal-area.page-relay-dashboard .relay-home .relay-live-label strong,body.personal-area.page-relay-dashboard .relay-home .relay-live-summary p{font-size:12px}
body.personal-area.page-relay-dashboard .relay-home .relay-search-field input{font-size:14px;min-height:44px}
body.personal-area.page-relay-dashboard .relay-home .relay-filter-menu>summary{font-size:13px;min-height:44px;margin:0}
body.personal-area.page-relay-dashboard .relay-home .relay-action{min-height:44px;font-size:14px}
.page-home .product-trust-strip strong{font-size:14px}.page-home .product-trust-strip small{font-size:12px}
@media(max-width:900px){
body .site-header,body.signed-in .site-header{min-height:64px}
body .site-header .header-inner,body.personal-area.page-relay-dashboard .site-header .header-inner{min-height:64px;display:flex;flex-wrap:nowrap;padding-block:8px;gap:8px}
body.signed-in .header-inner>.account-navigation{display:flex;width:auto;flex:0 0 auto;margin-left:auto;gap:0}
body.signed-in .account-navigation>.site-nav{display:none}
.mobile-account-links{display:grid;border-bottom:1px solid var(--concept-border);padding-bottom:8px;margin-bottom:8px}
body.signed-in .account-menu>summary{min-height:44px;padding:8px}
body.signed-in .account-menu>summary>span:not(.support-unread-dot){display:none}
body.personal-area .relay-home .relay-workspace{grid-template-columns:1fr}
body.personal-area :is(.account-settings,.support-page) h1{font-size:30px;line-height:38px}
.page-home .product-hero .product-reassurance{font-size:14px}
}

.mobile-account-links>a{display:flex;align-items:center;min-height:44px;padding:10px 12px;color:var(--ink);text-decoration:none}
body.personal-area .account-settings>.page-heading{padding-top:0;padding-bottom:0;margin-bottom:32px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:has(.relay-toggle:not([hidden])) .relay-entity-details>summary{bottom:4px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=script] .relay-entity-actions{padding-right:34px}

.faq-search{max-width:640px;margin:24px 0}.faq-search label{display:block;font-weight:600;margin-bottom:8px}.faq-search input{width:100%}.faq-search p{min-height:24px;font-size:14px}
body.page-dashboard .connection-overview.has-summary{grid-template-columns:minmax(0,1fr) 328px;gap:16px}
body.page-dashboard .review-home-card:only-child{max-width:none}
body.personal-area.page-dashboard .review-home-card{padding:20px;border-radius:12px}
.page-plans .plans-page .plans-card{padding:20px;border-radius:12px}
.page-plans .plans-page .plans-card-top{min-height:135px}
.page-plans .plans-page .plans-price-block{min-height:102px;padding-bottom:12px}
.page-plans .plans-page .plans-features{margin:16px 0}
.page-plans .plans-page .plans-features li{line-height:1.5;margin-bottom:8px}
.page-plans .plans-page .plans-requirement{min-height:82px;margin-bottom:12px}
.page-plans .plans-page .plans-card-action{padding-top:12px}
@media(max-width:900px){body.page-dashboard .connection-overview.has-summary{grid-template-columns:1fr}}

body.personal-area.page-relay-dashboard .relay-home .relay-toggle,body.personal-area.page-relay-dashboard .relay-home .relay-toggle[aria-checked=true]{background:transparent;border-radius:0}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle::before{content:"";position:absolute;inset:9px 0;border-radius:13px;background:#e8efea;z-index:-1}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle[aria-checked=true]::before{background:var(--concept-blue)}
body.personal-area.page-relay-dashboard .relay-home .relay-toggle-thumb{border-radius:50%}

/* Product media is framed with breathing room rather than cropped into a device. */
.page-home .product-hero-preview{padding:20px 0 20px 8px}
.page-home .product-real-preview .preview-devices{padding:24px 14px 38px 48px;background:linear-gradient(145deg,#edf3ed,#eef2fa);border:1px solid #e0e7e2;border-radius:24px}
.page-home .preview-laptop{transform:none;padding:0}.page-home .preview-laptop-base{display:none}
.page-home .preview-laptop-screen{padding:26px 16px 16px;border:1px solid #dae2dd;border-radius:14px;background:#fff;box-shadow:0 12px 32px #17383b14}
.page-home .preview-laptop-screen:before{top:10px;left:16px;width:5px;height:5px;background:#bac8c0;box-shadow:9px 0 #bac8c0,18px 0 #bac8c0}
.page-home .product-real-preview .preview-desktop{aspect-ratio:auto;object-fit:contain;border-radius:6px}
.page-home .preview-handset{left:14px;bottom:14px;width:27%;transform:none;border-radius:20px;padding:5px;background:#263d43;box-shadow:0 8px 20px #17383b24}
.page-home .product-real-preview figcaption{font-size:12px;margin:14px 12px 0}
.relay-product-demo{max-width:1000px;padding:clamp(20px,4vw,40px);margin:48px auto 64px;border:1px solid var(--line);border-radius:24px;background:#fff;box-sizing:border-box}
.relay-product-demo>p{max-width:740px;font-size:15px;line-height:1.65}.relay-product-demo h2{margin-top:0}
.relay-demo-frame{padding:clamp(10px,2vw,20px);margin:24px 0 18px;background:#eef2ef;border:1px solid #e1e7e3;border-radius:18px}
.relay-product-demo .relay-demo-frame video{margin:0;border-radius:10px;border:1px solid #d9e1dc;aspect-ratio:3/2;object-fit:contain;background:#f7f8f5}
body.page-login .review-auth{max-width:440px;padding-top:40px;padding-bottom:48px}
body.page-login .review-auth .auth-card{padding:28px;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 36px #17383b08}
body.page-login .review-auth h1{font-size:28px;line-height:1.2;margin-bottom:8px}
body.page-login .review-auth #login-instructions{font-size:14px;line-height:1.5;margin:0 0 24px;color:var(--muted)}
body.page-login .review-auth .field{margin:16px 0}body.page-login .review-auth .field label{font-size:14px;margin-bottom:6px}
body.page-login .review-auth .field input{min-height:46px;height:46px;padding:10px 12px;font-size:16px;border-radius:9px}
body.page-login .review-auth .button-full{min-height:46px;font-size:15px;border-radius:9px}
body.page-login .review-auth .form-result:empty{display:none}
body.page-login .review-auth .login-recovery{margin:12px 0 0;font-size:14px;text-align:center}
body.page-login .review-auth .auth-switch{margin:20px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:14px;line-height:1.5}
body.page-login .review-auth .account-note{font-size:12px;line-height:1.5;color:var(--muted);margin:14px 0 0}
.relay-shared-login{max-width:440px;margin:32px auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:18px}.relay-shared-login h1{font-size:28px;line-height:1.2}.relay-shared-login>p{font-size:14px}.relay-shared-login .field input{min-height:46px;font-size:16px}.relay-shared-login .button{width:100%;min-height:46px}
.admin-delete-customer{border-color:#eccdcd}.admin-delete-customer [data-admin-action]{color:#a92e39;border-color:#d9b9bd}
@media(max-width:600px){.page-home .product-hero-preview{padding:12px 0}.page-home .product-real-preview .preview-devices{padding:18px 12px 32px 32px;border-radius:18px}.page-home .preview-laptop-screen{padding:22px 10px 10px}.page-home .preview-handset{left:10px;width:28%}.relay-product-demo{padding:20px;margin-block:32px;border-radius:18px}.relay-demo-frame{margin-block:18px}.relay-product-demo h2{font-size:26px}body.page-login .review-auth{padding-top:24px;padding-bottom:32px}body.page-login .review-auth .auth-card{padding:24px}.relay-shared-login{padding:24px}}

/* Sensor and vacuum cards share the compact dashboard grid. History opens separately. */
body.personal-area.page-relay-dashboard .relay-home .relay-entity:is([data-domain=sensor],[data-domain=vacuum]){grid-template-rows:auto 1fr auto auto;gap:16px 10px;padding:20px;min-height:240px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:is([data-domain=sensor],[data-domain=vacuum]) .relay-entity-identity{padding-right:24px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:is([data-domain=sensor],[data-domain=vacuum]) .relay-entity-details>summary{top:12px;bottom:auto;right:8px;min-width:28px;min-height:32px;text-align:center}
body.personal-area.page-relay-dashboard .relay-home .relay-entity:is([data-domain=sensor],[data-domain=vacuum]) .relay-entity-details>summary::after{content:'⋯';font-size:20px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=sensor] .relay-state.is-value{font-size:40px;line-height:1.15;font-weight:600;letter-spacing:-.045em;text-align:left;align-self:center;padding:4px 0}
.relay-reading-unit{font-size:.48em;font-weight:450;letter-spacing:0;color:#667b83}
body.personal-area.page-relay-dashboard .relay-home .relay-history-trigger{grid-area:actions;justify-self:stretch;display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:10px 0 0;border:0;border-top:1px solid #e6edeb;background:none;border-radius:0;font-size:13px;font-weight:600;color:#176c59;box-shadow:none}
.relay-history-trigger::after{content:'↗';font-size:18px;font-weight:400}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-device-symbol{background:#eef0fc;color:#6354b4}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-state{font-size:19px;letter-spacing:-.02em;align-self:center;padding:0}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-entity-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;padding:0;background:none}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-action{min-height:44px;font-size:13px;line-height:1.3;padding:10px;border:1px solid #dce5e1;background:#fff;color:#345650;font-weight:550;box-shadow:none;border-radius:9px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-action[data-relay-service=start]{grid-column:1/-1;background:#176b55;border-color:#176b55;color:#fff}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-action:not(:disabled):hover{filter:brightness(.95)}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-action:disabled{opacity:.5;cursor:default}
.relay-entity .relay-controls-hint{grid-column:1/-1;font-size:12px;line-height:1.6;color:#5b6e7e;margin:0}
body.personal-area .relay-history-dialog{box-sizing:border-box;width:min(680px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:28px;border:1px solid #dce7e2;border-radius:20px;background:#fff;color:#173b39;box-shadow:0 24px 100px #102f3940;overflow:auto;text-align:left}
.relay-history-dialog::backdrop{background:#102c3c66;backdrop-filter:blur(4px)}
.relay-history-header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}
.relay-history-room{font-size:12px;color:#607b80}
body.personal-area .relay-history-header h2{font-size:21px;line-height:1.4;margin:4px 0 0;letter-spacing:-.025em;overflow-wrap:anywhere}
body.personal-area .relay-history-close{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e1e9e5;border-radius:50%;background:#f6f9f7;color:#3c5c58;font-size:25px;line-height:1;font-weight:400}
.relay-history-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#516d70;margin-bottom:20px}
body.personal-area .relay-history-range{width:auto;min-height:44px;max-width:60%;padding:8px 12px;margin:0;border:1px solid #dce6e1;border-radius:9px;background:#fff;font:inherit;font-size:13px;color:#244f49}
.relay-history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#f3f8f5;padding:16px;border-radius:12px;margin-bottom:18px}
.relay-history-stats span{display:block;color:#627b78;font-size:11px;margin-bottom:5px}
.relay-history-stats strong{font-size:21px;font-weight:600;letter-spacing:-.03em;overflow-wrap:anywhere}
.relay-history-body svg{display:block;width:100%;height:auto;color:#16846a;fill:currentColor;overflow:visible}
.relay-history-body svg text{fill:#718783;font-size:11px;font-family:inherit}
.relay-history-body .relay-chart-grid{stroke:#e2ebe7;stroke-width:1;stroke-dasharray:3 5}
.relay-history-axis{display:flex;justify-content:space-between;gap:14px;margin:-12px 0 22px 9%;font-size:11px;line-height:1.5;color:#647b7c}
.relay-history-info,.relay-history-readings{font-size:12px;border-top:1px solid #e5ece8;margin:0;padding:0}
.relay-history-body details>summary{cursor:pointer;min-height:44px;padding:12px 0;color:#526f6b;line-height:20px}
body.personal-area .relay-history-info p,.relay-history-empty{font-size:13px;line-height:1.7;color:#5c7473;margin:0 0 14px}
.relay-history-readings table{width:100%;font-size:12px;margin:6px 0}.relay-history-readings th,.relay-history-readings td{padding:8px;text-align:left}
.relay-history-readings[open]{max-height:260px;overflow:auto}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity:is([data-domain=sensor],[data-domain=vacuum]){grid-template-areas:'icon identity state' 'actions actions actions' 'command command command';grid-template-columns:38px minmax(0,1fr) auto;min-height:150px}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity[data-domain=sensor] .relay-state.is-value{font-size:28px}
@media(max-width:600px){body.personal-area .relay-history-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:20px;border-radius:16px}.relay-history-header{margin-bottom:20px}.relay-history-stats{gap:8px;padding:12px}.relay-history-stats strong{font-size:18px}body.personal-area.page-relay-dashboard .relay-home .relay-entity:is([data-domain=sensor],[data-domain=vacuum]){min-height:220px;padding:18px}.relay-history-axis{font-size:10px}.relay-history-toolbar{font-size:12px}}

body.relay-history-open{overflow:hidden}
.relay-control-icon{width:17px;height:17px;flex:none;display:block}
.relay-history-trigger-label{display:flex;align-items:center;gap:8px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=vacuum] .relay-action{display:flex;align-items:center;justify-content:center;gap:8px}

/* The recent trend is visible before opening the full history panel. */
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=sensor]{grid-template-areas:'icon identity' 'state state' 'trend trend' 'actions actions' 'command command';grid-template-rows:auto auto 1fr auto auto;gap:10px;min-height:284px}
.relay-trend{grid-area:trend;min-width:0;align-self:end;color:#16846a}
.relay-trend svg{display:block;width:100%;height:64px;fill:currentColor}
.relay-trend-line{stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.relay-trend-area{fill:#16846a;fill-opacity:.09;stroke:none}
.relay-trend-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-top:6px;color:#647c76;font-size:10px;line-height:1.5}
.relay-trend-empty{display:block;min-height:44px;padding:12px 0;color:#6a7e7b;font-size:12px;line-height:1.5}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=sensor] .relay-history-trigger{padding-top:8px;border-top:0}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-entity[data-domain=sensor]{grid-template-areas:'icon identity state' 'trend trend trend' 'actions actions actions' 'command command command';min-height:200px}
body.personal-area.page-relay-dashboard .relay-home.relay-compact .relay-trend svg{height:48px}
.relay-unavailable-actions{grid-area:actions;display:flex;gap:8px;min-width:0}
body.personal-area.page-relay-dashboard .relay-home .relay-disabled-action{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;min-height:44px;border:1px solid #e1e8e4;border-radius:9px;background:#f5f7f6;color:#81928d;font-size:13px;padding:8px;cursor:default}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=cover] .relay-action{display:flex;align-items:center;justify-content:center;gap:8px}
.relay-controls-hint a{display:block;width:fit-content;min-height:36px;padding:8px 0 0;font-weight:600;color:#176b55}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=cover] .relay-entity-details>summary{top:12px;bottom:auto;right:8px;min-width:28px;text-align:center}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=cover] .relay-entity-details>summary::after{content:'⋯';font-size:20px}
body.personal-area.page-relay-dashboard .relay-home .relay-entity[data-domain=cover] .relay-entity-identity{padding-right:24px}

/* Lights and switches need a compact control row, not a full-height sensor tile. */
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]){grid-template-columns:36px minmax(0,1fr) 46px;grid-template-areas:'icon identity actions' '. state state' 'command command command';grid-template-rows:auto auto auto;min-height:0;padding:16px;gap:4px 10px;align-self:start;align-items:center}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-device-symbol{width:36px;height:36px;border-radius:10px;align-self:start}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-identity{padding-right:0}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-name{font-size:14px;line-height:1.4}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-state{grid-area:state;align-self:start;justify-self:start;text-align:left;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;padding:0;max-width:100%;color:#657b74;text-transform:none}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-state.is-on{color:#147455}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-actions{grid-area:actions;position:static;align-self:start;justify-self:end;margin:0;padding:0;background:none}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-details>summary{top:12px;left:12px;right:auto;bottom:auto;width:44px;height:44px;min-height:44px;padding:0;background:transparent;border-radius:10px;cursor:pointer}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-details>summary::after{content:none}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-details>summary:hover{background:#176b5509}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-entity-details[open]{padding:8px 0 0}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-command{margin-top:8px}
/* Stale readings keep the explicit On/Off actions and their full touch targets. */
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]):has(.relay-toggle[hidden]){grid-template-columns:36px minmax(0,1fr);grid-template-areas:'icon identity' '. state' 'actions actions' 'command command';gap:8px 10px}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]):has(.relay-toggle[hidden]) .relay-entity-actions{justify-self:stretch;gap:8px}
body.personal-area.page-relay-dashboard .relay-home:is(.relay-home,.relay-compact) .relay-entity:is([data-domain=light],[data-domain=switch]) .relay-action{min-height:44px;font-size:13px}

/* Use a readable product view on each screen, with space around the actual UI. */
.product-real-preview .preview-devices,.page-home .product-real-preview .preview-devices{padding:24px;background:linear-gradient(145deg,#eaf3ef,#eef0f8);border:1px solid #dfe8e3;border-radius:24px}
.relay-product-screen{display:block;padding:8px;background:white;border-radius:14px;box-shadow:0 16px 40px #17383b14;overflow:hidden}
.relay-product-screen img{display:block;width:100%;height:auto;border-radius:9px}
.product-real-preview figcaption{font-size:12px;line-height:1.5;text-align:center;margin:16px 12px 0;color:var(--muted)}
.relay-product-demo .relay-demo-frame video.relay-demo-mobile{display:none}
.relay-product-demo .relay-demo-frame .relay-demo-desktop{aspect-ratio:3/2}
.plans-network{margin:32px 0;padding:28px;background:#f2f6f4;border:1px solid var(--line);border-radius:20px}
.plans-network-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.plans-network h3{margin-top:0}.plans-network h4{font-size:17px;line-height:1.4;margin:8px 0 12px}.plans-network p{font-size:15px;line-height:1.7}
@media(max-width:700px){.plans-network-grid{grid-template-columns:1fr;gap:12px}.plans-network{padding:24px}}
@media(max-width:600px){
 .page-home .value-wrap,.page-relay .value-wrap{width:calc(100% - 48px);margin-left:auto;margin-right:auto}
 .page-home .product-hero-preview{padding:24px 0 12px}
 .product-real-preview .preview-devices,.page-home .product-real-preview .preview-devices{padding:20px;border-radius:22px}
 .relay-product-screen{padding:0;border-radius:14px}
 .product-real-preview figcaption,.page-home .product-real-preview figcaption{margin:16px 8px 0;font-size:12px}
 .relay-product-demo.value-wrap{padding:24px;margin-top:40px;margin-bottom:40px}
 .relay-demo-frame{padding:12px;margin:24px 0 20px;border-radius:18px}
 .relay-product-demo .relay-demo-frame video.relay-demo-desktop{display:none}
 .relay-product-demo .relay-demo-frame video.relay-demo-mobile{display:block;width:100%;height:auto;aspect-ratio:390/740;border-radius:10px}
 .page-home .product-trust-strip{gap:24px;padding:28px 0}
}

/* Connection evidence: a calm summary and two readable timestamps. */
.personal-area .review-home-card .connection-health{margin:18px 0 22px;padding:18px 20px;background:#fff8f6;border:1px solid #efdcd7;border-radius:14px;color:#694039}
.connection-health-heading{display:flex;align-items:center;gap:9px;font-size:15px;line-height:1.4}
.connection-health-dot{width:8px;height:8px;border-radius:50%;background:#b44435;flex:none}
.personal-area .review-home-card .connection-health .review-home-status-message{padding:0;margin:8px 0 16px;background:none;border:0;border-radius:0;font-size:14px;line-height:1.5;color:#694039}
.connection-health-times{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:14px 0;border-top:1px solid #ecdcd6;border-bottom:1px solid #ecdcd6}
.connection-health-times dt{font-size:12px;line-height:1.5;margin-bottom:5px;color:#79594f}
.connection-health-times dd{display:grid;gap:4px;margin:0;font-size:14px;line-height:1.5;color:#51362f}
.connection-health-times time{font-size:12px;font-weight:400;line-height:1.5}.connection-health-unknown{font-size:13px}
.personal-area .review-home-card .connection-health-latest{font-size:12px;line-height:1.5;margin:12px 0 0;color:#79594f}
.personal-area .review-home-card .connection-health-note{font-size:11px;line-height:1.5;margin:5px 0 0;color:#79594f}
.personal-area .review-home-card .connection-health.is-unconfirmed{background:#f7f8fa;border-color:#dce2e6;color:#425768}.connection-health.is-unconfirmed .connection-health-dot{background:#718191}
@media(max-width:600px){.personal-area .review-home-card .connection-health{padding:16px}.personal-area .review-home-card .review-detail-list{grid-template-columns:1fr}.personal-area .review-home-card .review-detail-list dd{overflow-wrap:anywhere}}

.personal-area .review-free-start.connection-add-options{display:block;padding:28px;border:1px solid var(--line);border-radius:18px;background:#fff;scroll-margin-top:100px}
.connection-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.connection-add-grid article{padding:22px;border:1px solid var(--line);border-radius:14px;background:#f8faf9;min-width:0}.connection-add-grid h3{margin:0 0 10px;font-size:18px}.connection-add-grid p{font-size:14px;line-height:1.6;margin:0 0 18px}.connection-add-grid .button{width:100%;justify-content:center}.connection-add-grid .text-button{display:inline-flex;font-size:13px;margin-top:12px}.personal-area .connection-add-note{font-size:13px;line-height:1.6;margin:20px 0 0;color:var(--muted)}.plans-purchase-context{padding:16px 20px;border-radius:12px;background:#edf5f1;line-height:1.6}.plans-new-note{font-size:13px;line-height:1.5;color:var(--muted)}
@media(max-width:600px){.personal-area .review-free-start.connection-add-options{padding:22px}.connection-add-grid{grid-template-columns:1fr}.connection-add-grid article{padding:20px}}
