:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183c36;background:#f3f2eb;font-size:16px;line-height:1.5;--ink:#183c36;--muted:#4d655e;--line:#b9c6bc;--accent:#15584c;--paper:#fffef9;--error:#9f2c24;--warn:#795000}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.file-button{border:1px solid #8bada0;background:var(--paper);color:var(--ink);border-radius:5px;padding:.55rem .8rem;cursor:pointer;font-weight:600;line-height:1.3}button:hover,.file-button:hover{background:#e4eee6}button:active{background:#cadfd3}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:white}button.primary:hover{background:#0b4439}button.quiet{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px}a{color:#15584c;text-underline-offset:3px}input,select{width:100%;min-width:0;border:1px solid #8bada0;border-radius:4px;background:#fffef9;color:var(--ink);padding:.55rem .6rem;caret-color:#15584c}input::placeholder{color:#5d7269}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible,.table-scroll:focus-visible{outline:3px solid #be640a;outline-offset:3px}input[aria-invalid=true],select[aria-invalid=true]{border:2px solid var(--error)}::selection{background:#c5ddcd;color:#153a32}header{background:#173e36;color:#fffdf4;padding:1.1rem max(1.5rem,calc((100vw - 1432px)/2));display:flex;align-items:center;justify-content:space-between;gap:1.5rem}h1{font-size:1.5rem;line-height:1.2;margin:0 0 .25rem;letter-spacing:-.02em}.edition{color:#c9dbcf;font-size:.85rem}nav{display:flex;flex-wrap:wrap;gap:.5rem}.file-button{position:relative;display:inline-flex;align-items:center}.file-button input{position:absolute;width:1px;height:1px;opacity:0;bottom:0;left:0}.file-button:focus-within{outline:3px solid #efb260;outline-offset:2px}main{max-width:1480px;margin:auto;padding:0 1.5rem}.intro{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.15rem 0 .5rem}.intro p{margin:0;max-width:70ch;font-size:1.05rem}#message{font-size:.9rem;margin:.25rem 0 1.2rem;padding:.7rem .9rem;background:#e4eadf;border-radius:4px;color:#294d40;min-height:2.7rem}#message.error{background:#fbe9e2;color:#81291f}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:1.5rem;align-items:start}aside{background:#e8ece1;padding:1.25rem;border-radius:8px}section{margin:0 0 1.8rem}aside section+section{border-top:1px solid var(--line);padding-top:1.3rem}h2{font-size:1.2rem;line-height:1.3;margin:0 0 .8rem;letter-spacing:-.01em}h3{font-size:1rem;line-height:1.35;margin:1.3rem 0 .65rem}p{max-width:73ch;margin:.5rem 0 1rem}aside p{font-size:.88rem}.fields{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}label{display:block;font-size:.88rem;font-weight:600;margin-bottom:.85rem}label input,label select{display:block;margin-top:.3rem;font-weight:400}.optional,.hint{color:var(--muted);font-weight:400}.hint{font-size:.8rem;line-height:1.4}.actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.observed-amount{font-size:1.65rem;font-weight:650;letter-spacing:-.02em;margin:0}#balanceDate{margin:0 0 .7rem}.boundary{border-bottom:1px solid #416a58;padding-bottom:.8rem;color:#375c4b}.results{min-width:0}#forecast{background:var(--paper);padding:1.5rem;border-radius:8px}#empty{padding:2rem 0 3rem;max-width:50ch}#empty h3{font-size:1.35rem;margin-top:.8rem}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}.section-heading>span{font-size:.82rem;color:var(--muted)}.forecast-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.5rem 0}.forecast-summary h3{font-size:.9rem;font-weight:500;color:var(--muted);margin:0}.forecast-summary p{font-size:1.6rem;font-weight:650;margin:.2rem 0}.forecast-summary a{font-size:.82rem}.qualification{font-size:.83rem;color:var(--muted);margin:.5rem 0 0}#plot{margin:.8rem 0}#plot svg{display:block;width:100%;height:auto;max-height:220px}.negative{color:var(--error);font-weight:650}.num{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}table{border-collapse:collapse;width:100%;font-size:.86rem}th{text-align:left;font-size:.76rem;font-weight:650;color:#425f52;background:#edf1e8;position:sticky;top:0}th,td{padding:.7rem .6rem;vertical-align:top;border-bottom:1px solid #d6dfd3}td:first-child{white-space:nowrap}td:nth-child(2){min-width:180px}.table-scroll{max-height:570px;overflow:auto;scrollbar-color:#7e9e8a #edf1e8}.day-item{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;margin-bottom:.35rem}.day-item button{font-size:.72rem;padding:.15rem .35rem;font-weight:500}.changed-tag{font-size:.7rem;color:#795000}.rule{padding:.8rem 0;border-top:1px solid #c1cfbd}.rule:first-child{border-top:0}.rule-top{display:flex;justify-content:space-between;gap:.7rem;font-size:.9rem}.rule small{display:block;color:var(--muted);font-size:.77rem}.rule button{font-size:.75rem;padding:.2rem .4rem;margin-top:.4rem;margin-right:.3rem;background:transparent}details{border-top:1px solid var(--line);padding:.9rem 0;margin-top:.8rem}summary{cursor:pointer;font-weight:600;font-size:.9rem}details p,details li{font-size:.85rem}#history{padding:1.1rem 1.5rem;background:#e8ece1;border:0;border-radius:7px}#historyContent{max-height:400px;overflow:auto}#historyContent li{margin-bottom:.7rem}.history-detail{overflow-wrap:anywhere}#review,#occurrence{background:#fff7dc;padding:1.3rem;border-radius:8px}#review h2,#occurrence h2{color:#684700}#review p,#occurrence p{font-size:.9rem}.review-item{display:grid;grid-template-columns:1.1fr 1fr;gap:1rem;padding:.9rem 0;border-top:1px solid #d6c99a;margin-top:.8rem}.review-item label{margin-bottom:.3rem}.review-item p{margin:.2rem 0}.review-item small{font-size:.77rem}.check{display:flex;align-items:center;gap:.5rem}.check input{width:auto;margin:0}footer{border-top:1px solid var(--line);margin-top:2rem;padding:1.6rem 0 2rem}footer h2{font-size:1rem}footer p{font-size:.82rem;color:var(--muted)}dialog{border:0;border-radius:8px;padding:1.5rem;max-width:min(480px,calc(100vw - 2rem));box-shadow:0 10px 40px #0003}dialog::backdrop{background:#143b3370}.skip{position:absolute;left:1rem;top:-100px;background:white;padding:.5rem;z-index:10}.skip:focus{top:.5rem}[hidden]{display:none!important}@media(max-width:850px){header{align-items:flex-start;padding:1rem;gap:1rem;flex-direction:column}header nav{gap:.4rem}header button,header .file-button{padding:.45rem .6rem;font-size:.82rem}main{padding:0 1rem}.intro{display:block}.intro button{margin:.5rem 0 0;padding-left:0}.workspace{grid-template-columns:1fr;gap:1rem}aside{padding:1rem}#forecast{padding:1rem}.forecast-summary{align-items:flex-start;flex-direction:column;gap:.3rem}.forecast-summary p{font-size:1.4rem}.section-heading{display:block}.review-item{grid-template-columns:1fr;gap:.3rem}#plot svg{min-height:130px}#review,#occurrence{padding:1rem}.table-scroll{max-height:460px}footer{margin-top:1.4rem}}@media print{header nav,.intro button,#opening,#itemSection,#startReview,#reviewStart,#review,#occurrence,.day-item button,#message,.skip{display:none!important}body{background:white;color:black}.workspace{display:block}aside{padding:0;background:white}.observed-amount{font-size:1.2rem}#forecast{padding:0}.table-scroll{max-height:none;overflow:visible}th{position:static}#plot{max-width:700px}details{display:block}#history{background:white}footer{break-inside:avoid}section{break-inside:auto}tr{break-inside:avoid}header{background:white;color:black;padding:0}.edition{color:black}}

.rule-top strong,.day-item span,.review-item strong{min-width:0;overflow-wrap:anywhere}#assumptionContent p{overflow-wrap:anywhere}

.plan-identity{font-size:1rem;font-weight:600;margin:.15rem 0 1rem;overflow-wrap:anywhere}.view-plan{display:none}.cell-label{display:none}.field-error{color:#81291f;font-size:.85rem;font-weight:600;margin:.4rem 0}.review-item:has([aria-invalid=true]){border-color:#9f2c24}#reviewProgress{font-size:.85rem;font-weight:600;margin:1rem 0 .5rem}
@media screen and (max-width:850px){.view-plan{display:block;margin:.4rem 0 .85rem;font-weight:600}.table-scroll table,.table-scroll tbody{display:block;width:100%}.table-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.table-scroll tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .7rem;padding:.85rem .2rem;border-bottom:1px solid #d6dfd3}.table-scroll td{padding:0;border:0;min-width:0;text-align:left}.table-scroll td:first-child{grid-column:1;grid-row:1;font-size:.85rem;font-weight:600}.table-scroll td:nth-child(2){grid-column:1/-1;grid-row:2;min-width:0}.table-scroll td:nth-child(3){grid-column:1;grid-row:3}.table-scroll td:nth-child(4){grid-column:2;grid-row:3}.table-scroll td:last-child{grid-column:2;grid-row:1;font-weight:650}.cell-label{display:inline;font-size:.74rem;font-weight:500;color:#4d655e;margin-right:.4rem}.table-scroll td:last-child .cell-label{display:block;margin:0;font-size:.7rem}.day-item{margin:.3rem 0}.day-item button{padding:.25rem .4rem}.table-scroll{overflow-x:hidden}#plot svg{min-height:0;max-height:none}}
@media print{.view-plan,.cell-label{display:none!important}.plan-identity{display:block!important;color:black;font-weight:600}}
