:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.58);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #0e9f6e;
  --mid: #f2a626;
  --high: #ef5b3a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

.tx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; width: min(344px, 100%); padding: 16px 16px 14px; border-radius: 26px; background: #ffffff; box-shadow: inset 0 0 0 1.500px var(--line), 0 30px 44px -30px rgba(23, 23, 26, 0.38), 0 26px 50px -36px color-mix(in srgb, var(--accent) 70%, transparent); }
.tx__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tx__head strong { font-size: 13px; line-height: 18px; font-weight: 680; color: var(--soft); white-space: nowrap; }
.tx__head span { font-size: 11.500px; color: var(--soft); white-space: nowrap; }
.tx__sum { display: flex; align-items: baseline; gap: 8px; margin-top: -6px; }
.tx__sum strong { font-size: 38px; line-height: 42px; font-weight: 760; font-stretch: 90%; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.tx__sum span { font-size: 12.500px; font-weight: 620; color: var(--soft); white-space: nowrap; }
.tx__sum b { font-weight: 720; color: var(--ink); font-variant-numeric: tabular-nums; }

.tx__slide { position: relative; height: 32px; margin: 0 11px; touch-action: none; }
.tx__rail { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 3px; background: rgba(23, 23, 26, 0.1); overflow: hidden; }
.tx__done { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; }
.tx__knob { position: absolute; top: -6px; left: 0; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
.tx__knob i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 1.500px rgba(23, 23, 26, 0.2), 0 6px 12px -4px rgba(23, 23, 26, 0.55), inset 0 0 0 6px #ffffff, inset 0 0 0 11px var(--ink); transition: box-shadow 0.2s; }
.tx__knob:focus-visible i, .tx__knob.is-held i { box-shadow: 0 0 0 2.500px var(--ink), 0 8px 16px -4px rgba(23, 23, 26, 0.6), inset 0 0 0 6px #ffffff, inset 0 0 0 11px var(--ink); }

.tx__bands { display: grid; gap: 7px; }
.tx__bands li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "rate bar tax" "rate lab tax"; align-items: center; column-gap: 9px; row-gap: 3px; height: 30px; }
.tx__rate { grid-area: rate; font-size: 13.500px; font-weight: 760; font-variant-numeric: tabular-nums; color: var(--soft); transition: color 0.25s; }
.tx__bands li.is-top .tx__rate { color: var(--ink); }
.tx__bar { grid-area: bar; position: relative; display: block; height: 8px; border-radius: 4px; background: rgba(23, 23, 26, 0.08); overflow: hidden; }
.tx__bar i { position: absolute; inset: 0; border-radius: 4px; transform-origin: 0 50%; transform: scaleX(0); }
.tx__bands li[data-band="0"] .tx__bar i { background: var(--accent); }
.tx__bands li[data-band="1"] .tx__bar i { background: var(--mid); }
.tx__bands li[data-band="2"] .tx__bar i { background: var(--high); }
.tx__lab { grid-area: lab; font-size: 11px; line-height: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.tx__bands b { grid-area: tax; min-width: 58px; text-align: right; font-size: 13.500px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tx__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 18px; padding-top: 0; font-size: 12.500px; line-height: 18px; font-weight: 640; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx__foot b { font-weight: 740; color: var(--ink); }
.tx__eff { display: block; height: 18px; overflow: hidden; }
.tx__eff span { display: block; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

@media (max-width: 350px) { .tx__sum strong { font-size: 33px; } }
@media (max-height: 370px) { .tx { gap: 8px; padding-top: 12px; padding-bottom: 12px; } .tx__sum strong { font-size: 32px; line-height: 36px; } .tx__bands { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .tx__knob i, .tx__rate { transition: none; } }
