* { box-sizing: border-box; }
:root { font-family: system-ui, "Microsoft YaHei", sans-serif; color: #172824; background: #f3f5ee; line-height: 1.6; }
body { margin: 0; }
.wrap { width: min(1120px, 100% - 2rem); margin: auto; }
.masthead { color: #eef5e8; background: #12352f; border-bottom: 4px solid #b9d671; padding: 2rem 0; }
.masthead p { color: #c5d8bb; margin: 0; }
h1 { margin: .15rem 0 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; }
h1 span { display: block; font-size: .45em; font-weight: 500; margin-top: .5rem; letter-spacing: .08em; }
h2, h3, h4, p { margin-top: 0; }
h2, h3, h4 { line-height: 1.35; margin-bottom: .65rem; }
main { padding-bottom: 3rem; }
#status { min-height: 1.6em; margin: .8rem 0; overflow-wrap: anywhere; }
.error { color: #932f20; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card { background: #fff; border: 1px solid #d8e0d2; border-radius: .85rem; padding: clamp(.9rem, 3vw, 1.5rem); margin-bottom: 1rem; min-width: 0; overflow-wrap: anywhere; }
.card .card { background: #f8faf5; margin-bottom: .65rem; }
.meta { color: #4b625a; font-size: .93rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
form { display: grid; gap: .65rem; margin: .6rem 0; }
label { display: grid; gap: .2rem; font-size: .94rem; }
input, textarea, select { width: 100%; border: 1px solid #81988f; border-radius: .45rem; background: white; padding: .55rem; color: inherit; font: inherit; }
textarea { min-height: 4.2rem; resize: vertical; }
button { border: 1px solid #23594e; background: #23594e; border-radius: .45rem; color: #fff; padding: .5rem .75rem; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
button.secondary { background: #eef3e6; color: #1b443b; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #9c5c00; outline-offset: 2px; }
details { border-bottom: 1px solid #d8e0d2; padding: .6rem 0; }
summary { font-weight: 650; cursor: pointer; }
.pre { white-space: pre-wrap; }
ul, ol { padding-left: 1.5rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { border-bottom: 1px solid #d8e0d2; padding: .35rem .45rem; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }


.entry-pin { font-weight: 650; margin-top: .75rem; }
.score-options { display:flex; flex-wrap:wrap; gap:.4rem; border:1px solid #d8e0d2; border-radius:.45rem; padding:.4rem .65rem .65rem; }
.score-option { position:relative; cursor:pointer; }
.score-option input { position:absolute; opacity:0; width:1px; height:1px; }
.score-option span { border:1px solid #23594e; border-radius:.45rem; min-width:2.6rem; padding:.3rem .55rem; text-align:center; }
.score-option input:checked + span { background:#23594e; color:white; }
.score-option input:focus-visible + span { outline:3px solid #9c5c00; outline-offset:2px; }
.student-row { padding:.7rem; margin-bottom:.65rem; background:white; border:1px solid #d8e0d2; border-radius:.65rem; }
.student-row > .card { margin-top:.7rem; margin-bottom:0; }
