/* Page system v2 — entity family (company and contact pages). Owned by one rebuild
   stream; shared primitives live in system.css. Colour and type come from LUMEN
   tokens only. Everything here is scoped to .v2e, the class both pages carry. */

/* Old layers paint these blocks as panels. Inside v2 a block is never a box: it sits on
   space and the section's hairline. Doubled class beats the old layers' specificity. */
.v2e.v2e :is(.v2e-block, .crm-intelligence, .crm-people, .crm-deals, .partner-record, .partner-memory,
  .partner-conferences, .company-source-identities, .entity-state-panel, .entity-time-investment,
  .partner-intelligence-reads, .partner-operations-drawer, .scope-guard, .decay-watch,
  .partner-continuity, .demand-gap-panel, .partner-upcoming, .company-record-lens,
  .communication-history-block, .pbc-panel, .partner-metric-frame, .company-revenue-workbench,
  .buyer-command, .buyer-next-play, .buyer-analysis-workbench, .buyer-analysis-panel,
  .buyer-learning-card, .buyer-contact-linker, .buyer-evidence-drawer, .buyer-commercial,
  .buyer-analysis-tabs, .relationship-action-form, .relationship-sequence-picker,
  .entity-state-census, .scope-result, .scope-ingest, .partner-create-drawer, .case-quick-create,
  .buyer-learning-form, .buyer-link-form, .os-q, .metric-table-wrap, .contact-prepare,
  .contact-crm, .v2-replay, .company-continuity, .lumen-table-viewport) {
  margin-inline: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.v2e.v2e :is(.buyer-analysis-workbench, .buyer-command, .buyer-next-play, .partner-operations-drawer,
  .entity-state-panel, .crm-intelligence, .pbc-panel, .lumen-table-viewport)::before { display: none; }
.v2e.v2e .relationship-replay { display: block; }
.v2e.v2e .lumen-table-viewport :is(th, td) { background: none; }
.v2e.v2e .v2e-fold > summary { justify-content: flex-start; padding: 0; margin-inline: 0; border: 0; background: none; box-shadow: none; text-align: left; }
.v2e.v2e .v2e-fold > summary > * { margin: 0; }
.v2e.v2e :is(.v2-section, .v2-rail) > * + * { padding-top: var(--v2-5); border-top: var(--v2-hair); }
.v2e.v2e :is(.v2-section, .v2-rail) > * { margin-bottom: var(--v2-6); }
.v2e .v2-section > :last-child { margin-bottom: 0; }

/* Sub-heads: a block's title and its one link share a line. */
.v2e .v2e-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--v2-2) var(--v2-4);
  flex-wrap: wrap; margin: 0 0 var(--v2-3); }
.v2e .v2e-subhead :is(h3, h4) { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; color: var(--lm-matte); }
.v2e .v2e-subhead h4 { font-size: 1rem; }
.v2e .v2e-subhead :is(a, small) { font-size: var(--v2-meta); color: var(--lm-matte-2); }
.v2e .v2e-subhead form { margin: 0; }
.v2e :is(h4) { margin: 0 0 var(--v2-2); font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.v2e .v2-note { max-width: 72ch; font-size: var(--v2-meta); line-height: 1.5; }
.v2e .v2-note + * { margin-top: var(--v2-4); }
.v2e .v2e-source { margin: var(--v2-3) 0 0; color: var(--lm-matte-3); font-size: var(--v2-meta); }
.v2e .v2e-alert { margin: var(--v2-2) 0; color: var(--lm-warning); font-weight: 600; }
.v2e .btn-mini { min-height: var(--v2-tap); padding: 0 var(--v2-3); font-size: var(--v2-meta); }
.v2e .v2e-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v2e .v2e-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v2e .v2e-inline { display: inline; margin: 0 0 0 var(--v2-2); }

/* Lists: one row per item, a hairline between rows, the action on the right. */
.v2e .v2e-list { margin: 0; padding: 0; list-style: none; }
.v2e .v2e-list > li { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--v2-4);
  padding: var(--v2-3) 0; border-top: var(--v2-hair); }
.v2e .v2e-list > li:first-child { border-top: 0; padding-top: var(--v2-1); }
.v2e .v2e-list > li > div { min-width: 0; flex: 1 1 auto; }
.v2e .v2e-list b { display: block; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.v2e .v2e-list small { display: block; margin-top: 2px; color: var(--lm-matte-2); font-size: var(--v2-meta); line-height: 1.45; }
.v2e .v2e-list p { margin: var(--v2-1) 0 0; color: var(--lm-matte-2); max-width: 75ch; }
.v2e .v2e-list q { display: block; margin-top: var(--v2-1); color: var(--lm-matte-2); font-style: italic; }
.v2e .v2e-list > li > :is(form, a) { flex: 0 0 auto; display: flex; gap: var(--v2-2); margin: 0; font-size: var(--v2-meta); }
.v2e .v2e-plain { margin: 0; padding: 0 0 0 var(--v2-4); display: grid; gap: var(--v2-2); }
.v2e .v2e-plain li { max-width: 72ch; line-height: 1.5; }

/* Label / value rows. */
.v2e .v2e-pairs { margin: 0; display: grid; gap: 0; }
.v2e .v2e-pairs > div { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: var(--v2-4); padding: var(--v2-2) 0; border-top: var(--v2-hair); }
.v2e .v2e-pairs > div:first-child { border-top: 0; }
.v2e .v2e-pairs dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; padding-top: 2px; }
.v2e .v2e-pairs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.v2e .v2e-pairs-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--v2-3) var(--v2-5); margin-bottom: var(--v2-4); }
.v2e .v2e-pairs-row > div { display: block; padding: 0; border: 0; }
.v2e .v2e-pairs-row dd { margin-top: 2px; }
.v2-rail .v2e-pairs > div { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: var(--v2-3); }

/* Folds: a quiet text control, never a panel. */
.v2e .v2e-fold > summary { display: flex; align-items: center; gap: var(--v2-2); min-height: 44px; cursor: pointer; list-style: none;
  color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2e .v2e-fold > summary::-webkit-details-marker { display: none; }
.v2e .v2e-fold > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px;
  border-radius: 50%; border: 1px solid var(--lm-seam-strong); font-size: 13px; line-height: 1; color: var(--lm-matte-2); }
.v2e .v2e-fold[open] > summary::before { content: "−"; }
.v2e .v2e-fold > summary:hover { color: var(--lm-matte); }
.v2e .v2e-fold[open] > summary { margin-bottom: var(--v2-2); }
.v2e .v2e-fold .v2e-fold { margin-top: var(--v2-2); }
.v2e .v2e-block > .v2e-fold { margin-top: var(--v2-2); }
.v2e .v2e-pre { white-space: pre-wrap; font: inherit; color: var(--lm-matte-2); margin: var(--v2-2) 0 0; }

/* Forms inside folds: two columns on wide screens, one on phones. */
.v2e .v2e-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-3) var(--v2-4); align-items: end; margin: var(--v2-2) 0 var(--v2-3); max-width: 720px; }
.v2e .v2e-form .wide, .v2e .v2e-form .check { grid-column: 1 / -1; }
.v2e .v2e-form > button { justify-self: start; min-height: 44px; }
.v2e .v2e-form .field span { font-size: var(--v2-meta); text-transform: none; letter-spacing: 0; }

/* Two blocks side by side on wide screens. */
.v2e .v2e-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-5) var(--v2-6); margin-top: var(--v2-5); }
.v2e .v2e-two > * { min-width: 0; }

/* Next action (relationship tier). */
.v2e .v2e-actions .v2e-list > li.is-deferred b { color: var(--lm-matte-2); }

/* Replay: the move reads as the lead line, not a bordered quote. */
.v2e .v2-replay-move { padding-left: 0; border-left: 0; }
.v2e .v2-replay-move > span { color: var(--lm-key); }

/* Healthcare.com results table: no toolbar, no panel; scrolls inside itself on phones. */
.v2e .lumen-table-toolbar,
.v2e .partner-metric-frame .lumen-table-sort-summary { display: none !important; }
.v2e.v2e .metric-table-wrap { overflow-x: auto; }
.v2e.v2e .partner-metric-table { width: 100%; min-width: 520px; border-collapse: collapse; background: none; }
.v2e.v2e .partner-metric-table :is(th, td) { padding: var(--v2-2) var(--v2-3); border: 0; border-bottom: var(--v2-hair); background: none; font-size: var(--v2-text); }
.v2e.v2e .partner-metric-table thead th { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; text-align: right; vertical-align: bottom; }
.v2e.v2e .partner-metric-table :is(thead th:first-child, tbody th) { text-align: left; padding-left: 0; }
.v2e.v2e .partner-metric-table tbody th { font-weight: 600; color: var(--lm-matte); text-transform: none; }
.v2e.v2e .partner-metric-table td { text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; }
.v2e .v2e-chart-q { margin: var(--v2-5) 0 var(--v2-2); color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2e.v2e .partner-chart { margin-top: 0; }

/* Generated chart value tables: plain rows, no panel. */
.v2e.v2e table.lumen-chart-data { background: none; border: 0; box-shadow: none; }
.v2e.v2e .buyer-analysis-panel table.lumen-chart-data { border: 0 !important; border-radius: 0; }
.v2e.v2e .buyer-analysis-panel table.lumen-chart-data :where(th, td) { padding-inline: 0 var(--v2-3); border-bottom: var(--v2-hair); }
.v2e.v2e table.lumen-chart-data :is(th, td, caption) { background: none; font-size: var(--v2-meta); }
.v2e.v2e :is(.relationship-insight-register, .lumen-chart-register) { background: none; border: 0; box-shadow: none; padding: 0; }
.v2e .relationship-insight-register > summary { min-height: 44px; display: flex; align-items: center; color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; cursor: pointer; }

/* What the account pays for: ranked rows, the share as a thin bar under each. */
.v2e .v2e-mix { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--v2-4) var(--v2-6); }
.v2e .v2e-mix-dim h4 { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; margin-bottom: var(--v2-1); }
.v2e .v2e-mix-dim p { margin: 0; }
.v2e .v2e-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--v2-2); }
.v2e .v2e-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 var(--v2-3); align-items: baseline; }
.v2e .v2e-bars span { min-width: 0; overflow-wrap: anywhere; }
.v2e .v2e-bars b { font-feature-settings: "tnum" 1; }
.v2e .v2e-bars small { color: var(--lm-matte-2); font-size: var(--v2-meta); font-feature-settings: "tnum" 1; }
.v2e .v2e-bars i { grid-column: 1 / -1; display: block; height: 3px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lm-key) var(--w), var(--lm-seam) var(--w)); }

/* Buyer profile. */
.v2e .v2e-lead h3 { margin: 0; font-family: var(--font-body); font-size: 1.125rem; font-weight: 650; }
.v2e .v2e-lead p { margin: var(--v2-1) 0 0; color: var(--lm-matte-2); }
.v2e .v2e-play { margin-top: var(--v2-5); }
.v2e .v2e-play > span { display: block; color: var(--lm-key); font-size: var(--v2-meta); font-weight: 600; }
.v2e .v2e-play h4 { margin: var(--v2-1) 0 0; font-size: 1.0625rem; }
.v2e .v2e-play p { margin: var(--v2-1) 0 0; color: var(--lm-matte-2); }
.v2e .v2e-play ol { margin: var(--v2-3) 0 0; padding-left: var(--v2-5); display: grid; gap: var(--v2-2); max-width: 72ch; }
.v2e .v2e-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--v2-4) var(--v2-5); margin: var(--v2-6) 0 0; }
.v2e .v2e-figures > div { padding-top: var(--v2-2); border-top: 2px solid var(--lm-seam-strong); }
.v2e .v2e-figures > div.is-history { border-top-color: var(--lm-seam); }
.v2e .v2e-figures dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2e .v2e-figures dd { margin: 2px 0 0; }
.v2e .v2e-figures b { display: block; font-family: var(--font-num); font-size: 1.5rem; font-weight: 700; line-height: 1.2; font-feature-settings: "tnum" 1; }
.v2e .v2e-figures small { display: block; color: var(--lm-matte-2); font-size: var(--v2-meta); line-height: 1.4; }
.v2e .v2e-chartblock { margin-top: var(--v2-5); }
.v2e .v2e-chartblock .v2e-subhead { margin-top: var(--v2-2); }
.v2e .v2e-seg { display: flex; gap: var(--v2-1); border-bottom: var(--v2-hair); }
.v2e.v2e .v2e-seg [role="tab"] { min-height: var(--v2-tap); padding: 0 var(--v2-3); border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; box-shadow: none; color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2e.v2e .v2e-seg [role="tab"][aria-selected="true"] { color: var(--lm-matte); border-bottom-color: var(--lm-key); }
.v2e.v2e .buyer-chart { width: 100%; min-height: 240px; height: 260px; }
.v2e.v2e .buyer-analysis-panel { display: block; }
.v2e.v2e .buyer-analysis-panel[hidden] { display: none; }
.v2e .v2e-questions { margin-top: var(--v2-5); }
.v2e .v2e-reads { margin-top: var(--v2-5); }
.v2e .buyer-pattern .v2e-two { margin-top: var(--v2-2); }
.v2e .v2e-questions + .v2e-fold, .v2e .v2e-chartblock + .v2e-questions { margin-top: var(--v2-4); }
.v2e .v2e-suggest { margin: var(--v2-3) 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-3); }
.v2e .v2e-suggest p { margin: 0; }

/* Watched items, reads. */
.v2e .v2e-watch, .v2e .v2e-read { padding: var(--v2-4) 0; border-top: var(--v2-hair); }
.v2e .v2e-subhead + .v2e-watch, .v2e .v2e-subhead + .v2e-read { border-top: 0; padding-top: 0; }
.v2e .v2e-watch h4, .v2e .v2e-read h4 { font-size: 1rem; line-height: 1.45; max-width: 72ch; }
.v2e .v2e-read > p, .v2e .v2e-watch > p { margin: 0; color: var(--lm-matte-2); max-width: 72ch; }
.v2e .v2e-watch > .v2e-fold { margin-top: var(--v2-1); }

/* Account tools fold. */
.v2e .v2e-tool { padding: var(--v2-4) 0; border-top: var(--v2-hair); }
.v2e .v2e-tool:first-of-type { border-top: 0; }
.v2e .partner-operations-drawer > summary { font-size: var(--v2-text); color: var(--lm-matte); }
.v2e .scope-result blockquote { margin: var(--v2-2) 0 0; color: var(--lm-matte-2); }

/* People roster: two columns of rows on wide screens, one on phones. */
.v2e .v2e-roster { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--v2-6); }
.v2e .v2e-roster > li { border-top: var(--v2-hair); }
.v2e .v2e-roster a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--v2-3); align-items: center; min-height: 56px; padding: var(--v2-2) 0; color: inherit; text-decoration: none; }
.v2e .v2e-roster a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.v2e .v2e-roster b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2e .v2e-roster small { display: block; color: var(--lm-matte-2); font-size: var(--v2-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2e .v2e-roster time { color: var(--lm-matte-2); font-size: var(--v2-meta); white-space: nowrap; }
.v2e .v2e-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lm-panel-2); color: var(--lm-matte-2); font-size: 13px; font-weight: 600; }
.v2e .v2e-roster + .v2e-fold, .v2e .v2e-fold > .v2e-roster { margin-top: 0; }

/* Activity: one chart, one plain table. */
.v2e .v2e-plot { width: 100%; height: 300px; margin-top: var(--v2-3); }
.v2e .v2e-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.v2e .v2e-table :is(th, td) { padding: var(--v2-2) var(--v2-3) var(--v2-2) 0; border-bottom: var(--v2-hair); text-align: left; vertical-align: top; font-size: var(--v2-text); }
.v2e .v2e-table thead th { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2e .v2e-table tbody th { font-weight: 600; }
.v2e .v2e-table td:last-child { color: var(--lm-matte-2); }
.v2e .v2e-table .n { text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; }
.v2e .communication-history-block > summary { font-size: var(--v2-text); color: var(--lm-matte); }

/* PBC budget and pacing: tabs are one underlined row that scrolls on phones; tiles lose their boxes. */
.v2e.v2e .pbc-tabs { flex-wrap: wrap; gap: 0 var(--v2-1); }
.v2e .pbc-tab-group { flex: 0 0 auto; padding: 0 var(--v2-2) 0 var(--v2-3); color: var(--lm-matte-3); font-size: var(--v2-meta); font-weight: 600; }
.v2e .pbc-tab-group:first-child { padding-left: 0; }
.v2e .pbc-tabs [role="tab"] { font-size: var(--v2-meta); padding: 0 var(--v2-2); white-space: nowrap; }
.v2e .pbc-tabs [role="tab"] small { font-size: var(--v2-meta); }
.v2e.v2e .pbc-tiles > div { padding: var(--v2-2) 0 0; border: 0; border-top: 2px solid var(--lm-seam-strong); border-radius: 0; }
.v2e.v2e :is(.pbc-tiles span, .pbc-tiles small, .pbc-verdict .pbc-asof, .pbc-table th, .pbc-table td small,
  .pbc-bars p, .pbc-filters label, .pbc-filters > span, .pbc-setup dt, .pbc-mix span, .pbc-bars figcaption) { font-size: var(--v2-meta); }
.v2e.v2e .pbc-verdict { padding: 0; background: none; }
.v2e.v2e .pbc-table { font-size: var(--v2-text); }

/* Season against peers (rail): tiles lose their boxes. */
.v2e.v2e .os-tile { padding: var(--v2-2) 0 0; border: 0; border-top: 2px solid var(--tile-lamp, var(--lm-seam-strong)); border-radius: 0; background: none; box-shadow: none; }
.v2e.v2e .os-tile::before { display: none; }
.v2e.v2e .os-tile > b { font-size: 1.5rem; }
.v2e.v2e .os-tile > small, .v2e .os-note, .v2e .os-why dt { font-size: var(--v2-meta); }
.v2e.v2e .os-q > h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.v2e.v2e .os-tiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* Rail blocks. */
.v2e .v2-rail .v2e-list > li { padding: var(--v2-2) 0; }
.v2e .v2-rail > section > a { display: inline-block; margin-top: var(--v2-2); font-size: var(--v2-meta); }

/* Contact page. */
.v2e .v2e-plot.is-short { height: 240px; }
.v2e .v2e-history-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: var(--v2-3) var(--v2-4); align-items: end; margin: 0 0 var(--v2-4); }
.v2e .v2e-history-tools .field span { font-size: var(--v2-meta); text-transform: none; letter-spacing: 0; }
.v2e .v2e-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--v2-2); }
.v2e .v2e-chips button { min-height: var(--v2-tap); padding: 0 var(--v2-3); border-radius: 999px; font-size: var(--v2-meta); }
.v2e .v2e-chips button.is-active { color: var(--lm-matte); border-color: var(--lm-key); }
.v2e .v2e-more { margin-top: var(--v2-3); }
.v2e .contact-fact-actions { display: flex; flex: 0 0 auto; gap: var(--v2-2); }
.v2e .contact-fact-actions form { margin: 0; }
.v2e .v2-rail .v2e-list > li:has(.contact-fact-actions) { flex-wrap: wrap; row-gap: var(--v2-2); }
.v2e .v2e-list > li:has(.contact-fact-actions) > div:first-child { flex: 1 1 100%; }
.v2e.v2e .contact-memory-add { width: auto; display: inline-flex; }
.v2e .v2-rail > section > .btn-mini { margin-top: var(--v2-3); }
.v2e .v2-rail > section > p:not(.v2-note) { color: var(--lm-matte-2); }
.v2e .contact-utility-menu { position: relative; }
.v2e .v2-rail > * { grid-area: auto; position: static; }


/* Fix pass (11-20 review). ---------------------------------------------------- */
/* [hidden] must win over the list's display:flex, or the history's JS fold shows every row. */
.v2e [hidden] { display: none !important; }

/* Sentences are body text (15px); only <small> and source lines are meta (13px). */
.v2e.v2e :is(p, li, dd, q, blockquote):not(.v2e-source) { font-size: max(var(--v2-text), 1em); }
.v2e .v2-note, .v2e .v2e-lede { max-width: 72ch; font-size: var(--v2-text); line-height: 1.55; color: var(--lm-matte-2); }
.v2e .v2e-lede { margin: 0 0 var(--v2-3); }
.v2e .v2e-list p { font-size: var(--v2-text); }

/* Recommended move: a plain title, a whole date, the quoted words folded beneath. */
.v2e .v2-replay-move { margin: 0; }
.v2e .v2-replay-move > b { display: block; font-size: 1.125rem; font-weight: 650; line-height: 1.4; color: var(--lm-matte); }
.v2e .v2-replay-move > small { display: block; margin-top: var(--v2-1); color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2e .v2-replay-move > small.is-overdue { color: var(--lm-warning); }
.v2e .v2e-said q { display: block; max-width: 72ch; color: var(--lm-matte-2); font-style: italic; }
.v2e .v2-replay > .v2e-fold { margin-top: var(--v2-2); }
.v2e .v2-replay > .v2e-fold + .v2e-fold { margin-top: 0; }
.v2e.v2e .v2-replay-sources { margin-top: 0; }
.v2e .v2-replay-sources ul { margin-top: 0; }
.v2e .v2e-replay-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-3) var(--v2-4); margin-top: var(--v2-3); }
.v2e .v2e-replay-foot > :first-child { flex: 1 1 0; min-width: 0; }
.v2e .v2e-replay-foot > form { flex: 0 0 auto; }
.v2e .v2e-replay-foot small { color: var(--lm-matte-3); font-size: var(--v2-meta); }
.v2e .v2e-replay-foot form { margin: 0; }
.v2e .v2e-replay-foot .v2-replay-empty { margin: 0; }

/* Relationship tier: one line and its control, no sub-head. */
.v2e .v2e-tier { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-3) var(--v2-4); }
.v2e .v2e-tier p { margin: 0; flex: 1 1 0; min-width: 0; color: var(--lm-matte-2); }
.v2e .v2e-tier > button { flex: 0 0 auto; }
/* The rail spaces its blocks with margins and hairlines, like a section; no extra grid gap. */
.v2e.v2e .v2-rail { gap: 0; }
.v2e .v2e-tier b { color: var(--lm-matte); font-weight: 600; }
.v2e .v2-section-head > a { color: var(--lm-matte-2); font-size: var(--v2-meta); white-space: nowrap; }
.v2e h3.v2e-chart-q { margin: 0 0 var(--v2-2); font-family: var(--font-body); }

/* Watched items and quoted claims: the words in italics, never as a heading. */
.v2e .v2e-watch > q { display: block; margin: 0 0 var(--v2-1); max-width: 72ch; color: var(--lm-matte-2); font-style: italic; }
.v2e .v2e-list > li > div > q:first-child { margin-top: 0; color: var(--lm-matte); }

/* What the account pays for: settled views as one row of pairs. */
.v2e .v2e-mix-settled { margin: 0 0 var(--v2-4); }
.v2e .v2e-bars li { grid-template-columns: minmax(0, 1fr) auto; }

/* Healthcare.com results: the sticky label column keeps its text off the fill's edge;
   headers stay on one line (the table scrolls inside itself on phones). */
.v2e.v2e .partner-metric-table :is(thead th:first-child, tbody th) { padding-inline-start: var(--v2-2); }
.v2e.v2e .partner-metric-table { min-width: 560px; }
.v2e.v2e .partner-metric-table thead th { white-space: normal; }
@media (max-width: 760px) { .v2e.v2e .partner-metric-table thead th { white-space: nowrap; } }
/* Global type balances <b>; list titles read as prose, so they wrap normally. */
.v2e .v2e-list b, .v2e .v2e-watch h4, .v2e .v2-headline { text-wrap: pretty; }

/* PBC tabs: every answer, card and ID block sits on hairlines, never in a box; meta at 13px. */
.v2e.v2e :is(.pbc-answers article, .pbc-cards article, .pbc-id, .pbc-setup-facts div) {
  padding: var(--v2-3) 0; border: 0; border-top: var(--v2-hair); border-radius: 0; background: none; box-shadow: none; }
.v2e.v2e :is(.pbc-answers, .pbc-cards, .pbc-setup-facts) { gap: 0 var(--v2-5); }
.v2e.v2e .pbc-grade-mark { width: auto; height: auto; padding: 0 var(--v2-5) 0 0; border: 0; border-right: var(--v2-hair); border-radius: 0; place-items: start; }
.v2e.v2e .pbc-id header { display: grid; gap: var(--v2-1); margin-bottom: var(--v2-2); }
.v2e.v2e :is(.pbc-verdict .pbc-asof, .pbc-verdict span, .pbc-answers h4, .pbc-grade-mark span, .pbc-grade p, .pbc-sub, .pbc-quiet,
  .pbc-cards small, .pbc-hist span, .pbc-hist small, .pbc-dims li, .pbc-dims h4, .pbc-setup-facts dt, .pbc-setup-facts dd small,
  .pbc-facts dl div, .pbc-pillars small, .pbc-table caption, .pbc-table th, .pbc-tab-group, .pbc-open, .pbc-tabs [role="tab"] small) {
  font-size: max(var(--v2-meta), 1em); }
.v2e.v2e :is(.pbc-answers p, .pbc-cards p, .pbc-story, .pbc-moves li, .pbc-table td, .pbc-hist b) { font-size: var(--v2-text); }
.v2e.v2e .pbc-verdict .pbc-asof { color: var(--lm-matte-3); }
.v2e.v2e .pbc-table :is(th, td):first-child { padding-left: 0; }
.v2e.v2e .pbc-table tr.is-out td:first-child { box-shadow: none; }
.v2e.v2e .pbc-table tr.is-out td:first-child::before { content: "● "; color: var(--lm-critical); }
.v2e.v2e .pbc-mix span { padding: var(--v2-2) var(--v2-3); font-size: var(--v2-meta); }
.v2e.v2e .pbc-copy textarea { font-size: var(--v2-text); }
.v2e.v2e .pbc-week > div span { font-size: var(--v2-meta); }
/* The tab strip: plain underlined labels in one row per group, never pill buttons. */
.v2e.v2e .pbc-tabs { align-items: flex-end; gap: 0 var(--v2-1); margin: 0 0 var(--v2-4); padding: 0; border: 0; border-bottom: var(--v2-hair); background: none; }
/* An id outranks lumen-revamp's global `main button:not(...)` pill rule. */
#partner-pbc .pbc-tabs button[role="tab"], #partner-pbc .pbc-tabs button[role="tab"]:hover,
#buyer-command .v2e-seg button[role="tab"], #buyer-command .v2e-seg button[role="tab"]:hover {
  min-height: 44px; padding: 0 var(--v2-2); border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; box-shadow: none; color: var(--lm-matte-2); font-weight: 600; }
#partner-pbc .pbc-tabs button[role="tab"]:hover, #buyer-command .v2e-seg button[role="tab"]:hover { color: var(--lm-matte); }
#buyer-command .v2e-seg button[role="tab"][aria-selected="true"] { color: var(--lm-matte); border-bottom-color: var(--lm-key); }
#partner-pbc .pbc-tabs button[role="tab"].is-on { color: var(--lm-matte); }
.v2e.v2e .pbc-tab-ink { left: var(--v2-2); right: var(--v2-2); background: var(--lm-key); }
.v2e.v2e .pbc-tab-group { width: auto; margin: 0; padding: 0 var(--v2-1) 0 var(--v2-4); align-self: center; color: var(--lm-matte-3); }
.v2e.v2e .pbc-tab-group:first-child { padding-left: 0; }
.v2e.v2e .pbc-tabs [role="tab"] small { padding: 0; margin-left: var(--v2-1); background: none; }
.v2e.v2e .pbc-open { align-self: center; margin-left: auto; padding-left: var(--v2-4); white-space: nowrap; }

@media (max-width: 760px) {
  .v2e .v2-section { padding-top: var(--v2-6); }
  .v2e .v2-section-head { margin-bottom: var(--v2-4); }
  .v2e.v2e :is(.v2-section, .v2-rail) > * { margin-bottom: var(--v2-5); }
  .v2e.v2e :is(.v2-section, .v2-rail) > * + * { padding-top: var(--v2-4); }
  .v2e.v2e .pbc-grade-mark { border-right: 0; padding: 0; }
  .v2e.v2e .pbc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-3) var(--v2-4); }
  .v2e .v2e-two { grid-template-columns: minmax(0, 1fr); }
  .v2e .v2e-roster { grid-template-columns: minmax(0, 1fr); }
  .v2e .v2e-form { grid-template-columns: minmax(0, 1fr); }
  .v2e .v2e-pairs > div { grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: var(--v2-3); }
  .v2e .v2e-pairs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2e .btn-mini { min-height: 44px; }
  .v2e.v2e .pbc-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .v2e .v2e-plot { height: 240px; }
  .v2e .v2e-list > li:has(> form) { flex-wrap: wrap; }
  .v2e .v2e-history-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .v2e .v2e-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2e .v2e-figures b { font-size: 1.25rem; }
}
