#compare .dps-intro {
  max-width: 44rem;
  line-height: 1.65;
}

.dps-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 14px;
}

.dps-selectors label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dps-selectors select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: max(13px, .88rem);
  text-overflow: ellipsis;
}

.dps-pick-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9e0cb;
  font-size: 13px;
  font-weight: 650;
}

.dps-pick-label small {
  color: #a5b4a2;
  font-size: 11px;
  font-weight: 400;
}

.dps-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #102017;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.dps-a { background: #d8bc82; }
.dps-b { background: #a8c5ab; }

#comparison.dps-comparison {
  overflow: hidden;
  padding: 0;
  border: 1px solid #314439;
  background: #111e17;
}

.dps-toolbar,
.dps-legend,
.dps-legend span,
.dps-zoom {
  display: flex;
  align-items: center;
}

.dps-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px 15px;
}

.dps-legend {
  gap: 8px 18px;
  flex-wrap: wrap;
  color: #c1cdbd;
  font-size: 12px;
}

.dps-legend span {
  gap: 5px;
  white-space: nowrap;
}

.dps-legend img {
  width: 12px;
  height: 21px;
  object-fit: contain;
  object-position: bottom;
}

.dps-legend span + span img { height: 15px; }
.dps-legend b { color: #f0ead4; font-weight: 700; }

.dps-zoom {
  gap: 3px;
  min-width: 0;
}

.dps-zoom button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #395043;
  border-radius: 4px;
  background: #182920;
  color: #eee9d3;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.dps-zoom button:nth-child(2) { font-size: 12px; }
.dps-zoom button:not(:disabled):hover { border-color: #d8bc82; color: #f5d99a; }
.dps-zoom button:disabled { color: #829187; cursor: default; }
#compare :is(button, select, a, .dps-viewport):focus-visible { outline: 2px solid #d8bc82; outline-offset: 2px; }
#compare .dps-viewport:focus-visible { outline-offset: -3px; }

.dps-window {
  position: relative;
  background: radial-gradient(ellipse at 52% 40%, #274034 0, #172a21 54%, #112018 100%);
  border-block: 1px solid #314439;
}

.dps-viewport {
  height: clamp(242px, 34vw, 420px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #607762 #15241b;
}

.dps-scene {
  display: block;
  max-width: none;
}

.dps-scene .dps-grid { stroke: #b8ccab; stroke-opacity: .14; stroke-width: 1; }
.dps-scene .dps-ground { stroke: #a6b491; stroke-opacity: .65; }
.dps-scene .dps-tick { fill: #b5c7b3; font: 11px system-ui, sans-serif; }
.dps-scene .dps-marker { font: 750 11px system-ui, sans-serif; fill: #112017; }

.dps-status {
  position: absolute;
  left: 10px;
  top: 8px;
  margin: 0;
  max-width: calc(100% - 20px);
  padding: 3px 7px;
  border-radius: 4px;
  background: #102017e8;
  color: #dae7d4;
  font: 11px/1.5 system-ui, sans-serif;
  pointer-events: none;
}

.dps-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dps-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 15px;
}

.dps-fact + .dps-fact { border-left: 1px solid #314439; }
.dps-fact h3 {
  margin: 0 0 5px;
  color: #f0ebdc;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dps-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 13px;
  color: #c7d1c2;
  font-size: 12px;
  line-height: 1.6;
}

.dps-values b { color: #f1dcab; white-space: nowrap; }
.dps-fact + .dps-fact .dps-values b { color: #c6dfc9; }
#compare .dps-note { line-height: 1.65; }
#compare .dps-note a { color: #dfc58d; white-space: nowrap; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .dps-selectors { gap: 8px; margin-top: 18px; }
  .dps-selectors select { padding-inline: 8px; font-size: 16px; }
  .dps-pick-label { gap: 5px; font-size: 11px; }
  .dps-pick-label small { font-size: 10px; }
  .dps-toolbar { padding: 7px 10px; gap: 6px; }
  .dps-legend { gap: 8px; font-size: 11px; }
  .dps-legend img { width: 9px; }
  .dps-zoom button { min-width: 36px; min-height: 40px; padding-inline: 7px; }
  .dps-fact { padding: 11px 9px; gap: 6px; }
  .dps-fact h3 { font-size: 13px; }
  .dps-values { column-gap: 6px; font-size: 11px; }
}

.dps-zoomed .dps-scene { cursor: grab; }
.dps-dragging .dps-scene { cursor: grabbing; user-select: none; }
