/* CapTask v3.0 - Profile UX v5.2 */
#user-profile-section{min-width:0}
.ct-up-shell{max-width:1480px;margin:0 auto;padding:18px 22px 34px;color:#0f172a}
.ct-up-hero{position:relative;overflow:hidden;border:1px solid #dbe4ef;border-radius:22px;padding:20px 22px;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 62%,#fff8ed 100%);box-shadow:0 16px 40px rgba(15,23,42,.07);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}
.ct-up-hero:after{content:"";position:absolute;width:280px;height:280px;border-radius:999px;right:-100px;top:-145px;background:radial-gradient(circle,rgba(214,223,32,.2),rgba(214,223,32,0) 70%);pointer-events:none}
.ct-up-person{display:flex;align-items:center;gap:15px;min-width:0;position:relative;z-index:1}
.ct-up-avatar-wrap{width:76px!important;height:76px!important;min-width:76px!important;max-width:76px!important;min-height:76px!important;max-height:76px!important;border-radius:20px;padding:3px;background:linear-gradient(135deg,#d6df20,#f97316);box-shadow:0 10px 24px rgba(249,115,22,.18);overflow:hidden;flex:0 0 76px!important}
.ct-up-avatar{width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;border-radius:17px!important;object-fit:cover!important;object-position:center!important;background:#fff;display:block!important;margin:0!important}
.ct-up-avatar-fallback{width:100%;height:100%;border-radius:17px;display:flex;align-items:center;justify-content:center;background:#101827;color:#d6df20;font-weight:900;font-size:23px;letter-spacing:.04em}
.ct-up-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;color:#64748b;margin-bottom:4px}
.ct-up-name{font-size:25px;line-height:1.08;font-weight:900;color:#0f172a;overflow-wrap:anywhere}
.ct-up-meta{margin-top:7px;display:flex;gap:7px;flex-wrap:wrap;color:#64748b;font-size:11px}
.ct-up-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;background:rgba(255,255,255,.8);border-radius:999px;padding:5px 9px;font-weight:750}
.ct-up-online{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.ct-up-hero-side{display:flex;gap:12px;align-items:center;position:relative;z-index:1}
.ct-up-score{width:112px;height:112px;border-radius:22px;border:1px solid #e2e8f0;background:#fff;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(15,23,42,.06)}
.ct-up-score-ring{--score:100;width:58px;height:58px;border-radius:50%;background:conic-gradient(#22c55e calc(var(--score)*1%),#e2e8f0 0);display:grid;place-items:center;position:relative}
.ct-up-score-ring:after{content:"";width:44px;height:44px;border-radius:50%;background:#fff;position:absolute}
.ct-up-score-value{position:relative;z-index:1;font-weight:950;font-size:15px;color:#0f172a}
.ct-up-score-label{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-top:6px;color:#475569;text-align:center}
.ct-up-score-help{font-size:8px;color:#94a3b8;text-align:center;margin-top:2px;line-height:1.25}
.ct-up-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.ct-up-btn{appearance:none;border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:11px;padding:8px 11px;font-size:11px;font-weight:850;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:.16s ease;white-space:nowrap}
.ct-up-btn:hover{transform:translateY(-1px);border-color:#94a3b8;box-shadow:0 7px 16px rgba(15,23,42,.08)}
.ct-up-btn-primary{background:#111827;color:#fff;border-color:#111827}
.ct-up-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0}
.ct-up-stat{border-radius:16px;padding:14px 15px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.045);position:relative;overflow:hidden}
.ct-up-stat-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#64748b}
.ct-up-stat-value{font-size:27px;line-height:1;margin-top:6px;font-weight:950;color:#0f172a}
.ct-up-stat-note{font-size:10px;margin-top:6px;color:#94a3b8;line-height:1.25}
.ct-up-stat.pending{border-color:#bfdbfe;background:linear-gradient(180deg,#eff6ff,#fff)}
.ct-up-stat.soon{border-color:#fde68a;background:linear-gradient(180deg,#fffbeb,#fff)}
.ct-up-stat.overdue{border-color:#fecaca;background:linear-gradient(180deg,#fef2f2,#fff)}
.ct-up-stat.review{border-color:#ddd6fe;background:linear-gradient(180deg,#f5f3ff,#fff)}
.ct-up-stat.overdue .ct-up-stat-value{color:#dc2626}.ct-up-stat.soon .ct-up-stat-value{color:#d97706}.ct-up-stat.review .ct-up-stat-value{color:#7c3aed}.ct-up-stat.pending .ct-up-stat-value{color:#2563eb}
.ct-up-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,.72fr);gap:14px;align-items:start}
.ct-up-panel{border:1px solid #e2e8f0;border-radius:19px;background:#fff;box-shadow:0 9px 28px rgba(15,23,42,.055);overflow:hidden;min-width:0}
.ct-up-panel-head{padding:14px 15px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.ct-up-panel-title{font-size:15px;font-weight:950;color:#0f172a}.ct-up-panel-sub{font-size:10px;color:#64748b;margin-top:2px}
.ct-up-toolbar{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.ct-up-search{height:34px;min-width:190px;border:1px solid #cbd5e1;background:#fff;border-radius:9px;padding:0 10px;color:#0f172a;font-size:11px}
.ct-up-filter,.ct-up-sort{height:34px;border:1px solid #cbd5e1;background:#fff;border-radius:9px;padding:0 9px;color:#334155;font-size:11px}
.ct-up-task-list{padding:8px}
.ct-up-task{border:1px solid #e2e8f0;border-radius:14px;padding:12px;margin:7px 0;background:#fff;display:grid;grid-template-columns:6px minmax(0,1fr) auto;gap:11px;align-items:center;cursor:pointer;transition:.15s ease;min-width:0}
.ct-up-task:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,23,42,.07);border-color:#cbd5e1}
.ct-up-rail{width:6px;height:100%;min-height:58px;border-radius:99px;background:#60a5fa}
.ct-up-task.overdue{border-color:#fecaca;background:#fffafa}.ct-up-task.overdue .ct-up-rail{background:#ef4444}
.ct-up-task.soon{border-color:#fde68a;background:#fffdf6}.ct-up-task.soon .ct-up-rail{background:#f59e0b}
.ct-up-task.review .ct-up-rail{background:#8b5cf6}
.ct-up-task-title{font-size:12px;font-weight:950;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-up-task-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px;font-size:10px;color:#64748b;min-width:0}.ct-up-task-meta span{display:inline-flex;align-items:center;gap:4px;max-width:100%}
.ct-up-deadline{text-align:right;min-width:135px}.ct-up-deadline-main{font-weight:900;font-size:11px;color:#334155}.ct-up-deadline-sub{font-size:9px;margin-top:4px;color:#94a3b8}
.ct-up-task.overdue .ct-up-deadline-main{color:#dc2626}.ct-up-task.soon .ct-up-deadline-main{color:#b45309}
.ct-up-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 6px;font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;background:#f1f5f9;color:#475569}.ct-up-badge.high,.ct-up-badge.urgent{background:#fee2e2;color:#b91c1c}.ct-up-badge.medium{background:#fef3c7;color:#92400e}.ct-up-badge.low{background:#dcfce7;color:#166534}
.ct-up-focus{padding:10px}.ct-up-focus-card{padding:12px;border-radius:13px;border:1px solid #e2e8f0;margin-bottom:8px;background:#f8fafc;cursor:pointer;transition:.15s ease}.ct-up-focus-card:hover{transform:translateY(-1px)}.ct-up-focus-card.overdue{background:#fef2f2;border-color:#fecaca}.ct-up-focus-card.soon{background:#fffbeb;border-color:#fde68a}.ct-up-focus-title{font-size:11px;font-weight:950;color:#0f172a}.ct-up-focus-meta{font-size:9px;color:#64748b;margin-top:4px;display:flex;gap:6px;flex-wrap:wrap}
.ct-up-mini-breakdown{padding:0 10px 10px;display:grid;gap:7px}.ct-up-mini-row{display:grid;grid-template-columns:80px minmax(0,1fr) 24px;gap:8px;align-items:center;font-size:9px;color:#64748b}.ct-up-mini-bar{height:6px;border-radius:99px;background:#e2e8f0;overflow:hidden}.ct-up-mini-bar span{display:block;height:100%;border-radius:inherit;background:#60a5fa}.ct-up-mini-row.high .ct-up-mini-bar span{background:#ef4444}.ct-up-mini-row.medium .ct-up-mini-bar span{background:#f59e0b}.ct-up-mini-row.low .ct-up-mini-bar span{background:#22c55e}
.ct-up-empty{padding:34px 18px;text-align:center;color:#64748b;font-size:11px}.ct-up-empty i{font-size:24px;margin-bottom:8px;color:#94a3b8}.ct-up-empty strong{display:block;color:#334155;margin-bottom:3px;font-size:12px}.ct-up-error{margin:16px 0;padding:13px 15px;border-radius:12px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:12px}.ct-up-loading{padding:44px;text-align:center;color:#64748b}.ct-up-spinner{width:25px;height:25px;border:3px solid #e2e8f0;border-top-color:#f97316;border-radius:50%;display:inline-block;animation:ctupspin .75s linear infinite;margin-bottom:7px}@keyframes ctupspin{to{transform:rotate(360deg)}}
/* Critical avatar sizing in sidebar/menu */
.ct-up-nav-avatar,#ct-sidebar-user-avatar{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;min-height:28px!important;max-height:28px!important;border-radius:9px!important;object-fit:cover!important;object-position:center!important;background:#e2e8f0;flex:0 0 28px!important;margin:0 10px 0 0!important;display:block!important}.ct-up-nav-initials,#ct-sidebar-user-fallback{width:28px;height:28px;border-radius:9px;background:#0f172a;color:#d6df20;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:950;margin-right:10px;flex:0 0 28px}.ct-sidebar-user-row{gap:8px!important;align-items:center!important}.ct-sidebar-user-row>i.fa-user{display:none!important}
/* Only one sidebar item may look selected. The JS removes stale Tailwind active classes. */
#sidenav .nav-item{position:relative;border-radius:0 11px 11px 0;transition:background .14s ease,color .14s ease,box-shadow .14s ease}
#sidenav .nav-item.ct-nav-current,#sidenav .nav-item[aria-current="page"]{background:rgba(37,99,235,.10)!important;color:#0f172a!important;font-weight:850!important;box-shadow:inset 4px 0 0 #f97316!important;padding-left:1rem!important}
#mobileTopMenu .ct-nav-current{background:rgba(37,99,235,.10)!important;font-weight:850!important;box-shadow:inset 4px 0 0 #f97316!important}
html.dark .ct-up-shell{color:#e2e8f0}html.dark .ct-up-hero{border-color:#2b3a4f;background:linear-gradient(135deg,#0f172a 0%,#111827 62%,#1d2738 100%);box-shadow:0 18px 42px rgba(2,6,23,.48)}html.dark .ct-up-name,html.dark .ct-up-panel-title,html.dark .ct-up-task-title,html.dark .ct-up-focus-title{color:#f8fafc}html.dark .ct-up-eyebrow,html.dark .ct-up-meta,html.dark .ct-up-panel-sub,html.dark .ct-up-task-meta,html.dark .ct-up-focus-meta{color:#94a3b8}html.dark .ct-up-chip{background:#111827;border-color:#334155;color:#cbd5e1}html.dark .ct-up-btn{background:#111827;border-color:#334155;color:#e2e8f0}html.dark .ct-up-btn-primary{background:#d6df20;color:#111827;border-color:#d6df20}html.dark .ct-up-score{background:#111827;border-color:#334155}html.dark .ct-up-score-ring{background:conic-gradient(#d6df20 calc(var(--score)*1%),#334155 0)}html.dark .ct-up-score-ring:after{background:#111827}html.dark .ct-up-score-value{color:#f8fafc}html.dark .ct-up-score-label{color:#cbd5e1}html.dark .ct-up-stat,html.dark .ct-up-panel{background:#0f172a;border-color:#2a384c;box-shadow:0 16px 36px rgba(2,6,23,.38)}html.dark .ct-up-stat.pending{background:linear-gradient(180deg,rgba(37,99,235,.17),#0f172a)}html.dark .ct-up-stat.soon{background:linear-gradient(180deg,rgba(245,158,11,.15),#0f172a)}html.dark .ct-up-stat.overdue{background:linear-gradient(180deg,rgba(239,68,68,.16),#0f172a)}html.dark .ct-up-stat.review{background:linear-gradient(180deg,rgba(124,58,237,.16),#0f172a)}html.dark .ct-up-stat-label{color:#94a3b8}html.dark .ct-up-stat-value{color:#f8fafc}html.dark .ct-up-panel-head{border-color:#2a384c}html.dark .ct-up-search,html.dark .ct-up-filter,html.dark .ct-up-sort{background:#111827;border-color:#334155;color:#e2e8f0}html.dark .ct-up-task{background:#111827;border-color:#2a384c}html.dark .ct-up-task:hover{border-color:#475569;box-shadow:0 10px 24px rgba(2,6,23,.42)}html.dark .ct-up-task.overdue{background:rgba(127,29,29,.18);border-color:#7f1d1d}html.dark .ct-up-task.soon{background:rgba(120,53,15,.18);border-color:#78350f}html.dark .ct-up-deadline-main{color:#e2e8f0}html.dark .ct-up-task.overdue .ct-up-deadline-main{color:#fca5a5}html.dark .ct-up-task.soon .ct-up-deadline-main{color:#fcd34d}html.dark .ct-up-focus-card{background:#111827;border-color:#2a384c}html.dark .ct-up-focus-card.overdue{background:rgba(127,29,29,.18);border-color:#7f1d1d}html.dark .ct-up-focus-card.soon{background:rgba(120,53,15,.18);border-color:#78350f}html.dark .ct-up-empty strong{color:#e2e8f0}html.dark .ct-up-empty{color:#94a3b8}html.dark .ct-up-error{background:rgba(127,29,29,.24);border-color:#7f1d1d;color:#fecaca}html.dark .ct-up-mini-bar{background:#334155}html.dark #sidenav .nav-item.ct-nav-current,html.dark #sidenav .nav-item[aria-current="page"],html.dark #mobileTopMenu .ct-nav-current{background:rgba(214,223,32,.11)!important;color:#f8fafc!important;box-shadow:inset 4px 0 0 #d6df20!important}
@media(max-width:1050px){.ct-up-layout{grid-template-columns:1fr}.ct-up-hero{grid-template-columns:1fr}.ct-up-hero-side{justify-content:space-between}.ct-up-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-up-deadline{min-width:120px}}
@media(max-width:680px){.ct-up-shell{padding:12px}.ct-up-hero{padding:16px;border-radius:18px}.ct-up-avatar-wrap{width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;min-height:62px!important;max-height:62px!important;flex-basis:62px!important}.ct-up-name{font-size:20px}.ct-up-hero-side{align-items:flex-start;flex-wrap:wrap}.ct-up-score{width:100%;height:auto;flex-direction:row;justify-content:flex-start;gap:10px}.ct-up-score-label,.ct-up-score-help{text-align:left}.ct-up-actions{width:100%;justify-content:stretch}.ct-up-btn{flex:1;justify-content:center}.ct-up-grid{grid-template-columns:1fr 1fr}.ct-up-stat{padding:12px}.ct-up-stat-value{font-size:23px}.ct-up-panel-head{align-items:stretch}.ct-up-toolbar{width:100%}.ct-up-search{min-width:0;flex:1 1 100%}.ct-up-filter,.ct-up-sort{flex:1}.ct-up-task{grid-template-columns:5px minmax(0,1fr)}.ct-up-deadline{grid-column:2;text-align:left;min-width:0}.ct-up-task-title{white-space:normal}}

/* v5.3 completed-task summary */
.ct-up-grid.ct-up-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.ct-up-stat.completed{background:linear-gradient(180deg,#f0fdf4 0%,#fff 100%);border-color:#bbf7d0}.ct-up-stat.completed .ct-up-stat-value{color:#16a34a}
.ct-up-task.completed{border-color:#bbf7d0;background:#f7fff9}.ct-up-task.completed .ct-up-rail{background:#22c55e}.ct-up-task.completed .ct-up-deadline-main{color:#15803d}
html.dark .ct-up-stat.completed{background:linear-gradient(180deg,rgba(22,163,74,.17),#0f172a);border-color:#166534}html.dark .ct-up-task.completed{background:rgba(20,83,45,.18);border-color:#166534}html.dark .ct-up-task.completed .ct-up-deadline-main{color:#86efac}
@media(max-width:1200px){.ct-up-grid.ct-up-grid-five{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.ct-up-grid.ct-up-grid-five{grid-template-columns:1fr 1fr}}
