
.cm { --cm-heat: 37, 99, 235; --cm-up: var(--success, #059669); --cm-down: var(--danger, #EF4444); margin: 4px 0 24px; }
[data-theme="dark"] .cm { --cm-heat: 96, 165, 250; --cm-up: #34D399; --cm-down: #F87171; }
.cm-lead { font-size: .95rem; line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.cm-lead b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cm-sec { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 16px; margin-bottom: 16px; }
.cm-sec h2 { font-size: 1.08rem; line-height: 1.4; margin: 0 0 12px; display: flex; align-items: center; gap: 2px; color: var(--text-primary); }
.cm .pos { color: var(--cm-up); }
.cm .neg { color: var(--cm-down); }


.cm-tip { position: static; display: inline-block; font-weight: 400; }
.cm-tip summary { list-style: none; display: inline-grid; place-items: center; width: 36px; height: 36px; margin: -6px 0; cursor: pointer; color: var(--text-muted); border-radius: 50%; }
.cm-tip summary::-webkit-details-marker { display: none; }
.cm-tip summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.cm-tip p { position: absolute; z-index: 20; left: 14px; right: 14px; top: 48px; max-width: 420px; margin: 0; padding: 10px 12px; font-size: .82rem; line-height: 1.6; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08)); }


.cm-di-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.cm-di-num { font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.cm-di-word { font-weight: 700; font-size: 1rem; color: var(--text-secondary); }
.cm-di-num.up, .cm-di-word.up { color: var(--cm-up); }
.cm-di-num.down, .cm-di-word.down { color: var(--cm-down); }
.cm-di-sub { font-size: .82rem; color: var(--text-muted); }
.cm-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-hover); }
.cm-bar i { display: block; height: 100%; }
.cm-bar .hi { background: var(--cm-up); }
.cm-bar .same { background: var(--border); }
.cm-bar .lo { background: var(--cm-down); }
.cm-bar-lab { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; font-weight: 600; color: var(--text-secondary); margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.cm-di { display: block; width: 100%; height: auto; overflow: visible; }
.cm-di.m { display: none; }
.cm-di .g { stroke: var(--border); stroke-dasharray: 3 4; }
.cm-di .z { stroke: var(--text-muted); }
.cm-di .ax { fill: var(--text-muted); font-size: 11px; }
.cm-di .ln { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.cm-di .dot { fill: var(--primary); }
.cm-di .au { fill: var(--cm-up); fill-opacity: .16; }
.cm-di .ad { fill: var(--cm-down); fill-opacity: .16; }
.cm-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 14px; }
.cm-movers h3 { font-size: .9rem; margin: 0 0 4px; color: var(--text-primary); }
.cm-movers ul { list-style: none; margin: 0; padding: 0; }
.cm-movers li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: .86rem; }
.cm-mv-name { grid-column: 1 / 3; color: var(--text-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-mv-name:hover { color: var(--primary); }
.cm-mv-p { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cm-mv-p b { color: var(--text-primary); }
.cm-mv-pct { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }


.cm-heat { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cm-heat th { font-size: .78rem; font-weight: 600; color: var(--text-secondary); text-align: center; padding: 4px 2px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.cm-heat th[scope="row"] { text-align: left; color: var(--text-primary); font-size: .88rem; width: 128px; }
.cm-heat .n { display: block; font-weight: 400; color: var(--text-muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.cm-heat tr.all th[scope="row"] { font-weight: 700; }
.cm-heat tr.all td { box-shadow: inset 0 -2px 0 var(--border); }
.cm-hc { background: rgba(var(--cm-heat), var(--a, 0)); text-align: center; border-radius: 6px; height: 42px; font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--text-primary); }
.cm-hc.dk { color: #fff; }
[data-theme="dark"] .cm-hc.dk { color: #0B1220; }
.cm-hc.na { color: var(--text-muted); background: transparent; }
.cm-hc.oth { outline: 1px dashed var(--text-muted); outline-offset: -1px; }
.cm-hc .on { display: block; font-size: .68rem; line-height: 1.2; opacity: .9; }
.cm-hc.best { font-weight: 700; outline: 2px solid var(--primary); outline-offset: -2px; }
.cm-hlist { display: none; }
.cm-hl { padding: 10px 0; border-top: 1px solid var(--border); }
.cm-hl .g { font-weight: 700; font-size: .92rem; margin-bottom: 4px; color: var(--text-primary); }
.cm-hl .n { color: var(--text-muted); font-weight: 400; font-size: .76rem; margin-left: 6px; }
.cm-hl-row { display: grid; grid-template-columns: minmax(0, 8.5em) 1fr 3em; align-items: center; gap: 8px; font-size: .86rem; padding: 2px 0; color: var(--text-primary); }
.cm-hl-row .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-hl-row .b { height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; }
.cm-hl-row .b i { display: block; height: 100%; background: rgb(var(--cm-heat)); }
.cm-hl-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.cm-hl-row:nth-child(2) .s, .cm-hl-row:nth-child(2) .v { font-weight: 700; }


.cm-vlist { list-style: none; margin: 0; padding: 0; }
.cm-vr { display: grid; grid-template-columns: minmax(0, 2.2fr) 132px minmax(0, 2fr) 116px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.cm-vr-main { display: flex; gap: 10px; align-items: center; min-width: 0; color: var(--text-primary); text-decoration: none; }
.cm-vr-main:hover .nm { color: var(--primary); }
.cm-vr-main img, .cm-vr-main .noimg { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 8px; background: #fff; }
.cm-vr-main .nm { font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-vr-price { text-align: right; }
.cm-vr-price b { display: block; font-size: 1.08rem; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.cm-vr-price span { font-size: .78rem; color: var(--text-secondary); }
.cm-strip { position: relative; height: 18px; margin: 0 7px; }
.cm-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: var(--border); }
.cm-strip .sd { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text-muted); opacity: .55; }
.cm-strip .sd.top { top: 2px; width: 14px; height: 14px; margin-left: -7px; opacity: 1; background: var(--primary); box-shadow: 0 0 0 3px var(--bg-card); }
.cm-strip-lab { display: flex; justify-content: space-between; margin-top: 2px; font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cm-strip-lab .gap { color: var(--text-secondary); font-weight: 600; }
.cm-vr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.cm-vr-meta .rate { color: var(--text-secondary); }
.cm-vr-meta .tr { color: var(--text-muted); }
.cm-vr-meta .tr.pos { color: var(--cm-up); }
.cm-vr-meta .tr.neg { color: var(--cm-down); }
.cm-foot { font-size: .76rem; color: var(--text-muted); margin: 10px 0 0; }


.cm-outro { margin: 28px 0 8px; }

@media (max-width: 900px) {
  .cm-heat { display: none; }
  .cm-hlist { display: block; }
}
@media (max-width: 760px) {
  .cm-sec { padding: 14px 14px 12px; border-radius: 10px; }
  .cm-di.d { display: none; }
  .cm-di.m { display: block; }
  .cm-movers { grid-template-columns: 1fr; }
  .cm-vr { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .cm-vr-strip, .cm-vr-meta { grid-column: 1 / 3; }
  .cm-vr-meta { flex-direction: row; justify-content: flex-start; gap: 12px; }
}


.page-subtitle:empty { display: none; }
body:has(.ci) .filter-tabs-section:not(:has(*)) { display: none; }   
body:has(.ci) .product-grid-section { padding-top: 0; }
.ci { position: relative; margin: 0 0 28px; }
.ci-legend { display: flex; align-items: center; justify-content: flex-end; gap: 0; font-size: .8rem; color: var(--text-muted); margin: 0 0 8px; }
.ci-legend .cm-tip p { left: auto; right: 0; top: 30px; }
.ci-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ci-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 14px 10px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); text-decoration: none; transition: border-color .15s ease; }
.ci-card.nophoto { padding-left: 16px; }
.ci-card:hover { border-color: var(--primary); }
.ci-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.ci-ph { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: #f4f5f7; overflow: hidden; }
[data-theme="dark"] .ci-ph { background: #e6e9ef; }
.ci-ph img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.ci-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-name { font-weight: 700; font-size: 1rem; line-height: 1.35; }
.ci-dir { font-size: .78rem; font-weight: 600; line-height: 1.3; color: var(--text-muted); min-height: 1em; }
.ci-dir.up { color: var(--cm-up, var(--success, #059669)); }
.ci-dir.down { color: var(--cm-down, var(--danger, #EF4444)); }
.ci { --cm-up: var(--success, #059669); --cm-down: var(--danger, #EF4444); }
[data-theme="dark"] .ci { --cm-up: #34D399; --cm-down: #F87171; }
@media (max-width: 1100px) { .ci-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ci-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ci-card { gap: 8px; padding: 8px 10px 8px 8px; min-height: 64px; border-radius: 10px; }
  .ci-ph { width: 44px; height: 44px; border-radius: 8px; }
  .ci-ph img { width: 38px; height: 38px; }
  .ci-name { font-size: .84rem; letter-spacing: -.01em; }
  .ci-dir { font-size: .74rem; }
}
@media (max-width: 380px) {
  .ci-card { gap: 7px; padding-right: 8px; }
  .ci-ph { width: 40px; height: 40px; }
  .ci-ph img { width: 34px; height: 34px; }
  .ci-name { font-size: .8rem; }
}
