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

.rc-input-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rc-input-head label { font-weight: 600; font-size: .9em; color: #374151; }
.rc-hint { font-size: .82em; color: #6b7280; }

.rc-text { display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 180px; border: 1px solid #d1d5db; border-radius: 10px; padding: 14px; font: inherit; font-size: 1em; line-height: 1.6; color: #23272f; resize: vertical; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.rc-text:focus { border-color: var(--site-light, #14b8a6); box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }

.rc-actions { display: flex; justify-content: flex-end; margin: 10px 0 20px; }
.rc-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d1d5db; background: #f3f4f6; color: #374151; border-radius: 30px; padding: 8px 18px; font-weight: 600; font-size: .9em; cursor: pointer; transition: background .2s ease; }
.rc-btn:hover { background: #e5e7eb; }
.rc-btn:focus-visible, .rc-text:focus-visible { outline: 3px solid rgba(20, 184, 166, .5); outline-offset: 2px; }

.rc-empty { text-align: center; color: #6b7280; font-size: .95em; padding: 22px 12px; background: #f7f8fa; border: 1px dashed #d1d5db; border-radius: 10px; }
.rc-empty[hidden], .rc-results[hidden] { display: none; }

.rc-group-title { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin: 18px 0 10px; font-weight: 700; }

.rc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.rc-stat { background: #f7f8fa; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; }
.rc-stat-value { display: block; font-size: 1.45em; font-weight: 700; color: #23272f; line-height: 1.2; }
.rc-stat-label { display: block; font-size: .82em; color: #6b7280; margin-top: 4px; }

.rc-averages { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.rc-avg { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; font-size: .92em; color: #374151; }
.rc-avg strong { color: #23272f; white-space: nowrap; }

.rc-scores { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.rc-score-box { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; background: #fff; }
.rc-score-label { font-size: .85em; font-weight: 700; color: #374151; }
.rc-score-num { display: block; font-size: 2.3em; font-weight: 800; color: #23272f; line-height: 1.1; margin: 6px 0 8px; }
.rc-score-note { font-size: .82em; color: #6b7280; line-height: 1.5; }
.rc-band { display: inline-block; font-weight: 700; font-size: .95em; border-radius: 30px; padding: 5px 14px; margin-bottom: 8px; color: #fff; }
.rc-band-good { background: #15803d; }
.rc-band-mid { background: #b45309; }
.rc-band-low { background: #b91c1c; }
.rc-band-note { font-size: .88em; color: #374151; line-height: 1.5; margin: 0; }

.rc-longest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rc-longest li { background: #f7f8fa; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; font-size: .92em; color: #23272f; line-height: 1.5; }
.rc-long-text { display: block; overflow-wrap: anywhere; }
.rc-long-count { display: block; font-size: .8em; color: #6b7280; margin-top: 4px; }

@media (max-width: 600px) {
    .rc-card { padding: 20px 16px; }
    .rc-title-bar { margin: -20px -16px 20px; padding: 14px 16px; }
    .rc-scores { grid-template-columns: 1fr; }
    .rc-actions { justify-content: stretch; }
    .rc-btn { width: 100%; justify-content: center; }
    .rc-score-num { font-size: 2em; }
}
