/* nx-kit Tier B · sliders */
.nx-range { width: min(21rem, 100%); user-select: none; }
.nx-range-out { display: flex; align-items: baseline; gap: .4rem; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-range-out span { color: var(--muted); }
.nx-range-bars { display: flex; align-items: flex-end; gap: 2px; height: 4.5rem; margin-top: .6rem; }
.nx-range-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--text) 14%, transparent); transform-origin: 50% 100%; transform: scaleY(.55); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), background-color .2s; }
.nx-range-bars i.is-in { background: var(--text); transform: none; }
.nx-range-track { position: relative; height: 4px; margin: .5rem .55rem 0; border-radius: 4px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.nx-range-fill { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--text); }
.nx-range-track button { position: absolute; top: 50%; width: 1.3rem; height: 1.3rem; margin: -.65rem 0 0 -.65rem; border-radius: 999px; background: var(--text); box-shadow: 0 0 0 4px var(--bg), 0 2px 6px rgba(0, 0, 0, .4); cursor: grab; touch-action: none; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.nx-range-track button.is-held, .nx-range-track button:focus-visible { transform: scale(1.25); }

.nx-elastic { display: flex; align-items: center; gap: .7rem; width: min(19rem, 100%); padding: .55rem .9rem; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); cursor: ew-resize; touch-action: none; user-select: none; outline: none; }
.nx-elastic:focus-visible { box-shadow: inset 0 0 0 1.5px var(--purple); }
.nx-elastic-ico { color: var(--muted); }
.nx-elastic-track { flex: 1; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 14%, transparent); overflow: hidden; transition: height .2s; }
.nx-elastic.is-held .nx-elastic-track { height: 12px; }
.nx-elastic-track i { display: block; height: 100%; border-radius: inherit; background: var(--text); }
.nx-elastic b { min-width: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; font-size: .85rem; }

.nx-slosh { display: flex; align-items: center; gap: .8rem; width: min(19rem, 100%); }
.nx-slosh-track { position: relative; flex: 1; height: 1.6rem; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); cursor: pointer; touch-action: none; }
.nx-slosh-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 70%, transparent), var(--purple)); }
.nx-slosh-knob { position: absolute; top: 50%; width: 1.9rem; height: 1.9rem; margin: -.95rem 0 0 -.95rem; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.nx-slosh-knob.is-held { transform: scale(.85); }
.nx-slosh b { min-width: 2rem; font-variant-numeric: tabular-nums; }

.nx-wake { display: flex; align-items: center; gap: .8rem; width: min(20rem, 100%); }
.nx-wake-bars { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 3rem; cursor: ew-resize; touch-action: none; outline: none; }
.nx-wake-bars:focus-visible { box-shadow: 0 0 0 1.5px var(--purple); border-radius: 6px; }
.nx-wake-bars i { width: 2px; height: 1.1rem; border-radius: 2px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background-color .15s; }
.nx-wake-bars i.is-on { background: var(--text); }
.nx-wake b { min-width: 2rem; font-variant-numeric: tabular-nums; }

.nx-budget { width: min(21rem, 100%); user-select: none; }
.nx-budget-head { display: flex; align-items: baseline; gap: .6rem; }
.nx-budget-head b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-budget-head span { font-size: .8rem; font-weight: 800; color: #22c55e; }
.nx-budget[data-state="warn"] .nx-budget-head span { color: #f59e0b; }
.nx-budget[data-state="bad"] .nx-budget-head span { color: #ef4444; }
.nx-budget-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 4rem; margin-top: 1.4rem; cursor: ew-resize; touch-action: none; outline: none; }
.nx-budget-bars i { flex: 1; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); transition: background-color .2s, transform .3s cubic-bezier(.3, 1.4, .5, 1); transform: scaleY(.55); transform-origin: 50% 100%; }
.nx-budget-bars i.is-good { background: #22c55e; transform: none; }
.nx-budget-bars i.is-warn { background: #f59e0b; transform: none; }
.nx-budget-bars i.is-bad { background: #ef4444; transform: none; }
.nx-budget-bars em { position: absolute; top: -1.2rem; bottom: -.3rem; width: 0; border-left: 1.5px dashed color-mix(in srgb, var(--text) 50%, transparent); }
.nx-budget-bars em small { position: absolute; top: 0; left: .3rem; font-size: .66rem; font-weight: 800; font-style: normal; color: var(--muted); white-space: nowrap; }

.nx-ticks { width: min(21rem, 100%); user-select: none; }
.nx-ticks-head { display: flex; align-items: baseline; gap: .5rem; }
.nx-ticks-head b { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-ticks-head span { font-size: .82rem; font-weight: 800; color: #22c55e; }
.nx-ticks-head span[data-dir="down"] { color: #ef4444; }
.nx-ticks-row { display: flex; justify-content: space-between; height: 2.6rem; margin-top: .5rem; cursor: ew-resize; touch-action: none; outline: none; }
.nx-ticks-row i { width: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 14%, transparent); transition: background-color .15s, transform .3s cubic-bezier(.3, 1.4, .5, 1); transform: scaleY(.6); }
.nx-ticks-row i.is-on { background: var(--text); transform: none; }
.nx-ticks-row i.is-changed { background: var(--purple); }

.nx-wheel { position: relative; width: 11rem; height: 11rem; user-select: none; }
.nx-wheel-ring { position: absolute; inset: 0; border-radius: 999px; cursor: grab; touch-action: none; outline: none; }
.nx-wheel-ring:focus-visible { box-shadow: 0 0 0 1.5px var(--purple); }
.nx-wheel-ring i { position: absolute; left: 50%; top: 0; width: 3px; height: 1rem; margin-left: -1.5px; border-radius: 3px; transform-origin: 50% 5.5rem; transform: rotate(var(--a)); background: color-mix(in srgb, var(--text) 15%, transparent); transition: background-color .12s, height .2s; }
.nx-wheel-ring i.is-on { background: var(--purple); height: 1.25rem; }
.nx-wheel-mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.nx-wheel-mid b { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-wheel-mid small { color: var(--muted); font-size: .75rem; font-weight: 700; }
