/* Picker row */
.cc-picker-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .cc-picker-row { grid-template-columns: 1fr; }
  .cc-ratio-center { order: -1; }
}

.cc-picker-card { padding: 1.25rem; }
.cc-picker-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  opacity: 0.5; font-weight: 700; margin-bottom: 0.75rem;
}
.cc-swatch-row { display: flex; align-items: center; gap: 0.75rem; }
.cc-swatch {
  width: 52px; height: 52px; border-radius: 10px;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.cc-hex-wrap {
  display: flex; align-items: center; gap: 0.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px; padding: 0.45rem 0.7rem;
  flex: 1;
}
.cc-hash { opacity: 0.4; font-size: 1rem; font-weight: 600; }
.cc-hex-input {
  background: none; border: none; outline: none;
  color: inherit; font-family: 'SF Mono', monospace, inherit;
  font-size: 1rem; font-weight: 700; width: 100%;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.cc-color-picker {
  width: 36px; height: 36px; border: none; background: none;
  cursor: pointer; border-radius: 6px; padding: 0; flex-shrink: 0;
}
.cc-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.cc-color-picker::-webkit-color-swatch { border-radius: 6px; border: 2px solid rgba(255,255,255,0.15); }

/* Ratio center */
.cc-ratio-center {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  min-width: 130px;
}
.cc-ratio-number {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em;
  line-height: 1;
}
.cc-ratio-label { font-size: 0.72rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.06em; }
.cc-swap-btn { font-size: 0.78rem; padding: 0.3rem 0.75rem; margin-top: 0.25rem; }

/* Live preview */
.cc-preview-card {
  padding: 2rem; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.cc-preview-text { font-size: 1rem; line-height: 1.55; }
.cc-preview-large { font-size: 1.5rem; font-weight: 700; }
.cc-preview-ui { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cc-fake-btn {
  border: 2px solid currentColor; background: transparent;
  color: inherit; font-family: inherit; font-size: 0.88rem;
  padding: 0.4rem 1rem; border-radius: 6px; cursor: default; font-weight: 600;
}
.cc-fake-link { text-decoration: underline; font-size: 0.95rem; cursor: default; }

/* WCAG badges */
.cc-badges-row {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.cc-badge-group {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 0.9rem 1.1rem;
  flex: 1; min-width: 160px;
}
.cc-badge-title { font-size: 0.72rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.cc-badge-row { display: flex; gap: 0.5rem; }
.cc-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  border: 2px solid;
}
.cc-badge.pass {
  background: rgba(92,217,138,0.15); border-color: rgba(92,217,138,0.4); color: #5cd98a;
}
.cc-badge.fail {
  background: rgba(255,107,107,0.12); border-color: rgba(255,107,107,0.3); color: #ff6b6b;
}
.cc-badge.unknown { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); opacity: 0.5; }

/* Suggestions */
.cc-suggest-card { padding: 1.25rem; margin-bottom: 1rem; border-color: rgba(255,206,92,0.25) !important; background: rgba(255,206,92,0.04) !important; }
.cc-suggest-title { font-size: 0.85rem; font-weight: 600; opacity: 0.8; margin-bottom: 0.75rem; }
.cc-suggest-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cc-suggest-item {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.5rem 0.85rem;
  cursor: pointer; transition: background 0.15s;
}
.cc-suggest-item:hover { background: rgba(255,255,255,0.08); }
.cc-suggest-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); }
.cc-suggest-info { font-size: 0.8rem; }
.cc-suggest-hex { font-weight: 700; font-family: monospace; }
.cc-suggest-ratio { opacity: 0.55; }

/* Color blindness */
.cc-cvd-card { padding: 1.25rem; }
.cc-cvd-title { font-size: 0.82rem; font-weight: 700; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.cc-cvd-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.cc-cvd-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; min-width: 100px; }
.cc-cvd-preview {
  width: 80px; height: 80px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, color 0.15s;
}
.cc-cvd-label {
  font-size: 0.75rem; text-align: center; opacity: 0.7; font-weight: 600;
}
.cc-cvd-label span { display: block; font-weight: 400; opacity: 0.6; font-size: 0.68rem; margin-top: 0.1rem; }
