/* Page system v2 — intelligence family. Owned by one rebuild stream; shared primitives live in system.css.
   Pages: executive state, decision lab, portfolio, attention, attention studio, calibration.
   Every rule is scoped to .v2-intel so the old layers keep governing every other page. */

/* Page head: the shared page_header loses its hero box and reads like the company header. */
.v2-intel-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-4);
  min-height: 44px; padding-top: var(--v2-3); }
.v2-intel-bar form { margin: 0; }
.v2-intel-flash { margin: 0; color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-intel-head { padding: var(--v2-3) 0 var(--v2-6); border-bottom: var(--v2-rule); }
body:not(.page-today) .v2-intel .page-header { min-height: 0; margin: 0; padding: 0; overflow: visible;
  border: 0; border-radius: 0; background: none; box-shadow: none; }
body:not(.page-today) .v2-intel .page-header::before,
body:not(.page-today) .v2-intel .page-header::after,
body:not(.page-today) .v2-intel .page-header .page-eyebrow::before { content: none; display: none; }
.v2-intel .page-header .page-eyebrow { display: block; margin-bottom: var(--v2-2); }
.v2-intel .page-header h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.05; letter-spacing: -.02em; }
body:not(.page-today) .v2-intel .page-header p { max-width: 68ch; margin: var(--v2-4) 0 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.45; color: var(--lm-matte); text-wrap: pretty; }
.v2-intel .v2-now { margin-top: var(--v2-6); }
.v2-intel .v2-now-fact small { line-height: 1.4; }

/* Sections: children are separated by space, not by the generic hairline. */
.v2.v2-intel .v2-section > * + * { padding-top: 0; border-top: 0; }
.v2.v2-intel .v2-section > :is(section, article, details, div, aside) { margin-bottom: var(--v2-5); }
.v2.v2-intel .v2-section > .v2-section-head { margin-bottom: var(--v2-3); }
.v2.v2-intel .v2-section > .v2-note { margin: 0 0 var(--v2-5); max-width: 72ch; }
.v2-intel .v2-section-head h2 { text-wrap: balance; }
.v2-intel-link { color: var(--lm-matte-2); font-size: var(--v2-meta); white-space: nowrap; text-decoration: underline;
  text-decoration-color: var(--lm-seam-strong); text-underline-offset: 3px; }
.v2-intel-link:hover { color: var(--lm-matte); }
.v2.v2-intel .v2-intel-subhead { margin: var(--v2-6) 0 var(--v2-3); font: 650 1.0625rem/1.35 var(--font-body); color: var(--lm-matte); }
.v2-intel-label { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2-intel-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Items: one column of entries divided by hairlines. */
.v2.v2-intel .v2-intel-stack { display: grid; gap: 0; }
.v2-intel-stack > .v2-intel-item { padding: var(--v2-5) 0; border-top: var(--v2-hair); }
.v2-intel-stack > .v2-intel-item:first-child { border-top: 0; padding-top: 0; }
.v2.v2-intel .v2-intel-item { margin: 0; border-radius: 0; background: none; box-shadow: none; border-left: 0; border-right: 0; border-bottom: 0; }
.v2.v2-intel .v2-intel-item::before, .v2.v2-intel .v2-intel-item::after { content: none; }
.v2.v2-intel .v2-intel-item h3 { margin: var(--v2-2) 0 0; max-width: 70ch; font: 650 1.1875rem/1.35 var(--font-body);
  letter-spacing: 0; color: var(--lm-matte); text-wrap: pretty; }
.v2-intel-meta { display: flex; flex-wrap: wrap; gap: var(--v2-1) var(--v2-4); color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-intel-meta > * + *::before { content: "·"; margin-right: var(--v2-4); color: var(--lm-matte-3); }
.v2.v2-intel .v2-intel-item > p { margin: var(--v2-3) 0 0; max-width: 72ch; }
.v2-intel-consequence { color: var(--lm-matte); }
.v2.v2-intel .v2-intel-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-4) var(--v2-5);
  margin: var(--v2-4) 0 0; max-width: 72ch; }
.v2-intel-pair dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2-intel-pair dd { margin: var(--v2-1) 0 0; font-size: 1rem; }
/* A quote is marked by a drawn rule (a pseudo-element), not a painted box edge. */
.v2.v2-intel .v2-intel-quote { position: relative; margin: var(--v2-4) 0 0; padding: 0 0 0 var(--v2-4); border: 0; background: none; max-width: 72ch; }
.v2-intel-quote::before, .v2.v2-intel .v2-intel-inline > form::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 2px; border-radius: 1px; background: var(--lm-seam-strong); }
.v2-intel-quote p { margin: var(--v2-1) 0; }
.v2-intel-quote small { color: var(--lm-matte-2); }
.v2-intel-facts { color: var(--lm-matte-2); }

/* Disclosures: a quiet text summary, never a tray. */
.v2.v2-intel .v2-intel-disclose { margin: var(--v2-3) 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.v2.v2-intel .v2-intel-disclose > summary { display: inline-flex; align-items: center; gap: var(--v2-2); min-height: 44px; padding: 0;
  color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; cursor: pointer; list-style: none; background: none; border: 0; }
.v2-intel-disclose > summary::-webkit-details-marker { display: none; }
.v2-intel-disclose > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid var(--lm-seam-strong); border-radius: 50%; font-size: .75rem; line-height: 1; }
.v2-intel-disclose[open] > summary::before { content: "−"; }
.v2-intel-disclose > summary:hover { color: var(--lm-matte); }
.v2.v2-intel .v2-intel-disclose > :not(summary) { margin: var(--v2-2) 0 var(--v2-3); max-width: 72ch; }
.v2-intel-disclose :is(ol, ul) { padding-left: 1.2em; display: grid; gap: var(--v2-2); }

/* Inline editors replace blocking dialogs: the summary is the button, the form opens below. */
.v2.v2-intel .v2-intel-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--v2-2); margin: var(--v2-4) 0 0; }
.v2.v2-intel .v2-intel-inline { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.v2.v2-intel .v2-intel-inline > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--v2-4);
  list-style: none; cursor: pointer; font-size: .9375rem; }
.v2-intel-inline > summary::-webkit-details-marker { display: none; }
.v2-intel-inline[open] { flex: 1 0 100%; order: 9; }
.v2.v2-intel .v2-intel-inline > form { display: grid; gap: var(--v2-3); max-width: 60ch; margin: var(--v2-4) 0 var(--v2-2);
  position: relative; padding: 0 0 0 var(--v2-4); border: 0; background: none; }
.v2-intel-inline > form + form { margin-top: var(--v2-5); }
.v2-intel-inline form > button { justify-self: start; min-height: 44px; }
.v2-intel-inline .v2-note { margin: 0; font-size: var(--v2-meta); }
.v2-intel .field > span { font-size: var(--v2-meta); }
.v2-intel :is(input, textarea, select) { font-size: 1rem; }

/* Ranked rows: one line of kind, a title, and one line of detail. */
.v2.v2-intel .v2-intel-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.v2-intel-rows > li { display: grid; gap: var(--v2-1); padding: var(--v2-3) 0; border-top: var(--v2-hair); }
.v2-intel-rows > li:first-child { border-top: 0; }
.v2-intel-rows b { font-weight: 600; color: var(--lm-matte); line-height: 1.45; }
.v2-intel-rows small { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-intel-kind { color: var(--lm-matte-3); font-size: var(--v2-meta); font-weight: 600; }
.v2-intel-rows.is-compact > li { padding: var(--v2-2) 0; }
.v2-intel-rows.is-compact b { font-weight: 500; }

/* "Show N more": a counted fold under the head of a list or table. */
.v2.v2-intel :is(.v2-fold, .hypothesis-watch-queue) { margin: 0 0 var(--v2-5); padding: 0; border: 0; border-top: var(--v2-hair); background: none; box-shadow: none; }
.v2.v2-intel :is(.v2-fold, .hypothesis-watch-queue) > summary { display: flex; align-items: center; gap: var(--v2-2); min-height: 48px; padding: 0;
  color: var(--lm-matte-2); font-size: .9375rem; font-weight: 600; cursor: pointer; list-style: none; background: none; border: 0; }
:is(.v2-fold, .hypothesis-watch-queue) > summary::-webkit-details-marker { display: none; }
:is(.v2-fold, .hypothesis-watch-queue) > summary:hover { color: var(--lm-matte); }

/* Tables: plain rows on hairlines; wide tables scroll inside their own frame on phones. */
.v2-intel-table-wrap { max-width: 100%; overflow-x: auto; }
.v2.v2-intel .v2-intel-table { width: 100%; min-width: 0; border-collapse: collapse; background: none; }
.v2.v2-intel .v2-intel-table :is(th, td) { padding: var(--v2-3) var(--v2-3) var(--v2-3) 0; border: 0; border-bottom: var(--v2-hair);
  background: none; text-align: left; vertical-align: top; font-size: .9375rem; line-height: 1.45; }
.v2.v2-intel .v2-intel-table thead th { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; white-space: nowrap;
  text-transform: none; letter-spacing: 0; }
.v2.v2-intel .v2-intel-table tbody th { font-weight: 500; color: var(--lm-matte); min-width: 16ch; }
.v2.v2-intel .v2-intel-table .num { text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; }
.v2.v2-intel .v2-intel-table tr:last-child > * { border-bottom: 0; }
.v2-intel-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-6); }

/* Section titles keep display size (system.css shrinks every h2 inside a section's children). */
.v2.v2-intel .v2-section > .v2-section-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.v2.v2-intel .v2-intel-item > header.v2-intel-meta { display: flex; justify-content: flex-start; align-items: baseline; padding: 0; border: 0; }

/* The shared table enhancer frames every table; inside this family the frame is removed. */
.v2.v2-intel .lumen-table-viewport { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
.v2.v2-intel .lumen-table-viewport::before, .v2.v2-intel .lumen-table-viewport::after { content: none; }
.v2.v2-intel .v2-intel-table :is(th, td) { text-transform: none; letter-spacing: 0; }
.v2.v2-intel .v2-intel-table tbody th { white-space: normal; width: 50%; }

@media (max-width: 640px) {
  .v2-intel-head { padding-bottom: var(--v2-5); }
  .v2.v2-intel .v2-intel-pair, .v2-intel-split { grid-template-columns: minmax(0, 1fr); gap: var(--v2-3); }
  .v2.v2-intel .v2-intel-table { min-width: 520px; }
  .v2.v2-intel .v2-intel-item h3 { font-size: 1.125rem; }
  .v2.v2-intel .v2-intel-inline > summary { padding: 0 var(--v2-3); }
}

/* Calibration ------------------------------------------------------------------ */
.v2-cal-flash { padding-top: var(--v2-4); }
.v2.v2-intel .v2-cal-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--v2-3) var(--v2-5); margin: var(--v2-4) 0 0; }
.v2-cal-facts dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2-cal-facts dd { margin: var(--v2-1) 0 0; overflow-wrap: anywhere; }
.v2.v2-intel .v2-cal-source { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-intel .v2-cal-item > details:not(.v2-intel-disclose) { margin: var(--v2-3) 0 0; padding: 0; border: 0; background: none; }
.v2.v2-intel .v2-cal-item > details:not(.v2-intel-disclose) > summary { min-height: 44px; display: flex; align-items: center; padding: 0;
  color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; cursor: pointer; background: none; border: 0; }
.v2.v2-intel .v2-cal-verdicts { display: flex; flex-wrap: wrap; gap: var(--v2-2); margin-top: var(--v2-4); }
.v2.v2-intel .v2-cal-verdicts button { min-height: 44px; padding: 0 var(--v2-4); font-size: .9375rem; }
.v2-cal-issues { display: grid; gap: var(--v2-2); }
.v2-cal-issues label { display: flex; align-items: center; gap: var(--v2-2); min-height: var(--v2-tap); }
.v2-cal-form small { color: var(--lm-matte-2); }
.v2.v2-intel .v2-cal-group > summary { justify-content: space-between; min-height: 56px; padding: var(--v2-2) 0; }
.v2.v2-intel .v2-cal-group > summary span { color: var(--lm-matte); font-weight: 600; max-width: 70ch; }
.v2.v2-intel .v2-cal-group > summary small { flex: none; color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 500; }
.v2.v2-intel .v2-cal-group[data-complete] > summary small { color: var(--lm-key); }
.v2.v2-intel .v2-cal-group > ol { margin: 0 0 var(--v2-4) var(--v2-4); }
.v2.v2-intel .v2-cal-row { margin: 0; padding: 0; border: 0; background: none; }
.v2.v2-intel .v2-cal-row > summary { display: grid; gap: var(--v2-1); padding: 0; cursor: pointer; list-style: none; background: none; border: 0; }
.v2-cal-row > summary::-webkit-details-marker { display: none; }
.v2-cal-row[open] > summary b { color: var(--lm-key); }
.v2-cal-row > .v2-cal-item { padding: var(--v2-4) 0 var(--v2-2); }
.v2-intel-rows > li > a { color: inherit; text-decoration: none; }
@media (max-width: 640px) {
  .v2.v2-intel .v2-cal-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2.v2-intel .v2-cal-group > ol { margin-left: 0; }
}
.v2.v2-intel .v2-section > details:is(.v2-fold, .hypothesis-watch-queue) { border-top: var(--v2-hair); }
.v2.v2-intel .v2-section > details.v2-cal-group { margin: 0; }
.v2.v2-intel .v2-section > details.v2-cal-group:last-child { border-bottom: var(--v2-hair); }
.v2.v2-intel .v2-cal-item > details:not(.v2-intel-disclose) > summary { gap: var(--v2-2); list-style: none; }
.v2-cal-item > details:not(.v2-intel-disclose) > summary::-webkit-details-marker { display: none; }
.v2-cal-item > details:not(.v2-intel-disclose) > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid var(--lm-seam-strong); border-radius: 50%; font-size: .75rem; line-height: 1; }
.v2-cal-item > details[open]:not(.v2-intel-disclose) > summary::before { content: "−"; }
.v2.v2-intel .v2-intel-table tbody :is(th, td), .v2.v2-intel .v2-intel-table tbody th * { font-size: .9375rem; }
.v2.v2-intel .v2-intel-table tbody td { font-weight: 400; }
.v2.v2-intel .v2-intel-table thead :is(th, th *) { font-size: var(--v2-meta); }

/* Decision lab ----------------------------------------------------------------- */
.v2.v2-intel .v2-intel-steps { display: flex; flex-wrap: wrap; gap: var(--v2-2) var(--v2-5); margin: var(--v2-5) 0 0; padding: 0;
  border: 0; background: none; box-shadow: none; }
.v2.v2-intel .v2-intel-steps a { display: inline-flex; align-items: center; gap: var(--v2-2); min-height: 44px; padding: 0; border: 0;
  background: none; box-shadow: none; color: var(--lm-matte-2); font-size: .9375rem; text-decoration: none; }
.v2.v2-intel .v2-intel-steps a:hover { color: var(--lm-matte); }
.v2.v2-intel .v2-intel-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--lm-seam-strong);
  border-radius: 50%; font: 600 .8125rem/1 var(--font-body); }
.v2.v2-intel .v2-intel-logic { display: grid; gap: var(--v2-3); margin: var(--v2-4) 0 0; max-width: 72ch; }
.v2.v2-intel .v2-intel-logic > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--v2-4); }
.v2.v2-intel .v2-intel-logic.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: var(--v2-4) var(--v2-5); }
.v2.v2-intel .v2-intel-logic.is-grid > div { grid-template-columns: minmax(0, 1fr); gap: var(--v2-1); }
.v2-intel-logic dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; padding-top: 2px; }
.v2-intel-logic dd { margin: 0; }
.v2-intel-logic dd small { display: block; margin-top: var(--v2-1); color: var(--lm-matte-2); }
.v2.v2-intel .v2-intel-resolve { display: grid; gap: var(--v2-3); margin: var(--v2-5) 0 0; max-width: 72ch; }
.v2.v2-intel .v2-intel-buttons { display: flex; flex-wrap: wrap; gap: var(--v2-2); }
.v2.v2-intel .v2-intel-buttons button, .v2.v2-intel .v2-intel-button { min-height: 44px; padding: 0 var(--v2-4); font-size: .9375rem;
  display: inline-flex; align-items: center; }
.v2.v2-intel .v2-intel-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--v2-3); }
.v2-intel-plain { color: inherit; text-decoration: none; }
.v2-intel-plain:hover b { text-decoration: underline; text-underline-offset: 3px; }
.v2-intel-links { display: flex; flex-wrap: wrap; gap: var(--v2-2) var(--v2-4); }
.v2.v2-intel .v2-section > div[id] { margin-bottom: var(--v2-6); }
.v2.v2-intel .v2-intel-meta .v2-intel-link { margin-left: auto; }
.v2.v2-intel .v2-intel-meta .v2-intel-link::before, .v2-intel-meta > a.hypothesis-source-link::before { content: none; }
.v2.v2-intel .v2-intel-meta .hypothesis-source-link { margin-left: auto; color: var(--lm-matte-2); display: inline-flex; align-items: center;
  min-height: 44px; margin-block: -12px; padding: 0; border: 0; background: none; }
.v2.v2-intel .v2-cal-row > .v2-intel-item, .v2.v2-intel .v2-cal-row > dl, .v2.v2-intel .v2-cal-row > p { padding-bottom: var(--v2-3); }
.v2.v2-intel .v2-intel-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--v2-6); }
.v2.v2-intel .v2-intel-figure { margin: 0; }
.v2-intel-figure figcaption { display: grid; gap: var(--v2-1); margin-bottom: var(--v2-3); }
.v2-intel-figure figcaption span { color: var(--lm-matte-2); }
.v2.v2-intel .v2-intel-plot { min-height: 320px; }
/* Old card layers box every dl row; here the rows are plain. */
.v2.v2-intel .v2-intel-logic:not(.is-grid) { grid-template-columns: minmax(0, 1fr); }
.v2.v2-intel .v2-intel-logic > div { padding: 0; border: 0; border-radius: 0; background: none; align-content: start; align-items: start; }
.v2.v2-intel .v2-intel-item > header.v2-intel-meta, .v2.v2-intel .v2-intel-meta :is(span, a) { font-size: var(--v2-meta); font-weight: 500; }
.v2.v2-intel .v2-intel-meta a, .v2.v2-intel .v2-intel-meta span { color: var(--lm-matte-2); }
.v2.v2-intel .v2-intel-meta a:hover { color: var(--lm-matte); }
/* Every counted fold uses one marker: a chevron that turns when open. */
:is(.v2-fold, .hypothesis-watch-queue) > summary::before { content: "›"; display: inline-block; color: var(--lm-matte-3); font-size: 1.1rem; line-height: 1;
  transition: transform .18s ease; }
:is(.v2-fold, .hypothesis-watch-queue)[open] > summary::before { transform: rotate(90deg); }
.v2.v2-intel .v2-intel-inline.is-record > summary { margin-top: var(--v2-4); }

/* Portfolio -------------------------------------------------------------------- */
.v2-intel-refresh { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--v2-2) var(--v2-4); }
.v2-intel-refresh label { display: inline-flex; align-items: center; gap: var(--v2-2); min-height: 44px; color: var(--lm-matte-2); font-size: .9375rem; }
.v2-intel-refresh input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.v2.v2-intel .portfolio-evidence { margin: var(--v2-4) 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.v2.v2-intel .portfolio-evidence > summary { display: inline-flex; align-items: center; gap: var(--v2-2); min-height: 44px; padding: 0;
  color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; cursor: pointer; list-style: none; background: none; border: 0; }
.portfolio-evidence > summary::-webkit-details-marker { display: none; }
.portfolio-evidence > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid var(--lm-seam-strong); border-radius: 50%; font-size: .75rem; line-height: 1; }
.portfolio-evidence[open] > summary::before { content: "−"; }
.v2.v2-intel .portfolio-evidence > ul { max-width: 72ch; margin: 0 0 var(--v2-2); }
.v2.v2-intel .portfolio-evidence li { gap: var(--v2-1); }
.v2.v2-intel .v2-intel-list { margin: 0; padding-left: 1.1em; display: grid; gap: var(--v2-1); }
.v2.v2-intel .v2-intel-stamp { margin: var(--v2-3) 0 0; color: var(--lm-matte-3); font-size: var(--v2-meta); }
.v2.v2-intel .v2-intel-plot.is-tall { min-height: 460px; }
.v2.v2-intel .v2-intel-figure { max-width: 860px; }

/* Attention -------------------------------------------------------------------- */
.v2.v2-intel .v2-intel-modes { display: grid; gap: var(--v2-4); margin: 0; padding: 0; list-style: none; max-width: 860px; }
.v2-intel-modes li { display: grid; gap: var(--v2-1); }
.v2-intel-modes li > div { display: flex; justify-content: space-between; gap: var(--v2-3); }
.v2-intel-modes li > div span { color: var(--lm-matte-2); font-feature-settings: "tnum" 1; white-space: nowrap; }
.v2-intel-modes small { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2-intel-modes progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--lm-seam); overflow: hidden; }
.v2-intel-modes progress::-webkit-progress-bar { background: var(--lm-seam); border-radius: 3px; }
.v2-intel-modes progress::-webkit-progress-value { background: var(--lm-key); border-radius: 3px; }
.v2-intel-modes progress::-moz-progress-bar { background: var(--lm-key); border-radius: 3px; }
.v2.v2-intel :is(.v2-intel-range, .attention-range-picker) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-1) var(--v2-2); margin: 0 0 var(--v2-5);
  padding: 0; border: 0; background: none; box-shadow: none; }
.v2.v2-intel :is(.v2-intel-range, .attention-range-picker) a { display: inline-flex; align-items: center; min-height: var(--v2-tap); padding: 0 var(--v2-3); border: 1px solid transparent;
  border-radius: 999px; background: none; color: var(--lm-matte-2); font-size: .9375rem; text-decoration: none; }
.v2.v2-intel :is(.v2-intel-range, .attention-range-picker) a.on { border-color: var(--lm-seam-strong); color: var(--lm-matte); font-weight: 600; }
.v2.v2-intel :is(.v2-intel-range, .attention-range-picker) small { flex-basis: 100%; color: var(--lm-matte-2); font-size: var(--v2-meta); }
/* One chart per row: the hour matrix needs ~760px for all 24 hours before it has to scroll. */
.v2.v2-intel .v2-intel-charts.is-wide { grid-template-columns: minmax(0, 1fr); }
.v2.v2-intel .v2-intel-charts.is-wide > :not(:last-child) { max-width: none; }
.v2.v2-intel .v2-intel-plot.is-scrollable-plot { overflow-x: auto; }
.v2.v2-intel .v2-intel-attr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-2) var(--v2-3); margin: var(--v2-1) 0 0; }
.v2.v2-intel .v2-intel-attr span { color: var(--lm-matte-2); font-size: var(--v2-meta); }
.v2.v2-intel .v2-intel-attr button { min-height: var(--v2-tap); font-size: var(--v2-meta); }
@media (max-width: 900px) {
  .v2.v2-intel .v2-intel-charts.is-wide { grid-template-columns: minmax(0, 1fr); }
}

/* Attention Studio --------------------------------------------------------------- */
.v2.v2-intel :is(.v2-intel-range, .attention-range-picker) button { min-height: var(--v2-tap); padding: 0 var(--v2-3); border: 1px solid transparent; border-radius: 999px;
  background: none; box-shadow: none; color: var(--lm-matte-2); font-size: .9375rem; }
.v2.v2-intel :is(.v2-intel-range, .attention-range-picker) button.is-on, .v2.v2-intel :is(.v2-intel-range, .attention-range-picker) button[aria-pressed="true"] { border-color: var(--lm-seam-strong); color: var(--lm-matte); font-weight: 600; }
.v2.v2-intel.v2-studio :is(.v2-intel-range, .attention-range-picker) { margin: var(--v2-5) 0 0; }
body:not(.page-today) .v2.v2-intel .page-header .page-header-copy > p { margin: var(--v2-4) 0 0; max-width: 68ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.45; color: var(--lm-matte); }
.v2.v2-intel .v2-studio-evidence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--v2-3) var(--v2-5); margin: var(--v2-4) 0 0;
  padding: 0; border: 0; background: none; box-shadow: none; }
.v2.v2-intel .v2-studio-evidence > div { padding: 0; border: 0; background: none; }
.v2-studio-evidence dt { color: var(--lm-matte-2); font-size: var(--v2-meta); font-weight: 600; }
.v2-studio-evidence dd { margin: var(--v2-1) 0 0; }
.v2.v2-intel.v2-studio .studio-block { margin: 0; padding-left: 0; padding-right: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.v2.v2-intel.v2-studio .studio-block::before, .v2.v2-intel.v2-studio .studio-block::after { content: none; }
.v2.v2-intel.v2-studio .studio-breakdown > .v2-section-head { align-items: center; }
.v2.v2-intel.v2-studio .studio-chart-proof { position: relative; padding: 0 0 0 var(--v2-4); border: 0; background: none; box-shadow: none; }
.v2.v2-intel.v2-studio .studio-chart-proof::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; background: var(--lm-key); }
.v2.v2-intel .v2-intel-table thead th { position: static; background: none; backdrop-filter: none; }
/* Phones pin the first column with a painted cell; these tables are short enough not to. */
body .v2.v2-intel table.v2-intel-table :is(th, td):first-child { position: static; background: none; box-shadow: none; }
.v2.v2-intel.v2-studio #studio-calendar .studio-chart-proof { background: none; }
@media (max-width: 640px) {
  .v2.v2-intel .v2-studio-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .v2.v2-intel .v2-intel-logic > div { grid-template-columns: minmax(0, 1fr); gap: var(--v2-1); }
  .v2.v2-intel .v2-intel-logic.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2.v2-intel .v2-intel-two { grid-template-columns: minmax(0, 1fr); }
  .v2.v2-intel .v2-intel-steps { gap: 0 var(--v2-4); }
  .v2.v2-intel .v2-intel-meta :is(.v2-intel-link, .hypothesis-source-link) { margin-left: 0; flex-basis: 100%; }
  .v2.v2-intel .v2-intel-meta > :is(.v2-intel-link, .hypothesis-source-link)::before { content: none; }
}

/* Late overrides: old layers align some summaries and stack the studio range on phones. */
.v2.v2-intel :is(.v2-fold, .hypothesis-watch-queue) > summary { justify-content: flex-start; }
.v2.v2-intel.v2-studio .studio-rangebar { display: flex; flex-wrap: wrap; grid-template-columns: none; }
.v2.v2-intel.v2-studio .studio-rangebar button { width: auto; flex: none; }

/* Fix pass 2 ------------------------------------------------------------------- */
/* Tables: the family wrapper is the only scroller. The enhancer's viewport keeps no nudge
   (its -4px phone margin clipped every row's first letter) and no second scrollbar. */
.v2.v2-intel .v2-intel-table-wrap > .lumen-table-viewport { margin: 0; padding: 0; overflow: visible; scrollbar-gutter: auto; }
/* Header and row text start on the same line: the sort control carries no inset of its own. */
.v2.v2-intel .v2-intel-table thead th { padding-top: 0; padding-bottom: 0; vertical-align: bottom; }
.v2.v2-intel .v2-intel-table [data-tanstack-sort] { display: inline-flex; position: relative; width: auto; min-height: 44px; padding: 0; margin: 0;
  border: 0; background: none; box-shadow: none; color: inherit; font: inherit; font-size: var(--v2-meta); font-weight: 600; letter-spacing: 0; }
.v2.v2-intel .v2-intel-table [data-tanstack-sort]:is(:hover, [data-direction="asc"], [data-direction="desc"]) { background: none; color: var(--lm-matte); }
/* The sort arrow sits outside the label so a right-aligned heading still lines up with its numbers;
   it shows only on hover, focus, or once a column is sorted. */
.v2.v2-intel .v2-intel-table [data-tanstack-sort] i { position: absolute; top: 50%; left: calc(100% + 4px); width: 12px; height: 12px; margin-top: -6px;
  color: var(--lm-matte-3); filter: none; opacity: 0; }
.v2.v2-intel .v2-intel-table th.num [data-tanstack-sort] i, .v2.v2-intel .v2-intel-table th[data-column-kind="numeric"] [data-tanstack-sort] i { left: auto; right: calc(100% + 4px); }
.v2.v2-intel .v2-intel-table [data-tanstack-sort]:is(:hover, :focus-visible, [data-direction="asc"], [data-direction="desc"]) i { opacity: 1; }
/* Row text is body text. clarity.css forces every th in main to micro size with !important. */
body .v2.v2-intel .v2-intel-table tbody th, body .v2.v2-intel .v2-intel-table tbody th * { font-size: var(--v2-text) !important; }
.v2.v2-intel .v2-intel-table tbody tr, .v2.v2-intel .v2-intel-table tbody tr:is(:hover, :focus-within) { background: none; box-shadow: none; }
/* Short tables need no tool band; long ones keep it, unpainted. */
.v2.v2-intel .lumen-table-toolbar { position: static; min-width: 0; padding: 0 0 var(--v2-3); border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.v2.v2-intel .lumen-table-viewport:not(:has(tbody tr:nth-child(9))) > .lumen-table-toolbar { display: none; }
.v2.v2-intel .lumen-table-caption, .v2.v2-intel .v2-intel-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .v2.v2-intel .v2-intel-table tbody th { min-width: 13rem; }
}

/* Charts: the plot is not a panel. Unpainted, so its own title never sits on a painted edge. */
.v2.v2-intel .lumen-insight-plot { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
.v2.v2-intel .lumen-insight-plot::before, .v2.v2-intel .lumen-insight-plot::after { content: none; }

/* Attention Studio: findings and mode keys are rows, not tiles; each number shows once. */
.v2.v2-intel.v2-studio .studio-findings-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 var(--v2-6); }
.v2.v2-intel.v2-studio .studio-finding { display: grid; gap: var(--v2-1); padding: var(--v2-3) 0; border: 0; border-top: var(--v2-hair); border-radius: 0;
  background: none; box-shadow: none; color: inherit; text-decoration: none; }
.v2.v2-intel.v2-studio .studio-finding:hover { background: none; }
.v2.v2-intel.v2-studio .studio-finding:hover b { text-decoration: underline; text-underline-offset: 3px; }
.v2.v2-intel.v2-studio .studio-finding b { font-size: 1rem; color: var(--lm-matte); }
.v2.v2-intel.v2-studio .studio-finding small { font-size: var(--v2-text); color: var(--lm-matte-2); }
/* The mode keys stay as the picker and legend; their hours live once, in the small multiples. */
.v2.v2-intel.v2-studio .studio-legend-modes { display: flex; flex-wrap: wrap; gap: var(--v2-1) var(--v2-4); margin: var(--v2-4) 0; }
.v2.v2-intel.v2-studio .studio-mode-chip { display: inline-flex; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.v2.v2-intel.v2-studio .studio-mode-chip:is(:hover, :focus-visible, .is-focused) { background: none; }
.v2.v2-intel.v2-studio .studio-mode-chip:is(:hover, :focus-visible, .is-focused) .studio-mode-name { text-decoration: underline; text-underline-offset: 3px; }
.v2.v2-intel.v2-studio .studio-mode-chip :is(strong, small) { display: none; }
.v2.v2-intel.v2-studio .studio-mode-chip .studio-mode-name { font-size: var(--v2-text); }
/* "vs prior week" compares a partial week with a full one, so every mode read as a drop. */
.v2.v2-intel.v2-studio .studio-standing > div:nth-child(3) small, .v2.v2-intel.v2-studio .studio-spark-meta > span + span { display: none; }
.v2.v2-intel.v2-studio .studio-standing { border-block: 0; margin-bottom: 0; }
.v2.v2-intel.v2-studio .studio-standing > div:first-child { padding-left: 0; }
.v2.v2-intel.v2-studio .studio-sparks { gap: 0 var(--v2-6); }
.v2.v2-intel.v2-studio .studio-spark { min-height: 0; padding: var(--v2-3) 0; border: 0; border-top: var(--v2-hair); border-radius: 0; background: none; box-shadow: none; }
.v2.v2-intel.v2-studio .studio-spark:is(:hover, :focus-visible, .is-focused) { background: none; }
/* A proof line that only repeats a finding above is dropped. */
.v2.v2-intel.v2-studio:has(.studio-finding[href="#studio-calendar"]) [data-calendar-proof],
.v2.v2-intel.v2-studio:has(.studio-finding[href="#studio-matrix"]) [data-matrix-proof] { display: none; }
.v2.v2-intel.v2-studio [data-apps-proof] span { display: none; }
.v2.v2-intel.v2-studio .studio-chart-proof { min-height: 0; }
/* The application ranking draws each hours label one row low (attention-rankings.js), so the
   numbers pair with the wrong app. Show its own data table instead until that is fixed. */
.v2.v2-intel.v2-studio .studio-plot-bars { display: none; }
.v2.v2-intel.v2-studio .studio-plot-bars + table.lumen-chart-data { position: static !important; display: table !important; contain: none !important;
  width: 100% !important; max-width: 60rem !important; height: auto !important; margin: var(--v2-3) 0 0 !important; overflow: visible !important;
  clip: auto !important; clip-path: none !important; white-space: normal !important; border-collapse: collapse; }
.v2-studio .studio-plot-bars + table.lumen-chart-data caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v2-studio .studio-plot-bars + table.lumen-chart-data :is(th, td) { padding: var(--v2-2) var(--v2-3) var(--v2-2) 0; border-bottom: var(--v2-hair);
  text-align: left; font-size: var(--v2-text); font-feature-settings: "tnum" 1; }
body .v2-studio .studio-plot-bars + table.lumen-chart-data th { color: var(--lm-matte-2); font-size: var(--v2-meta) !important; font-weight: 600; }
.v2-studio .studio-plot-bars + table.lumen-chart-data :is(th, td):is(:nth-child(1), :nth-child(n+3)) { text-align: right; white-space: nowrap; }
.v2-studio .studio-plot-bars + table.lumen-chart-data :is(th, td):first-child { width: 2.5rem; color: var(--lm-matte-3); }
.v2-studio .studio-plot-bars + table.lumen-chart-data td:nth-child(2) { color: var(--lm-matte); overflow-wrap: anywhere; }
/* Table numbers are inline data: body face, tabular figures (the global .num rule swaps in the display numeral face). */
.v2.v2-intel .v2-intel-table .num { font-family: var(--font-body); font-weight: 400; }
/* The global "every button in main is a control chip" rule outranks any family selector; the keys and
   small multiples are buttons, so they need !important to stay unboxed. */
.v2.v2-intel.v2-studio :is(.studio-mode-chip, .studio-spark),
.v2.v2-intel.v2-studio :is(.studio-mode-chip, .studio-spark):is(:hover, :focus-visible, .is-focused) { border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; }
.v2.v2-intel.v2-studio .studio-spark { border-top: var(--v2-hair) !important; }
.v2.v2-intel.v2-studio .studio-spark:focus-visible, .v2.v2-intel.v2-studio .studio-mode-chip:focus-visible { outline: 2px solid var(--lm-focus); outline-offset: 2px; }
.v2-studio .studio-plot-bars + table.lumen-chart-data :is(thead, tr, th, td) { background: none !important; box-shadow: none !important; text-transform: none; }
@media (max-width: 640px) {
  /* On a phone the tool band wraps into fragments; the headings still sort. */
  .v2.v2-intel .lumen-table-toolbar { display: none; }
}
.v2.v2-intel.v2-studio .studio-spark { display: block; width: 100%; padding: var(--v2-3) 0 !important; text-align: left; }
.v2.v2-intel.v2-studio .studio-mode-chip { padding: 0 !important; }
.v2.v2-intel.v2-studio .studio-spark header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--v2-3); }
.v2.v2-intel.v2-studio .studio-spark-meta { justify-content: flex-start; text-align: left; }
@media (max-width: 640px) {
  /* The order already is the rank; dropping that column keeps all four facts on a phone. */
  .v2-studio .studio-plot-bars + table.lumen-chart-data :is(th, td):first-child { display: none; }
  .v2-studio .studio-plot-bars + table.lumen-chart-data :is(th, td) { padding-right: var(--v2-2); }
  /* Headers like "Active days" may wrap; unwrapped they pushed the table past a 320px screen. */
  .v2.v2-intel.v2-studio .studio-plot-bars + table.lumen-chart-data thead th { white-space: normal; }
}
