.mobile-day-totals, .mobile-agenda { display: none; }
@media (max-width: 1000px) {
  .calendar-text-control, .calendar-legend .posted-key, .calendar-legend .predicted-key { display: none; }
  .calendar-legend > span:nth-child(n+3) { display: none; }
  .calendar { grid-auto-rows: minmax(72px, auto); }
  .calendar .day { min-height: 72px; padding: 5px 2px; text-align: center; }
  .calendar .day > :not(.day-number):not(.mobile-day-totals) { display: none !important; }
  .calendar .day-number { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 4px; font-size: .75rem; }
  .calendar .day.today { box-shadow: none; }
  .calendar .day.today .day-number { background: var(--green); color: var(--card); border-radius: 50%; }
  .calendar .day.agenda-selected { background: color-mix(in srgb, var(--green) 9%, var(--card)); box-shadow: inset 0 0 0 2px var(--green); }
  .calendar .day:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
  .mobile-day-totals { display: grid; gap: 3px; }
  .mobile-day-totals span { font-size: .75rem; line-height: 1.25; font-weight: 700; white-space: nowrap; letter-spacing: -.04em; }
  .mobile-day-totals .income { color: #08704c; }
  .mobile-day-totals .expense { color: #ad3b2e; }
  body[data-theme="midnight"] .mobile-day-totals .income { color: #6ee7b7; }
  body[data-theme="midnight"] .mobile-day-totals .expense { color: #fca5a5; }
  .calendar .day.outside .mobile-day-totals { opacity: .5; }
  .mobile-agenda { display: block; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .mobile-agenda h3 { margin: 0 0 10px; font: 800 1.125rem/1.4 Manrope, sans-serif; }
  .agenda-totals { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .875rem; margin-bottom: 12px; }
  .agenda-transaction { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 64px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 12px 0; text-align: left; cursor: pointer; }
  .agenda-transaction-info { min-width: 0; border-left: 3px solid #e35342; padding-left: 10px; }
  .agenda-transaction.income .agenda-transaction-info { border-color: #0b8a62; }
  .agenda-transaction strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
  .agenda-transaction small { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
  .agenda-amount { flex-shrink: 0; font-size: .9375rem; }
  .agenda-empty { padding: 12px 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
  .agenda-actions { display: flex; gap: 8px; margin-top: 16px; }
  .agenda-actions button { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-family: inherit; font-size: .875rem; font-weight: 700; line-height: 1.3; cursor: pointer; }
}
