/* Color Picker Tool Styling - extracted from user provided file */
.cp-page-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 1100px) {
  .cp-page-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .cp-picker-grid {
    grid-template-columns: 1fr !important;
  }
  .cp-picker-left {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
}

.cp-col-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Tool Panel overrides/additions for this specific tool */
.cp-tool-panel {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cp-tph {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: #111;
  height: 46px;
}
.cp-tph-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex: 1;
  border-right: 1px solid var(--border);
}
.cp-tph-status {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.cp-tph-status-txt {
  color: var(--green);
  font-size: 0.65rem;
}
.cp-tph-actions {
  display: flex;
  align-items: stretch;
}
.cp-tph-btn {
  height: 46px;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.12s,
    background 0.12s;
  background: #222;
  cursor: pointer;
  border-left: none;
  border-top: none;
  border-bottom: none;
}
.cp-tph-btn:hover {
  color: var(--white);
  background: #333;
}
.cp-tph-btn:last-child {
  border-right: none;
}

.cp-tool-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ── COLOR PICKER AREA ── */
.cp-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

/* Left: native + big preview */
.cp-picker-left {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.cp-color-preview-big {
  height: 260px;
  width: 100%;
  position: relative;
  cursor: crosshair;
  transition: background 0.1s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #d4ff00;
}
.cp-cpb-hex-badge {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}
.cp-picker-native-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
}
.cp-picker-native-wrap {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border);
}
.cp-native-picker {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--border);
  cursor: pointer;
  background: none;
}
.cp-native-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}
.cp-native-picker::-webkit-color-swatch {
  border: none;
}
.cp-native-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cp-native-label strong {
  display: block;
  color: var(--white);
  font-size: 0.8rem;
}
.cp-random-btn {
  padding: 0 20px;
  height: 80px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.12s,
    background 0.12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  cursor: pointer;
  border: none;
}
.cp-random-btn:hover {
  color: var(--yellow);
  background: #111;
}
.cp-random-btn .rb-icon {
  font-size: 1.2rem;
}

/* Right: format inputs */
.cp-picker-right {
  display: flex;
  flex-direction: column;
}
.cp-input-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.cp-input-section:last-child {
  border-bottom: none;
}
.cp-fi-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-fi-label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.cp-fi-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.cp-fi-prefix {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0 10px;
  border: 1px solid var(--border);
  border-right: none;
  height: 40px;
  display: flex;
  align-items: center;
  background: #0a0a0a;
}
.cp-fi-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: #050505;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
  letter-spacing: 0.04em;
}
.cp-fi-input:focus {
  border-color: var(--yellow);
}
.cp-fi-copy {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-left: none;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: all 0.12s;
  background: #0a0a0a;
  cursor: pointer;
  text-transform: uppercase;
}
.cp-fi-copy:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}
.cp-fi-copy.ok {
  color: var(--green);
  border-color: var(--green);
}

/* RGB + HSL rows */
.cp-rgb-row,
.cp-hsl-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}
.cp-channel-block {
  flex: 1;
  border-right: 1px solid var(--border);
  padding: 10px 12px;
}
.cp-channel-block:last-child {
  border-right: none;
}
.cp-ch-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cp-ch-input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  background: #050505;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s;
}
.cp-ch-input:focus {
  border-color: var(--yellow);
}
.cp-ch-bar {
  height: 4px;
  margin-top: 6px;
  border-radius: 0;
}

/* CMYK */
.cp-cmyk-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}

/* ── COLOR SLIDERS ── */
.cp-sliders-section {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.cp-slider-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  height: 52px;
}
.cp-slider-row:last-child {
  border-bottom: none;
}
.cp-sl-label {
  width: 44px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-sl-track {
  flex: 1;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}
.cp-sl-track input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  outline: none;
  border-radius: 0;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--yellow) 0%,
    var(--yellow) var(--pct, 50%),
    var(--border) var(--pct, 50%),
    var(--border) 100%
  );
}
.cp-sl-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 2px solid var(--border);
  cursor: pointer;
  border-radius: 0;
}
.cp-sl-track input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 2px solid var(--border);
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}
.cp-sl-val {
  width: 60px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--white);
  text-align: center;
  flex-shrink: 0;
  padding: 0 8px;
}

/* ── FORMATS OUTPUT ── */
.cp-formats-section {
  border-bottom: 1px solid var(--border);
}
.cp-section-bar {
  display: flex;
  align-items: center;
  height: 44px;
  border-bottom: 1px solid var(--border);
  background: #111;
}
.cp-sb-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-sb-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yellow);
}
.cp-sb-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  padding: 0 20px;
}
.cp-formats-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cp-fmt-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.cp-fmt-row:last-child {
  border-bottom: none;
}
.cp-fmt-row:hover {
  background: #111;
}
.cp-fmt-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--yellow);
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.cp-fmt-val {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--white);
  padding: 14px 16px;
  word-break: break-all;
}
.cp-fmt-copy {
  height: 100%;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.12s,
    background 0.12s;
  background: transparent;
  cursor: pointer;
  border-top: none;
  border-bottom: none;
  border-right: none;
}
.cp-fmt-copy:hover {
  color: var(--yellow);
  background: #222;
}
.cp-fmt-copy.ok {
  color: var(--green);
}

/* ── PALETTE SECTION ── */
.cp-palette-section {
  border-bottom: none;
}
.cp-palette-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
  flex-wrap: wrap;
}
.cp-ptab {
  height: 40px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  border-top: none;
  border-bottom: none;
  border-left: none;
  background: transparent;
  display: flex;
  align-items: center;
  transition:
    color 0.12s,
    background 0.12s;
  cursor: pointer;
}
.cp-ptab:hover {
  color: var(--white);
  background: #111;
}
.cp-ptab.active {
  color: var(--ink, #000);
  background: var(--yellow);
  font-weight: 600;
}
.cp-palette-grid {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-pal-row {
  display: flex;
  gap: 0;
  height: 52px;
}
.cp-pal-swatch {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: transform 0.12s;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}
.cp-pal-swatch:last-child {
  border-right: none;
}
.cp-pal-swatch:hover {
  z-index: 2;
  transform: scaleY(1.15);
  transform-origin: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.cp-pal-swatch-hex {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 3px 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.15s;
  letter-spacing: 0.04em;
}
.cp-pal-swatch:hover .cp-pal-swatch-hex {
  opacity: 1;
}
.cp-pal-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── CONTENT SECTION ── */
.cp-content-section {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.cp-cs-header {
  margin-bottom: 1.5rem;
}
.cp-cs-header-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #888;
  margin-right: 0.5rem;
}
.cp-cs-header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.cp-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cp-step-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: #333;
  font-weight: 700;
  line-height: 1;
}
.cp-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 0.25rem;
}
.cp-step-desc {
  color: #888;
  line-height: 1.5;
  font-size: 0.95rem;
}
.cp-faq-item {
  border-bottom: 1px solid var(--border);
}
.cp-faq-item:last-child {
  border-bottom: none;
}
.cp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.12s;
  background: transparent;
  border: none;
  cursor: pointer;
}
.cp-faq-q:hover {
  color: var(--yellow);
}
.cp-faq-q[aria-expanded="true"] {
  color: var(--yellow);
}
.cp-faq-icon {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  transition:
    transform 0.2s,
    color 0.12s;
}
.cp-faq-q[aria-expanded="true"] .cp-faq-icon {
  transform: rotate(45deg);
  color: var(--yellow);
}
.cp-faq-a {
  display: none;
  padding: 0 0 18px 0;
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}
.cp-faq-a.open {
  display: block;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  border-bottom: 1px solid var(--border);
  background: #111;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.ph-left {
  padding: 44px 52px 36px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.ph-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ph-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.ph-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #fff;
}
.ph-title .yel {
  color: var(--yellow);
}
.ph-desc {
  font-size: 1rem;
  color: #aaa;
  max-width: 500px;
  line-height: 1.65;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  margin-bottom: 20px;
}
.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ph-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  background: #222;
}
.ph-tag.yellow {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(212, 255, 0, 0.1);
}
.ph-tag.green {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 200, 117, 0.1);
}
.ph-right {
  display: flex;
  flex-direction: column;
}
.ph-stat {
  flex: 1;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #0a0a0a;
}
.ph-stat:last-child {
  border-bottom: none;
}
.ps-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ps-val {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ps-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

/* Mobile Screens (Max 480px) */
@media (max-width: 480px) {
  .page-header {
    grid-template-columns: 1fr;
  }
  .ph-left {
    padding: 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cp-tph {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }
  .cp-tph-actions {
    width: 100%;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
  }
  .cp-tph-btn {
    flex: 1;
    border-right: none;
    border-left: 1px solid var(--border);
  }
  .cp-tph-btn:first-child {
    border-left: none;
  }
}
