/* ==========================================================================
   Shared UI primitives. Semantic tokens only.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: .5rem 1rem;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm); text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; background: var(--surface-hover); border-color: var(--primary-soft-border); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary); box-shadow: 0 6px 18px -8px rgba(31,91,255,.7); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-outline { --btn-bg: transparent; --btn-bd: var(--primary-soft-border); --btn-fg: var(--link); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); border-color: transparent; }
.btn-danger { --btn-bg: var(--danger-solid); --btn-fg: #fff; --btn-bd: var(--danger-solid); }
.btn-danger:hover { filter: brightness(1.08); background: var(--danger-solid); border-color: var(--danger-solid); }
.btn-success { --btn-bg: #12a06b; --btn-fg: #fff; --btn-bd: #12a06b; }
.btn-success:hover { filter: brightness(1.08); background: #12a06b; border-color: #12a06b; }
.btn-sm { min-height: 32px; padding: .3rem .75rem; font-size: var(--fs-xs); }
.btn-lg { min-height: 48px; padding: .75rem 1.5rem; font-size: var(--fs-base); }
.btn-block { display: flex; width: 100%; }
.btn-icon { min-width: 40px; padding: .5rem; }
.btn-icon.btn-sm { min-width: 32px; padding: .3rem; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn:not(.btn-primary):not(.btn-danger):not(.btn-success).is-loading::after { border-color: var(--border-strong); border-top-color: var(--primary); }
.btn.is-success { --btn-bg: #12a06b; --btn-bd: #12a06b; --btn-fg: #fff; }
.btn.is-error { --btn-bg: var(--danger-solid); --btn-bd: var(--danger-solid); --btn-fg: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .375rem; margin-bottom: var(--space-4); }
.field > label, .label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .hint { font-size: var(--fs-xs); color: var(--text-subtle); }
.field .error { font-size: var(--fs-xs); color: var(--danger); display: flex; gap: .35rem; align-items: center; }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: .55rem .8rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--primary-soft-border); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-hover); box-shadow: var(--ring); outline: none; }
.input[aria-invalid="true"], .is-invalid { border-color: var(--danger); }
.select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb0cd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right .7rem center; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .ic { position: absolute; left: .8rem; color: var(--text-subtle); pointer-events: none; }
.input-group > .input { padding-left: 2.5rem; }
.check { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); cursor: pointer; padding: .2rem 0; }
.check input { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface-2); display: grid; place-content: center; transition: background var(--dur-fast), border-color var(--dur-fast); }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check input:focus-visible { box-shadow: var(--ring); }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; margin: 0; transition: background var(--dur-fast); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: transform var(--dur) var(--ease), background var(--dur-fast); }
.switch input:checked { background: var(--primary); border-color: var(--primary); }
.switch input:checked::after { transform: translateX(18px); background: #fff; }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--space-5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--divider); }
.card-head h3, .card-head h4 { font-size: var(--fs-md); }
.card-body { padding: var(--space-5); }
.card-hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.card-hover:hover { transform: translateY(-2px); border-color: var(--primary-soft-border); box-shadow: var(--glow); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; border: 1px solid transparent;
  background: var(--surface-3); color: var(--text-muted);
}
.badge-primary { background: var(--primary-soft); color: var(--link); border-color: var(--primary-soft-border); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-solid-green { background: #0e8056; color: #fff; } /* darkened from #12a06b: white-on-#12a06b was 3.35:1, below the 4.5:1 AA minimum for this badge's 12px label text */
.badge-solid-blue { background: var(--primary); color: #fff; }
.badge-solid-amber { background: #f5a300; color: #221600; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); background: var(--surface-2); }
.chip:hover { text-decoration: none; border-color: var(--primary-soft-border); color: var(--text); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Rating ---------- */
.rating { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: var(--text-muted); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .ic { width: 14px; height: 14px; stroke: none; fill: currentColor; }
.stars .off { color: var(--star-empty); }
.rating strong { color: var(--text); font-weight: 600; }

/* ---------- Price ---------- */
.price { display: inline-flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-size: var(--fs-xl); font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.price-old { font-size: var(--fs-sm); color: var(--text-subtle); text-decoration: line-through; }
.price-off { font-size: var(--fs-xs); font-weight: 700; color: var(--success); background: var(--success-bg); padding: .1rem .45rem; border-radius: var(--radius-xs); }
.price-lg .price-now { font-size: 2.1rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--divider); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; padding: .75rem 1rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  background: none; border: 0; white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab[aria-selected="true"], .tab.is-active { color: var(--link); }
.tab[aria-selected="true"]::after, .tab.is-active::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.tabpanel { padding-top: var(--space-6); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--text-subtle); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .ic { width: 12px; height: 12px; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); -webkit-overflow-scrolling: touch; }
.table { font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); padding: .7rem .9rem; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.table td { padding: .8rem .9rem; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-thumb { display: flex; align-items: center; gap: .7rem; min-width: 180px; }
.table-thumb img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: var(--space-8); }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text-muted); background: var(--surface); }
.pagination a:hover { text-decoration: none; border-color: var(--primary-soft-border); color: var(--text); }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination .is-disabled { opacity: .45; }

/* ---------- Alerts / toasts ---------- */
.alert { display: flex; gap: .7rem; padding: .85rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-sm); }
.alert .ic { margin-top: 1px; }
.alert-success { background: var(--success-bg); border-color: transparent; color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: transparent; color: var(--warning); }
.alert-danger { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.alert-info { background: var(--info-bg); border-color: transparent; color: var(--info); }
.alert .alert-body { color: var(--text); }
.alert .alert-body strong { display: block; }

.toast-region { position: fixed; z-index: var(--z-toast); right: var(--space-4); bottom: var(--space-4); display: flex; flex-direction: column; gap: .6rem; width: min(380px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: toast-in var(--dur-slow) var(--ease); font-size: var(--fs-sm); }
.toast.success .ic:first-child { color: var(--success); } .toast.error .ic:first-child { color: var(--danger); } .toast.info .ic:first-child { color: var(--info); }
.toast .toast-close { margin-left: auto; background: none; border: 0; color: var(--text-subtle); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Modal / drawer (native <dialog>) ---------- */
dialog.modal {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 0; width: min(520px, calc(100vw - 2rem));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: var(--overlay); }
.modal-head { padding: var(--space-5) var(--space-5) var(--space-3); display: flex; justify-content: space-between; gap: var(--space-4); align-items: start; }
.modal-body { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); }
.modal-foot { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--divider); display: flex; justify-content: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.modal-danger .modal-head h3 { color: var(--danger); }

.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none; transition: opacity var(--dur); }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); z-index: var(--z-drawer);
  background: var(--surface); border-right: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  transform: translateX(-102%); transition: transform var(--dur-slow) var(--ease); overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--divider); position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: var(--z-header); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: .4rem; display: none; }
.dropdown.is-open > .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; background: none; text-align: left; border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-sm); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-hover); text-decoration: none; }
.dropdown-menu hr { margin: .35rem 0; }
.dropdown-menu .dd-head { padding: .6rem .7rem; }

/* ---------- Avatar ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: var(--fs-sm); font-weight: 700; color: #fff; background: var(--brand-gradient-soft); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 48px; height: 48px; font-size: var(--fs-md); }

/* ---------- Skeleton / empty / progress ---------- */
.skeleton { background: linear-gradient(90deg, var(--skeleton-a), var(--skeleton-b), var(--skeleton-a)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: var(--space-12) var(--space-6); color: var(--text-muted); }
.empty .ic { width: 42px; height: 42px; color: var(--text-subtle); margin-bottom: var(--space-3); }
.empty h3 { color: var(--text); margin-bottom: var(--space-2); font-size: var(--fs-lg); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-gradient); border-radius: inherit; transition: width var(--dur-slow) var(--ease); }

/* ---------- Stepper (Cart → Checkout → Payment) ---------- */
.stepper { display: flex; align-items: center; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.stepper li { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: var(--text-subtle); font-weight: 600; flex: 1 1 0; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border-strong); border-radius: 2px; }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--fs-xs); border: 2px solid var(--border-strong); background: var(--surface); color: var(--text-muted); flex: none; }
.stepper li.is-current { color: var(--text); }
.stepper li.is-current .dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.stepper li.is-done { color: var(--text-muted); }
.stepper li.is-done .dot { background: var(--success); border-color: var(--success); color: var(--surface); }
.stepper li.is-done:not(:last-child)::after { background: var(--success); }

/* ---------- Stat cards ---------- */
.stat { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.stat .stat-ic { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--primary-soft); color: var(--link); flex: none; }
.stat .stat-ic .ic { width: 22px; height: 22px; }
.stat .stat-val { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .stat-label { font-size: var(--fs-xs); color: var(--text-muted); }
.stat .stat-delta { font-size: var(--fs-xs); font-weight: 600; margin-top: 2px; }
.stat .stat-delta.up { color: var(--success); } .stat .stat-delta.down { color: var(--danger); }
.stat-stack { flex-direction: column; align-items: flex-start; gap: .2rem; }

/* ---------- Definition list / kv ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .55rem 1rem; font-size: var(--fs-sm); }
.kv dt { color: var(--text-muted); } .kv dd { margin: 0; color: var(--text); word-break: break-word; }

/* ---------- Charts (see charts.js) ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis { fill: var(--chart-axis); font-size: 11px; font-family: var(--font-sans); }
.chart .line { fill: none; stroke: var(--chart-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: var(--chart-area); }
.chart .bar { fill: var(--chart-bar); transition: opacity var(--dur-fast); }
.chart .bar:hover { opacity: .8; }
.chart .dot { fill: var(--surface); stroke: var(--chart-line); stroke-width: 2.5; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: var(--chart-tooltip-bg); color: #fff; font-size: var(--fs-xs); padding: .3rem .55rem; border-radius: var(--radius-sm); white-space: nowrap; box-shadow: var(--shadow-md); z-index: 2; }

/* ---------- Misc ---------- */
.divider-text { display: flex; align-items: center; gap: var(--space-3); color: var(--text-subtle); font-size: var(--fs-xs); margin: var(--space-5) 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: var(--fs-sm); }
.link-arrow .ic { width: 1em; height: 1em; transition: transform var(--dur-fast); }
.link-arrow:hover .ic { transform: translateX(3px); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-nav { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); }
.pill-nav button, .pill-nav a { padding: .35rem .9rem; border-radius: var(--radius-full); background: none; border: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.pill-nav .is-active { background: var(--primary); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { padding: .45rem .7rem; background: var(--surface-2); border: 0; color: var(--text-muted); display: inline-flex; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button[aria-pressed="true"] { background: var(--primary-soft); color: var(--link); }
.kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35rem; font-size: var(--fs-xs); background: var(--surface-2); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-subtle); margin-right: .4rem; }
.status-dot.ok { background: var(--success); } .status-dot.warn { background: var(--warning); } .status-dot.bad { background: var(--danger); }

/* Range slider (price filter) */
.range { width: 100%; accent-color: var(--primary); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--surface-3); outline: none; width: 100%; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--primary), 0 2px 6px rgba(0,0,0,.35); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--primary); cursor: pointer; }
input[type="range"]:focus-visible { box-shadow: var(--ring); }
.dual-range { position: relative; height: 22px; }
.dual-range .track { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 999px; background: var(--surface-3); }
.dual-range .fill { position: absolute; top: 8px; height: 6px; border-radius: 999px; background: var(--primary); }
.dual-range input { position: absolute; left: 0; top: 0; height: 22px; background: none; pointer-events: none; }
.dual-range input::-webkit-slider-thumb { pointer-events: auto; }
.dual-range input::-moz-range-thumb { pointer-events: auto; }
