body:has(#home-choice:not(.hidden)){padding:0;background:#f5efff}
#home-choice{min-height:100vh;background:#f5efff;color:#21162f;overflow:hidden}
#home-choice header{height:88px;padding:0 max(5%,calc((100vw - 1440px)/2));background:#fff;border-radius:0 0 22px 22px}
#home-choice .logo{display:flex;align-items:center;font-size:28px;letter-spacing:-.04em;color:#501db2}
#home-choice .home-menu{font-size:15px;color:#211a2c;white-space:nowrap}
#home-choice .home-enter{border:0;border-radius:15px;background:linear-gradient(130deg,#7131db,#4e19b6);padding:14px 30px;color:white;font:inherit;font-weight:700;cursor:pointer}
#home-choice .hero{width:100%;max-width:1520px;min-height:612px;margin:auto;padding:58px 5% 45px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);grid-template-rows:auto auto auto 1fr;column-gap:34px;align-items:center;background:linear-gradient(110deg,#fff 0%,#fcfaff 48%,#f2eaff 100%)}
#home-choice .hero>div:first-child{grid-column:1;grid-row:1;align-self:end;font-size:13px!important;letter-spacing:.2em!important;color:#7051ac!important;margin-bottom:15px}
#home-choice h1{grid-column:1;grid-row:2;max-width:620px;font-size:clamp(43px,5vw,70px);line-height:1.04;letter-spacing:-.045em;margin:0 0 18px;color:#1b1230}
#home-choice .lead{grid-column:1;grid-row:3;max-width:530px;margin:0 0 28px;color:#51495e;font-size:18px;line-height:1.55}
#home-choice .choice-grid{grid-column:1;grid-row:4;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0;align-self:start}
#home-choice .choice{width:100%;min-height:148px;padding:19px 17px;border:1px solid #eee8f6;border-radius:20px;background:#fff;color:#321952;box-shadow:0 12px 32px #30164b12;text-align:left;font:inherit;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
#home-choice .choice:hover{transform:translateY(-3px);box-shadow:0 18px 36px #30164b20}
#home-choice .choice.active{background:linear-gradient(135deg,#984cf2,#6425d3 58%,#4c19bb);border-color:transparent;color:#fff}
#home-choice .choice h2{font-size:19px;line-height:1.2;margin:0 0 10px}
#home-choice .choice p{margin:0;font-size:13px;line-height:1.45;opacity:.82}
#home-choice .visual{grid-column:2;grid-row:1/5;position:relative;min-width:0;width:100%;height:470px;align-self:center}
#home-choice .scene{position:absolute;inset:8px 7% 8px 2%;border-radius:25px;background:linear-gradient(90deg,#ddd4e4 0 13%,#b5aabd 13% 16%,#38313e 16% 70%,#b6a8bc 70% 73%,#e1d9e8 73%);box-shadow:0 26px 64px #28143b38;overflow:hidden}
#home-choice .scene-door{position:absolute;inset:0 27% 0 18%;background:linear-gradient(90deg,#292530,#544b5d 10%,#302a36 18%,#25212d 85%,#504659);box-shadow:inset 8px 0 15px #0004}
#home-choice .scene-glass{position:absolute;top:7%;right:4%;width:24%;height:74%;background:linear-gradient(110deg,#fff8d8,#ffe1a3 30%,#fff4d1 55%,#332b39 58%);filter:blur(1px);opacity:.88;box-shadow:0 0 40px #fff3ca}
#home-choice .scene-light{position:absolute;right:0;top:0;width:36%;height:100%;background:linear-gradient(90deg,transparent,#f3dfad55)}
#home-choice .scene-plant{position:absolute;bottom:5%;left:5%;font-size:75px;color:#4f7058;opacity:.75}
#home-choice .door-panel{position:absolute;left:54%;top:12%;width:23%;height:76%;border:2px solid #777783;border-radius:18px;background:linear-gradient(115deg,#4d4e5c,#1f2029 42%,#3c3d49);box-shadow:inset 2px 2px 4px #ffffff55,0 12px 26px #0006;color:#efedf3;display:flex;align-items:center;flex-direction:column;padding:16px 8px}
#home-choice .camera-lens{width:37px;height:37px;border:5px solid #151620;background:radial-gradient(circle at 35% 35%,#97a7bd,#1b2637 46%,#06070a 72%);border-radius:50%;box-shadow:0 0 0 2px #858693;margin-bottom:11px}
#home-choice .device-logo{text-align:center;font-size:19px;line-height:1;color:#efedf5}
#home-choice .device-logo small{display:block;font-size:8px;font-weight:800;letter-spacing:1px;margin-top:3px}
#home-choice .keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 13px;margin:13px 0;font-size:9px}
#home-choice .call-button{height:9px;width:56%;border-radius:10px;background:#14151b;border:1px solid #aaa}
#home-choice .phone-mock{position:absolute;right:0;bottom:-7px;width:190px;height:375px;padding:7px;border:2px solid #6f6e78;border-radius:36px;background:#15141a;box-shadow:0 22px 40px #15121d5c;z-index:2;transform:rotate(1.5deg)}
#home-choice .phone-screen{height:100%;padding:11px 11px 9px;border-radius:28px;background:#fff;overflow:hidden;color:#28193c}
#home-choice .phone-status{display:flex;justify-content:space-between;font-size:8px;font-weight:750;padding:0 5px 8px}
#home-choice .phone-brand{display:flex;justify-content:space-between;align-items:center;color:#4f1eaf;font-weight:850;font-size:14px}
#home-choice .phone-brand span{font-size:16px}
#home-choice .phone-photo{height:125px;margin:10px -11px 8px;background:linear-gradient(90deg,#d5cbdc 0 12%,#39333e 12% 78%,#bdafc3 78%),linear-gradient(#fff,#ddd);position:relative;overflow:hidden}
#home-choice .mini-panel{position:absolute;right:22%;top:10px;width:37px;height:105px;border-radius:8px;background:linear-gradient(120deg,#42434e,#22232d);border:1px solid #888;padding:8px 4px;color:white;text-align:center}
#home-choice .mini-panel i{display:block;width:12px;height:12px;margin:auto auto 6px;border-radius:50%;background:#152137;border:2px solid #888}
#home-choice .mini-panel b{font-size:11px;display:block}
#home-choice .mini-panel small{font-size:5px;display:block}
#home-choice .mini-panel span{font-size:5px;line-height:2}
#home-choice .phone-screen h3{margin:7px 0 4px;font-size:12px;line-height:1.1}
#home-choice .phone-screen p{margin:0 0 7px;font-size:8px;color:#6b6474;line-height:1.3}
#home-choice .phone-action{display:flex;align-items:center;justify-content:space-between;padding:9px 8px;margin-top:6px;border-radius:10px;background:#672ccf;color:white;font-size:8px}
#home-choice .phone-action span{font-size:14px}
#home-choice .phone-action.pale{background:#f4effb;color:#4e229f}
#home-choice .phone-nav{margin-top:9px;padding-top:7px;border-top:1px solid #eee8f4;text-align:center;color:#716a7d;font-size:6px}
#home-choice .features{max-width:1440px;margin:0 auto 24px;padding:26px 5%;border-radius:24px;background:#fff;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;color:#282033;font-size:15px}
#home-choice .features span{display:flex;align-items:center;gap:12px}
#home-choice .features span:before{content:'◇';width:54px;height:54px;border-radius:16px;background:#f0e9ff;color:#5722ba;display:grid;place-items:center;font-size:25px}
@media(max-width:1050px){
 #home-choice .hero{grid-template-columns:minmax(0,1fr) minmax(300px,.78fr);column-gap:20px;padding-left:4%;padding-right:4%}
 #home-choice h1{font-size:clamp(40px,5.5vw,58px)}
 #home-choice .choice-grid{grid-template-columns:1fr}
 #home-choice .choice{min-height:112px}
 #home-choice .visual{height:400px}
 #home-choice .phone-mock{width:160px;height:320px}
 #home-choice .phone-photo{height:96px}
}
@media(max-width:680px){
 #home-choice{min-height:100svh}
 #home-choice header{height:62px;padding:10px 18px;border-radius:0}
 #home-choice .logo{font-size:22px}
 #home-choice .home-menu,#home-choice .home-enter{display:none}
 #home-choice .hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:30px 18px 18px;gap:0;background:linear-gradient(150deg,#fff 4%,#f7f1ff 100%)}
 #home-choice .hero>div:first-child{font-size:10px!important;letter-spacing:.15em!important;margin:0 0 13px}
 #home-choice h1{font-size:clamp(34px,9vw,44px);line-height:1.05;letter-spacing:-.04em;margin:0 0 13px}
 #home-choice .lead{font-size:15px;line-height:1.48;margin:0 0 18px}
 #home-choice .choice-grid{display:grid;grid-template-columns:1fr;gap:10px}
 #home-choice .choice{min-height:93px;padding:13px 14px;border-radius:17px;display:flex;align-items:center;gap:10px}
 #home-choice .choice h2{font-size:16px;margin:0 0 4px}
 #home-choice .choice p{font-size:11px}
 #home-choice .choice:after{content:'→';margin-left:auto;width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:#eee5ff;color:#6332c3;font-size:18px}
 #home-choice .choice.active:after{background:#ffffff25;color:white}
 #home-choice .visual{height:300px;width:calc(100% + 36px);margin:17px -18px 0;overflow:hidden}
 #home-choice .scene{inset:3px 8% 4px 5%;border-radius:18px}
 #home-choice .door-panel{left:49%;width:22%;top:10%;height:79%;border-radius:12px;padding:10px 5px}
 #home-choice .camera-lens{width:27px;height:27px;margin-bottom:8px}
 #home-choice .keypad{gap:6px 9px;margin:9px 0;font-size:7px}
 #home-choice .phone-mock{width:135px;height:267px;right:3%;bottom:-5px;border-radius:27px;padding:5px}
 #home-choice .phone-screen{padding:9px 8px 7px;border-radius:21px}
 #home-choice .phone-status{font-size:6px;padding-bottom:5px}
 #home-choice .phone-brand{font-size:10px}
 #home-choice .phone-photo{height:83px;margin:7px -8px 5px}
 #home-choice .mini-panel{transform:scale(.76);transform-origin:top right;right:23%;top:7px}
 #home-choice .phone-screen h3{font-size:9px}
 #home-choice .phone-screen p{font-size:6px}
 #home-choice .phone-action{padding:6px;margin-top:4px;font-size:6px}
 #home-choice .phone-nav{margin-top:6px;padding-top:4px;font-size:5px}
 #home-choice .features{margin:0;padding:16px 18px 20px;border-radius:0;grid-template-columns:1fr 1fr;gap:10px;font-size:11px}
 #home-choice .features span{gap:8px}
 #home-choice .features span:before{width:38px;height:38px;border-radius:12px;font-size:18px}
}
/* Final polish: remove the legacy smart-lock photo layer and keep the new artwork self-contained. */
#home-choice .hero:before,#home-choice .hero:after{display:none!important}
#home-choice h1{text-align:left}
#home-choice .choice h2{font-size:clamp(16px,1.35vw,19px);letter-spacing:-.025em}
#home-choice .choice{position:relative}
#home-choice .choice h2:after{content:'→';display:inline-block;margin-left:8px;font-size:1.05em}
@media(max-width:1050px){#home-choice .choice h2{font-size:17px}}
@media(max-width:680px){#home-choice h1{text-align:left}#home-choice .choice h2{font-size:16px}}
#home-choice .hero{background:#f8f3ff!important;background-image:none!important}
#home-choice .hero:before,#home-choice .hero:after{content:none!important;display:none!important;background-image:none!important}
#home-choice .features span:nth-child(1):before{content:'✓'}
#home-choice .features span:nth-child(2):before{content:'▯'}
#home-choice .features span:nth-child(3):before{content:'♧'}
#home-choice .features span:nth-child(4):before{content:'⚙'}
#home-choice .features span:before{font-weight:700}

/* MOBILE MODERN REGISTRATION 20261011 */
@media(max-width:680px){
#home-choice{background:#f8f6fc!important;min-height:100svh}
#home-choice header{height:auto;min-height:66px;padding:10px 20px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid #eeeaf3}
#home-choice .logo{font-size:22px;letter-spacing:-.035em;color:#4924ad}
#home-choice .hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(185px,55vw) auto;gap:0;align-items:stretch;min-height:0;padding:27px 20px 19px;background:linear-gradient(155deg,#fff 0%,#f9f6ff 54%,#f1ebff 100%)!important;background-image:none!important}
#home-choice .hero>div:first-child{grid-column:1;grid-row:1;align-self:end;font-size:10px!important;letter-spacing:.15em!important;margin:0 0 9px;color:#6948c2!important}
#home-choice h1{grid-column:1;grid-row:2;text-align:left;font-size:clamp(31px,8vw,39px);line-height:1.08;letter-spacing:-.045em;margin:0 0 11px;max-width:350px;color:#211936}
#home-choice .lead{grid-column:1;grid-row:3;font-size:14px;line-height:1.45;margin:0 0 10px;max-width:340px;color:#716b7d}
#home-choice .visual{grid-column:1;grid-row:4;position:relative;width:calc(100% + 40px);height:clamp(185px,55vw,220px);min-width:0;margin:0 -20px 5px;overflow:hidden}
#home-choice .scene{inset:4px 11% 5px 7%;border-radius:21px;box-shadow:0 16px 38px #29153b25}
#home-choice .scene-door{inset:0 28% 0 18%}
#home-choice .door-panel{left:48%;top:10%;width:21%;height:78%;border-radius:13px;padding:9px 5px}
#home-choice .camera-lens{width:28px;height:28px;border-width:4px;margin-bottom:7px}
#home-choice .device-logo{font-size:14px}
#home-choice .device-logo small{font-size:6px}
#home-choice .keypad{gap:5px 8px;margin:8px 0;font-size:7px}
#home-choice .phone-mock{width:112px;height:224px;right:4%;bottom:-4px;border-radius:25px;padding:5px;transform:rotate(2deg)}
#home-choice .phone-screen{padding:8px 7px 6px;border-radius:19px}
#home-choice .phone-status{font-size:5px;padding-bottom:4px}
#home-choice .phone-brand{font-size:9px}
#home-choice .phone-brand span{font-size:12px}
#home-choice .phone-photo{height:65px;margin:6px -7px 5px}
#home-choice .mini-panel{transform:scale(.65);transform-origin:top right;right:22%;top:5px}
#home-choice .phone-screen h3{font-size:8px;margin:5px 0 3px}
#home-choice .phone-screen p{font-size:5px;line-height:1.25;margin:0 0 4px}
#home-choice .phone-action{padding:5px 6px;margin-top:3px;border-radius:7px;font-size:5px}
#home-choice .phone-nav{margin-top:4px;padding-top:3px;font-size:4px}
#home-choice .choice-grid{grid-column:1;grid-row:5;display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:9px 0 0}
#home-choice .choice{position:relative;display:grid;grid-template-columns:43px minmax(0,1fr) 30px;grid-template-rows:auto auto;column-gap:11px;align-items:center;min-height:78px;padding:11px 13px;border-radius:17px;text-align:left}
#home-choice .choice.active{background:linear-gradient(120deg,#7043df,#5428c2);box-shadow:0 10px 24px #532bc42b}
#home-choice .choice:not(.active){background:#fff;border-color:#ece7f2;box-shadow:0 8px 20px #30205a0d}
#home-choice .choice:before{content:"\2302";grid-column:1;grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#f0ebff;color:#5630c2;font-size:24px;font-weight:700}
#home-choice .choice.active:before{background:rgba(255,255,255,.17);color:#fff}
#home-choice .choice h2{grid-column:2;grid-row:1;font-size:15px;line-height:1.2;letter-spacing:-.02em;margin:0 0 3px;color:#241a39}
#home-choice .choice.active h2{color:#fff}
#home-choice .choice h2:after{content:none!important}
#home-choice .choice p{grid-column:2;grid-row:2;font-size:10px;line-height:1.3;margin:0;color:#80798b;opacity:1}
#home-choice .choice.active p{color:#ebe3ff}
#home-choice .choice:after{content:"\2192";grid-column:3;grid-row:1/3;margin:0;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f0ebff;color:#6240c3;font-size:18px}
#home-choice .choice.active:after{background:rgba(255,255,255,.19);color:white}
#home-choice .features{margin:0;padding:15px 18px max(18px,env(safe-area-inset-bottom));border-radius:0;background:#fff;border-top:1px solid #eeeaf3;grid-template-columns:1fr 1fr;gap:10px;font-size:10px}
#home-choice .features span{gap:8px;line-height:1.3}
#home-choice .features span:before{width:36px;height:36px;border-radius:12px;background:#f0eaff;color:#5627bf;font-size:17px;font-weight:750}
}
@media(max-width:680px) and (max-height:700px){
#home-choice .hero{padding-top:18px;padding-bottom:12px;grid-template-rows:auto auto auto minmax(155px,42vw) auto}
#home-choice h1{font-size:clamp(28px,7vw,34px);margin-bottom:7px}
#home-choice .lead{font-size:13px;margin-bottom:5px}
#home-choice .visual{height:clamp(155px,42vw,185px)}
#home-choice .choice-grid{gap:7px;margin-top:5px}
#home-choice .choice{min-height:68px;padding:8px 11px}
#home-choice .features{padding-top:10px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
}

/* One responsive Google control shared by both home entry paths. */
#existing-registration-flow{box-sizing:border-box;width:min(100%,620px);min-width:0;max-width:100%;}
#existing-registration-flow .card{box-sizing:border-box;min-width:0;max-width:100%;}
#existing-registration-flow .google-wrap{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;margin-inline:auto;padding-inline:6px;overflow:hidden;}
#existing-registration-flow .google-wrap iframe{display:block;flex:0 1 auto;max-width:100%!important;margin-inline:auto!important;}
@media(max-width:560px){#existing-registration-flow{padding-inline:0;}#existing-registration-flow .card{padding-inline:clamp(10px,5vw,20px);}}

@media(max-width:360px){body:not(.register-mode){padding-inline:8px}#existing-registration-flow .card{padding-inline:8px}}

/* Compact household-link step: only a name, one role, and Next. */
#member-link-card .field input,#member-link-card .field select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:0 12px;border:1px solid #ddd4ef;border-radius:12px;background:#fff;color:#241a39;font:inherit;font-size:15px;}
#member-link-card .field input:focus,#member-link-card .field select:focus{outline:2px solid #7b55df;outline-offset:1px;}
#member-link-card .field{margin:12px 0;}
#member-link-card .button{width:100%;}

/* Post-Google profile step */
#google-profile-form{display:flex;flex-direction:column;gap:10px}
#google-profile-card .field{margin:0}
#google-profile-card input[type="text"],#google-profile-card input[type="tel"],#google-profile-card input[type="file"]{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;padding:11px 13px;border:1px solid #e5def0;border-radius:12px;background:#fff;color:#211934;font:inherit}
#google-profile-card input[type="file"]{padding:8px}
#google-profile-card .button{width:100%;margin-top:10px}
@media(max-width:560px){#google-profile-card{padding:clamp(14px,2.2svh,20px);overflow:hidden}#google-profile-form{gap:8px}#google-profile-card input[type="text"],#google-profile-card input[type="tel"],#google-profile-card input[type="file"]{font-size:16px}}

/* Secure household invitation screens */
.access-link-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
#access-request-url{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:14px}
.access-request-person{display:flex;align-items:center;gap:14px;padding:14px;margin:10px 0 16px;border:1px solid #ece5f4;border-radius:16px;background:#faf8ff}
.access-request-person img{width:68px;height:68px;object-fit:cover;border-radius:50%;background:#eee7f9}
.access-request-person .muted{margin:3px 0;font-size:14px}
#home-access-claim-card .field{margin:8px 0}
@media(max-width:560px){.access-link-actions{grid-template-columns:1fr}#access-request-url{font-size:13px}.access-request-person{padding:11px;gap:11px}}
