/* STATS_X_CARDS_V1 */
/* Вид «Карточки»: классы только с префиксом cmpx-cards- */
.cmpx-cards-intro { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: var(--muted2, #8b8b8b); max-width: 1150px; }
.cmpx-cards-intro b { color: var(--gold-400, #e5b566); font-weight: 600; }
.cmpx-cards-wait { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; font-size: 12px; background: rgba(212, 162, 75, .1); color: var(--gold-400, #e5b566); }
.cmpx-cards-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 10px; }
.cmpx-cards-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmpx-cards-chip { padding: 4px 11px; font-size: 12px; border-radius: 999px; cursor: pointer; color: var(--text2, #d5d5d5); background: rgba(255, 255, 255, .04); border: 1px solid var(--line, #2a2a2a); border-left: 3px solid var(--g, #888); }
.cmpx-cards-chip small { color: var(--muted2, #8b8b8b); margin-left: 3px; }
.cmpx-cards-chip:hover { border-color: rgba(212, 162, 75, .45); }
.cmpx-cards-chip.on { background: rgba(229, 181, 102, .16); border-color: rgba(229, 181, 102, .55); color: var(--gold-400, #e5b566); }
.cmpx-cards-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted2, #8b8b8b); }
.cmpx-cards-sel select { padding: 5px 8px; font-size: 12.5px; border-radius: 8px; color: var(--text2, #e6e6e6); background: rgba(3, 3, 3, .45); border: 1px solid var(--line, #2a2a2a); }
.cmpx-cards-sel option { background: #1a1813; color: #e6e6e6; }
.cmpx-cards-cnt { font-size: 12px; color: var(--muted2, #8b8b8b); }

.cmpx-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; align-items: start; }
.cmpx-cards-card { min-width: 0; border: 1px solid var(--line, #2a2a2a); border-top: 3px solid var(--g, #e5b566); border-radius: 12px; padding: 9px 12px 10px; background: rgba(255, 255, 255, .025); cursor: pointer; outline: none; }
.cmpx-cards-card:hover, .cmpx-cards-card:focus-visible { border-color: rgba(229, 181, 102, .55); border-top-color: var(--g, #e5b566); background: rgba(229, 181, 102, .05); }
.cmpx-cards-card > header { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; }
.cmpx-cards-nm { font-size: 15px; font-weight: 700; color: var(--text2, #f2f2f2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cmpx-cards-gp { font-size: 11px; padding: 1px 8px; border-radius: 999px; color: var(--g, #e5b566); border: 1px solid var(--g, #e5b566); white-space: nowrap; }
.cmpx-cards-go { margin-left: auto; font-size: 11.5px; color: var(--muted2, #8b8b8b); white-space: nowrap; }
.cmpx-cards-card:hover .cmpx-cards-go { color: var(--gold-400, #e5b566); }

.cmpx-cards-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.cmpx-cards-rad { min-width: 0; }
.cmpx-cards-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.cmpx-cards-ring { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.cmpx-cards-ring.med { stroke: rgba(229, 181, 102, .6); stroke-dasharray: 4 3; }
.cmpx-cards-ring.edge { stroke: rgba(255, 255, 255, .22); }
.cmpx-cards-norm { fill: rgba(103, 192, 78, .12); stroke: none; }
.cmpx-cards-spoke { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.cmpx-cards-spoke.off { stroke-dasharray: 2 3; stroke: rgba(255, 255, 255, .28); }
.cmpx-cards-lab { font-size: 10px; fill: var(--text2, #cfcfcf); }
.cmpx-cards-lab.off { fill: #777; }
.cmpx-cards-poly { fill: rgba(229, 181, 102, .22); stroke: #e5b566; stroke-width: 1.8; stroke-linejoin: round; pointer-events: none; }
.cmpx-cards-dot { fill: #e5b566; stroke: #14120e; stroke-width: 1; }
.cmpx-cards-none { font-size: 10.5px; fill: #777; }

.cmpx-cards-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin: 0; min-width: 0; }
.cmpx-cards-kv > div { padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); min-width: 0; }
.cmpx-cards-kv > div.wide { grid-column: 1 / -1; }
.cmpx-cards-kv > div.main { box-shadow: inset 0 0 0 1px rgba(229, 181, 102, .5); }
.cmpx-cards-kv dt { font-size: 10.5px; color: var(--muted2, #8b8b8b); margin: 0; }
.cmpx-cards-kv dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--text2, #f2f2f2); font-variant-numeric: tabular-nums; }
.cmpx-cards-kv dd.pos { color: #67c04e; }
.cmpx-cards-kv dd.neg { color: #e06b5f; }
.cmpx-cards-kv dd small { font-size: 11px; font-weight: 400; color: var(--muted2, #9a9a9a); margin-left: 3px; }
.cmpx-cards-wz { font-size: 11.5px; font-weight: 400; color: var(--muted2, #9a9a9a); margin-left: 6px; }
.cmpx-cards-wz.has { color: #e06b5f; font-weight: 600; }

.cmpx-cards-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; }
.cmpx-cards-col h6 { margin: 0 0 2px; font-size: 12px; font-weight: 700; }
.cmpx-cards-col h6 small { font-weight: 400; color: var(--muted2, #8b8b8b); margin-left: 6px; font-size: 10.5px; }
.cmpx-cards-col h6.p { color: #67c04e; }
.cmpx-cards-col h6.m { color: #e06b5f; }
.cmpx-cards-col ul { list-style: none; margin: 0; padding: 0; }
.cmpx-cards-li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 74px 82px 56px; gap: 6px; align-items: center; padding: 3px 4px 3px 7px; border-left: 3px solid var(--t, #888); border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 12px; }
.cmpx-cards-li small { display: block; font-size: 10px; font-weight: 400; color: var(--muted2, #8b8b8b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpx-cards-li::before { content: '↑'; font-weight: 800; }
.cmpx-cards-li.dn::before { content: '↓'; }
.cmpx-cards-li.plus::before { color: #67c04e; }
.cmpx-cards-li.minus::before { color: #e06b5f; }
.cmpx-cards-lt { min-width: 0; }
.cmpx-cards-lt b { display: block; font-weight: 600; color: var(--text2, #e6e6e6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpx-cards-lv { text-align: right; font-variant-numeric: tabular-nums; }
.cmpx-cards-lv b { color: var(--text2, #f2f2f2); }
.cmpx-cards-ls { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted2, #b0b0b0); }
.cmpx-cards-ls.big { color: var(--gold-400, #e5b566); }
.cmpx-cards-dr { justify-self: end; grid-column: 5; }
.cmpx-cards-dr { padding: 2px 7px; font-size: 11px; border-radius: 6px; cursor: pointer; color: var(--text2, #d5d5d5); background: rgba(255, 255, 255, .05); border: 1px solid var(--line, #2a2a2a); }
.cmpx-cards-dr:hover { border-color: rgba(212, 162, 75, .5); color: var(--gold-400, #e5b566); }
.cmpx-cards-none-li { font-size: 11.5px; color: var(--muted2, #8b8b8b); padding: 3px 4px 3px 7px; list-style: none; }
.cmpx-cards-foot { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted2, #8b8b8b); max-width: 1150px; }
@media (max-width: 560px) {
  .cmpx-cards-grid { grid-template-columns: minmax(0, 1fr); overflow-x: auto; }
}
