.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-body { display: flex; flex-direction: column; gap: 18px; }
.cc-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }

#ccInput, #ccOutput { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; font-family: "Courier New", monospace; font-size: .95em; line-height: 1.6; resize: vertical; box-sizing: border-box; }
#ccInput { min-height: 140px; }
#ccInput:focus { outline: none; border-color: var(--site-light); box-shadow: 0 0 0 3px rgba(20, 184, 166, .12); }
#ccOutput { min-height: 140px; background: #f7f8fa; }

.cc-btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cc-case-btn { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 12px 10px; font-weight: 600; font-size: .88em; cursor: pointer; color: #23272f; text-align: center; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.cc-case-btn:hover { background: #f0fdfa; border-color: var(--site-light); color: var(--site-dark); }
.cc-case-btn.active { background: var(--site-light); border-color: var(--site-light); color: #fff; }
.cc-case-btn small { display: block; font-weight: 400; font-size: .82em; color: inherit; opacity: .75; margin-top: 2px; }

.cc-output-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cc-output-label-row label { margin-bottom: 0; }
.cc-active-badge { font-size: .78em; font-weight: 700; color: var(--site-dark); background: #fff3ec; border-radius: 20px; padding: 3px 12px; }
.cc-copy-btn { background: var(--site-light); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: .85em; transition: background .15s ease; }
.cc-copy-btn:hover { background: var(--site-dark); }
.cc-copy-btn.cc-copied { background: var(--site-success); }

@media (max-width: 600px) {
    .cc-title-bar { margin: -20px -20px 20px; padding: 16px 18px; }
    .cc-btn-grid { grid-template-columns: repeat(2, 1fr); }
}
