:root {
  color-scheme: light;
  --ink: #172c26;
  --muted: #4e6259;
  --green: #245845;
  --deep: #133b30;
  --lime: #dafe8c;
  --surface: #fff;
  --canvas: #f7f8f3;
  --line: #dce4da;
  --radius: 19px;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #4d976e; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { background: white; padding: 12px; position: fixed; left: 1rem; top: -5rem; z-index: 10; }
.skip:focus { top: 1rem; }
.icon { width: 21px; height: 21px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-icon] { display: inline-grid; place-items: center; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 32px 18px 24px; background: #fbfcf9; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px; width: fit-content; font-weight: 800; line-height: 1.16; font-size: 1.12rem; letter-spacing: -.025em; }
.brand-icon { background: var(--deep); color: var(--lime); width: 43px; height: 43px; border-radius: 13px; }
.brand-secondary { display: block; }
.navigation { display: grid; gap: 6px; margin-top: 48px; }
.navigation a,.sidebar-action { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; font-weight: 650; color: var(--muted); font-size: .96rem; }
.navigation a[aria-current], .sidebar-action[aria-current] { color: #1b503c; background: #e4efe6; }
.navigation a:hover,.sidebar-action:hover { background: #edf2ea; color: var(--deep); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 13px; }
.main { width: 100%; max-width: 1410px; margin: 0 auto; padding: 0 clamp(22px, 4.5vw, 69px) 64px; outline: none; }
.topbar { display: flex; min-height: 82px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .94rem; font-weight: 650; gap: 16px; }
.top-action { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #d5e2d5; background: #fcfdfa; padding: 8px 13px; border-radius: 9px; color: #254e3e; white-space: nowrap; }
.top-action:hover,.button.secondary:hover { background: #edf4eb; }
.top-action .icon { width: 17px; height: 17px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.039em; }
h1 { font-size: clamp(2.15rem,5.2vw,4.45rem); font-weight: 820; }
h2 { font-size: clamp(1.48rem,2.55vw,2.1rem); font-weight: 780; }
h3 { font-size: 1.14rem; line-height: 1.25; }
p { color: var(--muted); }
.hero { isolation: isolate; position: relative; overflow: hidden; min-height: 306px; background: #143d31; color: #f6faee; border-radius: 24px; padding: clamp(27px,4.6vw,64px); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero h1 { max-width: 11ch; }
.hero p { color: #d0e0d5; max-width: 37ch; margin-top: 14px; font-size: 1.03rem; }
.hero .button { margin-top: 24px; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 49%; height: 100%; pointer-events: none; color: #9fe3a8; opacity: .92; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art svg text { fill: #dafe8c; font-family: ui-monospace, monospace; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button { border: 1px solid transparent; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; min-height: 45px; gap: 8px; padding: 9px 15px; font-weight: 730; line-height: 1.3; text-align: center; }
.button .icon { width: 18px; height: 18px; }
.button.primary { background: var(--deep); color: white; }
.button.primary:hover { background: #215745; }
.button.lime { background: var(--lime); color: #203820; }
.button.lime:hover { background: #e5ffaf; }
.button.secondary { background: #fff; color: var(--deep); border-color: #d5e2d5; }
.button:disabled { opacity: .55; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 17px 0 36px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.stat-icon,.topic-icon { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; flex: none; }
.stat strong { display: block; font-size: 1.23rem; line-height: 1.22; }
.stat small { display: block; color: var(--muted); font-size: .88rem; }
.mint { color: #22624a; background: #e6f4e9; }
.lilac { color: #634491; background: #eee7f8; }
.blue { color: #244d8a; background: #e5eefb; }
.peach { color: #815027; background: #faecd9; }
.rose { color: #8c415b; background: #f6e6ed; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 0 17px; }
.section-head p { margin-top: 6px; }
.text-link { color: var(--green); font-weight: 720; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.topic-card,.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-card { padding: 19px; min-height: 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; transition: border-color .15s, background .15s; }
.topic-card:hover { border-color: #a7c3af; background: #fdfefb; }
.topic-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.topic-card p { font-size: .95rem; }
.topic-card small { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.topic-card .done { color: var(--green); }
.quiz-highlight { margin-top: 20px; background: #eaf2e7; border: 1px solid #d7e7d5; padding: 19px; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz-highlight p { margin-top: 4px; }
.page-head { padding: 12px 0 22px; max-width: 760px; }
.page-head h1 { font-size: clamp(2rem,5vw,3.65rem); }
.page-head p { margin-top: 10px; font-size: 1.03rem; }
.page-head .topic-icon { margin-bottom: 12px; }
.panel { padding: clamp(18px,3.5vw,30px); }
.reading { max-width: 820px; }
.reading section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.reading h2 { font-size: 1.37rem; margin-bottom: 10px; }
.reading p { margin-top: 6px; }
dl { margin: 14px 0 0; }
.term { display: grid; grid-template-columns: minmax(125px, 1fr) minmax(0, 3fr); gap: 10px; padding: 8px 0; border-top: 1px solid #eef0ed; }
dt { font-weight: 730; }
dd { margin: 0; color: var(--muted); }
pre { background: #17372e; color: #e9f5e7; padding: 16px; border-radius: 11px; overflow: auto; font-size: .92rem; line-height: 1.6; }
.reading-actions { max-width: 820px; margin-top: 16px; }
.status { border: 1px solid #e3cc8b; background: #fff8e5; color: #5e4512; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .94rem; }
.status button { padding: 0; border: 0; background: transparent; text-decoration: underline; color: inherit; font-weight: 750; margin-left: 8px; }
.quiz-panel { max-width: 760px; }
.quiz-panel h2 { margin-bottom: 13px; }
.quiz-panel p + p { margin-top: 8px; }
.quiz-setup { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 720; }
select,textarea { width: 100%; border: 1px solid #cad9ce; padding: 10px 12px; border-radius: 9px; background: #fff; color: var(--ink); }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23245845' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
textarea { min-height: 138px; resize: vertical; font-family: ui-monospace, monospace; font-size: .94rem; }
.quiz-meta { display: flex; justify-content: space-between; margin-bottom: 9px; gap: 12px; font-weight: 700; color: var(--muted); font-size: .92rem; }
progress { width: 100%; height: 9px; accent-color: #488560; margin-bottom: 15px; display: block; }
.question { white-space: pre-wrap; overflow-wrap: anywhere; }
.options { display: grid; gap: 8px; margin: 16px 0; }
.option { border: 1px solid #dce5dd; border-radius: 11px; padding: 9px 12px; min-height: 49px; text-align: left; display: flex; align-items: center; gap: 11px; background: #fafcf9; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.option:not(:disabled):hover { border-color: #8caf98; background: #ebf4eb; }
.option.correct { border-color: #71a780; background: #e4f2e4; }
.option.wrong { border-color: #dca494; background: #f9e9e4; }
.letter { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 7px; background: #edf1ec; font-weight: 800; flex: none; }
.feedback { padding: 13px 15px; border-radius: 10px; background: #edf4ea; margin: 12px 0; overflow-wrap: anywhere; }
.feedback p { margin-top: 3px; white-space: pre-wrap; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.score { font-size: clamp(2.6rem,8vw,5rem); letter-spacing: -.08em; line-height: 1; color: var(--deep); display: block; font-weight: 850; margin-bottom: 9px; }
.review { margin-top: 17px; }
.review summary { cursor: pointer; font-weight: 720; }
.review ul { padding-left: 20px; }
.review li { margin: 9px 0; }
.import-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 980px; gap: 14px; }
.import-grid h2 { font-size: 1.34rem; margin-bottom: 8px; }
.import-grid p { margin-bottom: 12px; }
.import-grid .field { margin: 12px 0; }
.feedback-line { color: #285d41; font-weight: 670; margin-top: 10px; }
.feedback-line.error { color: #8b392a; }
.next-space { margin-top: 12px; }
.schedule-head, .subjects-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 12px 0 25px; }
.schedule-head h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
.schedule-head p { margin-top: 8px; }
.calendar { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.calendar-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--deep); color: var(--surface); }
.calendar-bar h2 { display: flex; align-items: center; gap: 9px; font-size: clamp(1.2rem, 2.4vw, 1.65rem); }
.calendar-bar h2 .icon { color: var(--lime); }
.calendar-nav { display: flex; gap: 6px; }
.calendar-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #698378; border-radius: 9px; background: transparent; color: white; }
.calendar-nav button:hover:not(:disabled) { background: #2a5849; }
.calendar-nav button:disabled { opacity: .38; }
.calendar-nav button:focus-visible { outline-color: var(--lime); outline-offset: 2px; }
.calendar-grid { width: 100%; table-layout: fixed; border-spacing: 0; }
.calendar-grid th { background: #f0f4ee; color: var(--green); padding: 9px 6px; font-size: .81rem; font-weight: 750; }
.calendar-grid th + th, .calendar-grid td + td { border-left: 1px solid var(--line); }
.calendar-grid td { padding: 0; border-top: 1px solid var(--line); vertical-align: top; }
.calendar-grid td.weekend, .calendar-grid td.outside-month { background: #f6f8f4; }
.calendar-date { display: flex; width: 100%; min-height: 69px; flex-direction: column; align-items: stretch; gap: 4px; padding: 5px 6px 7px; border: 0; text-align: left; background: transparent; color: var(--ink); }
.calendar-date[aria-pressed="true"] { background: #eaf2e8; }
.calendar-date:hover { background: #eef4ed; }
.calendar-date:focus-visible { outline-offset: -3px; }
.date-number { display: flex; align-items: baseline; align-self: start; justify-content: center; gap: 4px; min-width: 28px; min-height: 28px; padding: 2px 4px; border-radius: 7px; font-weight: 700; font-variant-numeric: tabular-nums; }
.date-number small { font-size: .72em; }
.outside-month:not(.scheduled) .date-number { color: #62766a; }
.calendar-date[aria-pressed="true"] .date-number { background: var(--deep); color: white; }
.calendar-events { display: grid; gap: 3px; }
.calendar-event { display: flex; min-width: 0; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 5px; font-size: .74rem; font-weight: 720; line-height: 1.2; }
.calendar-event .icon { width: 13px; height: 13px; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-events { font-size: .72rem; font-weight: 750; color: var(--green); }
.weekday-short { display: none; }
.day-details { margin-top: 23px; }
.day-details h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.day-details h2 .icon { color: var(--green); }
.day-exams, .subject-grid, .resource-list { margin: 0; padding: 0; list-style: none; }
.day-exams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.day-exams li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px 13px; }
.day-subject { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 44px; overflow-wrap: anywhere; }
.day-subject > .icon, .subject-card-top > .icon { color: var(--green); width: 17px; height: 17px; }
.day-subject .topic-icon { width: 31px; height: 31px; border-radius: 7px; }
.day-subject .topic-icon .icon { width: 17px; height: 17px; }
.day-subject:hover strong, .subject-card:hover strong, .resource-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.day-exams p { margin-top: 4px; font-size: .85rem; }
.session-time { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 720; color: var(--deep); }
.session-time .icon { width: 15px; height: 15px; }
.day-exams .exam-note { color: var(--green); }
.subjects-head .page-head { padding: 0; }
.subject-search { display: flex; align-items: center; gap: 7px; width: min(100%, 265px); padding: 0 11px; border: 1px solid #c7d6ca; border-radius: 9px; background: var(--surface); color: var(--green); }
.subject-search:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.subject-search input { width: 100%; min-height: 44px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; }
.subject-search input::placeholder { color: var(--muted); }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.subject-card { display: flex; flex-direction: column; gap: 7px; height: 100%; min-height: 135px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.subject-card:hover { border-color: #a2bba7; background: #fbfdf9; }
.subject-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 4px; }
.subject-card strong { color: var(--deep); font-size: 1.04rem; line-height: 1.25; }
.subject-card-meta { margin-top: auto; color: var(--muted); font-size: .86rem; }
.subject-emblem { width: 53px; height: 53px; }
.subject-emblem .icon { width: 26px; height: 26px; }
.back-link { display: inline-flex; min-height: 32px; align-items: center; }
.subject-section { margin: 25px 0; }
.subject-note { color: var(--green); }
.resource-list a { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 3px; min-height: 46px; border-bottom: 1px solid var(--line); color: var(--deep); font-weight: 690; }
.resource-list a span, .material-note { overflow-wrap: anywhere; }
.resource-list a span { flex: 1; }
.resource-list small { color: var(--muted); }
.material-note { padding: 12px 3px; border-bottom: 1px solid var(--line); }
.material-note summary { cursor: pointer; color: var(--deep); font-weight: 720; }
.material-note p { margin-top: 10px; white-space: pre-wrap; }
.course-grid .topic-card { min-height: 200px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 210px); grid-template-areas: "chapter contents"; align-items: start; gap: 20px; }
.lesson-outline { grid-area: contents; position: sticky; top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lesson-outline strong { font-size: .93rem; color: var(--deep); }
.lesson-outline ol { margin: 8px 0 0; padding-inline-start: 1.2rem; color: var(--muted); font-size: .86rem; }
.lesson-outline li + li { margin-top: 3px; }
.lesson-outline button { border: 0; background: none; color: var(--green); text-align: left; line-height: 1.3; min-height: 34px; padding: 5px 0; vertical-align: top; }
.lesson-outline button:hover { text-decoration: underline; text-underline-offset: 3px; }
.course-reading { grid-area: chapter; min-width: 0; max-width: none; }
.course-reading section { line-height: 1.75; }
.course-reading h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); scroll-margin-top: 20px; }
.course-reading h3 { font-size: 1.105rem; margin: 20px 0 7px; }
.course-reading p { margin-block: .75em; }
.course-reading a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
.course-reading li + li { margin-top: .35em; }
.course-reading blockquote { margin: 15px 0; padding: 4px 13px; border-inline-start: 3px solid #6e967b; background: #f0f5ed; }
.course-reading .lesson-plain { white-space: pre-line; }
.course-reading .katex-block { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #f4f7f1; overflow-x: auto; text-align: center; }
.course-reading math[display="block"] { margin: .35rem 0; }
.lesson-table { max-width: 100%; overflow-x: auto; margin: 13px 0; border: 1px solid var(--line); border-radius: 9px; scrollbar-color: #91af9a #eef2eb; }
.lesson-table table { width: 100%; border-collapse: collapse; font-size: .91rem; font-variant-numeric: tabular-nums; }
.lesson-table th, .lesson-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.lesson-table th { background: #eaf1e8; color: var(--deep); }
.lesson-table tr:last-child td { border-bottom: 0; }
.lesson-table tbody tr:nth-child(even) { background: #f9faf7; }
.lesson-table .table-right { text-align: right; white-space: nowrap; }
.lesson-table .table-center { text-align: center; }
.course-option { cursor: pointer; }
.course-option:has(input:checked), .statement label:has(input:checked) { border-color: #80a790; background: #e6f1e8; }
.course-option input, .statement input { accent-color: var(--green); flex: none; margin: 0; }
.statement { margin: 0; min-width: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 10px; }
.statement legend { padding: 0 5px; font-weight: 650; overflow-wrap: anywhere; }
.statement div { display: flex; flex-wrap: wrap; gap: 7px; }
.statement label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.course-review { margin-block: 12px; }
.local-import { display: block; }
.local-import .field:first-child { margin-top: 0; }
.prompt-guide { margin-top: 16px; max-width: 980px; }
.prompt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.prompt-head h2 { font-size: 1.24rem; margin-bottom: 6px; }
.prompt-head p { max-width: 66ch; margin-bottom: 4px; }
.prompt-code { margin: 12px 0 18px; white-space: pre-wrap; word-break: break-word; font-size: .88rem; max-height: 420px; }
.prompt-guide h3 { font-size: 1.05rem; margin-bottom: 8px; }
.guide-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.guide-list code { background: #eaf2e8; color: #17372e; padding: 1px 6px; border-radius: 5px; font-size: .88em; }
@media (max-width: 1110px) {
  .layout { grid-template-columns: 192px minmax(0,1fr); }
  .main { padding-inline: 30px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 950px) {
  .calendar-event .icon { display: none; }
  .day-exams { grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr)); }
  .lesson-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "contents" "chapter"; gap: 12px; }
  .lesson-outline { position: static; }
  .lesson-outline ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 19px; }
}
@media (max-width: 730px) {
  .layout { display: block; }
  .sidebar { height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 13px 15px 0; }
  .brand { padding: 0; gap: 8px; font-size: 1.05rem; }
  .brand-icon { width: 35px; height: 35px; border-radius: 9px; }
  .brand-secondary { display: inline; margin-left: .23em; }
  .navigation { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 6px; }
  .navigation a { padding: 6px 10px; gap: 6px; min-height: 44px; font-size: .87rem; }
  .navigation .icon { width: 17px; height: 17px; }
  .sidebar-bottom { display: none; }
  .main { padding: 0 15px 42px; }
  .topbar { min-height: 58px; }
  .hero { min-height: 250px; border-radius: 18px; }
  .hero-art { opacity: .48; width: 52%; }
  .hero p { max-width: 29ch; }
  .stats { margin-bottom: 29px; gap: 7px; }
  .stat { display: grid; gap: 6px; padding: 10px; min-width: 0; }
  .stat-icon { width: 30px; height: 30px; border-radius: 7px; }
  .stat-icon .icon { width: 16px; height: 16px; }
  .stat strong { font-size: 1.1rem; }
  .stat small { font-size: .79rem; }
  .section-head { align-items: flex-start; }
  .card-grid { gap: 8px; }
  .topic-card { padding: 12px; min-height: 157px; gap: 6px; border-radius: 13px; }
  .topic-card h3 { font-size: 1rem; }
  .topic-card p { font-size: .86rem; }
  .topic-card small { font-size: .79rem; }
  .topic-icon { width: 36px; height: 36px; border-radius: 9px; }
  .topic-icon .icon { width: 19px; height: 19px; }
  .quiz-highlight { flex-direction: column; align-items: flex-start; }
  .import-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .course-reading .katex-block { font-size: .92rem; }
  .lesson-table th, .lesson-table td { padding-inline: 7px; }
  .schedule-head, .subjects-head { padding-bottom: 18px; gap: 13px; }
  .calendar-bar { padding: 8px 10px; }
  .calendar-grid th { padding-inline: 0; }
  .weekday-full { display: none; }
  .weekday-short { display: inline; }
  .calendar-date { min-height: 49px; gap: 2px; padding: 3px 2px 5px; align-items: center; }
  .date-number { align-self: center; min-width: 24px; min-height: 24px; font-size: .86rem; }
  .date-number small { display: none; }
  .calendar-events { display: flex; align-items: center; justify-content: center; gap: 2px; }
  .calendar-event { padding: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .calendar-event span { display: none; }
  .more-events { font-size: .55rem; }
  .subject-search { width: 100%; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .subject-card { min-height: 126px; padding: 11px; }
  .subject-card strong { font-size: .97rem; }
}
@media (max-width: 400px) {
  .term { grid-template-columns: 1fr; gap: 2px; }
  .hero-art { opacity: .27; }
}
.art-grid { position: absolute; inset: 0; background: radial-gradient(circle, #83cc9a 1px, transparent 1.6px) 0 0 / 18px 18px; mask-image: radial-gradient(ellipse 74% 80% at 58% 48%, black, transparent 73%); opacity: .57; }
.art-ring,.art-core,.art-node { position: absolute; top: 50%; left: 57%; transform: translate(-50%,-50%); }
.art-ring { width: min(81%,270px); aspect-ratio: 1; border-radius: 50%; border: 1px dashed #77ad91; }
.art-ring.inner { width: min(63%,205px); border-style: solid; opacity: .55; }
.art-core,.art-node { display: grid; place-items: center; background: #245344; border: 1px solid #73ad8a; border-radius: 50%; color: #dbfbad; }
.art-core { width: min(36%,126px); aspect-ratio: 1; border-radius: 28%; box-shadow: 0 0 38px #b5f09d34; transform: translate(-50%,-50%) rotate(-9deg); }
.art-core .icon { width: 53%; height: 53%; stroke-width: 1.35; }
.art-node.one { left: 29%; top: 29%; width: 42px; height: 42px; }
.art-node.two { left: 81%; top: 73%; width: 49px; height: 49px; }
.art-node.three { left: 80%; top: 20%; width: 12px; height: 12px; background: var(--lime); border: 0; box-shadow: 0 0 15px #dafe8c70; }
.score small { font-size: .41em; letter-spacing: -.04em; }
