

/* tabs */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:18px;overflow-x:auto;}
.tab-btn{padding:10px 16px;font-size:14px;font-weight:600;color:var(--text-muted);background:none;border:none;border-bottom:2px solid transparent;white-space:nowrap;}
.tab-btn.active{color:var(--accent-strong);border-color:var(--accent);}

/* table */
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);}
table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:640px;}
th,td{padding:10px 14px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap;}
th{background:var(--surface-2);color:var(--text-muted);font-size:12px;font-weight:600;position:sticky;top:0;}
tbody tr:hover{background:var(--surface-2);}
td.wrap{white-space:normal;min-width:160px;}
tfoot td{font-weight:700;background:var(--surface-2);}
.row-actions{display:flex;gap:6px;justify-content:flex-end;}

.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;}
.chip{background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:6px 14px;font-size:12.5px;color:var(--text-muted);}
.chip b{color:var(--text);font-family:var(--font-mono);}
.chip.filter{cursor:pointer;user-select:none;}
.chip.filter.active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent);}

/* task list */
.task-list{position:relative;}
.task-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 16px;margin-bottom:8px;}
.task-row.done{opacity:.55;}
.task-row.done .task-title{text-decoration:line-through;}
.task-row.dragging{z-index:30;box-shadow:var(--shadow-md);cursor:grabbing;}
.task-row-placeholder{border:2px dashed var(--accent);border-radius:var(--radius-md);background:var(--accent-soft);margin-bottom:8px;}
.drag-handle{width:28px;height:40px;flex:none;display:flex;align-items:center;justify-content:center;font-size:19px;line-height:1;color:var(--text-muted);cursor:grab;touch-action:none;border-radius:var(--radius-sm);user-select:none;-webkit-user-select:none;}
.drag-handle:hover{background:var(--surface-2);color:var(--text);}
.drag-handle:active{cursor:grabbing;}
.check{width:22px;height:22px;border-radius:7px;border:2px solid var(--border);flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;}
.check.checked{background:var(--success);border-color:var(--success);}
.task-title{font-weight:600;font-size:14px;}
.task-meta{font-size:12px;color:var(--text-muted);display:flex;gap:10px;flex-wrap:wrap;margin-top:3px;}
.badge-prio{font-size:11px;padding:2px 9px;border-radius:999px;font-weight:700;flex:none;}
.badge-high{background:var(--danger-soft);color:var(--danger);}
.badge-mid{background:var(--warning-soft);color:var(--warning);}
.badge-low{background:var(--surface-2);color:var(--text-muted);}
.task-spacer{flex:1;}
.task-main{flex:1;min-width:0;}
.reorder-col{display:flex;flex-direction:column;gap:2px;flex:none;}
.reorder-btn{width:22px;height:18px;font-size:9px;padding:0;line-height:1;}
.reorder-btn:disabled{opacity:.25;cursor:default;}
.task-progress-row{display:flex;align-items:center;gap:8px;margin-top:6px;max-width:260px;}
.task-progress-row .track{flex:1;height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden;}
.task-progress-row .fill{height:100%;border-radius:999px;background:var(--accent);}
.badge-status{font-size:11px;padding:2px 9px;border-radius:999px;font-weight:700;flex:none;}
.status-done{background:var(--success-soft);color:var(--success);}
.status-ontrack{background:var(--success-soft);color:var(--success);}
.status-watch{background:var(--accent-soft);color:var(--accent-strong);}
.status-late{background:var(--danger-soft);color:var(--danger);}
.status-notstarted{background:var(--surface-2);color:var(--text-muted);}
.weight-badge{font-size:11px;color:var(--text-muted);background:var(--surface-2);border-radius:999px;padding:2px 9px;flex:none;font-family:var(--font-mono);}
.weight-hint{font-size:12px;color:var(--text-muted);}
.weight-hint.warn{color:var(--warning);}

/* search results & activity log */
.search-group{margin-bottom:18px;}
.search-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 16px;margin-bottom:8px;cursor:pointer;transition:border-color .15s;}
.search-row:hover{border-color:var(--accent);}
.search-row-main{display:flex;flex-direction:column;gap:3px;min-width:0;}
.search-row-title{font-weight:600;font-size:14px;}
.search-row-meta{font-size:12px;color:var(--text-muted);}

/* report */
.report-page{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px;box-shadow:var(--shadow-sm);}
.report-eyebrow{font-family:var(--font-display);font-size:11px;letter-spacing:.14em;color:var(--accent-strong);direction:ltr;text-align:right;}
.report-title{font-size:26px;font-weight:700;margin:6px 0 6px;}
.report-sub{color:var(--text-muted);font-size:14px;max-width:60ch;margin-bottom:18px;}
.report-stat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:26px;}
.report-stat-strip .lbl{font-size:11px;color:var(--accent-strong);margin-bottom:4px;}
.report-stat-strip .val{font-size:15px;font-weight:600;}
.report-section{margin-bottom:26px;}