/* Bakplaat Foodservice — layout concept: "warm kitchen, sharp ledger".
   Appetising photography and warm stone neutrals on the outside; a fast, dense, ledger-like portal inside. */
:root {
  --bg: #F6F3EE; --bg-alt: #EEE9E1; --surface: #FFFFFF; --surface-2: #F1EDE6; --line: #E4DED4; --line-strong: #CFC7BA;
  --ink: #1C1A17; --ink-2: #3A3631; --muted: #6E675D; --faint: #9A9287;
  --accent: #E2552B; --accent-strong: #C2421C; --accent-soft: #FCE9E1; --accent-ink: #FFFFFF;
  --mustard: #E8B33A; --ok: #2E7D4F; --ok-soft: #E3F1E7; --warn: #A86A10; --warn-soft: #FBF0D9; --bad: #B83A2A; --bad-soft: #FBE4E0; --info: #2C5F8A; --info-soft: #E3EDF6;
  --night: #171512; --night-2: #211E1A; --night-ink: #F3EEE6; --night-muted: #A8A094;
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, .06), 0 1px 1px rgba(28, 26, 23, .04);
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 8px 24px -8px rgba(28, 26, 23, .14);
  --shadow-lg: 0 24px 64px -16px rgba(20, 16, 10, .32);
  --r: 16px; --r-sm: 10px; --r-lg: 22px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110F; --bg-alt: #181613; --surface: #1C1A17; --surface-2: #24211D; --line: #2F2B26; --line-strong: #433D35;
    --ink: #F3EEE6; --ink-2: #D9D2C6; --muted: #A39B8F; --faint: #7A7268;
    --accent: #F0683F; --accent-strong: #FF8A62; --accent-soft: #3A2219; --accent-ink: #FFFFFF;
    --ok: #5CC28A; --ok-soft: #173224; --warn: #E3B05A; --warn-soft: #3A2D14; --bad: #F08070; --bad-soft: #3D1D18; --info: #7FB3E0; --info-soft: #17283A;
    --night: #0D0C0A; --night-2: #1A1815;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110F; --bg-alt: #181613; --surface: #1C1A17; --surface-2: #24211D; --line: #2F2B26; --line-strong: #433D35;
  --ink: #F3EEE6; --ink-2: #D9D2C6; --muted: #A39B8F; --faint: #7A7268;
  --accent: #F0683F; --accent-strong: #FF8A62; --accent-soft: #3A2219; --accent-ink: #FFFFFF;
  --ok: #5CC28A; --ok-soft: #173224; --warn: #E3B05A; --warn-soft: #3A2D14; --bad: #F08070; --bad-soft: #3D1D18; --info: #7FB3E0; --info-soft: #17283A;
  --night: #0D0C0A; --night-2: #1A1815;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
small { font-size: 12.5px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.ok { color: var(--ok); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .center { text-align: center; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow.on-dark { color: #FFB394; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(226, 85, 43, .25); }
.save { color: var(--ok); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { width: 34px; height: 34px; flex: none; }
.logo .wm { font: 800 21px/1 var(--display); letter-spacing: -.035em; display: flex; flex-direction: column; }
.logo .wm small { font: 600 9.5px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; opacity: .62; margin-top: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -6px rgba(226, 85, 43, .55); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { background: var(--ink-2); }
.btn.ghost { border: 1px solid var(--line-strong); background: var(--surface); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
.btn.lg { height: 52px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 11px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn.lang b { font-size: 12.5px; letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 4px; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]), select { height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 450; width: 100%; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- avatars, chips, thumbs ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: hsl(var(--h) 72% 91%); color: hsl(var(--h) 55% 30%); }
:root[data-theme="dark"] .avatar { background: hsl(var(--h) 30% 22%); color: hsl(var(--h) 70% 80%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--h) 30% 22%); color: hsl(var(--h) 70% 80%); } }
.avatar.lg { width: 58px; height: 58px; font-size: 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.c-paid, .c-delivered { background: var(--ok-soft); color: var(--ok); }
.c-open, .c-received { background: var(--info-soft); color: var(--info); }
.c-picking { background: var(--warn-soft); color: var(--warn); }
.c-route { background: var(--accent-soft); color: var(--accent-strong); }
.c-overdue { background: var(--bad-soft); color: var(--bad); }
.c-pending { background: var(--surface-2); color: var(--muted); }
.thumb { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; display: inline-block; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.thumb.lg { width: 64px; height: 64px; border-radius: 14px; }
.thumbs { display: flex; padding-left: 10px; }
.thumbs .thumb { margin-left: -10px; border: 2px solid var(--surface); width: 46px; height: 46px; border-radius: 13px; }
.thumb.more { display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
img.missing { opacity: 0; }
.store { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.store .ic { width: 12px; height: 12px; }
.s-chill { color: #1F6FAE; } .s-frozen { color: #4A55B8; } .s-dry { color: #8A6430; }
:root[data-theme="dark"] .s-chill { color: #7DB8EA; } :root[data-theme="dark"] .s-frozen { color: #A2AAF0; } :root[data-theme="dark"] .s-dry { color: #D6AE76; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-chill { color: #7DB8EA; } :root:not([data-theme="light"]) .s-frozen { color: #A2AAF0; } :root:not([data-theme="light"]) .s-dry { color: #D6AE76; } }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
.bar.ok i { background: var(--ok); }

/* ---------- reveal ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.pubnav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .35s, color .35s, box-shadow .35s, backdrop-filter .35s; }
.pubnav.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--ink); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.pubnav-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.publinks { display: flex; gap: 4px; margin-right: auto; }
.publinks button { padding: 8px 12px; border-radius: 10px; font-weight: 550; font-size: 14.5px; opacity: .86; transition: opacity .2s, background .2s; }
.publinks button:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.pubnav-act { display: flex; align-items: center; gap: 6px; }
.pubnav:not(.solid) .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.pubnav:not(.solid) .icon-btn:hover { background: rgba(255, 255, 255, .12); }

.hero { position: relative; min-height: min(100svh, 920px); background: #0E0C0A; color: #fff; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: heroIn 2.4s var(--ease) both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 8, .94) 0%, rgba(12, 10, 8, .78) 32%, rgba(12, 10, 8, .2) 64%, rgba(12, 10, 8, .1) 100%), linear-gradient(0deg, rgba(12, 10, 8, .9) 0%, rgba(12, 10, 8, 0) 34%); }
@keyframes heroIn { from { transform: scale(1.07); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 128px; padding-bottom: 36px; }
.hero h1 { font: 700 clamp(40px, 4.9vw, 72px)/.98 var(--display); letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; animation: rise 1s var(--ease) .1s both; }
.hero h1 span { display: block; color: #FF9A70; }
.hero .lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 46ch; margin-top: 22px; animation: rise 1s var(--ease) .22s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise 1s var(--ease) .34s both; }
.hero .eyebrow { animation: rise 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-card { justify-self: end; width: min(100%, 392px); background: rgba(24, 22, 19, .62); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 18px; backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); animation: rise 1.1s var(--ease) .45s both; }
.hc-head { display: flex; align-items: center; gap: 12px; }
.hc-head b { display: block; font-size: 15px; } .hc-head small { color: rgba(255, 255, 255, .6); }
.hc-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(92, 194, 138, .16); color: #7BD9A4; font-size: 12.5px; font-weight: 600; animation: pop .5s var(--ease) 1.9s both; }
.hc-del { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; color: rgba(255, 255, 255, .82); }
.hc-lines { list-style: none; margin: 0; padding: 0; }
.hc-lines li { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 700ms); }
.hc-lines li .thumb { background: rgba(255, 255, 255, .08); width: 40px; height: 40px; }
.hc-lines li > span:not(.thumb) { flex: 1; min-width: 0; } .hc-lines b { display: block; font-size: 13.5px; font-weight: 600; } .hc-lines small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.hc-lines em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-lines .hc-more { color: rgba(255, 255, 255, .55); font-size: 12.5px; border: 0; }
.hc-pay { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 12px 2px 4px; animation: rise .6s var(--ease) 1.35s both; }
.hc-pay small { display: block; color: rgba(255, 255, 255, .55); font-size: 12px; } .hc-pay b { font-size: 15px; } .hc-pay .r b { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.hc-pay .save { color: #7BD9A4; }
.hc-docs { display: flex; gap: 6px; margin-top: 12px; }
.hc-docs span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * 140ms + 1.6s); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)) center top / calc(100% - 56px) 1px no-repeat; padding-top: 22px; padding-bottom: 30px; gap: 24px; animation: rise 1s var(--ease) .6s both; }
.hero-facts b { display: block; font: 700 30px/1 var(--display); letter-spacing: -.02em; }
.hero-facts span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: 13.5px; }

.sec { padding: 120px 0; }
.sec.alt { background: var(--bg-alt); }
.sec.dark { background: var(--night); color: var(--night-ink); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec h2 { font: 700 clamp(30px, 3.5vw, 50px)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sec-head p:not(.eyebrow), .del-grid p:not(.eyebrow), .apply-grid > div > p:not(.eyebrow), .pay-grid > div > p:not(.eyebrow) { margin-top: 18px; font-size: 17.5px; color: var(--muted); max-width: 56ch; }
.sec.dark p:not(.eyebrow) { color: var(--night-muted); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-tile img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .8s var(--ease); background: #E6E1D9; }
.cat-tile:hover img { transform: scale(1.05); }
.ct-body { display: block; padding: 16px 56px 18px 20px; }
.ct-body b { display: block; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.ct-body small { color: var(--muted); font-size: 13.5px; }
.cat-tile > .ic { position: absolute; right: 18px; bottom: 22px; width: 22px; height: 22px; color: var(--accent); transition: transform .3s var(--ease); }
.cat-tile:hover > .ic { transform: translateX(4px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.step-n { font: 700 14px/1 var(--mono); color: var(--accent-strong); }
.step h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.step > p { color: var(--muted); font-size: 15px; }
.mini { margin-top: auto; padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.mini-list > div { display: flex; align-items: center; gap: 10px; } .mini-list .thumb { width: 34px; height: 34px; border-radius: 9px; }
.mini-list span:not(.thumb) { flex: 1; font-weight: 550; } .mini-list em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.mini-pay > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.mini-pay > div.on { border-color: var(--accent); background: var(--accent-soft); }
.mini-pay .r { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); } .mini-pay .on .r { border: 5px solid var(--accent); }
.mini-pay b { flex: 1; } .mini-pay em { font-style: normal; font-weight: 700; color: var(--ok); } .mini-pay div:not(.on) em { color: var(--muted); }
.mini-docs > div { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--surface); }
.mini-docs span { flex: 1; font-weight: 550; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pay-ex { background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: 10px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.pe-head { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pe-seg { display: flex; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.pe-seg button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--night-muted); font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.pe-seg button.on { background: var(--night-ink); color: var(--night); }
.pe-year { display: flex; gap: 10px; align-items: center; padding: 14px 16px 6px; font-size: 13.5px; color: var(--night-muted); } .pe-year b { color: #FFC66B; } .pe-year .ic { color: #FFC66B; } .pe-head small { color: var(--night-muted); display: block; } .pe-head b { font: 700 22px/1.2 var(--display); }
.pe-row b, .pe-row .r b { transition: opacity .2s; }
.pe-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); margin-top: 8px; }
.pe-row.best { border-color: rgba(240, 104, 63, .55); background: linear-gradient(135deg, rgba(240, 104, 63, .16), rgba(240, 104, 63, .04)); }
.pe-row b { display: block; font-size: 16px; } .pe-row small { color: var(--night-muted); } .pe-row .r b { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.pe-row .save { color: #7BD9A4; font-weight: 600; }

.del-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.del-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #E6E1D9; }
.del-media img { width: 100%; aspect-ratio: 4/3.3; object-fit: cover; }
.del-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(20, 18, 15, .7); color: #fff; font-weight: 600; font-size: 13.5px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.routes { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.routes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.routes li > span:first-child { display: flex; align-items: center; gap: 10px; } .routes li > span:first-child .ic { color: var(--accent); }
.days { display: flex; gap: 5px; }
.days i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--faint); background: var(--surface-2); }
.days i.on { background: var(--ink); color: var(--bg); }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; }
.del-grid p.fine { font-size: 13.5px; margin-top: 16px; }

.team-media { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; background: #2A2722; box-shadow: var(--shadow); }
.team-media img { width: 100%; aspect-ratio: 21/8; object-fit: cover; }
.team-media span { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(20, 18, 15, .72); color: #fff; font-weight: 600; font-size: 13.5px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { display: flex; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.person h3 { font: 700 19px/1.2 var(--display); }
.person p { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.person a, .person span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; margin-top: 4px; }
.person a { color: var(--accent-strong); } .person span { color: var(--muted); }

.apply-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 550; }
.ticks .ic { color: var(--ok); background: var(--ok-soft); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.apply { padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.applied { text-align: center; padding: 40px 16px; } .applied .ic { width: 52px; height: 52px; color: #fff; background: var(--ok); border-radius: 50%; padding: 12px; margin: 0 auto 18px; }
.applied h3 { font: 700 24px/1.2 var(--display); margin-bottom: 8px; } .applied p { color: var(--muted); }

.pubfoot { background: var(--night); color: var(--night-muted); padding: 72px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .logo { color: var(--night-ink); } .foot-brand p { margin-top: 16px; max-width: 32ch; }
.pubfoot h4 { color: var(--night-ink); font-size: 14px; margin-bottom: 12px; } .pubfoot p { line-height: 1.8; }
.pubfoot a:hover { color: var(--night-ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100svh; }
.login-media { position: relative; background: #0E0C0A; overflow: hidden; }
.login-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroIn 2s var(--ease) both; }
.login-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 6, .85), rgba(10, 8, 6, 0) 55%); }
.login-quote { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 40px; margin: 0; color: #fff; }
.login-quote blockquote { margin: 0; font: 600 clamp(20px, 2vw, 27px)/1.3 var(--display); letter-spacing: -.015em; max-width: 30ch; }
.login-quote figcaption { margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.login-panel { display: flex; flex-direction: column; padding: 28px 40px 40px; }
.login-top { display: flex; justify-content: space-between; align-items: center; }
.login-body { width: 100%; max-width: 420px; margin: auto; padding: 36px 0; }
.login-body h1 { font: 700 40px/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 10px; }
.accounts { display: grid; gap: 8px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.acct:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.acct > span:nth-child(2) { flex: 1; min-width: 0; } .acct b { display: block; font-size: 14.5px; } .acct small { color: var(--muted); }
.acct > .ic { color: var(--faint); }
.or { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-form { display: grid; gap: 14px; margin-bottom: 20px; }

/* =========================================================
   PORTAL
   ========================================================= */
.appbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.appbar-in { display: flex; align-items: center; gap: 16px; height: 66px; padding: 0 20px; max-width: 1480px; margin: 0 auto; }
.appbar .brand { width: 212px; flex: none; }
.appbar .logo .wm { font-size: 20px; }
.search { flex: 1; max-width: 520px; position: relative; display: flex; flex-direction: row; align-items: center; gap: 0; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { height: 42px !important; padding-left: 40px !important; border-radius: 12px !important; background: var(--surface) !important; }
.del-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); margin-left: auto; }
.del-chip .ic { width: 20px; height: 20px; }
.del-chip b { display: block; font-size: 13px; line-height: 1.2; } .del-chip small { display: block; font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; opacity: .85; }
.bar-act { display: flex; align-items: center; gap: 4px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.cart-btn .ic { width: 19px; height: 19px; }
.cart-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }
.menu-wrap { position: relative; }
.avatar-btn { margin-left: 4px; border-radius: 50%; display: grid; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.menu-wrap.open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head b { display: block; font-size: 14px; } .menu-head small { color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.show-s { display: none !important; }
.show-m { display: none; }

.pshell { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; }
.sidenav { position: sticky; top: 66px; height: calc(100svh - 66px); padding: 22px 14px 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 550; color: var(--ink-2); transition: background .2s; }
.sidenav a:hover { background: var(--surface-2); }
.sidenav a.on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.sidenav a.on .ic { color: var(--accent); }
.sidenav em, .tabbar em { margin-left: auto; font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--info-soft); color: var(--info); font-size: 11.5px; font-weight: 700; }
.sidenav em.warn, .tabbar em.warn { background: var(--bad-soft); color: var(--bad); }
.side-credit { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.side-credit small { color: var(--muted); } .side-credit b { display: block; font: 700 22px/1.2 var(--display); margin: 2px 0 10px; letter-spacing: -.02em; }
.side-credit span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.side-help { margin-top: 10px; padding: 14px 16px; font-size: 13px; }
.side-help small { color: var(--muted); display: block; } .side-help b { display: block; margin-top: 2px; }
.side-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-weight: 600; margin-top: 2px; }
.pmain { padding: 28px 32px 120px 12px; min-width: 0; }
.tabbar, .mcart, .co-mbar { display: none; }

.welcome { display: flex; gap: 16px; align-items: flex-start; padding: 16px 16px 16px 18px; margin-bottom: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: opacity .3s, transform .3s var(--ease); }
.welcome.out { opacity: 0; transform: translateY(-6px); }
.wl-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.welcome > div:nth-child(2) { flex: 1; } .welcome b { display: block; font-size: 15px; } .welcome p { color: var(--muted); font-size: 14px; margin-top: 2px; max-width: 78ch; }
.wl-act { display: flex; align-items: center; gap: 4px; }
.greet { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.greet h1 { font: 700 34px/1.1 var(--display); letter-spacing: -.03em; }
.greet p { color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tier { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-strong); font-weight: 600; }

.del-banner { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 24px 18px 18px; border-radius: 20px; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate; }
.del-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 160px at 100% 0%, rgba(240, 104, 63, .32), transparent 70%); }
.db-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.db-ic .ic { width: 26px; height: 26px; }
.db-main small, .db-count small { display: block; color: var(--night-muted); font-size: 12.5px; }
.db-main b { display: block; font: 700 21px/1.25 var(--display); letter-spacing: -.015em; }
.db-main b::first-letter { text-transform: uppercase; }
.db-main > span { color: var(--night-muted); font-size: 13.5px; }
.nw { white-space: nowrap; }
.db-count { text-align: right; }
.db-count b { display: block; font: 700 28px/1.1 var(--display); color: #FFC66B; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.db-count span { font-size: 12.5px; color: var(--night-muted); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 34px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-sm); }
.qc-head { display: flex; align-items: center; gap: 12px; }
.qc-head > div { flex: 1; min-width: 0; } .qc-head small { color: var(--muted); } .qc-head h2 { font: 700 18px/1.25 var(--display); letter-spacing: -.015em; }
.qc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-strong); }
.qc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }

.catalogue { scroll-margin-top: 80px; }
.cat-bar { position: sticky; top: 66px; z-index: 20; display: flex; gap: 12px; align-items: center; padding: 12px 0; margin: 0 0 4px; background: var(--bg); }
.cat-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.chips button:hover { border-color: var(--line-strong); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.view-tog { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.view-tog button { width: 36px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.view-tog button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.m-search { display: none; }
.cat-sec { scroll-margin-top: 130px; }
.cat-sec h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.cat-sec h2 small { font: 600 12px/1 var(--body); color: var(--muted); background: var(--surface-2); padding: 5px 8px; border-radius: 99px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.pimg { position: relative; background: #E6E1D9; aspect-ratio: 4/3; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pimg img { transform: scale(1.04); }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sku { font: 500 11.5px/1 var(--mono); color: var(--faint); letter-spacing: .02em; }
.vat { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 3px 6px; border-radius: 6px; }
.pcard h3, .prow h3 { font-size: 16px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.pcard h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listline { font-size: 12.5px; color: var(--muted); margin-top: -4px; font-variant-numeric: tabular-nums; } .listline s { color: var(--faint); }
.lowstock { font-size: 11.5px; font-weight: 650; color: var(--warn); background: var(--warn-soft); padding: 3px 7px; border-radius: 6px; }
.lowstock.out { color: var(--bad); background: var(--bad-soft); }
.oos-tag { position: absolute; left: 10px; top: 10px; height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 99px; background: rgba(20, 18, 15, .82); color: #fff; font-size: 12px; font-weight: 700; }
.is-oos .pimg img { filter: grayscale(.7); opacity: .7; }
.oos-ctl { display: grid; gap: 8px; } .oos-ctl > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--bad); }
.oos-ctl .ic { width: 14px; height: 14px; }
.excl { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.minorder { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--warn); background: var(--warn-soft); padding: 9px 12px; border-radius: 10px; }
.pack { color: var(--muted); font-size: 13.5px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-2); align-self: flex-start; max-width: 100%; }
.seg button { padding: 5px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: var(--muted); transition: all .2s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 650; }
.seg.sm button { padding: 4px 8px; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
.price b { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.price s { color: var(--faint); font-size: 13.5px; }
.price .per { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.tier { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--accent-strong); }
.tier .ic { width: 14px; height: 14px; }
.tier.on { color: var(--ok); }
.pbody .tier, .pr-price .tier { color: var(--warn); } .pbody .tier.on, .pr-price .tier.on { color: var(--ok); }
.qtybox { margin-top: auto; padding-top: 6px; }
.btn.add { width: 100%; height: 44px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.btn.add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.add.sm { height: 36px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--surface); overflow: hidden; animation: pop .25s var(--ease); }
.stepper button { display: grid; place-items: center; transition: background .15s; }
.stepper button:hover { background: var(--surface-2); }
.stepper button:last-child { background: var(--ink); color: var(--bg); }
.stepper button:last-child:hover { background: var(--ink-2); }
.stepper label { flex-direction: row; align-items: center; justify-content: center; gap: 4px; font-weight: 600; min-width: 0; line-height: 1; }
.stepper input { width: 3.2ch !important; height: 24px !important; line-height: 24px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: right; font-size: 16px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
.stepper label span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stepper.sm { height: 36px; grid-template-columns: 36px 1fr 36px; border-radius: 10px; width: 168px; }
.stepper.sm input { font-size: 14.5px !important; }

.plist { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px 200px; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.pr-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-price .price { margin: 0; } .pr-price .price .per { margin-left: 0; flex-basis: 100%; }
.prow .qtybox { padding: 0; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty > .ic { width: 40px; height: 40px; color: var(--faint); }
.empty h3, .empty h2 { color: var(--ink); font: 700 20px/1.3 var(--display); }
.empty.big { padding: 100px 20px; }
.empty .btn { margin-top: 10px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(14, 12, 10, .45); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .45s var(--ease), visibility 0s .45s; visibility: hidden; }
.drawer.open { pointer-events: auto; } .drawer.open .drawer-scrim { opacity: 1; } .drawer.open .drawer-panel { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease), visibility 0s; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px 24px; }
.dr-head h2 { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; } .dr-head small { color: var(--muted); }
.dr-del { display: flex; align-items: center; gap: 10px; margin: 0 20px 6px 24px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dr-lines { list-style: none; margin: 0; padding: 4px 20px 4px 24px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.dr-lines li { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.dr-lines .thumb { width: 54px; height: 54px; border-radius: 14px; }
.dl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dl-main b { font-size: 14.5px; font-weight: 650; } .dl-main small { color: var(--muted); }
.dl-main .qtybox { padding-top: 8px; }
.dl-amt { font-variant-numeric: tabular-nums; font-size: 14.5px; }
.dr-foot { border-top: 1px solid var(--line); padding: 18px 20px 20px 24px; background: var(--surface); display: grid; gap: 12px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.free { font-size: 13.5px; } .free .bar { margin-top: 8px; } .free small { color: var(--muted); }
.free.done { color: var(--ok); font-weight: 600; } .free.done .bar i { background: var(--ok); }
.free span { display: inline-flex; align-items: center; gap: 6px; }
.saved { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ok); background: var(--ok-soft); padding: 9px 12px; border-radius: 10px; }
.sub { font-size: 15px; } .sub b { font-size: 19px; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.hint b { color: var(--ok); }
.dr-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 10px; color: var(--muted); }
.dr-empty > .ic { width: 44px; height: 44px; color: var(--faint); }
.dr-empty h3 { color: var(--ink); font: 700 20px/1.2 var(--display); }
.dr-empty .btn { margin-top: 12px; }

/* checkout */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.co h1, .page-head h1, .ov-head h1 { font: 700 34px/1.1 var(--display); letter-spacing: -.03em; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 22px; margin-top: 20px; align-items: start; }
.co-main { display: grid; gap: 16px; min-width: 0; }
.co-sec { padding: 22px 24px 24px; }
.co-sec h2, .co-sum h2, .card > h2 { font: 700 19px/1.2 var(--display); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.co-sec h2 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 700 13px/1 var(--body); }
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.date { text-align: left; padding: 11px 13px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); transition: all .2s; }
.date:hover { border-color: var(--line-strong); }
.date span i { font-style: normal; }
.date small { display: block; color: var(--muted); text-transform: capitalize; } .date b { display: block; font-size: 16px; margin: 1px 0 3px; } .date span { display: block; font-size: 11.5px; color: var(--faint); }
.date.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.date.on small, .date.on span { color: var(--accent-strong); }
.addr { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.addr > div { flex: 1; } .addr b { display: block; } .addr span { color: var(--muted); font-size: 14px; }
.addr > .ic { color: var(--accent); width: 22px; height: 22px; }
.addr.window { margin-top: -8px; background: transparent; border: 1px dashed var(--line-strong); } .addr.window > .ic { color: var(--muted); }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.payopt { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); transition: all .25s var(--ease); position: relative; }
.payopt:hover { border-color: var(--line-strong); }
.payopt.on { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); }
.payopt[disabled] { opacity: .55; cursor: not-allowed; }
.po-head { display: flex; align-items: center; gap: 10px; } .po-head b { font-size: 16.5px; flex: 1; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: border .2s; }
.on > .po-head .radio, .method.on .radio { border: 6px solid var(--accent); }
.badge { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.badge.save { background: var(--ok-soft); color: var(--ok); }
.po-text { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.po-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: auto; }
.po-total small { color: var(--muted); width: 100%; } .po-total b { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.po-total em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); } .po-total em.save { color: var(--ok); }
.credit { display: block; } .credit .bar { margin-bottom: 6px; } .credit .bar i.add { background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0 99px 99px 0; }
.credit small { color: var(--muted); }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.methods .label { grid-column: 1 / -1; margin-bottom: 0; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); text-align: left; }
.method > span:nth-child(2) { flex: 1; } .method b { display: block; font-size: 14.5px; } .method small { color: var(--muted); }
.method.on { border-color: var(--accent); background: var(--accent-soft); }
.ideal-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #CC0066; color: #fff; font: 800 14px/1 var(--body); letter-spacing: -.02em; flex: none; }
.card-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.ideal-mark.lg, .card-mark.lg { width: 46px; height: 46px; border-radius: 12px; font-size: 17px; }
.note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.co-sum { position: sticky; top: 86px; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.sum-del { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.sum-del > .ic { color: var(--accent); width: 22px; height: 22px; } .sum-del b { display: block; } .sum-del b::first-letter { text-transform: uppercase; } .sum-del small { color: var(--muted); }
.sum-lines summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.sum-lines summary::-webkit-details-marker { display: none; }
.sum-lines[open] summary .ic { transform: rotate(180deg); }
.sum-lines ul { list-style: none; padding: 0; margin: 10px 0 0; max-height: 260px; overflow: auto; }
.sum-lines li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.sum-lines .thumb { width: 36px; height: 36px; border-radius: 9px; } .sum-lines small { display: block; color: var(--muted); font-size: 12px; }
dl.sum { margin: 0; display: grid; gap: 8px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
dl.sum div { display: flex; justify-content: space-between; gap: 12px; } dl.sum dd { margin: 0; font-weight: 600; }
dl.sum .muted dd { font-weight: 500; }
dl.sum .save { color: var(--ok); }
dl.sum .total { font-size: 20px; font-weight: 750; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); } dl.sum .total dd { font-weight: 750; }
.co-sum .fine { margin: 0; }

/* order view */
.order-view { display: grid; gap: 16px; }
.ok-hero { display: flex; gap: 22px; align-items: center; padding: 28px; border-radius: 22px; background: linear-gradient(135deg, var(--ok-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.ok-hero .eyebrow { color: var(--ok); margin-bottom: 6px; }
.ok-hero h1 { font: 700 32px/1.1 var(--display); letter-spacing: -.03em; } .ok-hero p:last-child { color: var(--muted); margin-top: 6px; }
.ok-check { width: 68px; height: 68px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; animation: pop .5s var(--ease) both; box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 15%, transparent); }
.ok-check .ic { width: 34px; height: 34px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s var(--ease) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.auto { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.auto li { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 15px; background: var(--surface-2); position: relative; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 260ms + 350ms); }
.auto li > .ic:first-child { width: 22px; height: 22px; color: var(--accent); }
.auto li b { display: block; font-size: 13.5px; line-height: 1.3; } .auto li small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.auto li > .ic.ok { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; background: var(--ok); color: #fff; border-radius: 50%; padding: 3px; stroke-width: 3; animation: pop .35s var(--ease) both; animation-delay: calc(var(--i) * 260ms + 650ms); }
.ov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; } .ov-head .eyebrow { margin-bottom: 6px; color: var(--muted); }
.track { padding: 20px 24px; }
.track-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.track-head > span:first-child { display: inline-flex; gap: 8px; align-items: center; } .track-head b::first-letter { text-transform: uppercase; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline li { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--faint); position: relative; }
.timeline li::before { content: ''; position: absolute; top: 13px; left: 28px; right: 0; height: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); position: relative; z-index: 1; }
.timeline i .ic { width: 15px; height: 15px; stroke-width: 3; }
.timeline .done, .timeline .now { color: var(--ink); }
.timeline .done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline .now i { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent); } }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ov-grid > .card { padding: 20px 22px; }
.olines { list-style: none; padding: 0; margin: 12px 0 0; }
.olines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 90px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.olines li:last-child { border-bottom: 0; }
.olines b { font-weight: 650; } .olines small { display: block; color: var(--muted); font-size: 12px; } .olines .q { color: var(--muted); } .olines li > b:last-child { text-align: right; }
.pay-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin: 14px 0 16px; }
.pay-line > span:nth-child(2) { flex: 1; } .pay-line b { display: block; font-size: 14px; } .pay-line small { color: var(--muted); }
.stack { display: grid; gap: 8px; margin-top: 18px; }

/* tables & lists */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; max-width: 64ch; }
.table-card { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); font-size: 12.5px; }
.tbl tr[data-href] { cursor: pointer; transition: background .15s; } .tbl tr[data-href]:hover { background: var(--surface-2); }
.tbl .r { text-align: right; } .tbl td.r .btn { margin-left: 4px; vertical-align: middle; }
.tbl .thumbs .thumb { width: 36px; height: 36px; border-radius: 10px; }
.tbl.compact td { padding: 10px 16px; }
.strong { font-weight: 700; } .tbl a:not(.btn):hover { color: var(--accent-strong); }
.pm { font-weight: 550; } .pm em { font-style: normal; font-weight: 700; font-size: 12.5px; }
.cell-p { display: flex; align-items: center; gap: 10px; } .cell-p .thumb { width: 36px; height: 36px; border-radius: 10px; }
.cell-p b { display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat small { color: var(--muted); font-weight: 550; } .stat b { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; } .stat .bar { margin: 6px 0 2px; }
.stat.warn { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: linear-gradient(var(--bad-soft), var(--surface)); } .stat.warn b { color: var(--bad); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.list-card { overflow: hidden; }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lc-head h2 { font: 700 20px/1.2 var(--display); }
.litems { list-style: none; margin: 0; padding: 0; }
.litems li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 96px; gap: 16px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.litems li:last-child { border-bottom: 0; }
.li-main b { display: block; font-weight: 650; } .li-main small { color: var(--muted); }
.litems .thumb { width: 48px; height: 48px; border-radius: 12px; }
.li-amt { text-align: right; font-variant-numeric: tabular-nums; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acc-grid > .card { padding: 22px; }
.acc-grid > .card.wide { grid-column: 1 / -1; padding: 0; overflow-x: auto; }
.acc-grid > .card.wide .tbl { margin: 0; }
dl.kv { margin: 14px 0 0; display: grid; } dl.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
dl.kv div:last-child { border-bottom: 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 550; }
.users { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 12px; }
.users li { display: flex; gap: 12px; align-items: center; } .users b { display: block; font-size: 14px; } .users small { color: var(--muted); }
.toggles { list-style: none; padding: 0; margin: 10px 0 0; }
.toggles li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.toggles li:last-child { border-bottom: 0; }
.switch { position: relative; flex: none; display: block; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.switch i { display: block; width: 42px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { transform: translateX(18px); }

/* =========================================================
   DOCUMENTS
   ========================================================= */
.docview { min-height: 100svh; background: var(--bg-alt); }
.doc-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.doc-bar > div { display: flex; gap: 6px; align-items: center; }
.doc-stage { padding: 32px 16px 64px; display: flex; flex-direction: column; align-items: center; gap: 28px; overflow-x: auto; }
.doc { --d-ink: #1C1A17; --d-muted: #6E675D; --d-line: #E2DCD2; width: 210mm; max-width: 100%; min-height: 297mm; background: #fff; color: var(--d-ink); padding: 16mm 15mm; box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 30px 60px -30px rgba(0, 0, 0, .35); font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; color-scheme: light; }
.doc .logo { color: var(--d-ink); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.doc-head address { font-style: normal; text-align: right; color: var(--d-muted); font-size: 11.5px; line-height: 1.55; }
.doc-title { display: flex; align-items: center; gap: 18px; margin: 30px 0 4px; }
.doc-title h1 { font: 700 36px/1 var(--display); letter-spacing: -.03em; }
.doc-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #FBF0D9; color: #7A4E0B; font-size: 12px; font-weight: 600; }
.stamp { border: 2.5px solid #2E7D4F; color: #2E7D4F; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; padding: 4px 12px; border-radius: 8px; transform: rotate(-5deg); font-size: 14px; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 22px 0 24px; }
.doc-meta small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 700; color: var(--d-muted); margin-bottom: 4px; }
.doc-meta b { display: block; font-size: 14px; }
.doc-meta dl { margin: 0; } .doc-meta dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px solid var(--d-line); }
.doc-meta dt { color: var(--d-muted); } .doc-meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc-lines th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--d-muted); padding: 8px 6px; border-bottom: 1.5px solid var(--d-ink); }
.doc-lines td { padding: 8px 6px; border-bottom: 1px solid var(--d-line); vertical-align: top; }
.doc-lines td small { display: block; color: var(--d-muted); font-size: 11px; }
.doc-lines .r { text-align: right; }
.doc-totals { display: flex; justify-content: flex-end; margin-top: 16px; }
.doc-totals dl { margin: 0; width: 320px; font-variant-numeric: tabular-nums; }
.doc-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; } .doc-totals dd { margin: 0; font-weight: 600; } .doc-totals dt { color: var(--d-muted); }
.doc-totals .total { border-top: 1.5px solid var(--d-ink); margin-top: 6px; padding-top: 8px; font-size: 16px; } .doc-totals .total dt { color: var(--d-ink); font-weight: 700; } .doc-totals .total dd { font-weight: 800; }
.doc-pay { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: #F4F1EC; }
.doc-pay .ic { width: 18px; height: 18px; margin-top: 1px; color: #2E7D4F; }
.doc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--d-line); color: var(--d-muted); font-size: 10.5px; }
.pb-id { text-align: right; } .pb-id small { display: block; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 11px; color: var(--d-muted); }
.pb-id b { display: block; font: 700 30px/1.1 var(--mono); letter-spacing: -.02em; }
.barcode { width: 190px; height: 38px; fill: var(--d-ink); margin-top: 6px; }
.pb-order { margin: 18px 0 0; font-size: 11.5px; color: var(--d-muted); }
.pb-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1.5px solid var(--d-ink); border-radius: 10px; margin: 8px 0 4px; overflow: hidden; }
.pb-strip > div { padding: 8px 10px; border-left: 1px solid var(--d-line); } .pb-strip > div:first-child { border-left: 0; }
.pb-strip small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--d-muted); } .pb-strip b { font-size: 13.5px; }
.pakbon .doc-meta p { margin: 0 0 8px; }
.zone { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 4px; }
.zone small { margin-left: auto; color: var(--d-muted); letter-spacing: .04em; }
.z-chill { color: #1F6FAE; } .z-frozen { color: #4A55B8; } .z-dry { color: #8A6430; }
.pick { table-layout: fixed; } .pick th:nth-child(2) { width: 74px; } .pick th:nth-child(3) { width: 96px; } .pick th:nth-child(5) { width: 140px; } .pick th:nth-child(6) { width: 62px; } .pick th:nth-child(7) { width: 52px; }
.pick .cb { width: 26px; } .pick .cb i { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--d-ink); border-radius: 3px; vertical-align: middle; }
.pick .qty { font-size: 15px; }
.sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 28px; }
.sign div { border-bottom: 1px solid var(--d-ink); height: 44px; position: relative; } .sign span { position: absolute; bottom: -18px; left: 0; font-size: 10.5px; color: var(--d-muted); }

/* =========================================================
   WAREHOUSE
   ========================================================= */
.wh { min-height: 100svh; }
.wh-bar { background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 20; }
.wh-bar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.wh-bar .logo .wm { font-size: 20px; }
.wh-tag { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 600; color: #FFC66B; }
.wh-date { margin-left: auto; color: var(--night-muted); font-size: 14px; }
.wh-date::first-letter, .wh-day::first-letter { text-transform: uppercase; }
.wh-bar .btn.ghost { background: transparent; color: var(--night-ink); border-color: rgba(255, 255, 255, .25); }
.wh-bar .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.wh-main { padding-top: 30px; padding-bottom: 80px; }
.wh-main h1 { text-transform: none; }
.wh-main h1::first-letter { text-transform: uppercase; }
.wh-day { font: 700 20px/1.2 var(--display); margin: 32px 0 12px; }
.wh-route { margin-bottom: 16px; }
.wr-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wr-head .ic { color: var(--accent); }
.wh-route td .store { margin: 2px 4px 2px 0; }
.wh-route .tbl { table-layout: fixed; min-width: 860px; }
.wh-route th:nth-child(1) { width: 64px; } .wh-route th:nth-child(2) { width: 110px; } .wh-route th:nth-child(4) { width: 270px; } .wh-route th:nth-child(5) { width: 70px; } .wh-route th:nth-child(6) { width: 120px; } .wh-route th:nth-child(7) { width: 140px; } .wh-route th:nth-child(8) { width: 120px; }
@media (max-width: 900px) { .wh-route .tbl { min-width: 0; } .wh-route th:nth-child(2) { width: 84px; } .wh-route th:nth-child(1) { width: 44px; } .wh-route th:nth-child(5) { width: 52px; } .wh-route th:nth-child(7) { width: 116px; } .wh-route th:nth-child(8) { width: 56px; } }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-size: 12.5px; font-weight: 650; white-space: nowrap; transition: all .2s; }
.chip-btn .ic { width: 14px; height: 14px; }
.chip-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
tr.fresh td { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
em.new { font-style: normal; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }

/* =========================================================
   MODAL & TOAST
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(14, 12, 10, .55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-panel { position: relative; width: min(460px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s, transform .35s var(--ease); }
.modal.open .modal-scrim { opacity: 1; } .modal.open .modal-panel { opacity: 1; transform: none; }
.pm-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px 20px; border-bottom: 1px solid var(--line); }
.pm-head > div { flex: 1; } .pm-head small { color: var(--muted); display: block; } .pm-head b { display: block; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; } .pm-head > div span { color: var(--muted); font-size: 13px; }
.pm-body { padding: 4px 20px 20px; }
.ideal2 { display: flex; gap: 18px; align-items: center; padding: 18px 0; }
.ideal2 .qr { width: 132px; height: 132px; flex: none; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ideal2 .qr svg { width: 100%; height: 100%; display: block; }
.ideal2 b { display: block; font-size: 16px; } .ideal2 p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.pm-body .fine { justify-content: center; margin-top: 12px; }
.cardform { display: grid; gap: 14px; padding-top: 16px; }
.pm-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 0 30px; text-align: center; }
.pm-wait small { color: var(--muted); }
.pm-wait.ok > .ic { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.6; animation: pop .4s var(--ease); }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 95; transform: translate(0, 20px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: none; }
.toast > .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.toast small { display: block; font-weight: 500; opacity: .7; font-size: 12.5px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .appbar .brand { width: auto; }
  .prow { grid-template-columns: 56px minmax(0, 1fr) 170px 180px; }
  .auto { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 112px; }
  .hero-card { justify-self: start; }
  .cat-grid, .steps, .team { grid-template-columns: 1fr 1fr; }
  .pay-grid, .del-grid, .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .co-grid, .ov-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
  .publinks { display: none; }
}
@media (max-width: 900px) {
  .pshell { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .pmain { padding: 18px 16px 170px; }
  .appbar-in { padding: 0 12px; gap: 8px; height: 60px; }
  .appbar .search { display: none; }
  .m-search { display: flex; max-width: none; margin: 4px 0 6px; }
  .cat-bar { top: 60px; }
  .del-chip { padding: 5px 10px 5px 9px; gap: 8px; }
  .hide-s { display: none !important; }
  .show-s { display: flex !important; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line); padding: 6px 4px max(6px, env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent-strong); }
  .tabbar em { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; font-size: 10.5px; }
  .mcart { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 44; transform: translateY(140%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; pointer-events: none; }
  .mcart.show { transform: none; opacity: 1; pointer-events: auto; }
  .mcart button { width: 100%; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 18px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
  .mcart button > span { display: inline-flex; align-items: center; gap: 8px; }
  .mcart button > span b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12.5px; }
  .mcart button > b { font-size: 16px; }
  .toast { left: 12px; right: 12px; max-width: none; bottom: calc(140px + env(safe-area-inset-bottom)); }
  .co-mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 44; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .co-mbar small { display: block; color: var(--muted); font-size: 12px; } .co-mbar b { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .co-mbar .btn { height: 48px; }
  .quick { grid-template-columns: 1fr; }
  .del-banner { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
  .db-count { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .db-count b { font-size: 22px; }
  .db-main b { font-size: 18px; }
  .greet h1, .co h1, .page-head h1, .ov-head h1 { font-size: 28px; }
  .prow { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; }
  .prow .thumb.lg { width: 56px; height: 56px; grid-row: span 2; }
  .pr-price { grid-column: 2; } .prow .qtybox { grid-column: 1 / -1; }
  .pr-price .price .per { flex-basis: auto; margin-left: auto; }
  .paygrid, .methods { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .auto { grid-template-columns: 1fr 1fr; }
  .ok-hero { padding: 20px; gap: 16px; align-items: flex-start; } .ok-hero h1 { font-size: 24px; } .ok-check { width: 52px; height: 52px; } .ok-check .ic { width: 26px; height: 26px; }
  .olines li { grid-template-columns: 44px minmax(0, 1fr) auto; } .olines .q { display: none; }
  .litems li { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 12px 16px; } .li-amt { display: none; }
  .litems .stepper.sm { width: 138px; }
  .wh-date { display: none; }
  .wh-bar-in .bar-act { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-facts { background-size: calc(100% - 32px) 1px; }
  .pubnav-in { height: 64px; gap: 8px; } .pubnav-act { margin-left: auto; } .pubnav-act .btn { height: 38px; padding: 0 12px; }
  .pubnav-act .btn.primary span { display: none; }
  .logo .mark { width: 30px; height: 30px; } .logo .wm { font-size: 19px; }
  .hero-grid { padding-top: 96px; gap: 32px; }
  .hero-media img { object-position: 76% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(12, 10, 8, .55) 0%, rgba(12, 10, 8, .82) 46%, rgba(12, 10, 8, .95) 100%); }
  .hero-card { display: none; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-facts b { font-size: 24px; }
  .hero-cta .btn { flex: 1; }
  .sec { padding: 76px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p:not(.eyebrow), .del-grid p:not(.eyebrow), .apply-grid > div > p:not(.eyebrow), .pay-grid > div > p:not(.eyebrow) { font-size: 16px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team-media img { aspect-ratio: 16/10; }
  .welcome { flex-wrap: wrap; } .wl-act { width: 100%; justify-content: space-between; padding-left: 56px; }
  .ideal2 { flex-direction: column; text-align: center; }
  .pe-seg button { padding: 0 9px; }
  .ct-body { padding: 12px 12px 14px; } .ct-body b { font-size: 16px; } .ct-body small { font-size: 12px; } .cat-tile > .ic { display: none; }
  .steps, .team { grid-template-columns: 1fr; }
  .person { padding: 20px; }
  .routes li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .f2 { grid-template-columns: 1fr; }
  .apply { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .login { grid-template-columns: 1fr; } .login-media { display: none; } .login-panel { padding: 18px 16px 28px; } .login-body h1 { font-size: 32px; }
  .appbar .logo .wm { display: none; }
  .del-chip { margin-left: 0; flex: 1; min-width: 0; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pbody { padding: 10px 11px 12px; gap: 6px; }
  .pcard h3 { font-size: 14px; }
  .pcard .price b { font-size: 17px; } .pcard .price .per { margin-left: 0; flex-basis: 100%; font-size: 11.5px; }
  .pcard .pack { font-size: 12.5px; }
  .pcard .seg button { font-size: 11px; padding: 4px 6px; }
  .pcard .stepper { grid-template-columns: 36px 1fr 36px; height: 40px; }
  .pcard .stepper label span { display: none; }
  .pcard .btn.add { height: 40px; font-size: 13.5px; }
  .pcard .tier { font-size: 11.5px; }
      .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; } .stat b { font-size: 20px; }
  .tbl th, .tbl td { padding: 11px 10px; } .tbl { font-size: 13.5px; }
  .tbl.cards thead { display: none; }
  .tbl.cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .tbl.cards tbody tr:last-child { border-bottom: 0; }
  .tbl.cards td { display: block; padding: 0; border: 0; text-align: left; }
  .tbl.cards td.hide-s { display: none; }
  .tbl.cards .c-main { grid-column: 1; grid-row: 1; } .tbl.cards .c-amt { grid-column: 2; grid-row: 1; text-align: right; font-size: 15px; }
  .tbl.cards .c-sub { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; } .tbl.cards .c-status { grid-column: 2; grid-row: 2; text-align: right; }
  .tbl.cards .c-pay { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--muted); } .tbl.cards .c-act { grid-column: 2; grid-row: 3; text-align: right; }
  .tbl.cards .c-act:empty { display: none; }
  .tbl.cards td small { display: inline; } .tbl.cards .c-main small { display: block; }
  .show-m { display: inline; } .hide-m { display: none; }
  .co-sec { padding: 18px 16px 20px; } .co-sum { padding: 18px 16px; }
  dl.kv div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li span { font-size: 11.5px; }
  .doc-stage { padding: 16px 8px 40px; }
  .doc { padding: 22px 18px; min-height: 0; font-size: 11.5px; }
  .doc-head { flex-direction: column; gap: 14px; } .doc-head address, .pb-id { text-align: left; }
  .doc-meta { grid-template-columns: 1fr; gap: 16px; }
  .pb-strip { grid-template-columns: repeat(3, 1fr); } .pb-strip > div:nth-child(4) { border-left: 0; } .pb-strip > div:nth-child(n+4) { border-top: 1px solid var(--d-line); }
  .doc-lines th, .doc-lines td { padding: 6px 4px; }
  .doc-lines th:first-child, .doc-lines td:first-child { display: none; }
  .pick th:nth-child(2), .pick td:nth-child(2) { display: table-cell; }
  .pick th:nth-child(3), .pick td:nth-child(3), .pick th:nth-child(5), .pick td:nth-child(5) { display: none; }
  .doc-totals dl { width: 100%; }
  .doc-bar b { display: none; }
  .wh-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .doc-bar { display: none; }
  .docview { background: #fff; }
  .doc-stage { padding: 0; gap: 0; display: block; }
  .doc { box-shadow: none; width: 210mm; min-height: 297mm; break-after: page; margin: 0; }
  .doc:last-child { break-after: auto; }
}
