/* Shared rhythm for everyday pages, settings, and dialogs. */
.page-heading{margin:8px 0 24px}.page-heading h1{font-size:28px;line-height:1.4;letter-spacing:-.4px}
.page-heading p{margin:8px 0 0}.section-title{gap:12px;margin-bottom:16px}
.section-title h2,.settings-card h2{font-size:17px;line-height:1.5;margin:0;font-weight:650}
.settings-card{padding:24px;border-radius:16px;margin-bottom:20px}
.settings-card .help{line-height:1.8}.settings-nav{margin-bottom:24px}
.personal-grid,.team-layout{gap:24px}.settings-card label{line-height:1.6}
.memory-prose{font-size:14px;line-height:1.95;overflow-wrap:anywhere}
.memory-prose p{margin:0 0 16px;white-space:pre-line}.memory-prose p:last-child{margin-bottom:0}
.memory-prose .memory-empty{color:var(--muted)}.memory-updated{font-size:11px;color:var(--muted);margin:18px 0 0}
.memory-document .help{margin:0 0 18px}.memory-document .text-button{white-space:nowrap;min-height:40px}
#memory-text{min-height:260px;line-height:1.9;resize:vertical}
.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.notification-toolbar .button{flex:1}.notification-toolbar .text-button{white-space:nowrap;min-height:40px;display:inline-flex;align-items:center;text-decoration:none}
.notification-item p,.modal-description{line-height:1.85}.modal-head h2{line-height:1.5}
@media(max-width:760px){.page-heading h1{font-size:25px}.settings-card{padding:20px;margin-bottom:18px}.personal-grid,.team-layout{gap:18px}.section-title h2,.settings-card h2{font-size:16px}.memory-prose{font-size:14px}.notification-toolbar{align-items:stretch}.notification-toolbar .button{min-width:100%;min-height:44px}}

/* One width owner for every card in the member settings column. */
.settings-pane{width:100%;max-width:900px;margin-inline:auto;min-width:0}
.member-settings-pane .personal-grid,.member-settings-pane .hand-settings,.member-settings-pane .member-reading,.member-settings-pane>.memory-document{width:100%;max-width:none;margin-inline:0;min-width:0}
.member-settings-pane .profile-settings{width:100%;margin-bottom:0}
.member-settings-pane .hand-settings,.member-settings-pane .personal-grid,.member-settings-pane .member-reading{margin-bottom:20px}
.member-settings-pane .mingyu-card{margin-top:0}
.member-settings-pane .profile-settings,.member-settings-pane .member-reading .settings-card{padding:24px}
.team-layout>div,.development-layout>section,.home-overview>*,.home-meals>*{min-width:0}
.team-layout>div>.settings-card,.development-layout>.settings-card,.home-meals>.home-card{width:100%;max-width:none}
.settings-nav{max-width:100%;overflow-x:auto}.settings-nav a{flex-shrink:0;white-space:nowrap}
@media(max-width:760px){.settings-nav a{padding-inline:12px}.member-settings-pane .profile-settings,.member-settings-pane .member-reading .settings-card{padding:20px}}

@media(min-width:761px){body[data-one-hand] .member-settings-pane .form-save{position:static;padding:13px 0;backdrop-filter:none}}
