.senior-address-book,.senior-life-profile{display:none}
.senior-mode .senior-address-book,.senior-mode .senior-life-profile{display:block}
.senior-address-book{margin-top:18px;padding:22px;border:1px solid #dfcec5;border-radius:24px;background:#fff}
.senior-address-book>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
.senior-address-book h3{margin:0;font-size:23px}.senior-address-book>p{color:#756864}
.senior-address-book>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.senior-address-book article{display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px;border:1px solid #e1d0c8;border-radius:18px;background:#fffaf7}
.senior-address-book article>button{display:grid;grid-template-columns:40px 1fr;border:0;background:transparent;color:#513537;text-align:left;padding:0}
.senior-address-book article>button span{grid-row:1/4;font-size:28px}.senior-address-book article b{font-size:20px}.senior-address-book article small{font-size:15px;color:#675d59}.senior-address-book article em{font-style:normal;color:#8a4b4e}
.senior-address-book article>div{display:flex;flex-direction:column;justify-content:center;gap:5px}.senior-address-book article a,.senior-address-book article>div button{border:0;background:transparent;color:#7b4145;text-decoration:none;font-weight:800}
.senior-address-book>div:first-child>button,.senior-life-profile>button{min-height:52px;border:0;border-radius:15px;background:#7b4145;color:#fff;padding:10px 18px;font-size:17px;font-weight:900}
.senior-address-dialog,.senior-profile-dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:88dvh;overflow-x:hidden;overflow-y:auto}
#seniorAddressDialog form,#seniorLifeProfileDialog form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;gap:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
#seniorAddressDialog form>*,#seniorLifeProfileDialog form>*{box-sizing:border-box;min-width:0;max-width:100%}
#seniorAddressDialog label,#seniorLifeProfileDialog label{width:100%;overflow-wrap:anywhere;word-break:normal}
#seniorAddressDialog input,#seniorAddressDialog textarea,#seniorLifeProfileDialog input,#seniorLifeProfileDialog textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
#seniorAddressDialog form>button[data-address-search]{width:100%;min-height:52px;border:1px solid #82464a;border-radius:14px;background:#fff7f2;color:#713c3e;padding:10px 14px;font-size:17px;font-weight:900;white-space:normal;line-height:1.4}#seniorAddressDialog form>small{display:block;margin-top:8px;color:#756864;line-height:1.5;overflow-wrap:anywhere}.check-row{display:flex!important;align-items:center;gap:10px}.check-row input{flex:0 0 24px!important;width:24px!important;height:24px}.check-row{white-space:normal}
#seniorAddressDialog form>div,#seniorLifeProfileDialog form>div{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%;gap:10px}
#seniorAddressDialog form>div button,#seniorLifeProfileDialog form>div button{box-sizing:border-box;width:100%;min-width:0;padding:8px 10px;white-space:nowrap}
.senior-mode .mine-page>.senior-companion-card,.senior-mode .mine-page>.senior-paid-card{display:none!important}
.senior-mode .mine-page>.senior-companion-card{border:1px solid #dfcec5;background:#fff}.senior-mode .mine-page>.senior-paid-card{border:2px solid #d4a45b;background:#fff8e9}
.senior-mode .mine-page>.senior-companion-card button,.senior-mode .mine-page>.senior-paid-card button{width:100%;min-height:56px;border:0;border-radius:15px;background:#7b4145;color:#fff;font-size:19px;font-weight:900}
.senior-life-profile{margin:18px clamp(16px,5vw,64px);padding:24px;border:1px solid #dfcec5;border-radius:24px;background:#fff}.senior-life-profile>small{font-weight:900;color:#8a4b4e}.senior-life-profile h2{margin:7px 0;font-size:32px}.senior-life-profile p{color:#756864;line-height:1.7}.senior-life-profile>small:last-child{display:block;margin-top:12px;color:#756864}
.senior-address-dialog{width:min(620px,calc(100% - 24px))}.senior-profile-dialog{width:min(720px,calc(100% - 24px))}.senior-profile-dialog textarea{box-sizing:border-box;width:100%;border:1px solid #d8c5bb;border-radius:14px;padding:12px;font:inherit}
.senior-reminder-page form select{box-sizing:border-box;min-height:54px;border:1px solid #d8c5bb;border-radius:14px;background:#fff;padding:10px 13px;font:inherit}.senior-reminder-list>div{grid-template-columns:36px 1fr auto auto auto!important}
@media(max-width:760px){.senior-address-dialog,.senior-profile-dialog{width:calc(100% - 18px);padding:22px 18px}.senior-address-dialog h2,.senior-profile-dialog h2{padding-right:38px;font-size:27px}.senior-address-book{padding:17px}.senior-address-book>div:last-child{grid-template-columns:1fr}.senior-address-book>div:first-child{align-items:flex-start}.senior-address-book>div:first-child>button{white-space:nowrap}.senior-address-book article{grid-template-columns:1fr}.senior-address-book article>div{flex-direction:row;justify-content:flex-start}.senior-life-profile,.senior-mode .mine-page>.senior-companion-card,.senior-mode .mine-page>.senior-paid-card{margin:18px 14px;padding:17px}.senior-life-profile h2{font-size:27px}.senior-reminder-list>div{grid-template-columns:32px 1fr auto auto!important}.senior-reminder-list small{grid-column:2/-1!important}}

/* These dialogs must stay one-column on every screen. Older senior styles use
   generic form rules, so keep this block last and intentionally specific. */
body #seniorAddressDialog form,body #seniorLifeProfileDialog form{display:flex!important;flex-direction:column!important;align-items:stretch!important;grid-template-columns:none!important;gap:14px!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important}
body #seniorAddressDialog form>*,body #seniorLifeProfileDialog form>*{display:block;position:static;float:none;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;writing-mode:horizontal-tb!important;white-space:normal;overflow-wrap:anywhere}
body #seniorAddressDialog form label,body #seniorLifeProfileDialog form label{display:grid!important;gap:8px!important;font-size:18px;line-height:1.45}
body #seniorAddressDialog input,body #seniorAddressDialog textarea,body #seniorLifeProfileDialog input,body #seniorLifeProfileDialog textarea{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:18px;line-height:1.5;writing-mode:horizontal-tb!important}
body #seniorAddressDialog .check-row{display:flex!important;align-items:center;gap:10px}body #seniorAddressDialog .check-row input{width:24px!important;flex:0 0 24px}
body #seniorAddressDialog .senior-dialog-actions,body #seniorLifeProfileDialog .senior-dialog-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:100%!important}
body #seniorAddressDialog .senior-dialog-actions>*,body #seniorLifeProfileDialog .senior-dialog-actions>*{width:100%!important;min-width:0!important;white-space:nowrap!important}
.senior-life-profile>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.senior-life-profile>div button{width:100%;min-height:58px;border:1px solid #7b4145;border-radius:15px;background:#fff;color:#713c3e;font-size:18px;font-weight:900}.senior-life-profile>div button:last-child{background:#7b4145;color:#fff}
.senior-custom-profile{padding:16px!important;border:1px solid #ead8cf!important;border-radius:18px;background:#fff}.senior-custom-profile header{display:flex!important;align-items:center;justify-content:space-between;gap:10px}.senior-custom-profile header button,.senior-custom-row>button{width:auto!important;min-height:44px;border:1px solid #8a4b4e;border-radius:12px;background:#fff;color:#713c3e;padding:6px 14px;font-weight:800}.senior-custom-profile>p{margin:7px 0 12px!important;color:#746964}.senior-custom-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:14px 0!important;border-top:1px solid #eee1da}.senior-custom-row:first-child{border-top:0}.senior-custom-row>button{justify-self:start;width:auto!important}
.senior-profile-card-dialog{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:0;border-radius:26px;padding:28px;background:#fffaf6;color:#302726}.senior-profile-card-dialog::backdrop{background:rgba(35,22,22,.58)}.senior-profile-card-dialog h2{margin:0 40px 6px 0;font-size:30px}.senior-profile-card-dialog p{font-size:16px;line-height:1.55}.senior-profile-card-dialog canvas{display:block;width:100%;height:auto;border:1px solid #ead8cf;border-radius:18px;background:#fff}.senior-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.senior-card-actions button,.senior-card-actions a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:54px;border:1px solid #7b4145;border-radius:14px;background:#fff;color:#713c3e;font-size:18px;font-weight:900;text-decoration:none}.senior-card-actions a{background:#7b4145;color:#fff}
@media(max-width:560px){.senior-life-profile>div{grid-template-columns:1fr}.senior-profile-dialog,.senior-address-dialog,.senior-profile-card-dialog{width:calc(100% - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:20px 16px!important}.senior-custom-profile header{align-items:flex-start}.senior-custom-profile header button{white-space:nowrap}.senior-card-actions{grid-template-columns:1fr 1fr}}
.senior-form-dialog{box-sizing:border-box;max-width:calc(100vw - 18px)!important;overflow-x:hidden!important}.senior-form-dialog form{display:flex!important;flex-direction:column!important;align-items:stretch!important;grid-template-columns:none!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:14px!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}.senior-form-dialog form>*{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;writing-mode:horizontal-tb!important}.senior-form-dialog form label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.senior-form-dialog form input,.senior-form-dialog form textarea{box-sizing:border-box;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;writing-mode:horizontal-tb!important}.senior-form-dialog form>div{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:100%!important}.senior-form-dialog form>div>button{box-sizing:border-box;width:100%!important;min-width:0!important;padding:8px!important;white-space:normal!important;writing-mode:horizontal-tb!important}
.senior-mode .senior-location-say>div{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;gap:10px}.senior-mode .senior-location-say>div>button{box-sizing:border-box;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}.senior-mode [data-senior-place-voice].holding,.senior-mode #voiceInput.recording{background:#6f383c!important;color:#fff!important;box-shadow:0 0 0 5px rgba(123,65,69,.18)}.senior-mode #voiceInput,.senior-mode #voiceInput *,.senior-mode [data-senior-place-voice],.senior-mode [data-senior-place-voice] *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;touch-action:manipulation}.senior-mode #voiceInput span,.senior-mode [data-senior-place-voice] *{white-space:normal;line-height:1.2;pointer-events:none}
.senior-input-toggle{display:none}.senior-mode.has-chat #composer{grid-template-columns:58px minmax(0,1fr) 62px!important;align-items:end;transition:min-height .18s ease}.senior-mode.has-chat #composer .senior-input-toggle{box-sizing:border-box;display:flex;grid-column:1;grid-row:1;min-width:54px;min-height:58px;align-items:center;justify-content:center;flex-direction:column;gap:1px;border:1px solid #d9c5bd;border-radius:16px;background:#fff7f2!important;color:#713c3e;box-shadow:none}.senior-input-toggle span{font-size:21px}.senior-input-toggle small{font-size:11px;color:inherit}.senior-mode.has-chat #composer #input{grid-column:2;grid-row:1;box-sizing:border-box;min-height:58px;max-height:150px;resize:none;align-self:end;transition:height .12s ease}.senior-mode.has-chat #composer #voiceInput{grid-column:2;grid-row:1}.senior-mode.has-chat #composer .send-message{grid-column:3;grid-row:1}.senior-mode.has-chat #composer>small{grid-column:1/-1}.senior-mode.has-chat #composer.senior-voice-mode{grid-template-columns:58px minmax(0,1fr)!important}.senior-mode.has-chat #composer.senior-voice-mode #input,.senior-mode.has-chat #composer.senior-voice-mode .send-message{display:none!important}.senior-mode.has-chat #composer.senior-voice-mode #voiceInput{display:flex!important;width:100%!important;min-width:0!important;min-height:58px!important;align-items:center;justify-content:center;border-radius:16px;font-size:19px}.senior-mode.has-chat #composer:not(.senior-voice-mode) #voiceInput{display:none!important}
