/* V4.0.0 build 4070 — mobile-first My Work UX. Core task logic unchanged. */
.mobile-work-head{display:none}
.mobile-work-card{position:relative}
.mobile-work-card-head,.mobile-work-badges,.mobile-work-meta,.mobile-work-card-actions{display:flex;align-items:center}
.mobile-work-card-head{justify-content:space-between;gap:10px}
.mobile-work-badges{gap:6px;flex-wrap:wrap}
.work-urgency,.work-priority{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800}
.work-urgency.danger{background:#fff0f0;color:#b42318;border:1px solid #ffd4d4}
.work-urgency.today{background:#fff7e8;color:#9a5b00;border:1px solid #ffe0a6}
.work-priority{background:#f4f1ff;color:#6546b5;border:1px solid #e1d8ff}
.work-open-icon{border:0;background:#f2f4f3;color:#52615b;width:32px;height:32px;border-radius:10px;font-size:25px;line-height:1;cursor:pointer}
.mobile-work-title{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 0 6px;font:inherit;font-size:16px;font-weight:800;color:inherit;cursor:pointer}
.mobile-work-meta{gap:6px 12px;flex-wrap:wrap;font-size:12px;color:#718079}
.mobile-work-progress{margin-top:13px}
.mobile-work-card-actions{gap:8px;margin-top:13px;padding-top:12px;border-top:1px solid #edf0ee}
.mobile-work-card-actions .btn{min-width:0}
.mobile-work-card.is-overdue{border-color:#f0caca}
.mobile-work-card.is-completed{opacity:.74}

@media(max-width:760px){
  #mytasksView{padding-bottom:8px}
  .mobile-work-head{display:block;background:#fff;border:1px solid #e3e9e5;border-radius:18px;padding:16px;margin-bottom:10px;box-shadow:0 5px 18px rgba(28,48,40,.05)}
  .mobile-work-head h3{margin:0;font-size:18px}
  .mobile-work-head p{margin:5px 0 0;color:#7b8983;font-size:12px;line-height:1.5}
  .mobile-work-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:8px;margin-top:13px}
  .mobile-work-actions .btn{width:100%;min-height:44px}
  .mytasks-toolbar{display:grid!important;grid-template-columns:1fr 126px!important;gap:8px!important;margin-bottom:10px!important}
  .mytasks-toolbar input,.mytasks-toolbar select{min-width:0;height:42px}
  #myTasksGrid.task-card-grid{display:flex!important;flex-direction:column;gap:10px!important}
  #myTasksGrid .mobile-work-card{padding:14px 15px!important;border-radius:17px!important;background:#fff}
  .mobile-work-title{font-size:16px;line-height:1.4}
  .mobile-work-meta{display:grid;grid-template-columns:1fr auto;gap:4px 10px}
  .mobile-work-meta span:nth-child(3){grid-column:1/-1}
  .mobile-work-card-actions{display:grid;grid-template-columns:.9fr 1.1fr}
  .mobile-work-card-actions .btn{width:100%;min-height:42px;padding:9px 10px}
  .work-report-btn{font-weight:800}
  .detail-dialog{margin-bottom:calc(8px + env(safe-area-inset-bottom))}
  .detail-dialog .detail-head{position:sticky;top:0;z-index:3;background:#fff;padding-bottom:8px}
  .detail-dialog .detail-tabs{position:sticky;top:58px;z-index:2;background:#f0f3f1}
}
