/* Design v2 (Naja 11-14, DESIGN-V2.md; mockups redesign/project/{Home,Decide,Pipeline,Outreach,Record}.dc.html).
   Dark only for now. The shell (ds/lpx-shell.js, v3/customer.js) carries data-v2="1" on .lpx-root; the v2 kit
   (ds/v2-kit.js, window.LPV2K) and chart kit (ds/v2-charts.js, window.LPV2C) draw with these classes only.
   Pages under v3/lpx/ define no v2 class of their own (test/v2-kit.test.js). */
:root {
  --v2-bg: #0A0C10; --v2-header: #0D1015; --v2-panel: #11151B; --v2-inner: #161B22; --v2-border: #1F242C; --v2-track: #1A1F26;
  --v2-grid: #262C35; --v2-field: #262C35; --v2-btn-line: #2B313B; --v2-target: #4B5563;
  --v2-ink: #E6E8EB; --v2-ink2: #C3C9D1; --v2-ink3: #B6BDC6; --v2-mute: #9AA3AE;
  --v2-fill: #7C3AED; --v2-fill2: #6D28D9; --v2-line: #A78BFA; --v2-link: #C4B5FD; --v2-link-hover: #DDD6FE; --v2-pill: #1B1530; --v2-pill-ink: #EDE9FE;
  --v2-sel: #151127; --v2-brief-line: #2E2350;
  --v2-ok: #34D399; --v2-warn: #FBBF24; --v2-bad: #F87171; --v2-info: #60A5FA;
  --v2-ok-wash: #0E2A22; --v2-warn-wash: #2A2310; --v2-bad-wash: #2A1414; --v2-info-wash: #0F1D33;
  --v2-s1: #7C3AED; --v2-s2: #34D399; --v2-s3: #FBBF24; --v2-s4: #60A5FA; --v2-s5: #F472B6; --v2-s6: #2DD4BF;
  --v2-q0: #15131F; --v2-q1: #221A3D; --v2-q2: #2E2350; --v2-q3: #3B2A70; --v2-q4: #5B3BB5; --v2-q5: #A78BFA;
  --v2-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --v2-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --v2-r: 16px; --v2-r-in: 12px; --v2-r-pill: 999px;
}
.lpx-root[data-v2] { background: var(--v2-bg); color: var(--v2-ink); font-family: var(--v2-font); font-size: 14px; }
.v2-a, .lpx-root[data-v2] a.v2-a { color: var(--v2-link); font-weight: 700; font-size: 13px; text-decoration: none; }
.v2-a:hover { color: var(--v2-link-hover); }
.v2-num { font-family: var(--v2-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- top bar (Cockpit nav) */
.v2-shell { min-height: 100vh; display: flex; flex-direction: column; }
.v2-top { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 28px; border-bottom: 1px solid var(--v2-border); background: var(--v2-header); }
.v2-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.v2-brand i { width: 28px; height: 28px; border-radius: 50%; background: var(--v2-fill); color: #fff; font: 800 13px/1 var(--v2-font); font-style: normal; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.v2-brand i img { width: 100%; height: 100%; object-fit: cover; }
.v2-brand b { font-weight: 700; font-size: 14px; }
.v2-brand span { font-size: 13px; color: var(--v2-mute); overflow: hidden; text-overflow: ellipsis; }
.v2-nav { display: flex; flex-wrap: wrap; gap: 2px; font-size: 13px; font-weight: 600; position: relative; }
.v2-nav > a, .v2-nav > button, .v2-nav .v2-rel > button { font: inherit; padding: 8px 11px; border-radius: 7px; color: var(--v2-ink2); background: transparent; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.v2-nav > a:hover, .v2-nav > button:hover, .v2-nav .v2-rel > button:hover { color: var(--v2-ink); background: var(--v2-panel); }
.v2-nav > a[aria-current="page"], .v2-nav [aria-current="page"] { background: var(--v2-pill); color: var(--v2-pill-ink); }
.v2-badge-n { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--v2-fill); color: #fff; font-size: 11px; font-weight: 700; }
.v2-top-r { flex: 1 1 220px; display: flex; justify-content: flex-end; gap: 10px; align-items: center; min-width: 0; }
.v2-ask { font: inherit; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--v2-field); border-radius: 8px; color: var(--v2-mute); background: transparent; font-size: 13px; min-width: 240px; cursor: pointer; text-align: left; }
.v2-ask:hover { border-color: var(--v2-btn-line); color: var(--v2-ink2); }
.v2-ask kbd { margin-left: auto; font: 500 11px/1 var(--v2-mono); }
.v2-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--v2-pill); color: var(--v2-link); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; flex: none; font-family: var(--v2-font); }
.v2-pop { position: absolute; top: calc(100% + 6px); right: 0; min-width: 240px; max-height: 70vh; overflow: auto; background: var(--v2-panel); border: 1px solid var(--v2-border); border-radius: 12px; padding: 8px; box-shadow: 0 18px 48px rgba(0, 0, 0, .5); z-index: 40; display: flex; flex-direction: column; gap: 2px; }
.v2-pop[hidden] { display: none; }
.v2-pop a, .v2-pop button { font: 600 13px/1.2 var(--v2-font); color: var(--v2-ink2); padding: 9px 10px; border-radius: 8px; text-align: left; background: transparent; border: 0; cursor: pointer; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.v2-pop a:hover, .v2-pop button:hover, .v2-pop a[aria-current="page"] { background: var(--v2-pill); color: var(--v2-pill-ink); }
.v2-pop .v2-pop-sec { font: 700 11px/1 var(--v2-font); letter-spacing: .08em; text-transform: uppercase; color: var(--v2-mute); padding: 10px 10px 4px; }
.v2-pop hr { border: 0; border-top: 1px solid var(--v2-border); margin: 6px 0; width: 100%; }
.v2-rel { position: relative; }
.v2-tabbar { display: none; }
/* Full real estate (Naja 11-14: "looks like an embed pane in the middle of the screen"): no centred max-width; the page
   fills the viewport with fluid gutters, and the grid below adds columns on wide screens instead of stretching tiles. */
.v2-main { flex: 1; width: 100%; max-width: none; margin: 0; padding: 28px clamp(16px, 2vw, 40px) 56px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.v2-main > .lpx-page { padding: 0; max-width: none; }

/* ---------------------------------------------------------------- page anatomy */
.v2-brief { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.v2-brief > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.v2-eyebrow { font-size: 12px; font-weight: 700; color: var(--v2-line); letter-spacing: .08em; text-transform: uppercase; }
.v2-brief h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.v2-brief.lg h1 { font-size: 32px; line-height: 1.22; max-width: 780px; }
.v2-brief p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--v2-ink3); max-width: 740px; }
.v2-brief .v2-acts { align-self: flex-end; }
.v2-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--v2-border); border: 1px solid var(--v2-border); border-radius: 14px; overflow: hidden; }
.v2-kpi { background: var(--v2-panel); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: inherit; }
a.v2-kpi:hover { background: var(--v2-inner); }
.v2-kpi .l { font-size: 12px; color: var(--v2-mute); }
.v2-kpi .v { font-family: var(--v2-mono); font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-kpi .d { font-size: 12px; color: var(--v2-mute); }
.v2-kpi .d.good { color: var(--v2-ok); } .v2-kpi .d.bad { color: var(--v2-warn); } .v2-kpi .d.worse { color: var(--v2-bad); }
.v2-kpi.nm .v { font-family: var(--v2-font); font-size: 15px; font-weight: 700; color: var(--v2-mute); padding: 4px 0; }
.v2-grid { --v2-cols: 12; display: grid; grid-template-columns: repeat(var(--v2-cols), minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--v2-gut, 16px); }
.v2-grid > .s3 { grid-column: span 3; } .v2-grid > .s4 { grid-column: span 4; } .v2-grid > .s5 { grid-column: span 5; } .v2-grid > .s6 { grid-column: span 6; }
.v2-grid > .s7 { grid-column: span 7; } .v2-grid > .s8 { grid-column: span 8; } .v2-grid > .s12 { grid-column: 1 / -1; }
/* BI tile sizes (LPV2K.StoryCard size): 1x1 a KPI tile, 2x1 a trend, 2x2 a breakdown, 3x1 a wide trend, full a table. */
.v2-grid > .t11 { grid-column: span 3; } .v2-grid > .t21 { grid-column: span 6; } .v2-grid > .t22 { grid-column: span 6; }
.v2-grid > .t31 { grid-column: span 9; } .v2-grid > .tfull { grid-column: 1 / -1; }
.v2-grid > .t22 > .v2-chart-box { flex: 1; }
/* Wide screens get more tiles per row, not wider tiles: from 1800 px a medium tile is a third of the row (a small one a
   sixth), from 2400 px a quarter (an eighth); tables and full tiles stay full width. */
@media (min-width: 1800px) {
  .v2-grid { --v2-cols: 18; }
  .v2-grid > .s5, .v2-grid > .s6, .v2-grid > .s7, .v2-grid > .s8, .v2-grid > .t21, .v2-grid > .t22 { grid-column: span 6; }
  .v2-grid > .s3, .v2-grid > .s4, .v2-grid > .t11 { grid-column: span 3; } .v2-grid > .t31 { grid-column: span 12; }
}
@media (min-width: 2400px) { .v2-grid { --v2-cols: 24; } }
.v2-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.v2-split > .v2-col-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.v2-split > .v2-col-side { flex: 1 1 380px; max-width: 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.v2-stack { display: flex; flex-direction: column; gap: 14px; }

.v2-card { background: var(--v2-panel); border: 1px solid var(--v2-border); border-radius: var(--v2-r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-sizing: border-box; }
.v2-card.flush { padding: 0; overflow: hidden; gap: 0; }
.v2-card.brief { border-color: var(--v2-brief-line); padding: 22px; gap: 12px; }
.v2-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.v2-card.flush > .v2-card-h { padding: 16px 20px; border-bottom: 1px solid var(--v2-border); align-items: center; }
.v2-card-h h2, .v2-card-h h3 { margin: 0; font-size: 15px; font-weight: 700; }
.v2-card-h .m { font-size: 12px; color: var(--v2-mute); }
.v2-read { background: var(--v2-inner); border-radius: var(--v2-r-in); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.v2-read.v2-read-side { flex: 2 1 320px; min-width: 0; padding: 16px 18px; gap: 12px; }
.v2-read p, p.v2-read-t { margin: 0; font-size: 14px; line-height: 1.55; color: var(--v2-ink2); }
.v2-read p b, p.v2-read-t b { color: var(--v2-ink); }
.v2-read.compact { background: none; padding: 0; } .v2-read.compact p { font-size: 13px; line-height: 1.5; color: var(--v2-ink3); }
.v2-story-row { display: flex; flex-wrap: wrap; gap: 24px; }
.v2-story-row > .v2-chart-box { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-chart-box { position: relative; min-width: 0; }
.v2-chart-box svg { display: block; max-width: 100%; overflow: visible; }
.v2-chart-box svg.v2-donut { margin: 0 auto; }
.v2-chart-box .v2-mark { outline: none; cursor: default; }
.v2-chart-box .v2-mark:focus-visible > :first-child, .v2-chart-box .v2-mark:hover > :first-child { filter: brightness(1.25); }
.v2-chart-box .v2-mark:focus-visible { outline: 2px solid var(--v2-line); }
.v2-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--v2-header); border: 1px solid var(--v2-btn-line); color: var(--v2-ink); border-radius: 8px; padding: 6px 9px; font: 600 12px/1.35 var(--v2-font); white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.v2-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--v2-mute); margin: 0; padding: 0; list-style: none; }
.v2-legend li { display: flex; gap: 6px; align-items: center; } .v2-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ---------------------------------------------------------------- buttons, pills, badges */
.v2-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-acts.col { flex-direction: column; }
.v2-btn { font: 600 13px/1.2 var(--v2-font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--v2-btn-line); background: transparent; color: var(--v2-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.v2-acts.col .v2-btn { text-align: left; }
.v2-btn.sm { padding: 7px 12px; font-size: 12px; } .v2-btn.md { padding: 9px 14px; }
.v2-btn.primary { background: var(--v2-fill); border-color: var(--v2-fill); color: #fff; font-weight: 700; }
.v2-btn:hover { border-color: var(--v2-line); } .v2-btn.primary:hover { background: #8B5CF6; }
.v2-btn[disabled] { opacity: .55; cursor: not-allowed; }
.v2-btn[data-done] { border-color: var(--v2-ok); color: var(--v2-ok); background: var(--v2-ok-wash); }
.v2-pills { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.v2-pills > a, .v2-pills > button, .lpx-root .v2-pills > a { font: inherit; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--v2-field); color: var(--v2-ink2); background: transparent; cursor: pointer; text-decoration: none; }
.v2-pills.tabs > a, .v2-pills.tabs > button { border-color: transparent; padding: 8px 12px; }
.v2-pills.sm { font-size: 12px; } .v2-pills.sm > a, .v2-pills.sm > button { padding: 6px 10px; }
.lpx-root .v2-pills > [aria-current="page"], .v2-pills > [aria-current="page"], .v2-pills > [aria-pressed="true"], .v2-pills > [aria-selected="true"] { background: var(--v2-pill); color: var(--v2-pill-ink); border-color: var(--v2-pill); }
.v2-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--v2-track); color: var(--v2-ink2); white-space: nowrap; }
.v2-tag.good { background: var(--v2-ok-wash); color: var(--v2-ok); } .v2-tag.warn { background: var(--v2-warn-wash); color: var(--v2-warn); }
.v2-tag.bad { background: var(--v2-bad-wash); color: var(--v2-bad); } .v2-tag.info { background: var(--v2-info-wash); color: var(--v2-info); } .v2-tag.accent { background: var(--v2-pill); color: var(--v2-link); }
.v2-tag.lg { padding: 7px 12px; font-size: 13px; font-weight: 700; }
.v2-sample { padding: 6px 10px; border-radius: 999px; background: var(--v2-warn-wash); color: var(--v2-warn); font-size: 12px; font-weight: 700; white-space: nowrap; }
.v2-tone-good { color: var(--v2-ok); } .v2-tone-warn { color: var(--v2-warn); } .v2-tone-bad { color: var(--v2-bad); } .v2-tone-info, .v2-tone-accent { color: var(--v2-line); } .v2-tone-mute { color: var(--v2-mute); }

/* ---------------------------------------------------------------- decisions */
.v2-dcard { background: var(--v2-panel); border: 1px solid var(--v2-border); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.v2-dcard-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.v2-dcard-h .e { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.v2-dcard-h .m { font-size: 13px; color: var(--v2-mute); }
.v2-dcard h2 { margin: 0; font-size: 18px; font-weight: 700; }
.v2-dcard.big h2 { font-size: 22px; font-weight: 800; }
.v2-dcard p.why { margin: 0; font-size: 14px; line-height: 1.55; color: var(--v2-ink3); }
.v2-dcard.big p.why { font-size: 15px; line-height: 1.6; color: var(--v2-ink2); }
.v2-opts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-opts legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.v2-opt { font: inherit; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--v2-btn-line); background: transparent; color: var(--v2-ink); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.v2-opt b { font-size: 14px; font-weight: 700; } .v2-opt span { font-size: 13px; color: var(--v2-ink3); } .v2-opt em { font-style: normal; font-size: 12px; color: var(--v2-line); font-weight: 700; }
.v2-opt.rec, .v2-opt[aria-pressed="true"] { border-color: var(--v2-fill); background: var(--v2-pill); }
.v2-opt:hover { border-color: var(--v2-line); }
.v2-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--v2-ink2); }
.v2-field input, .v2-field textarea { font: 500 15px/1.4 var(--v2-font); padding: 13px 16px; border-radius: 12px; border: 1px solid var(--v2-field); background: var(--v2-header); color: var(--v2-ink); }
.v2-field.sm input { font-size: 14px; padding: 12px 14px; border-radius: 10px; }
.v2-field input:focus { outline: 2px solid var(--v2-line); outline-offset: 1px; }
.v2-field .row { display: flex; gap: 8px; } .v2-field .row input { flex: 1; min-width: 0; }
.v2-queue { margin: 0; padding: 0; list-style: none; }
.v2-queue li > button, .v2-queue li > a { font: inherit; width: 100%; text-align: left; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--v2-track); border-left: 3px solid transparent; background: transparent; color: var(--v2-ink); display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.v2-queue li:last-child > * { border-bottom: 0; }
.v2-queue li > [aria-current="true"] { border-left-color: var(--v2-fill); background: var(--v2-sel); }
.v2-queue .e { font-size: 12px; font-weight: 700; text-transform: uppercase; } .v2-queue .t { font-size: 14px; font-weight: 700; } .v2-queue .m { font-size: 12px; color: var(--v2-mute); }
.v2-fine { margin: 0; font-size: 12px; color: var(--v2-mute); line-height: 1.5; }

/* ---------------------------------------------------------------- tables, lists, drawer, states */
.v2-tablewrap { overflow-x: auto; }
.v2-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.v2-table th { text-align: left; color: var(--v2-mute); font-weight: 600; padding: 11px 12px; white-space: nowrap; }
.v2-table th.num, .v2-table td.num { text-align: right; } .v2-table td.num { font-family: var(--v2-mono); }
.v2-table th:first-child, .v2-table td:first-child { padding-left: 20px; } .v2-table th:last-child, .v2-table td:last-child { padding-right: 20px; }
.v2-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.v2-table td { padding: 13px 12px; border-top: 1px solid var(--v2-track); vertical-align: middle; }
.v2-table tr[data-row] { cursor: pointer; } .v2-table tr[data-row]:hover td { background: var(--v2-inner); }
.v2-table tr[data-row]:focus-visible { outline: 2px solid var(--v2-line); outline-offset: -2px; }
.v2-table td .t { font-weight: 700; } .v2-table td .s { font-size: 12px; color: var(--v2-mute); }
.v2-table td.rec { color: var(--v2-ink2); }
.v2-list { margin: 0; padding: 0; list-style: none; }
.v2-list > li { padding: 14px 20px; border-bottom: 1px solid var(--v2-track); display: flex; flex-direction: column; gap: 4px; }
.v2-list > li:last-child { border-bottom: 0; }
.v2-list .r1 { display: flex; justify-content: space-between; gap: 8px; } .v2-list .t { font-weight: 700; font-size: 14px; } .v2-list .s { font-size: 13px; color: var(--v2-mute); }
.v2-ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--v2-ink2); }
.v2-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 13px; } .v2-dl dt { color: var(--v2-mute); } .v2-dl dd { margin: 0; }
.v2-tl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.v2-tl li { display: grid; grid-template-columns: 70px 18px 1fr; gap: 12px; padding-bottom: 16px; }
.v2-tl li:last-child { padding-bottom: 0; }
.v2-tl .d { font-size: 12px; color: var(--v2-mute); padding-top: 2px; }
.v2-tl .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--v2-target); margin-top: 3px; box-sizing: border-box; }
.v2-tl .dot.in { background: var(--v2-ok); } .v2-tl .dot.next { background: none; border: 2px solid var(--v2-line); }
.v2-tl .t { font-size: 14px; font-weight: 700; } .v2-tl .s { font-size: 13px; color: var(--v2-mute); }
.v2-scrim { position: fixed; inset: 0; background: rgba(5, 7, 10, .6); z-index: 60; }
.v2-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--v2-panel); border-left: 1px solid var(--v2-border); z-index: 61; display: flex; flex-direction: column; box-shadow: -24px 0 64px rgba(0, 0, 0, .5); }
.v2-drawer > header { display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--v2-border); }
.v2-drawer > header h2 { margin: 0; font-size: 18px; font-weight: 800; } .v2-drawer > header p { margin: 4px 0 0; font-size: 13px; color: var(--v2-mute); }
.v2-drawer > header button { margin-left: auto; }
.v2-drawer > .b { padding: 20px 22px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.v2-drawer > footer { padding: 14px 22px; border-top: 1px solid var(--v2-border); }
.v2-state { padding: 28px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-radius: 12px; background: var(--v2-inner); }
.v2-state b { font-size: 14px; } .v2-state span { font-size: 13px; color: var(--v2-mute); line-height: 1.5; }
.v2-state.bad b { color: var(--v2-bad); }
.v2-skel { background: linear-gradient(90deg, var(--v2-panel), var(--v2-inner), var(--v2-panel)); background-size: 200% 100%; animation: v2-sk 1.4s ease-in-out infinite; border-radius: 12px; min-height: 18px; }
@keyframes v2-sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .v2-skel { animation: none; } }
.v2-av { width: 56px; height: 56px; border-radius: 14px; background: var(--v2-pill); color: var(--v2-link); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.v2-rec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.v2-rec-h > div:first-child { display: flex; align-items: center; gap: 16px; min-width: 0; }
.v2-rec-h h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; } .v2-rec-h .s { font-size: 14px; color: var(--v2-mute); }
.v2-lead { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 600; }
.v2-skip { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--v2-line); background: var(--v2-panel); color: var(--v2-ink); font: inherit; font-weight: 700; }
.v2-skip:focus, .v2-skip:focus-visible { top: 8px; outline: 2px solid var(--v2-line); outline-offset: 2px; }
.lpx-page[tabindex="-1"]:focus { outline: none; }
.v2-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 1100px) {
  .v2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-grid > .s3, .v2-grid > .s4, .v2-grid > .t11 { grid-column: span 6; } .v2-grid > .s5, .v2-grid > .s6, .v2-grid > .s7, .v2-grid > .s8, .v2-grid > .t21, .v2-grid > .t22, .v2-grid > .t31 { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .v2-top { padding: 10px 16px; gap: 10px; flex-wrap: nowrap; }
  .v2-top .v2-nav { display: none; }
  .v2-brand > span:not(.cw-wsw):not(.v2-wsw) { display: none; }
  .v2-ask { min-width: 0; flex: 1; } .v2-ask span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v2-top-r { flex: 1 1 auto; }
  .v2-main { padding: 20px 16px 96px; gap: 18px; }
  .v2-brief h1, .v2-brief.lg h1 { font-size: 23px; } .v2-brief p { font-size: 15px; }
  .v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-kpi { padding: 12px; } .v2-kpi .v { font-size: 18px; }
  .v2-grid { grid-template-columns: minmax(0, 1fr); } .v2-grid > * { grid-column: 1 / -1 !important; }
  .v2-split > .v2-col-side { max-width: none; }
  .v2-card { padding: 16px; }
  .v2-story-row > .v2-chart-box { flex-basis: 100%; }
  .v2-table .hide-sm { display: none; }
  .v2-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--v2-header); border-top: 1px solid var(--v2-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .v2-tabbar > a, .v2-tabbar > button, .v2-tabbar .v2-rel > button { font: 600 11px/1.2 var(--v2-font); color: var(--v2-mute); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px; background: none; border: 0; text-decoration: none; position: relative; cursor: pointer; }
  .v2-tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
  .v2-tabbar [aria-current="page"] { color: var(--v2-pill-ink); background: var(--v2-pill); }
  .v2-tabbar .v2-badge-n { position: absolute; top: 0; right: 2px; margin: 0; padding: 0 5px; font-size: 10px; }
  .v2-tabbar .v2-pop { top: auto; bottom: calc(100% + 6px); right: 8px; left: 8px; }
  .v2-drawer { top: auto; left: 0; width: 100vw; max-height: 86vh; border-left: 0; border-top: 1px solid var(--v2-border); border-radius: 16px 16px 0 0; }
}
.v2-main.lpx-main { border-left: 0; }
.v2-filters { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.v2-filters > .lpx-filters { display: flex; gap: 8px; }
.v2-nav { flex: 0 1 auto; min-width: 0; }
.v2-filters:empty { display: none; }
.v2-brand .v2-wsw { margin-left: 6px; }
/* A v2 tab that shows an LPX page as a sub-view (lpx/v2-tabs.js) wraps it in [data-v2-sub]: the v2 pills replace the wrapped page's own tab row. */
[data-v2-sub] > div > .lpx-tabs { display: none; }

/* ---------------------------------------------------------------- article reader (lpx/article-reader.js, Naja 11-14)
   Long-form reading: body in the full ink (#E6E8EB on the #11151B panel, about 14:1; ≥ 7:1 required), a measure of
   about 70 characters (54ch: Manrope's average character is narrower than its "0"), a real type scale, and a light reading surface one tap away (#1A1A1A on #FBFAF7, about 17:1). */
.v2-art { --art-bg: var(--v2-panel); --art-ink: var(--v2-ink); --art-ink2: #D5DAE0; --art-mute: #AEB6C0; --art-line: var(--v2-border); --art-accent: var(--v2-link); --art-code: var(--v2-inner);
  background: var(--art-bg); color: var(--art-ink); border: 1px solid var(--art-line); border-radius: var(--v2-r); padding: 0 0 56px; overflow: hidden; display: flex; flex-direction: column; }
.v2-art.light { --art-bg: #FBFAF7; --art-ink: #1A1A1A; --art-ink2: #2B2B2B; --art-mute: #555B63; --art-line: #E4E1DA; --art-accent: #5B21B6; --art-code: #F1EEE8; }
.v2-art-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--art-line); }
.v2-art.light .v2-art-bar .v2-a { color: var(--art-accent); } .v2-art.light .v2-btn { color: var(--art-ink); border-color: #CFCAC0; }
.v2-art-cover { margin: 0; position: relative; height: clamp(160px, 24vw, 320px); }
.v2-art-cover > div, .v2-art-cover svg { width: 100%; height: 100%; display: block; }
.v2-art-cover figcaption { position: absolute; left: clamp(16px, 4vw, 40px); bottom: 14px; display: flex; gap: 8px; }
.v2-art-cover figcaption span { background: rgba(10, 12, 16, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.v2-art-head { max-width: 860px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 8px; box-sizing: content-box; display: flex; flex-direction: column; gap: 12px; }
.v2-art-head .v2-eyebrow { color: var(--art-accent); }
.v2-art-head h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--art-ink); }
.v2-art-lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--art-ink2); }
.v2-art-cols { display: flex; gap: 48px; justify-content: center; align-items: flex-start; padding: 16px clamp(16px, 4vw, 40px) 0; }
.v2-art-toc { position: sticky; top: 76px; flex: 0 0 240px; font-size: 13.5px; }
.v2-art-toc summary { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--art-mute); cursor: pointer; margin-bottom: 10px; }
.v2-art-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--art-line); }
.v2-art-toc li.sub a { padding-left: 24px; font-size: 13px; }
.v2-art .v2-art-toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--art-mute); text-decoration: none; line-height: 1.35; }
.v2-art .v2-art-toc a:hover { color: var(--art-ink); } .v2-art .v2-art-toc a[aria-current="true"] { color: var(--art-ink); border-left-color: var(--art-accent); font-weight: 700; }
.v2-art-body { flex: 0 1 54ch; max-width: 54ch; min-width: 0; font-size: 18px; line-height: 1.72; color: var(--art-ink); }
.v2-art-body > * { margin: 0 0 1.1em; }
.v2-art-body h2 { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 1.9em 0 .55em; scroll-margin-top: 90px; }
.v2-art-body h3 { font-size: 22px; line-height: 1.3; font-weight: 750; margin: 1.6em 0 .45em; scroll-margin-top: 90px; }
.v2-art-body h4 { font-size: 18px; font-weight: 750; margin: 1.4em 0 .4em; scroll-margin-top: 90px; }
.v2-art-body ul, .v2-art-body ol { padding-left: 1.4em; } .v2-art-body li { margin: .35em 0; padding-left: .2em; } .v2-art-body li::marker { color: var(--art-accent); }
.v2-art-body a { color: var(--art-accent); text-decoration: underline; text-underline-offset: 3px; }
.v2-art-body strong { font-weight: 750; color: var(--art-ink); }
.v2-art-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--art-accent); color: var(--art-ink2); font-style: italic; }
.v2-art-body code { font-family: var(--v2-mono); font-size: .88em; background: var(--art-code); padding: 2px 6px; border-radius: 6px; }
.v2-art-body pre { background: var(--art-code); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; } .v2-art-body pre code { background: none; padding: 0; }
.v2-art-body hr { border: 0; border-top: 1px solid var(--art-line); margin: 2em 0; }
.v2-art-table { overflow-x: auto; } .v2-art-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.v2-art-table th, .v2-art-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--art-line); vertical-align: top; } .v2-art-table th { font-weight: 750; color: var(--art-mute); }
.v2-art-fig { margin: 1.6em 0; } .v2-art-fig img { max-width: 100%; border-radius: 12px; display: block; }
.v2-art-fig figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--art-mute); }
.v2-art-fig .v2-chart-box { background: var(--v2-inner); border-radius: 12px; padding: 12px; }
.v2-art-pull { margin: 1.8em -2ch; padding: 18px 2ch; border-top: 2px solid var(--art-accent); border-bottom: 2px solid var(--art-accent); }
.v2-art-pull blockquote { margin: 0; padding: 0; border: 0; font-size: 26px; line-height: 1.35; font-weight: 750; font-style: normal; letter-spacing: -0.01em; color: var(--art-ink); }
@media (max-width: 1100px) { .v2-art-cols { flex-direction: column; gap: 8px; } .v2-art-toc { position: static; flex: none; width: 100%; max-width: 54ch; margin: 0 auto; } .v2-art-toc details:not([open]) summary { margin: 0; } }
@media (max-width: 760px) { .v2-art-body { font-size: 17px; } .v2-art-body h2 { font-size: 24px; } .v2-art-body h3 { font-size: 20px; } .v2-art-pull { margin: 1.6em 0; padding: 14px 0; } .v2-art-pull blockquote { font-size: 21px; } .v2-art-lede { font-size: 18px; } }

/* ---------------------------------------------------------------- BI dashboards (LPV2K.useBI / BIBar / TileMenu) */
/* The page's own filter bar replaces the shell's date and business dropdowns on a BI dashboard. */
.lpx-page:has([data-v2-bibar]) > .v2-filters > .lpx-filters { display: none; }
.v2-bibar { position: sticky; top: 57px; z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; margin: 0 -4px; background: color-mix(in srgb, var(--v2-bg) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--v2-border); border-radius: 14px; }
.v2-bi-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.v2-bi-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; flex: 1 1 auto; min-width: 0; }
.v2-bi-f, .v2-bibar .v2-field.sm { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: var(--v2-mute); letter-spacing: .02em; }
.v2-bi-f select, .v2-bibar select { font: 600 13px/1.2 var(--v2-font); color: var(--v2-ink); background: var(--v2-header); border: 1px solid var(--v2-field); border-radius: 8px; padding: 7px 28px 7px 10px; min-height: 34px; max-width: 220px; }
.v2-bi-f select:focus-visible { outline: 2px solid var(--v2-line); outline-offset: 1px; }
.v2-bi-r { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.v2-bi-open { display: none; }
.v2-bi-scope { margin: 0; font-size: 12px; color: var(--v2-mute); }
.v2-bi-sel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--v2-pill); color: var(--v2-pill-ink); font-size: 13px; }
.v2-bi-view { display: flex; align-items: stretch; gap: 2px; }
.v2-bi-view > button:first-child { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
.v2-bi-view small { font-size: 11px; color: var(--v2-mute); font-weight: 500; }
.v2-bi-x { flex: none; width: 34px; justify-content: center; }
.v2-bibar .v2-pop { min-width: 300px; }
/* The tile menu: a quiet ⋯ in every tile's header. */
.v2-tmenu { margin-left: auto; align-self: center; }
.v2-tbtn { font: 700 16px/1 var(--v2-font); color: var(--v2-mute); background: transparent; border: 1px solid transparent; border-radius: 8px; width: 32px; height: 28px; cursor: pointer; }
.v2-tbtn:hover, .v2-tbtn[aria-expanded="true"] { color: var(--v2-ink); border-color: var(--v2-btn-line); background: var(--v2-inner); }
.v2-tbtn:focus-visible { outline: 2px solid var(--v2-line); }
.v2-card-h .v2-tmenu + * { margin-left: 0; }
/* Cross-highlight: the picked label stays lit on every tile; the rest dim. */
.v2-chart-box[data-pickable] .v2-mark { cursor: pointer; }
.v2-chart-box .v2-mark[data-hl="off"] { opacity: .22; transition: opacity .15s; }
.v2-chart-box .v2-mark[data-hl="on"] > :first-child { stroke: var(--v2-ink); stroke-width: 1.5px; }
@media (prefers-reduced-motion: reduce) { .v2-chart-box .v2-mark[data-hl] { transition: none; } }
/* Sheets and modals render at the end of <body> (LPV2K portal): they carry the v2 type and ink themselves. */
.v2-portal { font-family: var(--v2-font); color: var(--v2-ink); font-size: 14px; }
.v2-portal .v2-a { color: var(--v2-link); }
/* Expand and data-table modal. */
.v2-modal { position: fixed; inset: 4vh 3vw; z-index: 62; background: var(--v2-panel); border: 1px solid var(--v2-border); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.v2-modal > header { display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid var(--v2-border); }
.v2-modal > header h2 { margin: 0; font-size: 18px; font-weight: 800; } .v2-modal > header p { margin: 4px 0 0; font-size: 13px; color: var(--v2-mute); }
.v2-modal > header button { margin-left: auto; }
.v2-modal > .b { padding: 20px 22px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.v2-mtable { max-height: 60vh; overflow: auto; border: 1px solid var(--v2-border); border-radius: 12px; }
.v2-mtable .v2-table th { position: sticky; top: 0; background: var(--v2-panel); }
/* TV mode: the page alone, larger, no chrome. */
:root[data-v2-tv] .v2-top, :root[data-v2-tv] .v2-tabbar, :root[data-v2-tv] .v2-filters, :root[data-v2-tv] .v2-bi-row, :root[data-v2-tv] .v2-tmenu, :root[data-v2-tv] [data-v2-actions] { display: none !important; }
:root[data-v2-tv] .v2-main { padding: 20px 28px; }
:root[data-v2-tv] .v2-bibar { position: static; }
:root[data-v2-tv] .v2-kpi .v { font-size: 30px; }
.v2-tv-exit { position: fixed; right: 16px; bottom: 16px; z-index: 70; background: var(--v2-header); }
/* A full-height sheet on a phone (the More menu, the filter bar): scrolls, clears the notch and the home indicator,
   44 px rows. */
.v2-sheet-scrim { position: fixed; inset: 0; z-index: 64; background: rgba(5, 7, 10, .6); }
.v2-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 10px; border-bottom: 1px solid var(--v2-border); margin-bottom: 6px; position: sticky; top: 0; background: var(--v2-panel); z-index: 1; }
.v2-sheet-h b { font-size: 17px; font-weight: 800; }
.v2-sheet-h button { min-width: 44px; min-height: 44px; justify-content: center; }
@media (max-width: 760px) {
  .v2-tabbar .v2-pop.v2-sheet { position: fixed; z-index: 65; left: 0; right: 0; top: max(env(safe-area-inset-top), 12px); bottom: 0; max-height: none; min-width: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0; padding: 12px max(12px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .v2-pop.v2-sheet a, .v2-pop.v2-sheet button { min-height: 44px; font-size: 15px; flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; padding: 10px 14px; color: var(--v2-ink2); }
  .v2-pop.v2-sheet .v2-sheet-h button { justify-content: center; padding: 0; }
  .v2-pop.v2-sheet .v2-pop-sec { padding-top: 14px; }
  .v2-top .v2-pop { max-height: calc(100vh - 80px); max-width: calc(100vw - 24px); }
  .v2-bibar { position: static; padding: 10px 12px; margin: 0; backdrop-filter: none; background: var(--v2-panel); }
  .v2-bi-open { display: inline-flex; }
  .v2-bi-ctl { display: none; }
  .v2-bi-ctl.open { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; top: max(env(safe-area-inset-top), 12px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--v2-panel); border-radius: 16px 16px 0 0; border-top: 1px solid var(--v2-border); padding: 12px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); gap: 14px; }
  .v2-bi-ctl.open .v2-bi-f select { max-width: none; width: 100%; min-height: 44px; font-size: 16px; }
  .v2-bi-ctl.open > .v2-btn { min-height: 44px; justify-content: center; }
  .v2-bi-r { margin-left: 0; }
  .v2-bi-r [data-bi-tv] { display: none; }
  .v2-bibar .v2-pop { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); min-width: 0; max-height: 70vh; }
  .v2-modal { inset: max(env(safe-area-inset-top), 8px) 0 0 0; border-radius: 16px 16px 0 0; }
}
/* The page story (LPV2K.Story): three lines tying the tiles together, each naming its tile. */
.v2-story-l { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.v2-story-l li { display: flex; flex-direction: column; gap: 8px; padding-left: 14px; border-left: 2px solid var(--v2-brief-line); }
.v2-story-l p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--v2-ink); }
.v2-story-l .v2-acts { margin-top: auto; }
[data-v2-story][data-flash] { outline: 2px solid var(--v2-line); outline-offset: 2px; transition: outline-color .3s; }
@media (max-width: 1100px) { .v2-story-l { grid-template-columns: minmax(0, 1fr); } }
