/* 📱 АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 768px) {
  .header { padding: 12px 12px 10px; }
  .header-top { flex-wrap: nowrap; gap: 8px; } 
  .header-title { width: auto; flex: 1; font-size: 18px; letter-spacing: 1px;}
  .nav-arrows { width: auto; flex: none; }
  .nav-btn { width: 30px; height: 30px; font-size: 16px; }
  .header-date { margin-top: 18px; margin-bottom: 6px; }

  .section { margin: 10px 8px 0; }
  .section-header { padding: 8px 10px; font-size: 13px; font-weight: 600; }
  .drag-handle { font-size: 14px; padding-right: 6px; }
  .task { padding: 10px 10px; gap: 10px; }
  .task-text { font-size: 13px; line-height: 1.35; }
  .task-time { font-size: 10px; }
  .task-icon { font-size: 16px; min-width: 20px; }
  
  .sec-actions { gap: 6px; }
  .sec-btn { font-size: 20px; padding: 4px 6px; }
  .sec-btn.fwd-sec-btn { font-size: 26px; } 
  .sec-btn.pin-btn { font-size: 11px; } 
  
  .task-action-btn { font-size: 11px; padding: 4px 6px; } 
  .task-action-btn.fwd-btn { font-size: 11px; } 
  .task-action-btn.pin-btn { font-size: 11px; } 

  .collapse-arrow svg { width: 22px; height: 22px; }

  .checkbox { width: 22px; height: 22px; min-width: 22px; border-width: 2px; border-radius: 6px; }
  .checkbox::after { width: 6px; height: 10px; border-right-width: 2px; border-bottom-width: 2px; margin-top: -2px; }
  .add-task-btn { padding: 10px; font-size: 12px; }
  .add-input { font-size: 16px !important; } /* iOS не показывает тулбар если >= 16px */
  .add-section-wrap { margin: 12px 8px 0; }
  .add-section-btn { padding: 12px; font-size: 13px; }
  .progress-pct { font-size: 18px; }
  .progress-indicator-wrap { height: 30px; }
  /* «Месячные задачи» — на одной линии с «0 / 13 выполнено», не вылезая за шапку */
  #goals-toggle-btn { top: 27px !important; right: 2px !important; }
}
