.tool-section {
  --cp-surface: #ffffff;
  --cp-surface-muted: #f4f7fb;
  --cp-border: rgba(11, 22, 53, 0.1);
  --cp-ink: #0f172f;
  --cp-ink-soft: #617086;
  --cp-shadow: 0 24px 70px rgba(12, 20, 39, 0.1);
}

.cp-shell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
  box-shadow: var(--cp-shadow);
}

.cp-shell::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 178, 220, 0.18) 0%, rgba(5, 178, 220, 0) 72%);
  pointer-events: none;
}

.cp-toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 18px 22px 22px;
  border-bottom: 1px solid var(--cp-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 252, 0.93) 100%);
  backdrop-filter: blur(18px);
}

.cp-toolbar-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.cp-toolbar-message {
  margin: 0;
  min-width: 0;
  color: #55657a;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  font-weight: 500;
}

.cp-toolbar-controls {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(220px, 360px) auto auto;
  grid-template-areas:
    "mode-label seed-label . ."
    "mode-control seed-control apply clear";
  align-items: start;
  justify-content: start;
  column-gap: 14px;
  row-gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 22, 53, 0.08);
}

.cp-toolbar-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.cp-control-group {
  display: contents;
}

.cp-control-label {
  color: var(--cp-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-control-group-mode .cp-control-label {
  grid-area: mode-label;
}

.cp-control-group-seed .cp-control-label {
  grid-area: seed-label;
}

.cp-control-label {
  color: #30445f;
}

.cp-mode-select {
  grid-area: mode-control;
  appearance: none;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(11, 22, 53, 0.12);
  background: var(--cp-surface);
  padding: 0 16px;
  color: var(--cp-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 47, 0.08);
}

.cp-seed-input {
  grid-area: seed-control;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(11, 22, 53, 0.12);
  background: var(--cp-surface);
  padding: 0 16px;
  color: var(--cp-ink);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 23, 47, 0.08);
}

.cp-seed-input::placeholder {
  color: #8794a7;
  text-transform: none;
}

.cp-seed-input[data-active='true'] {
  border-color: rgba(18, 63, 126, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 47, 0.08), 0 0 0 3px rgba(5, 178, 220, 0.08);
}

.cp-seed-input[aria-invalid='true'] {
  border-color: rgba(191, 76, 47, 0.5);
  box-shadow: 0 10px 24px rgba(15, 23, 47, 0.08), 0 0 0 3px rgba(191, 76, 47, 0.12);
}

.cp-seed-action {
  grid-row: 2;
  align-self: start;
  min-height: 52px;
  white-space: nowrap;
}

#cpSeedApplyBtn {
  grid-area: apply;
  background: linear-gradient(180deg, #e3f8f0 0%, #caede1 100%);
  border-color: rgba(27, 111, 93, 0.2);
  color: #145246;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 24px rgba(20, 82, 70, 0.12);
}

#cpSeedClearBtn {
  grid-area: clear;
  background: linear-gradient(180deg, #fff4ef 0%, #f7e1d6 100%);
  border-color: rgba(163, 91, 58, 0.18);
  color: #8b4a31;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 24px rgba(139, 74, 49, 0.1);
}

.cp-btn {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cp-btn-toolbar {
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.cp-btn-toolbar .cp-btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
}

.cp-btn-icon-shuffle {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cpolyline points='16 21 21 21 21 16'/%3E%3Cline x1='21' y1='21' x2='14' y2='14'/%3E%3Cline x1='4' y1='7' x2='9' y2='7'/%3E%3Cline x1='9' y1='7' x2='12' y2='10'/%3E%3Cline x1='4' y1='17' x2='9' y2='17'/%3E%3Cline x1='9' y1='17' x2='12' y2='14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cpolyline points='16 21 21 21 21 16'/%3E%3Cline x1='21' y1='21' x2='14' y2='14'/%3E%3Cline x1='4' y1='7' x2='9' y2='7'/%3E%3Cline x1='9' y1='7' x2='12' y2='10'/%3E%3Cline x1='4' y1='17' x2='9' y2='17'/%3E%3Cline x1='9' y1='17' x2='12' y2='14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cp-btn-icon-export {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0-12l-4 4m4-4l4 4M5 14v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0-12l-4 4m4-4l4 4M5 14v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cp-btn-icon-save {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L4.22 13.45 12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L4.22 13.45 12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cp-btn:hover {
  transform: translateY(-2px);
}

.cp-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cp-btn:focus-visible,
.cp-mode-select:focus-visible,
.cp-seed-input:focus-visible,
.cp-picker-copy-btn:focus-visible,
.cp-picker-text:focus-visible,
.cp-picker-surface:focus-visible,
.cp-picker-hue:focus-visible,
.cp-lock-btn:focus-visible,
.cp-hex-btn:focus-visible,
.cp-saved-btn:focus-visible,
.cp-trending-card:focus-visible {
  outline: 3px solid rgba(5, 178, 220, 0.25);
  outline-offset: 2px;
}

.cp-btn-primary {
  background: linear-gradient(180deg, #2361d8 0%, #183b89 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px rgba(24, 59, 137, 0.24);
}

.cp-btn-secondary,
.cp-btn-ghost {
  background: linear-gradient(180deg, #f8f8f9 0%, #edf1f5 100%);
  border-color: rgba(11, 22, 53, 0.08);
  color: var(--cp-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(15, 23, 47, 0.07);
}

#cpExportBtn {
  background: linear-gradient(180deg, #eef6ff 0%, #dfeafb 100%);
  border-color: rgba(58, 113, 196, 0.18);
  color: #173d76;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 24px rgba(46, 92, 166, 0.12);
}

#cpSaveBtn {
  background: linear-gradient(180deg, #eef8f4 0%, #dff0e8 100%);
  border-color: rgba(42, 120, 99, 0.18);
  color: #16483f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 24px rgba(29, 103, 84, 0.12);
}

.cp-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 620px;
}

.cp-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: 24px;
  color: var(--swatch-fg, #ffffff);
}

.cp-swatch.is-picker-open {
  z-index: 4;
}

.cp-swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.cp-swatch + .cp-swatch {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.cp-swatch-top,
.cp-swatch-bottom {
  position: relative;
  z-index: 1;
}

.cp-swatch-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cp-color-index,
.cp-lock-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--swatch-chip-border, rgba(255, 255, 255, 0.22));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, var(--swatch-chip-bg, rgba(255, 255, 255, 0.14)) 56%, rgba(255, 255, 255, 0.06) 100%);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(10, 20, 44, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  text-shadow: 0 1px 2px rgba(5, 11, 26, 0.34), 0 6px 18px rgba(5, 11, 26, 0.24);
}

.cp-color-index::before,
.cp-lock-btn::before,
.cp-hint::before {
  content: '';
  position: absolute;
  inset: 1px 1px auto;
  height: 52%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.cp-lock-btn {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cp-lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 20, 44, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.cp-lock-btn.is-locked {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, var(--swatch-chip-hover, rgba(255, 255, 255, 0.24)) 100%);
  box-shadow: 0 16px 34px rgba(10, 20, 44, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.cp-swatch-bottom {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 240px;
  text-align: center;
}

.cp-hex-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(32px, 3vw, 58px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(5, 11, 26, 0.34), 0 12px 34px rgba(5, 11, 26, 0.22);
  transition: transform 180ms ease, opacity 180ms ease;
}

.cp-hex-btn:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.cp-swatch-name {
  font-size: clamp(18px, 1.4vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(5, 11, 26, 0.32), 0 10px 26px rgba(5, 11, 26, 0.2);
}

.cp-swatch-meta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.84;
  text-shadow: 0 1px 2px rgba(5, 11, 26, 0.28), 0 8px 20px rgba(5, 11, 26, 0.18);
}

.cp-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 28px 28px;
  border-top: 1px solid rgba(11, 22, 53, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.cp-hints {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cp-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 145, 182, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(225, 236, 251, 0.64) 100%);
  color: #4a6483;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(77, 108, 155, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(120, 145, 182, 0.14);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.cp-saved {
  margin-top: 32px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--cp-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--cp-shadow);
}

.cp-saved-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.cp-saved-header h2 {
  margin: 0 0 6px;
  color: var(--cp-ink);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 800;
}

.cp-saved-header p {
  margin: 0;
  color: var(--cp-ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.cp-saved-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cp-saved-list > .cp-empty {
  grid-column: 1 / -1;
}

.cp-empty {
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed rgba(11, 22, 53, 0.16);
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f8fc 100%);
  text-align: center;
  color: var(--cp-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.cp-saved-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(11, 22, 53, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 47, 0.06);
}

.cp-saved-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 92px;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.cp-saved-swatch {
  min-height: 92px;
}

.cp-saved-title {
  color: var(--cp-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.cp-saved-meta,
.cp-saved-mode {
  margin-top: 6px;
  color: var(--cp-ink-soft);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.cp-saved-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cp-saved-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 22, 53, 0.12);
  background: #ffffff;
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cp-saved-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 23, 47, 0.08);
}

.cp-trending {
  margin-top: 44px;
}

.cp-trending-header {
  margin-bottom: 28px;
  text-align: center;
}

.cp-trending-header h2 {
  margin: 0 0 12px;
  color: var(--cp-ink);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 800;
}

.cp-trending-header p {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--cp-ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.cp-trending-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cp-trending-card {
  appearance: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(11, 22, 53, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 47, 0.08);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cp-trending-swatches {
  display: flex;
  height: 156px;
  border-radius: 18px;
  overflow: hidden;
}

.cp-trending-swatch {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0%;
  min-width: 0;
  height: 100%;
  min-height: 156px;
  padding: 0;
  border: 0;
  color: #0b1020;
  cursor: copy;
  overflow: hidden;
  transition: flex-grow 180ms ease, transform 180ms ease;
}

.cp-trending-swatch:hover,
.cp-trending-swatch:focus-visible,
.cp-trending-swatch.is-copied {
  flex-grow: 2.4;
}

.cp-trending-footer {
  padding: 0 6px 4px;
}

.cp-trending-title {
  color: var(--cp-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-trending-hex,
.cp-trending-check {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: calc(100% - 12px);
  padding: 0 4px;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(15px, 1vw + 0.45rem, 24px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.cp-trending-check {
  font-size: clamp(28px, 2vw, 42px);
}

.cp-trending-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cp-trending-overlay, rgba(255, 255, 255, 0.08));
  opacity: 0;
  transition: opacity 140ms ease;
}

.cp-trending-swatch:hover::after,
.cp-trending-swatch:focus-visible::after {
  opacity: 1;
}

.cp-trending-swatch:hover .cp-trending-hex,
.cp-trending-swatch:focus-visible .cp-trending-hex {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cp-trending-swatch.is-copied .cp-trending-hex {
  opacity: 0;
}

.cp-trending-swatch.is-copied .cp-trending-check {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

.cp-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(calc(100vw - 24px), 320px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(11, 16, 32, 0.24);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cp-copy-toast::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.cp-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.cp-picker-open {
  overflow: auto;
}

.cp-picker-backdrop {
  display: none;
}

.cp-picker-backdrop.is-open {
  display: none;
}

.cp-picker {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 5;
  width: min(252px, calc(100% - 16px));
  border-radius: 16px;
  border: 1px solid rgba(11, 22, 53, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(10, 18, 34, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cp-picker.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.cp-picker-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
}

.cp-picker-canvas,
.cp-picker-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cp-picker-surface {
  position: relative;
  width: 100%;
  min-height: 132px;
  border-radius: 14px;
  border: 1px solid rgba(11, 22, 53, 0.14);
  cursor: crosshair;
  overflow: hidden;
  touch-action: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cp-picker-surface-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(11, 22, 53, 0.18);
  background: rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%);
}

.cp-picker-hue {
  appearance: none;
  width: 100%;
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, #ff0000 0%, #ff8a00 12%, #ffee00 24%, #2aff00 38%, #00ffd5 50%, #006bff 64%, #6f00ff 78%, #ff00b7 90%, #ff0000 100%);
  box-shadow: inset 0 2px 8px rgba(11, 22, 53, 0.18);
}

.cp-picker-hue::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(11, 22, 53, 0.18);
  cursor: pointer;
}

.cp-picker-hue::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(11, 22, 53, 0.18);
  cursor: pointer;
}

.cp-picker-panel {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 0;
}

.cp-picker-preview {
  display: none;
}

.cp-picker-preview-code,
.cp-picker-preview-name,
.cp-picker-preview-rgb {
  position: static;
  z-index: auto;
}

.cp-picker-preview-code {
  display: none;
}

.cp-picker-preview-name {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.cp-picker-preview-rgb {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  color: #5c6b80;
  opacity: 1;
}

.cp-picker-field {
  display: grid;
  gap: 4px;
  color: var(--cp-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-picker-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.cp-picker-text {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(11, 22, 53, 0.12);
  background: #ffffff;
  padding: 0 12px;
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(15, 23, 47, 0.05);
}

.cp-picker-text::placeholder {
  color: #8d9aae;
}

.cp-picker-text[aria-invalid='true'] {
  border-color: rgba(191, 76, 47, 0.5);
  box-shadow: 0 12px 24px rgba(15, 23, 47, 0.08), 0 0 0 3px rgba(191, 76, 47, 0.12);
}

.cp-picker-preview-swatch {
  border-radius: 10px;
  border: 1px solid rgba(11, 22, 53, 0.12);
  background: #588d77;
  box-shadow: 0 6px 14px rgba(15, 23, 47, 0.05);
}

.cp-picker-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cp-picker-copy-btn {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
}

#cpContent.content-card {
  margin-top: 100px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#cpContent.content-card h2 {
  margin: 0 0 12px;
  color: #000000;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

#cpContent.content-card h3 {
  margin: 18px 0 8px;
  color: #000000;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

#cpContent.content-card p {
  margin: 0 0 12px;
  color: #000000;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

#cpContent.content-card ol,
#cpContent.content-card ul {
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: #000000;
  line-height: 1.55;
}

#cpContent.content-card ul {
  list-style: disc;
}

#cpContent.content-card ol {
  list-style: decimal;
}

#cpContent.content-card li {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

#cpContent .serp-faq.FaqSection .FaqTitle h2 {
  margin-bottom: 30px;
}

#cpContent .serp-faq.first-faq-block .accordian-wrapper {
  background: linear-gradient(138deg, #fff0 0%, #fff0 100%);
  padding: 0.15rem;
  border-radius: 15px;
  position: relative;
}

#cpContent .serp-faq.first-faq-block .faq-boxes {
  background-color: #ffffff;
  backdrop-filter: blur(10px);
  padding: 0;
  border-radius: 15px;
  border: 2px solid #a200ff38;
}

#cpContent .serp-faq.first-faq-block .faq-boxes.active {
  background-color: #fbf4ff;
  border: 2px solid #a200ff;
}

#cpContent .serp-faq .accordion-body {
  padding: 0 15px 18px 22px;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
}

#cpContent .serp-faq .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 15px 18px 22px;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff0;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

#cpContent .serp-faq .accordion-button h3 {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  line-height: 1.3;
  color: #000000;
}

#cpContent .serp-faq .accordion-button:not(.collapsed) {
  color: #212529;
  background-color: #fff0;
  transition: 0.2s ease-in all;
  padding-bottom: 12px;
  border: 0;
  box-shadow: none;
}

#cpContent .serp-faq .accordion-button:focus {
  z-index: 3;
  border-color: #cecbdc;
  outline: 0;
  box-shadow: 0 0 0 0.25rem #fff0;
}

#cpContent .serp-faq.first-faq-block .accordion-item {
  background-color: #fff0;
  border: 0 solid rgb(0 0 0 / 0.125);
  margin-bottom: 20px;
}

#cpContent .serp-faq.first-faq-block .accordion-body p {
  font-size: 16px;
  color: #000000;
  font-weight: 400;
  margin-bottom: 0;
  padding-right: 11%;
  line-height: 26px;
}

#cpContent .serp-faq.first-faq-block .accordion-body p a {
  color: #4a2574;
  font-size: 18px;
  line-height: 32px;
  text-decoration: none;
  font-weight: 400;
}

#cpContent .serp-faq.first-faq-block .accordion-button:not(.collapsed)::after {
  content: "–";
  transform: none;
}

#cpContent .serp-faq.first-faq-block .accordion-button::after {
  margin-left: auto;
  content: "+";
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  align-self: center;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #4a2574;
}

#cpContent .serp-faq .accordion-collapse {
  display: none;
}

#cpContent .serp-faq .accordion-collapse.show {
  display: block;
}

.main > .container {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .cp-toolbar-bar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .cp-toolbar-controls {
    grid-template-columns: minmax(180px, 210px) minmax(220px, 300px) auto auto;
    grid-template-areas:
      "mode-label seed-label . ."
      "mode-control seed-control apply clear";
  }

  .cp-toolbar-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .cp-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .cp-picker {
    width: min(244px, calc(100% - 14px));
  }

  .cp-swatch {
    min-height: 320px;
  }

  .cp-swatch + .cp-swatch {
    border-left: 0;
  }

  .cp-swatch {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cp-swatch:nth-child(-n + 2) {
    border-top: 0;
  }

  .cp-swatch-bottom {
    padding-top: 120px;
  }

  .cp-saved-list {
    grid-template-columns: 1fr;
  }

  .cp-trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cp-toolbar,
  .cp-footer,
  .cp-saved {
    padding: 20px;
  }

  .cp-toolbar {
    gap: 14px;
    padding: 16px;
  }

  .cp-board {
    grid-template-columns: 1fr;
  }

  .cp-swatch {
    min-height: 260px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cp-swatch:first-child {
    border-top: 0;
  }

  .cp-swatch-bottom {
    padding-top: 72px;
  }

  .cp-saved-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cp-footer {
    align-items: center;
  }

  .cp-toolbar-buttons {
    width: 100%;
  }

  .cp-toolbar-message {
    font-size: 16px;
  }

  .cp-toolbar-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .cp-btn-toolbar {
    min-height: 46px;
    padding: 0 16px;
  }

  .cp-toolbar-controls {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mode-label"
      "mode-control"
      "seed-label"
      "seed-control"
      "apply"
      "clear";
  }

  .cp-mode-select,
  .cp-seed-input,
  .cp-btn {
    width: 100%;
  }

  .cp-saved-actions {
    flex-direction: column;
  }

  .cp-trending-grid {
    grid-template-columns: 1fr;
  }

  .cp-trending-footer {
    padding: 0 4px 2px;
  }

  .cp-copy-toast {
    bottom: 18px;
    max-width: calc(100vw - 20px);
    padding: 11px 16px;
  }

  .cp-picker {
    width: min(236px, calc(100% - 12px));
    border-radius: 14px;
  }

  .cp-picker-body {
    padding: 9px;
  }

  .cp-picker-surface {
    min-height: 122px;
  }

  .cp-picker-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #cpContent .serp-faq.first-faq-block .faq-boxes {
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-btn,
  .cp-lock-btn,
  .cp-hex-btn,
  .cp-saved-btn,
  .cp-trending-card {
    animation: none !important;
    transition: none !important;
  }
}