:root{font-family:"DM Sans",system-ui,sans-serif;color:#14233c;background:#f8faff;font-size:100%;--blue:#224dd9;--muted:#495972;--line:#d7dfea}
*{box-sizing:border-box}
body{margin:0;line-height:1.5}
.wrap{width:min(1080px,calc(100% - 64px));margin-inline:auto}
header{background:#fff;border-bottom:1px solid var(--line)}
.nav,.wordmark,.provenance{display:flex;align-items:center}
.nav{min-height:70px;justify-content:space-between;gap:12px}
.wordmark{min-height:44px;gap:10px;color:#14233c;text-decoration:none;font-weight:750;letter-spacing:-.045em;font-size:1.21rem}
.mark{width:25px;height:14px;transform:rotate(-26deg);background:repeating-linear-gradient(to right,transparent 0 4px,#fff 4px 5.5px) 0 0/100% 5px no-repeat,var(--blue);border:2px solid var(--blue);border-radius:2px}
.system,.fit,small{color:var(--muted);font-size:.875rem}
.intro{background:#edf2ff;overflow:hidden;border:1px solid #d7e1f9;border-radius:18px;margin:36px 0 24px;padding:34px 36px;display:flex;align-items:center;justify-content:space-between;gap:32px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.06;letter-spacing:-.06em}
.intro p{color:#3c506c;margin-top:12px;max-width:440px;font-size:1.075rem}
.scale{color:#3859aa;width:29%;min-width:190px;padding-right:4px}
.scale span{font-size:.83rem;font-weight:600}
.ticks{height:32px;margin-top:11px;border-bottom:2px solid #5a78be;background:linear-gradient(to right,#5a78be 2px,transparent 2px) left bottom / calc(100% / 6) 100% repeat-x,linear-gradient(to right,#89a1cf 1px,transparent 1px) left bottom / calc(100% / 30) 48% repeat-x;border-right:2px solid #5a78be}
.scale-labels{display:flex;justify-content:space-between;margin:5px -7px 0;font:normal .8rem ui-monospace,monospace}
.layout{display:grid;grid-template-columns:1.12fr 1fr;gap:24px;align-items:start;margin-bottom:40px}
.panel{padding:28px;background:#fff;border:1px solid var(--line);border-radius:16px}
h2{font-size:1.55rem;letter-spacing:-.045em;line-height:1.2}
label{display:block;font-weight:650;margin:22px 0 7px}
select,input,button,summary{font:inherit}
select,input{padding:12px;border:1px solid #92a0b5;border-radius:8px;background:#fff;color:inherit;width:100%;min-height:50px}
select{appearance:none;white-space:normal;line-height:1.35;padding-right:42px}
.selection{position:relative}
.selection:after,summary:before{content:"";border:solid currentColor;border-width:0 2px 2px 0;width:7px;height:7px;transform:rotate(45deg)}
.selection:after{position:absolute;right:18px;top:calc(50% - 5px);pointer-events:none}
.length-box{position:relative}.length-box span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted)}
input{padding-right:48px;font-variant-numeric:tabular-nums}
:focus-visible{outline:3px solid #436adf;outline-offset:3px}
input[aria-invalid="true"]{border-color:#a22e28}
#error{color:#992d22;font-size:.9375rem}#error:not(:empty){margin-top:6px}
summary{display:flex;align-items:center;gap:11px;cursor:pointer;color:#2049c5;min-height:44px;font-weight:600;font-size:.9375rem;list-style:none}
summary::-webkit-details-marker{display:none}
summary:before{transform:rotate(-45deg)}
details[open] summary:before{transform:rotate(45deg)}
ol{margin:0 0 14px;padding-left:24px;color:var(--muted)}li+li{margin-top:6px}
button{width:100%;min-height:49px;border:0;border-radius:8px;color:#fff;background:var(--blue);font-weight:700;cursor:pointer;margin-top:6px}
button:hover{background:#183cae}
.fit{margin-top:18px}
#result:not(:empty){background:#eff4ff;border:1px solid #cfddff;border-radius:10px;padding:16px;margin-top:20px}
#result h3{font-size:1.12rem}#result .size{font-size:1.8rem;color:#183785;font-weight:750;letter-spacing:-.04em}
#result p{margin-top:5px}
a{color:#2049c5;text-underline-offset:3px}
#result a,.provenance a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;font-size:.9375rem}
.model-name{color:var(--muted);margin:9px 0 18px}
table{border-collapse:collapse;width:100%;text-align:left;font-variant-numeric:tabular-nums}
th,td{padding:10px 12px;border-bottom:1px solid #e1e6ee}
thead th{font-size:.875rem;font-weight:650;background:#f2f5fa;color:#43536a}
th:last-child,td:last-child{text-align:right}
tbody th{font-weight:600}
tr.active{background:#edf2ff;color:#1a409c}
.provenance{margin-top:12px;align-items:flex-start;flex-direction:column}
small{font-size:.82rem}
@media(max-width:760px){.wrap{width:min(100% - 32px,580px)}.intro{margin-top:20px;padding:24px}.scale{display:none}.layout{grid-template-columns:minmax(0,1fr);gap:16px}.panel{padding:22px}.nav{min-height:58px}.intro p{font-size:1rem}.system{font-size:.8rem}}
@media(max-width:370px){.panel,.intro{padding:16px}.system{max-width:68px;text-align:right}}
