/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #F2EDE4; }
body {
  font-family: 'DM Sans', sans-serif;
  padding: 2.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header: 3-column grid ── */
.agm-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #B8AE9D;
  position: relative;
  overflow: hidden;
}

#weather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
}

.agm-header > *:not(#weather-canvas) {
  position: relative;
  z-index: 1;
}

.agm-brand { display: flex; align-items: center; gap: 14px; }

.agm-logo-mark {
  width: 46px; height: 46px;
  background: #2C2218;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  color: #F2EDE4; font-size: 24px; flex-shrink: 0;
}

.agm-brand-name { font-size: 18px; font-weight: 600; color: #2C2218; line-height: 1.2; letter-spacing: -0.2px; }
.agm-brand-sub  { font-size: 12px; font-weight: 500; color: #6B5E4E; letter-spacing: 0.6px; text-transform: uppercase; margin-top: 3px; }

/* ── Center scramble ── */
.agm-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.agm-scramble-line {
  font-family: 'DM Mono', monospace;
  font-size: 40px;
  font-weight: 400;
  color: #5C4C3C;
  letter-spacing: 4px;
  text-align: center;
  white-space: nowrap;
  min-height: 48px;
}

.agm-scramble-line .char {
  display: inline-block;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.agm-scramble-line .char.scrambling {
  opacity: 0.2;
  filter: blur(1.5px);
}

.agm-board-sub {
  font-size: 12px;
  font-weight: 500;
  color: #8C7F6E;
  letter-spacing: 0.7px;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}

/* ── Right: weather + clock ── */
.agm-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.agm-weather {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.agm-weather.loaded { opacity: 1; }

.agm-weather-icon {
  font-size: 24px;
  color: #6B5E4E;
  line-height: 1;
}

.agm-weather-temp {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: #2C2218;
  letter-spacing: 1px;
  line-height: 1;
}

.agm-weather-unit {
  font-size: 13px;
  color: #6B5E4E;
  font-weight: 500;
  margin-left: 1px;
  align-self: flex-start;
  margin-top: 2px;
}

.agm-weather-condition {
  font-size: 12px;
  font-weight: 500;
  color: #8C7F6E;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.agm-clock {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: #6B5E4E;
  letter-spacing: 0.8px;
  text-align: right;
}

.agm-last-updated {
  font-size: 12px;
  color: #8C7F6E;
  letter-spacing: 0.2px;
  text-align: right;
}

/* ── KPI Grid ── */
.agm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.agm-manager-card {
  background: #FDFAF6;
  border: 1px solid #B8AE9D;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.agm-manager-header {
  padding: 1.15rem 1.4rem 1rem;
  border-bottom: 1px solid #B8AE9D;
  background: #F7F2EA;
}

.agm-manager-name  { font-size: 17px; font-weight: 600; color: #2C2218; letter-spacing: 0.6px; text-transform: uppercase; }
.agm-manager-props { font-size: 13px; font-weight: 500; color: #6B5E4E; margin-top: 4px; }

.agm-kpi-list { padding: 0.4rem 0; flex: 1; }

.agm-kpi-row {
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid #E4DCCC;
  display: flex; flex-direction: column; gap: 5px;
}
.agm-kpi-row:last-child { border-bottom: none; }

.agm-kpi-label { font-size: 12px; color: #6B5E4E; letter-spacing: 0.7px; text-transform: uppercase; font-weight: 500; }

.agm-kpi-value {
  font-size: 26px; font-weight: 600; color: #2C2218;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.1; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 4px;
}

/* ── Split-flap animation ── */
/* Wrapper sits inline, matching the line-height of .agm-kpi-value */
.agm-flip {
  position: relative;
  display: inline-block;
  line-height: 1.1em;
  perspective: 500px;
  vertical-align: middle;
}

/* Top half of the number — clips at 50% height so only the upper portion shows */
.agm-flip-upper {
  display: block;
  height: 0.55em;
  overflow: hidden;
  line-height: 1.1em;
}

/* The animated flap card — sits at the fold line, pivots downward on reveal */
.agm-flip-card {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 100%;
  height: 0.55em;
  overflow: hidden;
  transform-origin: 50% 0%;          /* pivot at the fold line (top of this element) */
  transform: rotateX(0deg);
  background: #FDFAF6;               /* matches .agm-manager-card background */
}

/* Inner text shifted up so only the bottom half of the glyph is visible */
.agm-flip-card-inner {
  display: block;
  margin-top: -0.55em;
  line-height: 1.1em;
}

/* The flip: card starts folded flat against the upper half, then falls open */
@keyframes agmFlipReveal {
  from { transform: rotateX(-90deg); }
  to   { transform: rotateX(0deg); }
}

.agm-currency-symbol {
  font-size: 15px; color: #6B5E4E;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  line-height: 1; align-self: center; margin-top: 1px;
}

.agm-value-unit {
  font-size: 15px; color: #6B5E4E;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
}

.agm-trend {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  align-self: center;
  margin-left: 2px;
  opacity: 0.85;
}
.agm-trend.good { color: #5A8A5A; }
.agm-trend.bad  { color: #A04040; }

/* ── Paired KPI row (Rental Apps — Pending + Avg Days side by side) ── */
.agm-kpi-paired-values {
  display: flex; gap: 20px;
}
.agm-kpi-paired-item {
  display: flex; flex-direction: column; gap: 2px;
}
.agm-kpi-paired-sublabel {
  font-size: 10px; color: #6B5E4E;
  letter-spacing: 0.6px; text-transform: uppercase; font-weight: 500;
}

/* ── Reminders ── */
.agm-reminders {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #B8AE9D;
}

.agm-reminders-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.95rem;
}

.agm-reminders-title { font-size: 12px; color: #6B5E4E; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 600; }
.agm-reminders-meta  { font-size: 12px; font-weight: 500; color: #8C7F6E; letter-spacing: 0.3px; }

.agm-reminders-stage {
  position: relative;
  height: 50px;
  overflow: hidden;
}

.agm-reminders-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.agm-reminders-frame.active {
  pointer-events: auto;
}

.agm-reminders-frame .agm-chip {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: calc(var(--chip-i, 0) * 80ms);
}

.agm-reminders-frame.active .agm-chip {
  opacity: 1;
  transform: translateY(0);
}

.agm-reminders-frame.exiting .agm-chip {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--chip-i, 0) * 60ms);
  pointer-events: none;
}

.agm-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 7px;
  border: 1px solid #B8AE9D; background: #FDFAF6;
  white-space: nowrap; flex-shrink: 0;
}
.agm-chip.urgent { background: #FDF3E3; border-color: #C89840; }
.agm-chip.today  { background: #2C2218; border-color: #2C2218; }

.agm-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #B8AE9D; flex-shrink: 0; }
.agm-chip.urgent .agm-chip-dot { background: #C89840; }
.agm-chip.today  .agm-chip-dot { background: #F2EDE4; opacity: 0.7; }

.agm-chip-label { font-size: 14px; color: #2C2218; font-weight: 500; }
.agm-chip.urgent .agm-chip-label { color: #6B4A12; font-weight: 600; }
.agm-chip.today  .agm-chip-label { color: #F2EDE4; font-weight: 600; }

.agm-chip-when { font-size: 12px; font-weight: 500; color: #6B5E4E; letter-spacing: 0.2px; }
.agm-chip.urgent .agm-chip-when { color: #8A6420; }
.agm-chip.today  .agm-chip-when { color: #B8A894; }

/* ── Content wrapper crossfade ── */
/* Fades out during the 30-second view switch, content swaps, then fades back in */
#agm-content {
  transition: opacity 0.4s ease;
}
#agm-content.fading {
  opacity: 0;
}

/* ── Cycle progress bar ── */
/* Fixed strip at the bottom of the screen — fills over 30s then resets on switch */
.agm-cycle-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.06);
  z-index: 100;
}
.agm-cycle-progress {
  height: 100%;
  width: 0%;
  background: #B8AE9D;
}

/* ── Commercial theme overrides ── */
/* Applied when body[data-theme="commercial"] — swaps warm browns for cool blues */
body[data-theme="commercial"] .agm-header        { border-bottom-color: #A0BEDB; }
body[data-theme="commercial"] .agm-logo-mark      { background: #1B3A5C; }
body[data-theme="commercial"] .agm-brand-sub      { color: #2D6A9F; }
body[data-theme="commercial"] .agm-manager-card   { border-color: #A0BEDB; }
body[data-theme="commercial"] .agm-flip-card      { background: #FDFAF6; }
body[data-theme="commercial"] .agm-manager-header { background: #E8F0F8; border-bottom-color: #A0BEDB; }
body[data-theme="commercial"] .agm-kpi-row        { border-bottom-color: #C8DAEC; }
body[data-theme="commercial"] .agm-reminders      { border-top-color: #A0BEDB; }
body[data-theme="commercial"] .agm-chip           { border-color: #A0BEDB; background: #F5F8FC; }
body[data-theme="commercial"] .agm-chip.today     { background: #1B3A5C; border-color: #1B3A5C; }
body[data-theme="commercial"] .agm-cycle-progress { background: #2D6A9F; }

/* ── Footer ── */
.agm-footer {
  margin-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
}
.agm-footer-note { font-size: 13px; font-weight: 500; color: #8C7F6E; letter-spacing: 0.2px; }
.agm-footer-right { display: flex; align-items: center; gap: 12px; }

.agm-view-toggle {
  display: flex; align-items: center; gap: 0;
  background: #EDE7DC; border: 1px solid #B8AE9D; border-radius: 5px;
  overflow: hidden;
}
.agm-view-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  color: #8C7F6E; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 10px; transition: background 0.15s, color 0.15s;
}
.agm-view-btn + .agm-view-btn { border-left: 1px solid #B8AE9D; }
.agm-view-btn.active { background: #2C2218; color: #F2EDE4; }
.agm-view-btn:not(.active):hover { background: #D8D0C4; }

.agm-phase-badge {
  font-size: 12px; font-weight: 500; color: #6B5E4E;
  background: #EDE7DC; border: 1px solid #B8AE9D;
  border-radius: 5px; padding: 5px 10px;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ── Projects / Gantt view ── */
/* Slate palette — distinct from commercial's navy, blue accents on borders/headers only */
body[data-theme="projects"] .agm-header              { border-bottom-color: #A8BFD0; }
body[data-theme="projects"] .agm-logo-mark            { background: #34495E; }
body[data-theme="projects"] .agm-brand-sub            { color: #34495E; }
body[data-theme="projects"] .agm-reminders            { border-top-color: #A8BFD0; }
body[data-theme="projects"] .agm-chip                 { border-color: #A8BFD0; background: #FDFAF6; }
body[data-theme="projects"] .agm-chip.today           { background: #34495E; border-color: #34495E; }
body[data-theme="projects"] .agm-cycle-progress       { background: #34495E; }
/* Cards stay white — only borders get the slate blue accent */
body[data-theme="projects"] .gantt-chart-section      { border-color: #A8BFD0; background: #FDFAF6; }
body[data-theme="projects"] .gantt-pipeline-section   { background: transparent; border: none; }
body[data-theme="projects"] .gantt-due-strip.gantt-due-empty { border-color: #A8BFD0; }
/* Row dividers get a subtle blue-gray tint */
body[data-theme="projects"] .gantt-chart-row          { border-bottom-color: #D4E0EA; }
body[data-theme="projects"] .gantt-subitem-row        { border-bottom-color: #D4E0EA; }
body[data-theme="projects"] .gantt-subitems           { border-bottom-color: #D4E0EA; background: #F7F9FB; }
/* Track (bar background) gets a light slate tint */
body[data-theme="projects"] .gantt-chart-track        { background: #D4E0EA; }
/* Pipeline cards stay white with a light border */
body[data-theme="projects"] .gantt-pipeline-card      { background: transparent; }
/* Section titles shift to slate */
body[data-theme="projects"] .gantt-section-title      { color: #34495E; }

/* Shared badge style used across all gantt sections */
.gantt-badge {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.gantt-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #8C7F6E;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gantt-empty {
  font-size: 13px;
  color: #B8AE9D;
  font-style: italic;
}

.gantt-error {
  color: #8C7F6E;
  font-size: 14px;
  padding: 2rem;
  text-align: center;
  grid-column: 1 / -1;
}

/* ── Overall board layout ── */
.gantt-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Three-column layout: shortened Gantt chart (left), latest-comments column
   (middle), and the Pipeline sidebar (right). */
.gantt-main-layout {
  display: grid;
  grid-template-columns: 5fr 1fr 2fr;
  gap: 14px;
}

/* Middle column stacks comment cards from the top */
.gantt-mid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.gantt-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Gantt chart takes its natural height — rows are not squished */
.gantt-left .gantt-chart-section {
  flex: none;
}

/* Right sidebar stacks from the top */
.gantt-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}


/* ── Due This Week strip ── */
.gantt-due-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #B8AE9D;
}

.gantt-due-strip.gantt-due-active {
  background: #2C2218;
  border-color: #2C2218;
}

.gantt-due-strip.gantt-due-empty {
  background: #F7F2EA;
}

.gantt-due-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.gantt-due-active .gantt-due-label { color: #B8A894; }
.gantt-due-empty  .gantt-due-label { color: #8C7F6E; }

.gantt-due-none {
  font-size: 13px;
  color: #B8AE9D;
  font-style: italic;
}

.gantt-due-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.gantt-due-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #F2EDE4;
}

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

.gantt-due-date {
  font-size: 12px;
  font-weight: 500;
  color: #B8A894;
}

/* ── Gantt chart section ── */
.gantt-chart-section {
  background: #FDFAF6;
  border: 1px solid #B8AE9D;
  border-radius: 12px;
  padding: 16px 20px;
}

.gantt-chart-wrap { display: flex; flex-direction: column; gap: 0; }

/* Month label header row */
.gantt-chart-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-bottom: 6px;
}

.gantt-chart-name-col { /* spacer */ }

.gantt-chart-track-col {
  position: relative;
  height: 20px;
}

.gantt-month-tick {
  position: absolute;
  top: 0;
  font-size: 13px;
  font-weight: 600;
  color: #8C7F6E;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* "TODAY" label above the red line */
.gantt-chart-today-head {
  position: absolute;
  bottom: 0;
  font-size: 9px;
  font-weight: 700;
  color: #E2445C;
  letter-spacing: 0.5px;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Each project block (row + subitems) */
.gantt-chart-rows { display: flex; flex-direction: column; gap: 4px; }

.gantt-project-block {
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}

/* Highlighted block for projects due this week */
.gantt-row-due {
  border-left-style: solid;
  background: rgba(44, 34, 24, 0.03);
}

.gantt-chart-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 0 8px 6px;
  border-bottom: 1px solid #EDE7DC;
}
.gantt-project-block:last-child .gantt-chart-row { border-bottom: none; }

.gantt-chart-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gantt-chart-name-text {
  font-size: 19px;
  font-weight: 600;
  color: #2C2218;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-chart-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gantt-lead {
  font-size: 11px;
  font-weight: 500;
  color: #6B5E4E;
}

.gantt-pct {
  font-size: 11px;
  font-weight: 700;
  color: #5A8A5A;
}

/* The track that bars sit inside */
.gantt-chart-track {
  position: relative;
  height: 22px;
  background: #EDE7DC;
  border-radius: 5px;
  overflow: hidden;
}

/* Red vertical today line */
.gantt-chart-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E2445C;
  z-index: 2;
  border-radius: 1px;
}

/* The colored priority bar */
/* Keyframe: bar grows from 0 → full width, left-anchored */
@keyframes ganttBarGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.gantt-chart-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  opacity: 0.85;
  overflow: hidden;
  transform-origin: left center;
  animation: ganttBarGrow 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Progress fill inside the bar — darker overlay */
.gantt-chart-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(0,0,0,0.2);
  border-radius: 4px 0 0 4px;
}

.gantt-chart-bar-empty {
  width: 100%;
  height: 100%;
}

/* ── Pipeline section ── */
/* Now lives in the right sidebar — card box matches the Completed section */
.gantt-pipeline-section {
  background: #FDFAF6;
  border: 1px solid #B8AE9D;
  border-radius: 12px;
  padding: 10px 16px;
}
body[data-theme="projects"] .gantt-pipeline-section { border-color: #A8BFD0; background: #FDFAF6; }

.gantt-pipeline-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gantt-pipeline-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid #E4DCCC;
}

.gantt-pipeline-name {
  font-size: 14px;
  font-weight: 600;
  color: #2C2218;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.gantt-pipeline-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Plain text labels — no colored pill background */
.gantt-pipeline-tag {
  font-size: 12px;
  font-weight: 500;
  color: #6B5E4E;
  white-space: nowrap;
}
.gantt-pipeline-tag:empty { display: none; }

.gantt-pipeline-req {
  font-size: 11px;
  font-weight: 500;
  color: #8C7F6E;
  white-space: nowrap;
}

/* ── Meetings bar ── */
/* Full-width strip at the bottom of the projects view, matching the
   recurring reminders bar on multifamily/commercial views */
.gantt-meetings-bar {
  border-top: 1px solid #B8AE9D;
  padding: 12px 20px 14px;
  background: transparent;
}

.gantt-meeting-chips {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  margin-top: 8px;
}

/* ── Gantt subitems ── */
.gantt-subitems {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #EDE7DC;
  background: #F7F2EA;
}

.gantt-project-block:last-child .gantt-subitems { border-bottom: none; }

/* Same two-column grid as the parent row so bars line up on the same track */
.gantt-subitem-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  padding: 5px 0 5px 6px;
  border-bottom: 1px solid #EDE7DC;
}
.gantt-subitem-row:last-child { border-bottom: none; }

/* Highlight subitems due this week */
.gantt-subitem-due { background: rgba(253, 188, 100, 0.1); }

.gantt-subitem-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 10px;
}

.gantt-subitem-indent {
  font-size: 10px;
  color: #B8AE9D;
  position: absolute;
  margin-left: -12px;
}

.gantt-subitem-name {
  font-size: 12px;
  font-weight: 600;
  color: #4A3F32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-subitem-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gantt-subitem-owner {
  font-size: 11px;
  color: #8C7F6E;
  white-space: nowrap;
}

.gantt-subitem-date {
  font-size: 11px;
  font-weight: 600;
  color: #6B5E4E;
  white-space: nowrap;
}

/* Subitem bar is thinner than the parent project bar */
.gantt-subitem-track { height: 10px; }
.gantt-subitem-bar   { border-radius: 3px; opacity: 0.75; }

/* Subitems get slightly smaller badges */
.gantt-subitems .gantt-badge {
  font-size: 10px;
  padding: 1px 6px;
}

/* ── Latest Comments column (between Gantt and Pipeline) ── */
.gantt-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each comment is a small card, labeled by its project/subitem name.
   Text is cleaned from Monday's latest update (the author's actual words). */
.gantt-comment {
  padding-left: 8px;
  border-left: 2px solid #C9BCA8;
}

.gantt-comment-label {
  font-size: 11px;
  font-weight: 700;
  color: #4A3F30;
  margin-bottom: 2px;
  /* Long subitem names wrap instead of overflowing the narrow column */
  overflow-wrap: break-word;
}

.gantt-comment-text {
  display: block;
  font-size: 11px;
  font-style: italic;
  color: #6B5E4E;
  line-height: 1.45;
  /* Wrap text to the column width so it stays readable, no horizontal overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}

.gantt-comment-byline {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #A89B88;
  overflow-wrap: break-word;
}
