:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183039;background:#f2f7f8;font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:#075f70;text-underline-offset:4px}header,footer{max-width:1240px;margin:auto;padding:26px 36px;display:flex;justify-content:space-between;gap:24px;font-size:.9rem}header{border-bottom:1px solid #cfdee2}.brand{font-weight:750;text-decoration:none;color:#183039}main{max-width:1240px;margin:auto;padding:0 36px}.intro{padding:60px 0 42px}.eyebrow{letter-spacing:.18em;font-size:.78rem;font-weight:750;color:#006b77}h1{font-size:clamp(2.4rem,4.6vw,4rem);letter-spacing:-.055em;line-height:1.08;margin:16px 0 22px;font-weight:700}.lead{max-width:670px;font-size:1.15rem;line-height:1.7;color:#46616b}.chips{display:flex;gap:10px;flex-wrap:wrap}.chips span{font-size:.85rem;border:1px solid #c5d9de;border-radius:24px;padding:7px 12px}.workspace{display:grid;grid-template-columns:1fr 1.12fr;gap:24px;align-items:start}.panel{background:white;border:1px solid #d3e1e5;border-radius:16px;padding:28px;box-shadow:0 5px 16px #12334305}h2{font-size:1.2rem;letter-spacing:-.02em;margin:0 0 14px}p{line-height:1.6}.panel>p{font-size:.9rem;color:#526b74}.upload{border:1.5px dashed #8caeb8;border-radius:10px;display:flex;flex-direction:column;gap:10px;padding:26px 20px;margin:24px 0 14px;background:#f6fafb;cursor:pointer}.upload span{color:#536d76;font-size:.9rem}input[type=file]{max-width:100%;font-size:.9rem}button,.download{background:#006b77;color:white;border:0;border-radius:8px;min-height:46px;padding:12px 18px;font:inherit;font-weight:650;cursor:pointer;display:inline-block;text-decoration:none;text-align:center}button:hover,.download:hover{background:#004e58}button:disabled{opacity:.6;cursor:wait}.secondary{background:#e9f1f3;color:#164b58;font-size:.9rem}.secondary:hover{background:#d4e7eb}.field{display:flex;flex-direction:column;gap:7px;margin:16px 0}.field label{font-size:.9rem;font-weight:650}select,input[type=number]{font:inherit;background:white;color:#183039;border:1px solid #aac2c9;border-radius:6px;padding:11px;min-width:0;width:100%}.pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.confirm{display:flex;align-items:start;gap:9px;font-size:.9rem;line-height:1.5;margin:20px 0}input[type=checkbox]{margin-top:4px;accent-color:#006b77}.result-heading{display:flex;justify-content:space-between;gap:14px;align-items:center}.result-heading span{font-size:.8rem;color:#59717a}#empty{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6b828a;background:linear-gradient(135deg,#f2f8f9,#e6f0f3);border-radius:10px;margin:18px 0}.grid-icon{font-size:4rem;color:#6e9faa}#empty p{margin:7px 20px;font-size:.95rem}canvas{width:100%;max-height:330px;object-fit:contain;image-rendering:pixelated;background:repeating-conic-gradient(#edf2f3 0% 25%,white 0% 50%) 0/16px 16px;border-radius:8px;margin-top:18px}#scale{display:flex;align-items:center;gap:12px;font-size:.85rem;margin:12px 0}.gradient{height:8px;flex:1;background:linear-gradient(90deg,#172b65,#087c88,#e5cc58);border-radius:10px}dl{display:grid;grid-template-columns:1fr 1.4fr;font-size:.9rem;gap:10px}dt{color:#536b73}dd{margin:0;overflow-wrap:anywhere}.download{width:100%;margin-top:14px}.notes{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:44px 0}.notes p{color:#4e6872;font-size:.95rem}pre{background:#183039;color:#e1f3f6;border-radius:8px;padding:18px;overflow:auto;font-size:.85rem;line-height:1.7}footer{border-top:1px solid #cfdee2;color:#526b74;margin-top:10px;padding-bottom:34px}#status.error{color:#a02922}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e2aa26;outline-offset:3px}[hidden]{display:none!important}@media(max-width:760px){header,footer{padding:22px;flex-wrap:wrap}main{padding:0 22px}.intro{padding-top:38px}.workspace,.notes{grid-template-columns:1fr}.panel{padding:22px}.notes{gap:20px}.pair{grid-template-columns:1fr}h1{font-size:2.7rem}}
