@font-face { font-family: 'Mohave'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/mohave-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mohave'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/mohave-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Digits only (0–9) from Barlow Condensed (SIL OFL): Mohave's slashed 0 is easy to misread as 8. */
@font-face { font-family: 'HSR Digits'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlowc-digits-400.woff2) format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'HSR Digits'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlowc-digits-500.woff2) format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'HSR Digits'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlowc-digits-600.woff2) format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'HSR Digits'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlowc-digits-700.woff2) format('woff2'); unicode-range: U+0030-0039; }

:root {
	--bg: #F4F1EC;
	--surface: #FFFFFF;
	--surface-2: #EFEBE5;
	--input-line: #BFBAB2;
	--on-ink: #FFFFFF;
	--ink: #17161A;
	--ink-2: #45434B;
	--muted: #6B6872;
	--line: #E2DED7;
	--brand: #B8202C;        /* HúsSpecialista red, darkened for text contrast on white */
	--brand-bright: #CE2A36;
	--brand-tint: #FBECEC;
	--ok: #1E7A3C;
	--ok-tint: #E6F4EA;
	--warn: #8A5A00;
	--warn-tint: #FFF4D6;
	--bad: #B3261E;
	--bad-tint: #FDECEA;
	--black: #000000;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	--head: 'HSR Digits', 'Mohave', 'Arial Narrow', sans-serif;
	--body: 'HSR Digits', 'Mohave', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 19px; color-scheme: light; }
body.hsr { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.05rem; line-height: 1.4; letter-spacing: .01em; }
.hsr h1, .hsr h2, .hsr h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
.hsr h1 { font-size: 2rem; }
.hsr h2 { font-size: 1.55rem; }
.hsr h3 { font-size: 1.25rem; }
.hsr p { margin: 0 0 .8em; }
.hsr a { color: var(--brand); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #1A5FD0; outline-offset: 2px; }

/* top bar */
.topbar { background: var(--black); color: #fff; display: flex; align-items: center; gap: 12px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 20; }
.topbar img { display: block; }
.topbar-title { font-family: var(--head); text-transform: uppercase; font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; flex: 1; }
.topbar-account { font-size: .9rem; text-align: right; }
.topbar-account button { background: none; border: 1px solid #555; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: .9rem; min-height: 40px; cursor: pointer; }
.testbar { background: #FFD43B; color: #1c1b20; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; letter-spacing: .04em; }

.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 120px; }
.wrap.wide { max-width: 1100px; }
.loading { color: var(--muted); text-align: center; padding: 40px 0; }

/* cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; margin-bottom: 16px; }
.card.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: .92rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font-family: var(--head); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background .15s, transform .1s; }
.btn:hover { background: #9C1A25; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.small { min-height: 46px; font-size: 1.05rem; padding: 8px 18px; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btnrow > * { flex: 1 1 200px; }

/* forms */
label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.input, textarea.input { width: 100%; min-height: 56px; border: 2px solid var(--input-line); border-radius: 12px; padding: 12px 14px; font-size: 1.15rem; font-family: var(--body); background: var(--surface); color: var(--ink); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(26,95,208,.25); }
.input.code { font-size: 2rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.help { display: block; font-size: .92rem; color: var(--muted); margin-top: 6px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.pw { position: relative; }
.pw .input { padding-right: 96px; }
.pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 80px; border: 0; background: var(--surface-2); border-radius: 10px; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
label.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; cursor: pointer; line-height: 1.4; }
label.check input { width: 26px; height: 26px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-weight: 600; }
.alert.error { background: var(--bad-tint); color: var(--bad); }
.alert.info { background: var(--warn-tint); color: var(--warn); }
.alert.ok { background: var(--ok-tint); color: var(--ok); }

/* steps */
.steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.done { background: var(--brand); }
.stepnote { font-size: .95rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* choices (store / day) */
.choices { display: grid; gap: 12px; }
.choice { display: block; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 18px; cursor: pointer; font: inherit; color: inherit; min-height: 72px; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--ink-2); }
.choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice[disabled] { opacity: .5; cursor: not-allowed; background: #F0EDE8; }
.choice strong { display: block; font-family: var(--head); text-transform: uppercase; font-size: 1.35rem; font-weight: 600; }
.choice span { color: var(--ink-2); }
.days { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.days .choice { text-align: center; }
.days .choice strong { font-size: 1.5rem; }
.grouplabel { font-family: var(--head); text-transform: uppercase; font-size: 1.05rem; color: var(--muted); margin: 18px 0 8px; letter-spacing: .04em; }

/* products */
.product { display: grid; grid-template-columns: 88px 1fr; gap: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.product.selected { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.product img, .product .noimg { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.product h3 { font-size: 1.3rem; margin-bottom: 2px; }
.product .desc { font-size: .95rem; color: var(--ink-2); margin-bottom: 6px; }
.product .price { font-weight: 700; }
.stepper { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.stepper .qty { font-size: 1.45rem; font-weight: 700; min-width: 96px; text-align: center; }
.stepper button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); touch-action: manipulation; }
.stepper button.plus { background: var(--ink); color: var(--on-ink); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper .sub { font-size: .9rem; color: var(--muted); text-align: right; flex: 1; }

/* sticky bottom bar */
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; }
.bottombar .inner { max-width: 608px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.bottombar .sum { flex: 1; line-height: 1.25; }
.bottombar .sum b { font-size: 1.25rem; display: block; }
.bottombar .btn { min-width: 150px; }

/* summary lists */
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td.q { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.lines tr.total td { border-bottom: 0; font-weight: 700; padding-top: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* order cards */
.order { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.order-head h3 { margin: 0; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pill.confirmed { background: var(--warn-tint); color: var(--warn); }
.pill.picked_up { background: var(--ok-tint); color: var(--ok); }
.pill.cancelled { background: #ECEAE6; color: var(--muted); }
.order .qr { display: flex; justify-content: center; margin: 12px 0; }
.order .qr svg { width: 220px; height: 220px; max-width: 100%; }
.order .code { text-align: center; font-family: var(--head); font-size: 1.6rem; letter-spacing: .25em; font-weight: 600; }

/* fullscreen QR */
.qrfull { position: fixed; inset: 0; background: var(--surface); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.qrfull svg { width: min(86vw, 420px); height: auto; }
.qrfull .code { font-family: var(--head); font-size: 2.2rem; letter-spacing: .25em; margin: 12px 0; }

.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; }
.howto li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-family: var(--head); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }

/* ---------------- shop ---------------- */
.hsr-shop .topbar-title { font-size: 1.25rem; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { flex: 1 1 140px; min-height: 56px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); font-family: var(--head); text-transform: uppercase; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.storebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.storebar select, .storebar .input { min-height: 52px; font-size: 1.1rem; width: auto; flex: 1 1 200px; }
.scanbox { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-height: 60vh; margin: 0 auto 14px; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox .frame { position: absolute; inset: 18%; border: 4px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanhint { text-align: center; color: var(--muted); margin-bottom: 14px; }
.results { display: grid; gap: 10px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 64px; width: 100%; }
.result:hover { border-color: var(--ink-2); }
.result b { font-size: 1.15rem; }
.handover { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.banner { padding: 18px 20px; font-family: var(--head); text-transform: uppercase; font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.banner.ok { background: var(--ok); color: #fff; }
.banner.warn { background: #F2B705; color: #1c1b20; }
.banner.bad { background: var(--bad); color: #fff; }
.banner.done { background: #3D3B42; color: #fff; }
.banner small { display: block; font-family: var(--body); text-transform: none; font-size: 1rem; font-weight: 600; margin-top: 6px; }
.handover .body { padding: 18px 20px 22px; }
.handover .who { font-size: 1.35rem; font-weight: 700; }
.handover .lines td { font-size: 1.3rem; padding: 12px 0; }
.handover .lines td.q { font-size: 1.45rem; }
.bigok { min-height: 76px; font-size: 1.8rem; }
.daylist .result .meta { color: var(--muted); font-size: .95rem; }
.prep { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prep th, .prep td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 1.1rem; }
.prep th { background: var(--surface-2); font-family: var(--head); text-transform: uppercase; font-size: 1rem; }
.prep td.n { text-align: right; font-weight: 700; white-space: nowrap; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.counter { background: var(--surface); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.counter b { display: block; font-size: 1.8rem; font-family: var(--head); }

@media (min-width: 768px) {
	.wrap { padding-top: 32px; }
	.hsr h1 { font-size: 2.5rem; }
	.product { grid-template-columns: 110px 1fr auto; align-items: center; }
	.product img, .product .noimg { width: 110px; height: 110px; }
	.stepper { grid-column: auto; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; }
	.stepper .controls { display: flex; align-items: center; gap: 8px; }
	.stepper .sub { text-align: right; }
}
@media (max-width: 767px) {
	.stepper .controls { display: flex; align-items: center; gap: 8px; }
}
@media print {
	.topbar, .tabs, .storebar, .testbar, .noprint { display: none !important; }
	body.hsr { background: var(--surface); }
	.prep { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.nw{white-space:nowrap}

/* Headings get focus after a screen change (for screen readers); no visible frame needed. */
[tabindex="-1"]:focus { outline: none; }

/* Last name + first name side by side when there is room */
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 360px) { .row2 { grid-template-columns: 1fr 1fr; } }
.row2 .input { min-width: 0; }

/* Phone: country picker + number */
.field > label { display: block; font-weight: 600; margin-bottom: 6px; }
.phone { display: flex; gap: 8px; }
.phone .input { flex: 1; min-width: 0; }
.cc { position: relative; flex: 0 0 auto; }
.cc-show { display: flex; align-items: center; gap: 6px; height: 100%; min-height: 56px; padding: 0 30px 0 12px; border: 2px solid var(--input-line); border-radius: 12px; background: var(--surface); font-size: 1.05rem; font-weight: 600; white-space: nowrap; position: relative; }
.cc-show::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); }
.cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.cc select:focus-visible + .cc-show, .cc:focus-within .cc-show { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,95,208,.25); }
div.field { display: block; margin-bottom: 18px; }

/* Shop: scan button in thumb reach */
.scanbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg, #F3F0EA) 75%, rgba(243,240,234,0)); }
.scanbar .btn { max-width: 1068px; margin: 0 auto; display: block; min-height: 68px; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
body.has-scanbar { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.result .rmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result .meta { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.result .meta.when { color: var(--ink); font-weight: 600; margin-top: 4px; }
@media print { .scanbar { display: none; } body.has-scanbar { padding-bottom: 0; } }
.result:has(.rtop) { display: block; }
.result .rmain { width: 100%; }
.result .rtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.result .rtop .pill { flex: 0 0 auto; }

/* Shop: which store am I in – two big buttons */
.storepick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.storepick button { min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--input-line); background: var(--surface); color: var(--ink); font: 600 1rem/1.25 var(--body); cursor: pointer; }
.storepick button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ================= Shop v0.3: rush-hour layout ================= */
.hsr-shop .wrap { padding-left: 16px; padding-right: 16px; }
.hsr-shop .topbar-account a { color: #fff; }
.netbar { position: sticky; top: 0; z-index: 50; background: var(--bad); color: #fff; padding: 12px 16px; font-weight: 600; text-align: center; }

/* store of the day */
.pickstore { display: grid; gap: 16px; padding-top: 8px; }
.pickstore h1 { margin: 0; }
.pickstore p { margin: 0 0 4px; color: var(--muted); }
.btn.huge { min-height: 96px; font-size: 1.7rem; border-radius: 18px; text-transform: none; }
.hereline { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 10px; font-size: 1rem; }
.hereline .linkbtn { padding: 10px 0 10px 8px; }

/* tabs: 2×2 on phones, one row from tablet */
.tabs.tabs4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tabs.tabs4 button { min-height: 60px; }
@media (min-width: 700px) { .tabs.tabs4 { grid-template-columns: repeat(4, 1fr); } }

/* colours that mean something: green = go, amber = careful, red = stop/delete */
.btn.warn { background: #F2B705; border-color: #F2B705; color: #1c1b20; }
.btn.warn:hover { background: #DCA604; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-ghost { background: var(--surface); border-color: var(--bad); color: var(--bad); }
.btn.danger-ghost:hover { background: var(--bad-tint); }
.btn.ok:hover { filter: brightness(.92); }
.bigok { min-height: 84px; font-size: 1.9rem; margin: 6px 0 12px; }
.handover .body > .btn.dark.block { margin-top: 4px; }
.actions3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 12px; }
.actions3 .btn { padding: 10px 12px; font-size: 1.15rem; min-height: 60px; }
.hint { background: var(--warn-tint); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 10px; }
.alert.warn { background: var(--warn-tint); color: var(--warn); }
.pill.no_show { background: #FBE7C6; color: #7A4B00; }
.pill.away { background: var(--bad-tint); color: var(--bad); }

/* segmented choice (store, source) */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.seg button { min-height: 60px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--input-line); background: var(--surface); color: var(--ink); font: 600 1.05rem/1.25 var(--body); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.card h3 { font-family: var(--head); text-transform: uppercase; font-size: 1.15rem; margin: 18px 0 8px; }

/* product steppers */
.plist { display: grid; gap: 8px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 14px; background: var(--surface); }
.prow.on { border-color: var(--ok); background: var(--ok-tint); }
.pinfo { min-width: 0; }
.pinfo b { display: block; }
.pinfo span { color: var(--muted); font-size: .95rem; }
.pctl { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pctl output { min-width: 64px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.stepbtn { width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); touch-action: manipulation; }
.stepbtn[disabled] { opacity: .3; cursor: default; }
.sum { font-size: 1.15rem; margin: 14px 0; }
.btn2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.reasons { display: grid; gap: 10px; margin-bottom: 14px; }
.reasons .btn { min-height: 64px; text-transform: none; font-size: 1.3rem; }
.picked { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border: 2px solid var(--ok); background: var(--ok-tint); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.bigcode { font-family: var(--head); font-size: 3.4rem; letter-spacing: .12em; text-align: center; margin: 4px 0 14px; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,24,.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-back { align-items: center; } }
.modal { background: var(--surface); border-radius: 18px; padding: 22px 20px; width: 100%; max-width: 520px; max-height: 85dvh; overflow: auto; }
.modal h2 { margin: 0 0 10px; font-size: 1.6rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 16px; }
.modal-actions .btn { min-height: 64px; text-transform: none; font-size: 1.3rem; }

/* printed backup list */
#printarea { display: none; }
@media print {
	body.printing-list > *:not(#printarea) { display: none !important; }
	body.printing-list #printarea { display: block; font: 11pt/1.35 Arial, sans-serif; color: #000; }
	#printarea h1 { font-size: 16pt; margin: 0 0 4pt; }
	#printarea table { width: 100%; border-collapse: collapse; }
	#printarea th, #printarea td { border: 1px solid #999; padding: 4pt 6pt; vertical-align: top; text-align: left; }
	#printarea tr { page-break-inside: avoid; }
	#printarea td.box { font-size: 16pt; text-align: center; width: 40pt; }
}
.btn.neutral { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn.neutral:hover { background: var(--surface-2); }
.hsr-shop .btn.ghost { border-color: var(--ink); color: var(--ink); }
.hsr-shop .btn.ghost:hover { background: var(--surface-2); }
.plist { grid-template-columns: minmax(0, 1fr); }
.prow { min-width: 0; padding: 10px 8px 10px 12px; }
.pinfo { flex: 1 1 auto; overflow-wrap: anywhere; }
.pctl { gap: 4px; }
.pctl output { min-width: 56px; }
.stepbtn { width: 48px; height: 48px; }
@media (min-width: 700px) { .stepbtn { width: 56px; height: 56px; } .pctl output { min-width: 72px; } }
#nf-new { margin-top: 12px; }
#nf-find .btn { margin-top: 0; }

/* ================= Shop v0.3.1: calmer layout, one spacing rhythm (8 / 16 / 24) ================= */
.hsr-shop .wrap { padding-top: 16px; }
.hereline { margin: 0 0 12px; gap: 4px 12px; font-size: .95rem; color: var(--muted); }
.hereline b { color: var(--ink); }
.hereline .linkbtn { font-size: .95rem; padding: 10px 0; }

/* main navigation: light segmented control, selected = dark */
.tabs.tabs4 { gap: 8px; margin: 0 0 24px; }
.tabs.tabs4 button { min-height: 52px; border-width: 1.5px; border-color: var(--input-line); font-size: 1.1rem; }
.tabs.tabs4 button[aria-selected="true"] { border-color: var(--ink); }

/* day picker */
.hsr-shop .storebar { margin: 0 0 16px; gap: 12px; flex-wrap: nowrap; }
.hsr-shop .storebar label { flex: 0 0 auto; }
.hsr-shop .storebar select { flex: 1 1 auto; min-width: 0; }

/* counters are the filters */
.counters { gap: 8px; margin: 0 0 16px; }
button.counter { display: block; width: 100%; text-align: left; border: 1.5px solid transparent; background: var(--surface); color: var(--ink); font: 500 1rem/1.3 var(--body); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; min-height: 76px; touch-action: manipulation; }
button.counter b { font-size: 1.9rem; line-height: 1.1; }
button.counter[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.daylist { gap: 8px; }
.daylist .result { border-width: 1.5px; padding: 14px 16px; }
.result .meta.when { margin-top: 6px; }
.empty { text-align: center; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 24px 16px; margin: 0; }
.printbtn { margin-top: 24px; min-height: 52px; font-size: 1.1rem; }
.hsr-shop .card h2, .hsr-shop h2 { margin-top: 0; }
.hereline { flex-wrap: nowrap; }
.hereline span { min-width: 0; }
.hereline .linkbtn { flex: 0 0 auto; }
.printbtn { border-radius: 12px; }




/* ================= Order flow v0.4 ================= */
/* one option per row, with a radio mark; selecting never jumps ahead */
.choices.list { grid-template-columns: 1fr; gap: 10px; }
.choice { position: relative; padding-left: 58px; }
.choice .tick { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--input-line); background: var(--surface); }
.choice[aria-pressed="true"] .tick { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 6px, var(--surface) 7px); }
.choice[disabled] { background: var(--surface-2); }
.choice.dayrow { min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
.choice.dayrow strong { font-size: 1.45rem; }
.choice > span:not(.tick) { display: block; }
main:has(.bottombar) { padding-bottom: 130px; }
.bottombar .inner > span:empty { flex: 1; }
.bottombar .btn { min-width: 170px; }

/* "can't find it" hint after the product list */
.nextstep-hint { border: 2px dashed var(--input-line); box-shadow: none; background: transparent; }
.nextstep-hint p { margin: 4px 0 0; color: var(--ink-2); }
textarea.input.big { min-height: 160px; font-size: 1.1rem; line-height: 1.4; }

/* summary: separate tiles */
.card.tile { padding-top: 18px; }
.tile-title { font-family: var(--head); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; color: var(--muted); margin: 0 0 12px; }
.card.tile .kv { grid-template-columns: 96px 1fr; gap: 10px 14px; }
.card.tile .kv dd { overflow-wrap: anywhere; }
.extra { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.extra p { margin: 4px 0 0; }

/* header: greeting + "Fiókom" */
.topbar-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.topbar-account button { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; min-height: 44px; padding: 8px 16px; border-color: #777; }
.topbar-account .ico { width: 18px; height: 18px; border-radius: 50%; position: relative; border: 2px solid #fff; border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; box-sizing: border-box; }
.topbar-account .ico::before { content: ""; position: absolute; left: 50%; top: -7px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; transform: translateX(-50%); }
.result .meta.note { color: var(--warn); font-weight: 600; }

.topbar-account .ico { width: 20px; height: 20px; border: 0; border-radius: 0; flex: 0 0 auto; }
.topbar-account .ico::before { content: none; }
.neworder { text-align: center; margin: 28px 0 8px; }
.neworder .btn { min-height: 56px; }

/* ================= Alignment & spacing pass ================= */
/* Mohave caps sit ~0.08em above the line-box centre: trim to cap height so labels are truly centred. */
.btn, .pill, .tabs button, .seg button, .storepick button, .stepper .qty, .pctl output,
.topbar-account button, .linkbtn, .choice strong, button.counter b, .reasons .btn, .modal-actions .btn {
	text-box: trim-both cap alphabetic;
}
@supports not (text-box: trim-both cap alphabetic) {
	.btn, .tabs button, .seg button, .storepick button, .topbar-account button { padding-top: calc(12px + .08em); padding-bottom: calc(12px - .08em); }
	.pill { padding-top: calc(4px + .08em); padding-bottom: calc(4px - .08em); }
}
.btn { line-height: 1; }
.pill { padding: 7px 12px; line-height: 1; }

/* icon buttons: perfectly centred */
.stepper button, .stepbtn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.stepper button svg, .stepbtn svg { display: block; flex: 0 0 auto; }
.stepper .qty { display: flex; align-items: center; justify-content: center; min-height: 56px; }
.pctl output { display: flex; align-items: center; justify-content: center; min-height: 48px; }

/* order card rhythm (8 / 12 / 16) */
.order-head { margin-bottom: 14px; align-items: center; }
.order-head h3 { margin-bottom: 4px; }
.order .code { margin: 8px 0 12px; }
.order .lines { margin-bottom: 16px; }
.order > .small.muted { margin: 0 0 16px; }
.order .btnrow { margin-top: 12px; gap: 10px; }
.order .help { margin: 14px 0 0; }
.order .btn.block + .btnrow { margin-top: 12px; }

/* summary tiles */
.card.tile .kv { margin-bottom: 16px; }
.card.tile .lines { margin-bottom: 12px; }
.card.tile .help { margin: 12px 0; }
.card.tile .linkbtn { padding: 12px 0 4px; }
.card + .btn.block { margin-top: 8px; }
.btn.block + .btnrow { margin-top: 12px; }

/* product list */
.product h3 { margin: 0 0 4px; }
.product .desc { margin: 0 0 8px; }
.nextstep-hint { margin-top: 8px; }
.alert { line-height: 1.35; }
.muted + .linkbtn, p.muted > .linkbtn { margin-left: 4px; }

/* forms */
label.field > span, .field > label { margin-bottom: 8px; }
.help { margin-top: 8px; }
.btnrow { margin-top: 20px; }
.card > h2:first-child, .card > .tile-title:first-child { margin-top: 0; }
.card h2 { margin: 0 0 14px; }
.card > form > .btn.block { margin-top: 8px; }
label.check { margin: 4px 0 20px; }

/* shop */
.handover .lines { margin-bottom: 16px; }
.handover .alert { margin: 12px 0; }
.actions3 { margin: 4px 0 12px; }
.handover .body > .btn.dark.block { margin-top: 8px; }
.hereline { margin-bottom: 14px; }
.result .rtop { margin-bottom: 4px; }
.order-head { align-items: flex-start; } .order-head .pill { margin-top: 2px; flex: 0 0 auto; }
.choice strong { text-box: normal; margin-bottom: 4px; line-height: 1.15; }
.choice > span:not(.tick) { line-height: 1.35; }
.choice { padding-top: 16px; padding-bottom: 16px; }
.howto li::before { line-height: 1; text-box: trim-both cap alphabetic; }
.howto li { align-items: start; } .howto li::before { margin-top: -2px; }

/* ================= One alignment: everything starts on the left ================= */
.hsr-app .card.center { text-align: left; }
.hsr-app .btnrow { justify-content: flex-start; }
.hsr-app .btnrow > .linkbtn { flex: 0 0 auto; text-align: left; padding-left: 0; }
.hsr-app .neworder { text-align: left; }
.hsr-app .order .code { text-align: left; letter-spacing: .2em; }
.hsr-app .help.center, .hsr-app p.center { text-align: left; }

/* bottom bar: info line + [Vissza | main action], aligned with the content column */
.bottombar .inner { display: block; max-width: 608px; }
.bottombar .barinfo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.bottombar .barinfo b { font-size: 1.25rem; }
.bottombar .navbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.bottombar .navbtns .btn { min-width: 0; width: 100%; }
.hsr-app .bottombar .btn.ghost { border-color: var(--ink); color: var(--ink); }
main:has(.bottombar) { padding-bottom: 150px; }
.hsr-app .success-mark { margin: 0 0 12px; }
.hsr-app .order .qr { justify-content: flex-start; }
.hsr-app p.muted > .linkbtn { padding: 0; margin-left: 6px; min-height: 0; vertical-align: baseline; }
.inote { grid-column: 1 / -1; display: block; margin-top: 4px; }
.inote span { display: block; font-size: .95rem; color: var(--ink-2); margin-bottom: 6px; }
.inote .input { min-height: 48px; font-size: 1rem; }
.inote-line { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.prow { flex-wrap: wrap; } .prow .pnote { flex: 1 0 100%; min-height: 44px; font-size: 1rem; margin-top: 4px; }
/* labels that wrap to two lines keep their breathing room */
.btn { line-height: 1.1; }
.btn.bigok { padding-top: 18px; padding-bottom: 18px; line-height: 1.15; }

/* order number ("#53") – the shop's main handle for an order */
.ordno { font-family: var(--head); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: .01em; color: var(--ink); flex: 0 0 auto; }
.whorow { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.whorow .who { min-width: 0; overflow-wrap: anywhere; }
.result .no { font-family: var(--head); font-size: 1.3rem; margin-right: 4px; }

/* hand-over: what to collect */
.paybox { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; display: grid; gap: 6px; }
.paybox div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.paybox span { color: var(--ink-2); }
.paybox .topay { border-top: 1px solid var(--line); padding-top: 8px; }
.paybox .topay span { color: var(--ink); font-weight: 700; }
.paybox .topay b { font-family: var(--head); font-size: 1.9rem; }

/* packing (the evening before) */
.packhead h2 { margin-bottom: 4px; }
.printhelp { margin: 10px 0 18px; }
.dymobox { display: grid; gap: 10px; margin: 12px 0 18px; }
.dymobox .printhelp { margin: 0; }
.dymobox ol { margin: 6px 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
.dymobox a.btn { text-decoration: none; text-align: center; }
.printhelp summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pack { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
.pack.done { border-color: var(--ok); }
.pk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.pk-name { font-size: 1.3rem; overflow-wrap: anywhere; }
.pk-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.pk-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pk-lines li em { display: block; font-style: normal; font-weight: 700; color: var(--brand); }
.pk-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pk-form .field { margin: 0; }
.pk-form .input { font-size: 1.4rem; font-weight: 700; }
.flabel { display: block; font-weight: 600; margin-bottom: 6px; }
.pk-steps { display: flex; align-items: center; gap: 6px; }
.pk-steps output { min-width: 2ch; text-align: center; font-size: 1.4rem; font-weight: 700; }
.pk-steps .stepbtn { width: 52px; height: 56px; font-size: 1.6rem; }
.pk-preview { margin: 14px 0 12px; display: flex; justify-content: center; }
.pk-preview .lbl { border: 1px dashed var(--input-line); border-radius: 6px; box-shadow: var(--shadow); }
.pack .btn2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.pack .btn2 .btn { min-height: 56px; }
.pack .btn2 .btn.saved { border-color: var(--line); color: var(--muted); opacity: 1; }
/* Desktop: order on the left, price / bags / label / buttons on the right. */
@media (min-width: 900px) {
	.pack { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px 28px; align-items: start; padding: 18px 20px; }
	.pk-left .pk-lines { margin-bottom: 8px; }
	.pk-right { position: sticky; top: 12px; }
	/* The label preview fills the right column: the real 57 × 32 mm label, scaled up. */
	.pk-right .pk-preview { margin: 14px 0; }
	.pack .btn2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) { .wrap.wide:has(.pack) { max-width: 1280px; } .pack { grid-template-columns: minmax(0, 1fr) 420px; } }

/* the 57 × 32 mm DYMO label (screen preview and print) */
.lbl { width: 57mm; height: 32mm; padding: 2mm 2.6mm; box-sizing: border-box; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; line-height: 1.1; }
.lbl .l-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2mm; }
.lbl .l-no { font-size: 19pt; font-weight: 800; line-height: .95; }
.lbl .l-meta { font-size: 7pt; text-align: right; display: grid; gap: .6mm; }
.lbl .l-meta b { font-size: 10pt; }
.lbl .l-name { font-size: 13pt; font-weight: 800; letter-spacing: .02em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.lbl .l-name.long { font-size: 10.5pt; }
.lbl .l-mid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .5mm; padding: .6mm 0; }
.lbl .l-contact { font-size: 6.5pt; line-height: 1.15; display: grid; }
.lbl .l-contact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl .l-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2mm; }
.lbl .l-code { font-size: 6.5pt; letter-spacing: .08em; }
.lbl .l-sum { font-size: 11pt; font-weight: 800; text-align: right; white-space: nowrap; }
.lbl .l-sum small { display: block; font-size: 6pt; font-weight: 400; }
#labelarea { display: none; }
@media print {
	body.printing-labels { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	body.printing-labels > *:not(#labelarea) { display: none !important; }
	body.printing-labels #labelarea { display: block; }
	body.printing-labels #labelarea .lbl { break-after: page; page-break-after: always; border: 0; box-shadow: none; }
	body.printing-labels #labelarea .lbl:last-child { break-after: auto; page-break-after: auto; }
}

.pill.packed { background: #E3ECF7; color: #1F4E8C; }
.packprog { font-size: 1.15rem; margin: 4px 0 2px; }
.packprog.small { font-size: 1rem; margin: 10px 0 0; }

/* Packing tab: one summary panel (day, progress, label file, backup list). */
.packpanel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0 22px; }
.packpanel.solo { padding: 0; border: 0; background: none; }
.pp-head { display: grid; gap: 14px; }
.pp-head h2 { margin: 0 0 4px; }
.pp-desc { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.45; }
.pp-prog { display: grid; gap: 6px; }
.pp-num { font-size: 1.05rem; }
.pp-num b { font-family: var(--head); font-size: 1.6rem; margin-right: 4px; }
.pp-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pp-bar span { display: block; height: 100%; background: var(--warn); border-radius: inherit; transition: width .3s; }
.pp-prog.done .pp-bar span { background: var(--ok); }
.pp-note { font-size: .95rem; color: var(--muted); }
.pp-prog.done .pp-note { color: var(--ok); font-weight: 700; }
.pp-actions { display: grid; gap: 14px; margin-top: 18px; }
.pp-act { display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 16px; }
.packpanel.solo .pp-act { background: var(--surface); border: 2px solid var(--line); }
.pp-act h3 { margin: 0; font-family: var(--head); text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; }
.pp-act .btn { text-decoration: none; }
.pp-act .alert { margin: 0; }
.pp-act .printhelp { margin: 0; }
.pp-act ol { margin: 6px 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
@media (min-width: 900px) {
	.packpanel { padding: 22px 24px; }
	.pp-head { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
	.pp-actions { grid-template-columns: 1fr 1fr; gap: 18px; }
	.pp-actions.one { grid-template-columns: minmax(0, 560px); }
	.pp-act { align-items: flex-start; }
	.pp-act .btn { min-height: 52px; padding: 10px 24px; font-size: 1.15rem; }
	.pp-act .alert, .pp-act .printhelp { align-self: stretch; }
}
.pp-act .printhelp summary { gap: 8px; text-decoration: underline; text-underline-offset: 3px; }
.pp-act .printhelp summary::before { content: '▸'; display: inline-block; transition: transform .15s; text-decoration: none; }
.pp-act .printhelp[open] summary::before { transform: rotate(90deg); }
@media (max-width: 899px) {
	.packpanel { padding: 14px; }
	.pp-act { padding: 14px; }
	.pp-act .btn { font-size: 1.15rem; padding: 12px 14px; white-space: nowrap; }
}

/* Label preview fills its box at every width (scale set by fitLabels() in shop.js). */
.pk-preview { --lblscale: 1; height: calc(32mm * var(--lblscale)); justify-content: center; }
.pk-preview .lbl { flex: none; transform: scale(var(--lblscale)); transform-origin: top center; }
/* Packing state: a full-width strip at the top of each card. */
.pk-state { margin: -14px -14px 12px; padding: 10px 14px; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.pk-state span { margin-right: 4px; }
.pk-state.ok { background: var(--ok-tint); color: var(--ok); }
.pk-state.todo { background: var(--warn-tint); color: var(--warn); }
.pack.todo { border-color: #E9C46A; }
.packfilter { margin: 0 0 14px; }
@media (min-width: 900px) {
	.pk-state { grid-column: 1 / -1; margin: -18px -20px 6px; padding: 10px 20px; }
}
/* Tablet: the two-column card already from 720 px, so the label preview stays a sensible size. */
@media (min-width: 720px) and (max-width: 899px) {
	.pack { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 8px 20px; align-items: start; padding: 16px; }
	.pk-state { grid-column: 1 / -1; margin: -16px -16px 6px; padding: 10px 16px; }
	.pk-right { position: sticky; top: 12px; }
	.pk-right .pk-preview { margin: 14px 0; }
	.pack .btn2 { grid-template-columns: 1fr 1fr; }
	.pk-form { grid-template-columns: minmax(0, 1fr) auto; }
}

.handover .topack { margin: 0 0 10px; }
.pack.flash { box-shadow: 0 0 0 4px var(--brand); transition: box-shadow 1.2s; }
@media (prefers-reduced-motion: reduce) { .pack.flash { transition: none; } }

/* Colour-coded counters (day list: 4, packing: 3): tinted when idle, solid when chosen. */
.counters.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .counters.four { grid-template-columns: repeat(4, 1fr); } }
button.counter.c-todo { background: var(--warn-tint); border-color: #E9C46A; }
button.counter.c-todo b { color: var(--warn); }
button.counter.c-packed { background: #E3ECF7; border-color: #A9C1E3; }
button.counter.c-packed b { color: #1F4E8C; }
button.counter.c-picked_up { background: var(--ok-tint); border-color: #9CCFAE; }
button.counter.c-picked_up b { color: var(--ok); }
button.counter.c-todo[aria-selected="true"] { background: var(--warn); border-color: var(--warn); color: #fff; }
button.counter.c-packed[aria-selected="true"] { background: #1F4E8C; border-color: #1F4E8C; color: #fff; }
button.counter.c-picked_up[aria-selected="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
button.counter[aria-selected="true"] b { color: inherit; }

.pk-save { display: grid; }
.pk-save .btn { min-height: 56px; width: 100%; }
.pk-save .btn.saved { border-color: var(--line); color: var(--muted); opacity: 1; }
/* Packing form: labels on one line, total field and bag buttons the same height. */
.pk-form { align-items: start; }
.pk-form label.field > span, .pk-form .flabel { display: block; margin: 0 0 8px; }
.pk-form .input { height: 60px; min-height: 60px; padding-top: 0; padding-bottom: 0; }
.pk-steps .stepbtn { height: 60px; width: 56px; }
.pk-steps output { line-height: 60px; }
.pk-form .input::placeholder { font-size: 1.05rem; font-weight: 600; }

/* ---------- Season showcase (intro) and photo product cards (v0.7.21) ---------- */
#main.wide { max-width: 1080px; }

.plist { display: grid; gap: 8px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 14px; background: var(--surface); }
.prow.on { border-color: var(--ok); background: var(--ok-tint); }
.pinfo { min-width: 0; }
.pinfo b { display: block; }
.pinfo span { color: var(--muted); font-size: .95rem; }
.pctl { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pctl output { min-width: 64px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.stepbtn { width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); touch-action: manipulation; }
.stepbtn[disabled] { opacity: .3; cursor: default; }
.sum { font-size: 1.15rem; margin: 14px 0; }
.btn2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.reasons { display: grid; gap: 10px; margin-bottom: 14px; }
.reasons .btn { min-height: 64px; text-transform: none; font-size: 1.3rem; }
.picked { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border: 2px solid var(--ok); background: var(--ok-tint); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.bigcode { font-family: var(--head); font-size: 3.4rem; letter-spacing: .12em; text-align: center; margin: 4px 0 14px; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,24,.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-back { align-items: center; } }
.modal { background: var(--surface); border-radius: 18px; padding: 22px 20px; width: 100%; max-width: 520px; max-height: 85dvh; overflow: auto; }
.modal h2 { margin: 0 0 10px; font-size: 1.6rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 16px; }
.modal-actions .btn { min-height: 64px; text-transform: none; font-size: 1.3rem; }

/* printed backup list */
#printarea { display: none; }
@media print {
	body.printing-list > *:not(#printarea) { display: none !important; }
	body.printing-list #printarea { display: block; font: 11pt/1.35 Arial, sans-serif; color: #000; }
	#printarea h1 { font-size: 16pt; margin: 0 0 4pt; }
	#printarea table { width: 100%; border-collapse: collapse; }
	#printarea th, #printarea td { border: 1px solid #999; padding: 4pt 6pt; vertical-align: top; text-align: left; }
	#printarea tr { page-break-inside: avoid; }
	#printarea td.box { font-size: 16pt; text-align: center; width: 40pt; }
}
.btn.neutral { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn.neutral:hover { background: var(--surface-2); }
.hsr-shop .btn.ghost { border-color: var(--ink); color: var(--ink); }
.hsr-shop .btn.ghost:hover { background: var(--surface-2); }
.plist { grid-template-columns: minmax(0, 1fr); }
.prow { min-width: 0; padding: 10px 8px 10px 12px; }
.pinfo { flex: 1 1 auto; overflow-wrap: anywhere; }
.pctl { gap: 4px; }
.pctl output { min-width: 56px; }
.stepbtn { width: 48px; height: 48px; }
@media (min-width: 700px) { .stepbtn { width: 56px; height: 56px; } .pctl output { min-width: 72px; } }
#nf-new { margin-top: 12px; }
#nf-find .btn { margin-top: 0; }

/* ================= Shop v0.3.1: calmer layout, one spacing rhythm (8 / 16 / 24) ================= */
.hsr-shop .wrap { padding-top: 16px; }
.hereline { margin: 0 0 12px; gap: 4px 12px; font-size: .95rem; color: var(--muted); }
.hereline b { color: var(--ink); }
.hereline .linkbtn { font-size: .95rem; padding: 10px 0; }

/* main navigation: light segmented control, selected = dark */
.tabs.tabs4 { gap: 8px; margin: 0 0 24px; }
.tabs.tabs4 button { min-height: 52px; border-width: 1.5px; border-color: var(--input-line); font-size: 1.1rem; }
.tabs.tabs4 button[aria-selected="true"] { border-color: var(--ink); }

/* day picker */
.hsr-shop .storebar { margin: 0 0 16px; gap: 12px; flex-wrap: nowrap; }
.hsr-shop .storebar label { flex: 0 0 auto; }
.hsr-shop .storebar select { flex: 1 1 auto; min-width: 0; }

/* counters are the filters */
.counters { gap: 8px; margin: 0 0 16px; }
button.counter { display: block; width: 100%; text-align: left; border: 1.5px solid transparent; background: var(--surface); color: var(--ink); font: 500 1rem/1.3 var(--body); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; min-height: 76px; touch-action: manipulation; }
button.counter b { font-size: 1.9rem; line-height: 1.1; }
button.counter[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.daylist { gap: 8px; }
.daylist .result { border-width: 1.5px; padding: 14px 16px; }
.result .meta.when { margin-top: 6px; }
.empty { text-align: center; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 24px 16px; margin: 0; }
.printbtn { margin-top: 24px; min-height: 52px; font-size: 1.1rem; }
.hsr-shop .card h2, .hsr-shop h2 { margin-top: 0; }
.hereline { flex-wrap: nowrap; }
.hereline span { min-width: 0; }
.hereline .linkbtn { flex: 0 0 auto; }
.printbtn { border-radius: 12px; }




/* ================= Order flow v0.4 ================= */
/* one option per row, with a radio mark; selecting never jumps ahead */
.choices.list { grid-template-columns: 1fr; gap: 10px; }
.choice { position: relative; padding-left: 58px; }
.choice .tick { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--input-line); background: var(--surface); }
.choice[aria-pressed="true"] .tick { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 6px, var(--surface) 7px); }
.choice[disabled] { background: var(--surface-2); }
.choice.dayrow { min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
.choice.dayrow strong { font-size: 1.45rem; }
.choice > span:not(.tick) { display: block; }
main:has(.bottombar) { padding-bottom: 130px; }
.bottombar .inner > span:empty { flex: 1; }
.bottombar .btn { min-width: 170px; }

/* "can't find it" hint after the product list */
.nextstep-hint { border: 2px dashed var(--input-line); box-shadow: none; background: transparent; }
.nextstep-hint p { margin: 4px 0 0; color: var(--ink-2); }
textarea.input.big { min-height: 160px; font-size: 1.1rem; line-height: 1.4; }

/* summary: separate tiles */
.card.tile { padding-top: 18px; }
.tile-title { font-family: var(--head); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; color: var(--muted); margin: 0 0 12px; }
.card.tile .kv { grid-template-columns: 96px 1fr; gap: 10px 14px; }
.card.tile .kv dd { overflow-wrap: anywhere; }
.extra { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.extra p { margin: 4px 0 0; }

/* header: greeting + "Fiókom" */
.topbar-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.topbar-account button { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; min-height: 44px; padding: 8px 16px; border-color: #777; }
.topbar-account .ico { width: 18px; height: 18px; border-radius: 50%; position: relative; border: 2px solid #fff; border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; box-sizing: border-box; }
.topbar-account .ico::before { content: ""; position: absolute; left: 50%; top: -7px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; transform: translateX(-50%); }
.result .meta.note { color: var(--warn); font-weight: 600; }

.topbar-account .ico { width: 20px; height: 20px; border: 0; border-radius: 0; flex: 0 0 auto; }
.topbar-account .ico::before { content: none; }
.neworder { text-align: center; margin: 28px 0 8px; }
.neworder .btn { min-height: 56px; }

/* ================= Alignment & spacing pass ================= */
/* Mohave caps sit ~0.08em above the line-box centre: trim to cap height so labels are truly centred. */
.btn, .pill, .tabs button, .seg button, .storepick button, .stepper .qty, .pctl output,
.topbar-account button, .linkbtn, .choice strong, button.counter b, .reasons .btn, .modal-actions .btn {
	text-box: trim-both cap alphabetic;
}
@supports not (text-box: trim-both cap alphabetic) {
	.btn, .tabs button, .seg button, .storepick button, .topbar-account button { padding-top: calc(12px + .08em); padding-bottom: calc(12px - .08em); }
	.pill { padding-top: calc(4px + .08em); padding-bottom: calc(4px - .08em); }
}
.btn { line-height: 1; }
.pill { padding: 7px 12px; line-height: 1; }

/* icon buttons: perfectly centred */
.stepper button, .stepbtn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.stepper button svg, .stepbtn svg { display: block; flex: 0 0 auto; }
.stepper .qty { display: flex; align-items: center; justify-content: center; min-height: 56px; }
.pctl output { display: flex; align-items: center; justify-content: center; min-height: 48px; }

/* order card rhythm (8 / 12 / 16) */
.order-head { margin-bottom: 14px; align-items: center; }
.order-head h3 { margin-bottom: 4px; }
.order .code { margin: 8px 0 12px; }
.order .lines { margin-bottom: 16px; }
.order > .small.muted { margin: 0 0 16px; }
.order .btnrow { margin-top: 12px; gap: 10px; }
.order .help { margin: 14px 0 0; }
.order .btn.block + .btnrow { margin-top: 12px; }

/* summary tiles */
.card.tile .kv { margin-bottom: 16px; }
.card.tile .lines { margin-bottom: 12px; }
.card.tile .help { margin: 12px 0; }
.card.tile .linkbtn { padding: 12px 0 4px; }
.card + .btn.block { margin-top: 8px; }
.btn.block + .btnrow { margin-top: 12px; }

/* product list */
.product h3 { margin: 0 0 4px; }
.product .desc { margin: 0 0 8px; }
.nextstep-hint { margin-top: 8px; }
.alert { line-height: 1.35; }
.muted + .linkbtn, p.muted > .linkbtn { margin-left: 4px; }

/* forms */
label.field > span, .field > label { margin-bottom: 8px; }
.help { margin-top: 8px; }
.btnrow { margin-top: 20px; }
.card > h2:first-child, .card > .tile-title:first-child { margin-top: 0; }
.card h2 { margin: 0 0 14px; }
.card > form > .btn.block { margin-top: 8px; }
label.check { margin: 4px 0 20px; }

/* shop */
.handover .lines { margin-bottom: 16px; }
.handover .alert { margin: 12px 0; }
.actions3 { margin: 4px 0 12px; }
.handover .body > .btn.dark.block { margin-top: 8px; }
.hereline { margin-bottom: 14px; }
.result .rtop { margin-bottom: 4px; }
.order-head { align-items: flex-start; } .order-head .pill { margin-top: 2px; flex: 0 0 auto; }
.choice strong { text-box: normal; margin-bottom: 4px; line-height: 1.15; }
.choice > span:not(.tick) { line-height: 1.35; }
.choice { padding-top: 16px; padding-bottom: 16px; }
.howto li::before { line-height: 1; text-box: trim-both cap alphabetic; }
.howto li { align-items: start; } .howto li::before { margin-top: -2px; }

/* ================= One alignment: everything starts on the left ================= */
.hsr-app .card.center { text-align: left; }
.hsr-app .btnrow { justify-content: flex-start; }
.hsr-app .btnrow > .linkbtn { flex: 0 0 auto; text-align: left; padding-left: 0; }
.hsr-app .neworder { text-align: left; }
.hsr-app .order .code { text-align: left; letter-spacing: .2em; }
.hsr-app .help.center, .hsr-app p.center { text-align: left; }

/* bottom bar: info line + [Vissza | main action], aligned with the content column */
.bottombar .inner { display: block; max-width: 608px; }
.bottombar .barinfo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.bottombar .barinfo b { font-size: 1.25rem; }
.bottombar .navbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.bottombar .navbtns .btn { min-width: 0; width: 100%; }
.hsr-app .bottombar .btn.ghost { border-color: var(--ink); color: var(--ink); }
main:has(.bottombar) { padding-bottom: 150px; }
.hsr-app .success-mark { margin: 0 0 12px; }
.hsr-app .order .qr { justify-content: flex-start; }
.hsr-app p.muted > .linkbtn { padding: 0; margin-left: 6px; min-height: 0; vertical-align: baseline; }
.inote { grid-column: 1 / -1; display: block; margin-top: 4px; }
.inote span { display: block; font-size: .95rem; color: var(--ink-2); margin-bottom: 6px; }
.inote .input { min-height: 48px; font-size: 1rem; }
.inote-line { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.prow { flex-wrap: wrap; } .prow .pnote { flex: 1 0 100%; min-height: 44px; font-size: 1rem; margin-top: 4px; }
/* labels that wrap to two lines keep their breathing room */
.btn { line-height: 1.1; }
.btn.bigok { padding-top: 18px; padding-bottom: 18px; line-height: 1.15; }

/* order number ("#53") – the shop's main handle for an order */
.ordno { font-family: var(--head); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: .01em; color: var(--ink); flex: 0 0 auto; }
.whorow { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.whorow .who { min-width: 0; overflow-wrap: anywhere; }
.result .no { font-family: var(--head); font-size: 1.3rem; margin-right: 4px; }

/* hand-over: what to collect */
.paybox { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; display: grid; gap: 6px; }
.paybox div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.paybox span { color: var(--ink-2); }
.paybox .topay { border-top: 1px solid var(--line); padding-top: 8px; }
.paybox .topay span { color: var(--ink); font-weight: 700; }
.paybox .topay b { font-family: var(--head); font-size: 1.9rem; }

/* packing (the evening before) */
.packhead h2 { margin-bottom: 4px; }
.printhelp { margin: 10px 0 18px; }
.dymobox { display: grid; gap: 10px; margin: 12px 0 18px; }
.dymobox .printhelp { margin: 0; }
.dymobox ol { margin: 6px 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
.dymobox a.btn { text-decoration: none; text-align: center; }
.printhelp summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pack { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
.pack.done { border-color: var(--ok); }
.pk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.pk-name { font-size: 1.3rem; overflow-wrap: anywhere; }
.pk-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.pk-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pk-lines li em { display: block; font-style: normal; font-weight: 700; color: var(--brand); }
.pk-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pk-form .field { margin: 0; }
.pk-form .input { font-size: 1.4rem; font-weight: 700; }
.flabel { display: block; font-weight: 600; margin-bottom: 6px; }
.pk-steps { display: flex; align-items: center; gap: 6px; }
.pk-steps output { min-width: 2ch; text-align: center; font-size: 1.4rem; font-weight: 700; }
.pk-steps .stepbtn { width: 52px; height: 56px; font-size: 1.6rem; }
.pk-preview { margin: 14px 0 12px; display: flex; justify-content: center; }
.pk-preview .lbl { border: 1px dashed var(--input-line); border-radius: 6px; box-shadow: var(--shadow); }
.pack .btn2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.pack .btn2 .btn { min-height: 56px; }
.pack .btn2 .btn.saved { border-color: var(--line); color: var(--muted); opacity: 1; }
/* Desktop: order on the left, price / bags / label / buttons on the right. */
@media (min-width: 900px) {
	.pack { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px 28px; align-items: start; padding: 18px 20px; }
	.pk-left .pk-lines { margin-bottom: 8px; }
	.pk-right { position: sticky; top: 12px; }
	/* The label preview fills the right column: the real 57 × 32 mm label, scaled up. */
	.pk-right .pk-preview { margin: 14px 0; }
	.pack .btn2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) { .wrap.wide:has(.pack) { max-width: 1280px; } .pack { grid-template-columns: minmax(0, 1fr) 420px; } }

/* the 57 × 32 mm DYMO label (screen preview and print) */
.lbl { width: 57mm; height: 32mm; padding: 2mm 2.6mm; box-sizing: border-box; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; line-height: 1.1; }
.lbl .l-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2mm; }
.lbl .l-no { font-size: 19pt; font-weight: 800; line-height: .95; }
.lbl .l-meta { font-size: 7pt; text-align: right; display: grid; gap: .6mm; }
.lbl .l-meta b { font-size: 10pt; }
.lbl .l-name { font-size: 13pt; font-weight: 800; letter-spacing: .02em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.lbl .l-name.long { font-size: 10.5pt; }
.lbl .l-mid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .5mm; padding: .6mm 0; }
.lbl .l-contact { font-size: 6.5pt; line-height: 1.15; display: grid; }
.lbl .l-contact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl .l-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2mm; }
.lbl .l-code { font-size: 6.5pt; letter-spacing: .08em; }
.lbl .l-sum { font-size: 11pt; font-weight: 800; text-align: right; white-space: nowrap; }
.lbl .l-sum small { display: block; font-size: 6pt; font-weight: 400; }
#labelarea { display: none; }
@media print {
	body.printing-labels { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	body.printing-labels > *:not(#labelarea) { display: none !important; }
	body.printing-labels #labelarea { display: block; }
	body.printing-labels #labelarea .lbl { break-after: page; page-break-after: always; border: 0; box-shadow: none; }
	body.printing-labels #labelarea .lbl:last-child { break-after: auto; page-break-after: auto; }
}

.pill.packed { background: #E3ECF7; color: #1F4E8C; }
.packprog { font-size: 1.15rem; margin: 4px 0 2px; }
.packprog.small { font-size: 1rem; margin: 10px 0 0; }

/* Packing tab: one summary panel (day, progress, label file, backup list). */
.packpanel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0 22px; }
.packpanel.solo { padding: 0; border: 0; background: none; }
.pp-head { display: grid; gap: 14px; }
.pp-head h2 { margin: 0 0 4px; }
.pp-desc { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.45; }
.pp-prog { display: grid; gap: 6px; }
.pp-num { font-size: 1.05rem; }
.pp-num b { font-family: var(--head); font-size: 1.6rem; margin-right: 4px; }
.pp-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pp-bar span { display: block; height: 100%; background: var(--warn); border-radius: inherit; transition: width .3s; }
.pp-prog.done .pp-bar span { background: var(--ok); }
.pp-note { font-size: .95rem; color: var(--muted); }
.pp-prog.done .pp-note { color: var(--ok); font-weight: 700; }
.pp-actions { display: grid; gap: 14px; margin-top: 18px; }
.pp-act { display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 16px; }
.packpanel.solo .pp-act { background: var(--surface); border: 2px solid var(--line); }
.pp-act h3 { margin: 0; font-family: var(--head); text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; }
.pp-act .btn { text-decoration: none; }
.pp-act .alert { margin: 0; }
.pp-act .printhelp { margin: 0; }
.pp-act ol { margin: 6px 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
@media (min-width: 900px) {
	.packpanel { padding: 22px 24px; }
	.pp-head { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
	.pp-actions { grid-template-columns: 1fr 1fr; gap: 18px; }
	.pp-actions.one { grid-template-columns: minmax(0, 560px); }
	.pp-act { align-items: flex-start; }
	.pp-act .btn { min-height: 52px; padding: 10px 24px; font-size: 1.15rem; }
	.pp-act .alert, .pp-act .printhelp { align-self: stretch; }
}
.pp-act .printhelp summary { gap: 8px; text-decoration: underline; text-underline-offset: 3px; }
.pp-act .printhelp summary::before { content: '▸'; display: inline-block; transition: transform .15s; text-decoration: none; }
.pp-act .printhelp[open] summary::before { transform: rotate(90deg); }
@media (max-width: 899px) {
	.packpanel { padding: 14px; }
	.pp-act { padding: 14px; }
	.pp-act .btn { font-size: 1.15rem; padding: 12px 14px; white-space: nowrap; }
}

/* Label preview fills its box at every width (scale set by fitLabels() in shop.js). */
.pk-preview { --lblscale: 1; height: calc(32mm * var(--lblscale)); justify-content: center; }
.pk-preview .lbl { flex: none; transform: scale(var(--lblscale)); transform-origin: top center; }
/* Packing state: a full-width strip at the top of each card. */
.pk-state { margin: -14px -14px 12px; padding: 10px 14px; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.pk-state span { margin-right: 4px; }
.pk-state.ok { background: var(--ok-tint); color: var(--ok); }
.pk-state.todo { background: var(--warn-tint); color: var(--warn); }
.pack.todo { border-color: #E9C46A; }
.packfilter { margin: 0 0 14px; }
@media (min-width: 900px) {
	.pk-state { grid-column: 1 / -1; margin: -18px -20px 6px; padding: 10px 20px; }
}
/* Tablet: the two-column card already from 720 px, so the label preview stays a sensible size. */
@media (min-width: 720px) and (max-width: 899px) {
	.pack { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 8px 20px; align-items: start; padding: 16px; }
	.pk-state { grid-column: 1 / -1; margin: -16px -16px 6px; padding: 10px 16px; }
	.pk-right { position: sticky; top: 12px; }
	.pk-right .pk-preview { margin: 14px 0; }
	.pack .btn2 { grid-template-columns: 1fr 1fr; }
	.pk-form { grid-template-columns: minmax(0, 1fr) auto; }
}

.handover .topack { margin: 0 0 10px; }
.pack.flash { box-shadow: 0 0 0 4px var(--brand); transition: box-shadow 1.2s; }
@media (prefers-reduced-motion: reduce) { .pack.flash { transition: none; } }

/* Colour-coded counters (day list: 4, packing: 3): tinted when idle, solid when chosen. */
.counters.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .counters.four { grid-template-columns: repeat(4, 1fr); } }
button.counter.c-todo { background: var(--warn-tint); border-color: #E9C46A; }
button.counter.c-todo b { color: var(--warn); }
button.counter.c-packed { background: #E3ECF7; border-color: #A9C1E3; }
button.counter.c-packed b { color: #1F4E8C; }
button.counter.c-picked_up { background: var(--ok-tint); border-color: #9CCFAE; }
button.counter.c-picked_up b { color: var(--ok); }
button.counter.c-todo[aria-selected="true"] { background: var(--warn); border-color: var(--warn); color: #fff; }
button.counter.c-packed[aria-selected="true"] { background: #1F4E8C; border-color: #1F4E8C; color: #fff; }
button.counter.c-picked_up[aria-selected="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
button.counter[aria-selected="true"] b { color: inherit; }

.pk-save { display: grid; }
.pk-save .btn { min-height: 56px; width: 100%; }
.pk-save .btn.saved { border-color: var(--line); color: var(--muted); opacity: 1; }
/* Packing form: labels on one line, total field and bag buttons the same height. */
.pk-form { align-items: start; }
.pk-form label.field > span, .pk-form .flabel { display: block; margin: 0 0 8px; }
.pk-form .input { height: 60px; min-height: 60px; padding-top: 0; padding-bottom: 0; }
.pk-steps .stepbtn { height: 60px; width: 56px; }
.pk-steps output { line-height: 60px; }
.pk-form .input::placeholder { font-size: 1.05rem; font-weight: 600; }

/* ---------- Season showcase (intro) and photo product cards (v0.7.21) ---------- */
#main.wide { max-width: 1080px; }
.intro-card { max-width: 720px; margin-left: auto; margin-right: auto; }
.showcase { background: #0E0D0F; color: #F4F1EC; border-radius: var(--radius); padding: 28px 16px 20px; margin: 0 -16px 16px; }
.showcase h2 { color: #fff; text-align: center; font-size: 1.9rem; margin-bottom: .25em; }
.showcase .sc-lead { text-align: center; color: #CFCAC2; margin: 0 auto 22px; max-width: 34em; }
.sc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sc-item { background: #19181B; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sc-body { padding: 14px 16px 18px; }
.sc-body h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.sc-body p { color: #CFCAC2; font-size: 1rem; line-height: 1.45; margin: 0; }
.sc-body .price { color: #fff; margin-top: 8px; }
@media (min-width: 640px) {
	.showcase { margin: 0 0 20px; padding: 36px 24px 28px; }
	.sc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
	.sc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.plist { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.pcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pcard.selected { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.pphoto { background: #0E0D0F; }
.pphoto img { display: block; width: 100%; height: auto; object-fit: cover; }
@media (min-width: 768px) { .pphoto img { aspect-ratio: 4 / 3; } }
.pcard .pbody { padding: 14px 16px 4px; }
.pcard h3 { font-size: 1.3rem; margin: 0 0 4px; }
.pcard .desc { font-size: 1rem; color: var(--ink-2); margin: 0 0 8px; line-height: 1.45; }
.pcard .price { font-weight: 700; }
.pcard .stepper { margin: auto 16px 0; padding: 12px 0 14px; border-top: 1px solid var(--line); display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.pcard .inote { padding: 0 16px 16px; margin: 0; }
@media (min-width: 768px) {
	.plist { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.pcard .stepper { flex-direction: row; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
}

/* A link styled as a button keeps the button colours (".hsr a" would turn its text red on red). */
.hsr a.btn { color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.hsr a.btn.ghost, .hsr a.btn.neutral { color: var(--ink); }

/* ---------- Landing page (intro view): dark, photo-led, like the product shots ---------- */
body.v-intro { background: #0B0A0C; color: #EDE9E3; }
body.v-intro #main.wide { max-width: 1240px; padding-top: 0; }
.v-intro .alert { margin-top: 16px; }
.lp-hero { display: grid; gap: 24px; padding: 28px 0 40px; }
.lp-eyebrow { color: #F0545E; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; font-weight: 600; margin: 0 0 10px; }
.hsr .lp-hero h1 { color: #fff; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.2; margin: 0 0 18px; }
.lp-lead { font-size: 1.15rem; line-height: 1.5; color: #CFC9C0; max-width: 32em; margin: 0 0 18px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta .btn { flex: 1 1 220px; }
.hsr .btn.lp-ghost { background: transparent; border-color: #fff; color: #fff; }
.hsr .btn.lp-ghost:hover { background: #fff; color: #0B0A0C; }
.lp-hero-img { display: none; }
.lp-hero-img img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 18px; background: #000; }

.lp-menu { padding: 8px 0 40px; border-top: 1px solid #26232A; }
.lp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 28px 0 20px; }
.hsr .lp-head h2, .hsr .lp-how h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0; }
.lp-head p { color: #A8A29A; margin: 0; font-size: 1rem; }
.lp-grid { display: grid; grid-template-columns: 1fr; gap: 28px 20px; }
.lp-item { display: flex; flex-direction: column; }
.lp-photo { overflow: hidden; border-radius: 14px; background: #000; }
/* Phones: the whole photo, at its own shape (nothing cut off); the grid on wider screens needs one shape. */
.lp-photo img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.lp-item:hover .lp-photo img { transform: scale(1.04); }
.lp-body { padding: 14px 2px 0; }
.hsr .lp-body h3 { color: #fff; font-size: 1.4rem; line-height: 1.1; margin: 0 0 8px; }
.lp-body .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; }
.lp-body .price b { color: #fff; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.lp-body .price span { color: #A8A29A; font-size: .95rem; }
.lp-ingr { color: #A8A29A; font-size: .95rem; line-height: 1.45; margin: 0; }

.lp-how { border-top: 1px solid #26232A; padding: 36px 0 40px; }

.lp-stores { border-top: 1px solid #26232A; padding: 26px 0 8px; display: grid; gap: 16px; }
.lp-stores > div { display: flex; gap: 12px; align-items: flex-start; color: #F0545E; }
.lp-stores svg { flex: 0 0 auto; margin-top: 2px; }
.lp-stores b { display: block; color: #fff; font-family: var(--head); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.lp-stores span { color: #A8A29A; }

@media (min-width: 640px) {
	.lp-grid { grid-template-columns: repeat(2, 1fr); }
	.lp-photo img { aspect-ratio: 4 / 5; }
	.lp-steps { grid-template-columns: repeat(3, 1fr); }
	.lp-stores { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.lp-hero-img { display: block; }
	.lp-hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 48px 0 56px; }
	.lp-hero-img img { aspect-ratio: 1 / 1; }
}
@media (min-width: 1100px) {
	.lp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lp-photo img { transition: none; } .lp-item:hover .lp-photo img { transform: none; } }

/* Order step: Ft/kg and piece weight under the name. */
.pcard .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pcard .price b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pcard .price span { color: var(--muted); font-weight: 400; font-size: .95rem; }
.pcard .stepper .sub { white-space: nowrap; }

/* v0.7.23: one main action, quiet login link, status line, icon steps */
.lp-status { color: #EDE9E3; font-size: 1.1rem; line-height: 1.5; max-width: 32em; margin: 0 0 22px; padding-left: 14px; border-left: 3px solid var(--brand-bright); }
.lp-status b { color: #fff; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.lp-cta .btn { flex: 0 1 auto; min-width: 260px; }
.hsr .lp-cta .lp-login { margin: 0; }
.lp-login { margin: 0; color: #A8A29A; font-size: 1.05rem; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.hsr .lp-link { display: inline-flex; align-items: center; line-height: 1.2; background: none; border: 0; padding: 0 2px; min-height: 44px; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #6b655e; cursor: pointer; }
.hsr .lp-link:hover { text-decoration-color: #fff; }
.lp-steps { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; counter-reset: none; }
.lp-steps li { background: #151417; border: 1px solid #26232A; border-radius: 16px; padding: 22px 20px 20px; }
.lp-ico { width: 56px; height: 56px; border-radius: 14px; background: rgba(206, 42, 54, .14); color: #F0545E; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-n { color: #8E877F; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin: 0 0 2px; }
.hsr .lp-steps h3 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }
.lp-steps li > p:last-child { color: #A8A29A; margin: 0; line-height: 1.45; }
@media (max-width: 639px) { .lp-cta .btn { width: 100%; min-width: 0; } }

/* Preparation tip under the ingredients */
.ptip { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #2B282E; }
.ptip.ptip-soon { color: #8E877F; font-style: italic; font-size: .95rem; }
.hsr .ptip h4 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; line-height: 1.2; color: #fff; margin: 0 0 6px; }
.ptip p { color: #CFC9C0; font-size: .95rem; line-height: 1.45; margin: 0 0 4px; }
.ptip p:last-child { margin-bottom: 0; }
.pcard .ptip { border-top-color: var(--line); margin-bottom: 12px; }
.hsr .pcard .ptip h4 { color: var(--ink); }
.pcard .ptip p { color: var(--ink-2); }
.pcard .ptip.ptip-soon { color: var(--muted); }

/* Symmetry: cards side by side share row lines (name, price, ingredients, tip start at the same height). */
@media (min-width: 640px) {
	.lp-item { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
	.lp-item > .lp-photo { grid-row: 1; }
	.lp-body { display: grid; grid-row: 2 / span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
	.lp-body > h3 { grid-row: 1; }
	.lp-body > .price { grid-row: 2; }
	.lp-body > .lp-ingr { grid-row: 3; }
	.lp-body > .ptip { grid-row: 4; align-self: start; }
}
@media (min-width: 768px) {
	/* Rows shared across the cards of a line: photo · name · ingredients · preparation · price · +/- */
	.pcard { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
	.pcard > .pphoto { grid-row: 1; }
	.pcard > .pbody { display: grid; grid-row: 2 / span 4; grid-template-rows: subgrid; row-gap: 0; }
	.pcard .pbody > h3 { grid-row: 1; }
	.pcard .pbody > .desc { grid-row: 2; }
	.pcard .pbody > .prep-short { grid-row: 3; align-self: start; }
	.pcard .pbody > .price { grid-row: 4; align-self: end; }
	.pcard > .stepper { grid-row: 6; margin-top: 0; }
}

/* ======================================================================
   Customer pages (hsr-app, hsr-locked): dark, like the website and the landing page.
   Staff screens (hsr-shop) and wp-admin keep the light theme.
   ====================================================================== */
body.hsr-app, body.hsr-locked {
	--bg: #0B0A0C;
	--surface: #151417;
	--surface-2: #201E23;
	--input-line: #4A4550;
	--on-ink: #0B0A0C;
	--ink: #F4F1EC;
	--ink-2: #CFC9C0;
	--muted: #A8A29A;
	--line: #2B282E;
	--brand: #F0545E;              /* red for text and lines on dark */
	--brand-tint: rgba(206, 42, 54, .16);
	--ok: #5BCB86;
	--ok-tint: rgba(91, 203, 134, .14);
	--warn: #F4C542;
	--warn-tint: rgba(244, 197, 66, .12);
	--bad: #FF7A70;
	--bad-tint: rgba(255, 122, 112, .13);
	--shadow: 0 0 0 0 transparent;  /* not "none": it is also used inside comma lists (selected-card ring) */
	background: var(--bg);
	color: var(--ink);
	color-scheme: dark;
}
.hsr-app .topbar, .hsr-locked .topbar { border-bottom: 1px solid #1F1D22; }
.hsr-app .card, .hsr-app .order, .hsr-app .pcard, .hsr-app .choice, .hsr-locked .card { border: 1px solid var(--line); }

/* Buttons: filled = HúsSpecialista red with white text; outline = white, like the landing page. */
.hsr-app .btn, .hsr-locked .btn { background: #B8202C; border-color: #B8202C; color: #fff; }
.hsr-app .btn:hover, .hsr-locked .btn:hover { background: #9C1A25; border-color: #9C1A25; }
.hsr-app .btn.ghost, .hsr-locked .btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.hsr-app .btn.ghost:hover, .hsr-locked .btn.ghost:hover { background: #fff; color: #0B0A0C; }
.hsr-app .btn[disabled] { background: #3A363E; border-color: #3A363E; color: #8E877F; }
.hsr-app .linkbtn { color: #fff; text-decoration-color: #6B655E; text-underline-offset: 4px; }

/* Form fields: a shade darker than the card so they read as fields. */
.hsr-app .input, .hsr-app textarea.input, .hsr-app .cc-show { background: var(--bg); color: var(--ink); }
.hsr-app .input::placeholder { color: #6E6872; }
.hsr-app .input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(240, 84, 94, .35); }
.hsr-app .cc select:focus-visible + .cc-show, .hsr-app .cc:focus-within .cc-show { border-color: #fff; box-shadow: 0 0 0 3px rgba(240, 84, 94, .35); }
.hsr-app .pwtoggle { background: var(--surface-2); color: var(--ink); }
.hsr-app label.check input { accent-color: #CE2A36; }

/* Status pills and the rest of the hard-coded light colours */
.hsr-app .pill.cancelled { background: var(--surface-2); color: var(--muted); }
.hsr-app .pill.no_show { background: rgba(244, 197, 66, .14); color: var(--warn); }
.hsr-app .choice[disabled] { background: var(--surface-2); }
.hsr-app .choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); }
.hsr-app .steps li.done { background: #CE2A36; }
.hsr-app .bottombar { background: rgba(21, 20, 23, .96); border-top-color: var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
.hsr-app .nextstep-hint { border-color: var(--line); }

/* QR code: scanners need dark modules on white, also the full-screen version. */
.hsr-app .order .qr svg { background: #fff; border-radius: 12px; }
.hsr-app .qrfull { background: #fff; color: #17161A; }
.hsr-app .qrfull .code, .hsr-app .qrfull h1, .hsr-app .qrfull h2, .hsr-app .qrfull p { color: #17161A; }
.hsr-app .qrfull .btn.ghost { border-color: #17161A; color: #17161A; }
.hsr-app .qrfull .muted { color: #55525A; }

/* Alignment: the bottom bar's buttons line up with the content column's edges (wide steps too). */
body:has(#main.wide) .bottombar .inner { max-width: 1048px; }
/* Status pill centred on the first line of the name/date beside it (works when the name wraps too). */
.result .rtop .pill { margin-top: .25rem; }

/* Confirm-your-e-mail page: waiting line instead of a button (the page moves on by itself). */
.verify-wait { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin: 8px 0 0; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 999px; color: var(--ink-2); font-size: 1rem; text-align: center; }
.verify-wait .dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-bright); animation: hsr-pulse 1.4s ease-in-out infinite; }
@keyframes hsr-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .verify-wait .dot { animation: none; } }

/* Step 1 (store): when the orders can be picked up, under the two store cards. */
.pickup-when { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 0; padding: 16px 18px; border-left: 4px solid var(--brand-bright); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.pickup-when strong { font-family: var(--head); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); line-height: 1.15; }
.pickup-when span { color: var(--ink-2); font-size: 1rem; line-height: 1.4; }

/* "Mit kérsz?": preparation as one short line between the ingredients and the price. */
.pcard .prep-short { margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.pcard .prep-short b { color: var(--ink); font-weight: 600; }

/* Two equal buttons side by side (Mégse · Mentés). */
.btnpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.btnpair .btn { width: 100%; }
.card .kv + .btn.block { margin-top: 16px; }

/* Nothing chosen yet: "0 db" and the price of the first tap, quieter than a chosen amount. */
.pcard .stepper .sub.sub-empty { color: var(--muted); }
.pcard:not(.selected) .stepper .qty { color: var(--muted); }
.pcard .stepper .sub.sub-empty { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.2; font-size: .95rem; }
.pcard .stepper .sub.sub-empty span { white-space: nowrap; }
/* Narrow phones: a little less room around the amount so the estimate on the right always fits. */
@media (max-width: 399px) { .pcard .stepper .qty { min-width: 80px; } }

/* "Kérnél mást is?": the price warning under the text box, impossible to miss. */
.card .price-note { margin: 14px 0 0; font-weight: 500; line-height: 1.45; }
.card .price-note b { display: block; margin-bottom: 2px; }
.bottombar .barinfo b { white-space: nowrap; }

/* Busy button: same colour as before, a spinner and the "…" label (no grey "disabled" look). */
.btn.is-busy { pointer-events: none; cursor: progress; }
.btn.is-busy .spin { width: 18px; height: 18px; flex: 0 0 auto; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hsr-spin .7s linear infinite; }
@keyframes hsr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy .spin { animation-duration: 2s; } }
