  /* Identidad Merci (00_logo 2025/ASSETS en Drive): azul #0030FF, negro, crema #EBF0DC, verde #86FE75 y rosa #F76F8D.
     Tipografías: Space Grotesk (texto y títulos) e IBM Plex Mono (etiquetas), ambas con licencia OFL. */
  @font-face { font-family: "Space Grotesk"; src: url("assets/SpaceGrotesk-VariableFont_wght.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
  @font-face { font-family: "IBM Plex Mono"; src: url("assets/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "IBM Plex Mono"; src: url("assets/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
  .cx {
    --mc-blue: #0030FF; --mc-black: #000000; --mc-cream: #EBF0DC; --mc-green: #86FE75; --mc-pink: #F76F8D; --mc-green-dk: #016445;
    --nt-lime: var(--mc-green);
    --cx-ca: #F76F8D; --cx-ca-text: #C2224F; --cx-mx: #0030FF; --cx-accent: #0030FF; --cx-soft: #E2E8CF; --cx-soft-2: #DCE4FF;
    --cx-line: #016445; --cx-zone-stroke: #016445;
    --cx-hero-bg: #0030FF; --cx-hero-fg: #EBF0DC; --cx-hero-eyebrow: #86FE75;
    --cx-font: "Space Grotesk", var(--font-anthropic-sans), system-ui, sans-serif; --cx-mono: "IBM Plex Mono", ui-monospace, monospace;
    --font-anthropic-sans: var(--cx-font); --font-anthropic-serif: var(--cx-font);
    display: flex; flex-direction: column; gap: var(--cds-gap-xl); font-family: var(--cx-font); color: var(--color-fg);
    background: var(--mc-cream); border-radius: var(--cds-radius); padding: var(--cds-pad-lg);
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cx { --cx-ca: #F76F8D; --cx-ca-text: #F76F8D; --cx-mx: #6E8BFF; --cx-accent: #86FE75; --cx-soft: #1C1C1C; --cx-soft-2: #0B1A4D; --cx-line: #86FE75; --cx-zone-stroke: #86FE75; --cx-hero-bg: #0030FF; background: #000000; } }
  :root[data-theme="dark"] .cx { --cx-ca: #F76F8D; --cx-ca-text: #F76F8D; --cx-mx: #6E8BFF; --cx-accent: #86FE75; --cx-soft: #1C1C1C; --cx-soft-2: #0B1A4D; --cx-line: #86FE75; --cx-zone-stroke: #86FE75; --cx-hero-bg: #0030FF; background: #000000; }
  .cx-logo { display: block; height: 44px; width: auto; align-self: flex-start; margin-bottom: var(--cds-gap-sm); }
  .cx-sig { display: flex; align-items: center; justify-content: space-between; gap: var(--cds-gap-md); font-family: var(--cx-mono); font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); border-top: 2px solid var(--cx-mx); padding-top: var(--cds-gap-sm); }
  .cx-sig b { color: var(--cx-mx); font-weight: 500; letter-spacing: .08em; }

  .cx h1 { font-family: var(--cx-font); font-weight: 700; letter-spacing: -.02em; font-size: var(--cds-font-size-title); margin: 0; text-wrap: balance; }
  .cx h2 { font-size: var(--cds-font-size-heading); font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
  .cx h3 { font-size: var(--cds-font-size-body); font-weight: var(--cds-font-weight-medium); margin: 0; }
  .cx p { margin: 0; max-width: 72ch; line-height: 1.5; }
  .cx-muted { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
  .cx-eyebrow { color: var(--cx-mx); font-family: var(--cx-mono); font-size: var(--cds-font-size-caption); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
  .cx-hero { background: var(--cx-hero-bg); color: var(--cx-hero-fg); border-radius: var(--cds-radius); padding: var(--cds-pad-xl); display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
  .cx-hero .cx-eyebrow { color: var(--cx-hero-eyebrow); }
  .cx-hero p { color: var(--cx-hero-fg); }
  .cx-hero b { color: var(--cx-hero-eyebrow); font-weight: var(--cds-font-weight-medium); }
  .cx-sec { display: flex; flex-direction: column; gap: var(--cds-gap-md); scroll-margin-top: 16px; }
  .cx-head { display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
  .cx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--cds-gap-md); }
  .cx-card { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); display: flex; flex-direction: column; gap: var(--cds-gap-xs); min-width: 0; }
  .cx-tile { background: var(--cx-soft); border-color: transparent; }
  .cx-tile-mx { background: var(--cx-soft-2); }
  .cx-big { font-family: var(--cx-font); font-weight: 700; letter-spacing: -.02em; font-size: var(--cds-font-size-title); font-variant-numeric: tabular-nums; }
  .cx-big-ca { color: var(--cx-ca-text); } .cx-big-mx { color: var(--cx-mx); }
  .cx-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--cds-gap-md); }
  .cx-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--cds-gap-md); }
  .cx-chart { position: relative; min-height: 180px; width: 100%; }
  .cx-chart svg { display: block; width: 100%; overflow: visible; }
  .cx-zone { fill: var(--mc-green); fill-opacity: .28; stroke: var(--cx-zone-stroke); stroke-width: 1.5; stroke-dasharray: 4 3; }
  .cx-chart text.cx-zone-label { fill: var(--cx-zone-stroke); font-weight: var(--cds-font-weight-medium); }
  .cx-chart line.cx-par-line { stroke: var(--cx-line); stroke-width: 1.2; stroke-opacity: .9; stroke-dasharray: 3 3; pointer-events: none; }
  .cx-chart circle.cx-ref { fill: none; stroke-width: 2.5; stroke-dasharray: 3 2; }
  .cx-chart text.cx-dot-label { fill: var(--color-fg); font-weight: var(--cds-font-weight-medium); }
  .cx-pair-ca { color: var(--cx-ca-text); } .cx-pair-mx { color: var(--cx-mx); font-weight: var(--cds-font-weight-medium); }
  .cx-chart text { fill: var(--cds-text-secondary); font-size: var(--cds-font-size-caption); font-family: var(--cx-font); }
  .cx-hit { cursor: pointer; }
  .cx-hit:hover rect.cx-bg, .cx-hit:focus rect.cx-bg { fill: var(--cx-soft); }
  .cx-hit.is-on rect.cx-bg { fill: var(--cx-soft-2); }
  rect.cx-bg { fill: transparent; }
  .cx-toggles { display: flex; gap: var(--cds-gap-sm); flex-wrap: wrap; align-items: center; }
  .cx-chip { font: inherit; font-size: var(--cds-font-size-caption); display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--color-border-line); background-color: var(--color-bg); color: var(--color-fg); cursor: pointer; }
  .cx-chip:hover { border-color: var(--cx-accent); }
  .cx-chip[aria-pressed="false"] { opacity: .45; }
  .cx-chip:focus-visible, .cx-hit:focus-visible, .cx-row:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }
  .cx-sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
  .cx-sw-ca { background: var(--cx-ca); } .cx-sw-mx { background: var(--cx-mx); }
  .cx-active { display: flex; gap: var(--cds-gap-sm); flex-wrap: wrap; align-items: center; min-height: 28px; }
  .cx-tag { font: inherit; font-size: var(--cds-font-size-caption); padding: 3px 10px; border-radius: 999px; border: none; background-color: var(--cx-accent); color: var(--color-bg); cursor: pointer; }
  .cx-tip { position: absolute; pointer-events: none; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); box-shadow: var(--cds-shadow-popover); border-radius: var(--cds-radius); padding: var(--cds-pad-sm); font-size: var(--cds-font-size-caption); max-width: 240px; z-index: 2; line-height: 1.4; }
  .cx-list { display: flex; flex-direction: column; gap: var(--cds-gap-xs); margin: 0; padding-left: 1.1em; line-height: 1.5; }
  .cx-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: var(--cds-font-size-caption); border: 1px solid var(--color-border-line); white-space: nowrap; }
  .cx-ok { color: var(--color-ok); border-color: var(--color-ok); } .cx-warn { color: var(--color-warn); border-color: var(--color-warn); } .cx-bad { color: var(--color-bad); border-color: var(--color-bad); }
  .cx-dest { background-color: var(--mc-green); color: #000000; border-color: var(--mc-green); font-weight: var(--cds-font-weight-medium); }
  .cx-filters { display: flex; flex-wrap: wrap; gap: var(--cds-gap-sm); align-items: center; }
  .cx-search { font: inherit; padding: 6px 10px; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); background-color: var(--color-bg); color: var(--color-fg); min-width: 0; flex: 1 1 180px; max-width: 280px; }
  .cx-tablewrap { overflow-x: auto; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); }
  .cx-table { border-collapse: collapse; width: 100%; font-size: var(--cds-font-size-caption); }
  .cx-table th, .cx-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-border-line); vertical-align: top; }
  .cx-table th { color: var(--color-fg-muted); font-weight: var(--cds-font-weight-medium); white-space: nowrap; background: var(--cx-soft); }
  .cx-table td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
  .cx-table th.num { text-align: right; }
  .cx-table a, .cx-detail a { color: var(--cx-accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; font-weight: var(--cds-font-weight-medium); }
  .cx-row { cursor: pointer; }
  .cx-row:hover td { background: var(--cx-soft); }
  .cx-row.is-sel td { background: var(--cx-soft-2); }
  .cx-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .cx-name { font-weight: var(--cds-font-weight-medium); }
  .cx-flag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
  .cx-scale { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
  .cx-scale i { width: 5px; height: 10px; border-radius: 1px; background: var(--color-border-line); display: inline-block; }
  .cx-scale i.on { background: var(--cx-accent); }
  .cx-match { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--cds-gap-md); }
  .cx-match ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .cx-match button { font: inherit; text-align: left; background: none; border: none; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; color: inherit; cursor: pointer; line-height: 1.4; width: calc(100% + 12px); }
  .cx-match button:hover, .cx-match button.is-sel { background: var(--cx-soft-2); }
  .cx-detail { border-left: 4px solid var(--cx-accent); }
  .cx-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--cds-gap-sm); }
  .cx-kv { display: flex; flex-direction: column; gap: 2px; }
  .cx-kv b { font-variant-numeric: tabular-nums; }
  .cx-btn { display: inline-block; padding: 3px 10px; border-radius: 999px; background-color: var(--cx-accent); color: var(--color-bg) !important; text-decoration: none !important; }
  .cx-collab, .cx-budget { display: flex; flex-direction: column; gap: var(--cds-gap-xs); background: var(--cx-soft); border-radius: var(--cds-radius); padding: var(--cds-pad-md); }
  .cx-collab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .cx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--cds-gap-sm); }
  .cx-kpi { border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-sm) var(--cds-pad-md); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cx-kpi-k { font-family: var(--cx-mono); font-size: var(--cds-font-size-caption); color: var(--cx-mx); text-transform: uppercase; letter-spacing: .05em; font-weight: var(--cds-font-weight-medium); }
  .cx-kpi-v { font-family: var(--cx-font); font-weight: 700; font-size: var(--cds-font-size-heading); font-variant-numeric: tabular-nums; }
  .cx-ficha-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--cds-gap-lg); }
  .cx-ficha-col { display: flex; flex-direction: column; gap: var(--cds-gap-md); min-width: 0; }
  .cx-fi { display: grid; grid-template-columns: minmax(0, 150px) 1fr 40px; gap: 8px; align-items: center; font-size: var(--cds-font-size-caption); }
  .cx-fi-bar { height: 8px; background: var(--cx-soft); border-radius: 4px; overflow: hidden; display: block; }
  .cx-fi-fill { display: block; height: 100%; }
  .cx-fi-v { text-align: right; font-variant-numeric: tabular-nums; }
  .cx-detail { gap: var(--cds-gap-md); }
  details.cx-notes summary { cursor: pointer; color: var(--color-fg-muted); }
  details.cx-notes { font-size: var(--cds-font-size-caption); }
  @media (prefers-reduced-motion: no-preference) { .cx-row td, .cx-match button, .cx-chip { transition: background-color var(--cds-dur-slow) var(--cds-ease-out), opacity var(--cds-dur-slow) var(--cds-ease-out); } }
