/* Task Center v1.0.9.11a — uses existing NeoPulse design tokens */
.task-center{margin:20px 0 26px;border:1px solid rgba(77,226,255,.19);border-radius:26px;padding:19px;background:linear-gradient(145deg,rgba(77,226,255,.055),rgba(139,124,255,.035) 50%,var(--surface));box-shadow:var(--shadow)}
.task-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.task-heading h3{margin:5px 0 4px;font-size:23px;letter-spacing:-.035em}
.task-heading p{color:var(--muted);font-size:12px;line-height:1.55;margin:0}
.task-heading .primary{flex:0 0 auto}
.task-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:17px 0}
.task-stat{background:rgba(255,255,255,.035);border:1px solid var(--border);border-radius:14px;padding:11px 9px}
.task-stat strong{display:block;font-size:23px;line-height:1.1;font-variant-numeric:tabular-nums}
.task-stat small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.task-stat.urgent strong{color:var(--red)}
.task-stat.today strong{color:var(--yellow)}
.task-stat.monthly strong{color:var(--violet)}
.task-quick{display:flex;gap:8px;margin-bottom:12px}
.task-quick input,.task-tools input,.task-tools select,.task-form input,.task-form select,.task-form textarea{width:100%;min-width:0;border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:12px;padding:11px 12px;font:inherit;font-size:13px;outline:none}
.task-quick input:focus,.task-tools input:focus,.task-form input:focus,.task-form select:focus,.task-form textarea:focus{border-color:var(--cyan)}
.task-quick .secondary{white-space:nowrap}
.task-tools{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:11px}
.task-tools select{max-width:132px}
.task-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding-bottom:10px}
.task-filters::-webkit-scrollbar{display:none}
.task-filter{border:1px solid var(--border);border-radius:99px;padding:7px 10px;background:rgba(255,255,255,.035);color:var(--muted);white-space:nowrap;font-size:11px;font-weight:750}
.task-filter.active{background:rgba(77,226,255,.16);border-color:rgba(77,226,255,.4);color:var(--cyan)}
.task-list{display:grid;gap:10px}
.task-item{border:1px solid var(--border);border-radius:18px;background:var(--surface);padding:14px;box-shadow:inset 3px 0 rgba(77,226,255,.38)}
.task-item.task-overdue{box-shadow:inset 3px 0 var(--red);border-color:rgba(255,92,122,.24)}
.task-item.task-done{box-shadow:inset 3px 0 var(--mint);opacity:.84}
.task-item.task-monthly{border-color:rgba(139,124,255,.28)}
.task-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.task-item h4{font-size:15px;line-height:1.35;margin:0 0 4px;overflow-wrap:anywhere}
.task-item.task-done h4{text-decoration:line-through;text-decoration-color:var(--muted)}
.task-item .task-description{color:var(--muted);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}
.task-item .task-date{color:var(--muted);font-size:11px;margin:6px 0 0}
.task-item .task-date.overdue{color:var(--red);font-weight:750}
.task-item .task-date.due_today{color:var(--yellow);font-weight:750}
.task-tags{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}
.task-label{display:inline-block;border-radius:99px;padding:4px 7px;font-size:10px;font-weight:750;background:rgba(255,255,255,.06);color:var(--muted)}
.task-label.recurring{background:rgba(139,124,255,.14);color:#b8afff}
.task-label.monitored{background:rgba(46,230,166,.11);color:var(--mint)}
.task-label.critical{background:rgba(255,92,122,.13);color:var(--red)}
.task-label.high{background:rgba(246,196,69,.13);color:var(--yellow)}
.task-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.task-actions button{font-size:11px;padding:8px 10px;border-radius:10px}
.task-subtasks{border-top:1px solid var(--border);padding-top:10px;margin-top:10px;display:grid;gap:7px}
.task-subtasks>small{color:var(--muted);font-size:10px;font-weight:700}
.task-subtask{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}
.task-subtask input{width:16px;height:16px;accent-color:var(--cyan)}
.task-subtask span.done{text-decoration:line-through;color:var(--muted)}
.task-history{border-top:1px solid var(--border);margin-top:12px;padding-top:10px;color:var(--muted);font-size:11px}
.task-history summary{cursor:pointer;color:var(--cyan);font-weight:750}
.task-history p{margin:7px 0 0}
.task-empty{border:1px dashed var(--border);border-radius:16px;padding:23px;text-align:center;color:var(--muted);font-size:12px;line-height:1.5}
.task-empty b{display:block;color:var(--text);margin-bottom:5px}
.task-error{font-size:12px;color:var(--red);margin:8px 0}
.task-form .field{margin:11px 0}
.task-form .field label{display:block;margin-bottom:5px}
.task-form .field small{font-size:11px;color:var(--muted);line-height:1.4}
.task-form textarea{min-height:82px;resize:vertical}
.task-form .task-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.task-form .task-form-grid .field{min-width:0}
.task-form .task-monitor-choice{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:13px;padding:12px;margin:12px 0}
.task-monitor-choice input{width:17px;height:17px;flex:0 0 17px;margin-top:2px;accent-color:var(--cyan)}
.task-monitor-choice b{display:block;font-size:13px}
.task-monitor-choice small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:4px}
.task-form-foot{display:flex;gap:8px;margin:15px 0 8px}
.task-form-foot button{flex:1}
@media(max-width:440px){
 .task-center{padding:13px;border-radius:20px}
 .task-heading{gap:8px}
 .task-heading h3{font-size:20px}
 .task-heading .primary{padding:9px 10px;font-size:11px}
 .task-summary{gap:5px}
 .task-stat{padding:9px 6px}
 .task-stat strong{font-size:20px}
 .task-stat small{font-size:9px}
 .task-form .task-form-grid{grid-template-columns:1fr}
}


/* Progress Pulse and Monthly Report — deliberately compact on mobile */
.task-progress-panel{border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.024);padding:13px;margin:14px 0 10px}
.task-progress-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.task-progress-header small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.task-progress-caption{color:var(--muted);font-size:9px;text-align:right;max-width:140px}
.task-period-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:13px 0 12px}
.task-period{border:1px solid var(--border);background:rgba(255,255,255,.03);color:var(--muted);border-radius:10px;padding:8px 3px;font-size:11px;font-weight:800}
.task-period.active{color:var(--cyan);border-color:rgba(77,226,255,.38);background:rgba(77,226,255,.11)}
.task-progress-main{display:flex;align-items:center;gap:15px}
.task-progress-ring{width:79px;height:79px;border-radius:50%;flex:0 0 79px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;background:conic-gradient(var(--mint) 0%,rgba(255,255,255,.1) 0%)}
.task-progress-ring:before{content:'';position:absolute;inset:8px;border-radius:50%;background:var(--surface)}
.task-progress-ring strong,.task-progress-ring small{z-index:1}
.task-progress-ring strong{font-size:21px;font-weight:850;font-variant-numeric:tabular-nums}
.task-progress-ring small{color:var(--muted);font-size:9px}
.task-progress-copy{min-width:0;flex:1}
.task-progress-copy b{font-size:17px;letter-spacing:-.02em}
.task-progress-copy p{font-size:11px;color:var(--muted);line-height:1.45;margin:5px 0}
.task-progress-cta{border:0;background:transparent;color:var(--cyan);font-weight:800;font-size:11px;padding:2px 0;margin:0 0 5px;cursor:pointer;text-align:left}
.task-progress-meta{font-size:10px;color:var(--cyan);line-height:1.5;font-weight:750}
.task-progress-track{height:5px;border-radius:10px;background:rgba(255,255,255,.08);overflow:hidden;margin:12px 0 7px}
.task-progress-track span{display:block;height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),var(--mint));transition:width .3s ease}
.task-progress-definition{font-size:9px;color:var(--muted);line-height:1.4;display:block}
.task-monthly-report{border:1px solid var(--border);border-radius:17px;background:rgba(255,255,255,.025);margin:10px 0 15px;overflow:hidden}
.task-monthly-report>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px}
.task-monthly-report>summary::-webkit-details-marker{display:none}
.task-monthly-report>summary b{font-size:13px}
.task-monthly-report>summary small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.task-report-chevron{color:var(--cyan);font-size:21px;transition:transform .2s}
.task-monthly-report[open] .task-report-chevron{transform:rotate(180deg)}
.task-report-content{padding:0 13px 13px;border-top:1px solid var(--border)}
.task-report-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0}
.task-report-head label{font-size:11px;color:var(--muted);font-weight:750}
.task-report-head input{background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:11px;padding:8px;font-size:12px;max-width:155px}
.task-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.task-report-metric{padding:9px 6px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.025);text-align:center}
.task-report-metric strong{font-size:20px;display:block;font-variant-numeric:tabular-nums}
.task-report-metric small{font-size:9px;color:var(--muted)}
.task-report-metric.pending strong{color:var(--yellow)}
.task-report-metric.completed strong{color:var(--mint)}
.task-report-metric.carried strong{color:var(--violet)}
.task-report-note{font-size:10px;line-height:1.45;color:var(--muted);margin:10px 0}
.task-report-pending-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 8px;font-size:12px}
.task-report-pending-head label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}
.task-report-pending-head input,.task-report-row input{accent-color:var(--cyan);width:16px;height:16px;flex:0 0 16px}
.task-report-pending{display:grid;gap:6px;max-height:270px;overflow-y:auto}
.task-report-row{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:10px;display:flex;align-items:center;gap:8px}
.task-report-row-main{min-width:0;flex:1}
.task-report-row-main b{display:block;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.task-report-row-main small{display:block;font-size:9px;color:var(--muted);margin-top:3px;line-height:1.4}
.task-report-row button{white-space:nowrap;font-size:10px;padding:7px 8px}
.task-report-empty{border:1px dashed var(--border);border-radius:12px;padding:14px;text-align:center;color:var(--muted);font-size:11px;line-height:1.5}
.task-report-empty b{color:var(--text)}
.task-carry-controls{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:12px 0}
.task-carry-controls button:disabled{opacity:.4;cursor:not-allowed}
.task-carry-controls small{font-size:10px;color:var(--muted);line-height:1.4}
.task-report-activity{border-top:1px solid var(--border);padding-top:10px;margin-top:10px}
.task-report-activity summary{cursor:pointer;font-size:11px;color:var(--cyan);font-weight:750}
.task-report-activity-list{display:grid;gap:6px;padding-top:9px}
.task-report-activity-list p{font-size:10px;line-height:1.4;margin:0;color:var(--muted);overflow-wrap:anywhere}
.task-report-activity-list p b{color:var(--text)}
@media(max-width:380px){
 .task-progress-panel{padding:10px}
 .task-progress-ring{width:66px;height:66px;flex-basis:66px}
 .task-progress-ring strong{font-size:17px}
 .task-progress-main{gap:10px}
 .task-progress-copy b{font-size:15px}
 .task-report-row{gap:5px;padding:8px}
 .task-report-row button{padding:7px 6px}
}
