*{box-sizing:border-box}body{margin:0;background:#f4f8fc;color:#162d48;font:16px/1.6 system-ui,"PingFang SC",sans-serif}main{max-width:640px;margin:auto;padding:36px 18px 110px}header{padding:8px 5px 12px}h1,h2,h3{font-family:"Songti SC","STSong",serif;margin:0}h1{font-size:46px;letter-spacing:.09em}header p{margin:0;letter-spacing:.32em;font-size:20px}.mark{float:right;font:64px/1.4 Georgia,serif;color:#245e96}h2{font-size:23px;margin:22px 0 12px}h2 small{float:right}small,.meta,.hint{font:13px/1.6 system-ui;color:#55677c}.total{margin:4px 0 12px}.total strong,footer strong{font-size:19px;color:#124c82}article{background:white;border:1px solid #d6e0eb;border-radius:17px;padding:18px;margin:12px 0}article h2{margin:0 0 16px}h3{font-size:26px;overflow-wrap:anywhere}.row,.actions,footer{display:flex;align-items:center;justify-content:space-between}.row h3{min-width:0}.row button,footer button{flex-shrink:0}button,a.control{font:inherit;color:#21558b;background:#e5eff9;border:0;border-radius:9px;padding:7px 13px;text-decoration:none;cursor:pointer}button:disabled{opacity:.6}button.link,#totalEdit{background:none;font-size:13px;padding:6px}.primary,footer button{background:#185a9f;color:white}p{margin:8px 0}.reason{white-space:pre-wrap;overflow-wrap:anywhere}.method,footer{border-top:1px solid #e2e8ef;padding-top:12px;margin-top:13px}.method p{font-size:14px}.qrbox{text-align:center}.qrbox canvas{display:block;max-width:100%;width:280px;height:auto;margin:12px auto;image-rendering:pixelated}footer{font-size:13px}footer button{padding:5px 17px}footer button:disabled{background:#e3ebf4;color:#4d617c}label{display:block;font-weight:600;margin:12px 0}input,textarea{display:block;width:100%;font:inherit;border:1px solid #c8d6e6;background:#f6f9fd;border-radius:8px;padding:10px;margin:5px 0;color:#162d48}textarea{resize:vertical}.pair,.actions{display:flex}.pair label{width:50%;min-width:0}.pair label+label{margin-left:12px}.actions button{width:32%}.actions .primary{width:64%}nav{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid #dae3ed;text-align:center;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))}nav button{width:44%;max-width:280px;background:white;color:#54677b}nav [aria-current=page]{background:#e6f0fa;color:#164f86;font-weight:700}#msg:not(:empty){position:fixed;bottom:75px;left:5%;right:5%;margin:auto;max-width:600px;background:#18364e;color:white;padding:9px 12px;border-radius:8px;z-index:2}[hidden]{display:none!important}

.admin-tools{display:flex;justify-content:flex-end;margin:16px 0;gap:10px}.admin-tools button{font-size:14px}#loginForm>.primary{width:100%;margin:12px 0 4px}#passwordPanel .actions button{width:46%}.row{gap:12px}.row b{flex-shrink:0}.control{white-space:nowrap}input:focus,textarea:focus{outline:2px solid #76a2ce;outline-offset:2px}
