/* Canefrost Bold, the same system as the app and website: deep green canvas, cream text, paper cards,
   one yellow accent. Outfit in CAPS for labels/buttons/one-line headings, DM Serif Display for names. */
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url(fonts/outfit-400.woff2) format("woff2") }
@font-face { font-family: "Outfit"; font-weight: 500 600; font-display: swap; src: url(fonts/outfit-600.woff2) format("woff2") }
@font-face { font-family: "Outfit"; font-weight: 700 900; font-display: swap; src: url(fonts/outfit-900.woff2) format("woff2") }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url(fonts/dmserif-400.woff2) format("woff2") }

:root {
  --green: #0C4A33; --green2: #0F5A3E; --green3: #083826;
  --cream: #F5E7CF; --paper: #FBF4E6; --yellow: #F5E866; --ink: #1E2A22; --muted: #5E6B62;
  --blends: #F3DF7A; --fusion: #A9465A; --pops: #C9A158; --specials: #F4EAD2; --red: #B3261E;
  --top: env(safe-area-inset-top); --bottom: env(safe-area-inset-bottom);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; background: var(--green); color: var(--cream); }
body { font: 400 16px/1.45 Outfit, system-ui, sans-serif; min-height: 100dvh; overscroll-behavior-y: none; -webkit-text-size-adjust: 100% }
button, input { font: inherit; color: inherit }
button { cursor: pointer; border: 0; background: none; padding: 0 }
a { color: inherit }
img { display: block; max-width: 100% }
.caps { text-transform: uppercase; letter-spacing: .06em; font-weight: 900 }
.serif { font-family: "DM Serif Display", Georgia, serif; font-weight: 400 }
.muted { color: color-mix(in srgb, var(--cream) 72%, transparent) }
[hidden] { display: none !important }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--top) + 12px) 16px 12px; background: var(--green) }
.logo { height: 22px; width: auto }
.chip { background: var(--yellow); color: var(--green); border-radius: 99px; padding: 7px 12px; font-weight: 900; font-size: 13px; letter-spacing: .05em }
.strip { background: var(--yellow); color: var(--green); text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px }

main { padding: 0 16px calc(150px + var(--bottom)); outline: none; max-width: 640px; margin: 0 auto }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--green3);
  padding: 0 8px var(--bottom); border-top: 1px solid rgba(245,231,207,.12) }
.tabs a { flex: 1; text-align: center; padding: 16px 0 14px; text-decoration: none; font-weight: 900; letter-spacing: .08em; font-size: 13px; color: rgba(245,231,207,.6) }
.tabs a.on { color: var(--yellow) }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--yellow); color: var(--green); font-size: 12px; line-height: 20px }
.bagbar { position: fixed; left: 16px; right: 16px; bottom: calc(60px + var(--bottom)); z-index: 25; max-width: 608px; margin: 0 auto;
  background: var(--yellow); color: var(--green); border-radius: 14px; padding: 15px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 8px 24px rgba(0,0,0,.3) }

/* line switcher */
.lines { position: sticky; top: calc(var(--top) + 46px); z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; margin: 0 -16px; padding-inline: 16px;
  background: var(--green); scrollbar-width: none }
.lines::-webkit-scrollbar { display: none }
.lines button { flex: none; border-radius: 99px; padding: 9px 16px; font-weight: 900; font-size: 13px; letter-spacing: .07em; border: 1.5px solid rgba(245,231,207,.35) }
.lines button.on { background: var(--cream); color: var(--green); border-color: var(--cream) }
.line-h { margin: 22px 0 4px; font-size: 34px; line-height: 1.05 }
.fam-h { margin: 22px 0 10px; font-size: 13px; color: var(--yellow) }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.tile { position: relative; border-radius: 18px; overflow: hidden; background: var(--green2); text-align: left }
.tile img { aspect-ratio: 4/5; width: 100%; height: auto; object-fit: cover; background: var(--green2) }
.tile .ph { aspect-ratio: 4/5; display: grid; place-items: center; font-size: 13px }
.tile .meta { padding: 10px 12px 12px }
.tile .nm { font-size: 19px; line-height: 1.1 }
.tile .pr { font-size: 14px; margin-top: 2px }
.add { position: absolute; top: 10px; right: 10px; min-width: 40px; height: 40px; border-radius: 20px; background: rgba(12,74,51,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--cream); font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center }
.add.has { background: var(--yellow); color: var(--green); font-size: 16px; font-weight: 900; padding: 0 4px; gap: 4px }
.add.has b { min-width: 18px; text-align: center }
.add.has span { width: 30px; height: 32px; display: grid; place-items: center; font-size: 22px }
.tag { display: inline-block; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--ink) }

/* cards and forms */
.card, .sheet { color-scheme: light }
.card { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 18px; margin: 14px 0 }
.card h2, .card h3 { margin: 0 0 8px }
.card .muted, .sheet .muted { color: var(--muted) }
.small { font-size: 14px }
h1.page { font-size: 36px; margin: 18px 0 6px; line-height: 1.05 }
.btn { display: block; width: 100%; border-radius: 14px; padding: 16px; font-weight: 900; letter-spacing: .08em; text-align: center; text-decoration: none }
.btn.y { background: var(--yellow); color: var(--green) }
.btn.g { background: var(--green); color: var(--cream) }
.btn.o { border: 1.5px solid currentColor }
.btn:disabled { opacity: .45 }
.btn + .btn { margin-top: 10px }
.field { display: block; margin: 12px 0 }
.field span { display: block; font-size: 12px; font-weight: 900; letter-spacing: .08em; margin-bottom: 6px; color: var(--muted) }
.field input { width: 100%; font-size: 18px; padding: 14px; border-radius: 12px; border: 1.5px solid #C9BFA9; background: #fff; color: var(--ink) }
.field input:focus { outline: 2px solid var(--green); border-color: var(--green) }
.err { color: var(--red); font-size: 14px; margin: 6px 0 0 }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.line { padding: 12px 0; border-bottom: 1px solid #E7DCC6 }
.line:last-child { border: 0 }
.step { display: inline-flex; align-items: center; border: 1.5px solid var(--green); border-radius: 99px }
.step button { width: 36px; height: 34px; font-size: 20px; font-weight: 600; color: var(--green) }
.step b { min-width: 22px; text-align: center }
.opt { display: flex; gap: 10px }
.opt > * { flex: 1; border-radius: 14px; padding: 14px; border: 2px solid #D9CEB7; text-align: left; color: var(--ink) }
.opt > .on { border-color: var(--green); background: #EFE6D2 }
.opt > [disabled] { opacity: .5 }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted) }
.check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; margin: 1px 0 0 }
.totals .row { padding: 3px 0 }
.totals .grand { font-weight: 900; font-size: 18px; padding-top: 8px }
.status { display: inline-block; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 900; letter-spacing: .07em; background: var(--yellow); color: var(--green) }
.status.done { background: #D8E8DD }
.status.x { background: #F1D4D1; color: var(--red) }
.qr { background: #fff; border-radius: 14px; padding: 14px; width: 220px; margin: 12px auto }
.qr svg, .qr img { width: 100%; height: auto }
.code { font-size: 34px; letter-spacing: .12em; text-align: center; font-weight: 900; color: var(--green) }
.big { font-size: 44px; line-height: 1; color: var(--green) }
.stalk { height: 10px; border-radius: 5px; background: #E7DCC6; overflow: hidden; margin: 10px 0 4px }
.stalk i { display: block; height: 100%; background: var(--green) }
.link { color: var(--green); font-weight: 600; text-decoration: underline }
.danger { color: var(--red) }
.empty { text-align: center; padding: 50px 10px }
.empty .serif { font-size: 30px; margin-bottom: 6px }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5) }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; background: var(--paper); color: var(--ink);
  border-radius: 22px 22px 0 0; padding: 0 0 calc(18px + var(--bottom)); animation: up .22s ease-out }
.sheet .pad { padding: 18px }
.sheet .hero { width: 100%; aspect-ratio: 4/5; max-height: 52dvh; object-fit: cover; object-position: center 40% }
.sheet .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 19px; background: rgba(12,74,51,.7); color: var(--cream); font-size: 22px; z-index: 2 }
.sizes { display: flex; gap: 10px; margin: 12px 0 }
.sizes button { flex: 1; border: 2px solid #D9CEB7; border-radius: 14px; padding: 12px; font-weight: 900; letter-spacing: .06em }
.sizes button.on { border-color: var(--green); background: #EFE6D2 }
@keyframes up { from { transform: translateY(40px); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none } }

.toast { position: fixed; left: 50%; bottom: calc(130px + var(--bottom)); transform: translateX(-50%); z-index: 60; background: var(--cream); color: var(--green);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px) }
.toast.on { opacity: 1 }
