/* Shared task-oriented surfaces; clinical schema and section ordering are unchanged. */
.daily-dashboard { margin-bottom:40px; }
.daily-dashboard .home-greeting { margin-bottom:24px; }
.daily-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.daily-resume,.daily-agenda { min-width:0; border:1px solid var(--border); border-radius:26px; padding:26px; background:var(--surface); }
.daily-resume { background:linear-gradient(135deg,#eee6fc,#fff9f1); }
.daily-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.daily-section-heading h3 { margin:0; font-size:1.25rem; }
.daily-section-heading img { width:80px; height:80px; flex:none; }
.daily-section-heading .eyebrow { margin:0 0 8px; }
.daily-family { font-size:1.35rem; font-weight:750; margin:0; }
.daily-resume>button { margin-top:20px; display:flex; align-items:center; justify-content:center; gap:12px; }
.text-action { color:var(--purple); border:0; background:transparent; font-weight:700; width:auto; min-height:44px; padding:8px; }
.daily-appointments { display:grid; gap:12px; }
.daily-appointments button { width:100%; display:flex; align-items:center; gap:12px; padding:14px 0; text-align:left; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; }
.daily-appointments button>span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.daily-appointments small { display:block; color:var(--ink-soft); margin-top:5px; }
.daily-date { font-size:.8rem; font-weight:700; color:var(--purple); }
.daily-empty { color:var(--ink-soft); line-height:1.7; }
.daily-attention { margin:16px 0 0; font-size:.85rem; color:var(--ink-soft); }
.home-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:20px; }
.home-shortcuts button { display:flex; align-items:center; gap:12px; padding:16px; border:1px solid var(--border); border-radius:18px; background:var(--surface); text-align:left; font-weight:700; min-width:0; }
.home-shortcuts button>span { flex:1; min-width:0; overflow-wrap:anywhere; }
.home-shortcuts button>img { width:38px; height:38px; }
.home-shortcuts button>.brand-icon { width:16px; flex:none; }
.family-editor { width:min(680px,calc(100% - 24px)); max-height:calc(100dvh - 32px); border:1px solid var(--border); border-radius:24px; padding:24px; color:var(--ink); background:var(--surface); overflow:auto; }
.family-editor::backdrop { background:#30264180; }
.family-editor-close { display:block; margin:0 0 18px auto; width:auto; }
.family-editor .card { padding:0; margin:0; border:0; box-shadow:none; }
.family-editor input,.family-editor select { min-width:0; max-width:100%; box-sizing:border-box; }
.family-editor form { display:grid; gap:12px; }
.family-editor .field-label { margin:0; }
.family-editor .form-grid { gap:18px; }
.family-editor .form-grid>div { display:grid; gap:8px; }
.family-timeline { display:grid; gap:12px; }
.family-timeline .patient-item { margin:0; }
.document-item .document-heading { padding-bottom:16px; border-bottom:1px solid var(--border); }
.document-item .document-heading h3 { margin:0 0 5px; }
.document-item .document-heading p { margin:0; }
.document-item .btn-row { display:flex; flex-wrap:wrap; }
.document-item .btn-row>* { flex:1 1 180px; width:auto; justify-content:center; }
#profile-form { display:grid; gap:16px; }
#profile-form .field-label { margin:0; }
#password-form { display:grid; gap:12px; }
#password-form .field-label { margin:0; }
#app[data-view="profile"] .account-exit { background:transparent; border:0; padding:0; }
.home-inbox { margin:20px 0 0; padding:22px; border:1px solid var(--border); border-radius:22px; background:#f0eafb; }
.home-inbox h3 { margin:0; }
.home-inbox button { display:flex; align-items:center; justify-content:space-between; gap:14px; text-align:left; margin:12px 0 0; width:100%; background:var(--surface); border:1px solid var(--border); padding:16px; }
.home-inbox button small { display:block; margin-top:5px; color:var(--ink-soft); }
@media(max-width:760px) {
 .daily-grid { grid-template-columns:1fr; }
 .daily-resume,.daily-agenda { padding:22px; }
 .home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .home-shortcuts button { padding:14px; gap:8px; }
 .home-shortcuts button>.brand-icon { display:none; }
 .family-editor { padding:20px; }
 .daily-section-heading { flex-wrap:wrap; }
 .daily-date { max-width:75px; }
 .document-item .btn-row>* { flex-basis:100%; }
}
@media(prefers-reduced-motion:no-preference) {
 .home-shortcuts button,.daily-appointments button { transition:background .15s ease,border-color .15s ease; }
 .home-shortcuts button:hover,.daily-appointments button:hover { background:#f1ebfc; border-color:var(--purple); }
}
/* Compact module labels stay whole at phone widths. */
.home-shortcuts button { flex-direction:column; align-items:flex-start; font-size:.9rem; }
.home-shortcuts button>span { overflow-wrap:normal; word-break:normal; }
.home-shortcuts button>.brand-icon { display:none; }
#app[data-view="home"] main>.stats-grid { display:none; }
#app[data-view="home"]:has([data-resume-visit]) .return-to-assessment { display:none; }
