/* UGM_CAT_CHIP_INK:CTqInc01
   Fix: cat-depth / cat-mob force dark chip plates with !important, while base
   .ctn-item--chip.is-active still paints ink #1a1206 → selected label vanishes
   on dark desks. Keep gold rim + hierarchy markers; force light ink on active. */

.ctn-item--chip.is-active,
.ctn--top-tabs .ctn-item--chip.is-active,
.ctn-secondary-block .ctn-item--chip.is-active,
.ctn--top-tabs > .shop-nav-rail .ctn-item--chip.is-active,
.ctn--top-tabs > .ctn-tabs:not(.ctn-tabs--secondary) .ctn-item--chip.is-active,
.ctn-secondary-block[data-ctn-tier] .ctn-item--chip.is-active,
.ctn-item--platform.ctn-item--chip.is-active {
  color: #f6f7fb !important;
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.18), rgba(232, 184, 74, 0.04) 55%),
    color-mix(in srgb, var(--ctn-panel, #0c0e12) 92%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctn-accent, #f5a623) 78%, #fff) !important;
  box-shadow:
    inset 0 1px rgba(255, 230, 180, 0.12),
    0 0 0 1.5px color-mix(in srgb, var(--ctn-accent, #f5a623) 55%, transparent),
    0 10px 22px rgba(0, 0, 0, 0.35) !important;
}

.ctn-item--chip.is-active .ctn-item-label,
.ctn--top-tabs .ctn-item--chip.is-active .ctn-item-label,
.ctn-secondary-block .ctn-item--chip.is-active .ctn-item-label,
.ctn-secondary-block[data-ctn-tier] .ctn-item--chip.is-active .ctn-item-label,
.ctn-item--platform.ctn-item--chip.is-active .ctn-item-label {
  color: #f6f7fb !important;
  opacity: 1 !important;
}

.ctn-item--chip.is-active .ctn-item-icon,
.ctn-item--chip.is-active .ctn-item-flag,
.ctn--top-tabs .ctn-item--chip.is-active .ctn-item-icon,
.ctn-secondary-block .ctn-item--chip.is-active .ctn-item-icon {
  color: #ffe08a !important;
  filter: none !important;
  opacity: 1 !important;
}

.ctn-item--chip.is-active::after,
.ctn--top-tabs .ctn-item--chip.is-active::after,
.ctn-secondary-block .ctn-item--chip.is-active::after {
  color: #ffe08a !important;
}

/* Idle chips stay light on dark plates (belt-and-suspenders). */
.ctn-item--chip:not(.is-active),
.ctn-item--chip:not(.is-active) .ctn-item-label {
  color: var(--text, #f4f4f5);
}
