/* Applied by device-local layout detection; never tied to account preferences. */

 :root{--hourH:64px}html,body{max-width:100%;overflow-x:clip}body{font-size:15px;-webkit-tap-highlight-color:transparent}.shell{display:block;min-height:100dvh}.shell>.sidebar{display:none}.shell>.main{margin:0;min-width:0;width:100%;padding:calc(16px + env(safe-area-inset-top)) 14px calc(100px + env(safe-area-inset-bottom))}.page{min-width:0}.page>.topbar{gap:12px;align-items:flex-start;flex-direction:column;margin-bottom:18px}.topbar h1{font-size:28px;letter-spacing:-.8px}.topbar p{font-size:14px;max-width:34ch}.top-actions{width:100%;flex-wrap:wrap;gap:8px}.btn,.textbtn,.todaybtn,.segmented button,.modal button{min-height:44px}.btn{font-size:14px}.segmented{flex:1}.segmented button{flex:1;font-size:13px}.card{padding:16px;border-radius:18px;min-width:0}.cardtitle{font-size:17px}.cardsub,.card p,.fieldlabel{font-size:14px}.fieldlabel input,input,select,textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}input:not([type=checkbox]):not([type=radio]):not([type=range]),select{min-height:46px}textarea{min-height:96px}.day-layout,.actions-intro,.habits-hero,.wheelpanel,.area-grid,.progressgrid,.settingsgrid,.plan-grid,.modalgrid{grid-template-columns:minmax(0,1fr)!important}.board{grid-template-columns:minmax(0,1fr);overflow:visible}.board .lane{min-width:0}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric b{font-size:26px}.metric{min-width:0}.day-calendar{min-width:0;grid-template-columns:44px minmax(0,1fr)}.day-headline{padding:12px;flex-wrap:wrap}.day-headline strong{font-size:14px}.day-headline span{font-size:11px}.time-slot{font-size:10px;padding-right:5px}.event{font-size:12px}.event strong,.event-title{font-size:12px}.calendar-scroll{max-height:60dvh;overscroll-behavior:contain}.calendarbox{min-width:0}.schedule-toolbar{flex-wrap:wrap;gap:10px}.schedule-toolbar-left{flex-wrap:wrap;gap:6px}.period-title{font-size:14px}.schedule-toolbar-right{display:none}.calendar-resize{height:16px}.habititem{padding:12px 0}.habititem strong{font-size:14px}.prioritycard strong{font-size:13px}.prioritycard{padding:12px 8px}.monthcell{min-width:0;padding:5px}.monthcell strong{font-size:13px}.chat-shell{display:flex;flex-direction:column;min-height:65dvh}.chat-people{display:flex;flex-direction:row;max-height:90px;overflow:auto}.chat-person{flex:0 0 130px}.chat-messages{min-height:260px;max-height:50dvh}.chat-bubble{font-size:14px;max-width:90%}.chat-compose{padding:10px}.chat-compose textarea{min-height:44px}.modalwrap{padding:env(safe-area-inset-top) 0 0;align-items:flex-end}.modal{width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top));border-radius:24px 24px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));overflow:auto}.auth-screen{padding:20px 16px}.auth-card{padding:26px 22px;border-radius:24px}.auth-card h1{font-size:32px}#cloudInvite input{min-width:0;width:100%}#cloudInvite .fieldlabel{width:100%}#assistantBubble{bottom:calc(90px + env(safe-area-inset-bottom))!important}#assistantPanel{bottom:calc(150px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 24px)}.toastroot{bottom:calc(90px + env(safe-area-inset-bottom))!important}
 #phoneNav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:80;bottom:0;left:0;right:0;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(255,255,255,.97);border-top:1px solid #dbe5ef;box-shadow:0 -6px 30px #17243a0a;backdrop-filter:blur(16px)}#phoneNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:14px;background:transparent;min-height:52px;color:#64748b;font:inherit}#phoneNav button>span{font-size:23px;line-height:1}#phoneNav small{font-size:11px;font-weight:700}#phoneNav button.active{background:#e7f6f8;color:#087f91}#phoneNav button:focus-visible,.phone-menu-card button:focus-visible{outline:3px solid #1687d9;outline-offset:2px}#phoneMenu:not([hidden]){display:flex;align-items:flex-end;position:fixed;inset:0;background:#17243a66;z-index:150;padding-top:env(safe-area-inset-top)}.phone-menu-card{width:100%;max-height:90dvh;overflow:auto;background:#fff;border-radius:26px 26px 0 0;padding:22px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px #17243a22}.phone-menu-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.phone-menu-card h2{font-size:23px;margin:0}.phone-menu-card header button{width:44px;height:44px;border:0;border-radius:50%;background:#f1f5f9}.phone-menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.phone-menu-grid button{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:90px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;color:#17243a;font-size:13px}.phone-menu-grid span{font-size:24px;margin-top:14px}#phoneInstallHelp{font-size:14px;line-height:1.6;color:#536277}

#phoneSaveStatus{display:block;color:#536277;font-size:11px;text-align:right;min-height:18px;margin-bottom:8px}
.main{padding:calc(16px + env(safe-area-inset-top)) 16px calc(105px + env(safe-area-inset-bottom))!important}.topbar h1{font-size:29px}.card{padding:18px}.btn{min-height:46px}.auth-card{padding:28px 24px}.auth-card h1{font-size:33px}.auth-logo{width:170px;margin-bottom:26px}.shop-hero{padding:24px}.shop-toolbar{align-items:stretch;flex-direction:column}.shop-toolbar input{width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-content{padding:13px;gap:10px}.product-content h3{font-size:15px}.product-content a{font-size:12px;padding:10px 6px}.product-match{font-size:10px}#phoneNav{background:var(--surface);border-color:var(--line)}#phoneNav button{color:var(--muted)}#phoneNav button.active{background:var(--gold-soft);color:var(--gold)}.phone-menu-card{background:var(--surface);color:var(--ink)}.phone-menu-grid button,.phone-menu-card header button{background:var(--surface2);color:var(--ink);border-color:var(--line)}#phoneInstallHelp,#phoneSaveStatus{color:var(--muted)}
.phone-brand-logo{display:block;width:130px;height:auto;padding:5px;margin-bottom:12px}
/* Phone-scale typography and controls. Keep browser pinch zoom available. */
html{font-size:17px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:17px;line-height:1.5}
.shell>.main{padding:calc(8px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom))!important}
.phone-appbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;margin-bottom:16px}
.phone-appbar .phone-brand-logo{width:118px;padding:3px;margin:0}
.phone-appbar #phoneSaveStatus{font-size:13px;margin:0;min-height:0;text-align:right;max-width:50%}
.page>.topbar{margin-bottom:24px}.topbar .eyebrow{display:none}.topbar h1{font-size:32px;line-height:1.15}.topbar p{font-size:16px;line-height:1.5;max-width:none}
.page :is(h2,.cardtitle,.areaname){font-size:22px;line-height:1.3}
.page :is(p,.cardsub,.fieldlabel,.settingrow,.taskbuttons,.habititem,.share-option){font-size:16px;line-height:1.5}
.page :is(.tasktitle,.habititem b,.planmini b,.readyitem b,.prioritycard strong,.traytask b,.chat-person b){font-size:18px;line-height:1.4;white-space:normal}
.page :is(.taskmeta,.areatag,.habititem small,.settingrow small,.chat-person small,.chat-bubble small,.planmini small,.pill,.kicker,.emptylane,.habitempty,.signal label){font-size:14px;line-height:1.5}
button,.btn,.textbtn,.segmented button,.todaybtn{font-size:16px;min-height:48px;touch-action:manipulation}.btn{padding:12px 18px}.iconbtn{min-width:48px}.taskbuttons{display:flex;flex-wrap:wrap;gap:8px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:17px!important;padding:13px 14px;min-height:52px}.event-check{width:28px;height:28px;min-width:28px}.fieldlabel{gap:8px;line-height:1.5}.card{padding:20px;margin-bottom:16px}.modal{padding:24px 20px calc(28px + env(safe-area-inset-bottom))}.modal :is(label,p,.cardsub,small){font-size:16px;line-height:1.5}.modal h2{font-size:26px}.modalactions{gap:10px;flex-wrap:wrap}
.phone-day-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.phone-day-header p{font-size:15px;color:var(--muted);margin:0 0 3px}.phone-day-header h1{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:0;font-weight:650}.phone-add{width:56px;height:56px;flex-shrink:0;border:0;border-radius:18px;background:var(--gold-soft);color:var(--gold);font-size:34px;line-height:1}
.phone-date-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0}.phone-icon-button{height:48px;width:48px;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:30px}.phone-date-heading .textbtn{font-weight:600}
.phone-date-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-bottom:26px}.phone-date-strip button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:72px;padding:7px 0;border:0;border-radius:22px;background:transparent;color:var(--ink)}.phone-date-strip span{font-size:13px}.phone-date-strip strong{font-size:20px;font-weight:600}.phone-date-strip i{height:4px;width:4px;border-radius:50%}.phone-date-strip .is-today{background:currentColor}.phone-date-strip button[aria-current=date]{background:var(--ink);color:var(--bg)}
.phone-agenda-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.phone-agenda-heading h2,.phone-next-section h2{font-size:23px;margin:0 0 4px}.phone-agenda-heading p{margin:0;font-size:15px;color:var(--muted)}.phone-agenda{display:grid;gap:12px}.agenda-item{display:flex;align-items:center;min-height:112px;border:1px solid var(--line);border-left:4px solid var(--area,var(--gold));border-radius:20px;background:var(--surface);overflow:hidden}.agenda-open{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:17px 8px 17px 17px;border:0;background:transparent;color:var(--ink);border-radius:0}.agenda-open strong{font-size:19px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}.agenda-time,.agenda-area{font-size:14px;color:var(--muted);line-height:1.4}.agenda-check{flex:0 0 52px;width:52px;height:52px;padding:12px;margin:8px;border:0;border-radius:50%;background:transparent;color:var(--gold);font-size:25px}.agenda-check span{display:block;width:26px;height:26px;border:2px solid var(--line2);border-radius:50%}.agenda-check[aria-pressed=true]{background:var(--gold-soft)}.agenda-item.is-done .agenda-open strong{text-decoration:line-through;color:var(--muted)}.phone-empty{padding:26px 22px;background:var(--surface);border:1px solid var(--line);border-radius:24px}.phone-empty h3{font-size:23px;margin:0 0 8px}.phone-empty p{font-size:17px;color:var(--muted);margin:0 0 20px}
.phone-next-section{margin-top:30px}.phone-next-section>p{color:var(--muted)}.phone-ready{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line)}.phone-ready strong{font-size:17px;font-weight:550;line-height:1.4}.phone-next-section>.btn{margin-top:16px;width:100%}.phone-checkin{margin-top:24px;padding:18px 0;border-top:1px solid var(--line)}.phone-checkin summary{min-height:48px;font-size:18px;font-weight:600;cursor:pointer}.phone-checkin .signalrow{margin:16px 0}.phone-back-agenda{margin-bottom:16px}
#phoneNav{padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:none}#phoneNav button{min-height:64px;gap:3px;border-radius:0}#phoneNav button>span{display:grid;place-items:center;min-width:60px;height:32px;border-radius:18px}#phoneNav button.active{background:transparent;color:var(--ink)}#phoneNav button.active>span{background:var(--gold-soft);color:var(--gold)}#phoneNav svg{width:25px;height:25px}#phoneNav small{font-size:13px;line-height:1.5;font-weight:600}.phone-menu-grid button{font-size:16px;min-height:104px}.phone-menu-grid span{font-size:28px}
.product-grid{grid-template-columns:minmax(0,1fr);gap:20px}.product-content{padding:20px;gap:14px}.product-content h3{font-size:22px}.product-content p{font-size:16px}.product-content a{font-size:16px;min-height:50px}.product-match{font-size:13px}.interest-chip{font-size:15px;min-height:48px}.shop-explain{font-size:15px}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.theme-choice{min-width:0;width:100%;font-size:14px;padding:10px 6px}.theme-swatch{width:100%;max-width:75px}
.chat-bubble{font-size:17px;padding:14px 16px}.chat-head b{font-size:18px}.chat-head small{font-size:14px}.habititem{padding:16px 0;gap:12px}.habititem>button{min-width:48px}.quickadd{display:flex;flex-direction:column;gap:12px}.actionflow{display:none}.actions-intro h2{font-size:24px}.budget-input{font-size:17px!important}.period-title{font-size:17px}.time-slot{font-size:13px}.event-title{font-size:16px}.event-time,.event-kind{font-size:13px}
@media(max-width:359px){.phone-date-strip span{font-size:12px}.phone-date-strip strong{font-size:18px}.agenda-open{padding-left:12px}.agenda-check{margin:4px}.shell>.main{padding-left:12px!important;padding-right:12px!important}}

#assistantBubble{display:none}#phoneHelp{width:100%;margin-bottom:12px}#phoneInstall{width:100%}#assistantPanel{bottom:calc(100px + env(safe-area-inset-bottom))!important;font-size:16px;line-height:1.5}
.agenda-check span{border-color:var(--muted)}

/* Keep viewport-height panels inside the screen when correcting Android fit. */
html[data-phone-fit=corrected] .shell,html[data-phone-fit=corrected] .auth-screen{min-height:calc(100vh / var(--phone-fit-scale));min-height:calc(100dvh / var(--phone-fit-scale))}
html[data-phone-fit=corrected] .modal{max-height:calc(95vh / var(--phone-fit-scale));max-height:calc(95dvh / var(--phone-fit-scale))}
html[data-phone-fit=corrected] .phone-menu-card{max-height:calc(90vh / var(--phone-fit-scale));max-height:calc(90dvh / var(--phone-fit-scale))}
html[data-phone-fit=corrected] .calendar-scroll{max-height:calc(60vh / var(--phone-fit-scale));max-height:calc(60dvh / var(--phone-fit-scale))}
html[data-phone-fit=corrected] .chat-shell{min-height:calc(65vh / var(--phone-fit-scale));min-height:calc(65dvh / var(--phone-fit-scale))}
html[data-phone-fit=corrected] .chat-messages{max-height:calc(50vh / var(--phone-fit-scale));max-height:calc(50dvh / var(--phone-fit-scale))}
.phone-appbar #phoneSaveStatus{margin-left:auto}.phone-appbar{gap:12px}.desktop-notifications{display:none}.notification-list{max-height:calc(55dvh / var(--phone-fit-scale,1))}

.membership-card{grid-template-columns:1fr;padding:22px;gap:18px}.membership-card li{font-size:16px}.membership-join a{min-height:48px;display:grid;place-items:center}
/* Mobile audit: use explicit geometry for compact controls, never global button heights. */
.event .event-check{box-sizing:border-box;width:28px;height:28px;min-width:28px;max-width:28px;min-height:28px;max-height:28px;flex:0 0 28px;aspect-ratio:1;padding:0;line-height:1;border-radius:50%;align-self:start;position:relative}
.event .event-check:before{content:"";position:absolute;inset:-8px}.event .event-check:checked:after{font-size:16px}.event{padding-right:38px}.calendar-resize{display:none}.event.compact .event-check{width:22px;height:22px;min-width:22px;max-width:22px;min-height:22px;max-height:22px}.event-title{line-height:1.2}.event-time,.event-kind{line-height:1.25}.week-grid{grid-template-columns:48px repeat(7,minmax(154px,1fr));min-width:1126px}.calendar-scroll{scrollbar-gutter:auto}.time-slot{font-size:11px}.day-calendar{grid-template-columns:42px minmax(0,1fr)}
.monthweekday{padding:10px 0;text-align:center;font-size:11px;letter-spacing:0}.monthgrid{grid-template-columns:repeat(7,minmax(0,1fr))}.phone-monthday{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:78px;width:100%;padding:6px 1px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--ink)}.phone-monthday .monthdate{height:28px;width:28px;font-size:16px}.month-dots{display:flex;gap:3px;min-height:5px}.month-dots i{width:4px;height:4px;border-radius:50%;background:var(--area,var(--gold))}.month-item-count{font-size:10px;line-height:1;color:var(--muted)}
#page-household>.topbar{display:flex;flex-direction:row;align-items:center;gap:12px;margin-bottom:16px}#page-household>.topbar p{display:none}#page-household>.topbar .top-actions{width:auto}#messageTrash{font-size:13px;padding:8px 10px;min-height:44px}#page-household .chat-shell{display:flex;flex-direction:column;min-height:0;border-radius:18px}#page-household .chat-people{display:block;max-height:none;overflow:visible;border:0;border-bottom:1px solid var(--line);background:var(--surface)}.chat-contact-picker>summary{font-size:14px;font-weight:600;padding:14px 16px;cursor:pointer;min-height:48px}.chat-contact-picker .chat-person{width:100%;min-width:0;text-align:left}.chat-contact-picker .chat-contacts-heading{padding:12px 16px}.chat-contact-picker .chat-person small{font-size:13px}.chat-main{display:flex;flex-direction:column;min-height:0}.chat-head{padding:12px 16px}.chat-head small{font-size:12px}.chat-messages{height:clamp(180px,calc(100dvh / var(--phone-fit-scale,1) - 380px),500px);min-height:180px;max-height:none!important;overflow-y:auto;padding:14px 12px;gap:12px;overscroll-behavior:contain}.chat-bubble{max-width:88%;font-size:16px;padding:12px 14px 10px}.page .chat-bubble small{font-size:11px;line-height:1.4}.chat-bubble .message-options{width:32px;height:32px;min-height:32px;padding:0;font-size:12px}.chat-compose{padding:10px;gap:8px;grid-template-columns:minmax(0,1fr) 48px}.chat-compose #chatText{min-height:44px;max-height:120px;font-size:16px!important;padding:10px 2px}.chat-toolbar{gap:4px}.chat-toolbar .chat-tool{min-height:36px;padding:4px 8px;font-size:14px}.chat-tool span,.chat-hint{display:none}.chat-send{min-width:48px;padding:10px 6px;font-size:13px;min-height:48px;align-self:end}.chat-send span{display:none}.chat-pins{margin-top:20px}
.budget-control-grid,.training-grid,.relationship-people{grid-template-columns:minmax(0,1fr)}.budget-controls .budget-control-grid{gap:16px}.budget-table,.trainingtable,.habitmatrix{max-width:100%;overflow:auto}.settingrow{flex-wrap:wrap;gap:12px}.settingrow>div{min-width:0}.cardhead{gap:12px;flex-wrap:wrap}.metrics .metric label{font-size:11px}.metric b{font-size:26px}.progressgrid{gap:16px}.matrixlabel{max-width:160px}.modal input[type=checkbox],.modal input[type=radio]{min-height:0}.modal .iconbtn{flex-shrink:0}.modalhead h2{overflow-wrap:anywhere}.topbar h1{overflow-wrap:anywhere}.schedule-toolbar-left{display:flex;flex-wrap:wrap}.period-title{flex:1;min-width:160px;font-size:15px}.schedule-toolbar .todaybtn{padding:8px 12px}
.event .event-complete{width:26px;height:26px;min-width:26px;max-width:26px;min-height:26px;max-height:26px;aspect-ratio:1;right:5px;top:5px;padding:0;line-height:1;box-sizing:border-box}.event .event-complete:before{content:"";position:absolute;inset:-8px}.event.compact .event-complete{width:20px;height:20px;min-width:20px;max-width:20px;min-height:20px;max-height:20px;top:3px;right:4px}.event.compact{padding-right:28px}.event.compact .event-title{font-size:12px}.event.compact .event-time{display:none}.prioritycard .event-check{width:24px;height:24px;min-width:24px;min-height:24px;padding:0;aspect-ratio:1}
/* Keep the composer inside the visible conversation and above navigation. */
html.phone-chat-open .shell>.main{height:calc(var(--chat-viewport,100dvh) / var(--phone-fit-scale,1));display:flex;flex-direction:column;overflow:hidden;padding-bottom:calc(86px + env(safe-area-inset-bottom))}html.phone-chat-open .phone-appbar{flex-shrink:0;margin-bottom:8px}html.phone-chat-open #page-household{flex:1;min-height:0;display:flex;flex-direction:column}html.phone-chat-open #page-household>.topbar{flex-shrink:0;margin-bottom:8px}html.phone-chat-open #page-household .chat-shell{flex:1;min-height:0;overflow:hidden}html.phone-chat-open #page-household .chat-main{flex:1;min-height:0;overflow:hidden}html.phone-chat-open #page-household .chat-messages{flex:1;height:auto;min-height:0;max-height:none!important}html.phone-chat-open #page-household .chat-compose{flex-shrink:0;position:relative;z-index:2;background:var(--surface)}html.phone-chat-open #page-household .chat-head{padding:8px 14px;flex-shrink:0}html.phone-chat-open #page-household .chat-pins{flex-shrink:0;max-height:120px;overflow:auto;margin:8px 0 0;padding:10px}html.phone-chat-open .chat-pins .cardhead{margin:0}html.phone-chat-open .chat-pins h2{font-size:16px;margin:0}html.phone-chat-open .chat-pins .cardsub{display:none}html.phone-chat-open .chat-error:empty{display:none}html.chat-keyboard-open #phoneNav{display:none}html.phone-chat-open.chat-keyboard-open .shell>.main{padding-bottom:env(safe-area-inset-bottom)}html.phone-chat-open.chat-keyboard-open .chat-pins{display:none}.notes-scopes{display:flex;margin:10px 0}.notes-scopes button[aria-pressed=true]{background:var(--gold-soft);color:var(--ink)}

html.phone-chat-open #page-household .chat-pins{max-height:none;padding:0;border:0;background:transparent;overflow:visible}.chat-notes-open{width:100%;display:flex;align-items:center;gap:10px;text-align:left}.chat-notes-open span:last-child{margin-left:auto}#notesDrawer .notes-scopes button{font-size:13px;white-space:nowrap;padding:8px}#notesDrawer .pin-grid{grid-template-columns:minmax(0,1fr)}

html.phone-chat-open.chat-keyboard-open .phone-appbar{display:none}html.phone-chat-open.chat-keyboard-open #page-household>.topbar{margin-bottom:4px}html.phone-chat-open.chat-keyboard-open #page-household>.topbar h1{font-size:22px}
/* Chat owns its viewport; override the general page's reserved navigation padding. */
html.phone-chat-open .shell>.main{padding:calc(8px + env(safe-area-inset-top)) 14px calc(86px + env(safe-area-inset-bottom))!important}
html.phone-chat-open #page-household{width:100%;max-width:none;margin:0}
html.phone-chat-open.chat-keyboard-open .shell>.main{padding-bottom:env(safe-area-inset-bottom)!important}
html.phone-chat-open .chat-people{flex-shrink:0}
#notesDrawer .cardhead h2{display:none}#notesDrawer .cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px}#notesDrawer .cardhead .cardsub{margin:0}#notesDrawer .cardhead>.btn{flex-shrink:0}

.membership-card .membership-join{border-left:0;border-top:1px solid #ffffff20;padding:20px 0 0}.membership-card .membership-benefits{gap:10px 16px;margin-top:20px}.membership-card .membership-price strong{font-size:26px}
.community-tabs{flex:0 0 auto;margin-bottom:8px;gap:4px}.community-tabs button{font-size:13px;padding:8px;flex:1}.community-tabs button:first-child{flex:1.5}.community-shell .chat-head b{font-size:16px}.community-shell .chat-head small{font-size:12px}.community-shell .chat-compose{gap:8px;padding:10px;grid-template-columns:minmax(0,1fr) 60px}.community-shell .chat-compose textarea{min-height:48px;max-height:100px;padding:12px}.community-shell .chat-send{padding:10px;min-width:60px;min-height:48px}.growth-event-banner{padding:10px 12px;gap:8px;margin-bottom:12px}.growth-event-mark{display:none}.growth-event-banner .kicker{font-size:10px;letter-spacing:1px}.growth-event-banner strong{font-size:14px;line-height:1.35}.growth-event-banner small{font-size:12px}.growth-event-banner .textbtn{padding:6px;font-size:12px;max-width:70px}.community-shell #communityEventSlot{flex-shrink:0}.community-shell #communityEventSlot strong{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.community-shell .chat-error{margin:0;padding:0 10px;font-size:12px}.community-shell .chat-bubble{max-width:94%}html.chat-keyboard-open #communityEventSlot{display:none}.community-shell #communityMessages{overflow:auto}.growth-event-card .connection-invite-actions{align-items:stretch}.growth-event-card .btn{width:100%;justify-content:center}

@media(max-width:760px){html.phone-chat-open.chat-keyboard-open #recoveryNotice{display:none}}

/* Chat layout stays within the visual viewport, including Samsung keyboards. */
html.phone-chat-open .phone-appbar{display:none}
html.phone-chat-open #page-household>.topbar{padding:0 2px;margin-bottom:8px;min-height:44px}
html.phone-chat-open #page-household>.topbar h1{font-size:24px;line-height:1.15;margin:0}
html.phone-chat-open #page-household .community-tabs{flex-shrink:0;margin-bottom:8px;min-height:44px}
html.phone-chat-open #page-household .community-tabs button{font-size:13px;padding:8px;min-height:44px}
html.phone-chat-open #page-household .chat-bubble{max-width:92%;padding:10px 38px 10px 12px}
html.phone-chat-open #page-household .chat-messages{padding:12px 10px;gap:12px}
html.phone-chat-open #page-household .chat-compose{padding:8px;gap:6px;grid-template-columns:minmax(0,1fr) 52px}
html.phone-chat-open #page-household .chat-send{width:52px;min-height:48px;align-self:end}
html.phone-chat-open #page-household .chat-toolbar{display:flex;gap:0;min-height:44px}
html.phone-chat-open #page-household .chat-tool{min-width:44px;min-height:44px;padding:6px;font-size:14px}
html.phone-chat-open #page-household .chat-tool span{display:none}
html.phone-chat-open #page-household .chat-pins{padding:0;border:0;background:transparent;margin-top:6px}
html.phone-chat-open #page-household .chat-notes-open{min-height:44px;padding:8px 12px}
html.phone-chat-open.chat-keyboard-open #page-household>.topbar,html.phone-chat-open.chat-keyboard-open #communityEventSlot,html.phone-chat-open.chat-keyboard-open .chat-contact-picker{display:none}
html.phone-chat-open #communityEventSlot:empty{display:none}
.reaction-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:48dvh}
@media(max-height:550px){html.phone-chat-open #page-household>.topbar,html.phone-chat-open #communityEventSlot,html.phone-chat-open .chat-pins{display:none}html.phone-chat-open #page-household .chat-head{padding:5px 10px}html.phone-chat-open #page-household .chat-head small{display:none}}
@media(prefers-reduced-motion:reduce){.reaction-choice img{visibility:hidden}.reaction-choice{min-height:64px}.reaction-choice span{display:block}}
