:root{font-family:system-ui,-apple-system,sans-serif;color:#193b3a;background:#f4f6ed;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{max-width:920px;margin:auto;display:flex;justify-content:space-between;padding:24px}a{color:#245f56;font-weight:700}main{max-width:820px;padding:10px 24px 40px;margin:auto}.eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.16em;color:#527059}h1{font-size:clamp(2rem,6vw,3.4rem);line-height:1.08;margin:16px 0}h1 span{color:#21766a}.intro>p:last-child{font-size:1.1rem;line-height:1.5;max-width:600px}.card{background:#fff;border:1px solid #d9e2d6;border-radius:24px;padding:28px;box-shadow:0 8px 30px #193b3a09}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}h2{margin:0;font-size:1.4rem}select,button{font:inherit;border-radius:12px;border:1px solid #b8cfc7;padding:12px;background:#f6faf7;color:#193b3a;min-height:46px}select{margin-left:6px}button{cursor:pointer;font-weight:650}button:hover{background:#e4f1e9}button.primary{color:#fff;background:#206b5d;border-color:#206b5d}.equation{display:flex;align-items:center;justify-content:center;gap:24px;padding:25px 0}.fraction{display:grid;grid-template-rows:1fr 1fr;text-align:center;font-size:2.5rem;font-weight:700;min-width:88px}.fraction> :first-child{border-bottom:3px solid #193b3a}.fraction>span{padding:8px 12px;min-height:70px}.equals{font-size:2rem}.entry{width:100px;gap:0}.entry label{padding:8px 0}.entry input{font:inherit;color:#193b3a;text-align:center;width:96px;height:62px;border:2px solid #87b4a9;border-radius:12px;background:#f8fcfa}.division{color:#267c69;font-size:1.6rem;white-space:nowrap}.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}#feedback{padding:14px;border-radius:12px;line-height:1.5;min-height:52px;background:#f1f5ed}#feedback:empty{background:transparent}#feedback[data-kind=success]{background:#e1f5e4;color:#24532f}#feedback[data-kind=retry]{background:#fff3d7;color:#654500}.help{background:#f4f8f3;border-radius:16px;padding:20px}.help h3{margin-top:24px}.help h3:first-child{margin-top:0}.help p{line-height:1.55}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 18px}.chip{border:1px solid #c9d6cd;border-radius:8px;padding:6px 10px;background:white}.chip.common{background:#d8eee3;border:2px solid #387966;font-weight:bold}.choices{display:flex;gap:8px;flex-wrap:wrap}.choices button[aria-pressed=true]{background:#206b5d;color:white}.footer-row{border-top:1px solid #e4e8df;margin-top:20px;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.footnote{font-size:.85rem;color:#52695f;line-height:1.6}button:disabled{opacity:.65;cursor:default}:focus-visible{outline:3px solid #bb6b1b;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:480px){main{padding:0 12px 30px}.card{padding:18px}.equation{gap:12px}.fraction{font-size:2rem;min-width:60px}.division{font-size:1.15rem}.entry,.entry input{width:78px}.toolbar{align-items:start}.actions button{flex:1 1 140px}.help{padding:14px}}
