/* Rail section preview: the signature component */
.rail-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.5rem;
  margin-bottom: 1rem;
}
#rail-svg {
  display: block;
  width: 100%;
  height: auto;
}
#rail-svg .rail-post { fill: var(--ink); }
#rail-svg .rail-rail { fill: var(--muted); opacity: 0.55; }
#rail-svg .rail-bal { fill: var(--brand); }
#rail-svg .rail-tick { stroke: var(--border); stroke-width: 1; }
#rail-svg .rail-label {
  fill: var(--muted);
  font-size: 13px;
  font-family: inherit;
}
#rail-svg .rail-sphere {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}
.tool__result.is-error .result-value { color: var(--muted); }
.tool__panel .field input,
.tool__panel .field select { min-width: 64px; }
/* Carpenter's-square accent on section eyebrows */
.section__head .eyebrow {
  border-left: 3px solid var(--brand);
  border-bottom: 1px solid var(--border);
  padding: 0 0.5rem 0.15rem;
  display: inline-block;
}

/* Equal-height plan cards with the action pinned to the bottom */
lg-cards .grid,
lg-cards .grid-2,
lg-cards .grid-3,
lg-cards .grid-4,
lg-cards .card-grid,
lg-cards [class*="grid"] {
  display: grid;
  grid-auto-rows: 1fr;
}
lg-cards .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
lg-cards .card > :last-child,
lg-cards .card .card__go,
lg-cards .card .card__link,
lg-cards .card .card__action {
  margin-top: auto;
}

/* Card eyebrow labels wrap instead of truncating */
.card .eyebrow,
.card__eyebrow,
.card__kicker,
.card .badge,
.card .tag,
lg-cards .eyebrow {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  overflow-wrap: anywhere;
}