
/* FCP 14.7.43 - Task UI rebuild from zero. Loaded last on frontend app. */
:root{
  --fcp43-bg:#f4f7fb;
  --fcp43-card:#ffffff;
  --fcp43-border:#e5eaf3;
  --fcp43-text:#0f172a;
  --fcp43-muted:#64748b;
  --fcp43-blue:#2563eb;
  --fcp43-blue-soft:#eff6ff;
  --fcp43-shadow:0 18px 45px rgba(15,23,42,.08);
  --fcp43-shadow-hover:0 20px 55px rgba(37,99,235,.13);
}
body .fcp-task43-card,
body .fcp-task43-card *{box-sizing:border-box!important;}
body .fcp-task43-card{
  position:relative!important; inset:auto!important; transform:none!important; float:none!important;
  display:block!important; width:100%!important; max-width:100%!important; min-height:0!important; height:auto!important;
  margin:0 0 14px!important; padding:16px!important; overflow:hidden!important;
  background:var(--fcp43-card)!important; border:1px solid var(--fcp43-border)!important; border-radius:22px!important;
  box-shadow:var(--fcp43-shadow)!important; color:var(--fcp43-text)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
body .fcp-task43-card:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:999px;background:transparent;}
body .fcp-task43-card.is-meta-gsheet:before{background:var(--fcp43-blue);}
body .fcp-task43-card.is-overdue:before{background:#dc2626;}
body .fcp-task43-card.is-done{opacity:.72;background:#f8fafc!important;}
body .fcp-task43-header{
  position:static!important; display:grid!important; grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:flex-start!important; gap:12px!important; width:100%!important; margin:0 0 14px!important; padding:0!important;
}
body .fcp-task43-check,
body .fcp-task43-more,
body .fcp-task43-main,
body .fcp-task43-primary,
body .fcp-task43-secondary{all:unset;box-sizing:border-box!important;font-family:inherit!important;}
body .fcp-task43-check{
  display:inline-flex!important; align-items:center!important; justify-content:center!important; width:32px!important; height:32px!important;
  border:2px solid #cbd5e1!important; border-radius:11px!important; background:#fff!important; cursor:pointer!important;
  box-shadow:0 2px 8px rgba(15,23,42,.04)!important; flex:0 0 auto!important;
}
body .fcp-task43-check:hover{border-color:var(--fcp43-blue)!important;background:var(--fcp43-blue-soft)!important;}
body .fcp-task43-card.is-done .fcp-task43-check{background:var(--fcp43-blue)!important;border-color:var(--fcp43-blue)!important;}
body .fcp-task43-card.is-done .fcp-task43-check:after{content:"✓";color:#fff;font-weight:900;font-size:18px;line-height:1;}
body .fcp-task43-meta{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;padding-top:1px!important;}
body .fcp-task43-date,
body .fcp-task43-time{display:inline!important;position:static!important;margin:0!important;padding:0!important;color:var(--fcp43-text)!important;font-size:14px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:.01em!important;white-space:nowrap!important;}
body .fcp-task43-status{display:inline-flex!important;align-items:center!important;gap:6px!important;color:var(--fcp43-blue)!important;font-size:13px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap!important;}
body .fcp-task43-status i{display:inline-block!important;width:7px!important;height:7px!important;border-radius:50%!important;background:var(--fcp43-blue)!important;}
body .fcp-task43-controls{display:flex!important;align-items:center!important;gap:8px!important;justify-self:end!important;}
body .fcp-task43-priority{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:34px!important;padding:0 13px!important;border-radius:999px!important;background:var(--fcp43-blue-soft)!important;color:#1d4ed8!important;border:1px solid #dbeafe!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important;font-style:normal!important;white-space:nowrap!important;}
body .fcp-task43-priority.prio-high,body .fcp-task43-priority.prio-urgent{background:#fef2f2!important;color:#b91c1c!important;border-color:#fecaca!important;}
body .fcp-task43-priority.prio-medium{background:#fffbeb!important;color:#b45309!important;border-color:#fde68a!important;}
body .fcp-task43-priority.prio-low{background:#ecfdf5!important;color:#047857!important;border-color:#bbf7d0!important;}
body .fcp-task43-more{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;border:1px solid var(--fcp43-border)!important;border-radius:14px!important;background:#fff!important;color:#334155!important;cursor:pointer!important;font-size:18px!important;font-weight:900!important;line-height:1!important;letter-spacing:2px!important;}
body .fcp-task43-more:hover{border-color:#bfdbfe!important;background:var(--fcp43-blue-soft)!important;color:var(--fcp43-blue)!important;}
body .fcp-task43-main{display:block!important;position:static!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:left!important;cursor:pointer!important;color:inherit!important;}
body .fcp-task43-title{display:block!important;margin:0!important;padding:0!important;color:var(--fcp43-text)!important;font-size:20px!important;line-height:1.18!important;font-weight:900!important;letter-spacing:-.025em!important;overflow-wrap:anywhere!important;}
body .fcp-task43-client{display:block!important;margin:7px 0 0!important;color:#475569!important;font-size:14px!important;line-height:1.35!important;font-weight:800!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body .fcp-task43-description{display:-webkit-box!important;margin:8px 0 0!important;color:var(--fcp43-muted)!important;font-size:14px!important;line-height:1.45!important;font-weight:650!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
body .fcp-task43-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:16px 0 0!important;padding:0!important;width:100%!important;align-items:center!important;}
body .fcp-task43-actions:empty{display:none!important;}
body .fcp-task43-primary,
body .fcp-task43-secondary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;padding:0 14px!important;border-radius:14px!important;text-decoration:none!important;font-size:15px!important;font-weight:900!important;cursor:pointer!important;line-height:1!important;}
body .fcp-task43-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;border:1px solid #2563eb!important;box-shadow:0 12px 24px rgba(37,99,235,.22)!important;}
body .fcp-task43-secondary{background:#fff!important;color:#0f172a!important;border:1px solid #dbe3ef!important;box-shadow:0 6px 16px rgba(15,23,42,.04)!important;}
body .fcp-task43-primary:hover{filter:brightness(.98)!important;box-shadow:0 16px 30px rgba(37,99,235,.28)!important;}
body .fcp-task43-secondary:hover{border-color:#bfdbfe!important;color:var(--fcp43-blue)!important;background:#f8fbff!important;}
body .fcp-task43-card:hover{box-shadow:var(--fcp43-shadow-hover)!important;border-color:#d8e4f6!important;}
body .fcp-task43-card.is-done .fcp-task43-title{text-decoration:line-through!important;color:#475569!important;}
body .fcp-task43-card.is-done .fcp-task43-primary,
body .fcp-task43-card.is-done .fcp-task43-secondary{opacity:.85!important;}
body .fcp-mobile-task-list,
body .fcp-task-list-section,
body [data-fcp-task-list],
body .fcp-mobile-section:has(.fcp-task43-card){padding-bottom:136px!important;}
@media (max-width:520px){
  body .fcp-task43-card{padding:15px!important;border-radius:22px!important;margin-bottom:14px!important;}
  body .fcp-task43-header{grid-template-columns:38px minmax(0,1fr) auto!important;gap:10px!important;margin-bottom:13px!important;}
  body .fcp-task43-check{width:30px!important;height:30px!important;border-radius:10px!important;}
  body .fcp-task43-controls{gap:6px!important;}
  body .fcp-task43-priority{height:32px!important;padding:0 11px!important;font-size:11px!important;}
  body .fcp-task43-more{width:38px!important;height:38px!important;border-radius:13px!important;}
  body .fcp-task43-title{font-size:18px!important;line-height:1.2!important;}
  body .fcp-task43-client{font-size:14px!important;white-space:normal!important;}
  body .fcp-task43-description{font-size:14px!important;}
  body .fcp-task43-actions{grid-template-columns:1fr 1fr!important;gap:8px!important;}
  body .fcp-task43-primary,body .fcp-task43-secondary{min-height:42px!important;font-size:14px!important;border-radius:14px!important;}
}
@media (min-width:900px){
  body .fcp-task43-card{padding:18px 20px!important;border-radius:20px!important;}
  body .fcp-task43-header{grid-template-columns:40px minmax(0,1fr) auto!important;margin-bottom:10px!important;}
  body .fcp-task43-main{padding-right:230px!important;}
  body .fcp-task43-actions{position:absolute!important;right:20px!important;bottom:18px!important;width:220px!important;grid-template-columns:1fr 1fr!important;margin:0!important;}
  body .fcp-task43-title{font-size:19px!important;max-width:760px!important;}
  body .fcp-task43-description{max-width:760px!important;-webkit-line-clamp:1!important;}
}
/* Emergency fallback for old task cards injected by legacy JS: keep them readable instead of broken. */
body .fcp-mobile-task-card:not(.fcp-task43-card){min-height:auto!important;height:auto!important;overflow:hidden!important;padding:14px!important;border-radius:18px!important;}
