:root{--paper:#f6f3eb;--ink:#192e28;--muted:#4c6158;--line:#c5c9bb;--forest:#183e31;--accent:#dbefa6;--white:#fff;--bar:#387656;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 "DM Sans","Segoe UI",Arial,sans-serif}header{border-bottom:1px solid var(--line)}
.shell{width:min(100% - 2rem,42rem);margin:auto}.brand{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.brand b{font-weight:850;letter-spacing:.12em;font-size:1.05rem}.brand span,.stamp,figcaption{color:var(--muted)}
main{padding:1.5rem 0 max(3rem,env(safe-area-inset-bottom))}h1,h2,p,figure,dl{margin:0}h1,.amount{font-family:"PT Serif",Georgia,serif;font-weight:500;letter-spacing:-.04em}h1{font-size:clamp(2rem,6vw,3rem);line-height:1.15;overflow-wrap:anywhere}
h2{font-size:1.1rem;margin:1.5rem 0 .75rem}p{margin:.6rem 0}label{display:grid;gap:.3rem;font-size:.85rem;font-weight:650}input,select,button{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:.4rem;background:var(--white);padding:.65rem .8rem;min-height:44px;max-width:100%}button{background:var(--forest);color:white;cursor:pointer;font-weight:650}button:disabled{opacity:.65;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #387bb2;outline-offset:2px}form{display:flex;flex-wrap:wrap;gap:.65rem;align-items:end}form label{flex:1 1 11rem}#period{margin:1rem 0}#period label{max-width:15rem}#planForm{margin-bottom:1rem}details{border-bottom:1px solid var(--line);padding:.2rem 0 .5rem}summary{cursor:pointer;padding:.6rem 0;color:var(--muted)}output{display:block;overflow-wrap:anywhere;user-select:all}
.hero{background:var(--forest);color:white;border-radius:1rem;padding:clamp(1.1rem,4vw,2rem)}.hero h2{font-size:1rem;margin:0;color:var(--accent)}.amount{font-size:clamp(2.2rem,9vw,4rem);line-height:1.15;margin:.55rem 0 1.2rem;font-variant-numeric:tabular-nums}.target,figcaption{display:flex;justify-content:space-between;gap:.5rem}.hero p{margin:.5rem 0 0;font-size:.9rem}
progress{width:100%;height:.55rem;accent-color:var(--accent);appearance:none;border:none;background:#426356;border-radius:1rem;overflow:hidden}progress::-webkit-progress-bar{background:#426356}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}
figure{padding:.75rem 0}#bars{display:flex;align-items:end;gap:2px;height:6rem;border-bottom:1px solid var(--line)}#bars progress{flex:1;width:0;height:100%;border-radius:2px;background:transparent;writing-mode:vertical-lr;direction:rtl}#bars progress::-webkit-progress-bar{background:transparent}#bars progress::-webkit-progress-value{background:var(--bar)}#bars progress::-moz-progress-bar{background:var(--bar)}figcaption,.stamp{font-size:.84rem;margin-top:.5rem}dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--line)}dd{font-weight:650;margin:0;text-align:right}#notice:not(:empty){border-left:3px solid var(--bar);padding-left:.7rem}#notice:empty{display:none}[hidden]{display:none!important}

