/* Layout */
.rc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .rc-container { grid-template-columns: 1fr; }
}

/* Input column */
.rc-input-card { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.rc-input-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;
}
.rc-input-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  opacity: 0.5; font-weight: 700;
}
.rc-input-actions { display: flex; gap: 0.4rem; }
.rc-sample-btn, .rc-clear-btn, .rc-copy-btn { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
.rc-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 0.9rem;
  color: inherit; font-family: inherit; font-size: 0.9rem; line-height: 1.6;
  resize: vertical; outline: none; transition: border-color 0.15s;
}
.rc-textarea:focus { border-color: var(--accent); }
.rc-stats-row {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem;
  font-size: 0.78rem; opacity: 0.55;
}

/* Highlight card */
.rc-highlight-card { padding: 1rem 1.1rem; }
.rc-hl-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;
  flex-wrap: wrap; gap: 0.6rem;
}
.rc-hl-toggles { display: flex; gap: 16px; flex-wrap: wrap; }
.rc-toggle { display: flex; align-items: center; cursor: pointer; }
.rc-toggle input { display: none; }
.rc-toggle-track {
  width: 36px; height: 20px; border-radius: 10px;
  background: rgba(255,255,255,0.12); transition: background 0.2s;
  position: relative; flex-shrink: 0;
}
.rc-toggle-track::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.rc-toggle input:checked + .rc-toggle-track { background: var(--accent); }
.rc-toggle input:checked + .rc-toggle-track::after { transform: translateX(16px); }
.rc-toggle-lbl { margin-left: 8px; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.rc-toggle-lbl span { opacity: 0.65; font-weight: 700; margin-left: 2px; }
.rc-highlight-out {
  font-size: 0.88rem; line-height: 1.8;
  max-height: 240px; overflow-y: auto;
  color: rgba(255,255,255,0.8);
}
.rc-highlight-out .rc-complex { background: rgba(255,206,92,0.25); border-radius: 3px; padding: 0 2px; }
.rc-highlight-out .rc-sent-passive { border-bottom: 2px solid #a78bff; }
.rc-highlight-out .rc-sent-long { background: rgba(255,206,92,0.1); border-radius: 3px; }
.rc-highlight-out .rc-sent-verylong { background: rgba(255,107,138,0.16); border-radius: 3px; }
.rc-highlight-empty { font-size: 0.85rem; opacity: 0.4; font-style: italic; }
.rc-hl-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 0.7rem; font-size: 0.72rem; color: var(--muted-2); }
.rc-hl-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.rc-leg-complex .dot { background: rgba(255,206,92,0.7); }
.rc-leg-passive .dot { height: 2px; width: 11px; border-radius: 0; background: #a78bff; }
.rc-leg-long .dot { background: rgba(255,206,92,0.35); }
.rc-leg-verylong .dot { background: rgba(255,107,138,0.4); }

/* Scores column */
.rc-grade-card { padding: 1.25rem; margin-bottom: 1rem; }
.rc-grade-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  opacity: 0.5; font-weight: 700; margin-bottom: 0.4rem;
}
.rc-grade-val { font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.rc-grade-sub { font-size: 0.82rem; opacity: 0.55; margin-top: 0.25rem; margin-bottom: 0.9rem; }
.rc-ease-bar-wrap { }
.rc-ease-bar-track {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1);
  overflow: hidden; margin-bottom: 0.3rem;
}
.rc-ease-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ffce5c 40%, #5cd98a 100%);
  transition: width 0.4s ease;
}
.rc-ease-labels {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; opacity: 0.4;
}

/* Score grid */
.rc-score-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem; margin-bottom: 1rem;
}
@media (max-width: 1100px) {
  .rc-score-grid { grid-template-columns: 1fr 1fr; }
}
.rc-score-card { padding: 0.9rem 1rem; }
.rc-score-name { font-size: 0.7rem; opacity: 0.5; font-weight: 600; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rc-score-num { font-size: 1.8rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.rc-score-desc { font-size: 0.7rem; opacity: 0.4; margin-top: 0.2rem; }

/* Complex words */
.rc-complex-card { padding: 1rem 1.1rem; }
.rc-complex-list { display: flex; gap: 0.4rem; flex-wrap: wrap; min-height: 32px; }
.rc-complex-empty { font-size: 0.82rem; opacity: 0.35; font-style: italic; }
.rc-complex-chip {
  background: rgba(255,206,92,0.15); border: 1px solid rgba(255,206,92,0.3);
  border-radius: 20px; padding: 0.22rem 0.75rem;
  font-size: 0.8rem; font-weight: 600; color: #ffce5c;
}
.rc-complex-chip span { font-weight: 400; opacity: 0.6; font-size: 0.72rem; margin-left: 0.25rem; }
