/* Breakpoints for narrow screens.

   Part of the split style sheet — see index.html for the link order. */
/* ---------- Responsive ---------- */
@media (min-width: 1400px) {
  .app-shell {
    padding: 32px 48px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .main-content {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }

  .task-list {
    max-height: 50vh;
  }

  .detail-pane {
    flex-direction: column;
    min-height: auto;
  }

  .resize-handle { display: none; }

  .thread-panel.open {
    width: 100%;
    padding-left: 0;
    margin-top: 16px;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
  }

  .settings-grid { grid-template-columns: 1fr 1fr; }
  .field-row-main { grid-template-columns: 1fr; }
  .theme-editor-grid { grid-template-columns: 1fr; }
  .summary-setup-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
