/* Native leaderboard typography, orange accents, sector icons and product logos. */
#main { padding: 28px 32px 48px; }
#app .main { overflow: auto !important; }
.guide-link, .fs-suggest { display: none !important; }
.cmp-eyebrow { display: block; font: 500 10px/1.5 var(--font-mono, monospace); letter-spacing: .7px; text-transform: uppercase; color: #78746e; }
.cmp-page-header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 22px; }
.cmp-page-heading { display: flex; align-items: center; gap: 16px; flex: 1 0 100%; min-width: 0; }
.cmp-page-heading h2 { font-size: clamp(25px, 2.7vw, 38px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.25; margin: 0; }
.cmp-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-left: 0; }
.cmp-controls button, .cmp-vendor-picker summary { font: inherit; cursor: pointer; }
.cmp-vendor-field { flex: 0 0 250px; }
.cmp-filter-field > .cmp-eyebrow { margin-bottom: 8px; }
.cmp-filter-field { min-width: 0; }
/* Above page content, below the native run scrim (5) and drawer (6). */
.cmp-vendor-picker { position: relative; z-index: 2; }
.cmp-vendor-picker > summary { height: 46px; box-sizing: border-box; display: flex; align-items: center; padding: 0 14px; background: white; border: 1px solid #d7d1ca; border-radius: 8px; list-style: none; box-shadow: 0 2px 3px #31201004; }
.cmp-vendor-picker summary::-webkit-details-marker { display: none; }
.cmp-vendor-picker[open] > summary { border-color: #d45c29; box-shadow: 0 0 0 3px #e8783020; }
.cmp-picker-value { display: flex; align-items: center; gap: 9px; width: 100%; font-size: 13px; }
.cmp-picker-value > span:last-child { margin-left: auto; }
.cmp-all-vendors { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.cmp-all-vendors svg { width: 17px; height: 17px; stroke: #8f5c37; fill: none; stroke-width: 1.4; }
.cmp-vendor-menu { position: absolute; top: calc(100% + 7px); left: 0; width: 330px; max-width: calc(100vw - 36px); padding: 10px; border: 1px solid #d7d1ca; border-radius: 8px; background: white; box-shadow: 0 16px 36px #24180920; }
.cmp-vendor-menu input { width: 100%; font: inherit; font-size: 13px; padding: 11px; border: 1px solid #d7d1ca; border-radius: 5px; background: #faf9f7; }
.cmp-vendor-options { max-height: 310px; overflow: auto; padding-top: 8px; }
.cmp-vendor-options button { display: flex; align-items: center; width: 100%; gap: 10px; text-align: left; padding: 10px; font-size: 13px; background: transparent; border: 0; border-radius: 4px; }
.cmp-vendor-options button:hover, .cmp-vendor-options button[aria-pressed=true] { background: #f7efe8; }
.cmp-vendor-options button[hidden] { display: none; }
.cmp-vendor-empty { padding: 10px; font-size: 12px; color: #78746e; }
.cmp-pairs { display: flex; height: 46px; box-sizing: border-box; padding: 3px; background: white; border: 1px solid #d7d1ca; border-radius: 8px; gap: 3px; }
.cmp-pairs button { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: transparent; border: 0; border-radius: 4px; font-size: 12px; white-space: nowrap; color: #67615b; }
.cmp-pairs button[aria-pressed=true] { background: #f7efe8; color: #8f4325; box-shadow: 0 1px 3px #30251b10; }
.cmp-pairs img { width: 16px; height: 16px; object-fit: contain; }
.cmp-more-filters { display: flex; gap: 8px; align-items: center; height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid #d7d1ca; border-radius: 8px; background: white; font-size: 13px !important; }
.cmp-more-filters svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cmp-page-header > .cmp-active-filters { flex-basis: 100%; margin: 0; }
.cmp-active-filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0 0 20px; }
.cmp-active-filters > button:last-child { border: 0; background: none; cursor: pointer; font-size: 11px; color: #934222; }
.cmp-filter-note { padding: 12px 15px; margin: 0 0 24px; border-left: 2px solid #d96532; font-size: 12px; line-height: 1.7; background: #f1ece5; color: #67615b; }
.cmp-sector-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.cmp-sector { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid #ddd6ce; border-radius: 9px; overflow: hidden; box-shadow: 0 3px 5px #30251903; }
.cmp-sector > header { padding: 10px 16px; border-bottom: 1px solid #e9e4de; background: #fdfcfb; }
.cmp-sector-link { display: flex; align-items: center; gap: 12px; color: #28221d; text-decoration: none; }
.cmp-sector-link h3 { font-size: 17px; letter-spacing: -.4px; font-weight: 600; margin: 0; }
.cmp-sector-link > span:last-child { margin-left: auto; color: #9f735a; }
.cmp-sector-icon { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e1d3c8; border-radius: 7px; background: #f8eee5; color: #9d4b27; }
.cmp-sector-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.cmp-leader-path { display: grid; grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr); align-items: start; gap: 12px; padding: 14px 16px; }
.cmp-leader-path > div { min-width: 0; }
.cmp-model-label, .cmp-column-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-lead-product { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 8px; }
.cmp-lead-product > strong { font-size: 29px; font-weight: 550; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cmp-leader-path > div:first-child > .cmp-lead-product > strong { color: #8a837b; }
.cmp-path-arrow { color: #baa99c; font-size: 21px; margin-top: 30px; }
.cmp-product { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
a.cmp-product:hover b { color: #b25028; text-decoration: underline; text-underline-offset: 3px; }
.cmp-product b { font-size: 12px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.cmp-product .tlogo, .cmp-picker-value .tlogo, .cmp-vendor-options .tlogo { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 5px; }
.cmp-product .tlogo img, .cmp-vendor-options .tlogo img { width: 23px; height: 23px; object-fit: contain; }
.cmp-product .tlogo svg { width: 19px; height: 19px; }
.cmp-evolution { padding: 12px 0 20px; }
.cmp-evolution-row { display: flex; align-items: center; gap: 10px; }
.cmp-evolution-row > .cmp-product { flex: 1; }
.cmp-percent-path { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; color: #81786d; }
.cmp-percent-path i { font-style: normal; color: #b0a397; }
.cmp-percent-path b { color: #30281f; font-weight: 550; }
.cmp-change { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 3px; padding: 5px 7px; border-radius: 4px; font: 500 11px/1.3 var(--font-mono,monospace); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-change.up { color: #23644c; background: #eaf3ed; }
.cmp-change.down { color: #a3483a; background: #f9eeea; }
.cmp-change.flat { color: #827c74; background: #f2f0ed; }
.cmp-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: auto; border-top: 1px solid #e8e2da; }
.cmp-shift { padding: 12px 14px; background: #fcfdfb; min-width: 0; }
.cmp-shift.negative { background: #fefbf9; border-left: 1px solid #e8e2da; }
.cmp-shift.positive > .cmp-eyebrow { color: #53705d; }
.cmp-shift.negative > .cmp-eyebrow { color: #966252; }
.cmp-flat-note { display: block; font-size: 12px; color: #989086; margin-top: 16px; }
.cmp-vendor-story { padding: 14px 16px; }
.cmp-vendor-story .cmp-evolution { padding: 10px 0; }
.cmp-vendor-story .cmp-percent-path { font-size: 22px; letter-spacing: -.7px; }
.cmp-vendor-context { padding-top: 14px; border-top: 1px solid #eee9e3; color: #84786c; font-size: 11px; }
.cmp-vendor-context > span { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 11px; }
.cmp-vendor-context .cmp-product b { font-size: 11px; }
.cmp-no-data { padding: 24px; color: #776d63; }
.cmp-no-data p { font-size: 12px; line-height: 1.7; }
.cmp-sector-summary { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid #ddd6ce; border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.cmp-sector-summary > .cmp-evolution { padding: 0 24px 20px; }
.cmp-sector-summary .cmp-leader-path { max-width: none; padding: 12px 16px; }
.cmp-sector-summary .cmp-shifts { margin: 0; border-top: 0; border-left: 1px solid #e8e2da; }
.cmp-sector-summary .cmp-shift-product { flex-wrap: nowrap; }
.cmp-sector-summary .cmp-shift-product .cmp-product { flex: 1; }
.cmp-sector-summary .cmp-shift-product .cmp-change { margin-left: 0; }
.cmp-insights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.cmp-insight { padding: 21px; border: 1px solid #e5dcd2; border-left: 2px solid #ce794d; background: #fbf8f4; border-radius: 5px; }
.cmp-insight h3 { font-size: 15px; line-height: 1.4; margin: 9px 0; }
.cmp-insight p, .cmp-evidence p { font-size: 12px; line-height: 1.8; color: #6e6358; margin: 0; }
.cmp-table-wrap { overflow: auto; }
.cmp-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.cmp-table th { padding: 8px 12px; border-bottom: 1px solid #eee5dd; color: #8e8174; font: 500 10px var(--font-mono,monospace); text-transform: uppercase; }
.cmp-table td { padding: 5px 12px; border-bottom: 1px solid #eee9e3; font-size: 12px; }
.cmp-table tr:last-child td { border: 0; }
.cmp-table th:first-child { width: 26%; }
.cmp-table th:nth-child(2) { width: 9%; }
.cmp-table th:nth-child(3), .cmp-table th:nth-child(4) { width: 26%; }
.cmp-value { font-variant-numeric: tabular-nums; margin-bottom: 7px; }
.cmp-evidence { padding: 24px; border-top: 1px solid #e9e2d9; }
.cmp-evidence-head h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.cmp-evidence-head h3 > span:not(.cmp-product) { color: #b1a08e; }
.cmp-evidence-head h3 .cmp-product b { font-size: 16px; }
.cmp-evidence-head > p { font-size: 11px; }
.cmp-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.cmp-evidence-grid p { margin: 8px 0 12px; }
.cmp-excluded { padding: 0 20px 20px; font-size: 12px; line-height: 1.8; }
.cmp-excluded summary { cursor: pointer; }
.cmp-excluded ul { padding-left: 20px; }
.cmp-excluded .cmp-evidence-grid p { white-space: pre-wrap; }
#main button:focus-visible, #main a:focus-visible, #main summary:focus-visible, #main input:focus-visible { outline: 2px solid #ce642d; outline-offset: 3px; }
.cmp-sector .cmp-evolution-row { flex-wrap: wrap; }
.cmp-sector .cmp-evolution-row > .cmp-product { flex-basis: 100%; }
@media (max-width: 1400px) {
  .cmp-page-header { display: block; }
  .cmp-page-heading { margin-bottom: 20px; }
  .cmp-controls { margin-left: 0; }
  .cmp-page-header > .cmp-active-filters { margin-top: 16px; }
}
@media (max-width: 1100px) {
  .cmp-sector-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmp-evolution-row { flex-wrap: wrap; } .cmp-evolution-row > .cmp-product { flex-basis: 100%; margin-bottom: 3px; }
  .cmp-leader-path { gap: 10px; padding: 14px 16px; } .cmp-shift { padding: 12px 14px; }
}
@media (max-width: 760px) {
  #main { padding: 22px 16px 32px; }
  .cmp-sector-grid, .cmp-insights, .cmp-evidence-grid { grid-template-columns: 1fr; }
  .cmp-page-heading h2 { font-size: 28px; letter-spacing: -.9px; }
  .cmp-controls { gap: 14px 10px; }
  .cmp-vendor-field { flex: 1 0 100%; }
  .cmp-vendor-menu { width: 100%; }
  .cmp-pair-picker { width: 100%; }
  .cmp-pairs button { padding: 10px; flex: 1; justify-content: center; font-size: 11px; }
  .cmp-sector > header { padding: 10px 16px; }
  .cmp-evolution-row > .cmp-product { flex-basis: 100%; }
  .cmp-vendor-story .cmp-percent-path { font-size: 23px; }
  .cmp-lead-product > strong { font-size: 26px; }
  .cmp-table th, .cmp-table td { padding: 12px 9px; }
  .cmp-evidence { padding: 18px; }
  .cmp-sector-summary .cmp-shift-product { flex-wrap: wrap; }
  .cmp-sector-summary .cmp-shift-product .cmp-product { flex-basis: 100%; }
}
/* Fixed content slots keep shared ranks and long product names aligned. */
.cmp-sector > header { height: 57px; box-sizing: border-box; display: flex; align-items: center; }
.cmp-sector-link { width: 100%; gap: 10px; min-width: 0; }
.cmp-sector-link h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-sector-link .cmp-header-change { margin-left: auto; flex-shrink: 0; font-size: 10px; color: #b25028; font-weight: 500; }
.cmp-sector-link .cmp-header-arrow { margin-left: auto; }
.cmp-header-change + .cmp-header-arrow { margin-left: 0; }
.cmp-leaders-list { height: 76px; overflow-y: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.cmp-lead-product { min-height: 36px; flex-shrink: 0; margin: 0; display: flex; align-items: flex-start; }
.cmp-lead-product > .cmp-product { width: 100%; }
.cmp-product { min-height: 36px; }
.cmp-product b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 18px; max-height: 36px; }
.cmp-lead-share { display: block; font-size: 29px; font-weight: 550; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cmp-leader-path > div:first-child .cmp-lead-share { color: #8a837b; }
.cmp-shift-names { height: 76px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; margin: 8px 0; }
.cmp-shift-names > * { flex-shrink: 0; }
.cmp-shift > .cmp-change { margin-left: 36px; }
.cmp-combination { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmp-combo-plus { font-size: 10px; line-height: 10px; color: #85786b; margin-left: 9px; }
.cmp-table .cmp-product b { max-height: none; -webkit-line-clamp: unset; }
.cmp-table td { font-variant-numeric: tabular-nums; vertical-align: middle; }
.cmp-table th { vertical-align: bottom; overflow-wrap: anywhere; }
.cmp-choice-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cmp-choice-column { min-width: 0; display: grid; grid-template-rows: subgrid; grid-row: 1 / span 17; }
.cmp-choice-column + .cmp-choice-column { border-left: 1px solid #e9e2d9; }
.cmp-choice-column > header { padding: 16px 20px; background: #f3f0ec; border-bottom: 1px solid #e2d9ce; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmp-choice-column.after > header { background: #f9eee4; border-bottom-color: #e8c9b1; }
.cmp-choice-column > header > span { font-size: 13px; font-weight: 600; }
.cmp-choice-column > header > b { font-size: 11px; font-weight: 500; color: #857366; }
.cmp-run-example { display: grid; grid-template-rows: subgrid; grid-row: span 4; padding: 20px; border-bottom: 1px solid #eee7df; min-width: 0; }
.cmp-run-example > .qlink { align-self: end; justify-self: start; margin-left: 0; }
.cmp-run-example:last-child { border-bottom: 0; }
.cmp-run-example h4 { margin: 0 0 8px; }
.cmp-run-meta { color: #85786b; font-size: 11px; }
.cmp-run-example p { font-size: 12px; line-height: 1.8; color: #6e6358; margin: 12px 0; }
@media(max-width:760px) {
  .cmp-choice-columns { grid-template-columns: 1fr; }
  .cmp-choice-column, .cmp-run-example { display: block; grid-row: auto; }
  .cmp-choice-column + .cmp-choice-column { border-left: 0; border-top: 1px solid #e9e2d9; }
  .cmp-sector-link .cmp-header-change { font-size: 9px; }
  .cmp-sector-grid .cmp-leader-path { grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr); gap: 8px; }
}
.cmp-leaders-list { height: var(--cmp-leaders-height, auto); min-height: 36px; }
.cmp-shift-names { height: var(--cmp-shifts-height, auto); min-height: 36px; }
.cmp-sector-link h3 { flex: 1; }
.cmp-sector-link .cmp-header-arrow { margin-left: 0; }
.cmp-combo-details { color: #9b6544; font-size: 10px; text-decoration: none; margin: 3px 0 0 36px; }
.cmp-combo-details:hover { text-decoration: underline; }

/* Keep the sector detail aligned with the native leaderboard rows. */
#main > .pgrid { padding: 0; }
#main > .cmp-cta { margin-top: 24px; }
.cmp-column-label { display: block; margin-bottom: 8px; }
.cmp-chart-axis { display: flex; justify-content: space-between; margin-right: 0; font-size: 9px; color: #978e85; }
.cmp-share.prow { margin: 0; padding: 8px 10px; min-height: 36px; box-sizing: border-box; }
.cmp-share .pct { font-size: 14px; font-weight: 700; }
.cmp-leader-path .cmp-eyebrow, .cmp-shift > .cmp-eyebrow { font-weight: 700; }
.cmp-table tbody tr:hover { background: #fcfaf7; }
.cmp-table .cmp-combination { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cmp-table .cmp-combo-plus { margin: 0; }
.cmp-table .cmp-combo-details { margin: 0; }
.cmp-sector-summary .cmp-leaders-list, .cmp-sector-summary .cmp-shift-names { margin: 4px 0; }
.cmp-sector-summary .cmp-lead-share { font-size: 26px; }
@media (max-width: 1000px) {
  .cmp-sector-summary { grid-template-columns: 1fr; }
  .cmp-sector-summary .cmp-shifts { border-left: 0; border-top: 1px solid #e8e2da; }
}
@media (max-width: 760px) {
  .cmp-table { min-width: 740px; }
  .cmp-table th, .cmp-table td { padding: 6px 9px; }
  .cmp-sector-summary .cmp-leader-path { grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 8px; }
}

/* Keep the numerator visible when a small cohort creates a tie or a 100% share. */
.cmp-share-count { display: block; margin-top: 4px; color: #78746e; font-size: 10px; line-height: 1.4; font-weight: 400; font-variant-numeric: tabular-nums; }
.cmp-share .pr { flex-direction: column; align-items: flex-end; gap: 0; }
.cmp-share .cmp-share-count { position: relative; z-index: 1; }
.cmp-coverage-note { margin: 0 0 18px; padding: 12px 16px; border-left: 2px solid #bd8649; background: #faf5eb; color: #675747; font-size: 12px; line-height: 1.6; }
.cmp-sector .cmp-coverage-note { margin: 0; font-size: 11px; }
.cmp-normalization-note { margin: 0 0 16px; padding: 10px 16px; color: #78746e; font-size: 11px; line-height: 1.5; }
.cmp-sector .cmp-normalization-note { margin: 0; }
.cmp-pairs button:focus-visible { outline: 2px solid #934222; outline-offset: 2px; }
@media (max-width: 760px) {
  .cmp-pair-picker { width: 100%; }
  .cmp-pair-picker .cmp-pairs { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-pair-picker .cmp-pairs button { white-space: normal; justify-content: center; }
}

.cmp-run-model { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: normal; line-height: 1.3; }
.cmp-run-model small { font-size: 9px; font-weight: 400; color: #78746e; }
