* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f7; color: #202124; font-family: Arial, sans-serif; line-height: 1.5; }
.page { width: 100%; max-width: 850px; margin: 0 auto; padding: 24px 16px 50px; }
.card { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 24px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
h1 { margin-top: 0; font-size: 28px; }
h2 { font-size: 21px; }
.muted { color: #5f6368; }
.text-box { min-height: 150px; padding: 20px; margin: 16px 0; border: 2px solid #cbd5e1; border-radius: 10px; background: #fbfdff; font-size: 20px; white-space: pre-wrap; }
.hidden-text { display: flex; align-items: center; justify-content: center; color: #5f6368; font-style: italic; }
.timer { font-weight: bold; margin: 8px 0 16px; }
label { display: block; margin: 18px 0 6px; font-weight: bold; }
textarea { width: 100%; min-height: 84px; resize: vertical; padding: 12px; font: inherit; border: 1px solid #b9c1ca; border-radius: 8px; }
textarea:focus { outline: 3px solid rgba(26,115,232,.18); border-color: #1a73e8; }
button { border: 0; border-radius: 8px; padding: 12px 18px; font: inherit; font-weight: bold; cursor: pointer; background: #1a73e8; color: #fff; }
button.secondary { background: #5f6368; }
button:disabled { opacity: .55; cursor: default; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.status { margin-top: 18px; padding: 14px; border-radius: 8px; display: none; }
.status.error { display: block; background: #fdecec; border: 1px solid #e7a5a5; }
.result { display: none; margin-top: 24px; padding: 20px; border: 2px solid #b7c8dc; border-radius: 10px; background: #f7fbff; }
.score { font-size: 34px; font-weight: bold; }
.details { margin: 12px 0 0; padding-left: 22px; }
.details li { margin: 7px 0; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .card { padding: 18px; } h1 { font-size: 24px; } .text-box { font-size: 18px; } }
