:root{--ink:#26372e;--paper:#fffdfa;--edge:#aaa999;--night:#244743;--rust:#934323;--wash:#f1ebde;font:17px/1.46 "Atkinson Hyperlegible Next","Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--wash)}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}h1,h2,h3,p,figure,ol,ul{margin-top:0}h1,h2,h3,.brand{font-family:Georgia,"Times New Roman",serif;line-height:1.09;color:var(--ink)}h1{font-size:clamp(2.2rem,5.6vw,4.3rem);letter-spacing:-.045em;margin:0 0 .33em}h2{font-size:clamp(1.55rem,3vw,2.1rem);margin:.85em 0 .38em;letter-spacing:-.025em}h3{font-size:1.28rem;margin:.7em 0 .35em}p{margin-bottom:.7em}a{color:var(--night);text-underline-offset:.19em}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid var(--rust);outline-offset:3px}.skip{position:absolute;left:-10000px}.skip:focus{left:12px;top:5px;background:white;padding:.55rem;z-index:5}.bar,.foot{max-width:1210px;margin:auto;display:flex;align-items:baseline;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding:1rem clamp(1rem,3vw,2.4rem)}.bar{border-bottom:1px solid var(--edge)}.bar nav{display:flex;gap:.5rem 1.1rem;flex-wrap:wrap}.brand{font-size:1.35rem;font-weight:bold;text-decoration:none}.foot{font-size:.86rem;border-top:1px solid var(--edge)}.home,.sheet,.screen-ledger{width:min(calc(100% - 28px),900px);margin:1.5rem auto;padding:clamp(1rem,3.2vw,2.45rem);background:var(--paper)}.home{max-width:1200px;width:min(calc(100% - 28px),1200px)}.opening{display:grid;grid-template-columns:.82fr 1.18fr;gap:clamp(1.2rem,3.2vw,2.4rem);align-items:center}.hero{margin:0}.hero img,.desk-story img{display:block;width:100%;height:auto}.hero figcaption{font-size:.82rem;margin-top:.4rem}.grade{font-size:.85rem;font-weight:750;color:var(--rust);margin:0 0 .55rem}.lead,.desk-story p,.message{font:1.25rem/1.4 Georgia,serif}.actions,.file-links,.controls{display:flex;align-items:center;gap:.7rem 1rem;flex-wrap:wrap}.button,.controls button{display:inline-block;min-height:42px;padding:.48rem .86rem;border:1px solid var(--night);border-radius:3px;background:var(--night);color:#fff;font:650 .97rem/1.35 "Segoe UI",Arial,sans-serif;text-decoration:none;cursor:pointer}.controls button+button{background:white;color:var(--night)}.counter{margin-top:1.45rem;border-top:1px solid var(--edge)}.counter h2{font-size:1.55rem}.sheet .sheet-title,.screen-ledger h1{font-size:clamp(2rem,4.8vw,3.2rem);line-height:1.06;margin-top:0}.file-links{max-width:890px;margin:1rem auto 1.4rem;padding:0 .9rem}.desk-story{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:1.2rem}.desk-story p{margin-bottom:0}.sheet table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.sheet th,.sheet td{text-align:left;vertical-align:middle;border-bottom:1px solid var(--edge);padding:.48rem .55rem}.sheet th{font-weight:650}.sheet table td.amount,.sheet th.amount{text-align:right;white-space:nowrap}.prices td:nth-child(2){min-width:4.9rem}.pack-hint,.verify{margin:.8rem 0!important;padding:.55rem .75rem;border-left:3px solid #987451;background:#f6f0e4}.page-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;align-items:baseline;border-top:1px solid var(--edge);margin-top:1.5rem;padding-top:.55rem;font-size:.77rem}.net{display:block;width:100%;max-width:650px;height:auto;margin:.5rem auto}.tokens{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem;max-width:540px}.token{display:grid;align-content:center;gap:.1rem;padding:.5rem .7rem;border:1.4px solid #444}.token b{font:700 1.5rem/1.1 Georgia,serif}.token span,.small,small{font-size:.85rem}.worksheet small,.entry-row small{display:block;color:#474f47;font-weight:500;font-size:.8rem}.worksheet th:first-child{width:30%}.worksheet td.write-cell{width:25%}.write-cell i,.totals i,.prior i,.write-lines i{display:inline-block;border-bottom:1px solid #777;height:1.2em}.write-cell i{width:70%;min-width:2.3rem}.write-cell span{padding-right:.25rem}.totals,.prior{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem;margin:.8rem 0}.totals>div,.prior>div{display:flex;align-items:baseline;gap:.4rem}.totals i,.prior i{flex:1}.write-lines i{display:block;margin-top:.35rem;min-height:1.3rem;width:100%}.message{padding:.75rem 1rem;border-left:4px solid var(--rust);background:#faf2dc}.keytable td,.keytable th{font-size:.94rem}.key-total{font-weight:700}.keytable+p{margin-top:.55rem}
.screen-ledger{max-width:780px}.screen-ledger fieldset{padding:.65rem .9rem 1rem;border:1px solid var(--edge);margin:.85rem 0}.screen-ledger legend{font:700 1.41rem/1.2 Georgia,serif;padding:0 .35rem}.screen-ledger input,.screen-ledger textarea{display:block;width:100%;background:white;font:inherit;color:#222;border:1px solid #8a8c88;border-radius:3px;padding:.32rem .48rem;min-height:37px}.screen-ledger fieldset:disabled input,.screen-ledger fieldset:disabled textarea{background:#f2f2ee;color:#303530;opacity:1}.entry-row{display:grid;grid-template-columns:minmax(0,1.25fr) 1fr 1fr;gap:.55rem 1rem;align-items:center;border-top:1px solid #cccac0;padding:.45rem 0}.entry-row label,.digital-totals label,.words{display:block;font-size:.85rem}.words{margin-bottom:.65rem}.words textarea{min-height:47px}.digital-totals{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding-top:.6rem;border-top:2px solid #777}.feedback:not(:empty),#opening-summary:not(:empty){padding:.64rem .8rem;border-left:3px solid var(--night);background:#eef1e9;font-weight:650}.controls{margin:.6rem 0 .9rem}#later{margin-top:1rem;border-top:1px solid var(--edge)}.screen-ledger .small{margin:1rem 0 0}
@media(max-width:710px){.opening{grid-template-columns:1fr}.home,.sheet,.screen-ledger{width:calc(100% - 15px);margin:.7rem auto}.bar{align-items:flex-start}.bar nav{gap:.32rem .9rem}.desk-story{grid-template-columns:1fr}.prices td:last-child{min-width:0}.sheet th,.sheet td{padding:.37rem .28rem}.prices,.worksheet,.keytable{font-size:.88rem}.prices td:nth-child(2){min-width:2.7rem}.keytable td,.keytable th{font-size:.8rem}.entry-row{grid-template-columns:1fr 1fr;gap:.25rem .8rem}.entry-row>div:first-child{grid-column:1/-1;display:flex;align-items:baseline;gap:.55rem}.entry-row>div small{display:inline}.totals,.prior{grid-template-columns:1fr}.tokens{gap:.35rem}.token{padding:.35rem}.worksheet td.write-cell{width:22%}.write-cell i{min-width:1.2rem}.file-links{gap:.6rem}.screen-ledger fieldset{padding:.5rem}.actions{margin-bottom:0}}
@page{size:Letter portrait;margin:11mm}
@media print{
 :root{--ink:#222;--night:#222;--rust:#222;--paper:white;--edge:#999;background:white;font:11.3pt/1.23 Arial,Helvetica,sans-serif}body{background:white}.bar,.foot,.skip,.screen-only{display:none!important}main{margin:0;padding:0}.sheet{position:relative;width:183mm;height:250mm;max-width:none;margin:0 auto;padding:0;background:white;break-inside:avoid;break-after:page}.sheet:last-of-type{break-after:auto}.head{margin-bottom:2mm}.sheet .sheet-title{font:700 25pt/1.03 Georgia,serif;letter-spacing:-.03em;margin:0 0 2mm}.sheet h2{font:700 16pt/1.08 Georgia,serif;letter-spacing:-.02em;margin:3.5mm 0 1.2mm}.sheet h3{font:700 13.5pt/1.08 Georgia,serif;margin:2mm 0 1.2mm}.sheet .grade{font:700 9.5pt/1.1 Arial,sans-serif;margin:0 0 1.7mm}.sheet p{margin:0 0 2mm}.page-foot{position:absolute;left:0;right:0;bottom:0;flex-wrap:nowrap;margin:0;padding-top:1.4mm;font:8pt/1.1 Arial,sans-serif}.sheet a{color:#222}
 .desk-story{display:grid;grid-template-columns:57mm 1fr;align-items:center;gap:4mm;margin:1.5mm 0 2.2mm}.desk-story img{width:57mm;height:auto}.desk-story p{font:italic 12pt/1.22 Georgia,serif}.prices td,.prices th{padding:2mm 1.5mm;vertical-align:top}.prices td:first-child,.prices th:first-child{width:34mm}.prices td:nth-child(2){min-width:23mm}.prices td:nth-child(3){width:21mm}.prices td.amount,.prices th.amount{padding-right:3mm}.pack-hint,.verify{border-left:.5mm solid #777;background:white;padding:1.5mm 2.1mm;margin:2.3mm 0!important}.cash .net{width:170mm;height:116mm;max-width:none;margin:2mm auto}.tokens{grid-template-columns:58mm 58mm;gap:2mm 3mm;max-width:none;justify-content:center;margin:2mm 0}.token{width:58mm;height:20mm;border:.35mm solid #333;padding:1.4mm 3mm}.token b{font-size:17pt}.token span{font-size:9.4pt}
 .worksheet{margin:1.5mm 0}.worksheet td,.worksheet th{padding:1.1mm 1.5mm}.worksheet tbody tr{height:15.2mm}.worksheet th:first-child{width:50mm}.worksheet small{color:#444;font-size:8.7pt}.worksheet .amount{width:24mm;padding-right:3mm}.worksheet .write-cell{width:44mm}.write-cell i{width:80%;height:5.4mm;min-width:0;border-bottom:.25mm solid #777}.write-cell span{padding-right:1mm}.totals,.prior{display:grid;grid-template-columns:1fr 1fr;gap:6mm;margin:3mm 0}.totals>div,.prior>div{gap:1.4mm}.totals i,.prior i{height:6.5mm;border-bottom:.25mm solid #666}.write-lines i{margin:0;height:8mm;min-height:8mm}.planning .small{font-size:9.5pt;margin-top:1.4mm}.message{background:white;border-left:.6mm solid #555;padding:1.8mm 2.4mm;font:italic 13.2pt/1.22 Georgia,serif}.key .sheet-title,.notes .sheet-title{font-size:24pt}.keytable th,.keytable td{font:10.3pt/1.1 Arial,sans-serif;padding:1.05mm 1.4mm;border-bottom:.2mm solid #aaa}.keytable th,.key-total td{font-weight:700}.keytable+p{margin-top:1.7mm}.key p{font-size:10.7pt;line-height:1.22}.key h2{font-size:14.5pt;margin-top:2.4mm}.notes p{font-size:11pt}
}
