/* Compare bars and dimension sliders */

.cb-bar {
  display: flex;
  flex-direction: row;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2, var(--surface));
}

.cb-bar .cb-seg {
  flex: none;
}

.cb-bar .cb-seg.cb-hl {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  z-index: 1;
}

.cb-row {
  display: grid;
  grid-template-columns: 60px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.cb-row .cb-note {
  grid-column: 2;
  font-size: small;
  color: var(--muted);
}

.cb-legend-items {
  display: flex;
  flex-direction: row;
  list-style: none;
  font-size: small;
  padding: 0;
  margin: 0;
  gap: 12px;
}

.cb-legend-items li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cb-legend-items li b {
  margin-bottom: 2px;
}

.cb-dim {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr minmax(110px, 25%);
  gap: 14px;
}

.cb-dim-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cb-dim-label b {
  font-size: small;
}

.cb-dim-label span,
.cb-dim-high {
  font-size: small;
  color: var(--muted);
}

.cb-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
}

.cb-track.cb-track-empty {
  background: var(--line);
}

.cb-marker {
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

.cb-dim-high {
  font-size: small;
  color: var(--muted);
}

@media (max-width: 600px) {
  .cb-dim {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, 30%) 1fr minmax(110px, 25%);
  }
}