:root{font:16px/1.6 "Microsoft YaHei",system-ui,sans-serif;color:#203b37;background:#f6f6f0}*{box-sizing:border-box}body{margin:0}header,main{max-width:1180px;margin:auto;padding:22px 32px}header,.row,footer,.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}header{border-bottom:1px solid #ced8ce}.brand{font-weight:750;font-size:18px}.brand b{background:#165c4b;color:white;padding:5px 10px;border-radius:9px;margin-right:6px}main{padding-top:32px}h1{font-size:clamp(25px,4vw,40px);line-height:1.25;margin:4px 0 14px}h2{font-size:20px;margin:8px 0 14px}h3{margin:0;font-size:16px}button,input,textarea,select{font:inherit}button,.link{border:1px solid #bccbc1;background:#fff;color:#234b40;border-radius:8px;padding:6px 12px;cursor:pointer;text-decoration:none}button:hover,.link:hover{background:#e9f1e7}.primary{background:#185b49;color:white}.primary:hover{background:#0b4436}button:focus-visible,a:focus-visible{outline:3px solid #e6ac51}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:14px}.panel,article,.login{background:white;border:1px solid #dbe2d9;padding:20px;border-radius:14px;margin:15px 0}.grid article{margin:0}.stat strong{display:block;font-size:30px}.muted,small{color:#566c63}.tag{font-size:13px;background:#e5efe5;color:#244f40;padding:3px 8px;border-radius:5px}.late,.error{color:#963e29}.item{border-top:1px solid #e1e6dd;padding:12px 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.login{max-width:480px;margin:8vh auto}label{display:block;margin:12px 0;font-weight:600}input,textarea,select{width:100%;padding:9px;border:1px solid #b8c8bc;border-radius:7px;background:white;color:inherit}textarea{min-height:80px}dialog{width:min(540px,93vw);max-height:88vh;border:1px solid #c8d2c9;border-radius:16px;padding:24px;color:inherit}dialog::backdrop{background:#132c2573}footer{justify-content:flex-end}p{white-space:pre-line;overflow-wrap:anywhere}#notice:not(:empty){position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#203d34;color:white;padding:10px 18px;border-radius:8px}.search{max-width:300px}details{margin:10px 0}summary{cursor:pointer}button:disabled{opacity:.55}@media(max-width:600px){header,main{padding:16px}.panel,article{padding:14px}}@media print{header,button,.actions,#notice,.screen{display:none!important}main{padding:0}.panel,article{break-inside:avoid}}

.essay-text{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dbe2d9;padding:14px;border-radius:8px;max-height:420px;overflow:auto;background:#f8faf6}label:has(textarea[name="text"]) textarea{min-height:260px}
