:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #17212f; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
.page { width: min(100%, 560px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
header { margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: #246bfe; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
h1 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 17px; line-height: 1.45; }
.intro { margin: 10px 0 0; color: #586577; font-size: 15px; line-height: 1.6; }
.mode { display: inline-block; margin: 12px 0 0; padding: 5px 9px; border-radius: 999px; background: #f1f5ff; color: #2457b8; font-size: 12px; line-height: 1.4; }
.label { display: block; margin: 0 0 8px; color: #354156; font-size: 14px; font-weight: 600; }
textarea { width: 100%; resize: vertical; border: 1px solid #cdd5df; border-radius: 10px; padding: 12px 13px; color: #17212f; background: #fff; font: inherit; font-size: 16px; line-height: 1.55; outline: none; }
textarea:focus { border-color: #246bfe; box-shadow: 0 0 0 3px rgba(36,107,254,.12); }
.course-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: #465266; font-size: 13px; line-height: 1.5; }
.course-context[hidden] { display: none; }
.course-context button { flex: none; border: 0; padding: 4px 0; color: #2457b8; background: transparent; font: inherit; cursor: pointer; }
.button { width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 10px; padding: 11px 16px; font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; }
.button:disabled { opacity: .55; cursor: default; }
.primary { color: #fff; background: #246bfe; }
.secondary { color: #1d54bd; background: #edf3ff; }
.note { margin: 9px 0 0; color: #697586; font-size: 13px; line-height: 1.55; }
.result { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e5e9f0; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { flex: none; border-radius: 999px; padding: 4px 8px; background: #f5f7fa; color: #596579; font-size: 12px; }
.answer { margin-top: 12px; white-space: pre-wrap; font-size: 16px; line-height: 1.7; }
details { margin-top: 14px; border-radius: 10px; background: #f7f9fc; padding: 12px 14px; }
summary { cursor: pointer; color: #354156; font-size: 14px; font-weight: 600; }
ul { margin: 12px 0 0; padding-left: 20px; }
li { margin-top: 10px; color: #465266; font-size: 13px; line-height: 1.55; }
li:first-child { margin-top: 0; }
footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid #e5e9f0; color: #7a8493; font-size: 12px; line-height: 1.55; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 700px) { .page { padding-inline: 28px; } }
