* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Lato", sans-serif;
  background: #ffffff;
  padding: 32px;
}

#page-layout {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  gap: 0;
}

#controls {
  background: #ffffff;
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #ddd8cc;
}

.wc-section-label {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #666;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.wc-section-sublabel {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  margin-top: 14px;
}

.wc-divider {
  border: none;
  border-top: 1px solid #ddd8cc;
  margin: 20px 0;
}

.wc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.wc-slider-label {
  font-size: 16px;
  color: #666;
  min-width: 40px;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  accent-color: #555;
  cursor: pointer;
}

.wc-val {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-width: 28px;
  text-align: right;
}

.wc-swatches {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 4px;
}

.wc-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  flex-shrink: 0;
  transition: transform 0.12s, border-color 0.12s;
}

.wc-swatch:hover  { transform: scale(1.12); }
.wc-swatch.active { border-color: #222; transform: scale(1.08); }

.wc-hex-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc-preview-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.wc-hex-input {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 16px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #222;
  outline: none;
}

.wc-hex-input:focus    { border-color: #888; }
.wc-hex-input.wc-error { border-color: #e15759; background: #fff5f5; }

/* ── Apply button (small, inline with hex input) ── */
.wc-btn {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 8px;
  background: #444;
  border: none;
  color: #fff;
  transition: background 0.15s;
  flex-shrink: 0;
}

.wc-btn:hover { background: #222; }

/* ── Download button row ── */
.wc-btn-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

/* ── All three action buttons — equal width ── */
.wc-download-btn,
.wc-mp4-btn {
  width: calc(33.333% - 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.wc-download-btn:hover           { background: #222; }
.wc-mp4-btn:hover:not(:disabled) { background: #222; }
.wc-mp4-btn:disabled             { opacity: 0.55; cursor: not-allowed; }

/* ── Free mode: muted Download Animation button ── */
.wc-mp4-free {
  opacity: 0.55;
  position: relative;
  overflow: hidden;
}

.wc-mp4-free:hover {
  opacity: 0.7;
  background: #444;  /* prevent darkening on hover in free mode */
  cursor: pointer;
}

/* ── PRO ribbon badge on Download Animation button ── */
.wc-pro-badge {
  position: absolute;
  top: 4px;
  right: -10px;
  background: #162955;
  color: #fff;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 2px 14px 2px 6px;
  transform: rotate(35deg);
  transform-origin: top right;
  pointer-events: none;
}

/* ── Free/pro banner below buttons ── */
.wc-free-banner {
  margin-top: 12px;
  font-size: 12px;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.wc-dot { color: #aaa; }

.wc-upgrade-link {
  color: #162955;
  font-weight: bold;
  text-decoration: none;
  margin-left: 4px;
}

.wc-upgrade-link:hover { text-decoration: underline; }

/* ── Chart wrapper ── */
#wrapper {
  padding: 20px 24px;
  background: #ffffff;
}
