.spelling-page { background: #f5f8f7; color: #233c38; }
.spelling-page .app-shell { max-width: 1060px; }
.spelling-heading { padding: 24px 0; }
.spelling-heading h1 { font-size: 32px; margin: 12px 0; }
.spelling-page h2 { font-size: 22px; }
.spelling-page .rewards-status, .spelling-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.spelling-week { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 20px; align-items: center; border-block: 1px solid #a9c8bb; padding: 20px 0; }
.spelling-week img { width: 100%; height: auto; }
.spelling-days { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; list-style: none; padding: 0; }
.spelling-days li { border-bottom: 4px solid #bbccca; padding: 12px 4px; font-size: 14px; text-align: center; }
.spelling-days li[aria-current] { border-color: #a54e62; font-weight: 700; }
.spelling-days span { display: block; margin-top: 6px; }
#spelling-study { border-block: 1px solid #bbccca; padding: 16px 0; }
#spelling-study summary { font-weight: 700; cursor: pointer; }
#spelling-word-list { columns: 2; padding-left: 22px; }
#spelling-word-list li { padding: 8px; break-inside: avoid; line-height: 1.6; }
.spelling-word { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid #bbccca; min-width: 0; }
.spelling-word legend { float: left; width: 100%; margin-bottom: 12px; font-weight: 600; line-height: 1.6; }
.spelling-letters { clear: both; display: flex; flex-wrap: wrap; gap: 6px; }
.spelling-letters input { box-sizing: border-box; width: 36px; height: 44px; padding: 0; border: 1px solid #7a9b91; border-bottom-width: 3px; border-radius: 4px; background: white; color: #233c38; text-align: center; font: 22px monospace; }
.spelling-letters input[data-hint] { background: #d9ede3; border-color: #568777; font-weight: 700; }
.spelling-letters input:disabled { opacity: 1; -webkit-text-fill-color: #233c38; }
.spelling-feedback { line-height: 1.6; margin-bottom: 0; }
.spelling-actions { margin: 24px 0; }
.spelling-actions .primary-action { width: auto; margin: 0; }
.spelling-note { font-size: 14px; line-height: 1.6; }
.spelling-history { border-top: 1px solid #bbccca; margin-top: 28px; padding: 16px 0; }
.spelling-history li { padding: 6px 0; }
.spelling-page button { max-width: 100%; white-space: normal; cursor: pointer; }
.spelling-page #panel-retry { padding: 8px 14px; border: 1px solid #78978c; border-radius: 4px; background: #fff; color: #23483e; }
.spelling-page button:disabled { opacity: .6; cursor: not-allowed; }
.spelling-page :focus-visible { outline: 3px solid #a54e62; outline-offset: 3px; }
.spelling-page [hidden] { display: none !important; }
@media (max-width: 600px) {
    .spelling-week { grid-template-columns: minmax(0,1fr); }
    .spelling-week img { width: 240px; max-width: 100%; }
    #spelling-word-list { columns: 1; }
    .spelling-days li { font-size: 12px; }
}
@media print {
    .spelling-page .app-header, .spelling-page .app-shell > :not(#spelling-print-copy), .spelling-page footer { display: none !important; }
    .spelling-page #spelling-print-copy { display: block !important; color: black; }
    #spelling-print-copy section { break-inside: avoid; margin: 24px 0; }
    #spelling-print-copy pre { font: 22px monospace; white-space: pre-wrap; }
    @page { margin: 16mm; }
}
