/* HomeKind interface: a calm shared shell, with account-specific density. */
:root{--surface:#fff;--canvas:#f5f7f9;--line:#e0e6eb;--muted:#536477;--shadow:0 2px 8px #183b6305}
.layout{background:var(--canvas)}
.content{max-width:1240px;padding-top:28px;padding-bottom:calc(118px + env(safe-area-inset-bottom));margin:auto}
.app-header{background:#fff;border-bottom:1px solid var(--line);padding:0 max(24px,env(safe-area-inset-left))}
.app-header-inner{max-width:1192px;gap:24px;flex-wrap:nowrap;padding:14px 0}
.app-header .brand{padding:0;border:0;border-radius:0;background:transparent;min-height:44px;display:flex;align-items:center}
.app-header .brand img{width:140px;height:auto}
.app-header .household-picker{margin:0 0 0 auto;max-width:280px;min-width:0;flex:1;order:initial;gap:0}
.app-header .household-picker select{min-height:44px;min-width:0;max-width:100%;text-overflow:ellipsis;padding:10px 12px;background:#f8fafb;border:1px solid var(--line);font-size:14px;font-weight:600}
.account-shortcut{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 4px;border:0;background:transparent}
.account-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#eaf0f5;color:var(--navy);font-size:12px;letter-spacing:.3px}
.account-name{font-size:13px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.demo-bar{background:#ecf1f5;color:var(--muted);border-bottom:1px solid var(--line);font-size:11px;gap:12px;padding:6px max(24px,env(safe-area-inset-left));justify-content:center;flex-wrap:nowrap}
.demo-bar>span{max-width:none;flex-basis:auto;white-space:nowrap}.demo-bar b{font-weight:500}.demo-bar select{min-height:34px;max-width:185px;font-size:11px;padding:6px 9px;background:transparent;border-color:#c6d2de;border-radius:7px}.demo-bar .link{font-size:11px;min-height:34px;padding:4px 8px;margin:0}
.card{background:var(--surface);box-shadow:var(--shadow);border-radius:16px;border-color:var(--line)}
.page-heading{margin-bottom:22px;align-items:center;gap:14px}.page-heading p{color:var(--muted);margin:6px 0 0}.page-heading h1{font-weight:800;letter-spacing:-.5px}
.home-heading{margin-bottom:19px;align-items:center}.home-heading p{font-size:13px;margin-top:5px}.home-heading .link{font-size:13px;min-height:44px;border:1px solid var(--line);border-radius:10px;text-decoration:none;padding:9px 13px;background:white;white-space:nowrap}
.home-glance{gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:22px;box-shadow:var(--shadow);overflow:hidden}
.home-glance button{border:0;border-radius:0;background:transparent;padding:16px 19px;gap:12px}.home-glance button+button{border-left:1px solid var(--line)}.home-glance button:hover{background:#f5f8fa}.home-glance b{font-size:14px;font-weight:600}.home-glance small{font-size:12px;margin-top:3px}.home-glance button:focus-visible{outline-offset:-4px}
.home-dashboard{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(275px,.85fr);gap:22px;align-items:start}.home-map-panel,.home-context{min-width:0}.home-context{display:grid;gap:18px;align-content:start}
.home-model{padding:21px;margin:0}.home-model .card-head h2{font-size:20px}.home-map-views{padding:3px;border-radius:10px;background:#f0f4f7}.home-map-views button{min-height:40px;padding:8px 13px;font-size:12px}.home-map-controls{gap:12px;margin:17px 0 10px}.home-map-controls label{min-width:110px;font-size:12px;max-width:240px}.home-map-controls select{font-size:16px;min-height:44px;padding:8px 11px;border-color:var(--line)}.home-map-legend{gap:13px;font-size:11px;padding:9px 0;flex-basis:100%;margin-left:0}
.home-map-surface{border-color:#e7edea;background:#f3f7f5;border-radius:12px}.home-floor-plan{height:340px;padding:22px}.home-model-canvas{height:340px}.home-map-room polygon{fill:#e4ece8}.home-map-room.presence polygon,.home-map-room.motion polygon{fill:#d3e7dd}.home-map-room.selected polygon{stroke:#294f69;stroke-width:1.5px}.home-map-room.alert polygon{fill:#f8e1d9}
.home-room-status{padding:15px 0;min-height:74px;margin-top:0;gap:12px}.home-room-status b{font-size:15px;font-weight:600}.home-room-status>span>span{font-size:13px}.home-room-status small{font-size:12px}.home-room-status .room-status-arrow{font-size:23px}.home-map-caption{padding-top:6px}.home-map-caption small,.home-map-caption .link{font-size:11px;max-width:none}
.home-organiser{padding:20px;margin:0}.home-organiser .card-head{align-items:center;gap:8px}.home-organiser h2{font-size:20px}.home-organiser .card-head button{border:0;padding:6px 0;font-size:12px;min-height:44px;text-decoration:underline;background:transparent}.home-upcoming-item{gap:10px;padding:15px 0;min-height:64px}.home-upcoming-item:first-of-type{margin-top:10px}.home-upcoming-item b{font-size:14px;line-height:1.5;font-weight:600}.home-upcoming-item small{font-size:12px}.home-upcoming-item .pill{font-size:10px;padding:4px 8px;background:#f0f4f7}.home-organiser>.muted{font-size:13px;margin-bottom:0}
.home-attention{background:#fff;border:1px solid #edc9bd;border-radius:16px;padding:16px 18px;box-shadow:var(--shadow)}.attention-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.attention-heading .eyebrow{color:#a94a35;font-size:10px;letter-spacing:.8px}.attention-heading small{font-size:11px}.home-attention button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 0 0;border:0;background:transparent;border-radius:0;min-height:58px}.attention-symbol{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:35px;height:35px;border-radius:10px;background:#fbe8e0;color:#a94a35}.attention-symbol .icon{width:18px;height:18px}.home-attention button>span:nth-child(2){flex:1;min-width:0}.home-attention b{display:block;font-size:14px;overflow-wrap:anywhere}.home-attention small{display:block;font-size:12px;margin-top:4px;font-weight:400;line-height:1.5}.home-attention button>.icon{width:16px;height:16px}
.home-deeper{margin-top:22px;display:grid;gap:12px}.home-detail{margin:0;padding:0 20px;border-radius:12px;box-shadow:none}.home-detail>summary{min-height:56px;font-size:14px;font-weight:500}.detail-toggle{font-size:22px}.home-detail .daily-summary,.home-detail .ask-homekind{box-shadow:none}.home-detail .home-briefing{padding-bottom:20px}
.bottom-nav{width:min(calc(100% - 32px),520px);bottom:calc(12px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:18px;padding:6px;background:#fff;box-shadow:0 5px 30px #183b6314;gap:4px}
.bottom-nav button{min-height:59px;font-size:12px;gap:5px;border-radius:12px;padding:8px 4px}.bottom-nav button.current{background:#eaf0f6;color:var(--navy)}.bottom-nav button.current:hover{background:#e2eaf2}.bottom-nav .icon{width:21px;height:21px}.bottom-nav [data-history-nav-count]{left:14px;top:-4px}.bottom-nav .nav-count{font-size:10px;font-weight:600;background:var(--coral)}
.bottom-nav{left:0;right:0;bottom:0;transform:none;margin:0 auto;width:min(100%,580px);padding:7px 8px max(8px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;border-bottom:0;z-index:100;isolation:isolate;touch-action:manipulation;backface-visibility:hidden}.bottom-nav button{touch-action:manipulation;-webkit-user-select:none;user-select:none}.bottom-nav[aria-busy=true] button.current{box-shadow:inset 0 -3px 0 var(--coral)}
.back-navigation{font-size:13px;margin:0 0 14px;padding-left:0!important;text-decoration:none!important}.back-navigation:hover{text-decoration:underline!important}
.activity-navigation{background:#eaf0f5;box-shadow:none;border:0;border-radius:11px;gap:4px;padding:4px;margin-bottom:22px;max-width:310px}.activity-navigation button{font-size:13px;min-height:44px}.activity-navigation button[aria-pressed=true]{background:#fff;color:var(--navy);box-shadow:0 1px 4px #183b6310}
.alert-totals{gap:0;background:#fff;border:1px solid var(--line);border-radius:13px;margin:0 0 20px;overflow:hidden}.alert-totals>div{background:transparent;border:0;border-radius:0;padding:14px 18px;gap:3px}.alert-totals>div+div{border-left:1px solid var(--line)}.alert-totals strong{font-size:22px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.alert-totals span{font-size:12px}.alert-tabs{gap:7px}.alert-tabs button{font-size:12px;padding:8px 13px;min-height:44px}.alert-tabs button.selected{background:var(--navy);border-color:var(--navy)}
.history-controls{margin:17px 0 22px;gap:12px}.history-controls label{font-size:12px;min-width:140px}.history-controls select{font-size:16px;min-height:44px}.history-controls>button{min-height:44px;font-size:13px}.home-alert-grid{gap:16px}.home-alert{padding:20px}.home-alert h2{font-size:20px}.home-alert .alert-explanation{font-size:14px;line-height:1.6}.home-alert .alert-times{margin:13px 0}.home-alert .alert-seen,.home-alert .alert-closed{font-size:12px;padding:10px}.home-alert .row-actions button{min-height:44px;font-size:13px}.home-alert>.hint{font-size:12px}
.recording-details{border-top:1px solid var(--line);margin-top:22px}.recording-details>summary{font-size:12px;min-height:44px;color:var(--muted)}.recording-details .history-recording{margin:6px 0 15px;gap:10px;font-size:12px}.sample-replay{box-shadow:none;border:1px dashed #cad5df;padding:0 16px;margin-top:20px}.sample-replay>summary{font-size:12px;min-height:50px}.sample-replay[open]{padding-bottom:16px}.subtle-note{font-size:12px;line-height:1.65;color:var(--muted);margin-top:18px}
.timeline-card{padding:22px 24px}.timeline-date{font-size:16px;margin:24px 0 18px}.timeline-event{grid-template-columns:11px 80px minmax(0,1fr);gap:14px;padding-bottom:22px}.timeline-event h3{font-size:15px;line-height:1.45;font-weight:700}.timeline-event p{font-size:12px;line-height:1.5}.timeline-event time{font-size:12px}.sample-event{font-size:10px}
.everyday-room{margin-bottom:22px}.everyday-room>.section-title{font-size:20px;margin:22px 0 13px}.device-grid{gap:16px}.device-everyday-card{padding:18px;display:flex;flex-direction:column;min-width:0}.device-everyday-card .card-head{align-items:flex-start;gap:8px;flex-wrap:wrap}.device-everyday-card h2{font-size:16px;line-height:1.4}.device-everyday-card .card-head .pill{font-size:10px;padding:4px 8px}.device-everyday-card .device-reading{font-size:29px;margin:14px 0 2px;line-height:1.2;font-variant-numeric:tabular-nums}.device-check small{font-size:12px}.device-everyday-card .device-check{margin-bottom:4px}.device-diagnostics{order:5;margin-top:10px;border-top:1px solid var(--line)}.device-diagnostics>summary{font-size:12px;min-height:44px;font-weight:500}.device-diagnostics .device-times{display:grid;gap:5px;padding-bottom:4px}.device-diagnostics .device-times small{font-size:12px;overflow-wrap:anywhere}.device-everyday-card .device-controls{margin-top:14px;gap:8px}.device-everyday-card .device-controls button{min-height:44px;font-size:13px}.device-everyday-card .hint{font-size:12px;line-height:1.6;margin-top:8px}.device-everyday-card .command-status{font-size:12px;padding:9px 0}.device-setup-card .device-diagnostics{margin:10px 0}
.admin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.admin-tile{padding:21px;min-height:116px;border-radius:14px;box-shadow:var(--shadow)}.admin-tile .round-icon{width:40px;height:40px;background:#eef3f7;border-radius:11px}.admin-tile .round-icon .icon{width:21px;height:21px}.admin-tile b{font-size:19px}.admin-tile small{font-size:12px}.admin-tile:hover{border-color:#bbcbd8;background:#fff}
.sharing-grid{gap:16px}.sharing-card{display:flex;flex-direction:column;padding:22px}.sharing-card h2{font-size:20px}.sharing-card>p{font-size:14px;line-height:1.6}.sharing-card .round-icon{width:39px;height:39px;background:#edf2f7;border-radius:11px}.sharing-card .card-head{margin-bottom:16px}.sharing-card .recipients{font-size:13px;margin:6px 0 11px}.sharing-card>small{font-size:12px;margin:0 0 16px}.sharing-card>button{margin-top:auto;min-height:44px;font-size:13px}.share-intro{font-size:13px;padding:14px 18px;margin:0 0 20px;border-radius:12px}.share-intro p{margin:0}.pause-row{padding:20px;border-radius:14px}.pause-row p{font-size:13px;line-height:1.6}
.account-grid{gap:16px}.account-grid .card h2{font-size:21px}.account-grid .card>p{font-size:14px}.account-grid .card .hint{font-size:12px}.account-grid .card .row-actions button{font-size:13px}
.organiser-tabs{gap:6px;margin-bottom:22px;background:transparent}.organiser-tabs button{min-width:88px;flex:initial;min-height:44px;font-size:13px;padding:9px 17px}.organiser-section-heading h2{font-size:20px}.organiser-section-heading small{font-size:12px}.organiser-row{padding:15px 18px;border-radius:12px;gap:14px;box-shadow:var(--shadow)}.organiser-title{font-size:15px;min-height:32px!important;font-weight:600}.organiser-item-content small{font-size:12px}.organiser-row>.pill{font-size:11px}.organiser-kind{font-size:10px}.organiser-list{gap:10px}.organiser-calendar{padding:22px;border-radius:14px}.calendar-grid button{min-height:50px}
.compact .content{font-size:14px}.compact h1,.compact .home-heading h1{font-size:28px}.compact .card{padding:20px}.compact .home-model,.compact .home-organiser{padding:20px}.compact .page-heading p{font-size:13px}.compact button{min-height:44px}.compact .field{font-size:13px}.compact input:not([type=checkbox]),.compact select,.compact textarea{font-size:16px;min-height:44px}.compact .checkline{font-size:13px}.compact .checkline small{font-size:12px}.compact .member{padding:20px}.compact .member-info h3{font-size:18px}.compact .member-info small{font-size:12px}.compact .permissions-tags .pill{font-size:10px;padding:4px 8px}.compact .empty{padding:26px 22px}.compact .empty h2,.compact .empty h3{font-size:21px}.compact .empty p{font-size:13px;max-width:480px;margin:10px auto 16px}.compact .device-reading{font-size:29px}.compact .bottom-nav button{min-height:59px}
.comfortable .content{max-width:1100px}.comfortable .home-dashboard{grid-template-columns:1fr}.comfortable .home-context{grid-template-columns:1fr 1fr;align-items:start}.comfortable .home-organiser:only-child{grid-column:1/-1}.comfortable .home-floor-plan,.comfortable .home-model-canvas{height:390px}.comfortable .home-model h2{font-size:25px}.comfortable .home-room-status b{font-size:21px}.comfortable .home-room-status>span>span{font-size:17px}.comfortable .home-room-status small{font-size:14px}.comfortable .home-glance b{font-size:18px}.comfortable .home-glance small{font-size:14px}.comfortable .home-heading .link{font-size:16px;min-height:52px}.comfortable .home-model .home-map-views button{font-size:15px;min-height:48px}.comfortable .home-map-controls select{font-size:18px;min-height:52px}.comfortable .home-map-caption small,.comfortable .home-map-caption .link{font-size:13px}.comfortable .home-upcoming-item b,.comfortable .home-attention b{font-size:18px}.comfortable .home-upcoming-item small,.comfortable .home-attention small{font-size:14px}.comfortable .home-organiser h2{font-size:24px}.comfortable .home-organiser .card-head button{font-size:16px;min-height:52px}.comfortable .home-detail>summary{font-size:17px;min-height:66px}.comfortable .device-everyday-card h2{font-size:21px}.comfortable .device-everyday-card .device-reading{font-size:42px}.comfortable .device-everyday-card .pill{font-size:12px}.comfortable .device-check small,.comfortable .device-diagnostics>summary,.comfortable .device-diagnostics .device-times small{font-size:15px}.comfortable .device-everyday-card .device-controls button{font-size:17px;min-height:56px}.comfortable .device-everyday-card .hint{font-size:15px}.comfortable .bottom-nav{width:min(calc(100% - 28px),570px)}.comfortable .bottom-nav button{min-height:73px;font-size:16px}.comfortable .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comfortable .admin-tile b{font-size:23px}.comfortable .admin-tile small{font-size:16px}.comfortable .organiser-title{font-size:20px}.comfortable .organiser-item-content small{font-size:15px}.comfortable .organiser-tabs button{font-size:17px;min-height:54px}.comfortable .home-alert h2{font-size:25px}.comfortable .home-alert .alert-explanation{font-size:17px}.comfortable .home-alert .row-actions button{font-size:17px;min-height:56px}.comfortable .history-controls select{font-size:18px;min-height:56px}.comfortable .activity-navigation button{font-size:17px;min-height:56px}.comfortable .timeline-event h3{font-size:20px}.comfortable .timeline-event p,.comfortable .timeline-event time{font-size:15px}.comfortable .recording-details>summary{font-size:16px;min-height:56px}
dialog{border-radius:18px;box-shadow:0 18px 70px #183b6325}dialog h2{font-size:23px}dialog .dialog-head{padding-bottom:18px}dialog .field{font-size:14px}dialog input:not([type=checkbox]),dialog select,dialog textarea{font-size:16px}dialog .hint{font-size:12px;line-height:1.65}
body[data-layout="comfortable"] dialog h2{font-size:27px}body[data-layout="comfortable"] dialog p,body[data-layout="comfortable"] dialog .checkline{font-size:17px}body[data-layout="comfortable"] dialog button,body[data-layout="comfortable"] dialog input:not([type=checkbox]),body[data-layout="comfortable"] dialog select,body[data-layout="comfortable"] dialog textarea{font-size:18px;min-height:56px}body[data-layout="comfortable"] dialog .hint{font-size:14px}body[data-layout="comfortable"] dialog .room-live-readings span{font-size:17px}
@media(max-width:1050px){.home-dashboard{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px}.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.home-dashboard{display:flex;flex-direction:column;gap:17px}.home-map-panel{width:100%;order:1}.home-context{display:contents}.home-attention{order:0;width:100%}.home-organiser{order:2;width:100%}.comfortable .home-dashboard{display:flex}.comfortable .home-context{display:contents}.home-deeper{margin-top:17px}}
@media(max-width:760px){.app-header{padding:0 max(16px,env(safe-area-inset-left))}.app-header-inner{padding:10px 0;gap:12px}.app-header .brand img{width:113px}.app-header .household-picker{order:initial;flex-basis:auto;max-width:none;min-width:0}.app-header .household-picker select{font-size:13px;min-height:44px;padding:8px 9px}.account-shortcut{padding:0;gap:0;min-width:40px}.account-avatar{width:36px;height:36px;font-size:11px}.account-name{display:none}.demo-bar{padding:5px 12px;gap:8px}.demo-bar>span{font-size:10px;flex-basis:auto}.demo-bar select{flex:1;max-width:178px;font-size:10px;min-height:32px}.demo-bar .link{font-size:10px;min-height:32px;margin:0}.content{padding:23px max(16px,env(safe-area-inset-right)) calc(116px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.home-heading{gap:10px;margin-bottom:16px}.compact .home-heading h1{font-size:24px}.home-heading p{font-size:12px}.home-heading .link{font-size:12px;padding:8px 11px}.home-heading .link .icon{width:15px}.home-glance{margin-bottom:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.home-glance button{padding:12px 10px;gap:8px;align-items:center}.home-glance b{font-size:12px;line-height:1.4}.home-glance small{font-size:11px;line-height:1.4}.home-glance .glance-dot{width:7px;height:7px;margin:0}.glance-calendar{display:none}.home-model,.compact .home-model{padding:18px 15px}.home-model .card-head h2{font-size:19px}.home-floor-plan{height:275px;padding:17px}.home-model-canvas{height:290px}.home-map-controls{margin-top:14px;gap:8px}.home-map-controls label{max-width:none;min-width:100px}.home-map-controls select{font-size:16px}.home-map-legend{font-size:11px;gap:15px;margin:0;padding:5px 0 4px}.home-room-status{min-height:74px;gap:10px}.home-room-status b{font-size:15px}.home-room-status>span>span{font-size:13px}.home-room-status small{font-size:12px;line-height:1.5}.home-map-caption{flex-wrap:wrap;gap:0}.home-map-caption>small{font-size:11px;flex:1;min-width:125px}.home-map-caption>.link{font-size:11px}.home-organiser,.compact .home-organiser{padding:18px}.home-organiser h2{font-size:20px}.home-organiser .card-head button{font-size:12px}.home-upcoming-item .pill{font-size:10px;padding:4px 8px}.home-upcoming-item b{font-size:14px}.home-upcoming-item small{font-size:12px}.home-attention{padding:13px 15px}.home-attention b{font-size:14px}.home-attention small{font-size:12px}.attention-symbol{width:32px;height:32px}.home-attention button{min-height:58px}.home-detail{padding:0 16px}.home-detail>summary{font-size:14px;min-height:56px}.bottom-nav{width:calc(100% - 24px);max-width:480px;bottom:calc(10px + env(safe-area-inset-bottom));border-radius:16px;padding:5px;gap:4px}.bottom-nav button{font-size:12px;min-height:59px}.admin-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-tile{padding:18px 15px;min-height:140px;gap:12px}.admin-tile b{font-size:18px}.admin-tile small{font-size:12px}.compact .card{padding:18px}.compact .page-heading h1{font-size:26px}.compact .page-heading p{font-size:13px}.page-heading>.primary{font-size:13px;min-height:44px;padding:10px 14px}.alert-totals>div{padding:14px 12px}.alert-totals strong{font-size:22px}.alert-totals span{font-size:11px;line-height:1.4}.alert-tabs{gap:6px}.alert-tabs button{flex:1;min-width:0;font-size:11px;min-height:44px;padding:8px 10px;line-height:1.45}.history-controls{gap:10px}.history-controls label{min-width:calc(50% - 10px)}.history-controls>button{width:auto}.home-alert h2{font-size:20px}.home-alert .pill{font-size:11px;white-space:normal}.home-alert .row-actions button{width:auto;min-height:44px}.timeline-event{grid-template-columns:9px 66px minmax(0,1fr);gap:11px}.timeline-event h3{font-size:15px}.timeline-event time{font-size:11px}.timeline-event p{font-size:12px}.compact .timeline-card{padding:20px 15px}.device-grid{gap:13px}.compact .device-everyday-card h2{font-size:16px}.device-everyday-card .device-reading,.compact .device-everyday-card .device-reading{font-size:28px}.device-everyday-card .device-controls button{min-height:44px;font-size:14px}.sharing-card h2{font-size:20px}.pause-row{padding:18px}.organiser-tabs{gap:6px}.organiser-tabs button{min-width:84px;font-size:12px;padding:9px 13px;flex:1}.organiser-row{gap:10px;flex-wrap:wrap;padding:14px 13px}.organiser-row>.small{font-size:12px}.organiser-item-content small{font-size:12px}.organiser-title{font-size:15px}.organiser-row>.pill{margin-left:auto;font-size:11px}.organiser-calendar{padding:17px 11px}.calendar-grid button{min-height:46px}.subtle-note{font-size:12px}.comfortable .home-heading h1{font-size:30px}.comfortable .home-glance{grid-template-columns:1fr}.comfortable .home-glance button+button{border-left:0;border-top:1px solid var(--line)}.comfortable .home-glance button{padding:14px 16px;align-items:center}.comfortable .home-glance b{font-size:18px;display:block}.comfortable .home-glance small{font-size:14px;display:block;margin:3px 0 0}.comfortable .home-heading .link{font-size:14px;padding:10px 12px}.comfortable .home-floor-plan,.comfortable .home-model-canvas{height:320px}.comfortable .home-upcoming-item b{font-size:18px}.comfortable .home-upcoming-item small{font-size:14px}.comfortable .home-map-caption small,.comfortable .home-map-caption .link{font-size:13px}.comfortable .home-room-status b{font-size:20px}.comfortable .home-room-status>span>span{font-size:17px}.comfortable .home-room-status small{font-size:14px}.comfortable .bottom-nav button{font-size:14px;min-height:70px}.comfortable .home-detail>summary{font-size:17px;min-height:66px}.comfortable .home-model .card-head h2{font-size:24px}.comfortable .device-everyday-card h2{font-size:20px}.comfortable .device-everyday-card .device-reading{font-size:40px}.comfortable .home-attention b{font-size:18px}.comfortable .home-attention small{font-size:14px}.comfortable .organiser-item-content small{font-size:15px}.comfortable .organiser-tabs button{font-size:16px;min-width:100px}.comfortable .home-alert .row-actions button{width:100%;min-height:56px}.comfortable .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comfortable .admin-tile small{font-size:15px}.comfortable .timeline-event{grid-template-columns:9px 78px minmax(0,1fr)}.comfortable .timeline-event time{font-size:13px}.comfortable .content{padding-bottom:calc(130px + env(safe-area-inset-bottom))}}
@media(max-width:380px){.app-header-inner{gap:8px}.app-header .brand img{width:93px}.app-header .household-picker select{font-size:12px;padding-left:8px}.account-avatar{width:34px;height:34px}.account-shortcut{min-width:36px}.home-heading .link{font-size:11px;padding:8px 9px}.compact .home-heading h1{font-size:23px}.home-glance button{padding:12px 8px;gap:5px}.home-glance b{font-size:11px}.home-glance small{font-size:10px}.home-map-caption>small{font-size:11px;max-width:none}.comfortable .home-heading{align-items:flex-start;flex-wrap:wrap}.comfortable .home-heading .link{font-size:15px}.comfortable .admin-grid{grid-template-columns:1fr}.comfortable .admin-tile{flex-direction:row;align-items:center;min-height:100px}.demo-bar>span{font-size:9px}.demo-bar select{font-size:10px}.demo-bar{gap:6px;padding:5px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.app-header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
/* Notifications and routines share the existing compact / comfortable system. */
.notification-shortcut{position:relative;display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;border:0;background:transparent;padding:9px;color:var(--navy)}.notification-shortcut .icon{width:22px;height:22px}.notification-badge{position:absolute;top:3px;right:1px;border-radius:10px;background:var(--navy);color:#fff;font-size:9px;min-width:17px;height:17px;padding:1px 4px;display:flex;justify-content:center;align-items:center;border:2px solid #fff}
.activity-navigation{max-width:410px}.rooms-navigation{display:flex;gap:4px;width:max-content;max-width:100%;background:#eaf0f5;padding:4px;border-radius:11px;margin-bottom:22px}.rooms-navigation button{min-height:44px;font-size:13px;border:0;background:transparent;padding:8px 23px;border-radius:8px}.rooms-navigation button[aria-pressed=true]{background:#fff;color:var(--navy);box-shadow:0 1px 4px #183b6310}
.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.notification-heading>small{color:var(--muted);font-size:13px}.notification-tabs{display:flex;gap:6px}.notification-tabs button{min-height:40px;font-size:13px;border-color:var(--line);padding:8px 14px}.notification-tabs button[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}.notification-list{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.notification-row{display:flex;align-items:flex-start;gap:13px;padding:19px 21px;border-bottom:1px solid var(--line)}.notification-row:last-child{border:0}.notification-row.unread{background:#f6faf9}.notification-row>div{flex:1;min-width:0}.notification-row p{font-size:13px;color:var(--muted);margin:4px 0 7px}.notification-row small{font-size:11px;color:var(--muted);display:block;line-height:1.5}.notification-title{font-size:15px;font-weight:600;text-align:left;min-height:30px;padding:0;text-decoration:none;line-height:1.4;overflow-wrap:anywhere}.notification-dot{width:7px;height:7px;min-width:7px;background:transparent;border-radius:50%;margin-top:10px}.unread .notification-dot{background:#398273}.notification-row>.small{font-size:12px;min-height:40px;margin-top:0;white-space:nowrap}.notification-settings{display:grid;gap:18px}.notification-settings .card h2{font-size:21px}.notification-settings .card-head{gap:14px}.notification-settings .card-head p{font-size:14px;margin-top:6px}.notification-settings .card-head .pill{white-space:nowrap}.notification-settings .row-actions button{font-size:14px}.notification-settings .field small{font-size:12px}.notification-device{display:flex;gap:15px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:15px 0}.notification-device:last-of-type{border-bottom:0}.notification-device small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.notification-settings .form-error{grid-column:1/-1}
.routine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.routine-card{min-width:0}.routine-card h2{font-size:21px;overflow-wrap:anywhere}.routine-card .card-head{align-items:flex-start;gap:15px}.routine-card .card-head p{font-size:13px;color:var(--muted);margin-top:5px}.routine-card>.card-head .pill{font-size:11px;white-space:nowrap}.routine-card>small{font-size:12px;color:var(--muted);display:block;line-height:1.5}.routine-action-summary{display:grid;gap:8px;padding:16px 0 18px}.routine-action-summary>div{display:flex;gap:9px;font-size:14px;line-height:1.5;align-items:baseline}.routine-action-kind{color:var(--muted);font-size:10px;background:#eef3f5;border-radius:5px;min-width:54px;text-align:center;padding:2px 6px}.routine-card .row-actions{margin-top:18px;gap:8px;flex-wrap:wrap}.routine-card .row-actions button{font-size:12px;min-height:44px;padding:9px 12px}.routine-next{font-size:13px;color:#277260;margin:13px 0 0}.routine-last{font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin:16px 0 0;padding-top:14px}.routine-starters{margin-top:27px}.routine-starters>h2{font-size:18px;margin-bottom:13px}.routine-starters>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.routine-starters button{text-align:left;padding:19px;border:1px solid var(--line);background:#fff;border-radius:13px}.routine-starters b,.routine-starters small{display:block}.routine-starters b{font-size:15px}.routine-starters small{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.5}.routine-diagnostics{margin-top:22px;color:var(--muted);font-size:12px}.routine-diagnostics summary{min-height:44px;cursor:pointer;display:flex;align-items:center}.routine-diagnostics p{font-size:12px;margin-top:8px}.routine-days{border:0;padding:0;margin:6px 0 12px;display:flex;gap:7px;flex-wrap:wrap}.routine-days legend{font-size:14px;font-weight:600;margin-bottom:11px}.routine-days label{position:relative;display:flex;align-items:center}.routine-days input{position:absolute;width:1px;height:1px;opacity:0}.routine-days span{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;border:1px solid var(--line);border-radius:9px;font-size:12px;cursor:pointer}.routine-days input:checked+span{background:var(--navy);color:white;border-color:var(--navy)}.routine-days input:focus-visible+span{outline:3px solid #69a99b;outline-offset:3px}.routine-builder-actions{display:grid;gap:17px}.routine-builder-action{border:1px solid var(--line);border-radius:12px;padding:15px;margin:0;min-width:0;background:#f9fbfc}.routine-builder-action>legend{font-size:12px;color:var(--muted);padding:0 5px}.routine-action-toolbar{display:flex;align-items:flex-end;gap:12px;justify-content:space-between;margin-bottom:15px}.routine-action-toolbar .field{flex:1}.routine-action-toolbar>.small{margin-bottom:0;min-height:44px;font-size:12px}.routine-recipients{border:0;display:flex;gap:12px;flex-wrap:wrap;padding:0;margin-top:14px}.routine-recipients legend{font-size:12px;margin-bottom:8px;color:var(--muted)}.routine-recipients .checkline{font-size:13px}.routine-preview-actions{padding-left:22px;margin:20px 0;line-height:1.7}.routine-detail h3{margin-top:26px;font-size:19px}.routine-run-list article{border-bottom:1px solid var(--line);padding:15px 0}.routine-run-list article:last-child{border:0}.routine-run-list b{font-size:14px}.routine-run-list small{font-size:12px;color:var(--muted);display:block;margin-top:5px}.routine-run-list p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:8px}.routine-preview .notice{margin:15px 0}.routine-preview .row-actions{margin-top:21px;flex-wrap:wrap}
.comfortable .rooms-navigation button,.comfortable .notification-tabs button{font-size:16px;min-height:52px}.comfortable .notification-title{font-size:19px}.comfortable .notification-row p{font-size:16px}.comfortable .notification-row small{font-size:14px}.comfortable .notification-row>.small{font-size:16px;min-height:52px}.comfortable .routine-card h2,.comfortable .notification-settings .card h2{font-size:25px}.comfortable .routine-card .card-head p,.comfortable .routine-card>small,.comfortable .routine-last{font-size:15px}.comfortable .routine-action-summary>div{font-size:17px}.comfortable .routine-card .row-actions button{font-size:16px;min-height:56px}.comfortable .routine-next{font-size:16px}.comfortable .routine-starters b{font-size:20px}.comfortable .routine-starters small{font-size:15px}
@media(max-width:760px){.app-header-inner{gap:10px}.notification-shortcut{min-width:36px;width:36px;padding:6px}.activity-navigation{max-width:none;width:100%}.activity-navigation button{flex:1;font-size:12px;padding:9px 10px}.rooms-navigation{margin-bottom:19px}.notification-row{padding:17px 14px;gap:10px;flex-wrap:wrap}.notification-row>div{min-width:calc(100% - 27px)}.notification-row>.small{margin-left:17px;font-size:12px}.notification-heading{gap:9px}.notification-tabs button{font-size:12px;padding:8px 12px}.notification-heading>small{font-size:11px}.notification-device{gap:10px}.notification-device small{font-size:11px}.routine-grid,.routine-starters>div{grid-template-columns:1fr}.routine-card .row-actions button{flex:1}.routine-card h2{font-size:20px}.routine-card>.card-head .pill{font-size:10px}.routine-days{gap:6px}.routine-days span{min-width:39px;min-height:44px}.routine-builder-action{padding:14px 11px}.routine-action-toolbar{gap:10px}.routine-action-toolbar .field{font-size:13px}.routine-action-toolbar select{font-size:16px}.comfortable .routine-grid{grid-template-columns:1fr}.comfortable .notification-row>.small{font-size:16px}.comfortable .routine-card .row-actions button{min-width:130px}.notification-settings .row-actions{flex-wrap:wrap}.notification-settings .row-actions button{width:auto}}
/* An invitation for a hand sits within the home alert, without a task board. */
.help-inline{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f0f7f4;border:1px solid #dcebe3;border-radius:11px;padding:12px 14px;margin-top:17px;color:#315c4d}.help-inline>span{font-size:13px;line-height:1.5}.help-inline>.link{font-size:12px;min-height:40px;white-space:nowrap;padding:5px 8px;color:#315c4d}.home-help-line{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:10px;padding:10px 0 0;border:0;border-top:1px solid #e9d1c8;background:transparent;color:#315c4d;font-size:12px;line-height:1.5;text-align:left;min-height:44px}.home-help-line>span{font-size:10px;color:var(--muted);white-space:nowrap}.help-source{padding:14px 16px;border-radius:11px;background:#f4f7f8;margin-bottom:20px}.help-source b,.help-source small{display:block}.help-source b{font-size:15px}.help-source small{font-size:12px;color:var(--muted);margin-top:5px}.help-conversation{border-bottom:1px solid var(--line);padding-bottom:21px;margin-bottom:21px}.help-conversation h3{font-size:21px;line-height:1.4;color:#315c4d;margin:0 0 12px}.help-message,.help-offer p,.help-updates p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.help-offer{padding:14px 15px;margin:13px 0;background:#f1f8f4;border:1px solid #dcebe3;border-radius:11px;display:flex;justify-content:space-between;align-items:center;gap:13px}.help-offer>div{min-width:0;flex:1}.help-offer b{font-size:14px}.help-offer p{margin:6px 0 0}.help-offer>.small{white-space:nowrap;font-size:13px;min-height:44px}.help-conversation>.row-actions{flex-wrap:wrap;gap:9px}.help-conversation>.row-actions button{font-size:13px;min-height:44px}.help-invitation p{font-size:14px;color:var(--muted)}.help-invitation button{font-size:14px;margin-top:12px;min-height:44px}.help-updates,.help-privacy{margin-top:17px;font-size:13px}.help-updates>summary,.help-privacy>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted)}.help-updates article{border-bottom:1px solid var(--line);padding:12px 0}.help-updates article:last-child{border:0}.help-updates b{font-size:12px;color:var(--muted)}.help-updates .link{font-size:12px;min-height:40px}.help-privacy p{font-size:12px;color:var(--muted);margin-top:7px}.help-privacy .link{font-size:12px;min-height:44px}.comfortable .help-inline>span,.comfortable .home-help-line{font-size:16px}.comfortable .help-inline>.link{font-size:16px;min-height:52px}.comfortable .home-help-line>span{font-size:13px}.comfortable .help-conversation h3{font-size:25px}.comfortable .help-offer b,.comfortable .help-message,.comfortable .help-offer p,.comfortable .help-updates p{font-size:17px}.comfortable .help-conversation .row-actions button,.comfortable .help-offer>.small{font-size:16px;min-height:56px}
@media(max-width:760px){.help-inline{gap:8px;padding:11px 12px;flex-wrap:wrap}.help-inline>span{flex-basis:100%}.help-inline>.link{padding-left:0;min-height:36px}.help-offer{flex-wrap:wrap}.help-offer>div{flex-basis:100%}.home-help-line{align-items:flex-start;flex-wrap:wrap}.home-help-line>span{font-size:11px}.help-conversation>.row-actions button{width:auto}.comfortable .home-help-line>span{font-size:13px}}

/* Keep navigation anchored while Safari changes its browser chrome. */
.bottom-nav,.comfortable .bottom-nav{left:0;right:0;bottom:0;transform:none;margin:0 auto;width:min(100%,580px);max-width:580px;padding:7px 8px max(8px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;border-bottom:0;z-index:100;touch-action:manipulation}
