/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg:         #f4f3f0;
  --surface:    #ffffff;
  --surface-2:  #fafaf8;
  --border:     rgba(0,0,0,.09);
  --border-md:  rgba(0,0,0,.15);
  --text:       #0b0b0b;
  --text-2:     #52514e;
  --text-3:     #898781;
  --accent:     #2a78d6;
  --accent-bg:  #e6f1fb;
  --accent-txt: #185fa5;
  --green:      #1baf7a;
  --green-bg:   #e1f5ee;
  --green-txt:  #0f6e56;
  --amber:      #d97706;
  --amber-bg:   #fef3c7;
  --amber-txt:  #92400e;
  --red:        #e34948;
  --red-bg:     #fee2e2;
  --red-txt:    #991b1b;
  --purple:     #7c3aed;
  --purple-bg:  #ede9fe;
  --purple-txt: #4c1d95;
  --sidebar-w:  220px;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

[data-theme="dark"] {
  --bg:         #111110;
  --surface:    #1c1c1a;
  --surface-2:  #242422;
  --border:     rgba(255,255,255,.08);
  --border-md:  rgba(255,255,255,.14);
  --text:       #f5f5f0;
  --text-2:     #a8a7a2;
  --text-3:     #6b6a66;
  --accent-bg:  #1a2d45;
  --accent-txt: #60a5fa;
  --green-bg:   #0a2e20;
  --green-txt:  #34d399;
  --amber-bg:   #2d1f07;
  --amber-txt:  #fbbf24;
  --red-bg:     #2d0f0f;
  --red-txt:    #f87171;
  --purple-bg:  #1e1433;
  --purple-txt: #a78bfa;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  height: 100vh; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Layout ──────────────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w); background: var(--surface); border-right: 0.5px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
  transition: width .2s ease;
}
#sidebar.collapsed { width: 56px; }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px; border-bottom: 0.5px solid var(--border); flex-shrink: 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--accent); }
.logo i { font-size: 20px; flex-shrink: 0; }
#sidebar.collapsed .logo span, #sidebar.collapsed .nav-item span,
#sidebar.collapsed .nav-section-label, #sidebar.collapsed .user-info,
#sidebar.collapsed .logout-btn { display: none; }
#theme-toggle { background: none; border: none; color: var(--text-3); font-size: 15px; padding: 4px; border-radius: var(--radius); }
#theme-toggle:hover { background: var(--bg); color: var(--text); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nav-section-label { font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); padding: 10px 14px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  color: var(--text-2); cursor: pointer; border-left: 2px solid transparent;
  font-size: 13px; transition: all .12s; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1px 6px 1px 0;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { color: var(--accent-txt); border-left-color: var(--accent); background: var(--accent-bg); font-weight: 500; }
.nav-item i { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }

.sidebar-footer { padding: 10px; border-top: 0.5px solid var(--border); flex-shrink: 0; }
.user-card { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--radius); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  flex-shrink: 0; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--text-3); }
.logout-btn { color: var(--text-3); font-size: 14px; padding: 4px; border-radius: var(--radius); }
.logout-btn:hover { color: var(--red); background: var(--red-bg); }

/* ── Topbar ──────────────────────────────────────────────── */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
#topbar {
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  height: 52px; background: var(--surface); border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
#sidebar-toggle { background: none; border: none; color: var(--text-2); font-size: 16px; padding: 4px 6px; border-radius: var(--radius); }
#sidebar-toggle:hover { background: var(--bg); }
#page-title { font-size: 16px; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.notification-btn { position: relative; color: var(--text-2); font-size: 18px; cursor: pointer; padding: 4px 6px; border-radius: var(--radius); }
.notification-btn:hover { background: var(--bg); }
.notif-badge { position: absolute; top: 0; right: 0; background: var(--red); color: #fff;
  font-size: 9px; border-radius: 99px; padding: 1px 4px; min-width: 14px; text-align: center; }

/* ── Content area ────────────────────────────────────────── */
#content { flex: 1; overflow-y: auto; padding: 20px 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 0.5px solid var(--border-md); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 400;
  cursor: pointer; white-space: nowrap; transition: all .12s;
}
.btn:hover { background: var(--bg); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-txt); border-color: var(--accent-txt); }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-danger  { background: var(--red);   color: #fff; border-color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 7px; font-size: 11px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg); border-color: var(--border); }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title .card-actions { display: flex; gap: 6px; }

/* ── Metrics grid ────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-bottom: 20px; }
.metric-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.metric-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.metric-value { font-size: 28px; font-weight: 700; line-height: 1; }
.metric-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.metric-card.green  .metric-value { color: var(--green); }
.metric-card.amber  .metric-value { color: var(--amber); }
.metric-card.red    .metric-value { color: var(--red); }
.metric-card.accent .metric-value { color: var(--accent); }
.metric-card.purple .metric-value { color: var(--purple); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 8px 10px; color: var(--text-3); font-weight: 500;
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 0.5px solid var(--border); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 0.5px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.badge-green  { background: var(--green-bg);  color: var(--green-txt); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber-txt); }
.badge-red    { background: var(--red-bg);    color: var(--red-txt); }
.badge-blue   { background: var(--accent-bg); color: var(--accent-txt); }
.badge-purple { background: var(--purple-bg); color: var(--purple-txt); }
.badge-gray   { background: var(--bg); color: var(--text-2); border: 0.5px solid var(--border-md); }

/* ── Health dot ──────────────────────────────────────────── */
.health-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.health-dot.Green  { background: var(--green); }
.health-dot.Amber  { background: var(--amber); }
.health-dot.Red    { background: var(--red); }

/* ── Progress bar ────────────────────────────────────────── */
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.form-control {
  width: 100%; padding: 8px 10px; border: 0.5px solid var(--border-md);
  border-radius: var(--radius); background: var(--surface-2); color: var(--text);
  font-size: 13px; font-family: inherit; outline: none; transition: border-color .12s;
}
.form-control:focus { border-color: var(--accent); background: var(--surface); }
textarea.form-control { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 0.5px solid var(--border); }

/* ── Filters ─────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select {
  padding: 6px 10px; border: 0.5px solid var(--border-md); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 12px; font-family: inherit; outline: none;
}
.filter-bar input { width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--accent); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); border: 0.5px solid var(--border);
  width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 0.5px solid var(--border); sticky: top; position: sticky; top: 0;
  background: var(--surface); z-index: 1;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-3); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: var(--radius); }
.modal-close:hover { background: var(--bg); color: var(--text); }
#modal-body { padding: 20px; }

/* ── Toast ───────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: var(--radius);
  font-size: 13px; min-width: 220px; box-shadow: var(--shadow-md);
  animation: slideIn .2s ease; display: flex; align-items: center; gap: 8px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--amber); }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── Kanban ──────────────────────────────────────────────── */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; min-height: 60vh; align-items: flex-start; }
.kanban-col { flex-shrink: 0; width: 280px; background: var(--bg); border-radius: var(--radius-lg); padding: 12px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.kanban-col-count { font-size: 11px; color: var(--text-3); background: var(--surface); border: 0.5px solid var(--border); border-radius: 99px; padding: 1px 7px; }
.kanban-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .12s; }
.kanban-card:hover { box-shadow: var(--shadow); }
.kanban-card-title { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.kanban-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* ── Gantt ───────────────────────────────────────────────── */
.gantt-container { overflow-x: auto; }
.gantt-header-row { display: flex; border-bottom: 0.5px solid var(--border-md); }
.gantt-label-col { width: 200px; flex-shrink: 0; padding: 8px; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.gantt-months { flex: 1; display: flex; min-width: 600px; }
.gantt-month { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); padding: 8px 0; border-left: 0.5px solid var(--border); }
.gantt-row { display: flex; align-items: center; border-bottom: 0.5px solid var(--border); min-height: 42px; }
.gantt-row:hover { background: var(--bg); }
.gantt-row-label { width: 200px; flex-shrink: 0; padding: 8px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-track { flex: 1; position: relative; height: 42px; display: flex; align-items: center; min-width: 600px; }
.gantt-bar { position: absolute; height: 24px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; cursor: pointer; }
.today-marker { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--red); opacity: .7; z-index: 2; pointer-events: none; }

/* ── Calendar ────────────────────────────────────────────── */
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cal-header { background: var(--surface-2); padding: 8px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.cal-day { background: var(--surface); padding: 8px; min-height: 90px; }
.cal-day.other-month { opacity: .45; }
.cal-day.today { background: var(--accent-bg); }
.cal-day-num { font-size: 12px; font-weight: 500; margin-bottom: 4px; color: var(--text-2); }
.cal-day.today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-event { font-size: 10px; padding: 2px 5px; border-radius: 3px; margin-bottom: 2px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.milestone { background: var(--amber-bg); color: var(--amber-txt); }
.cal-event.project   { background: var(--accent-bg); color: var(--accent-txt); }

/* ── Resource heatmap ────────────────────────────────────── */
.heatmap { display: grid; gap: 3px; }
.heatmap-cell { height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #fff; cursor: default; }
.heatmap-cell.h0  { background: var(--bg); color: var(--text-3); }
.heatmap-cell.h1  { background: #bfdbfe; color: #1e3a8a; }
.heatmap-cell.h2  { background: #93c5fd; color: #1e3a8a; }
.heatmap-cell.h3  { background: #60a5fa; color: #1e3a8a; }
.heatmap-cell.h4  { background: var(--amber); color: #fff; }
.heatmap-cell.h5  { background: var(--red); color: #fff; }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.avatars { display: flex; gap: 2px; }

/* ── AI Assistant ────────────────────────────────────────── */
.ai-chat { display: flex; flex-direction: column; gap: 12px; max-height: 50vh; overflow-y: auto; padding: 4px; }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; max-width: 75%; line-height: 1.5; }
.ai-msg.user  .ai-bubble { background: var(--accent); color: #fff; border-radius: 12px 12px 0 12px; }
.ai-msg.agent .ai-bubble { background: var(--surface-2); border: 0.5px solid var(--border); border-radius: 12px 12px 12px 0; }
.ai-input-row { display: flex; gap: 8px; margin-top: 12px; }
.ai-input-row input { flex: 1; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ── Loading spinner ─────────────────────────────────────── */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.spinner-dark { border-color: var(--border-md); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: flex; align-items: center; justify-content: center; height: 200px; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 0.5px solid var(--border); margin-bottom: 20px; }
.tab { padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -0.5px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-txt); border-bottom-color: var(--accent); font-weight: 500; }

/* ── Section header ──────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h2 { font-size: 15px; font-weight: 600; }
.section-header .actions { display: flex; gap: 8px; }

/* ── Audit log ───────────────────────────────────────────── */
.audit-entry { display: flex; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--border); font-size: 12px; }
.audit-entry:last-child { border-bottom: none; }
.audit-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-txt); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.audit-meta { color: var(--text-3); font-size: 11px; margin-top: 2px; }

/* ── Risk matrix ─────────────────────────────────────────── */
.risk-matrix { display: grid; grid-template-columns: auto repeat(4,1fr); gap: 3px; }
.risk-matrix-cell { padding: 6px; text-align: center; font-size: 10px; font-weight: 600; border-radius: 4px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  #sidebar { position: fixed; z-index: 200; height: 100vh; transform: translateX(-100%); transition: transform .2s; }
  #sidebar.mobile-open { transform: translateX(0); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .kanban-board { flex-direction: column; }
  .kanban-col { width: 100%; }
}

/* ── Drag-and-drop ───────────────────────────────────────── */
.drag-over { border: 2px dashed var(--accent) !important; background: var(--accent-bg) !important; }
.dragging { opacity: .5; }

/* ── Project detail tabs ──────────────────────────────────── */
.detail-section { margin-bottom: 20px; }
.detail-section h4 { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 0.5px solid var(--border); }

/* ── Kanban drag states ───────────────────────────────────── */
.kanban-card[draggable=true] { cursor: grab; }
.kanban-card[draggable=true]:active { cursor: grabbing; }

/* ── Risk matrix colours ─────────────────────────────────── */
.risk-low    { background: var(--green-bg);  color: var(--green-txt);  }
.risk-medium { background: var(--amber-bg);  color: var(--amber-txt);  }
.risk-high   { background: var(--red-bg);    color: var(--red-txt);    }

/* ── Page-level scrollable wrapper ──────────────────────────── */
.view-scroll { padding-bottom: 40px; }

/* ── Stat row under charts ───────────────────────────────── */
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 0 0; border-top: 0.5px solid var(--border); margin-top: 12px; }
.stat-item { text-align: center; }
.stat-item .val { font-size: 20px; font-weight: 700; }
.stat-item .lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── Milestone list ──────────────────────────────────────── */
.milestone-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.milestone-row:last-child { border-bottom: none; }
.milestone-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.milestone-dot.complete   { background: var(--green); }
.milestone-dot.incomplete { background: var(--amber); }
.milestone-dot.overdue    { background: var(--red); }

/* ── WBS task indent ─────────────────────────────────────── */
.task-row-l1 { padding-left: 4px; }
.task-row-l2 { padding-left: 22px; }
.task-row-l3 { padding-left: 40px; }

/* ── Project card grid (portfolio) ──────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }

/* ── Hide scrollbar (Chrome) ─────────────────────────────── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Field label (detail modal) ──────────────────────────────── */
.field-lbl { font-size:11px;color:var(--text-3);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px; }

/* ── Milestone rows ──────────────────────────────────────────── */
.milestone-row { display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:0.5px solid var(--border);font-size:13px; }
.milestone-row:last-child { border-bottom:none; }
.milestone-dot { width:10px;height:10px;border-radius:50%;flex-shrink:0; }
.milestone-dot.complete   { background:var(--green); }
.milestone-dot.incomplete { background:var(--amber); }
.milestone-dot.overdue    { background:var(--red); }

/* ── Range input ─────────────────────────────────────────────── */
input[type=range].form-control { background:none;border:none;padding:4px 0;height:auto; }
input[type=range] { accent-color:var(--accent); }
