/* Compact task lists on phones; desktop layouts retain their existing spacing. */
@media screen and (max-width:760px){
  .tasks-page .task-mobile-cards,.technician-mode .tech-task-list{gap:8px}
  .tasks-page .task-mobile-card,
  .technician-mode .tech-tasks-page .tech-task-list .tech-job-card,
  .technician-mode .tech-task-list .tech-job-card{gap:5px;padding:10px 11px;border:0;border-radius:9px;box-shadow:0 2px 7px rgba(15,23,42,.10)}
  .tasks-page .task-mobile-facts{gap:4px}
  .tasks-page .task-mobile-status{border-top:0;padding-top:3px}
  .tasks-page .task-mobile-actions{gap:6px;margin-top:2px}
  .tasks-page .task-mobile-actions button{min-height:40px;border:0;background:transparent;box-shadow:none;border-radius:6px}
  .technician-mode .tech-task-card .tech-job-head strong,
  .technician-mode .tech-job-card.compact .tech-job-head strong{font-size:13px}
  .technician-mode .tech-task-card .tech-job-meta{min-height:18px}
  .technician-mode .tech-task-card .tech-job-foot{margin-top:0}
  .technician-mode .tech-task-card .tech-job-actions{gap:6px;margin-top:3px}
  .technician-mode .tech-task-card .tech-job-actions.details-only{border:0;padding:0;margin:0}
  .technician-mode .tech-task-card:has(.details-only):has(.tech-job-foot){grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
  .technician-mode .tech-task-card:has(.details-only):has(.tech-job-foot)>:not(.tech-job-foot):not(.tech-job-actions){grid-column:1/-1}
  .technician-mode .tech-task-card:has(.details-only)>.tech-job-foot{grid-column:1;grid-row:5;align-self:center}
  .technician-mode .tech-task-card:has(.tech-job-foot)>.tech-job-actions.details-only{grid-column:2;grid-row:5;align-self:center}
  .technician-mode .tech-task-card .tech-job-actions.details-only .tech-job-details{gap:10px;min-height:44px}
  .tasks-page .task-mobile-card:focus-visible,.technician-mode .tech-job-card:focus-visible{outline:2px solid #3867ef;outline-offset:3px}
}
@layer appearance{
  @media screen and (max-width:760px){
    html[data-theme=dark] body .tasks-page .task-mobile-actions button{border:0!important;background:transparent!important;box-shadow:none!important}
    html[data-theme=dark] body :is(.task-mobile-card,.tech-task-list .tech-job-card){border:0!important;box-shadow:0 2px 8px rgba(0,0,0,.35)!important;background:var(--fc-surface)!important}
  }
}
