:root{
 color-scheme:light;
 --ink:#142b27;--muted:#354d47;--paper:#d0dad2;
 --surface:#e8ede5;--field:#fffdf6;--line:#6d857d;--rule:#a4b4ad;
 --panel-face:linear-gradient(155deg,#f1f5ef,#e5ece3 58%,#d5e1d8);
 --field-well:linear-gradient(#38584b29,#38584b00 31% 67%,#38584b20),
              radial-gradient(ellipse at center,var(--field) 28%,#f5f3e6 61%,#d1d8cc 100%);
 --edge:#3c6157;--green:#144f45;--green-hover:#103e38;
 --button:#deeee3;--button-hover:#c5e8d8;--focus:#703a93;
 --metal:#c48d46;--metal-light:#f4d299;
 --button-face:linear-gradient(#f9fff8,var(--button) 55%,#c2d9cf);
 --green-face:linear-gradient(#32695c,var(--green) 57%,#143f37);
 --amber-face:linear-gradient(#ffe7aa,#ecbd68 55%,#d99b47);
 --bevel:inset 0 1px #ffffffc5,inset 0 -2px #163e312e,0 3px 0 #365b50,0 5px 6px #1d3c3240;
 --fastener:radial-gradient(circle at 33% 28%,#fff4d6,#c49a5b 36%,#5c4938 74%);
 --warn:#7b460a;--white:#fff;--round:12px
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{
 margin:0;min-height:100vh;color:var(--ink);font:15px/1.5 system-ui,"Segoe UI",sans-serif;
 background:var(--paper) url("./hammer-enamel.webp?ver=b2e06bdff3c7") left top / 480px 480px repeat
}
button,input,select,textarea{font:inherit;color:inherit}
button{border:2px solid var(--edge);background:var(--button) var(--button-face);border-radius:7px;padding:7px 11px;cursor:pointer;font-weight:700;white-space:nowrap;box-shadow:var(--bevel)}
button:hover:enabled{background:var(--button-hover) linear-gradient(#fbfffb,var(--button-hover) 58%,#a6cdbd)}
button:active:enabled,.tools a:active{transform:translateY(3px);box-shadow:inset 0 3px 4px #163e3166}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,
a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.header :focus-visible{outline-color:#efd2ff}

button.primary{background:var(--green) var(--green-face);border-color:#103e36;color:var(--white)}
button.primary:hover:enabled{background:var(--green-hover) linear-gradient(#387a67,#124c41 60%,#103e38)}
#solve:enabled{color:#2c2116;background:#ecbd68 var(--amber-face);border-color:#72532d;box-shadow:inset 0 1px #fff3cc,inset 0 -2px #82511e40,0 3px 0 #72532d,0 5px 6px #1b17145c}
#solve:hover:enabled{background:#f6cf85 linear-gradient(#fff0c6,#f6cf85 58%,#e0a555)}
#solve:active:enabled{box-shadow:inset 0 3px 4px #6e391b77}
button.outline{background:#254f45 var(--green-face);color:white;border-color:#9bbdb1}
button.outline:hover:enabled{background:#305d50 linear-gradient(#407a6b,#305d50)}
button:disabled,button.primary:disabled{opacity:1;color:#53625c;background:#e3e8e2;border-color:#7e9189;cursor:default;box-shadow:none}
.header button.outline:disabled{color:#c3d2cc;background:#34574e;border-color:#829f94}
.wrap{width:min(1760px,100% - clamp(16px,3vw,44px));margin-inline:auto}
.header{background:#173e34 linear-gradient(175deg,#2f594f,#13372e 77%);color:#fff;border-bottom:3px solid var(--metal);box-shadow:0 2px 0 #7b6449,0 5px 12px #163a3535}
.top,.intro,.section-head,.inline,.exports,.tools{display:flex;align-items:center;gap:12px}
.top{min-height:68px;justify-content:space-between}
.tools{flex-wrap:wrap;justify-content:flex-end;gap:6px}
.tools button{font-size:13px}
.brand{display:flex;align-items:center;gap:13px;min-width:0;margin:5px 0}
.brand-plate{
 position:relative;display:grid;place-items:center;flex:none;
 padding:3px 6px;border:1px solid #586665;border-radius:6px;
 background:#c8d0cc repeating-linear-gradient(0deg,#273e3b14 0 1px,transparent 1px 3px);
 box-shadow:inset 0 0 0 1px #eff4ef,inset 0 0 0 3px #53676650,2px 3px 0 #0f2825,3px 5px 7px #091c19b0
}
.brand-plate::before,.brand-plate::after{
 content:"";position:absolute;width:5px;height:5px;border-radius:50%;
 background:var(--fastener);box-shadow:0 0 0 1px #61452e5c
}
.brand-plate::before{left:5px;top:5px}
.brand-plate::after{right:5px;bottom:5px}
.brand-compass{display:block;flex:none;object-fit:contain;filter:drop-shadow(1px 2px 1px #0e181571)}
.brand strong{display:block;font-size:20px;line-height:1.13;letter-spacing:.06em}
.brand small{display:block;color:#d5e5da;font-size:12px;font-weight:650}
.intro{justify-content:space-between;padding:21px 0 13px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(23px,3.4vw,34px);letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere}
h2{font-size:19px;letter-spacing:-.02em}
h3{font-size:16px}
.local{border:1px solid var(--edge);color:#244e43;background:#e2efe5;padding:5px 10px;border-radius:30px;font-size:12px;white-space:nowrap}
#notice{min-height:20px;margin:4px 0 2px;color:var(--muted);font-size:13px}
#notice.problem{color:#8a3116;font-weight:650}
.card{background:var(--surface) var(--panel-face);border:1px solid var(--line);border-radius:var(--round);box-shadow:inset 0 1px #fffdf4,0 2px 0 #637d73a8,0 7px 15px #143b3226}
.first-steps{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line)}
.first-steps p{flex:1 1 225px;color:var(--muted)}
.settings{display:grid;grid-template-columns:minmax(0,2fr) minmax(8rem,.65fr) minmax(11rem,1fr);gap:12px;padding:15px 18px;align-items:end}
.settings.card{
 background-image:repeating-linear-gradient(0deg,#1a3b2c08 0 1px,transparent 1px 5px),var(--panel-face);
 border-color:#5e776d;box-shadow:inset 0 0 0 2px #ffffff70,0 3px 0 #637d73,0 7px 15px #143b3235
}
.settings:has(#die-field:not([hidden])){grid-template-columns:minmax(0,1.7fr) minmax(8rem,.7fr) minmax(11rem,1fr) minmax(10rem,.75fr)}
.sample-note{grid-column:1/-1;color:var(--muted);font-size:13px}
label{display:grid;gap:5px;color:var(--muted);font-size:13px;font-weight:650}
input,select,textarea{min-width:0;width:100%;border:2px solid var(--edge);background:var(--field);padding:7px 9px;border-radius:6px}
input:not([type=checkbox]),select,textarea{background-image:var(--field-well);box-shadow:inset 0 2px 3px #153e312b,inset 0 -1px 2px #153e3121}
input:hover,select:hover,textarea:hover{border-color:var(--green)}
input:disabled,select:disabled,textarea:disabled{background:#e0e5dd;color:#50605a;opacity:1;box-shadow:none}
input[type=checkbox]{width:1.1rem;height:1.1rem;flex:none;accent-color:var(--green)}
input[aria-invalid=true]{border-color:#9c3e40;background:#fff0ed}
.work-bar{position:sticky;top:0;z-index:2;background:#233e36 linear-gradient(#3d5b51,#253f37 65%,#203a33);padding:9px 9px 4px;margin-top:12px;border:1px solid #28443b;border-radius:8px;box-shadow:inset 0 2px var(--metal-light),0 2px 0 #51675f,0 4px 8px #183b364a}
.work-bar #notice{color:#e1ebe3}
.work-bar #notice.problem{color:#ffd0aa}
.work-bar :focus-visible{outline-color:#f4d299}
.work-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tabs{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.tabs button{padding:7px 10px}
.tabs button[aria-pressed=true]{background:#21493e linear-gradient(#2e564a,#244d42);border-color:#19372e;color:var(--white);box-shadow:inset 0 2px 4px #102f29b0,inset 0 -2px #d9ac70}
.workspace-scroll{overflow-x:auto;padding-bottom:6px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:764px;gap:15px;margin-top:13px;align-items:start}
.feed-targets{grid-column:1/-1}
.supplement-heading{flex-wrap:wrap}
.feed-completeness{border-inline-start:4px solid var(--metal);padding:10px 12px;background:#fff7e3;color:#4c3b25}
.editor-completeness,.result-completeness{margin:12px 17px}
.result-completeness{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.result-completeness h3{margin-bottom:3px}
.rotate-hint{display:none}
@media(max-width:800px) and (orientation:portrait){
 .rotate-hint{display:block;margin-top:12px;font-size:13px;background:var(--surface);padding:8px 12px;border-radius:7px}
}
#edit,#result,input{scroll-margin-top:92px}
.panel{min-width:0;overflow:hidden}
.section-head{justify-content:space-between;padding:15px 17px}
.panel>.section-head,.dialog>.section-head{background:#e6eee5 linear-gradient(#f1f6eb,#e0ebe0);border-bottom:1px solid var(--line);box-shadow:inset 0 -2px #c48d4654}
.panel>.section-head h2,.dialog>.section-head h2{border-left:3px solid var(--metal);padding-left:9px}
.section-head p{font-size:13px;color:var(--muted);margin-top:3px}
.table-wrap{position:relative;overflow:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;background:#d3e5dc;color:#233f38;font-size:12px;font-weight:750}
th,td{padding:9px 8px;border-bottom:1px solid var(--rule);vertical-align:middle}
th:first-child,td:first-child{padding-left:17px}
th:last-child,td:last-child{padding-right:17px}
tbody tr:nth-child(even){background:#eaece3}
td strong{display:block;line-height:1.3}
td small{display:block;color:var(--muted);line-height:1.35;margin-top:3px}
td input{padding:5px 5px;min-width:60px;font-variant-numeric:tabular-nums}
.inventory th:not(:first-child){white-space:nowrap}
.inventory{min-width:460px}
.inventory td:first-child{width:45%;overflow-wrap:anywhere}
.inventory td:nth-child(2),.inventory td:nth-child(3){width:17%}
.row-settings:empty{display:none}
.actions{display:flex;gap:4px}
.actions button,.small{padding:4px 7px;font-size:12px}
.actions .remove{min-width:28px;font-size:16px;line-height:1}
.remove{color:#782e3b;border-color:#945159;background:#f7e8e6 linear-gradient(#fff2ec,#f1d6d5);box-shadow:inset 0 1px #fff8f3,0 2px 0 #915560}
.remove:hover:enabled{background:#f2d5d8 linear-gradient(#fff0eb,#ecc3c9)}
.panel-foot{color:var(--muted);padding:12px 17px;font-size:13px}
.inline select{flex:1}
#result{margin-top:16px}
.exports{margin-bottom:12px;justify-content:flex-start;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 17px 17px}
.stats>div{background:#e0ebe3 linear-gradient(#f0f7ee,#dce9df);border:1px solid var(--line);padding:10px 13px;border-radius:8px;box-shadow:inset 0 2px #f4d299,0 2px 0 #69877b79}
.stats small{display:block;color:var(--muted)}
.stats strong{font-size:24px;font-variant-numeric:tabular-nums}
.subhead{padding:13px 17px 7px}
progress{width:90px;height:8px;margin-left:5px;accent-color:#39745e}
.badge{display:inline-block;background:#edf3e9;border-radius:5px;padding:2px 6px;color:#396447;font-size:11px;font-weight:700}
.warn{color:var(--warn);background:#fff2d9}
footer{color:var(--muted);font-size:12px;display:flex;gap:8px;padding:19px 0 26px}
.dialog{width:min(850px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:0;color:var(--ink);border:2px solid var(--edge)}
.dialog::backdrop{background:#14282385}
.dialog .section-head{position:sticky;top:0;z-index:1}
.dialog-body{padding:15px 17px}
.dialog-body p{margin-bottom:10px;color:var(--muted)}
.dialog-foot{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:9px 17px;background:#dde8e0;border-top:1px solid var(--line)}
.dialog-foot span{color:var(--muted);font-size:13px}
.ingredient-details,.catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.catalog-filters{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.report-dialog{width:min(1100px,calc(100% - 32px))}
.report-frame{width:100%;height:min(77vh,850px);border:1px solid var(--edge);display:block}
.catalog-list{margin-top:8px;max-height:min(47vh,470px);overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px}
.catalog-list th{position:sticky;top:0}
.catalog-list td:last-child{width:1%;white-space:nowrap}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:945px){
 .workspace .inventory{min-width:363px}
 .workspace .inventory td:first-child{width:35%}
 .workspace .inventory th:first-child,.workspace .inventory td:first-child{padding-inline-start:12px}
 .workspace .inventory th:last-child,.workspace .inventory td:last-child{padding-inline-end:12px}
}
@media(max-width:760px){.top{padding:10px 0;align-items:flex-start;flex-direction:column}.tools{justify-content:flex-start}.settings{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.wrap{width:calc(100% - 24px)}.intro{gap:6px}.inline{gap:5px}.work-row{flex-wrap:wrap}#edit,#result,input{scroll-margin-top:130px}.section-head{align-items:flex-start}.inventory{min-width:420px}.targets{min-width:295px}.ingredient-details,.catalog-filters{grid-template-columns:1fr}.dialog-body,.dialog-foot{padding-inline:12px}}

.legacy-dialog{width:min(1060px,calc(100% - 32px))}
.archive-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:12px}
.archive-toolbar>label{min-width:170px}
.archive-toolbar>label:first-child{flex:1}
.archive p{margin-top:8px}
.archive small{color:var(--muted)}
.archive details{padding:8px 0}
.archive summary{color:var(--green);cursor:pointer;font-weight:650}
.archive-warnings{padding:8px 12px;background:#fff2d9;border-radius:8px;margin-bottom:10px}
.archive-warnings p{margin:5px 0;color:var(--warn)}

body{font-size:16px}
label,button,.tools button,#notice{font-size:14px}
.tools a,.outline{padding:7px 11px;border:2px solid #b0d7c8;border-radius:7px;font-size:14px;color:white}
.tools a{background:#254f45 var(--green-face);box-shadow:var(--bevel);text-decoration:none}
.tools a:hover{background:#305d50 linear-gradient(#407a6b,#305d50)}
footer a{color:var(--green)}
.lab-basis{max-width:350px;margin:0 0 10px}
.dialog-body details{margin-top:12px}
.dialog-body summary,.archive summary{
 cursor:pointer;font-weight:700;color:var(--ink);
 border:1px solid var(--edge);border-radius:6px;background:var(--button);padding:7px 10px
}
.check-row{display:flex;align-items:start;gap:.55rem;margin-bottom:.65rem}
.check-row input{margin-top:.2rem}
#lab-status:empty,#save-status:empty{display:none}

.feeding-controls{grid-column:1/-1;min-width:0}
.feeding-controls{display:grid;gap:9px;border-top:1px solid #9cb0a5;box-shadow:inset 0 1px #ffffffb0;padding-top:11px}
.feeding-header{
  display:grid;grid-template-columns:minmax(0,29rem) auto;gap:8px clamp(10px,2vw,22px);
  align-items:center;justify-content:start;min-width:0
}
.feeding-header h2{grid-column:1;grid-row:1;align-self:end;border-left:3px solid var(--metal);padding-left:9px}
.feeding-search{grid-column:1;grid-row:2;align-self:start;width:100%}
.animal-medallion{
  --medallion-size:clamp(86px,22vw,172px);
  grid-column:2;grid-row:1/span 2;display:grid;place-items:center;position:relative;
  width:var(--medallion-size);aspect-ratio:1;overflow:hidden;isolation:isolate;
  border:1px solid #624225;border-radius:50%;
  background-color:#ad8150;
  background-image:
    repeating-radial-gradient(circle closest-side,#3b241b29 0 .5px,transparent .8px 2.15px,#fff0ca30 2.35px 2.75px,transparent 3.05px),
    conic-gradient(from -55deg,#a47b4c,#f6dfaf 10%,#d9b582 20%,#9e7040 35%,#7e5532 44%,
      #dabe8b 61%,#bb9160 73%,#8c6037 86%,#a47b4c);
  box-shadow:
    inset 0 0 0 1px #f7e3bd,inset 0 0 0 3px #74512c,inset 0 0 0 4px #edc78b,
    2px 3px 0 0 #6b492a,5px 7px 4px -2px #26372fb0,10px 13px 13px -5px #273b3077
}
.animal-rivets{position:absolute;inset:0;pointer-events:none}
.animal-rivets > span{
  position:absolute;top:50%;left:50%;width:clamp(7.5px,calc(var(--medallion-size) * .061),10.5px);
  aspect-ratio:1;border:1px solid #59605b;border-radius:50%;
  transform:translate(-50%,-50%) rotate(var(--angle))
    translateY(calc(var(--medallion-size) * -.42)) rotate(calc(var(--angle) * -1));
  background:#aab0a8 radial-gradient(circle at 29% 24%,#fffef6 0 9%,#f6f6ed 20%,#d7dad2 37%,
    #a1aaa2 54%,#6f7a74 72%,#a6aea4 89%,#5f6965);
  box-shadow:inset 0 -1px 1px #37454194,.6px 1px 1px #342619bd;
}
.animal-window{
  width:73%;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;
  border:1px solid #192824;border-radius:50%;
  background:#263a35 radial-gradient(ellipse at 32% 22%,#a2b4ac 0,#627772 12%,#3c544e 30%,#273d38 56%,#132520 89%);
  box-shadow:0 0 0 1px #543817,0 0 0 2px #f3d696a6,inset 0 0 0 2px #1328228f,inset 0 3px 7px #101e1b;
}
.animal-engraving{
  width:88%;height:88%;background-repeat:no-repeat;
  filter:drop-shadow(0 2px 2px #0e1815b8)
}
.animal-mark{display:block;width:78%;height:auto;filter:drop-shadow(1px 2px 2px #0e1815b8)}
.feeding-search-results{display:flex;flex-wrap:wrap;gap:6px}
.feeding-search-results button{text-align:start;white-space:normal}
.feeding-pickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:9px;align-items:end}
.feeding-hint{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.feeding-hint:empty{display:none}
.feed-form{max-width:34rem}
@media(max-width:960px){
  .feeding-pickers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .feeding-pickers{grid-template-columns:minmax(0,1fr)}
  .feeding-pickers button{justify-self:start}
  .feed-form{grid-column:1/-1}
  .intro{flex-wrap:wrap}
}

#nutrition{margin-top:13px;scroll-margin-top:92px}
.nutrition-display{
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px;
  padding:12px
}
.nutrition-screen{
  position:relative;min-width:0;padding:14px 16px 12px;border:1px solid #647c68;border-radius:9px;
  color:#f0f4e9;background:#16312d linear-gradient(155deg,#1d4039,#102923 72%);
  box-shadow:inset 0 2px 7px #041913e0,inset 0 -1px #8ca395,0 2px 0 #526760
}
.nutrition-screen h3{color:#f6d397;font-size:16px}
.nutrition-screen h3+p{margin-top:8px;font-size:13px;color:#e0e9dd}
.nutrition-composition{
  display:grid;grid-template-columns:auto minmax(0,1fr);
  gap:16px;align-items:center;margin:10px 0
}
.nutrition-composition:not(:has(.nutrition-dial)){grid-template-columns:minmax(0,1fr)}
.nutrition-dial{
  --dial-size:clamp(114px,13vw,162px);width:var(--dial-size);height:var(--dial-size);
  display:grid;place-items:center;border:1px solid #587970;border-radius:50%;
  background:radial-gradient(closest-side,#142b26 87%,transparent 89%),
    repeating-conic-gradient(#d6a96b 0deg 1.1deg,#1a322d 1.1deg 12deg);
  box-shadow:0 2px 5px #041611,inset 0 0 0 3px #304a41
}
.nutrition-ring{
  width:82%;height:82%;display:grid;place-items:center;border-radius:50%;
  background:conic-gradient(var(--slices));box-shadow:0 4px 0 #0c211c,0 6px 8px #04171391,inset 0 1px 2px #fff4;
}
.nutrition-ring>span{
  width:67%;height:67%;display:grid;align-content:center;justify-items:center;border-radius:50%;
  background:#17342c radial-gradient(circle at 30% 20%,#2b4e42,#132a24 70%);
  box-shadow:0 0 0 1px #1029226b,inset 0 2px 4px #041913b9;
  font-variant-numeric:tabular-nums;text-align:center
}
.nutrition-ring strong{font-size:clamp(15px,2vw,24px);line-height:1.1}
.nutrition-ring small{color:#d9e6d7;font-size:9px}
.nutrition-legend,.nutrition-bars{list-style:none;margin:0;padding:0}
.nutrition-legend li{
  display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;
  padding:3px 0;border-bottom:1px solid #426157;font-size:13px
}
.nutrition-swatch{
  width:9px;height:9px;border-radius:2px;background:var(--swatch);box-shadow:inset 0 1px #fff6
}
.nutrition-legend strong,.nutrition-bar-label strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.nutrition-note{font-size:12px;color:#cfddd0;margin-top:10px}
.nutrition-bars{display:grid;gap:7px;margin-top:9px}
.nutrition-bar-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px}
.nutrition-bound{color:#c8dacc;font-size:11px;margin-top:2px}
.nutrition-bar{
  position:relative;display:block;height:9px;border-radius:3px;margin-top:3px;
  background:repeating-linear-gradient(to right,#324e43 0 1px,transparent 1px 8.333%),#0c211d;
  box-shadow:inset 0 1px 3px #05130f
}
.nutrition-bar i{display:block;width:var(--width);height:100%;background:linear-gradient(#83d1b4,#439d81);border-radius:2px}
.nutrition-bar::after{content:"";position:absolute;left:66.667%;top:-2px;height:13px;border-left:2px solid #f3cc82}
@media(max-width:850px){
  .settings:has(#die-field:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
  .nutrition-display{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:540px){
  #nutrition{scroll-margin-top:130px}
  .nutrition-screen{padding:12px}
  .nutrition-composition{grid-template-columns:minmax(0,1fr);gap:9px}
  .nutrition-dial{justify-self:center}
  #die-field{grid-column:1/-1}
}

.recipe-notes {grid-column:1/-1;display:grid;gap:8px}
.recipe-notes textarea {display:block;height:12rem;min-height:8rem;max-height:65vh;overflow:auto;resize:vertical}
.recipe-notes button {justify-self:start}
.report-notes {white-space:pre-wrap;overflow-wrap:anywhere}
.reference-grid table {width:max-content;min-width:100%}
.reference-grid th,.reference-grid td {min-width:3.6rem}
.reference-grid th[scope=row] {text-align:left}
.reference-gaps {font-size:.875rem}

.recipe-count{
  margin-inline-start:clamp(4px,1.25vw,18px);
  padding-inline-start:clamp(10px,1.45vw,20px);
  border-inline-start:1px solid #d5b48580;
  color:#edf3e9;
  font-size:14px;
  font-weight:650;
  line-height:1.3;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
@media(max-width:540px){
  .brand{display:grid;grid-template-columns:auto minmax(0,1fr);row-gap:5px}
  .recipe-count{grid-column:2;margin:0;padding:0;border:0;font-size:13px}
}

.recipe-origin {
  padding: .75rem 1rem;
  margin: 0 0 .8rem;
  border: 1px solid #a4b8ad;
  border-radius: .45rem;
  background: #f4f8f4;
  color: #182d25;
}
.recipe-origin h3 {margin: 0 0 .55rem; font-size: 1rem}
.recipe-origin dl {display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem .85rem; margin: 0}
.recipe-origin dt {font-weight: 650}
.recipe-origin dd {margin: 0; overflow-wrap: anywhere}
@media (max-width: 480px) {
  .recipe-origin dl {grid-template-columns: minmax(0, 1fr); gap: .2rem}
  .recipe-origin dd + dt {margin-top: .35rem}
}

.supplement-guide{margin:0 17px 12px}
.supplement-guide label,.premix-label-calc label{display:grid;gap:4px}
.supplement-guide select,.premix-label-calc select{width:100%;min-width:0}
#supplement-guide-status:empty{display:none}
#supplement-guide-status{font-size:13px;color:var(--muted)}
.supplement-reference{margin:8px 0;border:1px solid var(--rule);border-radius:8px;background:var(--surface);padding:9px 11px;font-size:13px}
#result-data>.supplement-reference{margin:12px 17px}
.supplement-reference summary{cursor:pointer;font-weight:750;color:var(--green)}
.supplement-reference p{margin:7px 0;color:var(--muted)}
.supplement-reference-source{overflow-wrap:anywhere}
.supplement-reference caption{text-align:left;font-weight:750;padding:8px 5px}
.supplement-reference th[scope=row]{background:transparent}
.premix-label-calc{display:grid;gap:6px;padding:9px 11px;margin-top:8px;border-inline-start:4px solid var(--metal);background:#fff7e3}
.premix-label-calc h4{margin:0}

.market-premix-summary{margin:8px 17px 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);padding:9px 11px;font-size:13px;overflow-wrap:anywhere}
.market-premix-summary summary{cursor:pointer;font-weight:750;color:var(--green)}
.market-premix-summary p{margin:7px 0;color:var(--muted)}
.recipe-source-details{margin:0 0 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);padding:9px 11px;min-width:0;overflow-wrap:anywhere}
.recipe-source-details summary{cursor:pointer;font-weight:750;color:var(--green)}
.recipe-source-details[open] summary{margin-bottom:8px}
.recipe-source-details .table-wrap{margin:8px 0}
.recipe-source-details .source-locator{font-size:.875rem;margin-bottom:0}
.market-premix-summary label{display:grid;gap:4px;margin-top:6px}
.market-premix-summary select{width:100%;min-width:0}
#market-premix-status:empty{display:none}
.market-premix-note{border-inline-start:3px solid var(--metal);padding-inline-start:8px}
.market-premix-table caption{text-align:left;font-weight:750;padding:8px 5px}
.market-premix-table th[scope=row]{background:transparent}
