.wrange { --a: 0%; --b: 100%; padding: 6px 2px 0; }
.wrange .wr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted, #6b6b6b); margin-bottom: 2px; }
.wrange .wr-nums { display: inline-flex; gap: 8px; align-items: center; }
.wrange .wr-nums label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted, #6b6b6b); margin: 0; }
.wrange .wr-nums input { width: 64px; min-height: 0; padding: 5px 6px; border: 1px solid var(--line, #d9d6cf); border-radius: 8px; background: #fff; color: var(--ink, #1a1a1a); font: 600 13px/1.2 ui-monospace, Menlo, monospace; text-align: center; -moz-appearance: textfield; }
.wrange .wr-nums input::-webkit-outer-spin-button, .wrange .wr-nums input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wrange .wr-track { position: relative; height: 30px; }
.wrange .wr-track::before { content: ""; position: absolute; left: 10px; right: 10px; top: 13px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--line, #d9d6cf) var(--a), var(--terra, #b5643c) var(--a), var(--terra, #b5643c) var(--b), var(--line, #d9d6cf) var(--b)); }
.wrange .wr-fill { display: none; }
.wrange input[type=range] { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.wrange input[type=range]::-webkit-slider-runnable-track { background: none; height: 30px; }
.wrange input[type=range]::-moz-range-track { background: none; }
.wrange input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: #fff; border: 3px solid var(--terra, #b5643c); cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.wrange input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--terra, #b5643c); cursor: grab; }
.wrange input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink, #1a1a1a); outline-offset: 2px; }
.wrange .wr-scale { position: relative; height: 14px; font: 500 11px/1 ui-monospace, Menlo, monospace; color: var(--muted, #6b6b6b); }
.wrange .wr-scale span { position: absolute; top: 0; left: calc(10px + (100% - 20px) * var(--p) / 100); transform: translateX(-50%); }
.wrange .wr-scale span:last-child { color: var(--ink, #1a1a1a); font-weight: 700; }
@media (pointer: coarse) {
  .wrange input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: 1px; }
  .wrange .wr-nums input { min-height: 40px; }
}
@media (min-width: 700px) { #d-width .fpop { width: 340px; } }
