/* ----- Soundboard styles. Mobile-first, big touch targets. ----- */
:root {
  --bg:        #0f172a;
  --bg-2:      #1e293b;
  --panel:     #111827;
  --text:      #f8fafc;
  --muted:     #94a3b8;
  --primary:   #2563eb;
  --primary-2: #3b82f6;
  --accent:    #f59e0b;
  --danger:    #dc2626;
  --ok:        #16a34a;
  --warn:      #f59e0b;
  --border:    #334155;
  --radius:    14px;
  --shadow:    0 8px 24px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

a { color: var(--primary-2); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

/* ---- Top nav ---- */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topnav .brand { font-weight: 800; letter-spacing: .12em; color: var(--text); text-decoration: none; }
.topnav nav { display: flex; gap: 14px; flex-wrap: wrap; }
.topnav nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topnav nav a:hover { color: var(--text); }

.page { max-width: 1200px; margin: 0 auto; padding: 14px; }

/* ---- Auth pages ---- */
.auth-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 16px;
}
.auth-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow);
}
.auth-card h1 { margin-top: 0; }

/* ---- Forms ---- */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.inline { flex-direction: row; flex-wrap: wrap; align-items: end; }
.row { display: flex; align-items: center; gap: 10px; }
.row.gap { gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
label.row { flex-direction: row; }

input[type=text], input[type=email], input[type=password], input[type=url],
input[type=search], input[type=number], input[type=color], input[type=file],
select, textarea {
  background: #0b1220;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  width: 100%;
}
input[type=color] { padding: 4px; height: 44px; }
input[type=color]:disabled { opacity: .4; cursor: not-allowed; }
textarea { resize: vertical; min-height: 80px; }

.color-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  margin: 0;
}
.color-fieldset legend {
  padding: 0 6px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.color-fieldset .color-row {
  flex-direction: row; align-items: center; gap: 12px;
}
.color-fieldset .color-row span { color: var(--muted); font-size: 14px; }
.color-fieldset .color-row input[type=color] { width: 64px; }

.slider-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.slider-fieldset legend {
  padding: 0 6px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.slider-row {
  display: grid;
  grid-template-columns: 96px 1fr 56px auto;
  gap: 10px;
  align-items: center;
}
.slider-row .slider-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.slider-row .slider-value { color: var(--text); font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.slider-row input[type=range] { width: 100%; accent-color: var(--primary-2); }

/* AI Voice (TTS) provider toggle */
#tts-provider-toggle .btn.small.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.tts-provider-pane { display: flex; flex-direction: column; gap: 10px; }
#tts-char-hint { display: block; margin-top: 4px; }
#tts-char-hint.over { color: #fca5a5; font-weight: 600; }

/* Usage page */
.usage-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 8px; }
.usage-total {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 18, 32, .35);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.usage-total .amount { font-size: 22px; line-height: 1.1; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.quota-bar {
  height: 14px; border-radius: 7px; background: rgba(11, 18, 32, .55);
  border: 1px solid var(--border); overflow: hidden; margin: 8px 0;
}
.quota-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .3s; }
.quota-fill.over { background: linear-gradient(90deg, #f97316, #ef4444); }
.quota-text { font-size: 14px; }
.quota-meta { list-style: none; padding: 0; margin: 8px 0 0; }

/* Admin "inspect user" page — list of that user's sounds with inline players. */
.admin-sound-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 10px;
}
.admin-sound-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(11, 18, 32, .55);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.admin-sound-row strong { display: block; }
.admin-sound-meta { min-width: 0; overflow: hidden; }
.admin-sound-meta .muted { display: block; font-size: 12px; }
.admin-sound-row audio { height: 32px; max-width: 280px; }
.admin-sound-swatch {
  width: 14px; height: 14px; border-radius: 7px; border: 1px solid var(--border);
}
.tab-swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 7px;
  border: 1px solid var(--border);
}
@media (max-width: 720px) {
  .admin-sound-row {
    grid-template-columns: 14px 1fr;
    grid-auto-rows: auto;
  }
  .admin-sound-row audio,
  .admin-sound-row .btn { grid-column: 1 / -1; max-width: 100%; }
}

/* Budget banner shown across the top of the soundboard when over budget. */
.budget-banner {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #f97316, #ef4444);
  color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.budget-banner a {
  color: #fff; text-decoration: underline; margin-left: auto;
}
.budget-banner button {
  background: rgba(255,255,255,.18); color: #fff; border: 0;
  width: 26px; height: 26px; border-radius: 13px;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.budget-banner button:hover { background: rgba(255,255,255,.32); }
@media (max-width: 600px) {
  .budget-banner { font-size: 13px; padding: 8px 10px; gap: 8px; }
  .budget-banner a { margin-left: 0; }
}
.quota-meta li { padding: 2px 0; }
#eleven-status.error { color: #fca5a5; }

/* My Voices: clone form */
.clone-tips { margin-bottom: 8px; }
.clone-tips summary { cursor: pointer; font-weight: 600; color: var(--text); }
.clone-tips ul { padding-left: 20px; margin: 8px 0; }
.clone-tips li { margin-bottom: 4px; }
.clone-script {
  font-style: italic;
  border-left: 3px solid var(--primary-2);
  margin: 6px 0 0;
  padding: 6px 12px;
  background: rgba(11, 18, 32, .35);
  border-radius: 4px;
  line-height: 1.55;
}
#clone-source-toggle .btn.small.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.clone-mode { display: flex; flex-direction: column; gap: 10px; }
.clone-samples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.clone-sample {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 18, 32, .35);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.clone-sample-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.clone-sample-head strong { flex: 0 0 auto; }
.clone-sample-head .muted.small { flex: 1; }
.clone-sample audio { width: 100%; }

/* My Voices page */
.voices-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.voice-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 18, 32, .35);
}
.voice-row .voice-main { flex: 1; min-width: 0; }
.voice-row .voice-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.voice-row audio { width: 100%; margin-top: 6px; }
.voice-row .voice-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.voice-row .muted.error { color: #fca5a5; }

/* Voice Design preview cards */
.design-preview-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.design-preview {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 18, 32, .35);
}
.design-preview-head {
  display: flex; align-items: center; justify-content: space-between;
}
.design-preview-num {
  font-weight: 700; font-size: 14px; color: var(--text);
}
.design-preview audio { width: 100%; }
.design-preview input[type=text] { flex: 1; }

/* Re-voice (recorder) UI */
.revoice-mode { display: flex; flex-direction: column; gap: 10px; }
.record-stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(11, 18, 32, .35);
}
.record-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 14px 22px; font-weight: 700; font-size: 15px;
  cursor: pointer; touch-action: manipulation;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.record-btn:hover { background: #243049; }
.record-btn:active { transform: translateY(1px); }
.record-btn .record-dot {
  display: inline-block;
  width: 14px; height: 14px; border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .25);
}
.record-btn.recording {
  background: #7f1d1d; border-color: #b91c1c;
}
.record-btn.recording .record-dot {
  animation: record-pulse 1s ease-in-out infinite;
}
@keyframes record-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 2px rgba(220, 38, 38, .25); }
  50%      { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(220, 38, 38, .15); }
}
.record-meta {
  display: flex; align-items: center; gap: 12px;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.record-meta #revoice-record-time { font-weight: 700; font-size: 18px; color: var(--text); }
.record-stage audio { width: 100%; }

#revoice-source-toggle .btn.small.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Combine sounds UI */
.combine-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.combine-col { min-width: 0; }
.combine-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px;
  background: rgba(11, 18, 32, .35);
}
.combine-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.combine-list li .combine-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combine-list li .combine-meta {
  opacity: .8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}
.combine-list li .combine-add {
  font-weight: 700;
  font-size: 16px;
  opacity: .8;
}
.combine-list.ordered { counter-reset: combo; }
.combine-list.ordered li::before {
  counter-increment: combo;
  content: counter(combo);
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}
.combine-handle {
  cursor: grab;
  color: rgba(255,255,255,.7);
  letter-spacing: -2px;
  font-size: 18px;
}
.combine-remove {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  font-size: 20px;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
}
.combine-remove:hover { color: #fff; }
@media (max-width: 540px) {
  .combine-cols { grid-template-columns: 1fr; }
  .combine-list { max-height: 200px; }
}
@media (max-width: 480px) {
  .slider-row { grid-template-columns: 1fr 56px auto; }
  .slider-row .slider-label { grid-column: 1 / -1; margin-bottom: -4px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-weight: 700; font-size: 15px;
  cursor: pointer; touch-action: manipulation;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:hover:not(:disabled) { background: #243049; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); }
.btn.primary:hover:not(:disabled) { background: #1d4ed8; }
.btn.danger { background: #7f1d1d; border-color: #991b1b; }
.btn.danger:hover:not(:disabled) { background: #991b1b; }
.btn.small { padding: 6px 10px; font-size: 13px; }

/* ---- Alerts / toasts ---- */
.alert { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-weight: 600; }
.alert.ok    { background: rgba(22,163,74,.15);  border: 1px solid rgba(22,163,74,.5);  color: #bbf7d0; }
.alert.error { background: rgba(220,38,38,.15);  border: 1px solid rgba(220,38,38,.5);  color: #fecaca; }

.muted { color: var(--muted); }
.muted.small { font-size: 13px; }

.pill {
  display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 700;
  border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.05);
  color: var(--muted);
}
.pill.ok    { color: #bbf7d0; border-color: rgba(22,163,74,.5);  background: rgba(22,163,74,.15); }
.pill.warn  { color: #fde68a; border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.15); }
.pill.grant { color: #bfdbfe; border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.15); }

/* ---- Cards (settings/admin) ---- */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin: 14px 0;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
fieldset.key-row { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.key-row legend { padding: 0 6px; font-weight: 700; }
.key-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---- Soundboard ---- */
#soundboard { position: relative; }

.board-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 0 12px;
  position: sticky; top: 53px; z-index: 20;
  background: var(--bg);
}
.tabs {
  display: flex; gap: 6px; flex: 1 1 auto;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--panel); color: var(--text);
  font-weight: 700; font-size: 15px;
  cursor: pointer; user-select: none;
  white-space: nowrap;
}
.tab.active { background: var(--primary-2); border-color: var(--primary-2); }
.tab .edit-pencil { display: none; opacity: .7; }
.editing .tab .edit-pencil { display: inline; }
.board-actions { display: flex; gap: 8px; }

#edit-mode-btn[aria-pressed="true"] { background: var(--accent); color: #1f1300; border-color: var(--accent); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 100px;
}
@media (min-width: 600px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .board-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .board-grid { grid-template-columns: repeat(6, 1fr); } }

.sound-btn {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 110px;
  border-radius: 18px;
  border: 0; padding: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800; font-size: 17px; line-height: 1.15;
  cursor: pointer; user-select: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  word-break: break-word;
  box-shadow: 0 4px 0 rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.18);
  transition: transform .04s ease, filter .15s ease;
  touch-action: manipulation;
}
.sound-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.18); }
.sound-btn.playing { filter: brightness(1.2); outline: 3px solid #fde68a; outline-offset: -3px; }
.sound-btn .label { font-size: 16px; }
.sound-btn .meta { font-size: 11px; opacity: .85; margin-top: 6px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sound-btn .edit-pencil { position: absolute; top: 6px; right: 8px; font-size: 14px; display: none; }
.editing .sound-btn { cursor: grab; outline: 2px dashed rgba(255,255,255,.35); outline-offset: -2px; }
.editing .sound-btn .edit-pencil { display: block; }
.sortable-ghost { opacity: .35; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 40px 16px; color: var(--muted);
  border: 2px dashed var(--border); border-radius: var(--radius);
}

/* Floating add button */
.fab {
  position: fixed; right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 64px; height: 64px;
  border-radius: 50%; border: 0;
  background: var(--accent); color: #1f1300;
  font-size: 32px; font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer; z-index: 25;
}

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: #111827; color: #fff;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border);
  font-weight: 600; z-index: 50; max-width: min(640px, calc(100% - 24px));
  word-break: break-word; line-height: 1.35; text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.toast.error { background: #7f1d1d; border-color: #991b1b; padding-right: 30px; }
.toast.error::after {
  content: '×'; position: absolute; top: 4px; right: 10px;
  font-size: 18px; opacity: .8;
}

/* ---- Modal ---- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px; overflow: auto;
}
.modal[hidden] { display: none; }
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel); color: var(--text);
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; width: 100%; max-width: 560px; position: relative;
  max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: var(--shadow);
}
.modal-card.narrow { max-width: 420px; }
.modal-close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; color: var(--muted); border: 0;
  font-size: 28px; cursor: pointer;
}
.tab-bar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 4px 0 14px; padding-bottom: 6px; }
.tab-btn {
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--bg-2); color: var(--text); border-color: var(--border); }

.result-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 460px; overflow: auto; }
.result-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px; border-bottom: 1px solid var(--border);
}
.result-list li:last-child { border-bottom: 0; }
.result-list .info { flex: 1; min-width: 0; }
.result-list .info .title { font-weight: 700; word-break: break-word; }
.result-list .info .sub { color: var(--muted); font-size: 12px; }
.result-list audio { max-width: 200px; }
.result-list .thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.result-list .actions { display: flex; flex-direction: column; gap: 4px; }

.row.wrap { flex-wrap: wrap; }

/* ---- Clip modal ---- */
.clip-times { flex-wrap: wrap; align-items: end; }
.clip-times label { flex: 0 0 auto; }
.clip-times input[type=number] { width: 90px; }
.clip-range {
  position: relative; height: 40px; margin: 8px 0 4px;
  display: flex; align-items: center;
}
.clip-range input[type=range] {
  position: absolute; left: 0; right: 0; width: 100%;
  appearance: none; background: transparent; pointer-events: none;
}
.clip-range input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 28px; border-radius: 6px;
  background: var(--accent); cursor: pointer; pointer-events: auto;
  border: 2px solid #1f1300;
}
.clip-range input[type=range]::-moz-range-thumb {
  width: 20px; height: 28px; border-radius: 6px;
  background: var(--accent); cursor: pointer; pointer-events: auto;
  border: 2px solid #1f1300;
}
.clip-range input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border);
}
.clip-range input[type=range]::-moz-range-track {
  height: 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border);
}
