.copy-wrap { max-width: 920px; }
.copy-setup { display: flex; align-items: end; gap: 14px; justify-content: space-between; margin-bottom: 16px; }
.copy-course { display: grid; gap: 6px; min-width: 0; flex: 1 1 250px; max-width: 470px; }
.copy-course label, #copy-form > label { font-size: 15px; font-weight: 700; }
.copy-course select { width: 100%; }
.copy-modes { flex: none; border-radius: 14px; }
.copy-modes button { min-height: 42px; }
.copy-modes button.selected { background: var(--blue); }
.copy-source { margin: -3px 0 14px; color: #40577c; font-size: 14px; }
.copy-panel, .copy-end { border-radius: 23px; }
.copy-question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.copy-meter { display: flex; align-items: center; gap: 10px; color: #435d8a; font-size: 14px; }
.copy-meter progress { width: clamp(60px, 12vw, 138px); height: 10px; accent-color: var(--blue); }
.copy-reference { background: #f0f5ff; border: 1px solid #d6e3f8; border-radius: 17px; padding: clamp(14px, 3vw, 24px); margin-bottom: 21px; }
.copy-model, #copy-input { font-family: 'Cascadia Mono', 'Consolas', 'Courier New', monospace; line-height: 1.65; }
.copy-model { font-size: clamp(23px, 3.3vw, 36px); white-space: pre-wrap; overflow-wrap: anywhere; color: #2f4262; }
.copy-char { border-radius: 4px; }
.copy-current { box-shadow: inset 0 -3px #4f6cba; background: #e1e9ff; }
.copy-correct { background: #d9f4e6; color: #17633e; }
.copy-wrong { background: #ffdbd3; color: #972f26; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px; }
.copy-wrong.copy-current { box-shadow: none; }
.copy-translation { font-size: clamp(16px, 2vw, 21px); color: #40577c; line-height: 1.6; margin-top: 9px; }
#copy-form > label { display: block; margin-bottom: 8px; }
#copy-input { display: block; width: 100%; min-height: 76px; border: 2px solid #b7cbed; border-radius: 13px; font-size: clamp(18px, 2.8vw, 26px); color: #263657; resize: vertical; }
#copy-input:focus-visible { border-color: #4267b7; outline: 3px solid #dfebff; outline-offset: 2px; }
#copy-input::placeholder { font-size: 15px; color: #586984; }
.copy-feedback { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin: 10px 0 17px; min-height: 24px; font-size: 14px; color: #415c90; }
.copy-feedback p { font-weight: 700; }
.copy-feedback .copy-warning { color: #972f26; }
.copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-actions p { flex: 1 0 200px; color: #51617a; font-size: 14px; }
.copy-actions .btn, .copy-end > .btn { min-height: 44px; }
.copy-end { display: grid; justify-items: start; gap: 14px; }
.copy-end p { color: #51617a; }
.copy-celebration { font-size: 37px; }
.tools-grid:has([data-action="copy"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tool-card[data-action="copy"] .tool-icon { background: #eadfff; color: #67439c; }
.reader-learning-actions { flex: none; }

@media (max-width: 720px) {
  .copy-setup { flex-wrap: wrap; gap: 9px; align-items: start; }
  .copy-course { max-width: none; }
  .copy-question-head { flex-wrap: wrap; }
  .copy-panel, .copy-end { border-radius: 18px; }
  .reader-learning-actions { flex-wrap: wrap; }
}
