* { box-sizing: border-box; }
body { margin: 0; background: #f3f6f4; color: #203d37; font: 18px/1.7 "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.activity-toolbar { max-width: 860px; margin: 20px auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.activity-toolbar button { border: 0; border-radius: 10px; padding: 12px 20px; color: white; background: #176d59; font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #805500; outline-offset: 4px; }
.activity-sheet { max-width: 860px; margin: 0 auto 40px; padding: 36px 44px; background: white; border: 1px solid #d3e1d9; border-radius: 16px; }
.activity-meta { font-size: 15px; color: #52675e; }
.activity-label { margin: 12px 0 8px; color: #176d59; font-weight: 800; }
h1 { margin: 0 0 14px; font-size: 32px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.activity-name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 2px solid #176d59; font-size: 15px; }
.activity-questions { list-style: none; padding: 0; margin: 24px 0 0; }
.activity-questions li { margin-top: 22px; break-inside: avoid; }
.activity-questions h2 { font-size: 19px; line-height: 1.65; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.activity-number { color: #176d59; margin-right: 8px; }
.activity-answer-space { min-height: 140px; border: 1px solid #b6cbbd; border-radius: 10px; padding: 10px 14px; }
.activity-answer-space p { margin: 0; font-size: 13px; color: #53675e; }
.activity-sheet--support .activity-answer-space, .activity-sheet--extension .activity-answer-space { min-height: 300px; }
footer { margin-top: 24px; font-size: 14px; color: #52675e; }
.activity-no-script { text-align: center; }
@media (max-width: 600px) {
    .activity-sheet { padding: 24px 20px; margin-inline: 10px; }
    h1 { font-size: 26px; }
}
@page { size: A4; margin: 14mm; }
@media print {
    body { background: white; font-size: 11pt; line-height: 1.5; color: #111; }
    .activity-toolbar, .activity-no-script { display: none; }
    .activity-sheet { width: 100%; max-width: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
    .activity-meta { font-size: 9pt; margin: 0 0 4mm; }
    .activity-label { margin: 0 0 2mm; }
    h1 { font-size: 20pt; margin-bottom: 3mm; }
    header > p { margin-block: 2mm; }
    .activity-name { padding: 4mm 0; font-size: 10pt; }
    .activity-questions { margin-top: 4mm; }
    .activity-questions li { margin-top: 4mm; }
    .activity-questions h2 { font-size: 11pt; line-height: 1.5; margin-block: 2mm; }
    .activity-answer-space { min-height: 30mm; border-radius: 2mm; padding: 2mm 3mm; }
    .activity-answer-space p { font-size: 8pt; }
    .activity-sheet--support .activity-answer-space, .activity-sheet--extension .activity-answer-space { min-height: 90mm; }
    footer { margin-top: 5mm; font-size: 9pt; }
}
