@font-face{font-family:Inter;src:url('/inter.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:light;--paper:#fbf8f3;--ink:#301f3d;--muted:#654e68;--line:#d7c8d6;--plum:#552745;--bright:#a13370;--rose:#f8e1ea;--white:#fffbf7}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.51 Inter,system-ui,sans-serif}
p,h1,h2{margin:0}
a{color:var(--plum);text-underline-offset:.2em}
.shell{width:min(900px,calc(100% - 53px));margin-inline:auto}
.mast,.footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.94rem 0;font-size:.84rem;font-weight:650}
.brand{display:inline-flex;align-items:center;gap:.45rem;color:var(--ink);font-size:1.15rem;font-weight:790;letter-spacing:-.047em;text-decoration:none}
.brand::before{content:'';width:28px;height:28px;border-radius:6px;background:var(--plum) url('/favicon.png') center/cover}
.report-head{padding:2.28rem 0 1.06rem}
h1{font-size:clamp(2.1rem,5vw,3.32rem);line-height:1.05;letter-spacing:-.066em;font-weight:775}
.report-head p{font-size:.91rem;color:var(--muted);margin-top:.38rem}
.reach{background:var(--plum);color:#fff2f8;border-radius:8px;padding:1.15rem clamp(.89rem,3vw,1.55rem) 1rem}
.reach-header{display:flex;justify-content:space-between;align-items:start;gap:.52rem;flex-wrap:wrap}
.reach-header>div{min-width:0}
h2{font-size:1.15rem;font-weight:750;line-height:1.2;letter-spacing:-.025em}
.reach h2{font-size:.91rem;font-weight:690;color:#f4d8ea;letter-spacing:0}
#range{display:block;color:#fff3ef;font-size:clamp(2.4rem,8vw,4.3rem);font-weight:790;line-height:1.02;letter-spacing:-.063em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin-top:.24rem}
#sum{font-size:.81rem;color:#f4cfe4;margin-top:.39rem}
button,input,select,.button{min-height:37px;border:1px solid #bfa7ba;border-radius:5px;color:inherit;font:inherit;padding:.36rem .58rem}
button,.button{background:#f5e4ee;cursor:pointer;font-size:.76rem;font-weight:720;text-decoration:none}
button:hover,.button:hover{background:#ecd5e4}
button:disabled{cursor:default;opacity:.52}
#copy{background:#fff2f0;color:var(--plum);border-color:transparent}
:focus-visible{outline:3px solid #a14376;outline-offset:3px}
.reach :focus-visible{outline-color:#ffc6dc}
.ruler{margin-top:.85rem}
.ruler-labels{display:flex;justify-content:space-between;gap:.5rem;font-size:.7rem;color:#f8d7e8;font-variant-numeric:tabular-nums}
.scale{height:12px;background:#774e6a;margin:.24rem 0 .36rem;position:relative;border-radius:3px}
#ruler-segment{position:absolute;inset-block:0;left:0;width:0;border-radius:3px;background:#ffd8d3}
#ruler-segment.exact{min-width:4px;transform:translateX(-2px);background:#ffe393}
#ruler-text,#error,#status{font-size:.78rem;color:#f6dce9}
#error,#status{margin-top:.45rem}
#status:empty{display:none}
.worksheet{margin-top:1.33rem;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:.9rem 1rem}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:.55rem;flex-wrap:wrap;padding-bottom:.66rem;border-bottom:1px solid var(--line)}
.sheet-actions{display:flex;gap:.46rem;align-items:center;flex-wrap:wrap}
.sheet-actions label{display:flex;align-items:center;gap:.32rem;font-size:.77rem;color:var(--muted);font-weight:650}
select,input{background:#fffdf9;color:var(--ink);font-size:.84rem}
.ledger{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding-top:.66rem}
.ledger fieldset{min-width:0;border:0;padding:0;margin:0}
.ledger legend{padding:0;margin:0 0 .41rem;font-size:.86rem;font-weight:725;color:var(--plum)}
.ledger label{display:grid;grid-template-columns:minmax(0,1fr) minmax(65px,.62fr);align-items:center;gap:.44rem;padding:.36rem 0;border-bottom:1px solid #eadce5;font-size:.82rem;font-weight:635}
.ledger input{width:100%;min-width:0;text-align:right;font-variant-numeric:tabular-nums}
.ledger [hidden]{display:none}
.help{margin-top:.53rem;color:var(--muted);font-size:.77rem}
.footer{margin-top:2rem;border:0;border-top:1px solid var(--line)}
.guide{margin:2.55rem auto;max-width:690px}
.guide h2{margin-top:1.4rem}
.guide p{color:var(--muted);margin:.83rem 0}
.guide .button{display:inline-block;margin-top:.55rem}
@media(max-width:610px){.shell{width:calc(100% - 30px)}.ledger{grid-template-columns:minmax(0,1fr)}.report-head{padding:1.6rem 0 .87rem}}
@media(max-width:375px){.shell{width:calc(100% - 22px)}.mast,.footer{font-size:.76rem}.worksheet{padding:.73rem}}
