main.tool{max-width:1040px}.lede{margin:.2em 0 1em;color:#444}
.tool-ui{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:20px;align-items:start;background:#fff;border:1px solid #d9d9d2;border-radius:12px;padding:16px}
.ctrl label{display:block;font-size:14px;font-weight:600;margin:10px 0 4px}.ctrl label.chk{font-weight:500;display:flex;gap:8px;align-items:center}
.ctrl input[type=text],.ctrl input[type=number],.ctrl select,.ctrl textarea{width:100%;font:inherit;font-size:15px;padding:8px;border:1px solid #c9c9c2;border-radius:8px;background:#fff}
.ctrl textarea{min-height:150px;resize:vertical}.ctrl .btns{margin-top:14px}.ctrl button{font:inherit;font-weight:600;padding:10px 14px;border-radius:8px;border:1px solid #0b5bd3;background:#fff;color:#0b5bd3;cursor:pointer}
.ctrl button.primary{background:#0b5bd3;color:#fff}.msg{font-size:14px;color:#555;margin:8px 0 0}
.sheet{background:#fff;border:1px solid #e3e3dc;border-radius:8px;padding:14px;min-width:0}.sheet-title{text-align:center;font-weight:700;font-size:1.15rem;margin:0 0 10px}
.wgrid{display:grid;gap:0;max-width:560px;margin:0 auto;border:1.5px solid #111;font:600 clamp(11px,2.6vw,19px)/1 ui-monospace,Menlo,Consolas,monospace}
.wgrid span{aspect-ratio:1;display:flex;align-items:center;justify-content:center}.wgrid span.hit{background:#ffe48a}
.wlist{columns:3;list-style:none;padding:0;margin:12px auto 0;max-width:560px;text-align:center;font-size:14px}
.sgrid{display:grid;grid-template-columns:repeat(9,1fr);max-width:460px;margin:0 auto;border:2.5px solid #111}
.sgrid span{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-right:1px solid #999;border-bottom:1px solid #999;font-size:clamp(15px,4.2vw,26px)}
.sgrid span.br{border-right:2.5px solid #111}.sgrid span.bb{border-bottom:2.5px solid #111}.sgrid span.given{font-weight:700}.sgrid span.ans{color:#0b5bd3}
.msvg,.csvg{display:block;width:100%;max-width:560px;height:auto;margin:0 auto}.mlabels{display:flex;justify-content:space-between;max-width:560px;margin:6px auto 0;font-size:13px;color:#555}
.big{background:#f3f7ff;border:1px solid #cfe0fb;border-radius:10px;padding:10px 14px;margin:0 0 10px}.big span{display:block;font-size:13px;color:#444}.big b{display:block;font-size:1.6rem}.big small{color:#555}
.res th{width:30%;font-size:14px}.res td{font-size:14px}.warn{background:#fff6e0;border:1px solid #f0d58c;border-radius:8px;padding:8px 12px;font-size:14px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:0;list-style:none}.cards li{background:#fff;border:1px solid #d9d9d2;border-radius:10px;padding:14px}.cards a{font-weight:700}
.cite{font-size:14px;color:#555}
@media (max-width:720px){.tool-ui{grid-template-columns:1fr;padding:12px}#ws-sheet,#sd-sheet,#mz-sheet{order:-1}.wlist{columns:2}h1{font-size:1.6rem}}
@media print{body{background:#fff}header,footer,nav,.ctrl,.lede,.cta,.after,h1,.crumbs,.msg,#cu{display:none!important}.tool-ui{display:block;border:0;padding:0}.sheet{border:0}main{max-width:none;padding:0}}
