.nav-label { display: none; }
.today-overview, .today-records, .history-overview, .settings-intake { display: contents; }

@media (min-width: 1024px) {
  #home-header nav .home-link { display: inline-flex; }
  #home-header nav .settings-link { width: auto; padding: 0 12px; }
  #home-header .settings-link svg { display: none; }
  #home-header .nav-label { display: inline; }
  #home-header nav a { padding-inline: 12px; border-radius: 14px; }
  #home-header nav a[aria-current="page"] { background: var(--card); text-decoration: underline; text-underline-offset: 4px; }
  #notice:not(:empty) { position: sticky; top: 16px; z-index: 5; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 4px 16px #001b1426; }

  main, main[data-page="historico"] { max-width: 1120px; padding: 32px; }
  #home-header { margin-bottom: 24px; }
  .page-toolbar .back-link { display: none; }
  .page-toolbar h1, #page-ajustes .page-toolbar h1 { font-size: 32px; }
  #page-hoje { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .today-overview, .today-records, .history-overview, .settings-intake { display: block; min-width: 0; }
  #today-title, #date { position: static; width: auto; height: auto; margin: 0 0 12px; overflow: visible; clip-path: none; white-space: normal; }
  #today-title { font-size: 32px; margin-bottom: 4px; }
  #date { font-size: 14px; margin-bottom: 20px; }
  #page-hoje .summary { padding: 24px; margin-bottom: 16px; }
  #page-hoje .hydration-metrics dt { font-size: 16px; white-space: normal; }
  #page-hoje #total { font-size: 44px; }
  #page-hoje #pending { font-size: 28px; }
  #page-hoje .pace-details dt, #page-hoje .pace-details dd { font-size: 14px; }
  .today-records { padding: 24px; border-radius: 18px; background: var(--card); }
  .today-records .records-heading { margin: 0 0 12px; }
  .today-records h2, #records .record strong { font-size: 16px; }
  #today-window, #records .record small { font-size: 14px; }
  #page-historico { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); column-gap: 24px; align-items: start; }
  #page-historico > .page-toolbar { grid-column: 1 / -1; margin-bottom: 20px; }
  .history-detail { min-width: 0; margin-top: 0; padding: 24px; }
  .history-detail h2 { font-size: 18px; }
  #detail-summary, #detail .record small, .history-caption { font-size: 14px; }
  #detail .record strong { font-size: 16px; }
  #chart[data-mode="month"] > small { font-size: 14px; }
  #chart[data-mode="month"] .day { min-height: 64px; }
  #chart[data-mode="week"] .bar-track { height: 240px; }
  .week-axis { height: 262px; font-size: 13px; }
  .week-tick { font-size: 16px; }
  #settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 28px; }
  #settings label, .portion-settings legend, #settings .reminder-settings legend { font-size: 16px; }
  #settings .hydration-hours { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #settings .reminder-settings { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
  #reminder-help, #settings .field-error { font-size: 14px; }
  #settings .settings-actions { grid-column: 1 / -1; justify-self: end; min-width: 300px; }
  #page-ajustes > h2 { margin: 24px 0 0; padding: 20px 24px 12px; border-radius: 18px 18px 0 0; background: var(--card); font-size: 18px; }
  #page-ajustes > .actions { padding: 0 24px 24px; border-radius: 0 0 18px 18px; background: var(--card); }
}
