*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --border: #e8e4de;
  --border-strong: #d0c9bf;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-faint: #a8a29e;
  --accent: #16793a;
  --accent-light: #dcfce7;
  --accent-hover: #0f5a2b;
  --danger: #dc2626;
  --danger-light: #fee2e2;

  /* Category colors */
  --cat-education: #dbeafe;
  --cat-education-text: #1e40af;
  --cat-ticket: #fef9c3;
  --cat-ticket-text: #854d0e;
  --cat-brand: #fce7f3;
  --cat-brand-text: #9d174d;
  --cat-fundraising: #ede9fe;
  --cat-fundraising-text: #5b21b6;
  --cat-announcement: #ffedd5;
  --cat-announcement-text: #9a3412;

  /* Status colors */
  --status-draft: #f3f4f6;
  --status-draft-text: #6b7280;
  --status-review: #fef9c3;
  --status-review-text: #854d0e;
  --status-scheduled: #dbeafe;
  --status-scheduled-text: #1e40af;
  --status-posted: #dcfce7;
  --status-posted-text: #166534;
  --status-approved: #dcfce7;
  --status-approved-text: #166534;
  --status-hold: #fee2e2;
  --status-hold-text: #991b1b;

  /* Content type colors */
  --type-post: #e0f2fe;
  --type-email: #ede9fe;
  --type-tabling: #fef9c3;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

/* ── HEADER ─────────────────────────────────────────── */
.header {
  background: var(--text);
  color: white;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: white;
  letter-spacing: -0.02em;
}

.logo span {
  color: #86efac;
}

.header-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a29e;
  border: 1px solid #3f3f46;
  padding: 2px 8px;
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-muted);
}
.btn-outline:hover { background: var(--border); color: var(--text); }
.btn-outline.active { background: var(--text); color: white; border-color: var(--text); }

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: none;
}
.btn-danger:hover { background: var(--danger); color: white; }

/* ── TOOLBAR ─────────────────────────────────────────── */
.toolbar {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.week-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 160px;
  text-align: center;
}

.tab-group {
  display: flex;
  background: var(--bg);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.tab {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.tab.active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.main {
  padding: 20px 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── WEEK CALENDAR ───────────────────────────────────── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.day-col {
  background: var(--surface);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  min-height: 200px;
  transition: border-color 0.15s;
}

.day-col.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.day-header {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.day-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.day-num {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

.day-col.today .day-name { color: var(--accent); }
.day-col.today .day-num { color: var(--accent); }
.day-col.today { border-color: var(--accent); }

.day-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.add-btn {
  width: 100%;
  padding: 6px;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
  margin-top: 4px;
}
.add-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ── CALENDAR CARDS ──────────────────────────────────── */
.cal-card {
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  position: relative;
  user-select: none;
}
.cal-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.cal-card[draggable="true"] { cursor: grab; }
.cal-card.dragging { opacity: 0.4; }

.cal-card.type-post { background: #f0f9ff; border-color: #bae6fd; }
.cal-card.type-email { background: #f5f3ff; border-color: #ddd6fe; }
.cal-card.type-tabling { background: #fefce8; border-color: #fde68a; }

.card-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.card-type-icon {
  font-size: 11px;
}

.card-platform {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.card-theme {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-Draft { background: var(--status-draft); color: var(--status-draft-text); }
.status-Needs-Review { background: var(--status-review); color: var(--status-review-text); }
.status-Scheduled { background: var(--status-scheduled); color: var(--status-scheduled-text); }
.status-Posted { background: var(--status-posted); color: var(--status-posted-text); }
.status-Sent { background: var(--status-posted); color: var(--status-posted-text); }
.status-Approved { background: #dcfce7; color: #166534; }
.status-Parked { background: #f3f4f6; color: #6b7280; border: 1.5px dashed #9ca3af; }
.status-On-Hold { background: var(--status-hold); color: var(--status-hold-text); }

.cat-Education { background: var(--cat-education); color: var(--cat-education-text); }
.cat-Ticket-Sales { background: var(--cat-ticket); color: var(--cat-ticket-text); }
.cat-Brand-Building { background: var(--cat-brand); color: var(--cat-brand-text); }
.cat-Fundraising { background: var(--cat-fundraising); color: var(--cat-fundraising-text); }
.cat-Announcement { background: var(--cat-announcement); color: var(--cat-announcement-text); }
.cat-Whats-Happening    { background: #e0f2fe; color: #0369a1; }
.cat-WOW-Factor         { background: #fce7f3; color: #9d174d; }
.cat-Event-Announcement { background: #ffedd5; color: #9a3412; }
.cat-SFP-Reminder       { background: #ede9fe; color: #5b21b6; }
.cat-Other-Campaign     { background: #f3f4f6; color: #374151; }

/* ── LIST VIEW ───────────────────────────────────────── */
.list-view { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.list-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--border);
}

.list-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 90px 70px 110px 120px 110px 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.list-row:hover { border-color: var(--border-strong); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.list-row.type-email { border-left: 3px solid #a78bfa; }
.list-row.type-tabling { border-left: 3px solid #fbbf24; }
.list-row.type-post { border-left: 3px solid #38bdf8; }

.list-date { font-size: 12px; font-weight: 600; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.list-theme { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-copy { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-actions { display: flex; gap: 5px; align-items: center; }

/* ── MODAL ───────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.overlay.open { opacity: 1; }

.modal {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(10px);
  transition: transform 0.2s;
}
.overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
  border-radius: 14px 14px 0 0;
}

.modal-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-radius: 0 0 14px 14px;
}

/* ── FORM ELEMENTS ───────────────────────────────────── */
.form-row { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 5px; }

label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="url"],
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: white; }
textarea { resize: vertical; min-height: 80px; }

/* ── TYPE SWITCHER ───────────────────────────────────── */
.type-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.type-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.15s;
}
.type-btn:hover { border-color: var(--border-strong); }
.type-btn.active.post { border-color: #38bdf8; background: #f0f9ff; color: #0369a1; }
.type-btn.active.email { border-color: #a78bfa; background: #f5f3ff; color: #6d28d9; }
.type-btn.active.tabling { border-color: #fbbf24; background: #fefce8; color: #92400e; }

/* ── CONTENT DUE CALLOUT ─────────────────────────────── */
.due-callout {
  background: #fef9c3;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #92400e;
}

/* ── EMPTY STATE ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-faint);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-title { font-weight: 600; font-size: 16px; color: var(--text-muted); margin-bottom: 6px; }
.empty-state .empty-sub { font-size: 13px; }

/* ── CONFIRM DIALOG ──────────────────────────────────── */
.confirm-dialog {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MONTH GRID ──────────────────────────────────────── */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
}

.month-day-header {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.month-cell {
  background: var(--surface);
  min-height: 110px;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  vertical-align: top;
  transition: background 0.1s;
}
.month-cell:nth-child(7n) { border-right: none; }
.month-cell.other-month { background: #faf9f7; }
.month-cell.today { background: #f0fdf4; }
.month-cell.today .month-cell-num { color: var(--accent); font-weight: 700; }

.month-cell-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1;
}
.month-cell.other-month .month-cell-num { color: var(--text-faint); }

.month-cell .add-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 14px;
  border-radius: 4px;
  display: none;
}
.month-cell:hover .add-btn { display: flex; align-items: center; justify-content: center; }

.month-card {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  display: block;
}
.month-card:hover { opacity: 0.8; }
.month-card.type-post { background: #e0f2fe; color: #0369a1; }
.month-card.type-email { background: #ede9fe; color: #6d28d9; }
.month-card.type-tabling { background: #fef9c3; color: #92400e; }

.month-more {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.month-more:hover { color: var(--accent); }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* ── STATUS: PARKED ──────────────────────────────────── */
.status-Parked { background: #f3f4f6; color: #6b7280; border: 1.5px dashed #9ca3af; }

/* ── COMMENT FEED ────────────────────────────────────── */
.comment-feed {
  border-top: 1.5px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-feed-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.comment-time {
  font-size: 11px;
  color: var(--text-faint);
}

.comment-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.comment-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.comment-input-wrap textarea {
  flex: 1;
  min-height: 56px;
  resize: none;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ── PLANNER ──────────────────────────────────────────────────────────────────
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Planner toolbar ── */
.planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

/* ── BOARD ── */
.board-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.board-col {
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.board-col-header {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.board-col-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  background: var(--border);
  border-radius: 99px;
  padding: 1px 8px;
}

.board-col-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.board-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.board-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); transform: translateY(-1px); }

.board-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.board-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.board-card-dates {
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'DM Mono', monospace;
  margin-bottom: 6px;
}

.board-card-progress {
  margin-top: 8px;
}

/* ── Progress bar ── */
.progress-bar-bg {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s;
}

.progress-label {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
}

/* ── GANTT ── */
.gantt-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.gantt-wrap {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.gantt-header-row {
  display: flex;
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.gantt-label-col {
  width: 220px;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.gantt-months {
  flex: 1;
  display: flex;
}

.gantt-month-header {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-body {
  display: flex;
  flex-direction: column;
}

.gantt-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  min-height: 42px;
}
.gantt-row:last-child { border-bottom: none; }
.gantt-row:hover { background: var(--bg); }

.gantt-label {
  width: 220px;
  flex-shrink: 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.gantt-label-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gantt-label-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.gantt-label-tasks {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.gantt-track {
  flex: 1;
  position: relative;
  align-self: stretch;
}

.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff0158;
  opacity: 0.6;
  z-index: 2;
}

.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  border-radius: 4px;
  min-width: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  z-index: 1;
  transition: filter 0.15s;
}
.gantt-bar:hover { filter: brightness(0.9); }

.gantt-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ── Project detail panel ── */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.4);
  backdrop-filter: blur(2px);
  z-index: 500;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.2s;
}
.panel-overlay.open { opacity: 1; }

.project-detail-panel {
  background: var(--surface);
  width: 100%;
  max-width: 520px;
  height: 100%;
  overflow-y: auto;
  padding: 28px;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.panel-overlay.open .project-detail-panel { transform: translateX(0); }

.panel-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.panel-close-btn:hover { color: var(--text); }

.project-detail-header {
  padding: 16px 16px 16px 20px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}

.project-detail-name {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}

.detail-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.detail-section:last-child { border-bottom: none; }

.detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.detail-value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.detail-url-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s;
}
.detail-url-chip:hover { background: var(--accent-light); border-color: var(--accent); }

/* ── Asset rows ── */
/* ── Asset rows ── */
.asset-row, .asset-detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 7px;
  border: 1.5px solid var(--border);
  box-sizing: border-box;
  width: 100%;
}

/* Row 1: label + action buttons */
.asset-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.asset-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.asset-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.asset-remove-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
}
.asset-detail-row:hover .asset-remove-btn { opacity: 1; }
.asset-remove-btn:hover { color: var(--danger); }

/* Row 2: status pills */
.asset-row-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.asset-status-pills {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.asset-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  white-space: nowrap;
  line-height: 1.4;
}
.asset-pill:hover { border-color: var(--accent); color: var(--accent); }
.asset-pill.active[data-status="Needed"]      { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.asset-pill.active[data-status="In Progress"] { background: #fef9c3; color: #92400e; border-color: #fcd34d; }
.asset-pill.active[data-status="Done"]        { background: #dcfce7; color: #166534; border-color: #86efac; }
.asset-file-slot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
  flex-wrap: wrap;
}
.asset-file-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.asset-file-link:hover { text-decoration: underline; }
.asset-file-attach {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
  background: none;
  border: 1.5px dashed var(--border-strong);
  border-radius: 4px;
  padding: 0px 5px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  line-height: 1.6;
}
.asset-file-attach:hover { border-color: var(--accent); color: var(--accent); }
.asset-file-clear {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
  padding: 1px 3px;
  flex-shrink: 0;
  line-height: 1;
}
.asset-file-clear:hover { color: var(--danger); }

/* Tagged file shown inside a creative need row */
.asset-tagged-file {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px 3px 4px;
  max-width: 220px;
}
.asset-tagged-thumb {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
}
.asset-tagged-icon { font-size: 16px; flex-shrink: 0; }

/* Badge shown in the Files section on tagged files */
.file-asset-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

/* Tag dropdown in Files section */
.file-tag-select {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  max-width: 110px;
}


.task-group {
  margin-bottom: 12px;
}
.task-group-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.task-group-count {
  background: var(--border);
  color: var(--text-faint);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10px;
}
.task-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  transition: all 0.15s;
}
.task-row:hover { border-color: var(--border-strong); }
.task-row.task-done { opacity: 0.6; }
.task-row-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.task-content {
  flex: 1;
  min-width: 0;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  transition: all 0.15s;
  margin-top: 1px;
}
.task-check:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.task-check.checked { background: var(--accent); border-color: var(--accent); }
.task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.task-title-done { text-decoration: line-through; color: var(--text-faint); }
.task-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.task-meta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.task-meta-item { font-size: 11px; color: var(--text-faint); }
.task-status-select {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  background: var(--bg);
  flex-shrink: 0;
  cursor: pointer;
}
.task-delete-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.task-row:hover .task-delete-btn,
.asset-detail-row:hover .task-delete-btn { opacity: 1; }
.task-delete-btn:hover { color: var(--danger); }

.task-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.task-progress-bar .progress-bar-bg { flex: 1; height: 6px; }

/* ── Wizard ── */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}

.wizard-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.wizard-step-dot.active { border-color: var(--accent); background: var(--accent); color: white; }
.wizard-step-dot.done   { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

.wizard-step-line {
  height: 2px;
  width: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.wizard-question {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}

.wizard-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Color swatches ── */
.color-swatch.selected {
  border-color: #1c1917 !important;
  transform: scale(1.15);
}

/* ── Review grid ── */
.review-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.review-row:last-child { border-bottom: none; }
.review-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.review-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ── Project status chips ── */
.status-Planning { background: #dbeafe; color: #1e40af; }
.status-Active   { background: #dcfce7; color: #166534; }
.status-Paused   { background: #fef9c3; color: #854d0e; }
.status-Complete { background: #f3f4f6; color: #6b7280; }

/* ── Project file rows ── */
.project-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.project-file-row:hover { border-color: var(--border-strong); }
.project-file-row .task-delete-btn { opacity: 1; }

.project-file-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}

.project-file-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 5px;
  border: 1px solid var(--border);
}

.project-file-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.project-file-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-file-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
  white-space: nowrap;
}

/* ══ PROJECT DETAIL MODAL (large centered) ══════════════════════════════════ */
.project-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.55);
  backdrop-filter: blur(3px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.project-detail-overlay.open { opacity: 1; }

.project-detail-modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(16px);
  transition: transform 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.project-detail-overlay.open .project-detail-modal { transform: translateY(0); }

.project-detail-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  padding-top: 20px;
  overflow-y: auto;
  gap: 0;
}

.project-detail-modal-header {
  padding: 16px 20px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}

.project-detail-name {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  line-height: 1.2;
  color: var(--text);
}

.project-detail-modal-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ── Left: plan doc ── */
.project-detail-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-doc-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.detail-doc-section:last-child { border-bottom: none; }

.detail-doc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* ── Right: ops panel ── */
.project-detail-right {
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 0;
}

.detail-right-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.detail-right-section:last-child { border-bottom: none; }

.detail-right-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* ── Channel grid ── */
.channel-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.1s;
}
.channel-active  { background: var(--surface); border: 1.5px solid var(--border); }
.channel-inactive { background: transparent; border: 1.5px solid transparent; opacity: 0.6; }

.channel-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  min-width: 150px;
}

.channel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.channel-weight-select {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  background: var(--bg);
  width: 80px;
  flex-shrink: 0;
}

.channel-notes-input {
  flex: 1;
  font-size: 12px;
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  background: var(--bg);
  outline: none;
  min-width: 0;
}
.channel-notes-input:focus { border-color: var(--accent); background: white; }

.channel-status-select {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  width: 90px;
  flex-shrink: 0;
  cursor: pointer;
}
.channel-status-Planned     { background: #f3f4f6; color: #6b7280; }
.channel-status-In-Progress { background: #fef9c3; color: #92400e; }
.channel-status-Done        { background: #dcfce7; color: #166534; }

/* ── Programs table ── */
.programs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.programs-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.programs-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.programs-table tr:last-child td { border-bottom: none; }
.programs-table tr:hover td { background: var(--bg); }

/* ── Phase rows ── */
.phase-row {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase-name  { font-weight: 700; font-size: 13px; flex: 1; }
.phase-dates { font-size: 11px; color: var(--text-faint); font-family: 'DM Mono', monospace; }

/* ── Activity log ── */
.activity-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}
.activity-row {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.activity-actor { font-weight: 700; color: var(--text); }
.activity-time  { color: var(--text-faint); margin-left: 4px; }

/* ── Health dots ── */
.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.health-green  { background: #16793a; }
.health-yellow { background: #ee9b00; }
.health-red    { background: #ff0158; }

/* ── Kanban drag ── */
.board-col-drag-over .board-col-body {
  background: var(--accent-light);
  border-radius: 0 0 10px 10px;
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
}
.board-card.dragging { opacity: 0.4; cursor: grabbing; }

/* ── URL chips ── */
.detail-url-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s;
}
.detail-url-chip:hover { background: var(--accent-light); border-color: var(--accent); }

/* ── Print styles ── */
@media print {
  .header, .toolbar, .project-detail-right,
  .project-detail-overlay > *:not(.project-detail-modal),
  button, .task-delete-btn { display: none !important; }

  .project-detail-overlay {
    position: static !important;
    background: none !important;
    padding: 0 !important;
  }
  .project-detail-modal {
    max-height: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
  }
  .project-detail-modal-inner { padding: 0 !important; }
  .project-detail-modal-body {
    grid-template-columns: 1fr !important;
  }
  .project-detail-modal-header {
    border: none !important;
    padding: 0 0 16px !important;
  }
  .detail-doc-section { page-break-inside: avoid; }
  body { font-size: 12px !important; }
  .project-detail-name { font-size: 22px !important; }
}

/* ── Planner toolbar ── */
.planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

/* ── Board ── */
.board-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.board-col {
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.board-col-header {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.board-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.board-col-count { font-size: 12px; font-weight: 700; color: var(--text-faint); background: var(--border); border-radius: 99px; padding: 1px 8px; }
.board-col-body  { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.board-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.board-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); transform: translateY(-1px); }
.board-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.board-card-name  { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.board-card-dates { font-size: 11px; color: var(--text-faint); font-family: 'DM Mono', monospace; margin-bottom: 6px; }
.board-card-progress { margin-top: 8px; }
.progress-bar-bg   { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.progress-bar-fill { height: 100%; border-radius: 99px; transition: width 0.3s; }
.progress-label    { font-size: 10px; color: var(--text-faint); font-weight: 600; }

/* ── Gantt ── */
.gantt-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.gantt-wrap { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.gantt-header-row { display: flex; background: var(--text); color: rgba(255,255,255,0.7); }
.gantt-label-col  { width: 220px; flex-shrink: 0; padding: 10px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,0.1); }
.gantt-months     { flex: 1; display: flex; }
.gantt-month-header { padding: 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; border-right: 1px solid rgba(255,255,255,0.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-body  { display: flex; flex-direction: column; }
.gantt-row   { display: flex; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; min-height: 42px; }
.gantt-row:last-child { border-bottom: none; }
.gantt-row:hover { background: var(--bg); }
.gantt-label      { width: 220px; flex-shrink: 0; padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--border); overflow: hidden; }
.gantt-label-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gantt-label-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.gantt-label-tasks { font-size: 10px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.gantt-track      { flex: 1; position: relative; align-self: stretch; }
.gantt-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff0158; opacity: 0.6; z-index: 2; }
.gantt-bar        { position: absolute; top: 50%; transform: translateY(-50%); height: 22px; border-radius: 4px; min-width: 4px; display: flex; align-items: center; padding: 0 8px; overflow: hidden; z-index: 1; transition: filter 0.15s; }
.gantt-bar:hover  { filter: brightness(0.9); }
.gantt-bar-label  { font-size: 11px; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* ── Wizard ── */
.wizard-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; gap: 0; }
.wizard-step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: white; color: var(--text-faint); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.wizard-step-dot.active { border-color: var(--accent); background: var(--accent); color: white; }
.wizard-step-dot.done   { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.wizard-step-line { height: 2px; width: 28px; background: var(--border); flex-shrink: 0; }
.wizard-question  { font-family: 'Instrument Serif', serif; font-size: 18px; color: var(--text); margin-bottom: 20px; line-height: 1.4; }
.wizard-content   { display: flex; flex-direction: column; gap: 16px; }

/* ── task-progress-bar (kept for reference) ── */
.task-progress-bar { display: flex; align-items: center; gap: 10px; }
.task-progress-bar .progress-bar-bg { flex: 1; height: 6px; }

/* ── Project files ── */
/* project-file styles defined above */

/* ── Project status chips ── */
.status-Planning { background: #dbeafe; color: #1e40af; }
.status-Active   { background: #dcfce7; color: #166534; }
.status-Paused   { background: #fef9c3; color: #854d0e; }
.status-Complete { background: #f3f4f6; color: #6b7280; }
