/* Launchpad v9 design system (P1, 11-07). One token set, dark (the app's default) and light ([data-theme="light"], the
   sidebar switch). Brand tokens (--v9-accent, --v9-accent-ink) are tenant-overridable: app.js sets them from tenant.json
   brand.accent on the shell. Chart palette: the dataviz reference instance, validated with validate_palette.js against
   the v9 card surfaces (light #ffffff, dark #15171c): categorical slots 1-3 pass every check in both modes; aqua is
   under 3:1 on light, so every chart that uses it carries direct labels and a table view.
   Scope: the Command Center (.cc) and the v9 shell chrome (sidebar, area bar, header, business switcher). */
:root {
  /* surfaces and elevation */
  --v9-page: #0e1014; --v9-card: #15171c; --v9-card2: #1b1e24; --v9-sunk: #101216; --v9-line: #262a32; --v9-line2: #323743;
  --v9-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  /* ink */
  --v9-ink: #f0efec; --v9-ink2: #c3c2b7; --v9-mute: #898781; --v9-grid: #262a32; --v9-axis: #383835; --v9-track: #23262d;
  /* brand (tenant-overridable) */
  --v9-accent: #3987e5; --v9-accent-ink: #ffffff; --v9-accent-wash: rgba(57, 135, 229, .16);
  /* chart palette: categorical slots, fixed order */
  --v9-s1: #3987e5; --v9-s2: #d95926; --v9-s3: #199e70; --v9-s4: #c98500; --v9-s5: #d55181; --v9-s6: #008300; --v9-s7: #9085e9; --v9-s8: #e66767;
  --v9-s1-wash: rgba(57, 135, 229, .22); --v9-deemph: #3a4150;
  /* status (reserved: never a series) */
  --v9-good: #0ca30c; --v9-warn: #fab219; --v9-serious: #ec835a; --v9-crit: #d03b3b; --v9-good-ink: #4cc94c;
  /* type scale (Instrument Sans throughout; proportional figures for big numbers) */
  --v9-f-hero: 600 52px/1 'Instrument Sans', system-ui, sans-serif; --v9-f-kpi: 600 30px/1.05 'Instrument Sans', system-ui, sans-serif;
  --v9-f-h: 650 15px/1.3 'Instrument Sans', system-ui, sans-serif; --v9-f-body: 400 13.5px/1.45 'Instrument Sans', system-ui, sans-serif;
  --v9-f-small: 500 12px/1.35 'Instrument Sans', system-ui, sans-serif; --v9-f-micro: 650 10.5px/1.2 'Instrument Sans', system-ui, sans-serif;
  /* spacing (4px base) and radius */
  --v9-1: 4px; --v9-2: 8px; --v9-3: 12px; --v9-4: 16px; --v9-5: 20px; --v9-6: 24px; --v9-8: 32px; --v9-r: 14px; --v9-r-sm: 8px;
}
:root[data-theme="light"] {
  --v9-page: #f4f5f7; --v9-card: #ffffff; --v9-card2: #f8f9fa; --v9-sunk: #eef0f3; --v9-line: #e3e5e9; --v9-line2: #d3d6dc;
  --v9-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .05);
  --v9-ink: #0b0b0b; --v9-ink2: #52514e; --v9-mute: #77756f; --v9-grid: #e8e8e3; --v9-axis: #c3c2b7; --v9-track: #eceef1;
  --v9-accent: #2a78d6; --v9-accent-wash: rgba(42, 120, 214, .12);
  --v9-s1: #2a78d6; --v9-s2: #eb6834; --v9-s3: #1baf7a; --v9-s4: #eda100; --v9-s5: #e87ba4; --v9-s6: #008300; --v9-s7: #6250d6; --v9-s8: #e34948;
  --v9-s1-wash: rgba(42, 120, 214, .16); --v9-deemph: #c9d3e0; --v9-good-ink: #006300;
}

/* ------------------------------------------------------------------ v9 shell chrome */
.shell.v9 { --sidebg: var(--v9-page); background: var(--v9-page); }
.shell.v9 .side { background: var(--v9-page); border-right-color: var(--v9-line); }
.shell.v9 .brand b { font: 650 18px/1 'Instrument Sans', system-ui, sans-serif; letter-spacing: -.01em; }
.shell.v9 .nav { border-radius: 10px; color: var(--v9-ink2); font-weight: 550; }
.shell.v9 .nav:hover { background: var(--v9-card2); color: var(--v9-ink); }
.shell.v9 .nav.on { background: var(--v9-accent-wash); color: var(--v9-ink); box-shadow: inset 3px 0 0 var(--v9-accent); }
.shell.v9 .nav.area.on { color: var(--v9-ink); }
.shell.v9 .main { background: var(--v9-page); }
.shell.v9 .top { background: color-mix(in srgb, var(--v9-page) 88%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--v9-line); }
.shell.v9 .areabar .abtn { border-radius: 999px; }
.shell.v9 .areabar .abtn.on { background: var(--v9-accent); color: var(--v9-accent-ink); border-color: transparent; }
.shell.v9 .pswitch { background: var(--v9-card); border: 1px solid var(--v9-line); border-radius: 999px; padding: 3px; gap: 2px; }
.shell.v9 .pswitch button { border-radius: 999px; border: 0; }
.shell.v9 .pswitch button.on { background: var(--v9-accent); color: var(--v9-accent-ink); }
.shell.v9 .pswitch button.on i { box-shadow: 0 0 0 2px var(--v9-accent-ink); }

/* ------------------------------------------------------------------ Command Center */
.cc { color: var(--v9-ink); font: var(--v9-f-body); font-feature-settings: normal; display: grid; gap: var(--v9-4); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cc * { box-sizing: border-box; }
.cc-head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--v9-4); flex-wrap: wrap; }
.cc-head h1 { margin: 0; font: 650 26px/1.1 'Instrument Sans', system-ui, sans-serif; letter-spacing: -.02em; }
.cc-head p { margin: 0; color: var(--v9-ink2); font: var(--v9-f-small); }
.cc-card { background: var(--v9-card); border: 1px solid var(--v9-line); border-radius: var(--v9-r); box-shadow: var(--v9-shadow); padding: var(--v9-5); min-width: 0; position: relative; }
.cc-card > h2 { margin: 0 0 var(--v9-4); font: var(--v9-f-h); display: flex; align-items: center; gap: var(--v9-2); flex-wrap: wrap; }
.cc-card > h2 .cc-sub { font: var(--v9-f-small); color: var(--v9-mute); font-weight: 500; }
.cc-card > h2 .cc-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.cc-span-12 { grid-column: span 12; } .cc-span-8 { grid-column: span 8; } .cc-span-7 { grid-column: span 7; } .cc-span-5 { grid-column: span 5; } .cc-span-4 { grid-column: span 4; }
@media (max-width: 1100px) { .cc-span-8, .cc-span-7, .cc-span-5, .cc-span-4 { grid-column: span 12; } }

/* details expander: the text behind every card */
.cc-more { margin-top: var(--v9-4); border-top: 1px solid var(--v9-line); padding-top: var(--v9-3); }
.cc-more > summary { cursor: pointer; color: var(--v9-ink2); font: var(--v9-f-small); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.cc-more > summary::-webkit-details-marker { display: none; }
.cc-more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--v9-card2); border: 1px solid var(--v9-line); font-weight: 700; }
.cc-more[open] > summary::before { content: '−'; }
.cc-more p, .cc-more li { color: var(--v9-ink2); font: var(--v9-f-small); }
.cc-table { width: 100%; border-collapse: collapse; font: var(--v9-f-small); font-variant-numeric: tabular-nums; margin-top: var(--v9-2); }
.cc-table th, .cc-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--v9-line); white-space: nowrap; }
.cc-table th:first-child, .cc-table td:first-child { text-align: left; }
.cc-table th { color: var(--v9-mute); font-weight: 600; }
.cc-scroll { overflow-x: auto; }

/* chips, status (icon + label, never color alone) */
.cc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: var(--v9-f-micro); letter-spacing: .02em; background: var(--v9-card2); border: 1px solid var(--v9-line); color: var(--v9-ink2); white-space: nowrap; }
.cc-st::before { content: ''; flex: none; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: var(--v9-mute); }
.cc-st[data-st="ahead"]::before, .cc-st[data-st="on pace"]::before { background: var(--v9-good); }
.cc-st[data-st="behind"]::before { background: var(--v9-crit); border-radius: 2px; transform: rotate(45deg); }
.cc-st[data-st="none"]::before { background: transparent; border: 1.5px solid var(--v9-mute); }
.cc-seg { display: inline-flex; background: var(--v9-sunk); border: 1px solid var(--v9-line); border-radius: 999px; padding: 2px; }
.cc-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font: var(--v9-f-micro); color: var(--v9-ink2); cursor: pointer; }
.cc-seg button[aria-pressed="true"] { background: var(--v9-card); color: var(--v9-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cc-link { color: var(--v9-accent); font: var(--v9-f-small); font-weight: 600; text-decoration: none; }
.cc-link:hover { text-decoration: underline; }

/* north star */
.cc-north { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v9-4); }
.cc-hero { display: flex; align-items: flex-end; gap: var(--v9-4); flex-wrap: wrap; }
.cc-hero .v { font: var(--v9-f-hero); letter-spacing: -.03em; }
.cc-hero .of { color: var(--v9-ink2); font: 500 15px/1.3 'Instrument Sans', system-ui, sans-serif; padding-bottom: 6px; }
.cc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v9-3); }
.cc-fact { background: var(--v9-sunk); border-radius: var(--v9-r-sm); padding: 10px 12px; }
.cc-fact b { display: block; font: 600 18px/1.2 'Instrument Sans', system-ui, sans-serif; }
.cc-fact span { color: var(--v9-mute); font: var(--v9-f-small); }
.cc-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v9-3); }
.cc-month { border: 1px solid var(--v9-line); border-radius: var(--v9-r-sm); padding: 10px 12px; }
.cc-month .l { display: flex; justify-content: space-between; font: var(--v9-f-small); color: var(--v9-ink2); }
.cc-month .l b { color: var(--v9-ink); }

/* KPI grid */
.cc-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--v9-3); }
.cc-kpis > .cc-kpi:first-child:nth-last-child(7), .cc-kpis > .cc-kpi-w:first-child:nth-last-child(7), .cc-kpis > .cc-kpis-h + .cc-kpi-w:nth-last-child(7) { grid-column: span 2; }
@media (max-width: 900px) { .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-kpi { background: var(--v9-card); border: 1px solid var(--v9-line); border-radius: var(--v9-r); box-shadow: var(--v9-shadow); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; position: relative; }
.cc-kpi:hover { border-color: var(--v9-line2); }
.cc-kpi .lab { font: var(--v9-f-small); color: var(--v9-ink2); display: flex; justify-content: space-between; gap: 6px; }
.cc-kpi .lab i { font-style: normal; color: var(--v9-mute); }
.cc-kpi .v { font: var(--v9-f-kpi); letter-spacing: -.02em; }
.cc-kpi .v.nm { font: 600 16px/1.6 'Instrument Sans', system-ui, sans-serif; color: var(--v9-mute); }
.cc-kpi .of { font: var(--v9-f-small); color: var(--v9-mute); min-height: 16px; }
.cc-kpi .cc-ft { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
/* Set targets (v9 P2): the tile's button sits over the link's footer, outside the link; the grid's Edit targets row */
.cc-kpi-w { position: relative; display: flex; min-width: 0; }
.cc-kpi-w > .cc-kpi { flex: 1; }
.cc-kpis-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font: var(--v9-f-small); color: var(--v9-mute); margin-bottom: calc(-1 * var(--v9-1)); }
.cc-kpis-h button { background: none; border: 0; padding: 4px 0; cursor: pointer; }
.cc-settgt { position: absolute; right: 12px; bottom: 9px; border: 1px solid var(--v9-line2); background: var(--v9-card2); color: var(--v9-accent); font: var(--v9-f-micro); padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.cc-settgt:hover { border-color: var(--v9-accent); }
.cc-settgt:focus-visible, .cc-tgt input:focus-visible, .cc-dialog .btn:focus-visible { outline: 2px solid var(--v9-accent); outline-offset: 2px; }
.cc-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 16px; overflow-y: auto; }
.cc-dialog { width: 100%; max-width: 560px; background: var(--v9-card); color: var(--v9-ink); border: 1px solid var(--v9-line); border-radius: var(--v9-r); box-shadow: var(--v9-shadow); padding: var(--v9-5); font: var(--v9-f-body); }
.cc-dialog > h2 { margin: 0 0 var(--v9-2); font: var(--v9-f-h); display: flex; align-items: center; }
.cc-x { margin-left: auto; background: none; border: 0; color: var(--v9-mute); font: 600 20px/1 'Instrument Sans', system-ui, sans-serif; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.cc-x:hover { color: var(--v9-ink); background: var(--v9-card2); }
.cc-warn { margin: var(--v9-3) 0 0; padding: 8px 10px; border-radius: var(--v9-r-sm); border: 1px solid var(--v9-warn); color: var(--v9-ink); font: var(--v9-f-small); }
.cc-tgt-rows { display: grid; gap: 2px; margin-top: var(--v9-3); }
.cc-tgt { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 4px var(--v9-3); align-items: center; padding: 10px 0; border-top: 1px solid var(--v9-line); }
.cc-tgt .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-tgt .t b { font: 600 13.5px/1.3 'Instrument Sans', system-ui, sans-serif; }
.cc-tgt .t span, .cc-tgt .m { font: var(--v9-f-small); color: var(--v9-mute); }
.cc-tgt .m { grid-column: 1 / -1; }
.cc-tgt input { width: 100%; box-sizing: border-box; background: var(--v9-sunk); color: var(--v9-ink); border: 1px solid var(--v9-line2); border-radius: var(--v9-r-sm); padding: 8px 10px; font: 600 15px/1.2 'Instrument Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.cc-tgt.bad input { border-color: var(--v9-crit); }
.cc-tgt.bad .m { color: var(--v9-crit); }
.cc-tgt-fixed { margin: var(--v9-2) 0 0; padding: var(--v9-3) 0 0 18px; border-top: 1px solid var(--v9-line); font: var(--v9-f-small); color: var(--v9-ink2); }
.cc-tgt-ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--v9-2); margin-top: var(--v9-4); padding-top: var(--v9-3); border-top: 1px solid var(--v9-line); }
.cc-tgt-state { margin-right: auto; font: var(--v9-f-small); color: var(--v9-mute); }
.cc-tgt-state[data-state="saved"] { color: var(--v9-good-ink); }
.cc-tgt-state[data-state="unsaved"] { color: var(--v9-crit); }
.cc-dialog .btn { border-color: var(--v9-line2); color: var(--v9-ink); background: transparent; }
.cc-dialog .btn.pri { background: var(--v9-accent); border-color: var(--v9-accent); color: var(--v9-accent-ink); }
@media (max-width: 640px) { .cc-modal { padding: 16px; } .cc-tgt { grid-template-columns: minmax(0, 1fr) 112px; } .cc-kpi-w.can > .cc-kpi { padding-bottom: 48px; } .cc-kpi-w.can > .cc-settgt { left: 16px; right: auto; bottom: 12px; } }

/* charts */
.cc-chart { position: relative; width: 100%; }
.cc-chart svg { display: block; overflow: visible; }
.cc-chart text { font: 500 11px 'Instrument Sans', system-ui, sans-serif; fill: var(--v9-mute); font-variant-numeric: tabular-nums; }
.cc-chart text.ink { fill: var(--v9-ink); font-weight: 600; }
.cc-chart text.ink2 { fill: var(--v9-ink2); }
.cc-hit { cursor: pointer; }
.cc-hit:focus { outline: none; }
.cc-hit:focus-visible rect.cc-ring, .cc-hit:hover rect.cc-ring { stroke: var(--v9-ink2); stroke-width: 1; }
.cc-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--v9-ink); color: var(--v9-card); font: var(--v9-f-small); padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* flow */
.cc-flow { display: grid; gap: 6px; }
.cc-stage { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: 10px; }
.cc-stage .n { font: 600 13px/1.2 'Instrument Sans', system-ui, sans-serif; }
.cc-stage .rt { font: var(--v9-f-small); color: var(--v9-mute); text-align: right; font-variant-numeric: tabular-nums; }
.cc-stage .v { text-align: right; font: 600 14px/1 'Instrument Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.cc-conv { grid-column: 2 / 4; font: var(--v9-f-small); color: var(--v9-mute); padding: 0 0 2px 2px; }
.cc-conv b { color: var(--v9-ink2); font-weight: 600; }

/* machine */
.cc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--v9-2); margin-bottom: var(--v9-4); }
.cc-stat { background: var(--v9-sunk); border-radius: var(--v9-r-sm); padding: 10px 12px; text-decoration: none; color: inherit; }
.cc-stat b { display: block; font: 600 22px/1.1 'Instrument Sans', system-ui, sans-serif; }
.cc-stat span { color: var(--v9-mute); font: var(--v9-f-small); }
.cc-legend { display: flex; gap: var(--v9-3); flex-wrap: wrap; font: var(--v9-f-small); color: var(--v9-ink2); margin: 6px 0 var(--v9-2); }
.cc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cc-sm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v9-4); }
.cc-sm h3 { margin: 0 0 4px; font: 600 12.5px/1.3 'Instrument Sans', system-ui, sans-serif; color: var(--v9-ink2); display: flex; justify-content: space-between; }
.cc-sm h3 b { color: var(--v9-ink); }
.cc-h3 { margin: var(--v9-5) 0 var(--v9-2); font: 600 13px/1.3 'Instrument Sans', system-ui, sans-serif; color: var(--v9-ink2); }

/* lists: opportunities, decisions, since */
.cc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.cc-row:hover, .cc-row:focus-visible { background: var(--v9-card2); outline: none; }
.cc-row .t { font: 600 13px/1.3 'Instrument Sans', system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-row .m { font: var(--v9-f-small); color: var(--v9-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-row .u { font: 600 14px/1 'Instrument Sans', system-ui, sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
.cc-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--v9-track); overflow: hidden; }
.cc-row .bar i { display: block; height: 100%; border-radius: 3px; background: var(--v9-s1); }
.cc-row .late { color: var(--v9-crit); font-weight: 650; }
.cc-sum { display: flex; gap: var(--v9-4); flex-wrap: wrap; margin-bottom: var(--v9-3); }
.cc-sum div b { display: block; font: 600 22px/1.1 'Instrument Sans', system-ui, sans-serif; }
.cc-sum div span { color: var(--v9-mute); font: var(--v9-f-small); }
.cc-since { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v9-2); }
.cc-since button { text-align: left; border: 1px solid var(--v9-line); background: var(--v9-sunk); border-radius: var(--v9-r-sm); padding: 10px 12px; cursor: pointer; color: inherit; }
.cc-since button[aria-expanded="true"] { border-color: var(--v9-accent); }
.cc-since button b { display: block; font: 600 24px/1.1 'Instrument Sans', system-ui, sans-serif; }
.cc-since button span { color: var(--v9-mute); font: var(--v9-f-small); display: flex; align-items: center; gap: 6px; }
.cc-since button span i { width: 8px; height: 8px; border-radius: 50%; background: var(--v9-mute); }
.cc-since button.hot span i { background: var(--v9-good); }
.cc-since button.bad span i { background: var(--v9-crit); border-radius: 2px; }
.cc-since-list { margin-top: var(--v9-3); }
.cc-note { color: var(--v9-mute); font: var(--v9-f-small); margin: var(--v9-2) 0 0; }

@media (max-width: 640px) {
  .cc { gap: var(--v9-3); }
  .cc-card { padding: var(--v9-4); }
  .cc-hero .v { font-size: 40px; }
  .cc-facts, .cc-months { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cc-fact b { font-size: 15px; } .cc-fact, .cc-month { padding: 8px; }
  .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v9-2); }
  .cc-kpi { padding: 12px; } .cc-kpi .v { font-size: 24px; }
  .cc-stage { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 6px; } .cc-stage .n { font-size: 12px; }
  .cc-sm { grid-template-columns: minmax(0, 1fr); gap: var(--v9-3); }
  .cc-since { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (forced-colors: active) { .cc-st::before { forced-color-adjust: none; } }

/* v9 follow-up: the sources fold (one dot, chips behind it) and a tighter phone header on the home */
.srcfold > summary { display: inline-flex; gap: 6px; align-items: center; list-style: none; }
.srcfold > summary::-webkit-details-marker { display: none; }
.srcfold > summary .ck-age { padding: 0; background: none; border: 0; }
@media (max-width: 640px) {
  .shell.v9 .page:has(> [data-cc="command"]) { padding-top: 10px; }
  .cc-head { display: none; }
  .shell.v9 .page:has(> [data-cc="command"]) > .asof .muted { display: none; }
}
/* Strategy → Launchpad asks (v3/asks-view.js, 11-07) */
.ak { margin-bottom: var(--v9-4); }
.ak-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--v9-3); flex-wrap: wrap; }
.ak-h h2 { margin: 0; } .ak-h span { font: var(--v9-f-small); color: var(--v9-ink2); } .ak-late { color: var(--v9-crit); }
.ak-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--v9-track); margin: var(--v9-3) 0; gap: 2px; }
.ak-bar i { display: block; height: 100%; } .ak-bar .s { background: var(--v9-good); } .ak-bar .p { background: var(--v9-warn); } .ak-bar .m { background: var(--v9-deemph); }
.ak-list > summary { cursor: pointer; font: var(--v9-f-small); color: var(--v9-accent); }
.ak-list ul { list-style: none; margin: var(--v9-2) 0 0; padding: 0; }
.ak-list li { border-top: 1px solid var(--v9-line); }
.ak-list li > details > summary { cursor: pointer; padding: 8px 0; display: grid; grid-template-columns: 20px auto 1fr; gap: 4px 8px; align-items: baseline; font: var(--v9-f-body); }
.ak-list li > details > summary b { white-space: nowrap; }
.ak-due { grid-column: 3; font: var(--v9-f-small); color: var(--v9-mute); } .ak-due.late { color: var(--v9-crit); }
.ak-st { font-weight: 700; } .ak-st.shipped { color: var(--v9-good-ink); } .ak-st.partial { color: var(--v9-warn); } .ak-st.missing { color: var(--v9-mute); }
:root[data-theme="light"] .ak-st.shipped { color: var(--v9-good); }
.ak-list dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0 0 10px 28px; font: var(--v9-f-small); color: var(--v9-ink2); }
.ak-list dt { color: var(--v9-mute); } .ak-list dd { margin: 0; } .ak-list a { color: var(--v9-accent); }

/* ---- v9 kit (A34, CPO review 11-07): one interaction token set, one empty state, one Badge, one Bar, one type
   scale. Every v9 page uses these from LPCMDView; test/v9-kit.test.js fails a page that styles its own. */
:root { --v9-dur: 120ms; --v9-ease: cubic-bezier(.2, .7, .3, 1); --v9-lift: translateY(-1px); --v9-ring: 0 0 0 2px var(--v9-accent); }
.shell.v9 :is(a, button, select, [tabindex]):focus-visible { outline: 2px solid var(--v9-accent); outline-offset: 2px; }
.shell.v9 :is(.cc-kpi, .br-kpi, .cc-row, .cc-stat, .cc-card, .dc-rowd, .v8-card, .card) { transition: transform var(--v9-dur) var(--v9-ease), border-color var(--v9-dur) var(--v9-ease), background-color var(--v9-dur) var(--v9-ease), box-shadow var(--v9-dur) var(--v9-ease); }
.shell.v9 :is(a.cc-kpi, a.br-kpi, a.cc-row, a.cc-stat, .dc-rowd, [data-metric][tabindex]):hover { transform: var(--v9-lift); border-color: var(--v9-accent); }
.shell.v9 :is(button, .chip, .cc-link, select) { transition: background-color var(--v9-dur) var(--v9-ease), color var(--v9-dur) var(--v9-ease), border-color var(--v9-dur) var(--v9-ease); }
@media (prefers-reduced-motion: reduce) { .shell.v9 * { transition: none !important; } .shell.v9 :hover { transform: none !important; } .v9-skel { animation: none !important; } }
.v9-empty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--v9-mute); font: var(--v9-f-small); padding: 10px 0; }
.v9-empty-i { width: 16px; height: 16px; flex: none; color: var(--v9-line2); }
.v9-empty .cc-link { margin-left: auto; }
.v9-badge { display: inline-flex; align-items: center; gap: 4px; font: var(--v9-f-micro); letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--v9-line2); color: var(--v9-ink2); white-space: nowrap; }
.v9-badge-good { color: var(--v9-good-ink); border-color: color-mix(in srgb, var(--v9-good) 50%, transparent); }
.v9-badge-warn { color: var(--v9-warn); border-color: color-mix(in srgb, var(--v9-warn) 50%, transparent); }
.v9-badge-bad { color: var(--v9-crit); border-color: color-mix(in srgb, var(--v9-crit) 50%, transparent); }
:root[data-theme="light"] .v9-badge-good { color: var(--v9-good); }
.v9-bar { display: block; height: 6px; border-radius: 3px; background: var(--v9-track); overflow: hidden; }
.v9-bar i { display: block; height: 100%; border-radius: 3px; background: var(--v9-s1); transition: width 240ms var(--v9-ease); }
.v9-bar.off { background: transparent; border-top: 1px dashed var(--v9-line2); height: 0; margin-top: 3px; }
.v9-skel { border-radius: var(--v9-r); background: linear-gradient(90deg, var(--v9-card) 0%, var(--v9-card2) 40%, var(--v9-card) 80%); background-size: 200% 100%; animation: v9-shimmer 1.2s linear infinite; }
@keyframes v9-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.v9-skel-grid { display: grid; gap: var(--v9-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); padding: var(--v9-6) 0; }
.v9-skel-grid .v9-skel { height: 120px; } .v9-skel-grid .v9-skel.wide { grid-column: 1 / -1; height: 260px; }
/* One type scale: the serif leftovers in the v9 shell read in Instrument Sans. */
.shell.v9 :is(.serif, .card h2, .card h3, .ps h2, .ps h3) { font-family: 'Instrument Sans', system-ui, sans-serif; letter-spacing: -.01em; }
/* Card footer cross-link (A33, 11-07): the link to the page that owns the card's number sits at the card's foot, so
   cards in a row end on the same line. */
.cc-card.cc-owned { display: flex; flex-direction: column; }
.cc-card.cc-owned > .cc-foot { margin-top: auto; padding-top: var(--v9-3); border-top: 1px solid var(--v9-line); display: flex; justify-content: flex-end; }
.cc-card.cc-owned > :not(h2):not(.cc-foot) + .cc-foot { margin-top: auto; }
.cc-foot .cc-link { font: var(--v9-f-small); }
