/* Shared interface contract: spacing, type, navigation and action hierarchy. */
:root{--ui-space:24px;--ui-radius:18px;--ui-body:18px;--ui-label:16px;--ui-heading:32px;--ui-nav:272px}
body{font-size:var(--ui-body);line-height:1.55}
body,button,input,select,textarea,summary,h1,h2,h3,h4{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
.app-shell :is(h1,h2,h3,h4){color:var(--ink)}
html[data-theme="dark"] .app-shell :is(h1,h2,h3,h4){color:var(--ink)}
.page{max-width:1480px;margin-inline:auto;padding:28px clamp(20px,3vw,44px)}
.page :is(.feature-heading,.health-heading,.settings-heading,.caregiver-banner,.welcome-row){padding:0 0 24px;margin:0 0 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;min-height:0;gap:20px;align-items:center}
.page :is(.feature-heading,.health-heading,.settings-heading,.caregiver-banner,.welcome-row)::before,.page .welcome-row::after{display:none}
.page h1,.page #homeGreeting{font-size:clamp(28px,2.8vw,36px);line-height:1.2;letter-spacing:-.025em;margin:6px 0 8px}
.page h2{font-size:24px;line-height:1.3}.page h3{font-size:21px;line-height:1.35}
.page :is(.feature-heading,.health-heading,.caregiver-banner,.welcome-row) p{font-size:18px;max-width:65ch;margin:4px 0}
.page .eyebrow{font-size:13px!important;letter-spacing:.1em}
.page :is(.today-card,.care-card,.update-card,.family-care-panel,.family-list-card,.contact-card,.school-card,.note-card){border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:0 2px 8px #00000004}
.page :is(.primary-button,.secondary-button,.text-button),.modal button{min-height:44px;font-size:17px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
.home-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.home-shortcuts button{background:var(--surface);color:var(--ink)}
#home-page .welcome-row{padding:0 0 24px;margin:0 0 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;min-height:0}
#home-page .welcome-row h1{font-size:36px;line-height:1.2}
#home-page .welcome-row::before,#home-page .welcome-row::after{display:none}
#home-page .card-header h2,#home-page .section-heading h2{font-size:24px}
#home-page .text-button,#home-page .health-empty p{font-size:17px}
#home-page .home-reminder-link{display:flex;flex-direction:column;text-align:left;width:100%;align-items:flex-start;gap:5px;padding:12px 0}
#home-page .home-reminder-link span{color:var(--muted);font-weight:400}
.app-shell .page :is(.feature-heading,.health-heading,.settings-heading,.caregiver-banner){background:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
.home-event-link .time{min-width:68px}.home-event-link .time strong{font-size:19px}
.family-care-hero{padding:0;margin:0 0 24px;border:0;background:none;justify-content:flex-end}
.family-care-hero>div{display:none}
.family-care-layout{grid-template-areas:"schedule essentials" "handoffs contacts";align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.family-care-layout:has(.family-handoffs-panel>.family-handoff-row){grid-template-areas:"handoffs handoffs" "schedule essentials" "contacts contacts"}
.family-care-layout .family-child-card{padding:16px;border-radius:14px;background:var(--paper)}
.family-care-layout .family-child-card h3{font-size:21px}
.family-care-layout .family-care-panel{padding:24px}
.care-history{margin-top:20px}.care-history summary{padding:12px 0;cursor:pointer;font-weight:700}
.record-overflow{position:relative}.record-overflow summary{list-style:none;cursor:pointer;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;font-size:16px}
.record-overflow>div{padding:8px;display:grid;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.record-overflow:not([open])>div{display:none}.record-overflow button{width:100%;min-width:80px;min-height:44px;font-size:16px;color:var(--ink)}
#home-page .home-renewal-link{display:flex;flex-direction:column;text-align:left;width:100%;align-items:flex-start;gap:5px;padding:12px 0}
#home-page .home-renewal-link span{color:var(--muted);font-weight:400}
.lists-page .lists-grid{align-items:start}
.lists-page .family-list-item{grid-template-columns:44px minmax(0,1fr) auto;gap:16px;padding-block:16px}
.lists-page .list-check{width:44px;height:44px;min-width:44px;min-height:44px}
.lists-page .list-item-details{min-height:56px;grid-template-columns:56px minmax(0,1fr)}
.lists-page .list-item-details img{width:56px;height:56px}
.lists-page .list-item-details:not(:has(img)){grid-template-columns:minmax(0,1fr)}
.list-item-actions{position:relative}.list-item-actions summary{cursor:pointer;padding:10px;min-height:44px;list-style:none}
.list-item-actions[open]{z-index:2}.list-item-actions .delete-list-item{position:absolute;right:0;top:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:16px;white-space:nowrap;box-shadow:var(--modern-shadow)}
.list-item-actions{grid-column:3}.page .list-empty{padding:24px 12px}
.nav-icon svg{width:22px;height:22px;display:block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topbar .user-card{border:0;margin:0;padding:0;flex:none}.topbar .account-menu-identity strong{color:var(--ink)}.topbar .account-menu-identity small{color:var(--muted)}
.topbar .account-menu-item{color:var(--ink);font-size:18px;min-height:48px}.topbar .account-sign-out{color:#b84d40}
.topbar .account-navigation-menu{z-index:120;right:0;background:var(--surface);color:var(--ink)}
.topbar .account-navigation>summary{width:52px;height:52px}.topbar .user-avatar{width:44px;height:44px;font-size:16px;background:var(--soft-blue);color:var(--ink)}
.sidebar-toggle{display:none}
.topbar .account-navigation-menu{bottom:auto;left:auto;height:auto;max-height:calc(100dvh - 160px);overflow-y:auto}
.topbar .account-navigation-menu .account-menu-item{display:flex;width:100%;align-items:center;justify-content:flex-start;gap:12px;padding:12px;border-radius:10px;text-align:left}
.topbar .account-navigation-menu .account-menu-item:hover{background:var(--soft-blue)}
@media(min-width:701px){
 .app-shell{display:block}.app-shell>main{margin-left:var(--ui-nav);min-width:0}
 .app-shell>.sidebar{position:fixed;inset:0 auto 0 0;width:var(--ui-nav);height:100dvh;padding:24px 16px;display:flex;flex-direction:column;align-items:stretch;overflow-y:auto;gap:12px;box-shadow:none}
 .sidebar .brand span:last-child{display:inline;font-size:22px}.sidebar .brand{padding:0 8px;margin-bottom:4px}
 .sidebar .workspace-picker{display:flex;margin:4px 0 12px;width:100%;gap:10px}.sidebar .workspace-picker strong{font-size:16px;white-space:normal}.sidebar .workspace-picker small{font-size:12px}
 .sidebar .primary-navigation{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex:0 0 auto;gap:4px}
 .sidebar .nav-item{width:100%;font-size:18px;min-height:48px;white-space:normal;padding:10px 12px;gap:12px}.sidebar .nav-item span{display:block;flex:0 0 22px}
 .sidebar-bottom{display:block;margin:0}.more-navigation summary{font-size:18px;padding:12px}.more-navigation-menu{position:static;display:grid;grid-template-columns:1fr;width:100%;padding:0;border:0;box-shadow:none;background:transparent!important}
 .more-navigation-menu .nav-item{color:#c8dcd7}.more-navigation:not([open])>.more-navigation-menu{display:none}
 .topbar{position:sticky;top:0;z-index:60;height:auto;min-height:80px;padding:12px 24px;gap:12px}.sidebar-toggle{display:grid;place-items:center;flex:none}.global-search{flex:1;min-width:100px}.global-search input{font-size:17px}
 html.nav-collapsed .app-shell>.sidebar{transform:translateX(-100%)}html.nav-collapsed .app-shell>main{margin-left:0}
}
@media(max-width:1000px){.topbar .invite-button{display:none}.family-care-layout{grid-template-columns:1fr;grid-template-areas:"schedule" "essentials" "handoffs" "contacts"}.family-care-layout:has(.family-handoffs-panel>.family-handoff-row){grid-template-areas:"handoffs" "schedule" "essentials" "contacts"}.overview-grid{grid-template-columns:1fr}}
@media(max-width:700px){.page{padding:20px 16px}.topbar{padding:10px 12px;gap:8px}.global-search input{font-size:16px}.page :is(.feature-heading,.health-heading,.caregiver-banner,.welcome-row){flex-direction:column;align-items:stretch}.home-shortcuts{display:grid;grid-template-columns:1fr}.family-care-layout .family-care-panel{padding:18px}.lists-page .family-list-item{grid-template-columns:44px minmax(0,1fr);gap:12px}.lists-page .claim-list-item{grid-column:2}.list-item-actions{grid-column:2;justify-self:end}.topbar .account-navigation-menu{position:fixed;top:76px;right:12px;width:min(300px,calc(100vw - 24px))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Mobile actions take their own row instead of squeezing record text. */
.i18n-label{display:contents!important;font:inherit!important;color:inherit}
@media(max-width:1000px){
 .topbar .invite-button:not([hidden]){display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:48px;min-height:44px;padding:8px;font-size:0}
 .topbar .invite-button::before{content:'Invite';font-size:14px}
 html[lang^="es"] .topbar .invite-button::before{content:'Invitar'}
}
@media(max-width:700px){
 #settings-page .security-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 0}
 #settings-page .security-row>strong{text-align:left;white-space:normal;max-width:100%}
 #settings-page .security-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 #settings-page .security-actions button{width:100%;min-height:48px;text-align:left;white-space:normal;margin:0}
 #settings-page .settings-submenu-content{padding:18px}
 #settings-page .settings-submenu summary>span{min-width:0}
}
.sidebar .more-navigation[open]>summary{display:none}
.sidebar .less-navigation{min-height:48px;cursor:pointer}
html .app-shell #coordinationContent>section{
 background:var(--card);border:1px solid var(--line);border-radius:20px;
 padding:24px;margin:0 0 24px;min-width:0;
}
html:not([data-theme="dark"]) .app-shell #coordinationContent>section{
 background:#fff;border-color:#d1dfd8;box-shadow:0 3px 14px rgba(32,65,53,.055);
}
@media(max-width:700px){
 html .app-shell #coordinationContent>section{padding:20px}
 #coordinationContent .section-row{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-bottom:18px}
 #coordinationContent .section-row h2{font-size:24px;line-height:1.25;margin:8px 0}
 #coordinationContent .section-row button{align-self:flex-start;max-width:100%;white-space:normal}
 #coordinationContent .review-item{background:var(--card);padding:14px}
 #coordinationContent .review-item.reviewed{opacity:1}
}
/* Touch Safari retains hover after tapping; selected state must win. */
html .health-tab.active,html .health-tab.active:hover{background:var(--teal);border-color:var(--teal);color:#fff}
html[data-theme="dark"] .health-tab.active,html[data-theme="dark"] .health-tab.active:hover{color:#17211f}
@media(max-width:700px){
 .sidebar .more-navigation>summary{display:flex;align-items:center;gap:12px;padding:12px;min-height:44px;font-size:18px;cursor:pointer;color:#c8dcd7}
 html .sidebar .more-navigation-menu,html[data-theme="dark"] .sidebar .more-navigation-menu{position:static;width:100%;padding:0;background:transparent;box-shadow:none;border:0}
 .sidebar .more-navigation:not([open])>.more-navigation-menu{display:none}
 .page .health-panel-heading{flex-direction:column;align-items:stretch;gap:16px}
 .page .health-panel-heading .primary-button{align-self:stretch;white-space:normal;max-width:100%}
 .page .health-content{min-width:0;padding:20px}
 .page .health-record{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px;min-width:0}
 .page .health-record>div{min-width:0;overflow-wrap:anywhere}
 .page .health-record .record-actions{grid-column:1/-1;justify-self:end;max-width:100%}
 .page .review-item{grid-template-columns:24px minmax(0,1fr);gap:12px}
 .page .review-item>div{min-width:0;overflow-wrap:anywhere}
 .page .review-item .mark-reviewed{grid-column:2;justify-self:start;max-width:100%;white-space:normal}
}

/* Home-only pilot: quiet surfaces, spacious actions, compact empty states. */
html #home-page .welcome-row,html[data-theme="dark"] #home-page .welcome-row{
 background:transparent;border:0;box-shadow:none;overflow:visible;
 padding:8px 0;margin:0 0 28px;min-height:0;gap:24px;
}
html #home-page .welcome-row>div>p:last-child{color:var(--muted)}
html #home-page .welcome-row .primary-button{box-shadow:none}
html #home-page :is(.today-card,.care-card,.update-card,.child-card,.expense-home-card,.home-handoffs-card){
 border:0;background:var(--card);border-radius:20px;
 box-shadow:0 4px 20px rgba(24,61,54,.045);min-height:0;
}
html[data-theme="dark"] #home-page :is(.today-card,.care-card,.update-card,.child-card,.expense-home-card,.home-handoffs-card){
 background:#192622;box-shadow:none;
}
/* Light-mode middle ground: defined card edges without heavy outlines. */
html:not([data-theme="dark"]) .app-shell{
 background:#edf3f0;
}
/* Shared light surfaces across portal sections; controls retain their own borders. */
html:not([data-theme="dark"]) .app-shell .page :is(
 .today-card,.care-card,.update-card,.child-card,.expense-home-card,.home-handoffs-card,
 .family-care-panel,.family-child-card,.family-list-card,.contact-card,.school-card,
 .note-card,.settings-card,.profile-card,.member-list,.mini-calendar,.agenda,
 .health-content,.health-record,.documents-summary,.document-space-card,
 .expense-summary>article,.expense-card,.modern-care-section,
 .care-block:not(.urgent),.care-handoff,.care-plan-section,.care-report,.care-reports-section,
 .notes-toolbar,.list-suggestions,.activity-item,.archive-item
){
 border:1px solid #d1dfd8;background:#fff;
 box-shadow:0 3px 14px rgba(32,65,53,.055);
}
html:not([data-theme="dark"]) #home-page :is(.today-card,.care-card,.update-card,.child-card,.expense-home-card,.home-handoffs-card){
 border:1px solid #d1dfd8;background:#fff;
 box-shadow:0 3px 14px rgba(32,65,53,.055);
}
html #home-page :is(.security-home-notice,.family-setup-banner){
 border:0;background:color-mix(in srgb,var(--teal) 7%,var(--card));
 box-shadow:none;margin:0 0 24px;padding:20px 24px;
}
html #home-page .home-shortcuts{margin:0 0 28px;gap:12px}
html #home-page .home-shortcuts button{
 border:0;background:color-mix(in srgb,var(--teal) 8%,var(--card));
 border-radius:14px;padding:14px 20px;min-height:48px;
}
html:not([data-theme="dark"]) #home-page .home-shortcuts button{background:#e0ece6}
html #home-page .overview-grid{margin-top:0;gap:24px;align-items:start}
html #home-page :is(.today-card,.care-card,.update-card){padding:24px}
html #home-page .health-empty,html[data-theme="dark"] #home-page .health-empty{
 border:0;background:transparent;box-shadow:none;min-height:0;
 padding:20px 0 4px;text-align:left;align-items:flex-start;justify-content:flex-start;
}
html #home-page .health-empty h3{font-size:18px;margin:0 0 6px}
html #home-page .health-empty p{margin:0;color:var(--muted)}
html #home-page .count-pill{background:transparent;color:var(--muted)}
html #home-page .card-header{gap:16px;align-items:flex-start}
@media(max-width:700px){
 html #home-page .welcome-row h1{font-size:30px}
 html #home-page :is(.today-card,.care-card,.update-card,.security-home-notice,.family-setup-banner){padding:20px}
 html #home-page .card-header{flex-wrap:wrap}
}
/* Compact calendar view controls: selection stays visible in both themes. */
.calendar-view-switch{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--soft-blue);width:fit-content;margin:0 0 16px;max-width:100%}
.calendar-view-switch button{border:0;background:transparent;color:var(--text);border-radius:10px;padding:10px 18px;min-height:44px;font:inherit;font-weight:600;cursor:pointer}
.calendar-view-switch button[aria-pressed="true"]{background:var(--teal);color:white}
.calendar-view-switch button:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.calendar-layout[data-view="agenda"],.calendar-layout[data-view="week"]{grid-template-columns:minmax(0,1fr)}
.calendar-layout .mini-calendar[hidden]{display:none!important}
@media(max-width:700px){.calendar-view-switch{width:100%}.calendar-view-switch button{flex:1;padding:10px 8px}.calendar-layout[data-view="week"] .calendar-day{min-width:0;overflow:hidden}.calendar-layout[data-view="week"] .calendar-event{display:none}}
/* Keep connection setup out of the day-to-day calendar controls. */
#calendar-page details.calendar-connections{display:block;padding:14px 18px;margin-bottom:18px}
#calendar-page details.calendar-connections>summary{cursor:pointer;font-weight:600;min-height:24px}
#calendar-page details.calendar-connections:not([open])>*:not(summary){display:none}
#calendar-page details.calendar-connections[open]>div{margin-top:16px}

/* Phone calendar: compact dates, readable agenda, secondary controls on demand. */
.agenda-day-heading{margin:24px 0 8px;font-size:17px;color:var(--teal)}
.calendar-layout[data-view="agenda"] .mini-calendar{padding:8px}
.calendar-layout[data-view="agenda"] .calendar-day{min-height:48px}
.calendar-layout[data-view="agenda"] .calendar-event,.calendar-layout[data-view="agenda"] .calendar-day small{display:none}
.calendar-layout[data-view="agenda"] .agenda-item{grid-template-columns:76px minmax(0,1fr);gap:12px}
.agenda-time-column{font-size:15px;font-weight:600;line-height:1.5;padding-top:12px}
.agenda-time-column small{display:block;font-size:13px;font-weight:400;color:var(--muted)}
.agenda-event-details{min-width:0;border-left:3px solid var(--teal);padding-left:12px}
.agenda-event-details>summary{list-style:none;cursor:pointer;padding:10px 0;min-height:44px}
.agenda-event-details>summary::-webkit-details-marker{display:none}
.agenda-event-details>summary strong{display:block;font-size:18px;line-height:1.4}
.agenda-event-details>summary span{display:block;font-size:15px;line-height:1.5;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.agenda-event-details:not([open])>*:not(summary){display:none!important}
.agenda-event-details .record-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.agenda-event-details .record-actions button{min-height:44px;max-width:100%}
.agenda-event-details .agenda-expanded-content h3{display:none}
.agenda-conflict .agenda-event-details{border-left-color:var(--coral)}
#calendar-page .calendar-layout[data-view="agenda"] .agenda-item{grid-template-columns:72px minmax(0,1fr);gap:10px}
#calendar-page .calendar-layout[data-view="agenda"] .agenda{max-height:55dvh;overflow-y:auto;overscroll-behavior-y:contain;scroll-behavior:smooth}
#calendar-page .agenda-event-details .record-actions{display:flex;flex-wrap:wrap;gap:8px}
#calendar-page .agenda-event-details .record-actions>.secondary-button{width:100%;white-space:normal}
@media(max-width:700px){
  #calendar-page{display:none}
  #calendar-page.active{display:flex;flex-direction:column}
  #calendar-page>.feature-heading{order:0;flex-direction:row!important;align-items:center!important;text-align:left;gap:12px;margin-bottom:20px;padding-bottom:0;border-bottom:0}
  #calendar-page>.feature-heading>div{min-width:0}
  #calendar-page>.feature-heading .eyebrow,#calendar-page>.feature-heading>div>p:last-child{display:none}
  #calendar-page>.feature-heading h1{font-size:28px;line-height:1.2}
  #calendar-page #addEventBtn{padding:10px 14px;min-height:44px;white-space:nowrap;font-size:16px;width:auto;flex:none}
  #calendar-page>.calendar-view-switch{order:1;margin:0 0 16px;width:100%;box-sizing:border-box}
  #calendar-page>.calendar-toolbar{order:2;display:grid;grid-template-columns:44px minmax(0,1fr) 44px auto;gap:6px;margin:0 0 16px}
  #calendar-page>.calendar-toolbar>span{display:none}
  #calendar-page #calendarMonthTitle{grid-column:2;grid-row:1;text-align:center;font-size:17px;line-height:1.35;margin:0;min-width:0}
  #calendar-page #previousMonthBtn{grid-column:1;grid-row:1}
  #calendar-page #nextMonthBtn{grid-column:3;grid-row:1}
  #calendar-page .calendar-toolbar button{min-width:44px;min-height:44px;padding:8px;font-size:16px}
  #calendar-page>.calendar-layout{order:3;grid-template-columns:minmax(0,1fr);gap:20px}
  #calendar-page>details.calendar-connections{order:4;margin:24px 0 0;padding:14px 16px;background:transparent;box-shadow:none;font-size:15px}
  #calendar-page .mini-calendar{padding:8px;border-radius:18px}
  #calendar-page .weekday-row{background:transparent;border:0}
  #calendar-page .weekday-row span{padding:8px 0;font-size:12px}
  #calendar-page .month-grid{gap:2px}
  #calendar-page .calendar-day{min-height:48px;min-width:0;padding:0;border:0;border-radius:10px;background:transparent}
  #calendar-page .calendar-day>span:first-child{position:static;width:32px;height:32px;margin:2px auto;font-size:16px}
  #calendar-page .calendar-day .calendar-event,#calendar-page .calendar-day small{display:none}
  #calendar-page .calendar-day[data-has-events="true"]:after{content:'';display:block;width:4px;height:4px;border-radius:50%;background:var(--teal);margin:0 auto 4px}
  #calendar-page .agenda{padding:18px;min-width:0}
  #calendar-page .agenda>h2{font-size:21px;line-height:1.35;margin-bottom:12px}
  #calendar-page .calendar-layout:not([data-view="month"]) .agenda>h2{display:none}
  #calendar-page .agenda-item{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:18px 0;align-items:start}
  #calendar-page .agenda-item h3{font-size:18px;line-height:1.4;margin:0 0 6px}
  #calendar-page .agenda-item p,#calendar-page .agenda-item .child-chip{font-size:15px;line-height:1.55;white-space:normal}
  #calendar-page .agenda-date{height:48px;background:var(--soft-blue);border:0}
  #calendar-page .agenda-date strong{font-size:18px}
  #calendar-page .agenda-date span{font-size:10px}
  #calendar-page .agenda-day-heading:first-child{margin-top:8px}
  #calendar-page .agenda-options{grid-column:2;min-width:0}
  #calendar-page .agenda-options>summary{width:fit-content;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--teal);font-size:15px;font-weight:600;cursor:pointer;list-style:none}
  #calendar-page .agenda-options>summary::-webkit-details-marker{display:none}
  #calendar-page .agenda-options>summary:after{content:'＋'}
  #calendar-page .agenda-options[open]>summary:after{content:'−'}
  #calendar-page .agenda-options:not([open])>.record-actions{display:none}
  #calendar-page .agenda-options[open] .record-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;min-width:0;max-width:100%}
  #calendar-page .agenda-options button{min-height:44px;width:auto!important;min-width:0;max-width:100%;font-size:15px;white-space:normal;padding:8px}
  #calendar-page .agenda-options .secondary-button{grid-column:1/-1}
  #calendar-page .day-empty{min-height:110px}
  #calendar-page .day-empty h3{font-size:18px}
  #calendar-page .day-empty p{font-size:15px}
}
.profile-language-card { display: grid; gap: 16px; }
.profile-language-card h2 { margin: 0; }
.profile-language-card label { display: grid; gap: 10px; color: var(--muted); }
.profile-language-card select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; }
.profile-language-card button { min-height: 48px; white-space: normal; }
.profile-language-card [role=status]:empty { display: none; }
.content-translation { margin: 8px 0 16px; padding: 10px 12px; border-inline-start: 2px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.content-translation button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.content-translation p { margin: 8px 0 0; white-space: pre-wrap; }
.content-translation p:empty { display: none; }
.content-translation [role=status], .content-translation p:last-child { font-size: .875rem; }
:root .home-shortcuts{display:flex;justify-content:flex-end}
.nav-group-heading{padding:18px 14px 4px;font-size:.8rem;font-weight:700;color:inherit;opacity:.8}
.optional-fields{margin:14px 0;border-top:1px solid #789c9240;padding-top:12px}
.optional-fields>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
.simple-form-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}
.simple-form-actions>button{min-height:44px;flex:1}
.quick-add-more{grid-column:1/-1}
.quick-add-more>summary{min-height:44px;align-content:center;cursor:pointer;font-weight:600}
.quick-add-more>button{display:flex;width:100%;min-height:44px;margin-top:8px}
.quick-add-grid>[data-quick-add=documents]>strong,.quick-add-grid>[data-quick-add=lists]>strong{grid-column:2;align-self:center;white-space:normal}
.form-row>.optional-fields{grid-column:1/-1;width:100%}
.simple-form-actions>.modal-submit{margin-top:0;width:auto}
