/* Layout: one large-print column, built from the Northern Lakes logo colors, with a tally bar fixed to the bottom. */
:root {
  --ground: #f2f5f2; --surface: #ffffff; --sunken: #e4eae5; --ink: #17231d; --heading: #16264f; --muted: #4c5a53; --line: #bdc9c1;
  --green: #2a4d38; --green-ink: #ffffff; --green-soft: #dbe8df; --navy: #16264f; --band: #2a4d38; --band-ink: #ffffff;
  --flag: #f2c14e; --flag-ink: #2b2000; --alert: #a32a1a; --alert-soft: #fbe7e2; --ok: #1d6b3d; --ok-soft: #dcf0e3;
  --display: Georgia, "Times New Roman", serif; --body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Verdana, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #101815; --surface: #1a2622; --sunken: #24332d; --ink: #e9f1ec; --heading: #dfe7fb; --muted: #a6b6ae; --line: #3c4f46;
  --green: #86c9a0; --green-ink: #0c2015; --green-soft: #243d30; --navy: #b6c6f2; --band: #1e3a2a; --band-ink: #ffffff;
  --flag: #f5c452; --alert: #ff9c8a; --alert-soft: #40201a; --ok: #7ed9a2; --ok-soft: #1a3a28; color-scheme: dark } }
:root[data-theme="dark"] {
  --ground: #101815; --surface: #1a2622; --sunken: #24332d; --ink: #e9f1ec; --heading: #dfe7fb; --muted: #a6b6ae; --line: #3c4f46;
  --green: #86c9a0; --green-ink: #0c2015; --green-soft: #243d30; --navy: #b6c6f2; --band: #1e3a2a; --band-ink: #ffffff;
  --flag: #f5c452; --alert: #ff9c8a; --alert-soft: #40201a; --ok: #7ed9a2; --ok-soft: #1a3a28; color-scheme: dark }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; padding-top: env(safe-area-inset-top, 0px) }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.5 var(--body) }
[hidden] { display: none !important }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--heading); line-height: 1.2; margin: 0; text-wrap: balance }
h1 { font-size: 1.7rem } h2 { font-size: 1.3rem } h3 { font-size: 1.08rem }
p { margin: 0 } a { color: var(--green) }
.wrap { max-width: 680px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.band { background: var(--band); color: var(--band-ink) }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1.2 var(--display); color: var(--band-ink); text-decoration: none; min-width: 0 }
.brand img { width: 44px; height: 44px; padding: 4px; background: #fff; border-radius: 10px; flex: none }
.band .link { color: var(--band-ink); font-size: .9rem; white-space: nowrap; background: none; border: 0; text-decoration: underline; cursor: pointer; min-height: 44px }
main { display: flex; flex-direction: column; gap: 22px; padding-block: 18px 120px }
main.short { padding-bottom: 28px }
footer { border-top: 1px solid var(--line); padding-block: 14px 26px; font-size: .86rem; color: var(--muted) }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px }
footer a, footer button { color: var(--muted); background: none; border: 0; padding: 6px 0; font: inherit; text-decoration: underline; cursor: pointer }
.stack { display: flex; flex-direction: column; gap: 12px } .stack.lg { gap: 24px }
.muted { color: var(--muted) } .small { font-size: .88rem }
.eyebrow { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted) }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 20px; border-radius: 10px; border: 2px solid var(--green); background: var(--surface); color: var(--green); font-weight: 700; cursor: pointer; text-decoration: none }
.btn.primary { background: var(--green); color: var(--green-ink) }
.btn.quiet { border-color: transparent; background: transparent; text-decoration: underline; padding-inline: 6px }
.btn.danger { border-color: var(--alert); color: var(--alert) }
.btn.tight { min-height: 44px; padding: 6px 12px; font-size: .9rem }
.btn:disabled { opacity: .5; cursor: not-allowed }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center } .row.between { justify-content: space-between }
.choice { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer }
.choice[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft) }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; background: var(--surface) }
.choice[aria-pressed="true"] .tick { border: 7px solid var(--green) }
.choice > div { min-width: 0 }
label.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; min-width: 0 }
.hint { font-weight: 400; font-size: .88rem; color: var(--muted) }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; min-height: 50px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400 }
textarea { resize: vertical; min-height: 90px }
.err { color: var(--alert); font-weight: 700; font-size: .92rem }
.steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--sunken) } .notice.warn { background: var(--alert-soft) } .notice.good { background: var(--ok-soft) }
.count { display: flex; align-items: center; gap: 16px } .count output { font: 700 1.6rem var(--display); min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums }
.stepbtn { width: 50px; height: 50px; border-radius: 10px; border: 2px solid var(--green); background: var(--surface); color: var(--green); font: 700 1.5rem/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none }
.stepbtn:disabled { opacity: .35; cursor: not-allowed; border-color: var(--line); color: var(--muted) }
.stepbtn.plus { background: var(--green); color: var(--green-ink) } .stepbtn.plus:disabled { background: var(--surface); color: var(--muted) }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { min-height: 44px; padding: 6px 14px; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: .9rem; cursor: pointer }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink) }
.aisle { display: flex; flex-direction: column }
.aisle-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 3px solid var(--navy) }
.tally { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; padding: 1px 10px; border-radius: 4px; background: var(--sunken) }
.tally.full { background: var(--flag); color: var(--flag-ink) } .tally.over { background: var(--alert); color: var(--surface) }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line) }
.item.has { background: var(--green-soft); margin-inline: -8px; padding-inline: 8px; border-radius: 6px }
.item-name { font-weight: 700 } .item > div:first-child { min-width: 0 }
.tags { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .8rem; color: var(--muted) }
.qty { display: flex; align-items: center; gap: 8px; flex: none } .qty b { min-width: 1.5ch; text-align: center; font: 700 1.2rem var(--display); font-variant-numeric: tabular-nums }
.tallybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--surface); border-top: 3px solid var(--navy); padding-bottom: env(safe-area-inset-bottom, 0px) }
.tallybar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap }
.ticket { background: var(--surface); border: 2px dashed var(--line); border-radius: 4px; padding: 18px }
.ticket-code { font: 700 1.5rem var(--display); letter-spacing: .04em; color: var(--heading) }
.ticket ul { list-style: none; margin: 0; padding: 0 } .ticket li { display: flex; gap: 10px; padding-block: 4px; border-bottom: 1px dotted var(--line) } .ticket li b { min-width: 2.2ch; font-variant-numeric: tabular-nums }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 3px solid var(--navy) }
.tabs button { min-height: 46px; padding: 8px 14px; border: 0; background: transparent; font-weight: 700; cursor: pointer; border-radius: 6px 6px 0 0 }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--ground) }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; min-width: 0 } .stats b { display: block; font: 700 1.5rem var(--display); font-variant-numeric: tabular-nums; color: var(--heading) }
.status { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: .82rem; font-weight: 700; background: var(--sunken) }
.status.new { background: var(--flag); color: var(--flag-ink) } .status.packing, .status.ready { background: var(--green-soft) } .status.done { background: var(--ok-soft); color: var(--ok) } .status.canceled { background: var(--alert-soft); color: var(--alert) }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.invrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 72px; gap: 8px; align-items: end }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; cursor: pointer } .check input { width: 22px; height: 22px; accent-color: var(--green); flex: none }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 9; background: var(--navy); color: var(--ground); padding: 10px 18px; border-radius: 24px; font-weight: 700; font-size: .92rem; max-width: 90vw; text-align: center }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden }
@media (max-width: 460px) { .invrow { grid-template-columns: minmax(0, 1fr) 72px } .invrow > :first-child { grid-column: 1 / -1 } }
@media (prefers-reduced-motion: no-preference) { .stepbtn:active:not(:disabled), .btn:active:not(:disabled) { transform: translateY(1px) } }
