.task-responsive-list{min-width:0}
.task-mobile-cards{display:none}
@media(max-width:760px){
  .tasks-page .page-title{align-items:stretch}
  .tasks-page .page-title .task-settings-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
  .tasks-page .page-title .task-settings-entry button{width:100%;min-width:0;margin:0;justify-content:center}
  .tasks-page .task-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tasks-page .task-filter-bar>*{min-width:0}
  .tasks-page .task-filter-bar>select{display:block;width:100%;min-height:42px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;padding:0 10px;color:#27364c;font-size:16px;cursor:pointer}
  .tasks-page .task-filter-bar>#task-sort+.modern-native-select{grid-column:auto;min-width:0}
  .tasks-page .task-view-switch{grid-column:auto;width:100%;min-width:0;margin:0}
  .tasks-page .task-view-switch button{min-width:0;flex:1}
}
@media(max-width:760px){
  .tasks-page .task-responsive-list>.task-card-grid,.tasks-page .task-responsive-list>.tasks-table-wrap{display:none}
  .task-mobile-cards{display:grid;gap:12px;min-width:0}
  .task-mobile-card{display:grid;gap:10px;min-width:0;border:1px solid #dce4ee;border-radius:13px;background:#fff;padding:17px;box-shadow:0 2px 5px #1720330d;color:#263246;cursor:pointer}
  .task-mobile-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
  .task-mobile-card>header>div{min-width:0}
  .task-mobile-card h3{margin:0 0 3px;color:#202b3d;font-size:13px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
  .task-mobile-card header p{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0;color:#72819b;font-size:11px}
  .task-mobile-area{display:inline-flex;align-items:center;gap:2px;border-radius:6px;background:#fff5df;padding:2px 5px;color:#a75c08;font-size:10px}
  .task-mobile-area svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8}
  .task-mobile-card>header>.priority{flex:none;border:1px solid #cbdcff;background:#f2f6ff;padding:3px 10px;color:#326bea;font-size:10px}
  .task-mobile-facts{display:grid;gap:5px}
  .task-mobile-facts p{display:flex;align-items:flex-start;gap:7px;min-width:0;margin:0;color:#697b96;font-size:11px;line-height:1.35}
  .task-mobile-facts p span{min-width:0;overflow-wrap:anywhere}
  .task-mobile-facts svg{width:14px;height:14px;flex:none;fill:none;stroke:#7285a4;stroke-width:1.8}
  .task-mobile-facts .task-mobile-completed,.task-mobile-facts .task-mobile-completed svg{color:#209966;stroke:#209966}
  .task-mobile-status{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e5eaf1;padding-top:10px;color:#697b96;font-size:11px}
  .task-mobile-status .status{border:1px solid #cbdcff;background:#f1f6ff;padding:4px 10px;color:#326bea;font-size:10px}
  .task-mobile-status .status.completed{border-color:#b8eacb;background:#ecfaf1;color:#259568}
  .task-mobile-actions{display:flex;gap:8px}
  .task-mobile-actions button{display:inline-flex;min-height:33px;align-items:center;justify-content:center;gap:7px;border:1px solid #dce4ee;border-radius:9px;background:#fff;padding:6px 10px;color:#263246;font-size:11px;cursor:pointer;box-shadow:0 1px 2px #1720330a}
  .task-mobile-actions button:first-child{flex:1}
  .task-mobile-actions button:not(:first-child){width:38px;padding:6px}
  .task-mobile-actions button.delete{border-color:#ffd1d4;color:#e03945}
  .task-mobile-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
  .task-detail-modal .task-detail-more{display:none}
  .task-detail-modal .task-detail-map-section{margin-top:22px}
  .modal-layer:has(.task-editor-modal){padding:0}
  .task-editor-modal{width:100vw;max-width:none;min-height:100dvh;max-height:100dvh;border:0;border-radius:0;background:#f8fafc;box-shadow:none}
  .task-editor-modal>header{position:sticky;top:0;z-index:8;min-height:62px;justify-content:center;border-bottom:1px solid #e4eaf2;background:#f8fafc;padding:12px 16px}
  .task-editor-modal>header>div{display:block;text-align:center}
  .task-editor-modal>header .eyebrow{display:none}
  .task-editor-modal>header h2{margin:0;color:#202b3d;font-size:16px;font-weight:700}
  .task-editor-modal>header [data-close]{position:absolute;right:14px;top:14px}
  .task-editor-modal form{min-width:0;padding:14px 16px 0}
  .task-editor-modal .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}
  .task-editor-modal .form-grid>.span-2,.task-editor-modal .form-grid>.task-map-field{grid-column:1/-1}
  .task-editor-modal .form-grid>label{min-width:0;font-size:12px;font-weight:600}
  .task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{width:100%;min-width:0;min-height:41px;border-radius:10px;font-size:13px}
  .task-editor-modal .task-customer-field>span{align-items:center}
  .task-editor-modal .task-map-field{margin:0;gap:7px}
  .task-editor-modal .task-map-field #task-location-map{height:255px;min-height:255px;border-radius:10px}
  .task-editor-modal .form-actions{position:static;display:grid;grid-template-columns:1fr;gap:8px;margin:14px -16px 0;padding:14px 16px 18px;background:#f8fafc}
  .task-editor-modal .form-actions button{width:100%;min-height:35px}
  .task-editor-modal .form-actions .primary{order:-1}
}
