:root{font-family:"DM Sans","PingFang SC","Microsoft YaHei",sans-serif;color:#17382f;background:#f3f5f1;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:#103e36;color:white;height:64px;display:flex;align-items:center;gap:14px;padding:0 max(5vw,20px)}.mark,.symbol{background:#d7ed9d;color:#123a2e;border-radius:7px;font:26px/34px monospace;text-align:center;width:34px}.divider{height:18px;width:1px;background:#64857b}.push{flex:1}main{max-width:1160px;margin:auto;padding:34px 24px 60px}.card,details.card,.row,.stats{background:white;border:1px solid #dbe2dc;border-radius:12px}.card{padding:23px}.heading,.cardTitle,.row,.actions,.inline,.stats{display:flex;align-items:center;gap:12px}.heading,.cardTitle,.row{justify-content:space-between}h1{font-size:clamp(25px,4vw,38px);margin:8px 0 20px;overflow-wrap:anywhere}h2{font-size:19px;margin:0 0 14px}.cardTitle h2{margin:0}.cardTitle{margin-bottom:20px}small,.muted,p,#catalogs{color:#5d7269;line-height:1.55}.stats{padding:20px 24px;gap:45px;margin-bottom:28px}.stats b{font-size:26px;display:block}.stats small{font-size:13px}.row{width:100%;text-align:left;margin:8px 0;padding:17px}.row strong{display:block;margin-bottom:5px}.pill{background:#e2efdf;color:#245a37;border-radius:20px;padding:5px 11px;font-size:12px;white-space:nowrap}.warn{color:#8a5010;background:#fff0d8}.layout{display:grid;grid-template-columns:minmax(290px,.86fr) minmax(330px,1.3fr);gap:20px;align-items:start}.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:block;font-size:14px;font-weight:600;margin:12px 0}input,select,button{font:inherit;border-radius:7px}input,select{color:#17382f;background:#fff;border:1px solid #bccac1;padding:10px;width:100%;margin-top:5px;min-height:42px}button,summary{cursor:pointer}button{border:1px solid #c5d1c8;background:#fff;color:#204638;padding:9px 13px;font-weight:600}.primary,.scan{background:#175b49;color:white;border-color:#175b49}.scan,#save,#auth button{width:100%;padding:12px}.scan{color:#24583e;background:#eaf3df;border-color:#c8d9b7}.plain,.back{border:0;background:transparent;color:inherit}.back{padding:0;margin-bottom:14px;color:#4b6f60}.inline input{min-width:0;margin:0}.inline button{white-space:nowrap}.actions{flex-wrap:wrap;margin:12px 0}.entrytext{word-break:break-word}.record{padding:14px 0;border-top:1px solid #e0e5df}.record b{font-size:15px}.record .meta{margin:5px 0;font-size:13px;color:#64756a}.record button{font-size:12px;padding:5px 10px;margin-right:6px}details{margin:15px 0}details summary{color:#37634e;font-weight:600}#chosen,#matches{font-size:13px;margin:8px 0}#chosen{padding:8px 0}.candidate{display:block;text-align:left;width:100%;margin-top:5px}.sign{max-width:380px;margin:7vh auto}.symbol{margin-bottom:18px}dialog{border:0;border-radius:12px;padding:24px;width:min(440px,93vw);color:#17382f}dialog::backdrop{background:#12271dd0}.camera{position:relative}.camera video{display:block;width:100%}.camera i{position:absolute;top:50%;left:12%;right:12%;height:2px;background:#c9ef83}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:12px 20px;border-radius:9px;background:#103e36;color:#fff;z-index:5}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #84b17d}#records{max-height:67vh;overflow:auto}.empty{padding:22px 5px;color:#68796d}.ledger{min-width:0}@media(max-width:760px){main{padding:20px 14px}.layout{grid-template-columns:1fr}.card{padding:17px}header{height:54px;gap:8px;font-size:13px}.stats{gap:20px;justify-content:space-between}.heading{align-items:center}.heading button{white-space:nowrap}.heading h1{font-size:24px}input,select{font-size:16px}.actions button{font-size:13px}#records{max-height:none}}
