.cc-card { padding: 28px; }
.cc-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.cc-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.cc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.cc-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }
.cc-swatch-row { display: flex; align-items: center; gap: 10px; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; }
.cc-swatch-row input[type="color"] { width: 40px; height: 40px; border: none; border-radius: 6px; padding: 0; cursor: pointer; background: none; }
.cc-swatch-row input[type="text"] { flex: 1; border: none; font-family: "Courier New", monospace; font-size: 1em; outline: none; min-width: 0; }
.cc-swap-btn { display: block; margin: 0 auto 22px; background: var(--site-dark); color: #fff; border: none; border-radius: 30px; padding: 8px 22px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.cc-swap-btn:hover { background: var(--site-dark-2); }

.cc-preview { border-radius: 10px; padding: 34px 20px; text-align: center; margin-bottom: 22px; transition: background .15s ease, color .15s ease; }
.cc-preview .cc-large { font-size: 1.8em; font-weight: 700; margin: 0 0 6px; }
.cc-preview .cc-normal { font-size: 1em; margin: 0; }

/* ===== Text & style customizer ===== */
.cc-style-panel { margin-bottom: 18px; }
.cc-style-toggle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: #f7f8fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-weight: 600; font-size: .9em; color: #374151; cursor: pointer; }
.cc-style-toggle:hover { background: #eef0f3; }
.cc-style-toggle .fa-chevron-down { margin-left: auto; transition: transform .2s ease; font-size: .85em; }
.cc-style-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

.cc-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding: 18px; margin-top: 10px; border: 1px solid #eee; border-radius: 10px; background: #fafbfc; }
.cc-style-grid.hide { display: none; }
.cc-style-field-wide { grid-column: 1 / -1; }
.cc-style-field label { display: block; font-size: .82em; font-weight: 600; color: #4b5563; margin-bottom: 6px; }
.cc-style-field input[type="text"], .cc-style-field select { width: 100%; border: 1px solid #ddd; border-radius: 7px; padding: 8px 10px; font-size: .92em; box-sizing: border-box; }
.cc-style-field input[type="range"] { width: 100%; }
.cc-style-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-style-reset, .cc-style-copy { background: none; border: 1px solid #ddd; border-radius: 20px; padding: 7px 16px; font-size: .85em; font-weight: 600; color: #6b7280; cursor: pointer; }
.cc-style-reset:hover, .cc-style-copy:hover { background: #f3f4f6; }
.cc-style-copy { border-color: var(--site-light); color: var(--site-dark); }
.cc-style-copy:hover { background: #f0fdfa; }
.cc-style-copied { font-size: .85em; font-weight: 600; color: var(--site-success); display: inline-flex; align-items: center; gap: 5px; }
.cc-style-copied.hide { display: none; }

@media (max-width: 600px) {
    .cc-style-grid { grid-template-columns: 1fr; padding: 14px; }
}

.cc-ratio-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.cc-ratio-value { font-size: 2.4em; font-weight: 800; color: var(--site-dark); }
.cc-ratio-label { font-size: .85em; color: #6b7280; }

.cc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.cc-result { border-radius: 8px; padding: 12px 14px; text-align: center; border: 1px solid #eee; }
.cc-result .cc-r-label { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; display: block; margin-bottom: 6px; }
.cc-result .cc-r-badge { font-weight: 700; padding: 3px 10px; border-radius: 20px; font-size: .85em; display: inline-block; }
.cc-pass { background: var(--site-success-bg); color: var(--site-success); }
.cc-fail { background: var(--site-danger-bg); color: var(--site-danger); }

@media (max-width: 600px) {
    .cc-inputs { grid-template-columns: 1fr; }
}
