/* ─── Reset & tokens ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --accent:       #a78bfa;
  --accent-dim:   rgba(167,139,250,.15);
  --accent-bdr:   rgba(167,139,250,.35);
  --bg:           #0f0f0f;
  --surface:      rgba(255,255,255,.04);
  --surface-h:    rgba(255,255,255,.07);
  --border:       rgba(255,255,255,.07);
  --muted:        #666;
  --mid:          #888;
  --lock:         #facc15;
  --lock-bdr:     rgba(250,204,21,.4);
  --lock-dim:     rgba(250,204,21,.1);
}

html {
  background: var(--bg);
  color: #fff;
}

body {
  font-family: var(--font);
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top 10%, rgba(167,139,250,.16), transparent 18%),
                    radial-gradient(circle at 80% 15%, rgba(56,189,248,.12), transparent 14%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 1.25rem 3.5rem;
  gap: 1.75rem;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* ─── Logo / Header ────────────────────────────────────────────────────────── */
header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.logo-text {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.logo-60  { transition: color .45s ease; }
.logo-30  { transition: color .45s ease; }
.logo-10  { transition: color .45s ease; }
.logo-sep { color: #2a2a2a; margin: 0 0.06em; font-weight: 200; }
.logo-gen {
  font-size: 0.32em;
  font-weight: 300;
  color: #3a3a3a;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-left: 0.6em;
  align-self: flex-end;
  margin-bottom: 0.18em;
}

header p {
  color: #c1c1c1;
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  max-width: 44ch;
  line-height: 1.55;
}

main {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-inline: clamp(1rem, 4vw, 4rem);
}

/* ─── Controls ─────────────────────────────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.controls > * {
  flex-shrink: 0;
}

.regen-btn,
.preview-btn {
  min-width: 14rem;
}

/* Color circle */
.color-picker-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.55rem;
}

.color-picker-wrapper label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  font-weight: 700;
}

.color-swatch-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.14);
  cursor: pointer;
  overflow: visible; /* allow ring to show outside */
  transition: transform .2s, border-color .2s, box-shadow .2s;
  /* pulsing ring animation to invite the user */
  animation: swatchInvite 2.4s ease-in-out infinite;
}

.color-swatch-btn::after {
  content: 'escolha';
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #aaa;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.85;
}

.color-swatch-btn:hover::after {
  color: #fff;
}
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.14);
  cursor: pointer;
  overflow: visible; /* allow ring to show outside */
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  /* pulsing ring animation to invite the user */
  animation: swatchInvite 2.4s ease-in-out infinite;
}

.color-swatch-btn input[type="color"] {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* the inner clipping area stays circular */
.color-swatch-btn .color-swatch-bg,
.color-swatch-btn input[type="color"] {
  border-radius: 50%;
}

/* stop inviting once the user has interacted */
.color-swatch-btn.used {
  animation: none;
}

@keyframes swatchInvite {
  0%, 100% {
    box-shadow:
      0 0 0 0   rgba(255,255,255,.0),
      0 0 0 0   rgba(255,255,255,.0);
  }
  40% {
    box-shadow:
      0 0 0 5px  rgba(255,255,255,.12),
      0 0 0 10px rgba(255,255,255,.05);
  }
  60% {
    box-shadow:
      0 0 0 7px  rgba(255,255,255,.08),
      0 0 0 14px rgba(255,255,255,.03);
  }
}

.color-swatch-btn:hover {
  transform: scale(1.1);
  border-color: rgba(255,255,255,.38);
  animation: none; /* stop pulsing on hover — feels responsive */
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}

.color-swatch-btn input[type="color"] {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

.color-swatch-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background-color .35s ease;
}

/* Regen button */
.regen-btn {
  height: 48px;
  padding: 0 1.2rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-bdr);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.regen-btn kbd {
  background: rgba(167,139,250,.18);
  border: 1px solid rgba(167,139,250,.3);
  border-radius: 5px;
  padding: 0.1rem 0.45rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(167,139,250,.8);
  letter-spacing: 0.04em;
  line-height: 1.6;
  pointer-events: none;
}

.regen-btn:hover {
  background: rgba(167,139,250,.24);
  box-shadow: 0 0 0 4px rgba(167,139,250,.1);
  transform: scale(1.03);
}
.regen-btn:active { transform: scale(.97); }

/* Preview button */
.preview-btn {
  height: 48px;
  padding: 0 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #aaa;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background .2s, transform .15s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.preview-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: stroke .2s;
}

.preview-btn:hover {
  background: var(--surface-h);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.04);
  transform: scale(1.03);
}
.preview-btn:active { transform: scale(.97); }


/* ─── Palette ──────────────────────────────────────────────────────────────── */
.palette-wrapper {
  width: 100%;
  max-width: none;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.palette {
  display: flex;
  border-radius: 1.5rem;
  overflow: visible;
  height: clamp(260px, 44vw, 420px);
  box-shadow: 0 28px 72px rgba(0,0,0,.65);
}

.swatch-60 {
  border-radius: 1.5rem 0 0 1.5rem;
}

.swatch-10 {
  border-radius: 0 1.5rem 1.5rem 0;
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1rem;
  position: relative;
  overflow: hidden;
  transition: flex .55s cubic-bezier(.4,0,.2,1), background-color .42s ease;
  cursor: default;
}

@media (hover: hover) {
  .swatch:not(.locked):hover { flex: var(--hf) !important; }
}

.swatch-60 { flex: 6; --hf: 7.5; }
.swatch-30 { flex: 3; --hf: 4.5; }
.swatch-10 { flex: 1; --hf: 2;   }

/* Locked state */
.swatch.locked {
  box-shadow: inset 0 0 0 3px var(--lock);
  z-index: 1;
}

.swatch.locked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,204,21,.07) 0%, transparent 55%);
  pointer-events: none;
}

/* Labels */
.swatch-percentage {
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.35;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.swatch-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.swatch-hex {
  font-size: clamp(0.66rem, 1.4vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  width: fit-content;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background .18s;
}

.swatch-hex:hover { background: rgba(0,0,0,.5); }
.swatch-hex.copied::after { content: ' ✓'; }

.swatch-role {
  font-size: clamp(0.56rem, 1.1vw, 0.68rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.52;
  font-weight: 500;
}

/* Badge area (top-right) */
.badge-area {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.user-badge {
  background: rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Lock button */
.lock-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .18s, transform .14s, border-color .18s;
}

.lock-btn:hover  { background: rgba(0,0,0,.52); transform: scale(1.13); }
.lock-btn:active { transform: scale(.9); }

.lock-btn svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: rgba(255,255,255,.65);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .18s;
}

.swatch.locked .lock-btn {
  background: var(--lock-dim);
  border-color: var(--lock-bdr);
}
.swatch.locked .lock-btn svg { stroke: var(--lock); }

@keyframes lockPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(.88); }
  100% { transform: scale(1); }
}
.lock-pop { animation: lockPop .32s ease; }

/* ─── Meta row ─────────────────────────────────────────────────────────────── */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: none;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.harmony-info {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.harmony-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-bdr);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lock-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #a9a9a9;
  transition: color .25s;
}

.lock-status.active { color: var(--lock); }

.lock-status svg {
  width: 12px; height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── Values panel ─────────────────────────────────────────────────────────── */
.values-panel {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.value-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  transition: background .22s, border-color .22s;
}

.value-card:hover { background: var(--surface-h); }

.value-card.card-locked {
  border-color: var(--lock-bdr);
  background: var(--lock-dim);
}

.vc-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.vc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color .42s ease;
}

.vc-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  flex: 1;
}

.vc-lock-icon {
  width: 10px; height: 10px;
  fill: none;
  stroke: var(--lock);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .2s;
  flex-shrink: 0;
}

.value-card.card-locked .vc-lock-icon { opacity: 1; }

.vc-hex {
  font-size: clamp(.88rem, 2vw, 1.05rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d5d5d5;
  cursor: pointer;
  transition: color .18s;
}

.vc-hex:hover  { color: #fff; }
.vc-hex.copied { color: var(--accent); }

.vc-rgb {
  font-size: 0.68rem;
  color: #3d3d3d;
  margin-top: 0.18rem;
  font-variant-numeric: tabular-nums;
}

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.palette-wrapper, .values-panel {
  animation: fadeSlide .45s ease forwards;
}

@keyframes swatchPulse {
  0%   { filter: brightness(1); }
  45%  { filter: brightness(1.16); }
  100% { filter: brightness(1); }
}

.swatch-pulse { animation: swatchPulse .36s ease; }

/* ─── About rule ───────────────────────────────────────────────────────────── */
.about-rule {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-top: 1px solid #1a1a1a;
  padding-top: 2rem;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-num {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bdbdbd;
}

.about-item p {
  font-size: 0.75rem;
  color: #bfbfbf;
  line-height: 1.75;
}

.about-item strong {
  color: #555;
  font-weight: 700;
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: none;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.support-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #3a3a3a;
  font-weight: 700;
}

.support-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
  white-space: nowrap;
}

.support-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.support-github {
  color: #888;
  border: 1px solid #252525;
  background: transparent;
}

.support-github:hover {
  color: #f78166;
  border-color: #f78166;
  background: rgba(247,129,102,.07);
  transform: scale(1.03);
}

.support-pix {
  color: #888;
  border: 1px solid #252525;
  background: transparent;
}

.support-pix:hover {
  color: #32bcad;
  border-color: #32bcad;
  background: rgba(50,188,173,.07);
  transform: scale(1.03);
}

/* ─── Pix modal ────────────────────────────────────────────────────────────── */
.pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.pix-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.pix-modal {
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  max-width: 280px;
  width: 90%;
  transform: translateY(16px) scale(.97);
  transition: transform .25s;
}

.pix-overlay.open .pix-modal {
  transform: translateY(0) scale(1);
}

.pix-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  padding: 0.2rem 0.4rem;
}
.pix-close:hover { color: #fff; }

.pix-title {
  font-size: 1rem;
  font-weight: 700;
  color: #eee;
  text-align: center;
  line-height: 1.4;
}

.pix-qr {
  background: #fff;
  border-radius: 1rem;
  padding: 0.5rem;
  margin: 0.25rem 0;
}

.pix-qr img {
  display: block;
  border-radius: 0.5rem;
}

.pix-key {
  font-size: 0.72rem;
  color: #555;
  text-align: center;
}

.pix-key strong {
  color: #888;
  word-break: break-all;
}

.pix-copy {
  background: rgba(50,188,173,.12);
  border: 1px solid rgba(50,188,173,.3);
  color: #32bcad;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: 0.02em;
}
.pix-copy:hover { background: rgba(50,188,173,.22); transform: scale(1.03); }
.pix-copy:active { transform: scale(.97); }
.pix-copy.copied { color: #fff; background: rgba(50,188,173,.35); }
@media (max-width: 900px) {
  .help-toggle {
    top: 0.85rem;
    right: 0.85rem;
  }
}

.help-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1001;
  transition: transform .2s, background .2s, border-color .2s;
}

.help-toggle:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
}

.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 1050;
}

.help-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.help-modal {
  width: min(100%, 460px);
  background: #101010;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color: #ececec;
  position: relative;
}

.help-modal h2 {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.help-modal p,
.help-modal li {
  color: #d1d1d1;
  line-height: 1.7;
}

.help-modal ul {
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
}

.help-modal li {
  margin-bottom: 0.55rem;
}

.help-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: #ccc;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.help-close:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .values-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .about-grid {
    gap: 1.2rem;
  }
}

@media (max-width: 760px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .regen-btn,
  .preview-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .color-picker-wrapper {
    width: 100%;
    justify-content: center;
  }

  .meta-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  body { padding: 1.4rem 0.7rem 2.5rem; gap: 1.35rem; }

  .palette {
    flex-direction: column;
    height: auto;
    border-radius: 1.25rem;
  }

  .swatch-60 {
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .swatch-10 {
    border-radius: 0 0 1.25rem 1.25rem;
  }

  /* Fixed pixel heights so the 10% swatch isn't a sliver */
  .swatch-60 { flex: 0 0 195px !important; }
  .swatch-30 { flex: 0 0 125px !important; }
  .swatch-10 { flex: 0 0 88px  !important; }

  /* On mobile the hover expand makes no sense vertically — disable it */
  .swatch:not(.locked):hover { flex: unset !important; }

  .swatch-percentage { font-size: 1.35rem; opacity: .32; }

  .values-panel { grid-template-columns: 1fr; gap: 0.55rem; }
}
