/* ── COORDINATED HIGHLIGHTS (dashboard card) ── */
.dfc-chmap-btn {
  height: 18px;
  padding: 0 7px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .85);
  color: rgba(30, 30, 40, .6);
  border: 1px solid rgba(30, 30, 40, .14);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap
}

.dfc-chmap-btn:hover {
  background: #1a1a22;
  color: #fff;
  border-color: #1a1a22
}

.dfc-chmap-btn.on {
  background: #1a1a22;
  color: #fff;
  border-color: #1a1a22
}

.dfc-chmap-btn .ch-mt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5
}

.dfc-chmap-btn.on .ch-mt-dot {
  opacity: 1;
  background: #22c55e
}

.dfc.dfc-shrunk .dfc-chmap-btn {
  opacity: 0;
  pointer-events: none
}

/* Zoom-to-fit button (sits next to the map toggle) */
.dfc-fit-btn {
  height: 18px;
  padding: 0 8px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .85);
  color: rgba(30, 30, 40, .6);
  border: 1px solid rgba(30, 30, 40, .14);
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: .04em;
  transition: all .15s;
  backdrop-filter: blur(4px);
  white-space: nowrap
}

.dfc-fit-btn:hover {
  background: #1a1a22;
  color: #fff;
  border-color: #1a1a22
}

.dfc-fit-btn:active {
  transform: scale(.96)
}

.dfc-fit-btn svg {
  width: 9px;
  height: 9px;
  display: block;
  flex-shrink: 0
}

.dfc.dfc-shrunk .dfc-fit-btn {
  opacity: 0;
  pointer-events: none
}

/* Header label pill (right side, e.g. "dummy coordinates") */
.face-hdr,
.exp-hdr {
  position: relative
}

.ch-label-pill {
  position: absolute;
  top: 8px;
  right: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 9px;
  color: rgba(30, 30, 40, .42);
  letter-spacing: .04em;
  white-space: nowrap;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4
}

.dfc .ch-label-pill {
  top: 50%;
  transform: translateY(-50%);
  right: 60px;
  font-size: 8px;
  max-width: calc(100% - 70px)
}

/* ch-area: replaces .hl-slider area when card has a coord highlight */
.ch-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 9px;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 auto
}

.dfc .ch-area {
  padding: 6px 8px 7px;
  gap: 5px;
  overflow: hidden;
  flex: 0 0 auto
}

/* Anchor name-tag slider (face: 3, exp: 10) */
.ch-tag-slider {
  padding: 0 !important
}

.ch-tag-slider .hl-slider-inner {
  gap: 3px
}

.ch-tag-area {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
  flex: 1;
  min-width: 0;
  align-items: stretch
}

.ch-tag-slide {
  min-width: 0;
  display: flex
}

.ch-tag-slide[hidden] {
  display: none !important
}

.ch-tag {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(30, 30, 40, .18);
  color: rgba(30, 30, 40, .5);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1.2;
  transition: all .15s;
  letter-spacing: .01em;
  height: 22px
}

.ch-tag:hover:not(.on) {
  border-color: var(--c, rgba(30, 30, 40, .42));
  color: var(--c, #1a1a22);
  background: rgba(30, 30, 40, .04)
}

.ch-tag.on {
  background: var(--c, #1a4f8a);
  color: #fff;
  border-color: var(--c, #1a4f8a)
}

.ch-tag .ch-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(30, 30, 40, .32)
}

.ch-tag.on .ch-tag-dot {
  background: #fff
}

.ch-tag .ch-tag-txt {
  min-width: 0;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center
}

/* Value-column slider tiles (face: 1, exp: 5; never grow vertically) */
.ch-slider-slider {
  padding: 0 !important;
  flex: 0 0 auto;
  display: flex
}

.ch-slider-slider .hl-slider-inner {
  align-items: center;
  flex: 1;
  min-width: 0
}

.ch-slider-area {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  flex: 1;
  min-width: 0;
  align-items: start
}

.ch-slider-area>.hl-slide[hidden] {
  display: none !important
}

/* Single-row, fixed-height tile: [NAME ─────●───●───── min-max]. Never grows. */
.ch-slider-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f7f4ef;
  border: 1px solid #e2ddd6;
  border-radius: 6px;
  padding: 5px 9px 6px;
  min-width: 0;
  flex: 0 0 auto
}

.dfc .ch-slider-tile {
  padding: 4px 8px 5px;
  gap: 1px
}

.ch-slider-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0
}

.dfc .ch-slider-name {
  font-size: 8.5px
}

.dfc .ch-slider-rng {
  font-size: 8.5px
}

.ch-slider-degenerate {
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(30, 30, 40, .7);
  text-align: right;
  font-style: italic
}

.ch-slider-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 9px;
  color: rgba(30, 30, 40, .62);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.ch-slider-empty {
  font-size: 9px;
  color: rgba(30, 30, 40, .4);
  font-style: italic;
  padding: 3px 0
}

.ch-slider-rng {
  font-family: var(--font-ui);
  font-size: 9px;
  color: rgba(30, 30, 40, .55);
  align-self: flex-end;
  white-space: nowrap;
  line-height: 1.2
}

.ch-range {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 18px;
  min-height: 18px;
  display: block;
  align-items: center
}

.dfc .ch-range {
  height: 16px;
  min-height: 16px
}

/* Override the panel-wide #s-dash input[type=range]{height:3px} rule — the
   dual-range coord-highlight thumbs need a proper 18px hit area. */
#s-dash .ch-range input[type=range] {
  height: 18px
}

#s-dash .dfc .ch-range input[type=range] {
  height: 16px
}

.ch-range .ch-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(30, 30, 40, .12);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%)
}

.ch-range .ch-fill {
  position: absolute;
  height: 3px;
  background: #1a1a22;
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%)
}

.ch-range input[type=range] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 18px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  margin: 0;
  outline: none;
  z-index: 2
}

.ch-range input[type=range].rng-min {
  z-index: 3
}

.ch-range input[type=range].rng-max {
  z-index: 4
}

.ch-range input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #1a1a22;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  position: relative;
  z-index: 5
}

.ch-range input[type=range]:active::-webkit-slider-thumb {
  cursor: grabbing;
  background: #1a1a22
}

.ch-range input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #1a1a22;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22)
}

.ch-range input[type=range]:active::-moz-range-thumb {
  cursor: grabbing;
  background: #1a1a22
}

.ch-range input[type=range]::-moz-range-track {
  background: transparent;
  border: none
}

.dfc .ch-range input[type=range] {
  height: 16px
}

.dfc .ch-range input[type=range]::-webkit-slider-thumb {
  width: 12px;
  height: 12px
}

.dfc .ch-range input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px
}

.dfc.dfc-shrunk .ch-area {
  opacity: 0;
  pointer-events: none
}
