/* ============================================================
   Bricky - style.css
   Theme: ultra-muted chrome, light + dark. The photo and the
   mosaic are the only color on the page. Wordmark tiles are
   gray bricks. Controls are grayscale in both themes.
   ============================================================ */

:root {
  /* dark theme (default) */
  --baseplate:      #26282C;
  --baseplate-hi:   #2E3136;
  --card:           #33363C;
  --card-edge:      #43474E;
  --ink:            #F2F3F5;
  --ink-dim:        #A6ABB3;
  --note:           #D9A441;
  --active-bg:      #E8EAED;   /* selected segment + primary button */
  --active-ink:     #26282C;
  --btn-bg:         #3D4147;
  --btn-ink:        #F2F3F5;
  --focus:          #9AA0A8;
  --range:          #C6CBD2;
  --tileA-bg: #9298A0; --tileA-ink: #23262A;
  --tileB-bg: #565A60; --tileB-ink: #F2F3F5;
  --tileC-bg: #E6E7E9; --tileC-ink: #2A2D31;
  --stud-lite: rgba(255, 255, 255, 0.045);
  --stud-dark: rgba(0, 0, 0, 0.06);

  --radius: 14px;
  --pad:    16px;
  --stud-size: 28px;
}

html[data-theme="light"] {
  --baseplate:      #E9EAEC;
  --baseplate-hi:   #DFE1E4;
  --card:           #FFFFFF;
  --card-edge:      #D3D6DA;
  --ink:            #26292E;
  --ink-dim:        #6B7077;
  --note:           #9A6D14;
  --active-bg:      #33363C;
  --active-ink:     #FFFFFF;
  --btn-bg:         #E6E8EB;
  --btn-ink:        #26292E;
  --focus:          #565B63;
  --range:          #4C5158;
  --tileA-bg: #B9BEC4; --tileA-ink: #2A2D31;
  --tileB-bg: #4C5158; --tileB-ink: #FFFFFF;
  --tileC-bg: #FFFFFF; --tileC-ink: #2A2D31;
  --stud-lite: rgba(255, 255, 255, 0.3);
  --stud-dark: rgba(40, 55, 75, 0.05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  background-color: var(--baseplate);
  /* faint stud grid */
  background-image: radial-gradient(
    circle at 50% 42%,
    var(--stud-lite) 0 26%,
    var(--stud-dark) 30% 34%,
    transparent 38%
  );
  background-size: var(--stud-size) var(--stud-size);
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
  transition: background-color 0.2s, color 0.2s;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 var(--pad) 32px;
}

/* ---------- Header / wordmark ---------- */

.site-head {
  position: relative;
  text-align: center;
  padding: 28px 64px 18px;
  max-width: 520px;
  margin: 0 auto;
}

.wordmark {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 6vw, 2.6rem);
  letter-spacing: 0.04em;
  display: inline-flex;
  gap: clamp(3px, 1vw, 6px);
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  border-radius: 0.22em;
  position: relative;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.28),
    inset 0 -3px 3px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s, color 0.2s;
}

.tile::after {
  content: "";
  position: absolute;
  top: 0.1em;
  right: 0.12em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 255, 255, 0.55), rgba(0, 0, 0, 0.15) 70%);
  opacity: 0.8;
}

.tw-a { background: var(--tileA-bg); color: var(--tileA-ink); }
.tw-b { background: var(--tileB-bg); color: var(--tileB-ink); }
.tw-c { background: var(--tileC-bg); color: var(--tileC-ink); }

.tagline {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* theme toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: var(--pad);
  width: 40px;
  height: 40px;
  border: 1px solid var(--card-edge);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover { color: var(--ink); }

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.theme-toggle svg { width: 20px; height: 20px; }

/* show moon in light theme, sun in dark theme */
.icon-sun { display: block; }
.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: background-color 0.2s;
}

.card-title {
  margin: 0 0 12px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* ---------- Step 1: dropzone ---------- */

.intro {
  margin: 2px 0 14px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  text-align: center;
}

main.has-image .intro { display: none; }
main.has-image .empty-extras { display: none; }

/* once a photo exists, the photo card shrinks to a slim swap bar */
main.has-image #step-photo { padding: 10px 14px; }
main.has-image .dropzone {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
}
main.has-image .dz-icon { width: 20px; height: 20px; }
main.has-image .dz-label { font-size: 0.9rem; margin: 0; }
main.has-image .dz-hint { display: none; }

/* ---------- empty-state: privacy ---------- */

.feat-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--ink-dim);
  margin-top: 1px;
}

.feat-icon svg { width: 100%; height: 100%; }

.privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 2px;
  padding-top: 16px;
  border-top: 1px solid var(--card-edge);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-dim);
}

.privacy-note .feat-icon { color: var(--note); }

.privacy-note strong { color: var(--ink); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 16px;
  border: 2px dashed var(--card-edge);
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  color: var(--ink-dim);
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  border-color: var(--focus);
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.dz-icon { width: 44px; height: 44px; }

.dz-label {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}

.dz-hint { font-size: 0.88rem; }

/* ---------- Step 2: crop ---------- */

.crop-wrap {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--baseplate-hi);
}

#crop-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  touch-action: none;   /* we handle pan/pinch ourselves */
  cursor: grab;
}

#crop-canvas.dragging { cursor: grabbing; }

.zoom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.zoom-label {
  font-size: 0.9rem;
  color: var(--ink-dim);
  min-width: 44px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--range);
  height: 28px;
}

.hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- Step 3: controls ---------- */

[hidden] { display: none !important; }

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.control-row:last-child { margin-bottom: 0; }

.control-label {
  min-width: 64px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.segmented {
  display: flex;
  flex: 1;
  background: var(--baseplate-hi);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}

.segmented button[aria-pressed="true"] {
  background: var(--active-bg);
  color: var(--active-ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.segmented button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* ---------- Step 4: result ---------- */

.result-wrap {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background-color: var(--baseplate-hi);
  /* visible baseplate behind smaller mosaics */
  background-image: radial-gradient(
    circle at 50% 42%,
    var(--stud-lite) 0 26%,
    var(--stud-dark) 30% 34%,
    transparent 38%
  );
  background-size: 14px 14px;
  display: flex;
  justify-content: center;
}

#result-canvas {
  display: block;
  width: 100%;
  height: auto;
  transition: width 0.25s ease;
}

.stats {
  margin: 10px 0 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  flex: 1 1 auto;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: filter 0.12s, transform 0.05s,
              background-color 0.2s, color 0.2s;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--active-bg);
  color: var(--active-ink);
}

.btn-quiet {
  background: transparent;
  box-shadow: none;
  color: var(--ink-dim);
}

/* ---------- Misc ---------- */

.app-error {
  color: #B4443A;
  background: color-mix(in srgb, #B4443A 12%, transparent);
  border: 1px solid color-mix(in srgb, #B4443A 40%, transparent);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9rem;
}

.site-foot {
  text-align: center;
  padding: 8px var(--pad) 28px;
  color: var(--ink-dim);
  font-size: 0.78rem;
}

.site-foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Step 5: build it ---------- */

.build-line {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.parts {
  margin-bottom: 14px;
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  overflow: hidden;
}

.parts[open] {
  padding-bottom: 12px;
}

.parts[open] > summary {
  margin-bottom: 10px;
}

#view-row {
  margin-top: 14px;
}

.format-thumbs {
  flex: 1 0 100%;
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  margin: 10px 0 16px;
}

.format-thumbs button {
  background: none;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.format-thumbs button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.format-thumbs canvas {
  display: block;
  border-radius: 7px;
  background: var(--baseplate-hi);
}

.thumb-sq { width: 64px; height: 64px; }


.parts > *:not(summary):not(#parts-list) {
  margin-left: 14px;
  margin-right: 14px;
}

.parts summary {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  background: var(--baseplate-hi);
  user-select: none;
}

.parts summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

#parts-list {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
}

#parts-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.part-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--active-bg);
  color: var(--active-ink);
}

.part-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  flex: none;
}

.part-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.part-qty { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.parts-foot {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--card-edge);
  font-size: 0.82rem;
  color: var(--ink-dim);
}

@media (max-width: 420px) {
  #parts-list { grid-template-columns: 1fr; }
}

/* ---------- Desktop layout ---------- */

@media (min-width: 920px) {
  .site-head {
    max-width: 1100px;
    padding-top: 32px;
  }

  /* two-column workspace only once a photo is loaded;
     the empty state stays a single centered card */
  main.has-image {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 20px;
    align-items: start;
  }

  main.has-image .col-b {
    position: sticky;
    top: 16px;
  }

  .app-error { grid-column: 1 / -1; }

  /* a little more breathing room in cards at this size */
  .card { padding: 20px; }
}

/* ---------- Links & order page ---------- */

a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--ink-dim); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.prose p, .prose li { font-size: 0.95rem; color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin: 18px 0 8px;
}
.prose .aside { color: var(--ink-dim); font-size: 0.86rem; }
.back-link { display: inline-block; margin-bottom: 14px; font-size: 0.9rem; }

/* ---------- Info dots & hints ---------- */

.info-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  border: 1px solid var(--card-edge);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-dim);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: 1px;
}

.info-dot:hover,
.info-dot[aria-expanded="true"] {
  background: var(--active-bg);
  color: var(--active-ink);
  border-color: transparent;
}

.info-dot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.control-hint {
  margin: -4px 0 12px;
  padding-left: 76px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

@media (max-width: 420px) {
  .control-hint { padding-left: 0; }
}

/* ---------- Looks (one-tap style presets) ---------- */

.looks-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: none;
}

@media (hover: hover) and (pointer: fine) {
  .looks-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.looks-row::-webkit-scrollbar { display: none; }

.look-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 66px;
  padding: 10px 10px 8px;
  border-radius: 13px;
  border: 1px solid var(--card-edge);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.look-chip .stop-icon { margin: 0; width: 23px; height: 23px; color: inherit; }

.look-chip[aria-pressed="true"] {
  background: var(--active-bg);
  color: var(--active-ink);
  border-color: var(--active-bg);
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

.btn-ico { width: 14px; height: 14px; display: inline-flex; flex: 0 0 auto; }

.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

.seg-ico { width: 13px; height: 13px; display: inline-flex; flex: 0 0 auto; }

.seg-ico svg { width: 100%; height: 100%; }

.btn-ico svg { width: 100%; height: 100%; }

.price-tease { color: var(--note); font-weight: 600; }

.fold-active {
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--note);
}

.restart-line { text-align: center; margin: 12px 0 0; }

.sample-line { text-align: center; margin: 14px 0 4px; }

#showcase { margin-top: 22px; }

.showcase-blurb {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin: 0 0 10px;
  line-height: 1.5;
}

.showcase-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.showcase-row figure { margin: 0; flex: 1; min-width: 0; }

.showcase-row img,
.showcase-row video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.showcase-row figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-top: 4px;
}

#gallery-strip { margin-top: 18px; }

.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }

.gal-item { position: relative; flex: 0 0 auto; }

.gal-open { background: none; border: 2px solid var(--card-edge); border-radius: 10px; padding: 3px; cursor: pointer; display: block; }

.gal-open img { width: 64px; height: 64px; border-radius: 7px; display: block; object-fit: cover; }

.gal-del { position: absolute; top: -7px; right: -7px; width: 21px; height: 21px; border-radius: 50%; border: none; background: var(--ink); color: var(--card, #fff); font-size: 13px; line-height: 1; cursor: pointer; }

.piece-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; }

.style-fold { margin-top: 10px; }

.build-headline {
  margin: 4px 0 12px;
  font-weight: 600;
  font-size: 1.02rem;
}

.parts-scroll {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  border-radius: 10px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.fold-caption {
  margin: 10px 0 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-dim);
}

.style-fold > summary { font-weight: 600; }

.linklike {
  background: none;
  border: none;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink-dim);
  text-decoration: underline;
  cursor: pointer;
}

.version-warn {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--note);
  color: var(--note);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- iOS save-to-Photos overlay ---------- */

.save-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(16, 17, 20, 0.94);
}

.save-overlay[hidden] { display: none; }

.save-overlay img {
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  max-width: min(88vw, 480px);
  max-height: 62vh;
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.save-overlay .btn {
  flex: 0 0 auto;
  padding: 12px 32px;
}

.save-overlay p {
  color: #F2F3F5;
  font-size: 0.95rem;
  text-align: center;
  max-width: 300px;
  line-height: 1.45;
}

/* ---------- sticky mini preview (mobile) ---------- */

.mini-preview {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 86px;
  height: 86px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  z-index: 60;
  cursor: pointer;
}

.mini-preview canvas { width: 100%; height: 100%; display: block; }

@media (min-width: 920px) {
  .mini-preview { display: none !important; }
}

.stop-icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  margin-right: 7px;
  vertical-align: -5px;
  color: var(--ink-dim);
}

.stop-icon svg { width: 100%; height: 100%; }

.merge-label { display: inline-flex; align-items: center; }

/* auto-appearing guidance when a control is parked or finds nothing */
.control-note {
  margin: -4px 0 12px;
  padding-left: 76px;
  font-size: 0.82rem;
  color: var(--note);
  opacity: 0.9;
}

@media (max-width: 420px) {
  .control-note { padding-left: 0; }
}

/* ---------- Custom palette picker ---------- */

.palette-picker { margin-top: 2px; margin-bottom: 12px; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 8px;
  padding: 12px 14px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
  position: relative;
  opacity: 0.3;
  transition: opacity 0.12s, box-shadow 0.12s;
}

.swatch[aria-pressed="true"] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--focus);
}

.swatch:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.swatch-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  font-size: 0.56rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.merge-label {
  min-width: 40px;
  text-align: right;
  font-size: 0.88rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

input[type="range"]:disabled { opacity: 0.35; }
