/* Tuli usability pass: preserve the warm identity, make daily work readable. */
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--sun); color: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 3px; }
#app:focus, #dialogTitle:focus { outline: none; }
button { touch-action: manipulation; }
button:disabled { opacity: .55; cursor: not-allowed; }
.small-button, .filter-chip, .text-button, .icon-button, .segment { min-height: 44px; }
.nav-caption { color: #bacdc5; }
.nav-item { transition: none; }
.nav-item > span:nth-child(2) { color: #c0d0c8; }
.nav-item.is-active > span:nth-child(2) { color: var(--ink); }
.sidebar { scrollbar-width: thin; scrollbar-color: #6d8c80 transparent; }
.sidebar-footer { margin-top: 24px; }
.demo-view-select { margin-left: auto; margin-right: 14px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.demo-view-select select { min-height: 38px; padding: 6px 30px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background-color: rgba(255,253,248,.78); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.page-content { padding-top: 28px; padding-bottom: 38px; }
.page-heading { margin-bottom: 18px; align-items: center; gap: 20px; }
.page-heading h1 { margin: 0; font-size: clamp(29px, 3.2vw, 40px); }
.page-heading > div, .section-header > div, .main-column, .content-card, .caregiver-tips, .schedule-controls { min-width: 0; }
.subtitle, .day-hero-content > p:not(.eyebrow) { font-size: 15px; line-height: 1.6; }
.metric-note, .field-hint { font-size: 13px; line-height: 1.55; }
.metric-card { min-height: 160px; }
.metric-value { font-size: 32px; }
.data-table { max-width: 100%; overflow-x: auto; }
.data-row { min-width: 650px; }
.data-table:focus-visible { outline-offset: -3px; }
.section-header, .parent-plan-head { flex-wrap: wrap; gap: 16px; }
.parent-days { max-width: 560px; margin-bottom: 20px; }
.parent-hero h2 { max-width: 25ch; margin: 10px 0 14px; font-family: Alegreya, serif; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; }
.parent-hero > .eyebrow { color: var(--ink); }
.now-clock > span, .now-clock > small { color: #d3e5de; }
.schedule-entry-state small { color: var(--ink-soft); opacity: 1; }
.preview-plan-item small { color: #bfd1c8; opacity: 1; }
.parent-hero-status { line-height: 1.5; white-space: normal; }
.parent-care-summary { margin-bottom: 20px; }
.care-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.care-facts > div { display: grid; gap: 5px; padding: 12px 0; }
.care-facts small, .care-record small { color: var(--ink-soft); font-size: 13px; }
.care-facts strong { font-size: 17px; }
.care-record { display: flex; gap: 16px; border-top: 1px solid var(--line); padding: 15px 0; }
.care-record time { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.care-record p { margin: 5px 0; white-space: pre-wrap; }
.care-record strong, .care-record small { display: block; }
.parent-plan-track { grid-auto-columns: minmax(180px, 1fr); }
.parent-plan-step strong { max-width: none; }
.parent-meal-copy { overflow-wrap: anywhere; }
.parent-meal-photo img { aspect-ratio: 4/3; }
.parent-meal-copy em { color: var(--green); }
.daily-child-row { grid-template-columns: minmax(160px,1fr) minmax(0,1.4fr) minmax(0,1.4fr); align-items: start; }
.daily-child-row .segmented { flex-wrap: wrap; gap: 3px; }
.segment { flex: 1 1 40%; padding: 7px 9px; }
.field input, .field select, .field textarea { font-size: 16px; min-height: 46px; }
.field input[aria-invalid=true], .field textarea[aria-invalid=true] { border: 2px solid var(--coral-dark); }
.modal { max-height: calc(100dvh - 32px); }
.modal[open] { display: flex; flex-direction: column; }
#modalContent { min-height: 0; overflow-y: auto; }
.modal-body { max-height: none; }
.modal-footer { position: sticky; bottom: 0; background: var(--card); z-index: 2; flex-wrap: wrap; }
.toast { max-width: min(560px,calc(100vw - 32px)); white-space: normal; }
.menu-open { overflow: hidden; }
.page-enter { animation: none; }
.field-error { display: block; color: var(--coral-dark); margin-top: 6px; font-size: 13px; }
.messages-layout > *, .message-list, .message-card, .message-compose { min-width: 0; }
.thread-list, .thread-item > span { min-width: 0; }
.thread-item { width: 100%; grid-template-columns: 41px minmax(0,1fr) auto; }
.parent-menu-list .status-tag { white-space: normal; }
@media (max-width: 1100px) {
  .groups-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) {
  .care-phone { width: 100%; }
  .topbar { position: static; }
}
@media (max-width: 620px) {
  .page-content { padding-top: 20px; padding-bottom: 38px; }
  .page-heading { min-height: 44px; margin-bottom: 14px; align-items: center; flex-direction: row; }
  .page-heading h1 { font-size: 29px; }
  .page-heading > button { width: auto; }
  .page-heading .primary-button { padding: 9px 11px; }
  .demo-view-select { margin-right: 7px; }
  .demo-view-select > span { display: none; }
  .demo-view-select select { width: 94px; padding-left: 8px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .day-hero { min-height: 0; }
  .metric-card { min-height: 128px; }
  .parent-meal-card { grid-template-columns: minmax(0,1fr); }
  .parent-meal-photo { height: 190px; }
  .parent-meal-copy { padding: 18px; }
  .parent-meal-card > b { display: none; }
  .parent-meal-copy strong { font-size: 24px; }
  .parent-plan-track { grid-auto-columns: auto; }
  .week-switcher { grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; }
  .day-tab { padding: 9px 5px; }
  .care-facts { grid-template-columns: 1fr; gap: 0; }
  .daily-child-row { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); margin: auto; }
  .modal-footer > button { flex: 1 1 130px; }
  .form-grid, .activity-status-picker, .parent-actions { min-width: 0; }
  .attention-item { gap: 10px; }
  .attention-item > span:nth-child(2) { min-width: 0; }
  .status-tag, .meal-trust-chip { white-space: normal; }
  .schedule-summary { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
