/* File: tadaysWeb/src/tasks/features/tasks/panel.css */
/* PANEL -- the task panel card on the left: header, New task, the list
   and, when open, Far Out beside it (the panel widens; farout/farout.css
   styles what goes inside). Inner widths stay at 215px so the header,
   New task and the list line up; the card adds its own padding. */

.tasks {
  width: 241px; flex: 0 0 241px; display: flex; flex-direction: column;
  align-self: stretch; padding: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: flex-basis .18s, width .18s;
}
.tasks.fa-open { width: 481px; flex: 0 0 481px; }

.tasks-header, .new-task { width: 215px; }
.tasks-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tasks-header h2 { font-size: 14px; font-weight: 500; margin: 0; }
.hdr-btns { display: flex; align-items: center; gap: 2px; }

.lists-row { display: flex; gap: 10px; width: 100%; flex: 1; min-height: 0; }
.queue-col { width: 215px; flex: 0 0 215px; display: flex; flex-direction: column; min-height: 0; }

@media (max-width: 660px) {
  .tasks { width: 174px; flex: 0 0 174px; }
  .tasks.fa-open { width: 324px; flex: 0 0 324px; }
  .tasks-header, .new-task, .queue-col { width: 150px; flex-basis: 150px; }
  .tasks.fa-open .queue-col { width: 145px; flex: 0 0 145px; }
}

@media (prefers-reduced-motion: reduce) {
  .tasks { transition: none; }
}
