/* Page system v2 — relationships family (/partners, /contacts, /partners/baseline,
   /partners/identity-resolution). Shared primitives live in system.css; this file
   only adds what these four pages need and answers the old panel layers. */

/* Page frame ------------------------------------------------------------------- */
.v2.v2-rel { padding-bottom: var(--v2-7); }
.v2-rel-head { padding: var(--v2-5) 0 var(--v2-6); border-bottom: var(--v2-rule); }
.v2-rel-head > .page-eyebrow { margin: 0 0 var(--v2-2); }
.v2-rel-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.8vw, 2.875rem);
  line-height: 1.05; letter-spacing: -.02em; color: var(--lm-matte); }
.v2-rel-head .v2-headline a, .v2-rel-lede a, .v2-rel-block p a { color: var(--lm-matte); text-decoration: underline;
  text-decoration-color: var(--lm-key); text-underline-offset: 3px; }
.v2-rel-back { display: inline-block; margin-bottom: var(--v2-4); color: var(--lm-matte-2); font-size: var(--v2-meta); text-decoration: none; }
.v2-rel-back:hover { color: var(--lm-matte); }
.v2-rel .v2-now { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
/* system.css sizes a section head's h2 as a sub-head (its "> * h2" rule also reaches
   the head itself); the family restores the section-head size. */
.v2.v2-rel .v2-section > .v2-section-head h2 { font-family: var(--font-display); font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 700; letter-spacing: -.015em; margin: 0; }

/* Inside a v2 section every child normally gets a hairline (system.css). These pages
   separate blocks explicitly instead, so a lede never sits under a double rule. */
.v2.v2-rel .v2-section > * + * { padding-top: 0; border-top: 0; }
.v2.v2-rel .v2-section > .v2-rel-block { margin: var(--v2-6) 0 0; padding-top: var(--v2-5); border-top: var(--v2-hair); }
.v2.v2-rel .v2-section > :is(div, section, article, details, aside) { margin-bottom: 0; }
.v2-rel-block > h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; color: var(--lm-matte); }
.v2-rel-block > p { max-width: 75ch; margin: var(--v2-2) 0 0; color: var(--lm-matte-2); }
.v2-rel-lede { max-width: 75ch; margin: 0 0 var(--v2-5); color: var(--lm-matte-2); text-wrap: pretty; }
.v2-rel-source { margin: var(--v2-6) 0 0; color: var(--lm-matte-3); font-size: var(--v2-meta); max-width: 90ch; }
.v2-rel-quiet { color: var(--lm-matte-3); }
.v2-rel .v2-note:empty, .v2-rel-legend:empty { display: none; }
/* A ledger's one-line note sits clear of the table head it explains. */
.v2.v2-rel :is(#partner-results, #contact-results) > .v2-note, .v2.v2-rel .baseline-library-status { margin: 0 0 var(--v2-4); }

/* Find: one quiet toolbar under the header, not a panel ------------------------- */
.v2-rel-find { padding: var(--v2-5) 0 0; }
.v2-find { display: grid; gap: var(--v2-4); margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.v2-find-query { display: flex; align-items: center; gap: var(--v2-3); flex-wrap: wrap; }
.v2-find-query input[type="search"] { flex: 1 1 280px; min-width: 0; min-height: 44px; }
.v2-find-query button { min-height: 44px; white-space: nowrap; }
.v2-find .live-filter-status { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-find:has(input[type="search"]:placeholder-shown) .live-filter-status { display: none; }
.v2-find-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--v2-3) var(--v2-4); align-items: end; }
.v2-find-filters label { display: grid; gap: var(--v2-1); min-width: 0; margin: 0; }
.v2-find-filters label > span { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2-find-filters select { width: 100%; min-width: 0; min-height: 44px; }
.v2-find-filters .filter-reset { align-self: center; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-find-more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-2) var(--v2-5); margin-top: var(--v2-4); }
.v2-find-more > a { color: var(--lm-matte-2); font-size: var(--v2-meta); text-decoration: underline; text-underline-offset: 3px; }
.v2-find-more > a:hover { color: var(--lm-matte); }
/* The create form opens in place, unboxed, instead of as a floating panel. */
.v2.v2-rel .intel-create { flex-basis: auto; }
.v2.v2-rel .intel-create[open] { flex-basis: 100%; }
.v2.v2-rel .intel-create > summary { min-height: 44px; }
.v2.v2-rel .intel-create-form { position: static; width: 100%; margin: var(--v2-4) 0 0; padding: var(--v2-4) 0 0;
  border: 0; border-top: var(--v2-hair); border-radius: 0; background: none; box-shadow: none; }
.v2.v2-rel .intel-create-heading { padding-bottom: var(--v2-3); }
.v2.v2-rel .intel-create-heading p, .v2.v2-rel .intel-create-actions small { font-size: var(--v2-meta); }

/* Where the revenue comes from: ranked bars per market, one shared scale ------- */
.v2-rel-markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-6) var(--v2-7); }
.v2-rel-market { min-width: 0; }
.v2-rel-market > header { padding-bottom: var(--v2-2); margin-bottom: var(--v2-3); border-bottom: var(--v2-hair); }
.v2-rel-market h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; }
.v2-rel-market > header p { margin: var(--v2-1) 0 0; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-rel-market > header p b { color: var(--lm-matte); font-family: var(--font-body); font-feature-settings: "tnum" 1; }
.v2-rel-market ol { display: grid; gap: var(--v2-2); margin: 0; padding: 0; list-style: none; }
.v2-rel-market li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: var(--v2-3); min-height: var(--v2-tap); }
.v2-rel-market li > a { overflow: hidden; color: var(--lm-matte); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.v2-rel-market li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-rel-market li > b { text-align: right; font-weight: 600; font-feature-settings: "tnum" 1; }
.v2-rel-bar { display: block; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--lm-matte) 7%, transparent); }
.v2-rel-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--lm-lamp-aqua); }
.v2-rel-market-rest { margin: var(--v2-3) 0 0; color: var(--lm-matte-2); font-size: var(--v2-meta); }
/* Right-aligned values stay clear of the fixed Ask button at the right edge. */
@media (min-width: 761px) { .v2.v2-rel :is(.v2-section, .v2-rel-block) > :is(.v2-rel-markets, .v2-rel-legend, .v2-rel-chart, .v2-rel-field) { margin-right: 64px; } }
.v2-rel-minor { margin: var(--v2-5) 0 0; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-rel-minor b { color: var(--lm-matte); font-weight: 600; }

/* Charts drawn on these pages sit on the page, not in a box. */
.v2.v2-rel :is(.v2-rel-chart, .v2-rel-field, .lumen-operating-chart, .relationship-index-chart) {
  border: 0; border-radius: 0; background: none; box-shadow: none; }
.v2.v2-rel .v2-rel-chart { height: 300px; margin-top: var(--v2-4); }
.v2.v2-rel .v2-rel-field { min-height: 400px; }
/* A chart host holds its space only once its script has started drawing, so a
   page without JavaScript (or before the lazy draw) shows no empty hole. */
.v2.v2-rel .v2-rel-chart:not(.lumen-chart), .v2.v2-rel .v2-rel-field:not(.is-d3-svg) { height: 0; min-height: 0; margin: 0; }
.v2.v2-rel .v2-rel-field svg { display: block; overflow: visible; }
.v2-rel-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--v2-2) var(--v2-5); margin: var(--v2-3) 0 0; padding: 0; list-style: none; }
.v2-rel-legend li { display: flex; align-items: center; gap: var(--v2-2); white-space: nowrap; }
.v2-rel-legend li > span { flex: 1 1 auto; }
.v2-rel-legend i { width: 10px; height: 10px; border-radius: 2px; }
.v2-rel-legend b { font-weight: 600; font-feature-settings: "tnum" 1; }
/* The chart's exact-values register folds quietly under the figure. */
.v2.v2-rel .relationship-insight-register { margin: var(--v2-3) 0 0; padding: 0; border: 0; background: none; }
.v2.v2-rel .relationship-insight-register > summary { min-height: 44px; display: flex; align-items: center;
  color: var(--lm-matte-2); font-size: var(--v2-meta); cursor: pointer; }

/* Tables: real tables at every width; wide ones scroll inside their own frame.
   tables.js enhances every table (sort buttons, viewport); the LUMEN layer paints
   the header row and, on phones, a sticky first column. Here the header loses its
   panel and only the phone keeps the sticky column. */
.v2.v2-rel table { width: 100%; border-collapse: collapse; }
.v2.v2-rel table :is(caption, .lumen-table-caption) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2.v2-rel table.lumen-instrumented-table :is(th, td), .v2.v2-rel table :is(th, td) {
  padding: var(--v2-3) var(--v2-4) var(--v2-3) 0; border-bottom: var(--v2-hair); text-align: left;
  vertical-align: top; font-weight: 400; text-transform: none; font-size: var(--v2-text); }
.v2.v2-rel table.lumen-instrumented-table thead th, .v2.v2-rel table thead th {
  padding-top: 0; padding-bottom: var(--v2-2); vertical-align: bottom; background: none; backdrop-filter: none;
  border-bottom: var(--v2-rule); color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; white-space: nowrap; }
.v2.v2-rel table [data-tanstack-sort] { min-height: 44px; padding: 0; font-size: var(--v2-meta); }
.v2.v2-rel table tbody th a { display: block; color: var(--lm-matte); text-decoration: none; }
.v2.v2-rel table tbody th a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.v2.v2-rel table b { font-weight: 600; color: var(--lm-matte); }
.v2.v2-rel table small { display: block; margin-top: 2px; color: var(--lm-matte-2); font-size: var(--v2-meta); text-transform: none; }
.v2.v2-rel table td { font-feature-settings: "tnum" 1; }
.v2.v2-rel .lumen-table-viewport { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.v2.v2-rel .lumen-table-toolbar { padding-inline: 0; }
/* These ledgers already sit under the page's own search and sort controls; the
   table toolbar's second filter box and density switch would repeat them. */
.v2.v2-rel :is(#partner-results, #contact-results, #buyer-baseline-results) .lumen-table-toolbar { display: none; }
.v2.v2-rel table tbody th, .v2.v2-rel table tbody th :is(b, small) { white-space: normal; overflow-wrap: break-word; }
/* An email or domain under a name has no spaces; it may break anywhere rather than widen the table. */
.v2.v2-rel table tbody th small { overflow-wrap: anywhere; }
@media (min-width: 761px) { .v2.v2-rel table tbody th { min-width: 180px; } .v2.v2-rel table tbody th b { overflow-wrap: anywhere; } }
/* clarity.css forces every th to micro-copy size with !important, which made the
   row's name (company, person, buyer) smaller than its cells. Answer in kind. */
body[class] main .v2.v2-rel table tbody th { font-size: var(--v2-text) !important; }
.v2.v2-rel .v2-rel-block table { margin-top: var(--v2-3); }
@media (min-width: 761px) {
  .v2.v2-rel table.lumen-instrumented-table :is(th, td):first-child { position: static; background: none; box-shadow: none; width: auto; max-width: none; }
}
@media (max-width: 760px) {
  /* The sticky column starts at the scroller's edge, so nothing scrolls past on its left. */
  .v2.v2-rel .lumen-table-viewport { padding-inline: 0; }
  .v2.v2-rel table.lumen-instrumented-table :is(th, td):first-child { width: 160px; min-width: 160px; max-width: 160px; padding-left: var(--v2-3); padding-right: var(--v2-2);
    background: var(--lm-ink); box-shadow: 1px 0 var(--lm-seam); }
  .v2.v2-rel table.lumen-instrumented-table thead th:first-child { background: var(--lm-ink); }
  /* The column after the sticky one keeps clear of its hairline. */
  .v2.v2-rel table.lumen-instrumented-table :is(th, td):nth-child(2) { padding-left: var(--v2-3); }
  /* A long role or domain wraps inside the column instead of drawing over the next one. */
  .v2.v2-rel table.lumen-instrumented-table tbody th:first-child { overflow: hidden; white-space: normal; }
  .v2.v2-rel table.lumen-instrumented-table tbody th:first-child :is(a, b, small) { white-space: normal; overflow-wrap: break-word; }
  /* A domain has no spaces to wrap at: it shortens with an ellipsis instead of breaking. */
  .v2.v2-rel #partner-results table tbody th:first-child small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* Folds: a counted, quiet disclosure under the head of a list. */
.v2-rel-fold { margin-top: var(--v2-2); }
.v2.v2-rel .v2-rel-fold > summary { display: flex; align-items: center; gap: var(--v2-2); min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--lm-matte-2); font-size: var(--v2-text); font-weight: 600; cursor: pointer; list-style: none; }
.v2.v2-rel .v2-rel-fold > summary::-webkit-details-marker { display: none; }
.v2.v2-rel .v2-rel-fold > summary::before { content: "+"; width: 1ch; color: var(--lm-key); }
.v2.v2-rel .v2-rel-fold[open] > summary::before { content: "−"; }
.v2.v2-rel .v2-rel-fold > summary:hover { color: var(--lm-matte); }
.v2.v2-rel .relationship-insight-register > summary::after { content: none; }
.v2.v2-rel .relationship-insight-register > summary::before { content: "+"; width: 1ch; margin-right: var(--v2-2); color: var(--lm-key); }
.v2.v2-rel .relationship-insight-register[open] > summary::before { content: "−"; }

/* People: capture + today's rotation side by side, unboxed ------------------- */
.v2-rel-find.v2-section { padding-top: var(--v2-7); }
.v2-rel-duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--v2-6) var(--v2-7); align-items: start; }
.v2-rel-duo h3, .v2-rel-note h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; }
.v2-rel-capture { display: grid; gap: var(--v2-3); margin: 0; padding: 0; border: 0; background: none; }
.v2-rel-capture .v2-note { margin: 0; }
.v2-rel-capture label { display: grid; gap: var(--v2-1); margin: 0; }
.v2-rel-capture label > span { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2-rel-capture textarea, .v2-rel-capture input { width: 100%; min-width: 0; }
.v2-rel-capture-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--v2-3); align-items: end; }
.v2-rel-capture-row button { min-height: 44px; }
.v2-rel-rotation { display: grid; gap: 0; }
.v2-rel-rotation > h3 { margin-bottom: var(--v2-2); }
.v2-rel-rotation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--v2-3); align-items: center; padding: var(--v2-3) 0; border-top: var(--v2-hair); }
.v2-rel-rotation-row > a:first-child { color: var(--lm-matte); text-decoration: none; min-width: 0; }
.v2-rel-rotation-row small { display: block; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-rel-rotation-row form { margin: 0; }
.v2-rel-rotation-prep { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-rel-note ul { margin: var(--v2-3) 0 0; padding-left: 1.1em; display: grid; gap: var(--v2-2); }
.v2-rel-note q { display: block; margin-top: 2px; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-rel-actions { display: flex; flex-wrap: wrap; gap: var(--v2-3); margin-top: var(--v2-4); }
.v2-rel-actions form { margin: 0; }

/* State tabs (buyer library, account matching): counts live only here. ------- */
.v2.v2-rel .v2-rel-tabs { display: flex; flex-wrap: wrap; gap: 0 var(--v2-5); margin: var(--v2-6) 0 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; }
.v2.v2-rel .v2-rel-tabs a { display: flex; align-items: baseline; gap: var(--v2-2); min-height: 44px; padding: var(--v2-2) 0;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none;
  color: var(--lm-matte-2); text-decoration: none; }
.v2.v2-rel .v2-rel-tabs a::before, .v2.v2-rel .v2-rel-tabs a::after { display: none; }
.v2.v2-rel .v2-rel-tabs a b { font-family: var(--font-num); font-size: 1.125rem; font-weight: 700; color: var(--lm-matte); font-feature-settings: "tnum" 1; }
.v2.v2-rel .v2-rel-tabs a span { font-size: var(--v2-text); }
.v2.v2-rel .v2-rel-tabs a.is-active { border-bottom-color: var(--lm-key); color: var(--lm-matte); }
.v2.v2-rel .v2-rel-tabs a:hover { color: var(--lm-matte); }

/* Buyer library: decisions open in place inside their row. ------------------ */
.v2.v2-rel .v2-rel-buyers td.v2-rel-decision { min-width: 190px; width: 200px; }
/* Opportunity and status text wraps, so the table fits a desktop without sideways scroll. */
.v2.v2-rel .v2-rel-buyers td { white-space: normal; }
.v2.v2-rel .v2-rel-buyers td:nth-child(3) { white-space: nowrap; }
@media (min-width: 761px) {
  .v2.v2-rel .v2-rel-buyers tbody th { min-width: 200px; }
  .v2.v2-rel .v2-rel-buyers td.v2-rel-decision { min-width: 170px; width: 170px; }
}
.v2-rel-decide { margin: 0; }
.v2-rel-decide > summary { display: inline-flex; align-items: center; min-height: var(--v2-tap); color: var(--lm-matte); font-weight: 600;
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--lm-key); text-underline-offset: 3px; }
.v2-rel-decide[open] > summary { margin-bottom: var(--v2-2); }
.v2-rel-decide form { display: grid; gap: var(--v2-2); margin: 0 0 var(--v2-2); }
.v2-rel-decide :is(button, select) { min-height: 44px; width: 100%; }
.v2.v2-rel .v2-rel-decide label.field { margin: 0; }
.v2-rel-pages { display: flex; justify-content: space-between; gap: var(--v2-4); margin-top: var(--v2-5); }
.v2-rel-pages > * { display: inline-flex; align-items: center; min-height: 44px; color: var(--lm-matte); }
.v2-rel-pages > span { color: var(--lm-matte-3); }

/* Account matching: queue and selected account side by side, unboxed. -------- */
.v2-rel-identity .identity-resolution-workspace { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0 var(--v2-7); align-items: start; margin: 0; padding: 0; border: 0; background: none; }
.v2.v2-rel-identity :is(.identity-queue, .identity-inspector, .identity-queue-list, .identity-queue-row, .identity-impact,
  .identity-impact > div, .identity-market-mix, .identity-map-panel, .identity-context-editor, .identity-state-actions,
  .identity-audit, .identity-add-source, .identity-search, .identity-current-map, .identity-audit article, .identity-empty) {
  border: 0; border-radius: 0; background: none; box-shadow: none; }
.v2.v2-rel-identity :is(.identity-queue, .identity-inspector, .identity-map-panel, .identity-market-mix, .identity-state-actions, .identity-queue-row)::before,
.v2.v2-rel-identity :is(.identity-queue, .identity-inspector, .identity-map-panel, .identity-market-mix, .identity-state-actions, .identity-queue-row)::after { display: none; }
.v2.v2-rel-identity .identity-queue, .v2.v2-rel-identity .identity-inspector { position: static; order: 0; max-height: none; overflow: visible; padding: var(--v2-7) 0 0; }
.v2.v2-rel-identity .identity-queue .v2-note { margin: 0 0 var(--v2-2); }
.v2.v2-rel-identity :is(.identity-queue, .identity-inspector) > header { position: static; margin: 0 0 var(--v2-4); padding: 0 0 var(--v2-3);
  border: 0; border-bottom: var(--v2-rule); border-radius: 0; background: none; box-shadow: none; }
.v2.v2-rel-identity :is(.identity-queue, .identity-inspector) > header::before,
.v2.v2-rel-identity :is(.identity-queue, .identity-inspector) > header::after { display: none; }
.v2.v2-rel-identity .identity-inspector > header h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
.v2.v2-rel-identity .identity-queue-row { min-height: 0; }
.v2.v2-rel-identity .identity-check { padding: 0; border: 0; background: none; }
.v2.v2-rel-identity .identity-queue-list { display: grid; gap: 0; max-height: none; overflow: visible; padding: 0; }
.v2.v2-rel-identity .identity-queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--v2-4); align-items: start;
  padding: var(--v2-3) 0 var(--v2-3) var(--v2-3); border-bottom: var(--v2-hair); border-left: 2px solid transparent; color: var(--lm-matte); text-decoration: none; }
.v2.v2-rel-identity .identity-queue-row.is-selected { border-left-color: var(--lm-key); }
.v2.v2-rel-identity .identity-queue-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.v2.v2-rel-identity .identity-queue-row :is(b, small) { display: block; }
.v2.v2-rel-identity .identity-queue-row b { font-size: var(--v2-text); font-weight: 600; color: var(--lm-matte); }
.v2.v2-rel-identity .identity-queue-row small { margin-top: 2px; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-rel-identity .identity-queue-value { text-align: right; font-feature-settings: "tnum" 1; }
.v2.v2-rel-identity .identity-inspector-head p { margin: var(--v2-1) 0 0; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-rel-identity .identity-inspector > :is(section, details, dl, p) { margin: var(--v2-5) 0 0; padding: var(--v2-5) 0 0; border-top: var(--v2-hair); }
.v2.v2-rel-identity .identity-inspector > dl.identity-impact { border-top: 0; padding-top: 0; }
.v2.v2-rel-identity .identity-inspector h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; }
.v2.v2-rel-identity .identity-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v2-4); }
.v2.v2-rel-identity .identity-impact > div { padding: 0; }
.v2.v2-rel-identity .identity-impact dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2.v2-rel-identity .identity-impact dd { margin: var(--v2-1) 0 0; font-size: var(--v2-text); font-weight: 600; font-feature-settings: "tnum" 1; }
.v2.v2-rel-identity .identity-market-mix ul { display: grid; gap: var(--v2-2); margin: var(--v2-3) 0 0; padding: 0; list-style: none; }
.v2.v2-rel-identity .identity-market-mix li { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 4rem; gap: 2px var(--v2-3); align-items: center; }
.v2.v2-rel-identity .identity-market-mix li > b { text-align: right; font-weight: 600; font-feature-settings: "tnum" 1; }
.v2.v2-rel-identity .identity-market-mix li > small { grid-column: 1 / -1; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-rel-identity :is(.identity-map-panel form, .identity-context-editor form, .identity-add-form) { display: grid; gap: var(--v2-3); margin: var(--v2-3) 0 0; padding: 0;
  position: static; width: auto; border: 0; background: none; box-shadow: none; grid-template-columns: minmax(0, 1fr); }
.v2.v2-rel-identity :is(.identity-map-panel, .identity-context-editor, .identity-add-form) label { display: grid; gap: var(--v2-1); margin: 0; }
.v2.v2-rel-identity :is(.identity-map-panel, .identity-context-editor, .identity-add-form) label > span { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2.v2-rel-identity :is(.identity-map-panel, .identity-context-editor, .identity-add-form) label > small { color: var(--lm-matte-3); font-size: var(--v2-meta); }
.v2.v2-rel-identity :is(input:not([type="checkbox"]), textarea) { width: 100%; min-width: 0; min-height: 44px; font-size: 1rem; }
.v2.v2-rel-identity .identity-check { grid-template-columns: auto minmax(0, 1fr) !important; align-items: start; }
.v2.v2-rel-identity .identity-check small { display: block; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-rel-identity .identity-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-3); }
.v2.v2-rel-identity .identity-form-actions :is(a, small) { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-rel-identity .identity-state-actions > div { display: flex; flex-wrap: wrap; gap: var(--v2-3); margin-top: var(--v2-3); }
.v2.v2-rel-identity .identity-state-actions form { margin: 0; }
.v2.v2-rel-identity :is(.identity-context-editor, .identity-audit, .identity-add-source) > summary { display: flex; align-items: center; min-height: 44px;
  justify-content: flex-start; padding: 0; border: 0; background: none; color: var(--lm-matte); font-weight: 600; cursor: pointer; list-style: none; }
.v2.v2-rel-identity :is(.identity-context-editor, .identity-audit, .identity-add-source) > summary::-webkit-details-marker { display: none; }
.v2.v2-rel-identity :is(.identity-context-editor, .identity-audit, .identity-add-source) > summary::before { content: "+"; width: 1ch; margin-right: var(--v2-2); color: var(--lm-key); }
.v2.v2-rel-identity :is(.identity-context-editor, .identity-audit, .identity-add-source)[open] > summary::before { content: "−"; }
.v2.v2-rel-identity :is(.identity-context-editor, .identity-audit, .identity-add-source) > summary::after { display: none; }
.v2.v2-rel-identity .identity-add-source[open] { flex-basis: 100%; }
.v2.v2-rel-identity .identity-add-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2.v2-rel-identity .identity-add-form :is(.is-wide, .identity-form-actions) { grid-column: 1 / -1; }
.v2.v2-rel-identity .identity-audit article { display: grid; gap: 2px; padding: var(--v2-3) 0; border-bottom: var(--v2-hair); }
.v2.v2-rel-identity .identity-audit time, .v2.v2-rel-identity .identity-audit small { color: var(--lm-matte-2); font-size: var(--v2-meta); text-transform: none; }
.v2.v2-rel-identity .identity-audit b { text-transform: none; }
.v2.v2-rel-identity .identity-audit p { margin: 0; }
.v2.v2-rel-identity .identity-current-map a { color: var(--lm-matte); }

/* Continuity anatomy (company and person pages): aligned bars, not a waterfall.
   Unscoped because the record pages render it outside this family's wrapper. */
.rel-anatomy-host { height: auto !important; min-height: 0 !important; }
.rel-anatomy { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* Name and score on one line, the bar under them: it reads the same in a narrow
   rail, a phone and a wide column. */
.rel-anatomy li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name score" "bar bar";
  align-items: center; gap: 4px 12px; font-size: .9375rem; }
.rel-anatomy li > span:first-child { grid-area: name; color: var(--lm-matte-2); }
.rel-anatomy li > .rel-anatomy-track { grid-area: bar; }
.rel-anatomy li > b { grid-area: score; text-align: right; font-weight: 600; font-feature-settings: "tnum" 1; color: var(--lm-matte); }
.rel-anatomy-track { display: block; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--lm-matte) 7%, transparent); }
.rel-anatomy-track > i { display: block; height: 100%; border-radius: 2px; background: var(--lm-lamp-mint); }
.rel-anatomy li.is-total { padding-top: 10px; border-top: 1px solid var(--lm-seam); }
.rel-anatomy li.is-total > span:first-child { color: var(--lm-matte); font-weight: 600; }
.rel-anatomy li.is-total .rel-anatomy-track > i { background: var(--lm-lamp-aqua); }
/* Its values fold quietly under the bars: no second box inside the card. */
.rel-anatomy-host + .relationship-insight-register { margin-top: 12px; border: 0; border-top: 1px solid var(--lm-seam); border-radius: 0; background: none; }
.rel-anatomy-host + .relationship-insight-register > summary { padding: 0; color: var(--lm-matte-2); font-size: .875rem; font-weight: 600; letter-spacing: 0; }

/* Phones ------------------------------------------------------------------------ */
@media (max-width: 760px) {
  .v2-rel-markets, .v2-rel-duo { grid-template-columns: minmax(0, 1fr); gap: var(--v2-6); }
  .v2-rel-identity .identity-resolution-workspace { grid-template-columns: minmax(0, 1fr); }
  .v2.v2-rel-identity .identity-add-form { grid-template-columns: minmax(0, 1fr); }
  .v2.v2-rel-identity .identity-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2.v2-rel .v2-rel-tabs { gap: 0 var(--v2-4); }
  .v2-rel-market li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "bar bar"; gap: 4px var(--v2-3); min-height: 0; align-items: baseline; }
  /* The name keeps a full touch target; its text sits on the bar beneath it. */
  .v2-rel-market li > a { grid-area: name; display: flex; align-items: flex-end; min-height: var(--v2-tap); white-space: normal; }
  .v2-rel-market li > b { align-self: end; }
  .v2-rel-market ol { gap: var(--v2-3); }
  .v2-rel-market li > .v2-rel-bar { grid-area: bar; }
  .v2-rel-market li > b { grid-area: value; }
  .v2-rel-table { min-width: 720px; }
  .v2-rel-legend { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .v2-rel-head { padding-top: var(--v2-3); }
  .v2-find-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-rel .v2-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2.v2-rel .v2-rel-field { min-height: 340px; }
}
