/* ── Platform buttons - right column layout ── */
.vc-psh-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.vc-psh-left { flex: 1; min-width: 0; }
.vc-psh-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 6px;
  min-width: 156px;
}
.vc-platform-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.vc-platform-btn--docs {
  background: transparent;
  color: var(--text2) !important;
  border: 1px solid var(--lavender);
}
.vc-platform-btn--docs:hover { border-color: var(--violet); color: var(--text) !important; }
[data-theme="light"] .vc-platform-btn--docs {
  border-color: rgba(107,58,154,0.45);
}
.vc-platform-btn--mac {
  background: var(--violet);
  color: #fff !important;
  border: 1px solid transparent;
}
.vc-platform-btn--mac:hover { background: #6a3d8a; color: #fff !important; }
.vc-platform-btn--mac:visited { color: #fff !important; }
.vc-platform-btn--ios {
  background: transparent;
  color: var(--text2) !important;
  border: 1px solid var(--lavender);
}
.vc-platform-btn--ios:hover { border-color: var(--violet); color: var(--text) !important; }
.vc-platform-btn--ios:visited { color: var(--text2) !important; }
.vc-platform-tag {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
}
@media (max-width: 600px) {
  .vc-psh-layout { flex-direction: column; gap: 16px; }
  .vc-psh-right { flex-direction: row; flex-wrap: wrap; align-items: flex-start; min-width: 0; }
}

/* ── Vesper Colors status tokens ── */
:root {
  --vc-pass:      #4ade80;
  --vc-pass-dim:  rgba(74,222,128,0.1);
  --vc-pass-bdr:  rgba(74,222,128,0.22);
  --vc-warn:      #f39e1e;
  --vc-fail:      #f87171;
  --vc-fail-dim:  rgba(248,113,113,0.1);
}
[data-theme="light"] {
  --vc-pass:      #15803d;
  --vc-pass-dim:  rgba(21,128,61,0.1);
  --vc-pass-bdr:  rgba(21,128,61,0.22);
  --vc-warn:      #a16207;
  --vc-fail:      #b91c1c;
  --vc-fail-dim:  rgba(185,28,28,0.09);
}

/* ── Page ── */
.vc-page { min-height: 60vh; }

/* ── Header ── */
.psh-wordmark {
  display: block;
  margin-bottom: 10px;
}
.psh-wordmark-svg {
  height: 28px;
  width: auto;
  display: block;
}
.vc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.vc-desc {
  font-family: 'Gabarito', sans-serif;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.55;
  max-width: 580px;
  min-height: 46px;
}

/* ── Mobile tabs ── */
.vc-mobile-tabs {
  display: none;
  border-bottom: 1px solid var(--border2);
  background: var(--bg);
}
.vc-mobile-tab {
  flex: 1;
  padding: 13px 0;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.vc-mobile-tab.active { color: var(--text); border-bottom-color: var(--violet); }

/* ── Two-column layout ── */
.vc-tool {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.vc-sidebar {
  width: 340px;
  min-width: 340px;
  flex-shrink: 0;
  border-right: 1px solid var(--border2);
  padding: 24px 24px 40px 0;
  position: sticky;
  top: calc(var(--nav-h) + 1px);
  max-height: calc(100vh - var(--nav-h) - 1px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.vc-sidebar::-webkit-scrollbar { width: 4px; }
.vc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Preview column ── */
.vc-preview {
  flex: 1;
  min-width: 0;
  padding: 24px 16px 40px 16px;
}

/* ── Input row ── */
.vc-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.vc-swatch-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.vc-swatch {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  display: block;
}
.vc-swatch:hover { opacity: 0.88; }
.vc-swatch:active { transform: scale(0.97); }
.vc-swatch:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.vc-swatch-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.vc-hex-display {
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--lavender);
  letter-spacing: 0.04em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.vc-hex-display:hover { color: var(--text); }
.vc-hex-display:focus-visible { outline: 2px solid var(--violet); }
.vc-swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender);
  font-size: 17px;
  line-height: 1;
  transition: background 0.15s;
}
.vc-swap-btn:hover { background: var(--bg2); }
.vc-swap-btn:focus-visible { outline: 2px solid var(--violet); }

/* ── Text preview box ── */
.vc-text-preview {
  border-radius: 10px;
  border: 1px solid var(--border2);
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vc-preview-sample { display: flex; flex-direction: column; gap: 3px; }
.vc-preview-size-lbl {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.vc-preview-large {
  font-family: 'Gabarito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.vc-preview-normal {
  font-family: 'Gabarito', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.vc-preview-divider { border: none; border-top: 1px solid rgba(128,128,128,0.15); }

/* ── Ratio ── */
.vc-ratio-section { text-align: center; padding: 4px 0 14px; }
.vc-ratio-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vc-ratio-lbl {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 4px;
}

/* ── WCAG badges ── */
.vc-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.vc-badge {
  background: var(--bg3);
  border-radius: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vc-badge--pass { border-color: var(--vc-pass-bdr); }
.vc-badge-level {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.vc-badge-size {
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  color: var(--text2);
}
.vc-badge-pill {
  border-radius: 5px;
  padding: 3px 9px;
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.vc-badge-pill--pass { background: var(--vc-pass-dim); color: var(--vc-pass); }
.vc-badge-pill--fail { background: var(--vc-fail-dim); color: var(--vc-fail); }

/* ── Help me choose ── */
/* ── Guides card ── */
.vc-guides-card {
  background: var(--bg3);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border);
}
.vc-guides-eyebrow { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.vc-guides-eyebrow-txt {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lavender);
}
.vc-guides-title {
  font-family: 'Gabarito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 5px;
}
.vc-guides-summary {
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 9px;
}
.vc-guides-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet) !important;
  text-decoration: none !important;
}
.vc-guides-link:hover { color: var(--violet-hover) !important; }

/* ── Share button ── */
.vc-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  background: var(--violet);
  border: none;
  border-radius: 10px;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 0;
  margin-bottom: 10px;
  text-decoration: none;
}
.vc-share-btn:visited { color: #fff; }
.vc-share-btn:hover { background: #6a3d8a; }
.vc-share-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.vc-share-btn.copied { background: #166534; }

/* ── Color details text link ── */
.vc-color-details {
  display: block;
  font-size: 12px;
  color: var(--lavender);
  text-decoration: none;
  text-align: center;
  margin-top: 6px;
  transition: color 0.14s;
  letter-spacing: 0.01em;
}
.vc-color-details:hover { color: var(--text); }

/* ── Pair bar ── */
.vc-pair-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border-radius: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.vc-pair-swatches { display: flex; }
.vc-pair-swatch {
  width: 26px; height: 26px;
  border-radius: 13px;
  border: 1px solid var(--border);
}
.vc-pair-swatch:last-child { margin-left: -7px; }
.vc-pair-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vc-pair-hexes { font-family: 'Gabarito', sans-serif; font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.vc-pair-sub { font-family: 'Gabarito', sans-serif; font-size: 10px; color: var(--text3); }
.vc-pair-ratio {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── Section rows ── */
.vc-sec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  margin-top: 20px;
}
.vc-sec-row:first-of-type { margin-top: 0; }
.vc-sec-row-lbl {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
}
.vc-sec-row-line { flex: 1; height: 1px; background: var(--border2); }

/* ── Preview UI sections ── */
.pv-nav {
  border-radius: 10px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pv-nav-brand { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 700; }
.pv-nav-links { display: flex; align-items: center; gap: 16px; }
.pv-nav-link { font-family: 'Gabarito', sans-serif; font-size: 13px; }
.pv-nav-cta {
  font-family: 'Gabarito', sans-serif; font-size: 12px; font-weight: 600;
  border-width: 1px; border-style: solid; border-radius: 20px; padding: 5px 14px;
}
.pv-hero { border-radius: 10px; padding: 28px; }
.pv-hero-ey {
  font-family: 'Gabarito', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; margin-bottom: 8px;
}
.pv-hero-h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px;
}
.pv-hero-body { font-family: 'Gabarito', sans-serif; font-size: 15px; line-height: 1.55; opacity: 0.8; margin-bottom: 16px; }
.pv-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-btn-primary { font-family: 'Gabarito', sans-serif; font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 8px; border: none; cursor: default; }
.pv-btn-ghost {
  font-family: 'Gabarito', sans-serif; font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px; border-width: 1px; border-style: solid; background: transparent; cursor: default;
}
.pv-reversed { border-radius: 10px; padding: 24px 28px; }
.pv-form { border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pv-form-label { font-family: 'Gabarito', sans-serif; font-size: 13px; font-weight: 600; }
.pv-form-input {
  border-width: 1px; border-style: solid; border-radius: 8px;
  padding: 10px 14px; font-family: 'Gabarito', sans-serif; font-size: 14px; background: transparent;
}
.pv-form-helper { font-family: 'Gabarito', sans-serif; font-size: 12px; line-height: 1.5; opacity: 0.65; }
.pv-form-submit { border-radius: 8px; padding: 12px; font-family: 'Gabarito', sans-serif; font-size: 14px; font-weight: 600; text-align: center; border: none; cursor: default; }
.pv-footer { border-radius: 10px; padding: 20px; }
.pv-footer-brand { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pv-footer-tag { font-family: 'Gabarito', sans-serif; font-size: 13px; line-height: 1.5; opacity: 0.7; margin-bottom: 10px; }
.pv-footer-links { display: flex; gap: 18px; margin-bottom: 10px; }
.pv-footer-link { font-family: 'Gabarito', sans-serif; font-size: 13px; opacity: 0.65; }
.pv-footer-copy { font-family: 'Gabarito', sans-serif; font-size: 11px; opacity: 0.45; }

/* ── Color picker modal ── */
.vc-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
[data-theme="light"] .vc-picker-overlay { background: rgba(0,0,0,0.4); }
.vc-picker-overlay.open { opacity: 1; pointer-events: all; }
.vc-picker-sheet {
  background: var(--bg3);
  border-radius: 16px;
  padding: 22px 22px 18px;
  width: 320px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--border);
  transform: scale(0.97) translateY(8px);
  transition: transform 0.18s;
}
[data-theme="light"] .vc-picker-sheet {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.16);
}
.vc-picker-overlay.open .vc-picker-sheet { transform: scale(1) translateY(0); }
.vc-picker-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vc-picker-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); }
.vc-picker-preview { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); flex-shrink: 0; }
.vc-hsv-wrap {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.vc-hsv-canvas { display: block; width: 100%; height: 100%; }
.vc-hsv-thumb {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.vc-slider-wrap { margin-bottom: 12px; }
.vc-slider-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 6px;
}
.vc-hue-track {
  width: 100%; height: 22px; border-radius: 11px;
  background: linear-gradient(to right,
    hsl(0,100%,50%),hsl(30,100%,50%),hsl(60,100%,50%),
    hsl(90,100%,50%),hsl(120,100%,50%),hsl(150,100%,50%),
    hsl(180,100%,50%),hsl(210,100%,50%),hsl(240,100%,50%),
    hsl(270,100%,50%),hsl(300,100%,50%),hsl(330,100%,50%),
    hsl(360,100%,50%));
  position: relative;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.vc-hue-thumb {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.vc-shades-wrap { margin-bottom: 14px; }
.vc-shades-row { display: flex; gap: 5px; }
.vc-shade-chip {
  flex: 1; height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.1s;
  background: none;
  padding: 0;
}
.vc-shade-chip:hover { transform: scaleY(1.07); }
.vc-shade-chip--active { border: 2.5px solid var(--violet) !important; }
.vc-shade-chip:focus-visible { outline: 2px solid var(--violet); }
.vc-hex-row {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 13px;
  height: 44px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.vc-hex-row:focus-within { border-color: var(--violet); }
[data-theme="light"] .vc-hex-row { background: var(--bg2); }
.vc-hex-hash { font-family: 'Gabarito', sans-serif; font-size: 15px; font-weight: 600; color: var(--lavender); margin-right: 4px; user-select: none; }
.vc-hex-input {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: 'Gabarito', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.vc-hex-input::placeholder { color: var(--text3); }
.vc-picker-actions { display: flex; gap: 10px; }
.vc-picker-cancel {
  flex: 1;
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px;
  font-family: 'Gabarito', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text2); cursor: pointer;
  transition: color 0.15s;
}
.vc-picker-cancel:hover { color: var(--text); }
[data-theme="light"] .vc-picker-cancel { background: var(--bg2); }
.vc-picker-done {
  flex: 1;
  background: var(--violet); border: none; border-radius: 9px;
  padding: 12px;
  font-family: 'Gabarito', sans-serif; font-size: 14px; font-weight: 600;
  color: #fff; cursor: pointer;
  transition: background 0.15s;
}
.vc-picker-done:hover { background: var(--violet-hover); }
.vc-picker-done:focus-visible, .vc-picker-cancel:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }


/* ── Preview: data table ── */
.pv-table-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(128,128,128,0.15);
}
.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
}
.pv-table thead tr { }
.pv-table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}
.pv-table td {
  padding: 9px 14px;
  border-top: 1px solid rgba(128,128,128,0.1);
}
.pv-table tbody tr:nth-child(even) { }

/* ── Preview: charts ── */
.pv-charts-wrap {
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pv-chart-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pv-chart-svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.pv-bar-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
}
.pv-line-dot { }


/* ── Color name row ── */
.vc-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  width: 100%;
  transition: background 0.12s;
  min-height: 24px;
}
.vc-name-row:hover { background: var(--bg2); }
.vc-name-row:hover .vc-name-copy-icon { opacity: 0.7; }
.vc-name-row:focus-visible { outline: 2px solid var(--violet); }
.vc-name-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  word-break: break-word;
}
.vc-name-copy-icon {
  opacity: 0;
  transition: opacity 0.12s;
  color: var(--text2);
  flex-shrink: 0;
}

/* ── RGB/CMYK value rows ── */
.vc-val-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  width: 100%;
  transition: background 0.12s;
}
.vc-val-row:hover { background: var(--bg3); }
.vc-val-row:focus-visible { outline: 2px solid var(--violet); }
.vc-val-type {
  font-family: 'Gabarito', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  min-width: 26px;
  text-align: right;
  flex-shrink: 0;
}
.vc-val-text {
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--lavender);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ── Sample pairings strip ── */
.vc-pairs-lbl {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.vc-pairs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.vc-pair-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 1 1 calc(20% - 6px);
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  transition: border-color 0.15s;
}
.vc-pair-chip:hover { border-color: var(--border); }
.vc-pair-chip.active { border-color: var(--violet); }
.vc-pair-chip:focus-visible { outline: 2px solid var(--violet); }
.vc-pair-swatches { display: flex; }
.vc-pair-chip-sw {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
}
.vc-pair-chip-sw:last-child { margin-left: -5px; }
.vc-pair-name {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

/* ── Color blindness simulator ── */
.vc-cb-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.vc-cb-lbl {
  font-family: 'Gabarito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-right: 2px;
  white-space: nowrap;
}
.vc-cb-btn {
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: none;
  color: var(--text2);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.vc-cb-btn:hover { color: var(--text); border-color: var(--lavender); }
.vc-cb-btn.active { background: var(--violet); color: #fff; border-color: var(--violet); }
.vc-cb-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.vc-cb-note {
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 12px;
  line-height: 1.5;
  padding: 6px 10px;
  background: var(--bg3);
  border-radius: 6px;
  border-left: 2px solid var(--border);
}


/* ── Preview panel light/dark toggle ── */
.vc-preview-theme-btn {
  align-self: stretch;
  aspect-ratio: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 6px;
  min-width: 52px;
  color: var(--text2);
}
.vc-preview-theme-btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.vc-preview-theme-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.vc-preview-theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.vc-preview-theme-lbl {
  font-family: 'Gabarito', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

/* ── Preview panel independent light theme ── */
#vc-preview-panel[data-preview-theme="light"] {
  --bg: #f7f8fc;
  --bg3: #e4e8f2;
  --border2: rgba(107,58,154,0.12);
  --border: rgba(107,58,154,0.2);
  --text: #111827;
  --text2: #374151;
  --text3: #6b7280;
  --lavender: #5a3498;
  --violet: #6b3a9a;
  background: #f7f8fc;
}
#vc-preview-panel[data-preview-theme="dark"] {
  --bg: #101420;
  --bg3: #192135;
  --border2: rgba(240,244,255,.08);
  --border: rgba(120,74,157,0.18);
  --text: #f0f4ff;
  --text2: #8892a8;
  --text3: #6d7f99;
  --lavender: #998ac2;
  --violet: #784a9d;
  background: #101420;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .vc-tool { flex-direction: column; padding: 0 20px; }
  .vc-sidebar {
    width: 100%; min-width: unset;
    border-right: none; border-bottom: 1px solid var(--border2);
    padding: 20px 0 24px;
    position: static; max-height: none; overflow-y: visible;
  }
  .vc-preview { padding: 20px 0 32px; }
  #vc-preview-panel[data-preview-theme="light"] { padding-left: 16px; padding-right: 16px; }
  /* Mobile layout */
  .vc-mobile-tabs { display: flex; }
  .vc-sidebar[data-hidden="true"],
  .vc-preview[data-hidden="true"] { display: none; }
}
@media (max-width: 480px) {
  .vc-tool { padding: 0 16px; }
  .vc-ratio-num { font-size: 42px; }
}

/* ── HIGH CONTRAST: Colors tool ── */
/* Mac App download button */
html[data-contrast="high"] .vc-platform-btn--mac,
html[data-contrast="high"] .vc-platform-btn--mac:visited { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html[data-contrast="high"] .vc-platform-btn--mac:hover { background: #111 !important; }
html[data-theme="light"][data-contrast="high"] .vc-platform-btn--mac,
html[data-theme="light"][data-contrast="high"] .vc-platform-btn--mac:visited { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html[data-theme="light"][data-contrast="high"] .vc-platform-btn--mac:hover { background: #eee !important; }
/* Hex inputs */
html[data-contrast="high"] .vc-hex-input { color: #fff !important; }
html[data-theme="light"][data-contrast="high"] .vc-hex-input { color: #000 !important; }
/* Docs button */
html[data-contrast="high"] .vc-platform-btn--docs,
html[data-contrast="high"] .vc-platform-btn--docs:visited { background: transparent !important; color: #fff !important; border: 2px solid #fff !important; }
html[data-theme="light"][data-contrast="high"] .vc-platform-btn--docs,
html[data-theme="light"][data-contrast="high"] .vc-platform-btn--docs:visited { background: transparent !important; color: #000 !important; border: 2px solid #000 !important; }

/* ── HIGH CONTRAST EXEMPTION: preview panel ── */
/* The preview panel exists to show the user's chosen color pair.
   Forcing HC colors would defeat the purpose of the tool.
   All HC variable overrides are reverted inside .vc-preview. */
html[data-contrast="high"] .vc-preview,
html[data-contrast="high"] #vc-preview-panel,
html[data-theme="light"][data-contrast="high"] .vc-preview,
html[data-theme="light"][data-contrast="high"] #vc-preview-panel {
  --violet: #784a9d !important;
  --lavender: #998ac2 !important;
  --amber: #fdbb25 !important;
  --bg: #101420 !important;
  --bg2: #151b2e !important;
  --bg3: #1e2a3a !important;
  --text: #f0f4ff !important;
  --text2: #8892a8 !important;
  --text3: #6d7f99 !important;
  --border: rgba(255,255,255,0.08) !important;
  --border2: rgba(255,255,255,0.04) !important;
}
html[data-theme="light"][data-contrast="high"] #vc-preview-panel[data-preview-theme="light"],
html[data-contrast="high"] #vc-preview-panel[data-preview-theme="light"] {
  --bg: #ffffff !important;
  --bg2: #f7f8fc !important;
  --bg3: #edf0f8 !important;
  --text: #111827 !important;
  --text2: #374151 !important;
  --text3: #6b7280 !important;
  --border: rgba(0,0,0,0.1) !important;
}

/* HC: swatch buttons need a strong border so any fill color stays distinguishable */
html[data-contrast="high"] .vc-swatch { border: 2px solid #fff !important; }
html[data-theme="light"][data-contrast="high"] .vc-swatch { border: 2px solid #000 !important; }

/* HC: pv-btn-primary uses JS inline styles so !important is required to override */
html[data-contrast="high"] .pv-btn-primary { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html[data-contrast="high"] .pv-btn-primary:hover { background: #111 !important; }
html[data-theme="light"][data-contrast="high"] .pv-btn-primary { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html[data-theme="light"][data-contrast="high"] .pv-btn-primary:hover { background: #eee !important; }

/* HC: vc-share-btn uses var(--violet) which becomes #fff in HC dark */
html[data-contrast="high"] .vc-share-btn { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html[data-contrast="high"] .vc-share-btn:hover { background: #111 !important; }
html[data-theme="light"][data-contrast="high"] .vc-share-btn { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html[data-theme="light"][data-contrast="high"] .vc-share-btn:hover { background: #eee !important; }
