:root {
  --bg-dark: #080d1b;
  --bg-surface: #111a2e;
  --bg-surface-light: #1a2741;
  --accent-gold: #8b5cf6;
  --accent-gold-hover: #a78bfa;
  --accent-gold-muted: rgba(139, 92, 246, .16);
  --font-heading: 'DM Sans', 'Sarabun', sans-serif;
  --font-body: 'DM Sans', 'Sarabun', sans-serif;
  --glass-bg: rgba(17, 26, 46, .82);
  --glass-border: rgba(139, 157, 198, .18);
}

body {
  background: radial-gradient(circle at 72% 0%, rgba(95, 48, 180, .17), transparent 28%),
    linear-gradient(135deg, #080d1b, #0b1224 55%, #08101f);
}

.sidebar {
  background: linear-gradient(180deg, rgba(17, 27, 50, .98), rgba(9, 16, 31, .98));
  border-right: 1px solid rgba(113, 88, 219, .2);
  transition: width .25s ease, transform var(--transition-normal);
}

.sidebar-brand-copy,
.sidebar-profile-copy,
.nav-label { transition: opacity .18s ease, visibility .18s ease; }

.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  color: #9aa8c2;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 9px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .25s ease;
}

.sidebar-collapse-btn:hover,
.sidebar-collapse-btn:focus-visible { color: #fff; background: rgba(124, 58, 237, .24); }
.sidebar-collapse-btn:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.sidebar-collapse-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

body.sidebar-collapsed .sidebar { width: 88px; }
body.sidebar-collapsed .main-content { margin-left: 88px; }
body.sidebar-collapsed .sidebar-header { padding-inline: 18px; justify-content: center; }
body.sidebar-collapsed .sidebar-logo { width: 38px; height: 38px; flex: 0 0 38px; }
body.sidebar-collapsed .sidebar-brand-copy,
body.sidebar-collapsed .sidebar-profile-copy,
body.sidebar-collapsed .nav-label { width: 0; opacity: 0; visibility: hidden; overflow: hidden; }
body.sidebar-collapsed .sidebar-collapse-btn { position: absolute; right: -15px; top: 72px; transform: rotate(180deg); background: #18233c; }
body.sidebar-collapsed .nav-item { justify-content: center; margin-inline: .7rem; padding-inline: .75rem; }
body.sidebar-collapsed .sidebar-profile { justify-content: center; margin-inline: .7rem; padding: .65rem; }

.sidebar-logo {
  background: linear-gradient(145deg, #9c67ed, #4f2b99);
  color: #fff;
  clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(124, 58, 237, .35);
}

.nav-item {
  margin: .22rem .75rem;
  border: 0;
  border-radius: 12px;
  padding: .8rem 1rem;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, .38), rgba(124, 58, 237, .18));
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .08);
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 0;
  border: 1px solid rgba(167, 139, 250, .5);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(139, 92, 246, .8), rgba(59, 130, 246, .35));
  box-shadow: inset 0 0 0 4px rgba(8, 13, 27, .72);
}

.search-bar .nav-icon {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.sidebar-profile {
  margin: auto .8rem 1rem;
  padding: .85rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: rgba(14, 23, 42, .72);
}

.profile-avatar,
.hero-avatar {
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, .5);
  background: linear-gradient(145deg, rgba(124, 58, 237, .18), rgba(30, 41, 59, .6));
  color: #fff;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
}

.sidebar-profile strong { font-size: .82rem; }
.sidebar-profile span { font-size: .68rem; color: #8ea0c0; }

.topbar {
  height: 88px;
  background: rgba(8, 13, 27, .8);
  border-bottom: 0;
}

.notification-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(17, 26, 46, .75);
  color: #cbd5e1;
  cursor: pointer;
}

.notification-button svg { width: 22px; }
.notification-button i {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}

.card {
  background: linear-gradient(145deg, rgba(18, 28, 50, .94), rgba(13, 22, 40, .88));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(1, 5, 15, .25);
}

.card:hover { border-color: rgba(139, 92, 246, .35); }

.premium-hero {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  justify-content: flex-start;
  background: radial-gradient(circle at 82% 45%, rgba(124, 58, 237, .32), transparent 23%),
    linear-gradient(110deg, rgba(67, 46, 125, .38), rgba(22, 25, 64, .84));
  padding: 2rem 2.2rem;
}

.hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 1.6rem;
  z-index: 1;
}

.member-spotlight-copy { z-index: 1; }
.member-spotlight-copy h2 { font-size: 2rem; }

.hero-visual {
  margin-left: auto;
  position: relative;
  width: 270px;
  height: 110px;
}

.visual-window {
  position: absolute;
  right: 18px;
  top: 6px;
  width: 160px;
  height: 96px;
  border-radius: 16px;
  transform: rotate(5deg);
  background: linear-gradient(145deg, #7543cf, #352166);
  box-shadow: 0 16px 40px rgba(91, 33, 182, .45);
}

.visual-window::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(#b892ff 0 25%, #7446d1 25% 60%, #40237c 60%);
}

.visual-window span,
.visual-window i,
.visual-window b {
  position: absolute;
  left: 84px;
  height: 7px;
  border-radius: 8px;
  background: rgba(206, 184, 255, .5);
}

.visual-window span { top: 25px; width: 55px; }
.visual-window i { top: 43px; width: 42px; }
.visual-window b { top: 61px; width: 62px; }

.visual-orb {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4f46e5;
  box-shadow: 0 0 25px #7c3aed;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 112px;
  padding: 1.15rem;
}

.stat-icon {
  background: linear-gradient(145deg, rgba(124, 58, 237, .25), rgba(59, 130, 246, .12));
  color: #a78bfa;
}

.premium-icon { width: 24px; height: 24px; display: block; }
.department-heading-icon { display:inline-flex; vertical-align:middle; margin-right:.45rem; }
.department-heading-icon .premium-icon { width:18px; height:18px; }
.kpi-green { color:#4ade80; background:rgba(34,197,94,.16); }
.kpi-blue { color:#60a5fa; background:rgba(59,130,246,.16); }
.kpi-orange { color:#fb923c; background:rgba(249,115,22,.16); }
.kpi-cyan { color:#22d3ee; background:rgba(6,182,212,.16); }
.kpi-purple { color:#c084fc; background:rgba(168,85,247,.16); }

.dashboard-main-grid { display:grid; grid-template-columns:minmax(0, 1fr) 310px; gap:1rem; margin-top:1rem; align-items:start; }
.dashboard-primary-column { min-width:0; display:grid; gap:1rem; }
.dashboard-right-rail { min-width:0; display:grid; gap:1rem; align-content:start; }
.dashboard-right-rail .card { padding:1rem; }
.premium-section-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.9rem; }
.premium-section-header h3 { font-size:1rem; }
.premium-section-header a,.premium-section-header span { color:#8ea0c0; font-size:.72rem; }
.activity-list { display:grid; }
.activity-item { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:.7rem; align-items:center; padding:.65rem 0; color:#eef2ff; border-bottom:1px solid rgba(148,163,184,.1); }
.activity-item:last-child { border-bottom:0; }
.activity-item strong,.activity-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-item strong { font-size:.78rem; }
.activity-item small,.activity-item time { color:#7f8da8; font-size:.65rem; }
.activity-icon,.summary-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; }
.activity-icon .premium-icon,.summary-icon .premium-icon { width:18px; height:18px; }
.green { color:#4ade80; background:rgba(34,197,94,.16); }
.blue { color:#60a5fa; background:rgba(59,130,246,.16); }
.orange { color:#fb923c; background:rgba(249,115,22,.16); }
.purple { color:#c084fc; background:rgba(168,85,247,.16); }
.summary-list { display:grid; gap:.55rem; }
.summary-item { display:flex; align-items:center; gap:.75rem; padding:.75rem; background:rgba(8,13,27,.32); border:1px solid rgba(148,163,184,.11); border-radius:12px; }
.summary-item strong,.summary-item small { display:block; }
.summary-item strong { font-size:.77rem; }
.summary-item small { margin-top:.12rem; color:#7f8da8; font-size:.66rem; }
.project-timeline-card { margin:0 0 1rem; overflow:hidden; }
.timeline-card-header { align-items:center; gap:1rem; }
.timeline-card-header > div:first-child > span { display:block; color:#7f8da8; font-size:.68rem; margin-top:.2rem; }
.timeline-controls { display:flex; align-items:center; gap:.5rem; color:#dfe7f7; font-size:.75rem; white-space:nowrap; }
.timeline-add-plan { min-height:36px; padding:.35rem .7rem; font-size:.7rem; white-space:nowrap; }
.timeline-nav-btn { display:grid; place-items:center; width:36px; height:36px; min-width:36px; padding:0; font-size:1.3rem; line-height:1; }
.timeline-gantt-scroll { overflow-x:auto; padding-bottom:.3rem; outline:none; }
.timeline-gantt-scroll:focus-visible { box-shadow:0 0 0 2px var(--accent-gold); border-radius:8px; }
.timeline-gantt { min-width:calc(220px + (var(--timeline-days) * 38px)); }
.timeline-gantt-head,.timeline-gantt-row { display:grid; grid-template-columns:220px repeat(var(--timeline-days), minmax(38px,1fr)); }
.timeline-gantt-head { position:sticky; top:0; z-index:2; min-height:38px; align-items:center; border-bottom:1px solid rgba(148,163,184,.18); background:var(--bg-surface, #111827); color:#9aa8c2; font-size:.65rem; text-align:center; }
.timeline-gantt-head > span:first-child { position:sticky; left:0; z-index:3; padding:0 .8rem; text-align:left; background:var(--bg-surface, #111827); color:#dfe7f7; font-size:.7rem; }
.timeline-day { display:grid; place-items:center; height:100%; border-left:1px dashed rgba(148,163,184,.12); font-variant-numeric:tabular-nums; }
.timeline-day-plan { appearance:none; width:100%; padding:0; border:0; border-left:1px dashed rgba(148,163,184,.12); background:transparent; color:inherit; cursor:pointer; font:inherit; }
.timeline-day-plan:hover,.timeline-day-plan:focus-visible { background:rgba(124,58,237,.2); color:#fff; outline:2px solid var(--accent-gold); outline-offset:-2px; }
.timeline-day.weekend { color:#d7a546; background:rgba(215,165,70,.04); }
.timeline-gantt-rows { display:grid; gap:.35rem; padding-top:.5rem; }
.timeline-gantt-row { position:relative; min-height:54px; align-items:center; border-radius:8px; background-image:repeating-linear-gradient(90deg,transparent 0,transparent 37px,rgba(148,163,184,.1) 37px,rgba(148,163,184,.1) 38px); background-position:220px 0; }
.timeline-gantt-label { position:sticky; left:0; z-index:1; align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:.18rem; padding:.45rem .8rem; background:var(--bg-surface, #111827); border-right:1px solid rgba(148,163,184,.14); color:#dfe7f7; text-decoration:none; overflow:hidden; }
.timeline-gantt-label:hover,.timeline-gantt-label:focus-visible { background:rgba(124,58,237,.13); }
.timeline-gantt-label strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.7rem; }
.timeline-gantt-label small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#7f8da8; font-size:.61rem; }
.timeline-gantt-bar { align-self:center; z-index:1; min-width:28px; min-height:30px; display:flex; align-items:center; padding:0 .55rem; border:1px solid currentColor; border-radius:7px; background:color-mix(in srgb, currentColor 18%, transparent); color:#dfe7f7; text-decoration:none; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,.16); transition:transform .18s ease, filter .18s ease; }
.timeline-gantt-bar:hover,.timeline-gantt-bar:focus-visible { transform:translateY(-1px); filter:brightness(1.18); outline:none; }
.timeline-gantt-bar span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.65rem; font-weight:700; }
.timeline-color-0 { color:#22c55e; }
.timeline-color-1 { color:#3b82f6; }
.timeline-color-2 { color:#8b5cf6; }
.timeline-color-3 { color:#f59e0b; }
.timeline-empty { padding:1.25rem; text-align:center; color:#7f8da8; font-size:.75rem; border:1px dashed rgba(148,163,184,.16); border-radius:10px; }

.stat-info small {
  display: block;
  margin-top: .35rem;
  color: #788aa8;
  font-size: .72rem;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #5b31d5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .3);
}

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { display: none; }
  .dashboard-main-grid { grid-template-columns:minmax(0,1fr) 270px; }
}

@media (max-width: 850px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-hero { flex-wrap: wrap; }
  .member-spotlight-copy h2 { font-size: 1.45rem; }
  .dashboard-main-grid { grid-template-columns:1fr; }
  .dashboard-right-rail { grid-template-columns:1fr; }
  .timeline-card-header { align-items:flex-start; flex-direction:column; }
  .timeline-gantt { min-width:calc(174px + (var(--timeline-days) * 34px)); }
  .timeline-gantt-head,.timeline-gantt-row { grid-template-columns:174px repeat(var(--timeline-days), minmax(34px,1fr)); }
  .timeline-gantt-row { background-position:174px 0; }
  .timeline-gantt-label { padding-inline:.55rem; }
}

@media (max-width: 768px) {
  body.sidebar-collapsed .sidebar { width:280px; }
  body.sidebar-collapsed .main-content { margin-left:0; }
  body.sidebar-collapsed .sidebar-brand-copy,
  body.sidebar-collapsed .sidebar-profile-copy,
  body.sidebar-collapsed .nav-label { width:auto; opacity:1; visibility:visible; }
  body.sidebar-collapsed .sidebar-collapse-btn { position:static; transform:none; background:rgba(124, 58, 237, .1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Light, meeting-friendly dashboard */
:root {
  --bg-dark:#f5f7fb;
  --bg-surface:#ffffff;
  --bg-surface-light:#edf2f7;
  --text-primary:#172033;
  --text-secondary:#55637a;
  --text-muted:#768399;
  --accent-gold:#4f46e5;
  --accent-gold-hover:#4338ca;
  --accent-gold-muted:rgba(79,70,229,.1);
  --glass-bg:rgba(255,255,255,.92);
  --glass-border:#e3e8f1;
  --shadow-lg:0 12px 30px rgba(25,42,70,.08);
}

body { background:#f5f7fb; color:var(--text-primary); }
.sidebar { background:#fff; border-right-color:#e3e8f1; box-shadow:8px 0 24px rgba(31,41,55,.03); }
.sidebar-collapse-btn { color:#4f46e5; background:#eef2ff; border-color:#d9ddff; }
.sidebar-collapse-btn:hover,.sidebar-collapse-btn:focus-visible { color:#3730a3; background:#e0e7ff; }
.sidebar-logo { background:linear-gradient(145deg,#6366f1,#4338ca); box-shadow:0 8px 20px rgba(79,70,229,.24); }
.nav-item { color:#526077; }
.nav-item:hover { color:#312e81; background:#f4f6ff; }
.nav-item.active { color:#3730a3; background:#eef2ff; }
.nav-item .nav-icon { border-color:#d7dcf5; background:#eef2ff; box-shadow:inset 0 0 0 4px #fff; }
.sidebar-profile { background:#f8fafc; border-color:#e6eaf0; }
.sidebar-profile span { color:#718096; }
.profile-avatar,.hero-avatar { color:#4338ca; border-color:#d9ddff; background:#eef2ff; }
.topbar { background:rgba(255,255,255,.9); border-bottom:1px solid #e3e8f1; box-shadow:0 2px 12px rgba(30,41,59,.03); }
.notification-button { color:#475569; background:#fff; border-color:#e2e8f0; }
.notification-button i { background:#4f46e5; box-shadow:0 0 8px #818cf8; }
.card { background:#fff; border-color:#e3e8f1; box-shadow:0 8px 24px rgba(25,42,70,.06); }
.card:hover { border-color:#cfd5ff; }
.premium-hero { background:linear-gradient(115deg,#eef2ff,#f8faff 60%,#eef6ff); }
.member-spotlight-copy h2 { color:#1e293b; }
.visual-window { background:linear-gradient(145deg,#818cf8,#4f46e5); box-shadow:0 16px 32px rgba(79,70,229,.2); }
.stat-icon { color:#4f46e5; background:#eef2ff; }
.kpi-green { color:#15803d; background:#dcfce7; }.kpi-blue { color:#2563eb; background:#dbeafe; }.kpi-orange { color:#c2410c; background:#ffedd5; }.kpi-cyan { color:#0e7490; background:#cffafe; }.kpi-purple { color:#6d28d9; background:#ede9fe; }

.timeline-focus { margin:1.25rem 0 1.5rem; }
.timeline-focus .project-timeline-card { margin:0; padding:1.35rem 1.5rem; min-height:360px; }
.timeline-focus .timeline-card-header h3 { font-size:1.2rem; }
.timeline-card-header > div:first-child > span,.premium-section-header a,.premium-section-header span { color:#66758c; }
.timeline-controls { color:#243047; }.timeline-nav-btn { color:#334155; background:#fff; border-color:#dce3ee; }
.timeline-gantt-scroll:focus-visible { box-shadow:0 0 0 3px rgba(79,70,229,.28); }
.timeline-gantt-head { background:#f8fafc; color:#64748b; border-bottom-color:#e2e8f0; }
.timeline-gantt-head > span:first-child { background:#f8fafc; color:#334155; }
.timeline-day { border-left-color:#e8edf4; }.timeline-day.weekend { color:#b45309; background:#fffbeb; }
.timeline-day-plan:hover,.timeline-day-plan:focus-visible { background:#eef2ff; color:#3730a3; outline-color:#818cf8; }
.timeline-gantt-row { min-height:66px; background-image:repeating-linear-gradient(90deg,transparent 0,transparent 37px,#edf1f6 37px,#edf1f6 38px); }
.timeline-gantt-label { background:#fff; border-right-color:#e5eaf1; color:#1e293b; }.timeline-gantt-label:hover,.timeline-gantt-label:focus-visible { background:#f5f7ff; }.timeline-gantt-label small { color:#718096; }
.timeline-gantt-bar { box-shadow:none; color:#1e293b; }.timeline-gantt-bar span { font-size:.7rem; }.timeline-empty { color:#64748b; border-color:#dce3ee; background:#fafbfd; }
.timeline-gantt-bar.timeline-color-0 { color:#166534; background:#dcfce7; border-color:#86efac; }
.timeline-gantt-bar.timeline-color-1 { color:#1d4ed8; background:#dbeafe; border-color:#93c5fd; }
.timeline-gantt-bar.timeline-color-2 { color:#6d28d9; background:#ede9fe; border-color:#c4b5fd; }
.timeline-gantt-bar.timeline-color-3 { color:#9a3412; background:#ffedd5; border-color:#fdba74; }

.dashboard-main-grid { display:block; margin:0 0 1.5rem; }
.dashboard-primary-column,.dashboard-right-rail { display:block; }
.charts-grid { grid-template-columns:minmax(300px,.9fr) minmax(440px,1.4fr); gap:1.25rem; margin:0; }
.chart-container { min-height:320px; padding:1.3rem; }.chart-header h3 { color:#1e293b; }
.donut-inner { background:#fff; }.bar-track { background:#edf2f7; }.bar-label { color:#526077; }.bar-val { color:#334155; }
.legend-item { color:#55637a; }.btn-primary { background:linear-gradient(135deg,#6366f1,#4f46e5); box-shadow:0 7px 18px rgba(79,70,229,.2); }

.timeline-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #f8fafc;
}

.timeline-view-btn {
  min-height: 36px;
  padding: .35rem .75rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
}

.timeline-view-btn:hover,
.timeline-view-btn:focus-visible {
  color: #3730a3;
  background: #eef2ff;
  outline: none;
}

.timeline-view-btn.is-active {
  color: #3730a3;
  background: #e0e7ff;
  box-shadow: 0 1px 3px rgba(79,70,229,.12);
}

.timeline-year-gantt {
  min-width: calc(220px + (var(--timeline-months) * 104px));
}

.timeline-year-gantt-head,
.timeline-year-gantt-row {
  display: grid;
  grid-template-columns: 220px repeat(var(--timeline-months), minmax(92px, 1fr));
}

.timeline-year-gantt-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  align-items: stretch;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: .68rem;
  text-align: center;
}

.timeline-year-gantt-head > span:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 .8rem;
  background: #f8fafc;
  color: #334155;
  text-align: left;
}

.timeline-year-month {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-left: 1px solid #e8edf4;
  background: transparent;
  color: #64748b;
  font: inherit;
}

.timeline-year-month strong { font-size: .72rem; }
.timeline-year-month small { color: #94a3b8; font-size: .62rem; }

.timeline-year-month-plan {
  cursor: pointer;
}

.timeline-year-month-plan:hover,
.timeline-year-month-plan:focus-visible {
  background: #eef2ff;
  color: #3730a3;
  outline: none;
}

.timeline-year-gantt-rows {
  display: grid;
  gap: .35rem;
  padding-top: .5rem;
}

.timeline-year-gantt-row {
  position: relative;
  min-height: 66px;
  align-items: center;
  border-radius: 8px;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 103px, #edf1f6 103px, #edf1f6 104px);
  background-position: 220px 0;
}

.timeline-year-gantt-row .timeline-gantt-label {
  background: #fff;
}

@media (max-width:850px) {
  .timeline-focus .project-timeline-card { padding:1rem; min-height:0; }
  .charts-grid { grid-template-columns:1fr; }
  .timeline-controls { flex-wrap: wrap; justify-content: flex-end; }
  .timeline-year-gantt { min-width: calc(174px + (var(--timeline-months) * 78px)); }
  .timeline-year-gantt-head,.timeline-year-gantt-row { grid-template-columns:174px repeat(var(--timeline-months), minmax(70px, 1fr)); }
  .timeline-year-gantt-row { background-image: repeating-linear-gradient(90deg, transparent 0, transparent 77px, #edf1f6 77px, #edf1f6 78px); background-position:174px 0; }
}
