/* ---------------------------------------------------------------------------
 * plane-infra: custom CSS overlay for the Plane web app (NOT upstream).
 *
 * Served as /custom.css by the web (nginx) container via a read-only
 * bind-mount, and linked from a patched index.html — see
 * scripts/patch-plane-css.sh. Re-apply after every upgrade (UPGRADE.md).
 *
 * Selectors target Tailwind classes from the v1.4.1 build. A newer build may
 * rename them, in which case a rule silently stops matching — nothing breaks.
 * Requests from the team, 2026-09-07.
 * ------------------------------------------------------------------------- */

/* ---- Board: narrower columns ---- */
[class~="w-[350px]"].flex-shrink-0.flex-col { width: 280px !important; }

/* ---- Board: 2-line card titles ---- */
[class~="group/kanban-block"] .line-clamp-1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ---- Spreadsheet: wider title column ---- */
td[class~="group/list-block"] { max-width: 44rem !important; }
td[class~="group/list-block"] .min-w-60,
td[class~="group/list-block"] [class~="min-w-[360px]"] { min-width: 38rem !important; }

/* ---- Spreadsheet: 2-line titles ---- */
td[class~="group/list-block"] .h-11 { height: auto !important; min-height: 2.75rem; }
td[class~="group/list-block"] .line-clamp-1,
td[class~="group/list-block"] .truncate {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip;
}
