.contacts-entry{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.contacts-entry p{width:100%;font-size:14px;color:#756453}
.home-contacts-dialog{padding:0;border:1px solid #d1c2ad;border-radius:24px;width:min(920px,94vw);max-height:92vh;background:#fffaf2;color:#35291e;box-shadow:0 22px 90px #23170d66;font:16px/1.5 system-ui,sans-serif;z-index:10000}
.home-contacts-dialog::backdrop{background:#23170d88;backdrop-filter:blur(6px)}.hc-shell{padding:28px}.hc-shell header,.hc-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.hc-shell h1{font:600 32px Georgia,serif;margin:0 0 18px}.hc-shell h2{font:600 25px Georgia,serif;margin:20px 0 12px}.hc-shell h3{margin:8px 0}.hc-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#846b4d}.hc-shell nav,.hc-actions{display:flex;gap:10px;flex-wrap:wrap}.hc-shell .button{padding:10px 18px;min-height:44px;font:inherit;border:1px solid #cdbb9c;border-radius:12px;background:#f3e7d5;color:#493621;cursor:pointer}.hc-shell .primary{background:#4b6446;color:white;border-color:#4b6446}.hc-shell button:disabled{opacity:.5;cursor:default}.hc-shell label{display:block;margin:14px 0}.hc-shell input:not([type=checkbox]),.hc-shell textarea,.hc-shell select{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid #baa98f;background:#fffefb;color:#35291e;border-radius:10px;font:inherit;margin-top:5px}.hc-shell textarea{resize:vertical;white-space:pre-wrap}.hc-shell textarea[readonly]{background:#f5f0e5}.hc-shell fieldset{border:1px solid #ddd0be;border-radius:12px;margin:16px 0;padding:10px 16px}.hc-check{display:flex!important;gap:12px;align-items:flex-start}.hc-check input{width:20px;height:20px;flex:none;accent-color:#4b6446}.hc-check small{display:block;color:#756453}.hc-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.hc-rows{max-height:260px;overflow:auto;border-bottom:1px solid #ddcfbc}.hc-contacts{display:grid;gap:10px;margin:18px 0}.hc-contacts article{padding:16px;border:1px solid #e1d3bf;border-radius:14px;background:#fffdf8}.hc-contacts article[hidden]{display:none}.hc-contacts p{margin:3px 0}.hc-contacts small,.hc-muted{font-size:14px;color:#756453}.hc-contacts .hc-actions{margin-top:12px}.hc-status:not(:empty),.hc-recipient,.hc-confirm{padding:16px;background:#e8eddf;border-radius:12px;border:1px solid #becaaa}.hc-status.error,.hc-confirm{background:#fff0df;border-color:#d1a77e}.hc-shell details{margin:16px 0}.hc-shell summary{cursor:pointer;padding:8px 0;font-weight:600}.hc-history{border-top:1px solid #d7c6ac;margin-top:24px!important;padding-top:12px}.hc-history ol{max-height:280px;overflow:auto;padding-left:24px}.hc-history li{margin:12px 0}.hc-shell :focus-visible{outline:3px solid #907248;outline-offset:3px}@media(max-width:600px){.hc-shell{padding:16px}.hc-two{grid-template-columns:1fr;gap:0}.hc-shell h1{font-size:25px}.hc-shell header{align-items:flex-start}.hc-shell nav .button{padding:10px}.hc-actions .button{flex:1 1 auto}}

/* Original-food calendar dialog; shared contact and book geometry rules above stay intact. */
.contents-resume-actions{display:flex;align-items:stretch;gap:14px}.contents-resume-actions>.contents-action{flex:1 1 0;min-width:0}
.home-mealplan-dialog{width:min(1080px,94vw)}.home-mealplan-dialog h1{font-size:28px;margin:0 0 8px}.home-mealplan-dialog .hc-eyebrow{margin:0 0 5px}.home-mealplan-dialog .mealplan-tabs{margin:12px 0}.home-mealplan-dialog .mealplan-filters{display:grid;grid-template-columns:1fr 1fr;gap:20px}.home-mealplan-dialog .mealplan-filters label{margin:6px 0}.home-mealplan-dialog .mealplan-range{margin:8px 0;color:#756453}.home-mealplan-dialog .mealplan-row{padding:12px 0;border-bottom:1px solid #dfd1bd}.home-mealplan-dialog .mealplan-row h2{font-size:21px;line-height:1.3;margin:4px 0 12px;overflow-wrap:anywhere}.home-mealplan-dialog .mealplan-meta{font-size:14px;margin:0;color:#756453}.home-mealplan-dialog .mealplan-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.home-mealplan-dialog .mealplan-pager output{white-space:nowrap}.home-mealplan-dialog .mealplan-needs p{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #dfd1bd}.home-mealplan-dialog .mealplan-needs span{white-space:nowrap}.home-mealplan-dialog .mealplan-caution{padding:12px;background:#fff0df;border:1px solid #d1a77e;border-radius:10px}.home-mealplan-dialog .mealplan-selected{font-size:20px;font-weight:600;line-height:1.35}.home-mealplan-dialog .mealplan-review h3{font-size:24px;line-height:1.35}.home-mealplan-dialog .mealplan-empty{padding:12px 0}.home-mealplan-dialog .hc-status:empty{display:none}

.home-mealplan-dialog.touch-dialog[open]{height:auto;max-height:92dvh;min-height:0}

.home-mealplan-dialog .mealplan-tabs{margin:0}.home-mealplan-dialog .hc-status:not(.error){padding:8px 12px;margin:4px 0}

/* Existing-family profiles: the shared touch pager owns all presentation pages. */
.home-family-profiles-dialog{width:min(980px,94vw)}
.home-family-profiles-dialog h1{font-size:28px;margin:0 0 6px}
.home-family-profiles-dialog .hc-eyebrow{margin:0 0 4px}
.home-family-profiles-dialog .hc-status:empty{display:none}
.home-family-profiles-dialog .hc-status:not(:empty){padding:8px 12px;margin:8px 0;font-size:16px}
.home-family-profiles-dialog h2{font-size:23px;line-height:1.3;margin:4px 0 8px;overflow-wrap:anywhere}
.home-family-profiles-dialog .family-profile-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 0;border-bottom:1px solid #dfd1bd;min-width:0}
.home-family-profiles-dialog .family-profile-row>div{min-width:0;flex:1}
.home-family-profiles-dialog .family-profile-row>.button{flex:none}
.home-family-profiles-dialog .family-profile-row p{margin:4px 0}
.home-family-profiles-dialog .family-profile-intro{padding:14px 0}
.home-family-profiles-dialog .family-profile-empty{padding:14px 0}
.home-family-profiles-dialog input{font-size:20px}
.family-profiles-summary{padding:12px 0}
.family-profiles-summary h2{margin:4px 0 8px}
@media(max-width:650px){.home-family-profiles-dialog .family-profile-row{align-items:flex-start;flex-direction:column;gap:10px}}

/* A44: typed favorites keep the existing book and single pager. */
.source-title-and-favorite{display:flex;align-items:flex-start;gap:12px}.source-title-and-favorite h1{flex:1;min-width:0}.source-title-and-favorite .source-favorite{width:56px;height:56px;flex:0 0 56px;font-size:30px;padding:0}
.contents-region[data-contents-view^="favorites-"] .contents-row-copy strong{display:block;-webkit-line-clamp:unset;white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:20px;line-height:1.2}
.contents-region[data-contents-view^="favorites-"] .contents-lines li{min-height:104px}.missing-favorite{display:grid;grid-template-columns:64px minmax(0,1fr) 48px;align-items:center;gap:12px}.missing-favorite .button{min-width:44px;min-height:44px;padding:4px}.favorites-notice{font-size:15px;line-height:1.3;margin:8px 0 0}
