@layer components {
  /* ==========================================================================
   * Templates — legacy styles still used by the Gantt legend.
   *
   * The redesigned template shell, index rows, tree-table, status list,
   * and todolists section live in app/assets/stylesheets/redesign/templates.css.
   * ========================================================================== */

  /* ---------- Gantt legend ---------- */
  .gantt-legend {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--color-surface-subtle);
    border-radius: var(--radius-md);
  }

  .gantt-legend-items {
    display: flex;
    gap: var(--space-4);
  }

  .gantt-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }

  .gantt-legend-color {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
  }

  .gantt-legend-color--card { background: var(--rd-info); }
  .gantt-legend-color--step { background: oklch(0.70 0.18 45); }
  .gantt-legend-color--todo { background: var(--rd-success); }
}
