:root{color-scheme:light;--ink:#17252c;--muted:#4c5b63;--line:#d7e0e2;--paper:#f4f7f7;--brand:#164a48;--accent:#e4f0ec}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
[hidden]{display:none!important}
.mast{height:65px;border-bottom:1px solid var(--line);display:flex;gap:.75rem;align-items:center;padding:0 max(20px,calc((100vw - 1080px) / 2));font-weight:700;background:white;white-space:nowrap}
.mark{display:grid;place-items:center;width:33px;height:33px;border-radius:8px;background:var(--brand);color:white}
.edition{margin-left:auto;color:var(--muted);font-weight:500;font-size:.875rem}
main{max-width:1120px;margin:auto;padding:30px 20px}
.intro{margin:4px 0 24px}.intro p{margin:.55rem 0;color:var(--muted)}
.kicker{font-size:.875rem;font-weight:700;letter-spacing:.12em;color:var(--brand)!important}
h1,h2,p{overflow-wrap:anywhere}
h1{font-size:clamp(2rem,5vw,3rem);line-height:1.15;margin:.3rem 0 .75rem;letter-spacing:-.035em}
h2{font-size:1.3rem;line-height:1.38;margin:0 0 .85rem}
.workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:clamp(16px,3vw,25px);min-width:0}
.cardhead,.controls,.submission{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.cardhead{justify-content:space-between;margin-bottom:.75rem}
.cardhead h2{margin:0}.pill{font-size:.875rem;color:var(--brand);background:var(--accent);padding:.2rem .65rem;border-radius:999px}
.assignment{background:#eff5f3;border-left:3px solid #3c776e;padding:.7rem .9rem;margin:1.1rem 0}
details{border-top:1px solid var(--line);padding-top:.7rem}summary{cursor:pointer;font-weight:650;color:var(--brand)}
button{font:inherit;font-weight:650;border:1px solid transparent;border-radius:9px;padding:.42rem .8rem;min-height:44px;cursor:pointer}
.primary{background:var(--brand);color:#fff}.quiet{background:#fff;border-color:var(--line);color:var(--brand)}
button:hover:not(:disabled){filter:brightness(.94)}button:disabled{opacity:.56;cursor:not-allowed}
:focus-visible{outline:3px solid #0a777c;outline-offset:3px}.time{font-variant-numeric:tabular-nums;color:var(--brand);font-weight:750;line-height:1.3}
.note{font-size:.9rem;color:var(--muted);margin:.65rem 0;line-height:1.6}
textarea{font:inherit;width:100%;margin:.4rem 0 0;border-radius:10px;border:1px solid #a6b8bb;padding:.6rem .75rem;resize:vertical;line-height:1.55}
label{font-weight:650}label span{font-size:.875rem;color:var(--muted);font-weight:450;margin-left:.35rem}
.feedback{grid-column:1/-1}.feedback label{display:flex;align-items:flex-start;gap:.6rem;padding:.3rem 0;font-weight:500}
input[type=checkbox]{width:19px;height:19px;flex:none;accent-color:var(--brand)}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:1rem 0}.columns section{background:#eff5f3;padding:.7rem 1rem;border-radius:10px;min-width:0}
.columns p{white-space:pre-wrap;margin:.3rem 0}a{color:var(--brand)}footer{color:var(--muted);font-size:.875rem;margin:1.5rem 0}
@media(max-width:700px){.workspace,.columns{grid-template-columns:1fr}.mast{height:57px}main{padding:20px 14px}.intro{margin-bottom:18px}}
#codeLabel{display:block;margin-top:.75rem}#access{font:inherit;max-width:100%;display:block;padding:.35rem .65rem;border-radius:8px;border:1px solid #a6b8bb;margin:.25rem 0}
.feedback h3{font-size:1.1rem;margin:.65rem 0}.feedback h4{font-size:1rem;margin:.65rem 0}.feedback blockquote{margin:.6rem 0;padding:.5rem .8rem;background:#f0f5f4;border-left:3px solid #5b8079;white-space:pre-wrap}
section.details p:last-child{margin-bottom:0}
@media(max-width:365px){.controls button,.submission button{flex:1 1 auto}.cardhead{column-gap:.5rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
