:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#20362f;background:#f4f6f3;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(1280px,calc(100% - 72px));margin:auto}
header{background:#16372c;color:white}
.brand{display:flex;align-items:center;height:62px;gap:5px;font-size:20px;font-weight:750;letter-spacing:-.9px}
.brand b{font-weight:400;color:#dce8de}
.mark{display:grid;place-items:center;margin-right:7px;width:31px;height:31px;border-radius:8px;background:#c4f16e;color:#19392b;font-weight:950;font-style:italic;font-family:Arial,sans-serif}
.intro{margin:30px 0 24px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(32px,4vw,46px);line-height:1.15;letter-spacing:-.055em}
.intro p,.section-title p{margin-top:7px;color:#56695e}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,330px);gap:22px;align-items:start;margin-bottom:36px}
.card{background:#fff;border:1px solid #d8dfd8;border-radius:15px;overflow:hidden}
.bar,.caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 21px}
h2{font-size:18px;letter-spacing:-.035em}
.bar span,.caption span{font-family:Consolas,monospace;font-size:13px;color:#516458}
.stage{display:grid;place-items:center;padding:20px;background-color:#e7ece6;background-image:radial-gradient(#c8d2c7 .9px,transparent .9px);background-size:10px 10px;border-block:1px solid #d9dfd8}
canvas{display:block;width:auto;height:auto;max-width:100%;max-height:clamp(360px,57vh,650px);box-shadow:0 4px 14px #19392a24}
.caption{font-size:15px}
.settings .bar{border-bottom:1px solid #dce2db}
.controls{padding:20px}
label{display:block;font-size:14px;font-weight:650;margin:0 0 7px}
input,select{display:block;width:100%;min-width:0;min-height:44px;background:white;border:1px solid #bac8bd;border-radius:8px;color:#1f3327;padding:9px 12px;font:inherit}
input:focus-visible,select:focus-visible,button:focus-visible{outline:3px solid #4f9254;outline-offset:2px}
.select-wrap{position:relative;margin-bottom:17px}
select{appearance:none;padding-right:38px}
.select-wrap:after{content:"";position:absolute;right:17px;top:16px;width:8px;height:8px;border:solid #36523e;border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
.section-title{border-top:1px solid #dce2db;margin:21px 0 15px;padding-top:18px}
h3{font-size:16px;letter-spacing:-.02em}
.section-title p,#message{font-size:14px}
.digit-group{margin-bottom:14px}
.digit-group label{display:flex;justify-content:space-between}
.count{color:#5d6f60;font-weight:400;font-family:Consolas,monospace}
.digits{font:650 20px/1.15 Consolas,monospace;letter-spacing:.17em}
button{width:100%;padding:13px;border:0;border-radius:8px;background:#214e39;color:white;font:650 16px/1.25 inherit;font-family:inherit;font-size:16px;font-weight:650;cursor:pointer;margin-top:6px}
button span{margin-right:4px}
button:hover:enabled{background:#153f2b}
button:disabled{opacity:.48;cursor:default}
#message{margin-top:10px;color:#664923}
#message:empty{display:none}
@media(max-width:760px){.wrap{width:calc(100% - 28px)}.workspace{grid-template-columns:1fr;gap:14px}.intro{margin:22px 0 18px}.stage{padding:13px}.bar,.caption{padding:13px 16px}.controls{padding:16px}canvas{max-height:54vh}}
