*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,p,ul,ol,table,form,fieldset,figure{margin:0}
fieldset{min-width:0}
[hidden]{display:none!important}
img,svg{max-width:100%}
input,select,textarea,button{font:inherit;color:inherit;max-width:100%}

/* Store bin: a tied stock tag on the right, ledger columns on the left, shelf edge below. */
:root{--wall:#ecebd9;--olive:#4d5522;--dark:#2b3010;--tag:#fdfbe6;--text:#25271a;--mute:#5a5d42;--line:#b9ba94;--alert:#9c1f12;--stripe:#f5f4e2}
body{background:var(--wall);color:var(--text);font:1rem/1.65 Tahoma,Geneva,"DejaVu Sans",sans-serif;min-height:100vh;display:grid;grid-template-rows:1fr auto;grid-template-columns:minmax(0,1fr);overflow-wrap:break-word}
.to-ledger{position:absolute;left:0;bottom:100%;background:var(--dark);color:#fff;padding:1rem}
.to-ledger:focus{bottom:auto;top:0;z-index:8}
:focus-visible{outline:3px dotted var(--dark);outline-offset:3px}
.bay{display:grid;grid-template-columns:minmax(0,1fr) 19rem;gap:clamp(1.5rem,4vw,4rem);width:100%;max-width:80rem;margin:0 auto;padding:clamp(1rem,4vw,3.5rem) clamp(.9rem,4vw,3rem)}
.tag{order:2;align-self:start;background:var(--olive);color:#fff;padding:2rem 1.8rem 2.2rem;clip-path:polygon(22% 0,78% 0,100% 5rem,100% 100%,0 100%,0 5rem)}
.eyelet{display:block;width:2.4rem;height:2.4rem;margin:0 auto 2.4rem;border-radius:50%;background:var(--wall);border:6px solid #a9812f}
.tag>svg{display:block;margin-bottom:.8rem}
.tag>p,h1,h2,legend{font-family:Copperplate,"Copperplate Gothic Light","Palatino Linotype",serif;font-weight:700}
.tag>p{font-size:1.5rem;line-height:1.2;overflow-wrap:anywhere}
.tag ul{list-style:none;padding:0;margin-top:1.6rem}
.tag li{border-bottom:1px dashed var(--line)}
.tag a{color:#fff;display:block;padding:.75rem 0;text-decoration:none}
.tag a:is(:hover,[aria-current]){text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:.3em}
.tag a:focus-visible{outline-color:#fff;outline-offset:-2px}
h1{font-size:clamp(1.9rem,4.6vw,3.2rem);line-height:1.1;color:var(--dark)}
.entry-line{font-size:1.15rem;max-width:40rem;margin:1rem 0 2rem}
.sheet{background:var(--tag);border:1px solid var(--line);border-top:12px solid var(--olive);padding:clamp(1rem,4vw,2.8rem);border-radius:0 0 6px 6px}
h2{font-size:1.5rem;line-height:1.25;margin:2.2rem 0 .9rem;color:var(--olive)}
.sheet>h2:first-child{margin-top:0}
h3{font-size:1.1rem;margin:1.5rem 0 .3rem}
.sheet p{margin-bottom:1rem}
.sheet ul,.sheet ol{margin:0 0 1.3rem;padding-left:1.5rem}
.sheet ul{list-style:"+  "}
.sheet li{margin-bottom:.4rem}
a{color:var(--olive);font-weight:700}
.wrap{display:flow-root}
.layout{display:flex;flex-direction:column;gap:1.5rem}
.layout>*{min-width:0}
pre{overflow:auto;background:var(--wall);padding:1rem;font-size:1rem}
table{display:block;overflow-x:auto;max-width:100%;border-collapse:collapse;margin:1.3rem 0;font-variant-numeric:tabular-nums}
caption{text-align:left;font-weight:700;padding-bottom:.5rem}
th{border-bottom:3px double var(--olive);color:var(--olive);text-align:left}
th,td{padding:.6rem 1.1rem;border-left:1px solid var(--line)}
th:first-child,td:first-child{border-left:0}
tbody tr:nth-child(odd){background:var(--stripe)}
td{border-bottom:1px solid var(--line)}
form{border:1px solid var(--line);margin:1rem 0;border-radius:6px;overflow:clip;overflow-clip-margin:8px}
fieldset{border:0;padding:0}
legend{font-size:1.2rem;padding:1rem 1rem .6rem;color:var(--olive)}
.field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,12rem);gap:.2rem 1.2rem;align-items:center;padding:.9rem 1rem;border-bottom:1px solid var(--line)}
.field:nth-of-type(odd){background:var(--stripe)}
.field>:is(.hint,.error){grid-column:1/-1}
label{font-weight:700}
input,select,textarea{width:100%;border:2px solid var(--mute);border-radius:6px;background:#fff;padding:.55rem .8rem;min-height:3rem}
input[type=checkbox],input[type=radio]{width:1.4rem;height:1.4rem;min-height:0;margin:0 .5rem 0 0;vertical-align:middle;accent-color:var(--olive)}
::placeholder{color:var(--mute);opacity:1}
.sheet .hint{color:var(--mute);margin:0}
.actions{display:flex;flex-wrap:wrap;gap:.8rem;padding:1rem}
button{background:var(--olive);color:#fff;border:0;border-radius:6px;padding:.8rem 1.6rem;min-height:3rem;font-weight:700;cursor:pointer}
button:hover{background:var(--dark)}
.result,#result{background:var(--dark);color:#fff;border-radius:6px;padding:1.4rem 1.6rem;margin:1.4rem 0}
.result :is(a,.hint,h2,h3,.error),#result :is(a,.hint,h2,h3,.error){color:#fff}
.result :is(table,tr,th,td),#result :is(table,tr,th,td){background:var(--dark);color:#fff}
output{font-size:1.5rem;line-height:1.3;font-weight:700}
.error{color:var(--alert);font-weight:700}
.result.error,#result.error{background:var(--tag);color:var(--alert);border:3px solid var(--alert)}
.kick{background:repeating-linear-gradient(90deg,var(--olive) 0 2rem,var(--dark) 2rem 4rem) 0 0/100% 10px no-repeat #dcdbc0;padding:2.4rem 1rem 2rem}
.kick p{max-width:74rem;margin:auto;font-size:1rem;overflow-wrap:anywhere}
.kick a{color:var(--dark)}
@media(max-width:900px){.bay{grid-template-columns:minmax(0,1fr)}.tag{order:0;clip-path:polygon(2.6rem 0,100% 0,100% 100%,0 100%,0 2.6rem);padding:1.3rem 1.2rem}.eyelet{position:relative;margin:0 0 .8rem 1.4rem;width:1.7rem;height:1.7rem;border-width:4px}.tag ul{margin-top:.8rem}}
@media(max-width:460px){.field{grid-template-columns:minmax(0,1fr)}}
@media print{body,.sheet,.kick,.result,#result{background:#fff;color:#000}body,.bay{display:block;padding:0}.tag{clip-path:none;background:none;color:#000;padding:0}.eyelet,.tag nav,.to-ledger,.actions{display:none}.result,#result{border:2pt solid #000}.result *,#result *{background:#fff!important;color:#000!important}table{display:table}.sheet{padding:.4cm 0;border-width:2pt 0 0}.kick{padding:.5cm 0}.field,tr{break-inside:avoid}}

[hidden]{display:none!important}
main img,main svg{max-width:100%}
main{overflow-wrap:anywhere}
main .grid{list-style:none;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr))}
main table{display:block;max-width:100%;overflow-x:auto}
