/* Ladle List - freezer tubs with masking-tape labels, and hanging aisle signs over the shop list. */
:root {
  --bg: #f3efe6; --panel: #fffdf8; --ink: #1c2724; --muted: #5b6662; --line: #d9d2c3; --soft: #ece6d8;
  --sign: #1b5a47; --sign-ink: #ffffff; --wire: #7d8784; --tape: #ecdcaa; --tape-ink: #2b2414; --lid: #e3ddd0; --tubwall: rgba(255, 255, 255, .72);
  --accent: #1b5a47; --accent-ink: #ffffff; --focus: #c8541f;
  --loose-bg: #fde3d3; --loose-ink: #8f3412; --shared-bg: #dce9f6; --shared-ink: #1d4a73; --check-bg: #f8ecc4; --check-ink: #6a4b00; --have-bg: #e4e7e5; --have-ink: #414b47;
  --warn-bg: #fdeee5; --warn-ink: #7f2f0f; --info-bg: #e9f1f7; --info-ink: #1d4a73;
  --tight: #1b6a3c; --loose: #a2521b; --scattered: #9b2c2c;
  --c0: #d4553a; --c1: #e19a2c; --c2: #5f9e47; --c3: #b8921c; --c4: #86664a; --c5: #8c3a6c;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121817; --panel: #1b2321; --ink: #e7ece9; --muted: #a3afab; --line: #34403d; --soft: #232d2b;
  --sign: #2b7a60; --sign-ink: #ffffff; --wire: #6c7774; --tape: #d9c88f; --tape-ink: #241d0c; --lid: #3a4441; --tubwall: rgba(255, 255, 255, .08);
  --accent: #3f9c7c; --accent-ink: #0d1412; --focus: #f08a52;
  --loose-bg: #4a2414; --loose-ink: #ffc9ab; --shared-bg: #17324a; --shared-ink: #bcdcf7; --check-bg: #3f3210; --check-ink: #f5dc93; --have-bg: #2c3532; --have-ink: #c5cdca;
  --warn-bg: #43220f; --warn-ink: #ffcfb5; --info-bg: #15304a; --info-ink: #c4def4;
  --tight: #6fd39a; --loose: #f2a873; --scattered: #ff9b9b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: linear-gradient(var(--soft) 1px, transparent 1px), linear-gradient(90deg, var(--soft) 1px, transparent 1px); background-size: 48px 48px; }
a { color: var(--accent); }
:root[data-theme="dark"] a { color: #7fd1b2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; } .muted { color: var(--muted); } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.note { background: var(--check-bg); color: var(--check-ink); padding: .4rem .6rem; border-radius: 6px; }

/* header */
.bar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.back { text-decoration: none; font-size: .9rem; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; flex: 1; min-width: 0; }
.logo { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo .lg-bowl { fill: var(--c1); }
.session { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; text-decoration: none; color: var(--ink); min-height: 36px; }
.pill:hover { border-color: var(--accent); }
.pill.solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill.ghost { cursor: default; background: transparent; }
.pill.tiny { padding: .15rem .6rem; min-height: 30px; font-size: .85rem; }
.pill.big { padding: .6rem 1.3rem; font-weight: 600; font-size: 1.02rem; }
.pill:disabled { opacity: .55; cursor: not-allowed; }

main { max-width: 1120px; margin: 0 auto; padding: 1rem 16px 2rem; }
.hero { padding: 1rem 0 .5rem; }
.kicker { font-size: .88rem; color: var(--muted); margin: 0 0 .3rem; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.15; margin: 0 0 .5rem; text-wrap: balance; }
.lede { max-width: 62ch; margin: 0 0 .8rem; }
.samples { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.chip { border: 1px dashed var(--line); background: var(--panel); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; min-height: 36px; }
.chip.on { border-style: solid; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0; }
.ph { font-size: 1.2rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.step-no { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sign); color: var(--sign-ink); font-size: .95rem; flex: none; }
.lbl { display: block; font-weight: 600; font-size: .9rem; margin: .6rem 0 .25rem; }
input[type=text], input[type=number], textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; background: var(--bg); }
textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
.cupbox .two { grid-template-columns: 1fr 1fr; }
.cardrow, .exports, .runrow { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .7rem; }
.drop { border: 1px dashed var(--line); border-radius: 8px; padding: .5rem .7rem; margin-top: .5rem; }
.drop.over { border-color: var(--accent); background: var(--soft); }
.filelbl { color: var(--accent); text-decoration: underline; cursor: pointer; }
:root[data-theme="dark"] .filelbl { color: #7fd1b2; }

/* the tub shelf */
.shelf { display: flex; flex-wrap: wrap; gap: .9rem 1rem; padding: .8rem .4rem 1.1rem; border-bottom: 6px solid var(--lid); margin-bottom: .6rem; }
.tub { position: relative; width: 128px; height: 140px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.tub .lid { display: block; width: 100%; height: 14px; border-radius: 6px 6px 3px 3px; background: var(--lid); border: 1px solid var(--line); }
.tub .body { position: relative; display: block; width: 92%; flex: 1; border: 2px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--tubwall); overflow: hidden; }
.tub .fill { position: absolute; left: 0; right: 0; bottom: 0; opacity: .82; transition: height .3s; }
.tub.empty .fill { display: none; }
.tub .tape { position: absolute; left: 6%; right: 6%; top: 14px; background: var(--tape); color: var(--tape-ink); transform: rotate(-2.5deg); padding: .2rem .35rem; text-align: left;
  font: 600 .8rem/1.2 "Marker Felt", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.tub .tape b { display: block; font-size: .86rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tub .tape span { display: block; font-weight: 400; font-size: .74rem; }
.tub .tubno { position: absolute; right: 2px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.tub.on .lid { background: var(--sign); border-color: var(--sign); }
.tub.on .body { border-color: var(--sign); box-shadow: 0 0 0 2px var(--sign); }
.tub.add .body { border-style: dashed; display: grid; place-content: center; text-align: center; }
.tub.add .plus { font-size: 2rem; line-height: 1; color: var(--muted); }
.tub.add .addlab { font-size: .8rem; color: var(--muted); }
.c0 .fill, .dot.c0 { background: var(--c0); } .c1 .fill, .dot.c1 { background: var(--c1); } .c2 .fill, .dot.c2 { background: var(--c2); }
.c3 .fill, .dot.c3 { background: var(--c3); } .c4 .fill, .dot.c4 { background: var(--c4); } .c5 .fill, .dot.c5 { background: var(--c5); }
.editor { margin-top: .2rem; }

/* the aisles */
.tally { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.count { display: inline-flex; align-items: baseline; gap: .3rem; padding: .25rem .6rem; border-radius: 8px; background: var(--soft); font-size: .88rem; }
.count b { font-size: 1.1rem; }
.count.k-loose { background: var(--loose-bg); color: var(--loose-ink); }
.sticker { display: inline-grid; place-items: center; min-width: 84px; height: 84px; padding: 0 .5rem; border-radius: 50%; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .78rem;
  border: 3px double currentColor; transform: rotate(-8deg); text-align: center; line-height: 1.1; background: var(--panel); }
.tally .sticker { min-width: 64px; height: 64px; font-size: .68rem; margin-left: auto; }
.v-tight { color: var(--tight); } .v-loose_ends { color: var(--loose); } .v-scattered { color: var(--scattered); } .v-none { color: var(--muted); }
.aisles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem 1rem; align-items: start; }
.aisle { position: relative; padding-top: 18px; min-width: 0; }
.aisle .wire { position: absolute; top: 0; left: 22%; right: 22%; height: 22px; border-left: 2px solid var(--wire); border-right: 2px solid var(--wire); }
.sign { position: relative; display: flex; align-items: center; gap: .55rem; background: var(--sign); color: var(--sign-ink); border-radius: 8px; padding: .45rem .7rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.signno { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 6px; background: var(--sign-ink); color: var(--sign); font-weight: 800; flex: none; }
.signname { font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.rows { list-style: none; margin: .5rem 0 0; padding: 0; }
.row { display: grid; grid-template-columns: 28px 1fr; gap: 0 .4rem; padding: .45rem .2rem; border-bottom: 1px dashed var(--line); align-items: start; }
.row input[type=checkbox] { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--sign); }
.rowmain { cursor: pointer; display: flex; flex-wrap: wrap; gap: .1rem .4rem; align-items: baseline; min-width: 0; }
.need { font-weight: 700; white-space: nowrap; }
.item { overflow-wrap: anywhere; }
.rowmeta, .get, .covers { grid-column: 2; }
.rowmeta { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; margin-top: .2rem; }
.dots { display: inline-flex; gap: 2px; }
.dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: .66rem; font-weight: 700; text-shadow: 0 0 2px rgba(0, 0, 0, .5); }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; white-space: nowrap; }
.t-loose { background: var(--loose-bg); color: var(--loose-ink); } .t-shared { background: var(--shared-bg); color: var(--shared-ink); }
.t-check { background: var(--check-bg); color: var(--check-ink); } .t-have { background: var(--have-bg); color: var(--have-ink); }
.row.st-have .rowmain { text-decoration: line-through; color: var(--muted); }
.row.ticked .rowmain { text-decoration: line-through; opacity: .7; }
.get { margin-top: .25rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .2rem .4rem; align-items: baseline; }
.get .shop { font-size: .74rem; padding: .02rem .45rem; border: 1px solid var(--line); border-radius: 4px; }
.covers { font-size: .82rem; color: var(--muted); }
.swapnote { font-style: italic; }
.legend { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.legend li { display: flex; gap: .35rem; align-items: center; }
.none { color: var(--muted); font-style: italic; list-style: none; }

/* ask, progress, result */
.gate { background: var(--info-bg); color: var(--info-ink); padding: .5rem .7rem; border-radius: 8px; }
.gate .pill { margin-left: .3rem; }
.steps { list-style: none; padding: 0; margin: .4rem 0; }
.step { padding: .15rem 0; color: var(--muted); } .step.done { color: var(--tight); } .step.active { color: var(--ink); font-weight: 600; }
.step-ic { display: inline-block; width: 1.1rem; font-family: ui-monospace, Menlo, monospace; }
.raw { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; background: var(--soft); padding: .6rem; border-radius: 8px; }
.res-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.res-head h2 { margin: 0; flex: 1; min-width: 12ch; font-size: 1.35rem; text-wrap: balance; }
.summary { font-size: 1.02rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cols h3, .result h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.spare, .swaps, .plain, .recon { list-style: none; padding: 0; margin: 0; }
.spare li, .swaps li { border-left: 4px solid var(--loose); padding: .2rem 0 .3rem .6rem; margin-bottom: .6rem; }
.swaps li { border-left-color: var(--sign); }
.spare p, .swaps p { margin: .15rem 0; }
.spare .use { color: var(--muted); } .saves { font-size: .86rem; color: var(--muted); }
.plain li { padding: .2rem 0; border-bottom: 1px dashed var(--line); }
.recon li { padding: .35rem .6rem; border-radius: 6px; margin-bottom: .35rem; font-size: .9rem; }
.recon li.warn { background: var(--warn-bg); color: var(--warn-ink); } .recon li.info { background: var(--info-bg); color: var(--info-ink); }
.recon li.none { background: none; }

/* the freezer */
.freezer { list-style: none; padding: 0; margin: .8rem 0 0; }
.hrow { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hinfo b { overflow-wrap: anywhere; }
.hbtns { display: flex; gap: .3rem; flex: none; }
.minitub { width: 34px; height: 36px; border: 2px solid currentColor; border-top-width: 6px; border-radius: 4px 4px 9px 9px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }

.foot { max-width: 1120px; margin: 0 auto; padding: 1rem 16px 3rem; color: var(--muted); font-size: .88rem; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: .4rem; z-index: 20; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--tight); border-radius: 8px; padding: .5rem .7rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: opacity .5s; font-size: .92rem; }
.toast.err { border-left-color: var(--scattered); } .toast.gone { opacity: 0; }

@media (max-width: 720px) {
  .two, .cupbox .two, .cols { grid-template-columns: 1fr; }
  .tub { width: 92px; height: 122px; }
  .shelf { padding: .7rem 0 1rem; }
  .tub .tape b { font-size: .78rem; }
  .shelf { gap: .7rem; justify-content: flex-start; }
  .bar { gap: .4rem .6rem; padding: .5rem 12px; }
  .back { order: 2; }
  .brand { order: 1; }
  .session { order: 3; width: 100%; justify-content: flex-end; }
  .aisles { grid-template-columns: 1fr; }
  .tally .sticker { margin-left: 0; }
}
