/* Plan and usage page. Tokens only. */
.plan { max-width: 980px; margin-top: 32px; padding-bottom: 48px; }
.plan h1 { margin-bottom: 10px; }
.pl-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pl-head h2 { margin: 6px 0 2px; }
.pl-head p { margin: 0; }
.pl-sec { margin-bottom: 14px; }
.pl-sec > h2 { margin: 0 0 4px; }
.pl-rows { display: grid; gap: 14px; margin-top: 14px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.pl-row > div:first-child { display: grid; gap: 2px; }
.pl-row .muted { font-size: .86rem; }
.pl-row .plan-meter { grid-column: 1 / -1; }
.pl-num { font-weight: 800; white-space: nowrap; }
.pl-row.near .pl-num { color: var(--gap-fg); }
.pl-row.out .pl-num { color: var(--can-fg); }
.pl-scroll { overflow-x: auto; }
.pl-table th, .pl-table td { text-align: right; white-space: nowrap; }
.pl-table th:first-child, .pl-table td:first-child { text-align: left; white-space: normal; }
.pl-table .is-me { background: var(--accent-soft); }
.pl-table th .plan-chip { display: block; margin: 4px 0 0 auto; width: max-content; }
.pl-form { display: grid; gap: 12px; margin-top: 10px; }

/* The plans side by side (src/client/planmatrix.ts) */
.plans-page { max-width: 1080px; }
.plans-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.plans-notes ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.55; }
.pm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 18px; }
.pm { width: 100%; border-collapse: collapse; min-width: 560px; }
.pm th, .pm td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pm thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-top: 18px; padding-bottom: 14px; }
.pm .pm-plan { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.pm .pm-note { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.pm .pm-corner { width: 38%; }
.pm tbody th { text-align: left; font-weight: 600; }
.pm tbody th small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.pm .pm-group th { text-align: left; background: var(--surface-2); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 10px 14px; }
.pm .pm-val { font-weight: 800; }
.pm .pm-yes { color: var(--cov-fg); font-weight: 800; font-size: 1.1rem; }
.pm .pm-no { color: var(--muted); }
.pm .is-me { background: var(--accent-soft); }
.pm thead .plan-chip { display: inline-block; margin-top: 6px; }
