.overdue-badge { display: inline-flex; color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--red) 35%, var(--border)); border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 500; }
.list-item.overdue { border-left: 3px solid var(--red); }
.overdue-notice { width: 100%; text-align: left; border: 1px solid color-mix(in srgb, var(--red) 35%, var(--border)); border-radius: 8px; background: color-mix(in srgb, var(--red) 8%, var(--card)); color: var(--red); padding: 12px; margin-bottom: 12px; font: inherit; font-size: 14px; cursor: pointer; }
.overdue-notice[hidden] { display: none; }
@media (max-width: 900px) {
  body { --bg: #101216; --bg2: #15181e; --card: #191d24; --border: #2b303a; --text: #eef0f5; --muted: #a0a8b7; --green: #60c9a4; --red: #ee8993; --radius: 14px; color-scheme: dark; }
  body.mode-light { --bg: #f3f5f8; --bg2: #fafbfc; --card: #fff; --border: #e2e6ec; --text: #202734; --muted: #626d7e; --green: #167954; --red: #bd3549; color-scheme: light; }
  .main-content { padding-inline: 18px; }
  .mobile-header { margin-inline: -18px; padding: 12px 18px; margin-bottom: 24px; }
  .mobile-header h1 { font-weight: 650; }
  .page-title { font-size: 26px; font-weight: 650; letter-spacing: -.035em; margin-bottom: 8px; }
  .workspace-caption { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
  .workspace-legacy-icon { display: none; }
  .workspace-icon { display: inline-flex; width: 18px; height: 18px; }
  .workspace-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dashboard-grid { gap: 14px; margin-top: 20px; }
  .widget, .shopping-list-card, .settings-section, .finance-card, .calendar-container { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; padding: 18px; }
  .widget:hover { transform: none; border-color: var(--border); }
  .widget-title { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 550; }
  .widget-icon { display: none; }
  .widget-value { font-size: 28px; letter-spacing: -.035em; }
  .quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick-action-btn { min-height: 44px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border); color: var(--text); box-shadow: none; font-size: 13px; }
  .bottom-nav { background: var(--bg2); box-shadow: 0 -4px 20px #00000012; }
  .bottom-nav-item { gap: 5px; }
  .bottom-nav-item.active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .bottom-nav-item .nav-label { font-size: 11px; }
  .filters-bar, .input-section { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; gap: 8px; }
  #page-tasks .filters-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-tasks .filters-bar input { grid-column: 1 / -1; width: 100%; }
  #page-tasks .filters-bar select { width: 100%; font-size: 13px; }
  #page-tasks .filters-bar .clear-btn { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }
  #tasksList :is(.pin-btn, .edit-btn, .delete-btn) { background: var(--bg2); border: 1px solid var(--border); color: var(--muted); border-radius: 7px; }
  #tasksList .delete-btn { color: var(--red); }
  .bottom-nav .nav-icon svg { width: 21px; height: 21px; }
  input:not([type="checkbox"]), select, textarea { min-width: 0; max-width: 100%; box-sizing: border-box; font-size: 16px; border-radius: 8px; }
  .add-task-btn, .create-list-btn, .add-btn, .form-submit { min-height: 44px; border-radius: 8px; font-size: 14px; font-weight: 550; }
  .list-item { background: var(--card); border-radius: 12px; padding: 14px; gap: 10px; }
  #tasksList > .list-item:not([style*="display: none"]) { display: grid !important; grid-template-columns: 20px minmax(0, 1fr) repeat(3, 32px); column-gap: 6px; }
  #tasksList .checkbox { grid-column: 1; grid-row: 1; }
  #tasksList .item-text { grid-column: 2 / -1; grid-row: 1; font-size: 15px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
  #tasksList .task-meta { grid-column: 1 / -1; margin: 0; gap: 6px; }
  #tasksList .task-comment { grid-column: 1 / -1; margin: 0 !important; color: var(--muted) !important; }
  #tasksList .pin-btn { grid-column: 3; }
  #tasksList .edit-btn { grid-column: 4; }
  #tasksList .delete-btn { grid-column: 5; }
  #tasksList :is(.pin-btn, .edit-btn, .delete-btn) { min-height: 36px; display: inline-flex; justify-content: center; align-items: center; padding: 6px; }
  .modal { background: var(--card); border-radius: 16px; padding: 22px; }
  .modal h2 { font-size: 22px; letter-spacing: -.025em; }
  .calendar-container { padding: 12px; }
  .calendar-day { border-radius: 7px; }
}
