.math-center-header { gap: 20px; }
.math-center-header nav { display: flex; flex-wrap: wrap; gap: 8px; }
.math-center-header nav a, .math-center-header .brand { display: inline-flex; min-height: 44px; align-items: center; padding: 8px; }
.math-center-language { display: flex; align-items: center; gap: 8px; }
.math-center-language select { min-height: 44px; }
.math-center-main { width: min(1120px, calc(100% - 32px)); margin: 32px auto 64px; }
.math-center-main h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
.math-center-lead { max-width: 48rem; font-size: 1.2rem; }
.math-center-grade-panel { margin: 28px 0; padding: 20px; border: 1px solid #d7e0e8; border-radius: 18px; background: #f6fafc; }
.math-center-grade-panel h2, .math-center-topics > h2, .math-center-more h2 { margin-top: 0; }
.math-center-grade-options { display: flex; flex-wrap: wrap; gap: 10px; }
.math-center-grade-options button { min-width: 76px; min-height: 48px; padding: 10px 16px; border: 2px solid #3e627d; border-radius: 12px; background: #fff; color: #17344b; font: inherit; font-weight: 700; cursor: pointer; }
.math-center-grade-options button[aria-pressed="true"] { background: #174f74; color: #fff; border-color: #174f74; }
.math-center-grade-options button:focus-visible, .math-center-main a:focus-visible, .math-center-language select:focus-visible { outline: 3px solid #a65c00; outline-offset: 3px; }
#math-center-grade-status { margin-bottom: 0; }
.math-center-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.math-center-topic { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid #d7e0e8; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgb(23 52 75 / 7%); }
.math-center-topic h3 { margin: 0 0 10px; font-size: 1.45rem; }
.math-center-topic-label { margin: 0 0 8px; color: #385c72; font-size: .9rem; font-weight: 700; }
.math-center-availability { margin-top: auto; min-height: 3.2em; color: #334c5e; }
.math-center-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.math-center-start { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; text-align: center; }
.math-center-start[aria-disabled="true"] { color: #334c5e; background: #e8eef2; border-color: #aebdc8; cursor: not-allowed; text-decoration: none; }
.math-center-practice { min-height: 44px; display: inline-flex; align-items: center; }
.math-center-content-note { margin: 24px 0; padding: 14px 18px; border-left: 4px solid #e5a02b; background: #fff8e9; }
.math-center-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 18px; border-top: 1px solid #d7e0e8; }
.math-center-more h2 { flex-basis: 100%; margin-bottom: 0; }
@media (max-width: 820px) { .math-center-topic-grid { grid-template-columns: 1fr; } .math-center-topic { min-height: auto; } }
@media (max-width: 520px) { .math-center-main { width: min(100% - 24px, 1120px); margin-top: 20px; } .math-center-grade-panel, .math-center-topic { padding: 16px; } .math-center-grade-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .math-center-grade-options button { width: 100%; } .math-center-actions { align-items: stretch; flex-direction: column; } .math-center-actions > * { justify-content: center; } .math-center-header { align-items: flex-start; flex-wrap: wrap; } .math-center-header nav { order: 3; width: 100%; } .math-center-language { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .math-center-main *, .math-center-main *::before, .math-center-main *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
