*{box-sizing:border-box}body{margin:0;background:#f4f5ef;color:#183e35;font:16px/1.65 system-ui,"Microsoft YaHei",sans-serif}header,main{max-width:1000px;margin:auto;padding:22px}header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #d4ddd2}header a{font-weight:800;font-size:23px;text-decoration:none;color:inherit}header span{font-size:13px;font-weight:400}.tag,.eyebrow{font-size:12px;letter-spacing:.1em}.tag{background:#deedc1;border-radius:20px;padding:5px 12px}.intro{padding:28px 0}h1{font-size:clamp(32px,6vw,55px);line-height:1.25;margin:12px 0 20px}.subtitle{font-size:20px}h2{font-size:23px;line-height:1.4;margin-top:0}h2 span{font-size:14px;color:#69844b;margin-right:10px}h3{font-size:18px}.panel,.result-card{border:1px solid #dbe2d6;border-radius:16px;background:white;padding:24px;margin-bottom:20px;min-width:0}.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.choices label{border:1px solid #d2ddcf;border-radius:10px;padding:14px;cursor:pointer}.choices label:has(input:checked){border:2px solid #286145;background:#eff5e5;padding:13px}.choices input{accent-color:#23593e}.choices b{font-size:15px}.choices small{display:block;color:#617263;margin-top:6px}button,input,select{font:inherit}button{min-height:46px;border:0;border-radius:9px;padding:9px 16px;cursor:pointer;font-weight:600}.primary{background:#1b513d;color:white;width:100%;font-size:19px}.secondary{background:#e5edda;color:#244a38}input[type=number],select{border:1px solid #b9c8b8;border-radius:7px;background:white;color:#163d36;min-height:44px;padding:8px;width:100%}label{display:block}input[type=checkbox]{width:20px;height:20px;accent-color:#1b513d}.inline{display:flex;align-items:center;gap:8px;margin:12px 0}.muted{color:#657568;font-size:14px}.notice{background:#f7f0dc;border-left:4px solid #c8a650;padding:12px 16px;font-size:14px}summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}.led-row{border:1px solid #dce3d4;border-radius:10px;padding:14px;margin:14px 0;background:#fafbf7}.fields{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.colors{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.color{display:flex;align-items:center;gap:6px;border:1px solid #ccd4c7;background:white;color:#254937;font-size:14px;padding:7px 10px}.color[aria-pressed=true]{outline:2px solid #28573d;background:#eaf2dd}.swatch{width:17px;height:17px;border:1px solid #99a493;border-radius:50%}.series-list{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.chip{font-size:14px;background:#eaf0df;color:#254937}.big-stat{font-size:28px;font-weight:800}.stat-grid{display:flex;gap:24px;flex-wrap:wrap}.resistance{font-size:32px;font-weight:800;margin:12px 0}.result-card svg{width:100%;height:auto;max-height:460px;background:#f8faf3;border-radius:8px}.result-card svg text{font-family:system-ui,sans-serif;fill:#214a38}.result-card svg path,.result-card svg line,.result-card svg rect{stroke:#45644b;stroke-width:2;fill:none}.error,#error{background:#ffebe5;border:1px solid #b34532;color:#823422;padding:14px;border-radius:8px;margin:15px 0}#changed{color:#875126}#results{margin-top:36px}table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;border-bottom:1px solid #dce3d4;padding:9px 4px}footer{font-size:13px;color:#647567;padding:25px 0}a{color:#245c43;overflow-wrap:anywhere}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a28024;outline-offset:3px}[hidden]{display:none!important}@media(max-width:500px){header,main{padding:16px}.panel,.result-card{padding:16px}.choices{grid-template-columns:1fr}.fields{grid-template-columns:1fr 1fr}.fields button{grid-column:1/-1}h1{font-size:34px}.intro{padding-top:18px}.stat-grid{gap:16px}.colors{gap:8px}.color{flex:1 0 65px}}

/* Compact tool layout */
body{line-height:1.45}header,main{padding:12px 16px;max-width:850px}header a{font-size:19px}.tag{font-size:11px}.intro{padding:4px 0}h1{font-size:25px;margin:8px 0 16px}h2{font-size:17px;margin:0 0 8px}h3{font-size:15px;margin:10px 0 6px}.panel,.result-card{padding:12px;margin-bottom:10px;border-radius:10px}.choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#planner>.panel:first-child .choices{grid-template-columns:repeat(2,minmax(0,1fr))}.choices label{padding:9px 6px}.choices label:has(input:checked){padding:8px 5px}.choices b{font-size:13px}.choices small{font-size:11px;margin-top:3px}.choices input{margin:0 5px 0 0}.notice{padding:7px 10px;margin:8px 0;font-size:12px}.led-row{padding:9px;margin:8px 0}.colors{gap:5px;margin:7px 0}.color{min-height:36px;padding:5px 7px;font-size:12px;flex:0 1 auto}.swatch{width:12px;height:12px}.fields{grid-template-columns:1fr 1fr auto;gap:8px;font-size:13px}.fields button{grid-column:auto;padding:6px 10px}input[type=number],select{padding:5px;min-height:38px}button{min-height:40px;font-size:14px}summary{font-size:13px;min-height:36px;padding:8px 0}.primary{font-size:16px}.muted{font-size:12px;margin:6px 0}#results{margin-top:16px}#results h2 small{font-size:12px;font-weight:400}.result-card svg{max-height:none}.result-card h3{margin-top:0}footer{font-size:11px;padding:10px 0}#changed{font-size:12px}.modes small{display:none}#planner+section+details{margin-top:12px}@media(max-width:500px){header,main{padding:10px}.tag{display:none}h1{font-size:22px}.choices b{font-size:12px}.fields{grid-template-columns:1fr 1fr auto}.fields button{grid-column:auto}.choices label{padding:10px 4px}.choices label:has(input:checked){padding:9px 3px}.colors{gap:5px}.color{flex:0 1 auto}.intro{padding:0}.panel,.result-card{padding:10px}}
