/* Ruimere tekst en hoger contrast, op ieder apparaat. */
:root {
  --ink: #19372b;
  --muted: #405347;
  --line: #b5c1b8;
}
@media screen {
  html { overflow-x: hidden; }
  body { font-size: 18px; line-height: 1.65; }
  label, input, textarea, select, .button, .nav-button, .text-button,
  .recent-detail strong, .login-story p, .login-card > p,
  .empty-state, .error, .reviewer-notice, dialog p {
    font-size: 18px;
  }
  input, textarea, select {
    min-height: 52px;
    border: 1.5px solid #607668;
    line-height: 1.5;
    padding: 12px;
  }
  input:focus, textarea:focus, select:focus {
    border-color: #19372b;
    outline: 3px solid #aa714d;
    outline-offset: 2px;
    box-shadow: none;
  }
  ::placeholder { color: #516457; font-size: 18px; opacity: 1; }
  .eyebrow, .sidebar-label, .sidebar-bottom small, .topbar,
  .optional, .card-heading p, .quick-picks button, .save-note,
  .today-card .eyebrow, .today-card p, .today-summary,
  .list-heading .eyebrow, .recent-detail small, .recent-detail p,
  .recent-edit, .recent-card > .text-button, .page-footer,
  .stat .eyebrow, .stat span, .legend, .day-column small,
  .chart-note, .overview-card .list-heading p, th, td small,
  .table-actions button, .free-tag, .backup-row, .soft-note,
  .login-story small, .login-card small, .private-badge, #toast {
    font-size: 16px;
    color: var(--muted);
  }
  .eyebrow, .sidebar-label, .list-heading .eyebrow, .stat .eyebrow {
    letter-spacing: .6px;
    line-height: 1.6;
  }
  .page-heading p, .sidebar-note, .mode-switch button,
  .form-actions > .button, .overview-actions .button,
  .period-fields input, table, td, .mobile-nav button {
    font-size: 18px;
  }
  .page-heading p { max-width: 48ch; }
  .sidebar-note, .nav-button, .recent-detail small, .recent-detail p,
  .recent-edit, .today-card p, .today-summary, .page-footer,
  .login-story p, .missing-row, .mobile-nav button, .soft-note {
    color: var(--muted);
  }
  .sidebar { width: 264px; }
  main { margin-left: 264px; min-width: 0; overflow-x: clip; }
  .card { min-width: 0; }
  .chart-scroll, .table-scroll { max-width: 100%; }
  .sidebar-label { margin-top: 32px; margin-left: 0; }
  .nav-button { gap: 10px; padding: 13px 10px; min-height: 56px; }
  .sidebar-note { margin: auto 0 20px; padding-top: 20px; }
  .sidebar-bottom { padding-top: 15px; font-size: 16px; gap: 8px; }
  .sidebar-bottom > div { min-width: 0; }
  .sidebar-bottom small { font-size: 16px; line-height: 1.4; }
  .icon-button { min-width: 44px; min-height: 44px; }
  .card-heading { align-items: start; }
  .card-heading h2, .recent-card h2 { font-size: 28px; }
  .section-number { font-size: 18px; }
  .card-heading p { margin-top: 8px; }
  .button { min-height: 52px; padding: 12px 16px; line-height: 1.5; }
  .primary, #toast { color: #fff; }
  .danger { color: #fff; }
  .outline { border: 1.5px solid #607668; }
  .mode-switch { background: #dce6d7; }
  .mode-switch button { min-height: 52px; color: #314f3d; line-height: 1.5; }
  .mode-switch .selected { color: #19372b; outline: 1px solid #607668; }
  .quick-picks { gap: 9px; }
  .quick-picks button { min-height: 44px; padding: 7px 12px; border-color: #80947e; color: #314f3d; }
  .form-row { gap: 18px; }
  .save-note { text-align: left; }
  .recent-edit { min-height: 44px; padding: 7px; text-decoration: underline; }
  .recent-detail p { margin-top: 8px; line-height: 1.65; }
  .recent-detail strong { font-weight: 650; }
  .recent-entry { gap: 10px; padding: 20px 0; }
  .recent-card > .text-button { min-height: 52px; }
  .today-card { padding-top: 26px; }
  .today-card h2 { font-size: 38px; }
  .today-summary { padding: 18px 0; }
  .topbar { height: auto; min-height: 80px; gap: 24px; padding: 16px 0; }
  .private-badge { gap: 8px; }
  .page-heading { align-items: start; }
  .page-heading > .button { flex-shrink: 0; font-size: 18px; }
  .period-panel { align-items: start; flex-wrap: wrap; }
  .period-fields { min-width: 0; }
  .period-fields label { min-width: 0; }
  .stats { gap: 16px; }
  .stat { padding: 22px 20px; }
  .stat .eyebrow { min-height: 0; }
  .stat strong { font-size: 44px; }
  .chart-card .list-heading { align-items: start; flex-wrap: wrap; }
  .legend { gap: 12px 20px; }
  .legend i { width: 12px; height: 12px; border: 1px solid #405347; }
  .day-chart { height: 170px; gap: 10px; min-width: 600px; }
  .day-column { min-width: 18px; }
  .day-column small { height: 26px; }
  .chart-note { line-height: 1.65; }
  .overview-card .list-heading { flex-wrap: wrap; }
  .overview-actions { flex-wrap: wrap; }
  table { min-width: 780px; }
  th { color: #19372b; font-weight: 650; white-space: normal; }
  td { line-height: 1.6; }
  .table-actions { flex-wrap: wrap; }
  .table-actions button { min-height: 44px; padding: 8px; text-decoration: underline; }
  .table-actions .delete { color: #84301f; }
  .free-tag { color: #314f3d; font-weight: 600; }
  .backup-row { align-items: start; flex-wrap: wrap; }
  .login-card { max-width: 440px; }
  .login-card small, .login-story small { text-align: left; }
  .login-story p { max-width: 36ch; }
  .page-footer { gap: 20px; flex-wrap: wrap; }
  #toast { line-height: 1.5; }
}
@media screen and (max-width: 1150px) {
  .sidebar { width: 224px; padding: 26px 16px; }
  main { margin-left: 224px; }
  .sidebar-note { font-size: 16px; }
  .sidebar-bottom { flex-wrap: wrap; }
  .diary-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr; }
  .today-card { display: none; }
  .page-heading > .button { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; }
  .stat strong { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
}
@media screen and (max-width: 850px) {
  .sidebar { width: 212px; }
  main { margin-left: 212px; }
  .sidebar-label { font-size: 16px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-story { min-height: initial; padding: 30px; }
  .login-story > div { margin-top: 26px; }
  .login-story h1 { font-size: 42px; }
  .login-story h1 br { display: none; }
  .login-story small { display: none; }
  .login-card { max-width: 520px; }
  .period-fields { width: 100%; flex-wrap: wrap; }
}
@media screen and (max-width: 600px) {
  .sidebar { display: none; }
  main { margin-left: 0; padding: 0 16px 110px; }
  .topbar { min-height: 60px; padding: 14px 0; }
  .topbar > span:first-child { display: none; }
  .private-badge { font-size: 16px; }
  .page-heading h1 { font-size: 38px; overflow-wrap: anywhere; }
  .page-heading p { font-size: 18px; max-width: none; }
  .page-heading .eyebrow { font-size: 16px; }
  .entry-card, .recent-card { padding: 22px 18px; }
  .card-heading { gap: 10px; }
  .card-heading h2 { font-size: 27px; }
  .card-heading p { font-size: 16px; }
  .optional { display: block; margin-left: 0; }
  .mode-switch { gap: 6px; }
  .mode-switch button { font-size: 17px; padding: 12px 5px; }
  .form-actions > .button { font-size: 18px; gap: 10px; }
  .mobile-nav { padding: 8px 6px max(8px,env(safe-area-inset-bottom)); gap: 4px; }
  .mobile-nav button { font-size: 17px; padding: 12px 4px; min-height: 52px; color: #314f3d; }
  .period-fields { grid-template-columns: 1fr; }
  .period-fields .button { grid-column: 1; }
  .period-fields input { font-size: 18px; padding: 12px; }
  .stat { padding: 18px; }
  .stat .eyebrow { font-size: 16px; letter-spacing: .6px; }
  .stat span { font-size: 16px; }
  .legend { font-size: 16px; }
  .overview-actions .button { font-size: 18px; flex-basis: 100%; }
  .page-footer { font-size: 16px; }
  .login-story p { font-size: 18px; }
  .login-side { padding: 30px 22px; }
  #toast { bottom: 90px; }
}
@media screen and (max-width: 420px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .recent-entry { flex-wrap: wrap; }
  .recent-edit { margin-left: 44px; }
}
@media print {
  body { font-size: 12pt; }
  table, th, td, td small { font-size: 11pt; line-height: 1.5; }
  th, td { padding: 9px 8px; }
  .stat .eyebrow, .stat span, .overview-card .list-heading p { font-size: 10pt; color: #111; }
  .free-tag { font-size: 11pt; color: #111; }
  .missing-row { color: #333; }
}
