/* O-Mart — "Evergreen" design language.
   Brand palette is the foundation: forest #174B38, cream #F8F7F0, ink #202A24, marigold #E7AE43, sage #EBEFE6.
   Everything else is a tone derived from those five.
   Structure: tokens → base → chrome → primitives → screens → chat/admin → motion. */

/* ============ 1. Tokens ============ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* Brand palette (unchanged) */
  --base: #174B38;
  --cream: #F8F7F0;
  --ink: #202A24;
  --gold: #E7AE43;
  --hero: #EBEFE6;
  /* Forest scale, derived from --base */
  --forest-950: #0D2A1F; --forest-900: #123D2E; --forest-800: var(--base); --forest-700: #1F5E47; --forest-600: #2A7458;
  --forest-500: #3E8A6B; --forest-300: #9CC7B2; --forest-200: #C9E0D4; --forest-100: #E5EFE8; --forest-50: #F1F6F2;
  /* Marigold scale, derived from --gold */
  --gold-700: #8A5A10; --gold-600: #B47D23; --gold-500: var(--gold); --gold-300: #F2CF8A; --gold-100: #FCEFD7; --gold-50: #FEF8EC;
  /* Roles */
  color-scheme: light;
  --bg: var(--cream);
  --surface: #FFFEFA;
  --surface-2: #F4EEDF;
  --surface-sunken: #F1EFE6;
  --line: #E3DFD2;
  --line-strong: #D3CDBC;
  --hairline: rgba(32, 42, 36, .08);
  --text: var(--ink);
  --text-2: #3B463F;
  --muted: #6A7268;
  --subtle: #8C928A;
  --green: var(--base);
  --green-600: var(--forest-900);
  --green-50: var(--forest-100);
  --marigold: var(--gold);
  --marigold-50: var(--gold-100);
  --marigold-700: var(--gold-700);
  --danger: #B3261E;
  --danger-50: #FBE9E7;
  --ok: #2E7D4F;
  --info: #1F4E8C;
  --info-50: #E3ECF7;
  --focus: var(--forest-700);
  --ring: 0 0 0 3px rgba(31, 94, 71, .26);
  /* Light: two faint glows over the cream canvas ("morning market light") */
  --canvas-light: radial-gradient(1100px 520px at 8% -8%, rgba(229, 239, 232, .95), transparent 62%),
                  radial-gradient(900px 480px at 100% -12%, rgba(252, 239, 215, .8), transparent 60%);
  --brand-gradient: linear-gradient(135deg, var(--forest-700) 0%, var(--base) 48%, var(--forest-950) 100%);
  --button-gradient: linear-gradient(180deg, var(--forest-700), var(--base));
  --gold-gradient: linear-gradient(135deg, #F3C569, var(--gold) 55%, #D9962B);
  /* Shape */
  --r-xs: 6px; --r-sm: 10px; --radius: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  /* Elevation: green-tinted, layered, with a top highlight on raised surfaces */
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  --e1: 0 1px 2px rgba(18, 61, 46, .05), 0 1px 1px rgba(18, 61, 46, .03);
  --e2: 0 1px 2px rgba(18, 61, 46, .05), 0 8px 20px -6px rgba(18, 61, 46, .10);
  --e3: 0 2px 6px rgba(18, 61, 46, .06), 0 22px 48px -12px rgba(18, 61, 46, .24);
  --shadow: var(--e2);
  --shadow-up: 0 -1px 0 var(--hairline), 0 -10px 30px -8px rgba(18, 61, 46, .16);
  --shadow-pop: var(--e3);
  --shadow-brand: 0 1px 1px rgba(13, 42, 31, .25), 0 6px 16px -4px rgba(23, 75, 56, .45);
  /* Rhythm */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --tap: 44px;
  --nav-h: 88px;            /* floating dock (66px) + 10px inset + gap */
  --header-h: 108px;
  --content: 1200px;
  --gutter: 16px;
  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-base: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.6rem, 3.4vw, 2.25rem); --fs-3xl: clamp(2rem, 5vw, 3.75rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  font-size: 16px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ink);
  --surface: #27352D;
  --surface-2: #303F35;
  --surface-sunken: #222E27;
  --line: #3B4A40;
  --line-strong: #4D5E52;
  --hairline: rgba(255, 255, 255, .07);
  --text: var(--cream);
  --text-2: #DDE4DC;
  --muted: #BFCDC2;
  --subtle: #95A59A;
  --green: #AFD3B9;
  --green-600: #245D48;
  --green-50: #30483B;
  --hero: #293D32;
  --marigold-50: #433B29;
  --marigold-700: #F1C571;
  --danger: #F7A79F;
  --danger-50: #492F2B;
  --ok: #A9DFB7;
  --info: var(--green);
  --info-50: var(--green-50);
  --focus: var(--green);
  --ring: 0 0 0 3px rgba(175, 211, 185, .3);
  --canvas-light: radial-gradient(1000px 520px at 6% -10%, rgba(47, 92, 70, .45), transparent 62%),
                  radial-gradient(800px 460px at 100% -14%, rgba(231, 174, 67, .08), transparent 60%);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .05);
  --e1: 0 1px 2px rgba(0, 0, 0, .25);
  --e2: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 24px -8px rgba(0, 0, 0, .45);
  --e3: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 56px -12px rgba(0, 0, 0, .6);
  --shadow-up: 0 -1px 0 var(--hairline), 0 -12px 32px -10px rgba(0, 0, 0, .55);
  --shadow-brand: 0 1px 1px rgba(0, 0, 0, .4), 0 8px 20px -6px rgba(0, 0, 0, .5);
}

/* ============ 2. Base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-anchor: none; scroll-padding-top: calc(var(--header-h) + 8px); scroll-padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--canvas-light), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font); font-size: var(--fs-base); font-optical-sizing: auto; font-feature-settings: "cv11", "ss03";
  line-height: 1.5; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
img { max-width: 100%; }
::selection { background: var(--forest-200); color: var(--forest-950); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--e3); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.ui-icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; flex: none; }
.tnum, .line, .ci-total, .unit-price, .price-lg, .order-total, .checkout-total { font-variant-numeric: tabular-nums; }

/* ============ 3. Chrome ============ */
/* Header: frosted glass lives on a pseudo-element so the fixed dock inside it is not trapped
   (backdrop-filter on the header itself would become the dock's containing block). */
.topbar { position: sticky; top: 0; z-index: 20; isolation: isolate; }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--hairline); }
.topbar-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "search search";
  align-items: center; gap: 10px 10px; max-width: var(--content); margin: 0 auto; padding: 10px var(--gutter);
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.04em; }
.brand-mark { display: block; flex: none; width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-brand); }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env-banner { flex: none; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); background: var(--gold-100); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: var(--r-pill); padding: 2px 7px; }
:root[data-theme="dark"] .env-banner { color: var(--marigold-700); background: var(--marigold-50); }
.topbar-actions { grid-area: tools; display: flex; align-items: center; gap: 6px; min-width: 0; }
.district-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 136px; min-height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--e1); color: var(--text); font-size: .8rem; font-weight: 650; cursor: pointer; }
.district-pill .ui-icon { width: 15px; height: 15px; color: var(--green); }
.district-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { position: relative; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-sunken); }
.lang-btn { position: relative; min-width: 32px; min-height: 28px; padding: 0 7px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.lang-btn.on { background: var(--surface); color: var(--text); box-shadow: var(--e1), var(--highlight); }
:root[data-theme="dark"] .lang-btn.on { background: var(--green-50); color: var(--text); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--e1); color: var(--text-2); cursor: pointer; }
.theme-toggle .ui-icon { width: 17px; height: 17px; }
.theme-toggle:hover, .district-pill:hover { border-color: var(--line-strong); background: var(--surface); color: var(--green); }
/* Global search */
.global-search { grid-area: search; position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--e1), var(--highlight);
  max-height: 60px; overflow: hidden; transition: max-height .25s var(--ease), opacity .2s var(--ease), margin .25s var(--ease), padding .25s var(--ease), border-width .2s, box-shadow .2s; }
.global-search:focus-within { border-color: var(--forest-500); box-shadow: var(--ring); }
.global-search-icon { display: grid; color: var(--muted); }
.global-search:focus-within .global-search-icon { color: var(--green); }
.global-search-input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; padding: 0 6px; font-size: 1rem; box-shadow: none !important; }
.global-search-input:focus-visible { outline: none; }
.global-search-input::placeholder { color: var(--subtle); }
.global-search-go { width: 40px; min-height: 40px; padding: 0; border-radius: var(--r-sm); }
.topbar.compact .global-search { max-height: 0; opacity: 0; margin-top: -10px; padding-block: 0; border-width: 0; box-shadow: none; }
/* Floating dock (phones) */
.bottomnav { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px;
  display: flex; justify-content: space-around; gap: 2px; padding: 6px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid var(--hairline); box-shadow: var(--e3), var(--highlight); }
.nav-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border-radius: 16px; text-decoration: none; color: var(--muted); font-size: .66rem; font-weight: 650; letter-spacing: 0; }
.nav-item.on { color: var(--green); background: var(--green-50); }
.nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 24px; }
.nav-icon .ui-icon { width: 21px; height: 21px; transition: transform .25s var(--ease-spring); }
.nav-item.on .nav-icon .ui-icon { stroke-width: 2.1; transform: translateY(-1px); }
.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.badge { position: absolute; top: -6px; left: calc(50% + 6px); display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--gold-gradient); color: var(--ink); font-size: .64rem; font-weight: 800; box-shadow: 0 0 0 2px var(--surface), 0 2px 6px -1px rgba(138, 90, 16, .5); }
.badge.inline { position: static; display: inline-grid; margin-left: 6px; box-shadow: none; }
.bottomnav a:focus-visible { outline-offset: -3px; }
main { max-width: var(--content); margin: 0 auto; padding: 18px var(--gutter) calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); outline: none; }

@media (max-width: 519px) { .topbar .theme-toggle { display: none; } }
@media (max-width: 379px) { .brand-name { display: none; } :root { --gutter: 12px; } }
@media (min-width: 800px) {
  :root { --nav-h: 0px; --header-h: 70px; --gutter: 24px; }
  .topbar-row { grid-template-columns: auto minmax(220px, 1fr) auto auto; grid-template-areas: "brand search nav tools"; gap: 18px; padding: 12px var(--gutter); }
  .topbar-row:not(:has(.global-search)) { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools"; }
  .brand { flex: none; }
  .global-search { max-width: 520px; }
  .topbar.compact .global-search { max-height: 60px; opacity: 1; margin: 0; padding: 4px 4px 4px 14px; border-width: 1px; box-shadow: var(--e1), var(--highlight); }
  /* Desktop nav: a segmented pill group with a raised active item */
  .topbar-row .bottomnav { grid-area: nav; position: static; height: auto; padding: 4px; gap: 2px; justify-self: center; border-radius: var(--r-pill);
    background: var(--surface-sunken); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-item { flex: 0 1 auto; flex-direction: row; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: .86rem; color: var(--text-2); }
  .nav-item:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
  .nav-item.on { background: var(--surface); color: var(--text); box-shadow: var(--e1), var(--highlight); }
  .nav-item.on .nav-icon .ui-icon { color: var(--green); transform: none; }
  .nav-icon { height: auto; }
  .nav-icon .ui-icon { width: 17px; height: 17px; }
  .badge { position: static; margin-left: 5px; box-shadow: none; }
  .nav-item[data-section="home"] { display: none; } /* the logo is the home link on wide screens */
  .district-pill { max-width: 180px; min-height: 38px; }
  main { padding: 28px var(--gutter) 56px; }
}
@media (min-width: 800px) and (max-width: 1359px) {
  .nav-label { display: none; }
  .nav-item { padding: 0 12px; }
  .env-banner { display: none; }
}

/* ============ 4. Primitives ============ */
/* Typography */
.page-title { font-size: var(--fs-2xl); font-weight: 780; letter-spacing: -.04em; margin: 2px 0 16px; text-wrap: balance; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head .page-title { margin: 0; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 720; letter-spacing: -.02em; margin: 26px 0 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.big { font-size: 1.1rem; font-weight: 720; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; gap: 8px; }
.row.end { justify-content: flex-end; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.dim { opacity: .6; }
.err-text { color: var(--danger); }
.warn-text { color: var(--marigold-700); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 650; }
.hint { font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 8px; }
.ref { font-family: var(--mono); font-size: .92em; font-weight: 650; letter-spacing: .02em; }
/* Surfaces */
.card, .group-card, .checkout-card, .order-card, .offer-card, .review-group {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin: 10px 0; }
.card { box-shadow: var(--e2), var(--highlight); }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--e3); transform: translateY(-1px); }
/* Money lines */
.line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.line > span:first-child { color: var(--text-2); }
.line.strong { font-weight: 720; }
.line.strong > span:first-child { color: var(--text); }
.line.grand { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.line.grand > span:first-child { color: var(--text); }
/* Tags, sizes, statuses */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 720; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-sunken); color: var(--muted); border: 1px solid var(--line); margin-left: 6px; vertical-align: middle; letter-spacing: .01em; }
.tag.accent { background: var(--gold-gradient); color: var(--ink); border-color: transparent; box-shadow: 0 2px 8px -3px rgba(180, 125, 35, .55); }
.size-tag { display: inline-block; font-size: .74rem; font-weight: 720; background: var(--forest-50); color: var(--forest-700); border: 1px solid var(--forest-200); padding: 0 7px; border-radius: var(--r-xs); white-space: nowrap; vertical-align: 1px; line-height: 1.6; }
:root[data-theme="dark"] .size-tag { background: var(--green-50); color: var(--green); border-color: transparent; }
.size-tag.lg { font-size: .88rem; padding: 1px 9px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 750; padding: 3px 10px 3px 8px; border-radius: var(--r-pill); white-space: nowrap; background: var(--surface-sunken); border: 1px solid transparent; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.s-pending { background: var(--marigold-50); color: var(--marigold-700); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.s-pending::before { animation: pulse-dot 2s ease-in-out infinite; }
.s-confirmed, .s-packing, .s-out_for_delivery { background: var(--info-50); color: var(--info); border-color: color-mix(in srgb, var(--info) 15%, transparent); }
.s-delivered { background: var(--green-50); color: var(--green); border-color: color-mix(in srgb, var(--green) 15%, transparent); }
.s-rejected, .s-cancelled { background: var(--danger-50); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 15%, transparent); }
.sup-pending { background: var(--marigold-50); color: var(--marigold-700); }
.sup-approved { background: var(--green-50); color: var(--green); }
.sup-suspended, .sup-rejected { background: var(--danger-50); color: var(--danger); }
.chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); color: var(--muted); font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.chip.on .chip-count { background: color-mix(in srgb, var(--cream) 20%, transparent); color: inherit; }
/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--tap); padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--e1), var(--highlight);
  color: var(--text); font-weight: 680; font-size: .92rem; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .2s var(--ease), transform .15s var(--ease); }
.btn:hover { border-color: var(--line-strong); box-shadow: var(--e2), var(--highlight); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); box-shadow: var(--e1); }
.btn.primary { background: var(--button-gradient); border-color: var(--forest-900); color: var(--cream); box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn.primary:hover { background: linear-gradient(180deg, var(--forest-600), var(--forest-800)); box-shadow: 0 1px 1px rgba(13, 42, 31, .3), 0 10px 22px -6px rgba(23, 75, 56, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .btn.primary { border-color: #3E6B55; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 6px 16px -6px rgba(179, 38, 30, .5); }
.btn.danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.btn.danger-outline:hover { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.btn.sm { min-height: 38px; padding: 6px 13px; font-size: .84rem; border-radius: var(--r-sm); }
.btn.lg { min-height: 54px; font-size: 1rem; border-radius: var(--radius); padding-inline: 22px; }
.btn.block { display: flex; width: 100%; margin: 10px 0; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: saturate(.6); }
.btn .ui-icon { width: 17px; height: 17px; }
.btn.primary .ui-icon:last-child:not(:first-child) { transition: transform .2s var(--ease); }
.btn.primary:hover .ui-icon:last-child:not(:first-child) { transform: translateX(3px); }
:root[data-theme="dark"] .btn.danger { color: var(--ink); }
@media (pointer: coarse) { .btn.sm { min-height: var(--tap); } }
.icon-btn { display: grid; place-items: center; background: none; border: 0; padding: 8px; cursor: pointer; min-width: 40px; min-height: 40px; border-radius: var(--r-sm); color: var(--text-2); }
.icon-btn:hover { background: var(--surface-sunken); }
.link { background: none; border: 0; color: var(--green); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; padding: 4px 0; font-size: var(--fs-sm); font-weight: 650; min-height: 36px; }
.link:hover { text-decoration-color: currentColor; }
.link.danger { color: var(--danger); }
.link-strong { color: var(--green); font-weight: 700; text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); padding: 6px 10px 6px 0; min-height: 36px; transition: color .15s; }
.back:hover { color: var(--green); }
/* Tooltip for icon-only controls: [data-tip] */
[data-tip] { position: relative; }
/* Out of layout (display: none) until hovered: an invisible tooltip near the screen edge would otherwise widen
   the page, and phones would then zoom the whole layout out. Touch devices never show them. */
[data-tip]::after { display: none; content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); z-index: 50; transform: translate(-50%, -4px); padding: 5px 9px; border-radius: 8px;
  background: var(--ink); color: var(--cream); font-size: .72rem; font-weight: 650; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s var(--ease); box-shadow: var(--e2); }
:root[data-theme="dark"] [data-tip]::after { background: var(--cream); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { [data-tip]:hover::after, [data-tip]:focus-visible::after { display: block; opacity: 1; transform: translate(-50%, 0); } }
.topbar-actions [data-tip]::after { left: auto; right: 0; transform: none; } /* right-edge controls open their tooltip leftwards */
/* Notices */
.notice { display: block; width: 100%; text-align: left; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: .9rem; }
.notice small { display: block; margin-top: 2px; }
.notice.warn { background: var(--marigold-50); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.notice.err { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.notice-action { cursor: pointer; font-weight: 700; color: var(--green); }
/* Empty / error / loading states */
.state { display: grid; justify-items: center; text-align: center; padding: 48px 20px; color: var(--muted); }
.state-icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(180deg, var(--surface), var(--forest-50)); border: 1px solid var(--forest-200); box-shadow: var(--e2), var(--highlight); }
.state-icon::after { content: ""; position: absolute; inset: -10px; border-radius: 30px; border: 1px dashed var(--forest-200); opacity: .7; }
:root[data-theme="dark"] .state-icon { background: var(--green-50); border-color: transparent; }
:root[data-theme="dark"] .state-icon::after { border-color: var(--line); }
.state-icon .ui-icon, .success-icon .ui-icon { width: 30px; height: 30px; color: var(--green); }
.state.error .state-icon { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.state.error .state-icon::after { border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.state.error .state-icon .ui-icon { color: var(--danger); }
.state-title { font-weight: 750; color: var(--text); font-size: 1.08rem; letter-spacing: -.02em; margin: 20px 0 4px; }
.state p { margin: 2px 0; max-width: 40ch; }
.state .btn { margin-top: 18px; }
.spinner { width: 28px; height: 28px; margin: 0 auto 8px; border: 2.5px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Skeleton loading (shown while a view loads) */
.skeleton { display: grid; gap: 12px; padding: 4px 0; }
.skeleton-title { width: 44%; height: 30px; border-radius: 10px; }
.skeleton-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.skeleton-row > span:first-child { width: 64px; height: 64px; border-radius: 12px; }
.skeleton-lines { display: grid; gap: 8px; }
.skeleton-lines span { height: 11px; border-radius: 6px; }
.skeleton-lines span:nth-child(1) { width: 38%; }
.skeleton-lines span:nth-child(2) { width: 78%; height: 14px; }
.skeleton-lines span:nth-child(3) { width: 52%; }
.skeleton :is(.skeleton-title, .skeleton-row > span:first-child, .skeleton-lines span) {
  background: linear-gradient(90deg, var(--surface-sunken) 0%, var(--surface-2) 40%, var(--surface-sunken) 80%) 0 0 / 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* Forms */
.form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label, legend { font-weight: 650; font-size: var(--fs-sm); color: var(--text-2); }
.field small.muted { font-size: .78rem; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(18, 61, 46, .04); transition: border-color .15s, box-shadow .2s var(--ease), background-color .15s; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--line-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--forest-500); box-shadow: var(--ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-sunken); color: var(--muted); }
textarea { resize: vertical; line-height: 1.45; }
select { cursor: pointer; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236A7268' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select:disabled { cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--green); flex: none; box-shadow: none; cursor: pointer; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent) !important; }
.field-error { display: flex; gap: 4px; color: var(--danger); font-size: var(--fs-sm); font-weight: 550; }
.field-error:empty { display: none; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 8px 2px; min-height: var(--tap); font-size: .9rem; cursor: pointer; }
.roles { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 4px 0 12px; display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--e1);
  color: var(--text-2); font-size: .85rem; font-weight: 650; white-space: nowrap; text-decoration: none; cursor: pointer; scroll-snap-align: start; transition: background-color .18s, border-color .18s, color .18s, box-shadow .2s; }
.chip:not(.on):hover { border-color: var(--line-strong); color: var(--text); box-shadow: var(--e2); }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 0 6px 14px -6px rgba(32, 42, 36, .5); }
:root[data-theme="dark"] .chip.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@media (pointer: coarse) { .chip { min-height: 42px; } }
/* Stepper */
.stepper { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-sunken); box-shadow: inset 0 1px 2px rgba(18, 61, 46, .05); }
.step { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--surface); box-shadow: var(--e1), var(--highlight); color: var(--green); font-size: 1.3rem; font-weight: 600; line-height: 1; cursor: pointer; transition: transform .12s var(--ease), background-color .15s; }
.step:hover { background: var(--forest-50); }
:root[data-theme="dark"] .step:hover { background: var(--green-50); }
.step:active { transform: scale(.92); }
.qty-input { width: 52px; min-height: 40px; height: 40px; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; text-align: center; font-weight: 780; font-size: 1.02rem; padding: 0; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty-input:focus-visible { outline: 2px solid var(--focus); border-radius: 8px; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Progress (minimum order) */
.progress { height: 8px; background: var(--surface-sunken); border-radius: var(--r-pill); overflow: hidden; margin-top: 8px; box-shadow: inset 0 1px 2px rgba(18, 61, 46, .08); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--forest-600), var(--base)); border-radius: var(--r-pill); transition: width .5s var(--ease); }
/* Segmented tabs (seller workspace) */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunken); margin: 10px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; min-height: 40px; padding: 6px 10px; text-decoration: none; color: var(--muted); font-weight: 680; font-size: .86rem; border-radius: 11px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: color .15s, background-color .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: var(--surface); box-shadow: var(--e1), var(--highlight); }
.tab.on .ui-icon { color: var(--green); }
.tab .badge { background: var(--gold-gradient); color: var(--ink); }
@media (max-width: 559px) {
  .tab { flex-direction: column; gap: 2px; font-size: .68rem; min-height: 52px; padding: 6px 4px; }
  .tab .ui-icon { width: 20px; height: 20px; }
  .tab .badge.inline { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
}
/* Sheet (dialog) */
html:has(dialog.sheet[open]:not(.closing)) { overflow: hidden; }
dialog.sheet { position: fixed; inset: auto 0 0; margin: 0 auto; color: var(--text); background: var(--surface); width: min(100%, 640px); max-width: none; max-height: min(90dvh, 820px); overflow: hidden;
  border: 1px solid var(--hairline); border-radius: 26px 26px 0 0; padding: 0; box-shadow: var(--e3), var(--highlight); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .32s var(--ease); }
dialog.sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--r-pill); background: var(--line-strong); }
dialog.sheet::backdrop { background: rgba(13, 42, 31, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .25s ease; }
@keyframes sheet-up { from { transform: translateY(48px); opacity: .4; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-head { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.15rem; margin: 0; overflow-wrap: anywhere; letter-spacing: -.025em; }
.sheet-close { flex: none; width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: var(--surface-sunken); color: var(--muted); }
.sheet-close:hover { background: var(--line); color: var(--text); }
.sheet-close .ui-icon { width: 16px; height: 16px; }
.sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
.sheet-body > p:first-child { margin-top: 0; }
.district-search { margin-bottom: 12px; }
.district-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.district-opt { display: flex; align-items: center; gap: 8px; min-height: 50px; min-width: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--e1); border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 650; text-align: start; transition: border-color .15s, background-color .15s; }
.district-opt .ui-icon { color: var(--muted); }
.district-opt span { flex: 1; overflow-wrap: anywhere; }
.district-opt:hover { border-color: var(--line-strong); }
.district-opt.selected { border-color: var(--forest-500); background: var(--forest-50); color: var(--green); box-shadow: var(--ring); }
.district-opt.selected .ui-icon { color: var(--green); }
:root[data-theme="dark"] .district-opt.selected { background: var(--green-50); }
@media (min-width: 720px) {
  .district-list { grid-template-columns: 1fr 1fr 1fr; }
  dialog.sheet { inset: 0; margin: auto; width: min(calc(100% - 32px), 580px); border-radius: var(--r-xl); }
  dialog.sheet[open] { animation: pop-in .26s var(--ease); }
  dialog.sheet::before { display: none; }
  .sheet-head { padding: 20px 24px 14px; }
  .sheet-body { padding: 18px 24px 24px; }
}
@keyframes pop-in { from { transform: translateY(10px) scale(.98); opacity: 0; } }
/* Toast */
.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -20px) scale(.96); display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream); padding: 11px 16px 11px 12px; border-radius: var(--radius); box-shadow: var(--e3); border: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s var(--ease-spring); z-index: 60; max-width: min(92vw, 520px); font-weight: 600; font-size: .9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast .toast-icon { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--forest-600); color: var(--cream); }
.toast .toast-icon .ui-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.toast.err .toast-icon { background: var(--danger); }
.toast.err { background: #3A1715; }
:root[data-theme="dark"] .toast { background: var(--cream); color: var(--ink); border-color: transparent; }
:root[data-theme="dark"] .toast.err { background: #FBE9E7; }

/* Sticky action bar (cart, reorder): floats above the dock on phones */
.summary-spacer { height: 112px; }
.summary-bar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 25; padding: 12px 12px 12px 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid var(--hairline); box-shadow: var(--e3), var(--highlight); animation: rise-in .35s var(--ease); }
.summary-bar > * { max-width: 736px; margin-left: auto; margin-right: auto; }
.summary-bar p { margin: 4px auto; }
.summary-bar .btn.block { margin: 8px auto 0; }
@keyframes rise-in { from { transform: translateY(16px); opacity: 0; } }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 0%, transparent); } }

/* ============ 5. Landing ============ */
.market-home { display: grid; gap: 4px; }
.market-category-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0; scrollbar-width: none; }
.market-category-nav::-webkit-scrollbar { display: none; }
.market-category-nav a { display: inline-flex; flex: none; gap: 8px; align-items: center; min-height: 42px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--e1); color: var(--text); text-decoration: none; font-size: .84rem; font-weight: 650; transition: border-color .18s, box-shadow .2s; }
.market-category-nav a:hover { color: var(--green); border-color: var(--green); }
.market-category-nav .product-icon { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.market-promo-layout { display: grid; gap: 12px; min-width: 0; }
.landing-hero { position: relative; display: grid; isolation: isolate; border-radius: var(--r-xl); background: var(--brand-gradient); color: var(--cream); overflow: hidden; box-shadow: var(--e3); }
/* Layered light: a warm marigold glow and a fine grid that fades out */
.landing-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 12% 110%, rgba(231, 174, 67, .30), transparent 70%), radial-gradient(400px 260px at 40% -20%, rgba(255, 255, 255, .10), transparent 70%); }
.landing-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(90deg, #000 0%, transparent 55%); }
.market-slide { display: grid; grid-area: 1 / 1; position: relative; align-items: center; min-height: clamp(210px, 30vw, 420px); isolation: isolate; }
.market-slide[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.landing-content { position: relative; z-index: 1; padding: clamp(22px, 5vw, 72px); padding-block: 28px 48px; }
.landing-content :is(h1, h2) { margin: 0; max-width: 14ch; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; }
.landing-content p { margin: 10px 0 0; max-width: 32ch; color: color-mix(in srgb, var(--cream) 88%, transparent); font-size: clamp(.86rem, 1.4vw, 1.05rem); }
.btn.landing-cta { margin-top: 20px; color: var(--forest-900); background: var(--cream); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45), var(--highlight); }
.btn.landing-cta:hover { background: var(--gold-gradient); border-color: transparent; color: var(--ink); }
.landing-hero :focus-visible { outline-color: var(--cream); }
.landing-photo { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: 67% 50%; mask-image: linear-gradient(to right, transparent, #000 70%); z-index: -1; }
.market-slide-category { background: transparent; }
.market-slide-art { position: absolute; right: clamp(18px, 10vw, 150px); width: clamp(100px, 28vw, 320px); }
.market-slide-art .product-icon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.market-slide-art .category-initials { font-size: clamp(2rem, 8vw, 5rem); }
.market-slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--cream); cursor: pointer; transition: background-color .2s; }
.market-slide-arrow:hover { background: rgba(255,255,255,.24); }
.market-slide-arrow.prev { left: 10px; }
.market-slide-arrow.prev .ui-icon { transform: rotate(180deg); }
.market-slide-arrow.next { right: 10px; }
.market-dots { position: absolute; z-index: 2; inset: auto 0 2px; display: flex; justify-content: center; pointer-events: none; }
.market-dot { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; pointer-events: auto; }
.market-dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--cream); opacity: .5; transition: width .2s var(--ease); }
.market-dot[aria-pressed="true"]::before { width: 20px; opacity: 1; background: var(--gold); }
.market-spotlight { display: none; }
.landing-categories { display: none; margin-top: 8px; }
.landing-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 8px; }
.landing-category-list a { display: flex; align-items: center; gap: 10px; min-height: 56px; height: 100%; padding: 8px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1), var(--highlight); color: var(--text); font-weight: 650; font-size: .86rem; text-decoration: none; overflow-wrap: anywhere; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.landing-category-list .product-icon { width: 40px; height: 40px; flex: none; overflow: hidden; border-radius: var(--r-sm); }
.landing-category-list a:hover { border-color: var(--line-strong); color: var(--green); transform: translateY(-2px); box-shadow: var(--e3); }
/* Value propositions */
.value-props { display: grid; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.value-prop { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1), var(--highlight); }
.value-prop strong { display: block; font-size: .95rem; letter-spacing: -.015em; }
.value-prop p { margin: 3px 0 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.value-prop-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-gradient); color: var(--cream); box-shadow: var(--shadow-brand); }
.value-prop-icon .ui-icon { width: 19px; height: 19px; }
@media (min-width: 720px) { .value-props { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.market-discovery { margin-top: clamp(18px, 4vw, 40px); }
.landing-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.landing-section-head h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 780; letter-spacing: -.04em; margin: 0; }
.market-section-link { display: inline-flex; align-items: center; gap: 5px; padding-block: 7px; font-size: .88rem; font-weight: 700; text-decoration: none; }
@media (min-width: 640px) { .landing-category-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 800px) {
  .market-category-nav { display: none; }
  .landing-categories { display: block; }
  .market-slide-arrow { display: grid; }
  .landing-content { padding-inline: max(56px, 5vw); }
}
@media (min-width: 1120px) {
  .market-promo-layout.has-spotlight { grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); }
  .market-spotlight { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; gap: 12px; min-width: 0; padding: 24px; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--gold-50), var(--hero) 60%); border: 1px solid var(--line); box-shadow: var(--e2), var(--highlight); }
  :root[data-theme="dark"] .market-spotlight { background: linear-gradient(160deg, var(--marigold-50), var(--hero) 60%); }
  .market-spotlight .product-icon { align-self: center; width: min(100%, 160px); height: auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
  .market-spotlight h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); overflow-wrap: anywhere; }
  .landing-category-list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .landing-category-list a { flex-direction: column; justify-content: center; text-align: center; padding: 12px 8px; }
  .landing-category-list .product-icon { width: 56px; height: 56px; border-radius: 50%; }
}
@media (max-width: 500px) {
  .landing-photo { width: 55%; opacity: .5; }
  .market-slide-category .landing-content { padding-right: 36%; }
}

/* ============ 6. Catalog ============ */
.catalog-intro { position: relative; margin: 0 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface), var(--hero)); box-shadow: var(--e1), var(--highlight); overflow: hidden; }
.catalog-intro h1 { font-size: var(--fs-2xl); font-weight: 800; margin: 0 0 14px; letter-spacing: -.045em; }
.catalog-search { position: relative; max-width: 650px; }
.search-wrap { position: relative; display: flex; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; background: var(--surface); box-shadow: var(--e2), var(--highlight); transition: border-color .15s, box-shadow .2s; }
.search-wrap:focus-within { border-color: var(--forest-500); box-shadow: var(--ring), var(--e2); }
.search-icon { display: grid; place-items: center; padding-left: 9px; color: var(--green); pointer-events: none; }
.search { flex: 1; min-width: 0; min-height: 44px; border: 0; padding: 0 6px; font-size: 1rem; background: transparent; box-shadow: none !important; }
.search:focus-visible { outline: none; }
.search-submit { flex: none; padding-inline: 14px; }
.search-options { position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 12; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); background: var(--surface); padding: 5px; max-height: min(55vh, 350px); overflow-y: auto; }
.search-option { display: grid; gap: 2px; padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
.search-option span { font-size: .82rem; }
.search-option:hover, .search-option[aria-selected="true"] { background: var(--forest-50); }
:root[data-theme="dark"] :is(.search-option:hover, .search-option[aria-selected="true"]) { background: var(--green-50); }
.catalog-filter { display: flex; align-items: center; margin-top: 4px; }
.catalog-filter .toggle { padding-block: 4px; }
.catalog-selection { position: sticky; top: var(--header-h); z-index: 6; margin: 0 -12px 6px; padding: 6px 12px 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); }
/* Product tiles */
.product-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 10px; }
.product-tile { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e1), var(--highlight); overflow: hidden; transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.product-tile:hover { border-color: var(--line-strong); box-shadow: var(--e3); transform: translateY(-2px); }
.product-card > .product-icon :is(img, .category-art) { transition: transform .5s var(--ease); }
.product-tile:hover .product-card > .product-icon :is(img, .category-art) { transform: scale(1.05); }
.product-card { flex: 1; display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img info" "img price"; gap: 2px 12px; align-items: start; padding: 12px 12px 8px; text-decoration: none; color: inherit; }
.product-card:active { background: var(--surface-2); }
.product-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--surface-2), var(--surface-sunken)); overflow: hidden; }
.product-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card > .product-icon { grid-area: img; width: 76px; height: 84px; }
.product-info { grid-area: info; min-width: 0; overflow-wrap: anywhere; }
.product-brand { font-size: .68rem; color: var(--green); font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.product-name { font-weight: 700; font-size: .98rem; letter-spacing: -.02em; line-height: 1.25; margin: 3px 0 4px; }
.product-meta { font-size: .8rem; color: var(--muted); }
.product-pack { color: var(--text); font-weight: 600; }
.product-price { grid-area: price; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.unit-price { font-size: 1.2rem; font-weight: 800; color: var(--green); letter-spacing: -.035em; white-space: nowrap; }
.product-price small { color: var(--muted); font-size: .8rem; }
.product-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-sunken) 55%, transparent); min-height: 54px; }
.offer-count { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 40px; font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.offer-count { color: var(--green); font-weight: 750; }
.quick-add { flex: none; }
.compare-btn { flex: none; width: 40px; padding: 0; color: var(--green); border-radius: 50% !important; }
.product-tile:hover .compare-btn { background: var(--base); color: var(--cream); border-color: var(--base); }
.category-art { display: block; width: 100%; aspect-ratio: 1; background-image: url("/category-art.png"); background-size: 400% 200%; background-repeat: no-repeat; }
.category-initials { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text); font-size: 1.15rem; font-weight: 750; }
.product-icon .ui-icon { color: var(--muted); }
.product-icon.lg .category-initials { font-size: clamp(2rem, 8vw, 5rem); }
.product-icon.lg { overflow: hidden; }
.product-icon.lg:has(.category-art) { background: var(--surface-2); }
@media (min-width: 640px) { .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) {
  .catalog-intro { padding: 32px clamp(22px, 4vw, 48px); background: linear-gradient(90deg, var(--hero) 42%, transparent 80%), url("/catalog-groceries.png") right center / 54% auto no-repeat, var(--hero); }
  .catalog-search { width: min(64%, 650px); }
  .catalog-selection { position: static; margin: 10px 0 8px; padding: 0; background: none; backdrop-filter: none; }
  .catalog-selection .chips { flex-wrap: wrap; overflow: visible; }
  .product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .product-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "info" "price"; padding: 10px 10px 6px; }
  .product-card > .product-icon { width: 100%; height: 150px; margin-bottom: 8px; }
  .product-card > .product-icon .category-art { width: 150px; }
  .product-info, .product-price { padding-inline: 4px; }
}
@media (min-width: 1120px) {
  .product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-listings .product-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ============ 7. Product detail & offers ============ */
.product-page { display: grid; gap: 4px; }
.product-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.product-breadcrumbs a { color: inherit; text-decoration: none; margin: 0; padding: 4px 0; }
.product-breadcrumbs a:hover { color: var(--green); }
.product-breadcrumbs .ui-icon { width: 13px; height: 13px; }
.product-detail-layout { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.product-detail-layout > * { min-width: 0; }
.product-media { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e1), var(--highlight); padding: 6px; }
.product-media .product-icon.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-sm); }
.product-media .product-icon img { object-fit: contain; }
.product-media .category-art { width: 100%; }
.product-media .product-icon .ui-icon { width: 40px; height: 40px; }
.product-description .product-brand { color: var(--green); }
.product-title { font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.045em; margin: 4px 0 10px; overflow-wrap: anywhere; }
.product-summary-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0; font-size: var(--fs-sm); }
.product-best-unit { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; color: var(--green); }
.product-district { margin-top: 2px; }
.product-purchase { grid-column: 1 / -1; }
.product-purchase .section-title, .product-alternatives .section-title { margin-top: 8px; }
.product-purchase .offer-card { margin: 0; padding: 18px; border-radius: var(--r-xl); border-color: var(--forest-200); box-shadow: var(--e3), var(--highlight); overflow: hidden; }
.product-purchase .offer-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--forest-600), var(--gold) 70%, var(--forest-600)); }
:root[data-theme="dark"] .product-purchase .offer-card { border-color: var(--line-strong); }
.product-purchase .offer-control, .product-purchase .add-btn { width: 100%; }
.product-purchase .offer-control .stepper { width: 100%; justify-content: space-between; }
.product-purchase .offer-control .qty-input { flex: 1; }
.product-alternatives .offer-list { display: grid; gap: 10px; }
.offer-list { min-width: 0; }
.offer-card { margin: 0; padding: 16px; box-shadow: var(--e1), var(--highlight); }
.offer-card.dim { opacity: .7; }
.offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 4px 10px; }
.offer-supplier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.offer-supplier a { color: var(--text); text-decoration: none; }
.offer-supplier a:hover { color: var(--green); text-decoration: underline; }
.offer-supplier .tag { margin: 0; }
.offer-unit { text-align: right; min-width: 0; margin-left: auto; }
.offer-unit .price-lg { white-space: nowrap; }
.price-lg { font-size: 1.3rem; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.offer-pack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 8px; font-size: .92rem; }
.offer-pack > span:nth-child(2) { font-weight: 800; color: var(--green); }
.pack-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--forest-50); color: var(--forest-700); border: 1px solid var(--forest-200); font-weight: 750; padding: 4px 10px; border-radius: var(--r-sm); font-size: .86rem; }
:root[data-theme="dark"] .pack-badge { background: var(--green-50); color: var(--green); border-color: transparent; }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 10px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-sunken); border: 1px solid var(--line); font-size: .86rem; }
.offer-facts dt { color: var(--muted); font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.offer-facts dd { margin: 0; font-weight: 650; }
.tiers { background: linear-gradient(135deg, var(--gold-50), var(--gold-100)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; font-size: .86rem; }
:root[data-theme="dark"] .tiers { background: var(--marigold-50); }
.tiers-title { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--marigold-700); }
.tiers ul { margin: 4px 0 0; padding-left: 18px; }
.offer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 10px; }
.offer-live { display: grid; font-size: .86rem; font-variant-numeric: tabular-nums; }
.offer-live:empty { display: none; }
.offer-control { margin-left: auto; }
.add-btn small { font-weight: 500; opacity: .85; }
/* Comparison */
.offer-comparison { padding: 0 16px; border-radius: var(--r-lg); }
.offer-comparison summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 750; color: var(--green); list-style: none; }
.offer-comparison summary::-webkit-details-marker { display: none; }
.offer-comparison summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 500; }
.offer-comparison[open] summary::after { content: "−"; }
.offer-comparison summary > span { display: inline-flex; gap: 8px; align-items: center; }
.offer-comparison[open] { padding-bottom: 14px; }
.offer-comparison .field { max-width: 240px; }
.comparison-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.comparison-card { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; background: var(--surface-sunken); overflow-wrap: anywhere; transition: border-color .2s, box-shadow .2s; }
.comparison-card:has(.comparison-best) { border-color: var(--forest-500); background: var(--surface); box-shadow: var(--ring), var(--e2); }
.comparison-card p { margin: 2px 0; }
.comparison-card button { align-self: start; margin-top: 8px; }
.comparison-best { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: .76rem; font-weight: 800; }
/* Quantity sheet */
.quantity-menu, .checkout-context { display: grid; gap: 12px; padding-top: 4px; }
.quantity-product { display: grid; gap: 3px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.quantity-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.quantity-controls small { display: block; margin-top: 4px; }
.quantity-total { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-sunken); border: 1px solid var(--line); }
.quantity-error, .checkout-context p { margin: 0; }
.quantity-error:empty { display: none; }
.quantity-menu > .btn, .checkout-context > .btn { margin: 0; }
.context-issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.context-issues li { display: flex; align-items: baseline; gap: 8px; background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 12px; }
.context-issues .ui-icon { color: var(--marigold-700); }
@media (min-width: 720px) {
  .product-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .product-media { padding: 10px; border-radius: var(--r-lg); }
  .product-media .product-icon.lg { aspect-ratio: 1.15; max-height: 420px; }
  .product-media .category-art { width: min(100%, 320px); }
  .product-purchase { grid-column: 2; }
  .product-media { grid-row: span 2; }
  .product-alternatives .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .product-detail-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1fr); }
  .product-media { grid-row: auto; }
  .product-purchase { grid-column: auto; position: sticky; top: calc(var(--header-h) + 16px); }
  .product-alternatives .offer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============ 8. Cart ============ */
.cart-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.cart-page-head .page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.cart-count { color: var(--muted); font-size: .9rem; letter-spacing: normal; font-weight: 650; }
.district-row { display: flex; width: 100%; align-items: center; gap: 8px; min-height: var(--tap); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; text-align: left; margin: 4px 0; }
.district-row > .ui-icon { color: var(--green); }
.district-row .link { margin-left: auto; padding: 0; min-height: 0; }
.cart-page-head .district-row { width: auto; margin: 0; }
.cart-layout { display: grid; gap: 16px; align-items: start; }
.cart-panel { min-width: 0; display: grid; gap: 12px; }
.cart-select-all { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 650; padding: 0 4px; }
.cart-panel .group-card { margin: 0; padding: 16px; border-radius: var(--r-xl); box-shadow: var(--e2), var(--highlight); }
.group-card.has-issue { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.group-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-head h2 { font-size: 1.08rem; letter-spacing: -.025em; margin: 0 0 4px; }
.group-delivery { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .84rem; color: var(--muted); }
.group-delivery .ui-icon { color: var(--green); }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 22px 56px minmax(0, 1fr); align-items: start; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background-color .22s; }
.cart-item-check { margin: 18px 0 0; }
.cart-item:has(.cart-item-check:not(:checked)) :is(.ci-main, .ci-side, .cart-thumb) { opacity: .5; }
.cart-thumb .product-icon { width: 56px; height: 64px; border-radius: 12px; border: 1px solid var(--line); }
.ci-main { min-width: 0; }
.ci-name { font-weight: 700; line-height: 1.3; }
.cart-item.has-issue .ci-name { color: var(--danger); }
.cart-product-link { display: inline-flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none; }
.cart-product-link span { min-width: 0; overflow-wrap: anywhere; }
.cart-product-link .ui-icon { width: .9em; height: .9em; color: var(--green); opacity: .7; }
.cart-product-link:is(:hover, :focus-visible) { color: var(--green); }
.ci-pack, .ci-units, .ci-tier { font-size: .82rem; margin-top: 2px; overflow-wrap: anywhere; }
.ci-tier { display: inline-flex; gap: 5px; align-items: center; color: var(--marigold-700); background: var(--marigold-50); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--r-pill); padding: 2px 9px; font-weight: 600; }
.ci-side { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ci-total { order: -1; flex-basis: 100%; font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-remove { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; }
.cart-remove:hover { color: var(--danger); }
.issue { display: flex; gap: 5px; align-items: baseline; font-size: .84rem; color: var(--danger); margin-top: 4px; }
.group-foot { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-sunken); border: 1px solid var(--line); }
.group-foot > p { margin: 0; }
.min-order { margin-bottom: 8px; font-size: .86rem; }
.min-order-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cart-summary-title { margin: 0 auto 10px; font-size: 1.1rem; letter-spacing: -.025em; }
.summary-lines .line { padding: 2px 0; font-size: .92rem; }
.summary-lines .line.grand { font-size: 1.12rem; margin-top: 4px; padding-top: 6px; }
.cart-item-updated .ci-total { animation: price-pop .3s var(--ease) both; }
@media (max-width: 959px) {
  /* One compact line above the bottom nav: total on the left, checkout on the right. */
  .cart-selection-summary .summary-bar { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 4px 14px; }
  .cart-selection-summary .cart-summary-title, .cart-selection-summary .summary-lines .line:not(.grand) { display: none; }
  .cart-selection-summary .summary-lines { margin: 0; min-width: 0; }
  .cart-selection-summary .summary-lines .line.grand { display: grid; gap: 0; border: 0; margin: 0; padding: 0; font-size: 1.15rem; }
  .cart-selection-summary .summary-lines .line.grand > span:first-child { font-size: .74rem; font-weight: 600; color: var(--muted); }
  .cart-selection-summary .summary-bar > p { grid-column: 1 / -1; margin: 0; order: -1; }
  .cart-selection-summary .summary-bar .btn.block { width: 100%; margin: 0; padding-inline: 12px; }
  .cart-page .summary-spacer { height: 88px; }
}
@media (min-width: 960px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 24px; }
  .cart-item { grid-template-columns: 24px 80px minmax(0, 1fr) auto; column-gap: 14px; }
  .cart-thumb .product-icon { width: 80px; height: 90px; }
  .ci-side { grid-column: auto; display: grid; justify-items: end; align-content: start; }
  .ci-total { order: 0; flex-basis: auto; font-size: 1.12rem; }
  .cart-selection-summary { position: sticky; top: calc(var(--header-h) + 16px); }
  .cart-selection-summary .summary-bar { position: static; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--e3), var(--highlight); animation: none; }
  .cart-page .summary-spacer { display: none; }
}

/* ============ 9. Checkout & payment ============ */
.checkout-layout { display: grid; gap: 14px; align-items: start; }
.checkout-main, .checkout-side { display: grid; gap: 14px; min-width: 0; }
.checkout-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--e2), var(--highlight); }
.checkout-step-title { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; letter-spacing: -.025em; margin: 0 0 14px; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-gradient); color: var(--cream); font-size: .85rem; font-weight: 800; flex: none; box-shadow: var(--shadow-brand); }
.saved-delivery { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--forest-50), var(--surface)); border: 1px solid var(--forest-200); }
:root[data-theme="dark"] .saved-delivery { background: var(--green-50); border-color: transparent; }
.saved-delivery > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.checkout-delivery .form { margin-top: 4px; }
.review { margin: 0; }
.review > p { margin-top: 0; }
.review-group { margin: 10px 0; padding: 14px; border-radius: var(--r-lg); background: var(--surface-sunken); border-color: var(--line); }
.checkout-submit { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 5; margin: 0 -6px; padding: 8px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--hairline); box-shadow: var(--e3); }
.checkout-submit .btn { margin: 0; }
.checkout-status:empty { display: none; }
.payment-options { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-inline-size: 0; }
.payment-option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--e1); cursor: pointer; transition: border-color .15s, box-shadow .2s, background-color .15s; }
.payment-option:hover { border-color: var(--line-strong); }
.payment-option:has(:checked) { border-color: var(--forest-500); background: var(--forest-50); font-weight: 650; box-shadow: var(--ring); }
:root[data-theme="dark"] .payment-option:has(:checked) { background: var(--green-50); }
.payment-option input { margin: 0; }
.payment-options .card-connect-trigger { justify-self: start; }
.payment-unavailable { cursor: default; align-items: flex-start; opacity: .8; }
.payment-unavailable input { margin-top: 1px; }
.payment-unavailable small { display: block; margin-top: 3px; }
.payment-breakdown { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--r-lg); margin: 12px 0; text-align: start; }
.payment-breakdown p { margin: 6px 0 0; }
.payment-breakdown .line b { text-align: end; }
.card-connect-menu { display: grid; gap: 12px; padding: 8px 0 4px; }
.card-connect-menu p, .card-connect-menu .btn { margin: 0; }
.card-connect-status:empty { display: none; }
.card-connect-preview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: var(--surface-2); border-radius: var(--radius); padding: 14px; }
.card-connect-preview span { display: inline-flex; align-items: center; gap: 8px; }
.card-connect-preview strong { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.success { display: grid; justify-items: center; text-align: center; padding: 16px 0; max-width: 560px; margin: 0 auto; }
.success-icon { position: relative; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--brand-gradient); box-shadow: var(--shadow-brand), 0 0 0 10px color-mix(in srgb, var(--green) 10%, transparent), 0 0 0 22px color-mix(in srgb, var(--green) 5%, transparent); animation: pop-success .6s var(--ease-spring) both; }
.success-icon .ui-icon { color: var(--cream); width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes pop-success { from { transform: scale(.4); opacity: 0; } }
.success h1 { margin: 30px 0 6px; font-size: var(--fs-2xl); letter-spacing: -.04em; }
.success > * { width: 100%; }
.success-icon { width: 80px; }
.success-orders { list-style: none; padding: 0; text-align: left; }
.success-orders li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 8px 0; }
.success-orders li .status { margin-left: 8px; }
.success-orders small { grid-column: 1 / -1; }
@media (min-width: 800px) { .checkout-submit { position: static; margin: 0; padding: 0; border: 0; background: none; } }
@media (min-width: 960px) {
  .checkout-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 20px; }
  .checkout-side { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ============ 10. Orders, progress, timeline, issues ============ */
.orders-tabs { margin-bottom: 4px; }
.checkout-card { padding: 0; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--e2), var(--highlight); margin: 14px 0; }
.checkout-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(180deg, var(--surface-sunken), color-mix(in srgb, var(--surface-sunken) 40%, var(--surface))); border-bottom: 1px solid var(--line); }
.checkout-card-head > div { min-width: 0; }
.checkout-total { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-card .order-card { margin: 0; padding: 16px; border: 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; box-shadow: none; }
.checkout-card .order-card:first-of-type { border-top: 0; }
.checkout-card > .reorder-all { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 50px; color: var(--green); }
.order-card > a { color: inherit; text-decoration: none; }
.order-preview { margin: 8px 0 6px; color: var(--muted); overflow-wrap: anywhere; }
.order-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 10px; }
.order-meta .ui-icon { color: var(--green); }
.order-total { font-weight: 800; font-variant-numeric: tabular-nums; font-size: .98rem; color: var(--text); }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions .btn { flex: 1 1 auto; }
.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 12px 0 4px; }
.progress-steps li { display: grid; justify-items: center; gap: 4px; position: relative; font-size: .64rem; color: var(--muted); text-align: center; }
.progress-steps li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done::before { background: linear-gradient(90deg, var(--forest-600), var(--base)); }
.progress-steps .dot { width: 15px; height: 15px; border-radius: 50%; background: var(--line); z-index: 1; border: 2px solid var(--surface); }
.progress-steps li.done .dot { background: var(--green); }
.progress-steps li.current .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent); animation: pulse-ring 2.2s ease-in-out infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 6%, transparent); } }
.progress-steps li.current { color: var(--text); font-weight: 750; }
details summary { cursor: pointer; padding: 6px 0; font-weight: 650; font-size: .9rem; }
.order-items { list-style: none; padding: 0; margin: 4px 0; }
.order-items li { padding: 10px 0; border-top: 1px solid var(--line); }
.events { list-style: none; padding: 0 0 0 16px; margin: 0; border-left: 2px solid var(--line); }
.events li { position: relative; padding: 6px 0 12px; }
.events li::before { content: ""; position: absolute; left: -22px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); }
.events li > small { display: block; margin-top: 3px; }
.timeline .tl-issue_reported::before { border-color: var(--gold); background: var(--marigold-50); }
.timeline .tl-issue_resolved::before { background: var(--green); }
.timeline .tl-issue_rejected::before { border-color: var(--muted); }
.timeline .tl-issue { color: var(--marigold-700); font-weight: 650; }
.timeline .tl-resolved { color: var(--ok); font-weight: 650; }
.timeline .tl-rejected { color: var(--muted); font-weight: 650; }
.sticky-actions { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); padding: 8px 0; }
.sticky-actions:empty { display: none; }
.issues-block { display: grid; gap: 8px; }
.issues-block .section-title { margin: 0 0 2px; }
.issue-row { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--surface); box-shadow: var(--e1); }
.issue-row.is-open { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: var(--marigold-50); }
.issue-row .row.gap { margin-top: 8px; }
.issue-status { font-size: var(--fs-xs); font-weight: 800; padding: 2px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.issue-status.is-open { background: var(--marigold-50); color: var(--marigold-700); box-shadow: inset 0 0 0 1px var(--gold); }
.issue-status.is-resolved { background: var(--green-50); color: var(--ok); }
.issue-status.is-rejected { background: var(--surface-2); color: var(--muted); }
.issue-items { display: grid; gap: 8px; }
.issue-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: var(--tap); cursor: pointer; }
.issue-item span { display: grid; gap: 2px; }
.issue-item.on { border-color: var(--green); background: var(--green-50); }
.issue-item.dim { opacity: .55; cursor: default; }
.issue-item input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.issue-form .chips { margin: 4px 0; }
.issue-form h3 { margin: 0; font-size: var(--fs-sm); }

/* ============ 11. Reorder ============ */
.reorder-all { margin: 8px 0 4px; }
.reorder-list { display: grid; gap: 12px; margin-top: 12px; }
.reorder-line { margin: 0; padding: 16px; border-radius: var(--r-xl); box-shadow: var(--e1), var(--highlight); }
.reorder-line.ro-out_of_stock, .reorder-line.ro-unavailable { background: var(--surface-2); }
.reorder-line.ro-price_up, .reorder-line.ro-pack_changed, .reorder-line.ro-low_stock { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.ro-status { font-size: var(--fs-xs); font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.ro-status.ro-ok, .ro-status.ro-price_down { background: var(--green-50); color: var(--ok); }
.ro-status.ro-price_up, .ro-status.ro-pack_changed, .ro-status.ro-low_stock { background: var(--marigold-50); color: var(--marigold-700); }
.ro-status.ro-out_of_stock, .ro-status.ro-unavailable { background: var(--danger-50); color: var(--danger); }
.ro-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface-sunken); border: 1px solid var(--line); font-size: .86rem; }
.reorder-line.ro-out_of_stock .ro-compare, .reorder-line.ro-unavailable .ro-compare { background: var(--surface); }
.ro-compare > div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.ro-compare > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.ro-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.ro-price.up { color: var(--marigold-700); }
.ro-price.down { color: var(--ok); }
.ro-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ro-controls p { margin: 4px 0; }
.ro-include { display: flex; align-items: center; gap: 8px; font-weight: 650; min-height: var(--tap); }
.ro-qty { display: grid; justify-items: end; gap: 2px; margin-left: auto; }
.ro-alts:empty { display: none; }
.ro-alts { display: grid; gap: 8px; margin-top: 10px; }
.ro-alts-title { font-weight: 750; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.ro-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; background: var(--surface); box-shadow: var(--e1); transition: border-color .2s, box-shadow .2s; }
.ro-alt.on { border-color: var(--forest-500); background: var(--forest-50); box-shadow: var(--ring); }
:root[data-theme="dark"] .ro-alt.on { background: var(--green-50); }
.ro-alt-info { display: grid; gap: 1px; min-width: 0; font-size: .84rem; }
.ro-alt .btn { flex: none; }
.ro-line-foot { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.reorder-totals { display: grid; gap: 0; }
.reorder-problems { list-style: none; padding: 0; margin: 4px auto; }
@media (max-width: 899px) {
  .reorder-summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 4px 14px; }
  .reorder-summary > :not(.reorder-totals):not(.btn.primary) { grid-column: 1 / -1; }
  .reorder-summary .btn.block:not(.primary) { order: -1; margin: 0 0 4px; min-height: var(--tap); }
  .reorder-summary .reorder-totals { grid-row: 2; }
  .reorder-summary .reorder-totals .line { padding: 0; font-size: .8rem; }
  .reorder-summary .reorder-totals .line.grand { display: grid; gap: 0; border: 0; margin: 0; padding: 0; font-size: 1.1rem; }
  .reorder-summary .reorder-totals .line.grand > span:first-child { font-size: .74rem; font-weight: 600; color: var(--muted); }
  .reorder-summary .reorder-totals .line:not(.grand) { gap: 6px; justify-content: flex-start; }
  .reorder-summary .btn.block.primary { grid-row: 2; grid-column: 2; width: 100%; margin: 0; min-height: 48px; font-size: .9rem; padding-inline: 10px; }
}
@media (min-width: 900px) { .reorder-summary { position: sticky; bottom: 16px; margin-top: 18px; } }

/* ============ 12. Seller workspace ============ */
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.workspace-head .page-title { margin: 4px 0 0; }
.stat-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.stat { position: relative; display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1), var(--highlight);
  color: var(--text); text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-strong); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--e3); border-color: var(--line-strong); }
.stat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .76rem; font-weight: 650; color: var(--muted); }
.stat-gold::before { background: var(--gold-gradient); }
.stat-gold .stat-value { color: var(--marigold-700); }
.stat-forest::before { background: var(--brand-gradient); }
.stat-info::before { background: var(--info); }
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Seller statistics */
.stats-head { margin-bottom: 4px; }
.stats-head .section-title { margin: 0; }
.stats-head .section-title .ui-icon { color: var(--green); }
.stats-ranges { padding-bottom: 4px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.kpi { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1), var(--highlight); }
.kpi-label { font-size: .76rem; font-weight: 650; color: var(--muted); }
.kpi-value { font-size: clamp(1.15rem, 4.6vw, 1.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-note { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.kpi-delta { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; justify-self: start; padding: 2px 8px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.kpi-delta small { font-weight: 550; opacity: .8; }
.kpi-delta.good { background: var(--forest-50); color: var(--ok); }
.kpi-delta.bad { background: var(--danger-50); color: var(--danger); }
.kpi-delta.flat { background: var(--surface-sunken); color: var(--muted); font-weight: 600; }
:root[data-theme="dark"] .kpi-delta.good { background: var(--green-50); }
.kpi-hero { color: var(--cream); background: var(--brand-gradient); border-color: transparent; box-shadow: var(--e3); overflow: hidden; isolation: isolate; }
.kpi-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 160px at 100% 0%, rgba(231, 174, 67, .32), transparent 70%); }
.kpi-hero .kpi-label { color: rgba(248, 247, 240, .78); }
.kpi-hero .kpi-delta { background: rgba(255, 255, 255, .14); color: var(--cream); }
.kpi-secondary .kpi { box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.kpi-secondary .kpi-value { font-size: clamp(1.05rem, 4vw, 1.35rem); }
.stats-charts { margin-top: 12px; }
.stats-grid { display: grid; gap: 12px; margin-top: 12px; align-items: start; }
.stats-grid .card, .stats-side .card { margin: 0; padding: 16px; }
.stats-grid h2 { font-size: 1rem; margin: 0 0 12px; }
.stats-side { display: grid; gap: 12px; }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.top-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.top-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-sunken); border: 1px solid var(--line); font-size: .8rem; font-weight: 800; color: var(--muted); }
.top-list li:first-child .top-rank { background: var(--gold-gradient); border-color: transparent; color: var(--ink); }
.top-main { display: grid; gap: 5px; min-width: 0; }
.top-main .row b { overflow-wrap: anywhere; }
.top-bar { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; }
.top-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s var(--ease); }
.health-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; }
.stats-health h2 + .health-row { border-top: 0; padding-top: 0; }
a.health-row:hover span:nth-child(2) { color: var(--green); }
.health-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--forest-50); color: var(--forest-700); }
.health-icon.warn { background: var(--marigold-50); color: var(--marigold-700); }
:root[data-theme="dark"] .health-icon:not(.warn) { background: var(--green-50); color: var(--green); }
.low-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.low-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-sunken); font-size: .86rem; }
.low-badge { flex: none; padding: 2px 9px; border-radius: var(--r-pill); background: var(--marigold-50); color: var(--marigold-700); font-size: .74rem; font-weight: 750; white-space: nowrap; }
.low-badge.out { background: var(--danger-50); color: var(--danger); }
.stats-note { margin-top: 14px; }
@media (max-width: 719px) { .kpi-hero { grid-column: 1 / -1; } .kpi-hero .kpi-value { font-size: 1.9rem; } }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stats-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .admin-charts.stats-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seller-orders-head { margin-bottom: 0; }
.seller-orders-head .chips { flex: 1; min-width: 0; }
.order-group .section-title { margin-top: 14px; }
.order-group .section-title .chip-count { margin-left: 0; }
.seller-order { padding: 16px; border-radius: var(--r-xl); box-shadow: var(--e1), var(--highlight); transition: box-shadow .25s var(--ease), border-color .2s; }
.seller-order:hover { box-shadow: var(--e2), var(--highlight); }
.seller-order.so-pending { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(90deg, var(--gold-50), var(--surface) 38%); }
.seller-order.so-pending::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-gradient); }
:root[data-theme="dark"] .seller-order.so-pending { background: linear-gradient(90deg, var(--marigold-50), var(--surface) 40%); }
.seller-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: inherit; text-decoration: none; }
.seller-order-head b { font-size: 1.02rem; }
.seller-offers, .admin-list { list-style: none; padding: 0; }
.seller-offers { display: grid; gap: 10px; margin: 6px 0; }
.offers-count { margin: 4px 0 0; }
.offer-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "img main price" "stock stock stock" "actions actions actions"; gap: 10px 12px; align-items: center;
  padding: 14px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1), var(--highlight); transition: box-shadow .25s var(--ease), border-color .2s; }
.offer-row:hover { box-shadow: var(--e2), var(--highlight); border-color: var(--line-strong); }
.offer-row > .product-icon { grid-area: img; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); }
.offer-row-main { grid-area: main; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.offer-row-name b { letter-spacing: -.02em; }
.offer-row-tiers { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; justify-self: start; margin-top: 3px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--marigold-50); color: var(--marigold-700); font-size: .75rem; font-weight: 650; }
.offer-row-price { grid-area: price; display: grid; justify-items: end; text-align: right; }
.offer-row-price strong { font-size: 1.02rem; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer-row-price small { white-space: nowrap; }
.offer-row-stock { grid-area: stock; display: grid; gap: 5px; }
.offer-row-stock p { margin: 0; }
.stock-meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; box-shadow: inset 0 1px 2px rgba(18, 61, 46, .08); }
.stock-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-600), var(--base)); transition: width .5s var(--ease); }
.offer-row.low .stock-meter span { background: var(--gold-gradient); }
.offer-row.low .offer-row-stock > .row > span:first-child { color: var(--marigold-700); font-weight: 650; }
.offer-row-actions { grid-area: actions; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.offer-row-actions .tag { margin: 0; }
.tag.tag-live { background: var(--forest-50); color: var(--forest-700); border-color: var(--forest-200); }
.tag.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
:root[data-theme="dark"] .tag.tag-live { background: var(--green-50); color: var(--green); border-color: transparent; }
@media (min-width: 900px) {
  .offer-row { grid-template-columns: 52px minmax(0, 1.6fr) minmax(130px, .7fr) minmax(170px, 1fr) auto; grid-template-areas: "img main price stock actions"; padding: 12px 16px; }
  .offer-row-actions { padding: 0; border: 0; justify-content: flex-end; }
}
.seller-offers li > * + * { margin-top: 4px; }
.seller-product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pick-list { list-style: none; padding: 0; margin: 4px 0; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pick-list:empty { display: none; }
.pick { width: 100%; text-align: left; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); padding: 10px; cursor: pointer; min-height: var(--tap); }
.pick:hover { background: var(--green-50); }
.picked { font-weight: 700; padding: 8px 10px; background: var(--green-50); border-radius: var(--r-sm); }
.tier-rows { display: grid; gap: 6px; margin-bottom: 6px; }
.zone-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin: 8px 0; box-shadow: var(--e1); }
.zone-row:has(input[type="checkbox"]:checked) { border-color: var(--forest-200); }
.zone-name { display: flex; align-items: center; gap: 8px; font-weight: 650; min-height: 36px; }
.zone-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; margin-top: 4px; }
.zone-fields label { display: grid; gap: 2px; }
.zone-fields small { color: var(--muted); font-size: .72rem; }
.zone-fields input { min-height: 40px; padding: 6px 8px; }
.seller-photo-preview .product-icon { width: 84px; height: 84px; }
.category-editor { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.category-editor summary { width: fit-content; }
.category-editor[open] summary { margin-bottom: 8px; }
.commission-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.commission-summary .card { display: grid; gap: 6px; margin: 0; }
.commission-summary strong { font-size: 1.35rem; }
@media (min-width: 900px) {
  .order-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .order-group .section-title { grid-column: 1 / -1; }
  .order-group .order-card { margin: 6px 0; }
}

/* ============ 13. Account, auth, storefront, reviews ============ */
.auth-layout { display: grid; gap: 20px; max-width: 1040px; margin: clamp(4px, 4vh, 48px) auto 0; align-items: stretch; }
.auth-brand { display: none; }
.auth-panel { width: 100%; max-width: 460px; margin: 0 auto; padding: clamp(22px, 5vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--e3), var(--highlight); }
@media (min-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--e3); background: var(--surface); }
  .auth-panel { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
  .auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 44px; color: var(--cream); background: var(--brand-gradient); isolation: isolate; overflow: hidden; }
  .auth-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 300px at 0% 110%, rgba(231, 174, 67, .32), transparent 70%), radial-gradient(360px 240px at 100% 0%, rgba(255,255,255,.1), transparent 70%); }
  .auth-brand::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 80% 20%, #000, transparent 65%); }
  .auth-brand-mark { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; }
  .auth-brand-mark img { border-radius: 12px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); }
  .auth-brand h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; max-width: 13ch; }
  .auth-brand .value-props { grid-template-columns: 1fr; margin: 0; }
  .auth-brand .value-prop { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .auth-brand .value-prop p { color: rgba(248, 247, 240, .72); }
  .auth-brand .value-prop-icon { background: rgba(255,255,255,.12); box-shadow: none; }
}
.auth-panel .page-title { margin: 0 0 22px; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.auth-panel form { gap: 6px; }
.auth-panel .field { margin-bottom: 4px; }
.auth-panel .roles { min-inline-size: 0; margin: 0; }
.auth-panel .btn[type="submit"] { margin: 8px 0 0; }
.auth-error { margin: 0; font-size: .9rem; }
.auth-error:empty { display: none; }
.auth-links { display: grid; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; color: var(--muted); }
.auth-links p { margin: 0; }
.auth-links a { font-weight: 700; }
.auth-seller-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: var(--tap); }
.password-controls { position: relative; }
.password-controls input { padding-inline-end: 48px; }
.password-controls input::-ms-reveal { display: none; }
.password-toggle { position: absolute; inset-inline-end: 3px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { background: var(--surface-2); color: var(--text); }
.password-toggle .ui-icon { width: 18px; height: 18px; }
.sms-verification > p { margin-block: 5px; }
.sms-verification > p:empty { display: none; }
.account-profile { display: grid; gap: 12px; max-width: 720px; margin-inline: auto; }
.account-profile > .card, .storefront-layout > .card, .storefront-header { margin: 0; }
.profile-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-identity h1 { margin: 2px 0; font-size: clamp(1.25rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.profile-avatar, .storefront-header .chat-avatar { flex: none; display: grid; place-items: center; width: clamp(52px, 9vw, 68px); height: clamp(52px, 9vw, 68px); border-radius: 20px; background: var(--base); color: var(--cream); font-size: 1.2rem; font-weight: 800; }
.account-profile .profile-identity { position: relative; isolation: isolate; overflow: hidden; padding: clamp(18px, 4vw, 28px); color: var(--cream); background: var(--brand-gradient); border-color: transparent; box-shadow: var(--e3); }
.account-profile .profile-identity::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 200px at 100% 0%, rgba(231, 174, 67, .3), transparent 70%); }
.account-profile .profile-identity .muted, .account-profile .profile-identity a.muted { color: rgba(248, 247, 240, .75); }
.account-profile .profile-avatar { background: var(--gold-gradient); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.account-actions { padding: 6px; border-radius: var(--r-xl); }
/* Profile picture */
.avatar-edit { position: relative; flex: none; }
.profile-avatar.has-photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.profile-avatar.has-photo img, .nav-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-camera { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--gold-gradient); color: var(--ink); box-shadow: 0 4px 12px -3px rgba(0, 0, 0, .45); cursor: pointer;
  transition: transform .2s var(--ease-spring); }
.avatar-camera:hover { transform: scale(1.08); }
.avatar-camera .ui-icon { width: 16px; height: 16px; stroke-width: 2; }
.avatar-camera:disabled { cursor: progress; }
.avatar-edit.busy .profile-avatar { opacity: .55; }
.avatar-edit.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(248, 247, 240, .45); border-top-color: var(--cream); animation: spin .8s linear infinite; }
.profile-copy { display: grid; gap: 2px; min-width: 0; }
.avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; }
.profile-identity .avatar-upload { color: var(--cream); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.profile-identity .avatar-upload:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .32); }
.profile-identity .avatar-remove { color: rgba(248, 247, 240, .82); }
.profile-identity .avatar-remove:hover { color: var(--cream); }
.nav-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px currentColor; }
@media (min-width: 800px) { .nav-avatar { width: 20px; height: 20px; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px currentColor; } }
.account-actions { display: grid; gap: 2px; }
.account-support { padding: 6px 10px 10px; }
.account-action { display: grid; align-items: center; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; width: 100%; padding: 8px 10px; min-height: 54px; text-align: start; border: 0; background: transparent; color: var(--text); text-decoration: none; cursor: pointer; border-radius: 14px; font-weight: 620; transition: background-color .15s; }
.account-action > .ui-icon:first-child { box-sizing: content-box; padding: 7px; border-radius: 10px; background: var(--forest-50); }
:root[data-theme="dark"] .account-action > .ui-icon:first-child { background: var(--green-50); }
.account-action:hover > .ui-icon:last-child { transform: translateX(3px); color: var(--green); }
.account-action > .ui-icon:last-child { transition: transform .2s var(--ease), color .2s; }
.account-action > .ui-icon:first-child { color: var(--green); }
.account-action > .ui-icon:last-child { color: var(--muted); }
.account-action:hover, .storefront-product:hover { background: var(--surface-sunken); }
.account-logout { color: var(--danger); margin-top: 4px; border-top: 1px solid var(--line) !important; border-radius: 0 0 14px 14px; }
.account-logout > .ui-icon:first-child { color: var(--danger); background: var(--danger-50) !important; }
.supplier-storefront, .storefront-layout { display: grid; gap: 12px; }
.storefront-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: clamp(16px, 3vw, 26px); border-radius: var(--r-xl); }
.storefront-description { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.storefront-stats { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.storefront-stats dt { color: var(--muted); font-size: .82rem; }
.storefront-stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.storefront-products, .product-feedback { padding: clamp(12px, 2vw, 20px); min-width: 0; }
.storefront-products h2, .product-feedback h2 { font-size: 1.1rem; margin: 0 0 10px; }
.storefront-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 8px; }
.storefront-product { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.storefront-product strong, .storefront-product small { display: block; overflow-wrap: anywhere; }
.storefront-products nav:not(:empty) { margin-top: 10px; }
.storefront-product .product-icon { flex: none; }
.feedback-list { display: grid; gap: 8px; }
.feedback-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.feedback-card p { margin: 5px 0; white-space: pre-wrap; }
.feedback-card time { display: block; margin-top: 4px; }
.feedback-score { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--green-50); color: var(--green); padding: 3px 9px; font-size: .82rem; font-weight: 750; }
.feedback-form { display: grid; gap: 8px; justify-items: start; padding: 12px; margin: 8px 0 12px; background: var(--surface-2); border-radius: var(--radius); }
.feedback-form .err-text:empty { display: none; }
.feedback-form select { width: auto; margin-inline-start: 8px; }
@media (min-width: 620px) { .storefront-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 860px) { .storefront-layout { grid-template-columns: minmax(0, 2.3fr) minmax(240px, 1fr); align-items: start; } }

/* ============ 14. Chat (unchanged layout) ============ */
.chat-workspace {
  --chat-wall: #e3ede3;
  --chat-ink: #1c4836;
  --chat-outgoing: #d5eddc;
  --chat-pattern: #23594222;
  display: grid;
  grid-template-columns: minmax(215px, 28%) minmax(0, 1fr);
  height: clamp(380px, 75dvh, 780px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .chat-workspace {
  --chat-wall: #243b30;
  --chat-ink: #e1f3e7;
  --chat-outgoing: #315a46;
  --chat-pattern: #a9cfb41c;
}
.chat-sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-inline-end: 1px solid var(--line); }
.chat-sidebar-head { padding: 15px 14px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.chat-sidebar-head h1, .chat-contact h1 { margin: 0; font-size: 1rem; }
.chat-inbox { flex: 1; overflow: auto; padding: 8px; }
.chat-list-empty, .chat-contact-settings { padding: 10px; font-size: .84rem; }
.chat-contact-settings { border-top: 1px solid var(--line); }
.chat-contact-settings .toggle { margin: 0; }
.chat-thread-link { display: flex; align-items: center; gap: 10px; padding: 8px; min-width: 0; border-radius: 12px; color: var(--text); text-decoration: none; }
.chat-thread-link:hover { background: var(--surface-2); }
.chat-thread-link[aria-current="page"] { background: var(--green-50); box-shadow: inset 3px 0 var(--green); }
.chat-avatar { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--green-50); color: var(--green); font-size: .78rem; font-weight: 800; }
.chat-avatar.support { background: var(--base); color: var(--cream); }
.chat-thread-copy, .chat-contact-name { display: grid; gap: 2px; min-width: 0; }
.chat-thread-copy > *, .chat-contact h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px; gap: 8px; background-color: var(--chat-wall);
  background-image: radial-gradient(circle at 2px 2px, var(--chat-pattern) 1px, transparent 1.5px),
    linear-gradient(145deg, transparent, var(--chat-pattern));
  background-size: 18px 18px, 100% 100%;
}
.chat-contact, .chat-composer:not([hidden]) { flex: none; display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 8px; background: var(--surface); box-shadow: 0 2px 8px #172d2114; }
.chat-contact-name { flex: 1; }
.chat-contact-name a { font-size: .81rem; }
.chat-back, .chat-profile-link, .chat-send { display: grid; place-items: center; border-radius: 12px; width: 42px; height: 42px; flex: none; }
.chat-back { display: none; }
.chat-back .ui-icon { transform: rotate(180deg); }
.chat-profile-link:hover, .chat-back:hover { background: var(--surface-2); }
.chat-transcript { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.chat-transcript > .btn { align-self: center; }
.chat-log { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 8px 4px; }
.chat-day { align-self: center; margin: 8px 0; padding: 3px 10px; background: var(--chat-pattern); border-radius: 999px; color: var(--chat-ink); font-size: .73rem; font-weight: 700; }
.chat-message { align-self: flex-start; max-width: min(86%, 620px); padding: 7px 10px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: 0 1px 3px #172d2120; }
.chat-message.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--chat-outgoing); }
.chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.42; }
.chat-message time { display: block; text-align: end; margin-top: 2px; color: var(--muted); font-size: .69rem; font-variant-numeric: tabular-nums; }
.chat-placeholder { margin: auto; padding: 12px; text-align: center; color: var(--chat-ink); }
.chat-placeholder .ui-icon { width: 36px; height: 36px; }
.chat-error { margin: 0; }
.chat-error:empty { display: none; }
.chat-composer textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 120px; resize: vertical; }
.chat-send { border: 0; background: var(--base); color: var(--cream); cursor: pointer; }
.chat-send:hover { filter: brightness(1.12); }
.chat-send:disabled { opacity: .55; }
@media (max-width: 700px) {
  .chat-workspace { grid-template-columns: minmax(0, 1fr); height: clamp(360px, 72dvh, 680px); border-radius: 16px; }
  .chat-sidebar { border-inline-end: 0; }
  .chat-workspace:not(.thread-open) .chat-conversation, .chat-workspace.thread-open .chat-sidebar { display: none; }
  .chat-back { display: grid; }
}

/* ============ 15. Admin workspace (unchanged layout) ============ */
#app:has(.admin-workspace) { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
#app:has(.admin-workspace) > .topbar { flex: none; }
main:has(.admin-workspace) { flex: 1; min-height: 0; width: 100%; padding: 10px 12px calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); }
main:has(.admin-workspace) > .view { height: 100%; }
.admin-workspace { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; gap: 14px; padding: clamp(8px, 1.15vw, 16px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--forest-100) 70%, transparent), transparent 50%), color-mix(in srgb, var(--surface) 40%, transparent); box-shadow: var(--e1), var(--highlight); }
.admin-sidebar, .admin-content { min-width: 0; min-height: 0; }
.admin-content { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 2px 2px; }
.admin-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--e2), var(--highlight); }
.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; text-decoration: none; padding: 6px; }
.admin-brand small { display: block; color: var(--muted); font-weight: 500; }
.admin-brand-mark { display: block; flex: none; width: 34px; height: 34px; }
.admin-metric-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--forest-50); color: var(--forest-700); border: 1px solid var(--forest-200); }
:root[data-theme="dark"] .admin-metric-icon { background: var(--green-50); color: var(--green); border-color: transparent; }
.admin-metric.is-hero { color: var(--cream); background: var(--brand-gradient); border-color: transparent; box-shadow: var(--e3); }
.admin-metric.is-hero .muted { color: rgba(248, 247, 240, .78); }
.admin-metric.is-hero .admin-metric-icon { background: rgba(255,255,255,.14); color: var(--cream); border-color: rgba(255,255,255,.2); }
.admin-menu { display: flex; gap: 4px; overflow-x: auto; padding-top: 10px; }
.admin-menu a { display: flex; flex: none; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .84rem; }
.admin-menu a:hover { background: var(--surface-2); }
.admin-menu a[aria-current="page"] { background: var(--button-gradient); color: var(--cream); font-weight: 700; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.14); }
.admin-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.admin-breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.admin-heading h1 { margin: 3px 0 0; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
.admin-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-metrics .card { container-type: inline-size; display: grid; grid-template-rows: 1fr auto; gap: 5px; margin: 0; padding: clamp(8px, 1.2vw, 14px); min-width: 0; }
.admin-metric-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.admin-metric .muted { font-size: .76rem; line-height: 1.25; overflow-wrap: break-word; min-width: 0; }
.admin-metric-icon { width: 28px; height: 28px; border-radius: 8px; }
.admin-metric-icon .ui-icon { width: 15px; height: 15px; }
.admin-metrics strong { display: block; font-size: clamp(.9rem, 11cqi, 1.6rem); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.04em; }
.admin-charts, .admin-dashboard-grid { display: grid; gap: 10px; margin-top: 12px; align-items: start; }
.admin-charts > .card, .admin-dashboard-grid > .card { margin: 0; padding: 14px; min-width: 0; }
.admin-metrics > .card, .admin-charts > .card, .admin-dashboard-grid > .card { border-radius: 12px; }
.admin-chart h2, .admin-dashboard-grid h2 { font-size: 1rem; margin: 0 0 10px; }
.admin-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; column-gap: 8px; }
.chart-plot { position: relative; height: 120px; }
.chart-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid span { height: 1px; background: var(--line); }
.chart-cols { position: absolute; inset: 0; display: flex; }
.chart-col { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-end; border-radius: 6px; outline-offset: -2px; cursor: crosshair; }
.chart-col:hover, .chart-col.on { background: color-mix(in srgb, var(--green) 6%, transparent); }
.chart-bar { width: min(62%, 24px); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--green); transition: height .6s var(--ease), filter .15s; }
.chart-col.on .chart-bar { filter: brightness(1.25); }
.chart-dot { position: absolute; left: 50%; width: 8px; height: 8px; margin: 0 0 -4px -4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--surface); opacity: 0; transition: opacity .15s, transform .15s; }
.chart-col:last-child .chart-dot, .chart-col.on .chart-dot { opacity: 1; }
.chart-col.on .chart-dot { transform: scale(1.3); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-area { fill: var(--green); opacity: .08; }
.chart-tip { position: absolute; top: -6px; z-index: 3; transform: translate(-50%, -100%); display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--cream); font-size: .72rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: var(--e2); }
.chart-tip strong { font-size: .82rem; font-variant-numeric: tabular-nums; }
.chart-tip.on { opacity: 1; }
:root[data-theme="dark"] .chart-tip { background: var(--cream); color: var(--ink); }
.admin-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: end; padding-block: 0 1px; }
.admin-axis, .admin-chart-dates { color: var(--muted); font-size: .7rem; }
.admin-chart-dates { grid-column: 2; display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; }
.admin-chart-dates span:last-child { text-align: end; }
.admin-chart ul, .admin-recent ul { list-style: none; margin: 0; padding: 0; }
.admin-chart-data { margin-top: 9px; color: var(--muted); font-size: .76rem; }
.admin-chart-data summary { cursor: pointer; }
.admin-chart-data li { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; }
.admin-status-chart li { font-size: .73rem; margin-bottom: 4px; }
.admin-chart-track { height: 6px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; }
.admin-chart-track > span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .6s var(--ease); }
.admin-chart-track > .st-pending { background: var(--gold); }
.admin-chart-track > :is(.st-confirmed, .st-packing, .st-out_for_delivery) { background: var(--info); }
.admin-chart-track > :is(.st-rejected, .st-cancelled) { background: var(--danger); }
.admin-queue-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .85rem; }
.admin-queue-link:hover, .admin-recent-order:hover { color: var(--green); background: var(--green-50); }
.admin-queue-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green-50); color: var(--green); }
.admin-recent-order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.admin-recent-order > span:first-child { flex: 1 1 auto; }
.admin-recent-order small { display: block; }
.admin-user-search { display: grid; gap: 8px; align-items: center; }
@media (min-width: 720px) {
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .admin-user-search { grid-template-columns: minmax(0, 1fr) minmax(145px, .35fr) auto; }
}
@media (min-width: 780px) {
  .admin-workspace { grid-template-columns: 174px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .admin-sidebar { overflow-y: auto; overscroll-behavior: contain; }
  .admin-menu { flex-direction: column; overflow: visible; }
}
@media (min-width: 1000px) {
  .admin-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .admin-overview-content { display: flex; flex-direction: column; }
  .admin-overview-content .admin-heading { flex: none; }
  .admin-overview-content .admin-section-body { display: grid; grid-template-rows: auto auto minmax(175px, 1fr); flex: 1 0 0; min-height: 0; }
  .admin-dashboard-grid { min-height: 0; align-items: stretch; }
  .admin-recent { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .admin-recent ul { overflow: auto; overscroll-behavior: contain; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .admin-overview-content .admin-heading { margin-bottom: 8px; }
  .admin-overview-content .admin-heading h1 { font-size: 1.4rem; }
  .admin-metrics .card { padding-block: 5px; gap: 2px; }
  .admin-metric-icon { width: 23px; height: 23px; }
  .admin-metrics strong { font-size: 1.05rem; }
  .admin-charts, .admin-dashboard-grid { margin-top: 8px; }
  .admin-charts > .card, .admin-dashboard-grid > .card { padding: 9px 11px; }
  .chart-plot { height: 92px; }
  .admin-status-chart li { line-height: 1.15; margin-bottom: 3px; }
  .admin-chart-track { height: 3px; }
  .admin-recent-order, .admin-queue-link { padding-block: 5px; }
}

/* ============ 16. Motion ============ */
.btn, .step, .chip, .theme-toggle, .cart-item-check, .cart-select-all input, .nav-item, .district-pill, .lang-btn {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .16s ease;
}
:is(.btn, .step, .chip, .theme-toggle, .nav-item):active:not(:disabled) { transform: scale(.97); }
@keyframes price-pop {
  from { transform: scale(.96); color: var(--green); }
  55% { transform: scale(1.045); color: var(--green); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :is(.btn, .step, .chip, .theme-toggle, .nav-item):active:not(:disabled) { transform: none; }
}

/* ============ 17. Advanced features (Phase 1) ============ */
/* Proof of delivery */
.pod-card { border-color: var(--forest-200); background: linear-gradient(160deg, var(--forest-50), var(--surface) 55%); }
:root[data-theme="dark"] .pod-card { background: var(--surface); border-color: var(--line-strong); }
.pod-code-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pod-code-wrap p { margin: 4px 0 0; max-width: 34ch; }
.pod-code { font-family: var(--mono); font-size: 2.4rem; font-weight: 800; letter-spacing: .35em; padding: 6px 4px 6px 18px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--forest-500); color: var(--forest-800); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .pod-code { color: var(--green); background: var(--surface-sunken); }
.pod-verified { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0; padding: 6px 12px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 650; background: var(--forest-50); color: var(--ok); }
.pod-verified.pod-unverified { background: var(--marigold-50); color: var(--marigold-700); }
:root[data-theme="dark"] .pod-verified { background: var(--green-50); }
.pod-input { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .5em; text-align: center; max-width: 220px; }
/* Disputes */
.issue-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.issue-photo { position: relative; display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-sunken); }
.issue-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.issue-photo-remove { position: absolute; top: 2px; right: 2px; min-width: 26px; min-height: 26px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(32, 42, 36, .7); color: #fff; }
.issue-photo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.issue-response { margin: 6px 0; padding: 10px 12px; border-left: 3px solid var(--info); border-radius: 0 10px 10px 0; background: var(--info-50); }
.issue-respond { display: grid; gap: 8px; margin-top: 8px; }
.issue-respond .btn { justify-self: start; }
.remedy-chip { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 2px 10px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 750; }
.rm-refund_due, .rm-replacement_due { background: var(--marigold-50); color: var(--marigold-700); }
.rm-completed { background: var(--forest-50); color: var(--ok); }
:root[data-theme="dark"] .rm-completed { background: var(--green-50); }
.issue-kinds .chip { min-height: 38px; }
.adj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adj-list li { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius); background: var(--surface-sunken); border: 1px solid var(--line); }
.timeline .tl-response { color: var(--info); font-weight: 650; }
/* TrustScore */
.trust-ring { --p: 0; --c: var(--line-strong); position: relative; display: grid; place-items: center; flex: none; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-sunken) 0); }
.trust-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.trust-ring-value { position: relative; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tr-lg { width: 84px; height: 84px; } .tr-lg .trust-ring-value { font-size: 1.5rem; }
.tr-sm { width: 46px; height: 46px; } .tr-sm::before { inset: 5px; } .tr-sm .trust-ring-value { font-size: .9rem; }
.tr-good { --c: var(--forest-600); } .tr-fair { --c: var(--gold); } .tr-low { --c: var(--danger); } .tr-none .trust-ring-value { color: var(--muted); }
.trust-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); font-size: .7rem; font-weight: 750; background: var(--forest-50); color: var(--forest-700); border: 1px solid var(--forest-200); }
.trust-badge .ui-icon { width: 12px; height: 12px; stroke-width: 2.4; }
.trust-badge.none { background: var(--surface-sunken); color: var(--muted); border-color: var(--line); }
:root[data-theme="dark"] .trust-badge:not(.none) { background: var(--green-50); color: var(--green); border-color: transparent; }
.trust-panel { display: grid; gap: 16px; }
.trust-head { display: flex; align-items: center; gap: 18px; }
.trust-head h2 { margin: 4px 0 2px; font-size: 1.4rem; }
.trust-head p { margin: 0; }
.trust-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.trust-facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.trust-facts dt { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.trust-facts dd { margin: 2px 0 0; font-weight: 750; }
.trust-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust-metric { display: grid; gap: 4px; }
.trust-bar { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; }
.trust-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s var(--ease); }
.trust-districts h3, .trust-appeals h3 { margin: 0 0 8px; }
.appeal-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.appeal-list li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.trust-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.trust-row:first-child { border-top: 0; }
.weights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (min-width: 720px) { .trust-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .trust-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; } .weights-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Shopping lists */
.list-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.list-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.list-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand-gradient); color: var(--cream); box-shadow: var(--shadow-brand); }
.checkout-card > .save-list { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 48px; box-shadow: none; color: var(--text-2); }
/* Seller: periods, customers, districts, bulk editor */
.period-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.period { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.period-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green); }
.period strong { font-size: 1.05rem; letter-spacing: -.03em; overflow-wrap: anywhere; }
.period small { font-size: .7rem; line-height: 1.35; }
.split-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-sunken); margin: 6px 0 10px; }
.split-bar .new { background: var(--gold); } .split-bar .ret { background: var(--green); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; } .dot.new { background: var(--gold); } .dot.ret { background: var(--green); }
.stats-trust { margin-top: 12px; }
.bulk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bulk-list { display: grid; gap: 8px; }
.bulk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: end; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.bulk-name { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.bulk-name small { flex-basis: 100%; }
.bulk-field { display: grid; gap: 4px; font-size: .74rem; font-weight: 650; color: var(--muted); }
.bulk-input { min-height: 42px; font-variant-numeric: tabular-nums; }
.bulk-msg { grid-column: 1 / -1; font-size: .8rem; }
.bulk-msg:empty { display: none; }
.bulk-row.changed { border-color: var(--gold); background: var(--gold-50); }
.bulk-row.failed { border-color: var(--danger); background: var(--danger-50); }
.bulk-row.saved { border-color: var(--forest-300); }
:root[data-theme="dark"] .bulk-row.changed { background: var(--marigold-50); }
@media (min-width: 760px) { .bulk-row { grid-template-columns: minmax(0, 2fr) 160px 140px minmax(0, 1fr); } .bulk-name { grid-column: auto; } .bulk-msg { grid-column: auto; } }
/* Admin: tables and audit */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.data-table th { text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:hover { background: var(--surface-sunken); }
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.audit-list li { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.audit-action { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--green); background: var(--forest-50); padding: 1px 8px; border-radius: 6px; }
:root[data-theme="dark"] .audit-action { background: var(--green-50); }
.audit-data { margin: 6px 0 0; padding: 10px; border-radius: 10px; background: var(--surface-sunken); font-size: .74rem; overflow-x: auto; }
.supplier-storefront > *, .trust-panel > * { min-width: 0; }
@media (max-width: 559px) {
  .period-strip { grid-template-columns: 1fr; gap: 6px; }
  .period { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; padding: 10px 14px; }
  .period strong { text-align: right; }
  .period small { grid-column: 1 / -1; }
  .kpi-value { font-size: 1.15rem; }
}

/* ============ 18. Purchasing intelligence (Phase 2) ============ */
.bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--e1); color: var(--text-2); }
.bell .ui-icon { width: 17px; height: 17px; }
.bell:hover { color: var(--green); border-color: var(--line-strong); }
.bell .badge { top: -5px; left: auto; right: -5px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.notif.unread { border-color: var(--forest-200); box-shadow: inset 3px 0 0 var(--green); }
.notif-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--forest-50); color: var(--forest-700); }
:root[data-theme="dark"] .notif-icon { background: var(--green-50); color: var(--green); }
.notif-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sb-entry { justify-content: space-between; border-color: var(--forest-200); background: linear-gradient(90deg, var(--forest-50), var(--surface)); color: var(--forest-800); font-weight: 750; }
:root[data-theme="dark"] .sb-entry { background: var(--green-50); color: var(--green); }
.sb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sb-head .page-title { margin: 4px 0 0; }
.sb-head .district-row { width: auto; }
.sb-strategies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.sb-strategy { display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--e1); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); min-width: 0; }
.sb-strategy:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--e2); }
.sb-strategy.on { border-color: var(--forest-500); box-shadow: var(--ring), var(--e2); background: linear-gradient(160deg, var(--forest-50), var(--surface) 60%); }
:root[data-theme="dark"] .sb-strategy.on { background: var(--green-50); }
.sb-strategy:disabled { opacity: .6; cursor: not-allowed; }
.sb-strategy-name { display: flex; align-items: center; gap: 6px; font-weight: 780; }
.sb-strategy-name .ui-icon { color: var(--green); }
.sb-strategy strong { font-size: 1.05rem; letter-spacing: -.03em; }
.sb-saving { justify-self: start; padding: 1px 8px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 800; background: var(--surface-sunken); color: var(--muted); font-variant-numeric: tabular-nums; }
.sb-saving.good { background: var(--forest-50); color: var(--ok); } .sb-saving.bad { background: var(--danger-50); color: var(--danger); }
:root[data-theme="dark"] .sb-saving.good { background: var(--green-50); }
.sb-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2), var(--highlight); }
.sb-total { display: grid; gap: 2px; }
.sb-total strong { font-size: clamp(1.15rem, 4vw, 1.6rem); letter-spacing: -.04em; }
.sb-total-new strong { color: var(--green); }
.sb-arrow { color: var(--muted); }
.sb-suppliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.sb-supplier { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
.sb-supplier b { letter-spacing: -.02em; }
.sb-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sb-line { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: opacity .2s; }
.sb-line.kept { background: var(--surface-sunken); }
.sb-line-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.sb-line-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-sunken); font-size: .86rem; }
.sb-line-grid > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sb-line-grid > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.sb-now b { color: var(--green); }
.sb-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sb-select { width: auto; max-width: 100%; min-height: 40px; font-size: .84rem; flex: 1 1 220px; }
.sb-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 559px) { .sb-strategies { grid-template-columns: 1fr; } .sb-strategy { grid-template-columns: 1fr auto; } .sb-strategy small:first-of-type { grid-column: 1 / -1; } .sb-compare { grid-template-columns: 1fr; } .sb-arrow { transform: rotate(90deg); justify-self: center; } .sb-actions .btn { flex: 1; } }
/* Price intelligence */
.price-intel { display: grid; gap: 14px; padding: 18px; }
.pi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pi-head .section-title { margin: 0; }
.pi-head .section-title .ui-icon { color: var(--green); }
.pi-best { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pi-best > div:first-child { display: grid; gap: 2px; }
.pi-best-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.045em; color: var(--green); font-variant-numeric: tabular-nums; }
.pi-best-price small { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.pi-moves { display: flex; gap: 6px; flex-wrap: wrap; }
.pi-move { padding: 3px 10px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 750; background: var(--surface-sunken); color: var(--muted); }
.pi-move.down { background: var(--forest-50); color: var(--ok); } .pi-move.up { background: var(--danger-50); color: var(--danger); }
.pi-move small { font-weight: 550; }
.pi-spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pi-spread > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.pi-note { margin: 0; }
.pi-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pi-offers li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pi-offers li > div { display: grid; gap: 1px; min-width: 0; }
.pi-offer-price { text-align: right; justify-items: end; }
.pi-alert { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-lg); background: var(--gold-50); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
:root[data-theme="dark"] .pi-alert { background: var(--marigold-50); }
.pi-alert h3 { margin: 0; }
.pi-alert .btn { justify-self: start; }
.price-intel .admin-chart { box-shadow: none; margin: 0; }
@media (max-width: 419px) { .env-banner { display: none; } }
.sb-line { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.sb-line-actions > * { min-width: 0; }
.sb-select { min-width: 0; width: 100%; text-overflow: ellipsis; }

/* ============ 19. Retention: Passport, Group Buy, Telegram (Phase 3) ============ */
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: end; padding: 22px; margin: 6px 0 14px; border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--forest-800), var(--forest-600)); color: #fff; box-shadow: var(--e2), var(--highlight); }
.pp-hero .eyebrow { color: var(--gold-300); }
.pp-hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .82); }
.pp-balance { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pp-balance strong { font-size: clamp(2.2rem, 9vw, 3.2rem); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-month { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .1); }
.pp-month .progress { background: rgba(255, 255, 255, .18); box-shadow: none; }
.pp-month .progress-bar { background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.pp-referral .pp-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.pp-code code, .pp-voucher code { padding: 6px 12px; border-radius: var(--radius); background: var(--surface-sunken); border: 1px dashed var(--line-strong); font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; }
.pp-rewards, .pp-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-reward { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.pp-reward > div:first-child { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.pp-reward.soon { background: var(--surface-sunken); }
.pp-voucher { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status.vs-issued { background: var(--forest-50); color: var(--ok); } .status.vs-used, .status.vs-cancelled { background: var(--surface-sunken); color: var(--muted); }
.pp-history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.pp-history li:last-child { border-bottom: 0; }
.pp-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-amount.plus { color: var(--ok); } .pp-amount.minus { color: var(--danger); }
.pp-voucher-form { align-items: flex-end; } .pp-voucher-form .field { flex: 1 1 200px; margin: 0; }
.gb-hint { max-width: 70ch; margin-top: -4px; }
.gb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.gb-card { display: grid; gap: 8px; align-content: start; min-width: 0; }
.gb-card-link { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.gb-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.gb-card-head .eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-card-title { font-size: 1.05rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gb-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gb-price strong { font-size: 1.4rem; letter-spacing: -.04em; color: var(--green); font-variant-numeric: tabular-nums; }
.gb-progress { display: grid; gap: 6px; }
.gb-track { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--surface-sunken); box-shadow: inset 0 1px 2px rgba(18, 61, 46, .08); }
.gb-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-600), var(--base)); transition: width .5s var(--ease); }
.gb-mark { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--line-strong); }
.gb-mark.on { background: var(--gold-500); }
.gb-progress-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gb-time { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.gb-time .ui-icon { width: 14px; height: 14px; }
.status.gb-open { background: var(--forest-50); color: var(--ok); } .status.gb-confirmed { background: var(--gold-50); color: var(--gold-700); }
.status.gb-cancelled, .status.gb-expired { background: var(--surface-sunken); color: var(--muted); }
.gb-detail { display: grid; gap: 10px; }
.gb-detail .page-title { margin: 0; }
.gb-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gb-tiers li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-sunken); }
.gb-tiers li.on { background: var(--forest-50); box-shadow: inset 3px 0 0 var(--green); }
.gb-actions .btn { flex: 1 1 160px; }
.gb-tier-row { align-items: flex-end; } .gb-tier-row .field { flex: 1 1 120px; margin: 0; min-width: 0; }
.gb-seller { display: grid; gap: 12px; margin-top: 12px; }
.tg-card { display: grid; gap: 10px; }
.tg-link { display: grid; gap: 4px; justify-items: start; }
.tg-kinds { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; padding: 0; margin: 0; }
.tg-kinds legend { width: 100%; margin-bottom: 4px; color: var(--muted); }
:root[data-theme="dark"] .gb-tiers li.on, :root[data-theme="dark"] .status.gb-open, :root[data-theme="dark"] .status.vs-issued { background: var(--green-50); }
@media (max-width: 559px) { .pp-hero { grid-template-columns: 1fr; padding: 18px; } }
.tg-kinds .toggle { min-height: 36px; padding: 2px 0; }
.gb-you { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--forest-50); color: var(--forest-800); font-size: .8rem; font-weight: 750; }
.gb-you .ui-icon { width: 14px; height: 14px; color: var(--green); }
:root[data-theme="dark"] .gb-you { background: var(--green-50); color: var(--green); }

/* ============ 20. Radar (Phase 4) ============ */
.rd-list, .rd-recs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.rd-item { display: grid; gap: 8px; border-left: 4px solid var(--line); }
.rd-item.rd-out, .rd-item.rd-reorder_now { border-left-color: var(--danger); }
.rd-item.rd-soon { border-left-color: var(--gold-500); }
.rd-item.rd-ok { border-left-color: var(--green); }
.rd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rd-name { display: grid; gap: 1px; color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.status.rd-s-out, .status.rd-s-reorder_now { background: var(--danger-50); color: var(--danger); }
.status.rd-s-soon { background: var(--gold-50); color: var(--gold-700); }
.status.rd-s-ok { background: var(--forest-50); color: var(--ok); }
.status.rd-s-insufficient_data { background: var(--surface-sunken); color: var(--muted); }
.rd-gauge { height: 8px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; }
.rd-gauge > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-600), var(--base)); }
.rd-reorder_now .rd-gauge > div, .rd-out .rd-gauge > div { background: var(--danger); }
.rd-soon .rd-gauge > div { background: var(--gold-500); }
.rd-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rd-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rd-tag { padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-sunken); font-weight: 700; font-size: .74rem; }
.rd-tag.rd-b-measured { background: var(--forest-50); color: var(--forest-800); }
.rd-rec { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rd-season { display: flex; align-items: center; gap: 6px; }
.rd-season .ui-icon { width: 14px; height: 14px; }
:root[data-theme="dark"] .status.rd-s-ok, :root[data-theme="dark"] .rd-tag.rd-b-measured { background: var(--green-50); color: var(--green); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 8px; } .rd-actions .btn { width: auto; flex: 0 1 auto; } .rd-actions .btn.primary { flex: 1 1 100%; }
.tg-admin { display: grid; gap: 8px; margin-top: 14px; }
.tg-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tg-row b { overflow-wrap: anywhere; text-align: right; } .tg-good { color: var(--ok); } .tg-bad { color: var(--danger); }
.tg-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.offer-window { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 12px; display: grid; gap: 4px; } .offer-window-note { display: flex; align-items: center; gap: 4px; }
.pp-expiring { display: flex; align-items: center; gap: 6px; color: var(--gold-300) !important; font-weight: 700; } .pp-expiry-rule { opacity: .8; }
.voucher-box:empty { display: none; } .voucher-options { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 6px; } .voucher-options legend { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; } b.neg { color: var(--danger); }
/* Blocked account: reason, support contacts, unblock request */
.blocked-panel { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-50); color: var(--text); text-align: left; }
.blocked-head { display: flex; align-items: center; gap: 8px; color: var(--danger); }
.blocked-head .ui-icon { flex: 0 0 auto; }
.blocked-contacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blocked-panel p { margin: 0; }
.blocked-panel textarea { width: 100%; }
.appeal { align-items: flex-start !important; flex-wrap: wrap; }
.appeal-msg { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-sunken); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Blocked account: reason, support contacts, unblock request */
.blocked-panel { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-50); color: var(--text); text-align: left; }
.blocked-head { display: flex; align-items: center; gap: 8px; color: var(--danger); }
.blocked-head .ui-icon { flex: 0 0 auto; }
.blocked-contacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blocked-panel p { margin: 0; }
.blocked-panel textarea { width: 100%; }
.appeal { align-items: flex-start !important; flex-wrap: wrap; }
.appeal-msg { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-sunken); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ============ 21. Motion system ============
   Driven by src/client/motion.ts. Transform + opacity only; one-time reveals; decorative loops pause
   off-screen; everything is gated by html.motion, which is absent under prefers-reduced-motion. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-soft: cubic-bezier(.22, .61, .36, 1); }

/* Reveal on scroll / on page entrance (staggered by --rv-d) */
.motion .rv { opacity: 0; }
.motion .rv.rv-in { animation: rv-in .62s var(--ease-out) var(--rv-d, 0ms) both; }
.motion .rd-rec.rv.rv-in { animation-name: rv-in-x; }
@keyframes rv-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes rv-in-x { from { opacity: 0; transform: translate3d(18px, 0, 0); } to { opacity: 1; transform: none; } }

/* Page transitions: short, never in the way. Re-renders of the same page don't replay. */
main > .view { animation: view-in .28s var(--ease-out); }
main > .view.same { animation: none; }
@keyframes view-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
main > .skeleton { animation: fade-in .2s .12s both; } /* fast pages never flash a skeleton */
.state.empty .state-icon { animation: float-in .6s var(--ease-out) both; }
.state.error { animation: rv-in .4s var(--ease-out) both; }
@keyframes float-in { from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.94); } }

/* First load: the header settles in */
.motion .is-booting .topbar { animation: drop-in .55s var(--ease-out) both; }
@keyframes drop-in { from { opacity: 0; transform: translate3d(0, -10px, 0); } }
/* Header: a defined edge once the page scrolls */
.topbar::before { transition: box-shadow .3s var(--ease-soft), background-color .3s var(--ease-soft); }
.topbar.scrolled::before { box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(13, 42, 31, .45); }

/* Hero entrance: words → text → CTA → photo, then a very slow float */
.hero-enter h1 .word { display: inline-block; }
.motion .hero-enter h1 .word { animation: word-in .8s var(--ease-out) calc(120ms + var(--w) * 65ms) both; }
.motion .hero-enter > p { animation: rv-in .7s var(--ease-out) .5s both; }
.motion .hero-enter > .landing-cta { animation: rv-in .7s var(--ease-out) .62s both; }
.motion .hero-photo { animation: photo-in 1.1s var(--ease-out) .3s both, float-y 9s ease-in-out 1.4s infinite alternate; }
.motion .is-offscreen .hero-photo, .motion .is-offscreen .ambient { animation-play-state: paused; }
.motion .market-slide.slide-in .landing-content, .motion .market-slide.slide-in .market-slide-art { animation: rv-in .55s var(--ease-out) both; }
.motion .market-spotlight { animation: rv-in .8s var(--ease-out) .45s both; }
@keyframes word-in { from { opacity: 0; transform: translate3d(0, .45em, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes photo-in { from { opacity: 0; transform: translate3d(28px, 8px, 0) scale(.96); } }
@keyframes float-y { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -7px, 0); } }

/* Ambient glow inside hero panels (brand gold + forest), slow, paused off-screen */
.landing-hero, .auth-brand, .pp-hero { isolation: isolate; }
.pp-hero { position: relative; overflow: hidden; }
.ambient { position: absolute; inset: -35%; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(closest-side at 30% 35%, color-mix(in srgb, var(--gold) 26%, transparent), transparent),
              radial-gradient(closest-side at 72% 68%, color-mix(in srgb, var(--forest-300) 22%, transparent), transparent); }
.motion .ambient { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) rotate(0deg); } to { transform: translate3d(5%, 4%, 0) rotate(8deg); } }

/* Pointer-following light on a few large cards (fine pointers only; behind the content) */
.has-spot { position: relative; isolation: isolate; }
.spot-light { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease-soft);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%); }
.spot-on > .spot-light { opacity: 1; }

/* Cards: lift, deeper shadow, border, icon nudge — hover-capable pointers only */
@media (hover: hover) and (pointer: fine) {
  .product-tile, .gb-card, .list-card, .pp-reward, .value-prop, .market-spotlight, .admin-queue-link, .rd-rec, .sb-supplier {
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .25s; }
  .product-tile:hover, .gb-card:hover, .list-card:hover, .pp-reward:hover, .rd-rec:hover { transform: translate3d(0, -2px, 0); box-shadow: var(--e3); border-color: var(--line-strong); }
  .value-prop:hover { transform: translate3d(0, -2px, 0); }
  .value-prop-icon, .account-action > .ui-icon:first-child, .notif-icon { transition: transform .3s var(--ease-out); }
  .value-prop:hover .value-prop-icon { transform: translate3d(0, -2px, 0) rotate(-4deg); }
  .account-action:hover > .ui-icon:last-child { transform: translateX(3px); }
  .account-action > .ui-icon:last-child { transition: transform .25s var(--ease-out); }
  .product-tile .product-icon img { transition: transform .5s var(--ease-out); }
  .product-tile:hover .product-icon img { transform: scale(1.045); }
  .market-category-nav a .product-icon, .landing-category-list a .product-icon { transition: transform .35s var(--ease-out); }
  .market-category-nav a:hover .product-icon, .landing-category-list a:hover .product-icon { transform: translate3d(0, -3px, 0) scale(1.04); }
  .btn.primary:hover:not(:disabled) { transform: translate3d(0, -1px, 0); }
  .btn:not(.primary):hover .ui-icon:first-child:not(:last-child) { transform: translateX(-1px); }
}
.product-tile .product-icon { overflow: hidden; }

/* Buttons: busy while the request runs, ✓ only after the server confirmed, a small shake on failure */
.btn.is-busy, .quick-add.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > *, .btn.is-done > * { visibility: hidden; }
.btn.is-busy::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--btn-spin, var(--green)) transparent var(--btn-spin, var(--green)) var(--btn-spin, var(--green)); animation: spin .7s linear infinite; }
.btn.primary.is-busy::before, .btn.danger.is-busy::before { --btn-spin: var(--cream); }
.btn.is-done { color: transparent !important; }
.btn.is-done::before { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 9px; border: solid var(--cream); border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg); animation: done-in .35s var(--ease-spring) both; }
.btn:not(.primary):not(.danger).is-done::before { border-color: var(--green); }
.btn.is-error { animation: nudge .38s var(--ease-soft); }
@keyframes done-in { from { opacity: 0; transform: translateY(-2px) rotate(-45deg) scale(.4); } }
@keyframes nudge { 20% { transform: translateX(-3px); } 45% { transform: translateX(3px); } 70% { transform: translateX(-2px); } }

/* Cart: the icon nudges and the badge pops when an add was confirmed */
.bump .ui-icon { animation: cart-nudge .5s var(--ease-out); }
.bump .badge { animation: badge-pop .5s var(--ease-spring); }
@keyframes cart-nudge { 30% { transform: translate3d(0, -3px, 0) rotate(-8deg); } 60% { transform: translate3d(0, 0, 0) rotate(4deg); } }
@keyframes badge-pop { from { transform: scale(.4); } }

/* Numbers: tabular while counting so the width never jumps; changed totals glow briefly */
.counting { font-variant-numeric: tabular-nums; }
.motion [data-tween].changed { animation: price-pop .5s var(--ease-out); }

/* Charts: the line draws, the area fades, bars grow, dots appear */
.motion .admin-chart.pre-play:not(.play) :is(.chart-line, .chart-area, .chart-dot) { opacity: 0; }
.motion .admin-chart.pre-play:not(.play) .chart-bar { transform: scaleY(0); }
.motion .admin-chart.play .chart-line { stroke-dasharray: 1 1; animation: draw 1.3s var(--ease-soft) both; }
.motion .admin-chart.play .chart-area { animation: fade-in .9s .35s both; }
.motion .admin-chart.play .chart-bar { transform-origin: bottom; animation: grow-y .8s var(--ease-out) both; }
.motion .admin-chart.play .chart-dot { animation: dot-in .4s var(--ease-spring) .9s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes dot-in { from { opacity: 0; transform: translateY(50%) scale(.2); } }

/* Progress fills, gauges, meters, TrustScore rings */
.motion :is(.progress.pre-play:not(.play) > .progress-bar, .gb-progress.pre-play:not(.play) .gb-fill, .rd-gauge.pre-play:not(.play) > div, .trust-bar.pre-play:not(.play) > span, .stock-meter.pre-play:not(.play) > span) { transform: scaleX(0); }
.motion .progress.play > .progress-bar, .motion .gb-progress.play .gb-fill, .motion .rd-gauge.play > div, .motion .trust-bar.play > span,
.motion .stock-meter.play > span, .motion .admin-chart-track.play > * { transform-origin: left center; animation: grow-x 1s var(--ease-out) .1s both; }
.motion .gb-progress.play .gb-mark { animation: fade-in .4s .7s both; }
.motion .trust-ring.play { animation: ring-fill 1.2s var(--ease-out) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes ring-fill { from { --p: 0; } }
.pod-verified, .trust-badge { animation: pop-in .4s var(--ease-spring) both; }

/* Feature identities */
.motion .sb-saving.play { animation: saving-in .5s var(--ease-spring) .35s both; }
@keyframes saving-in { from { opacity: 0; transform: scale(.7); } }
.motion .pi-move.play { animation: rv-in-x .5s var(--ease-out) .2s both; }
.motion .gb-tiers.play li.on { animation: tier-on .7s var(--ease-out) .5s both; }
@keyframes tier-on { from { box-shadow: inset 0 0 0 var(--green); background: var(--surface-sunken); } }
.gb-tiers li, .status, .rd-tag, .sb-strategy { transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft), box-shadow .35s var(--ease-soft); }
/* Radar: urgent items pulse a few times, then rest */
.motion :is(.status.rd-s-reorder_now, .status.rd-s-out) { animation: urgent 1.8s var(--ease-soft) 3; }
@keyframes urgent { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--danger) 14%, transparent); } }
/* New notifications and price alerts: a gentle double pulse on the icon */
.motion .notif.unread .notif-icon { animation: urgent-green 1.6s var(--ease-soft) .6s 2; }
@keyframes urgent-green { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 16%, transparent); } }

/* Sheets: slide back out instead of vanishing */
.motion dialog.sheet.closing { animation: sheet-down .17s ease-in forwards; }
dialog.sheet.closing { pointer-events: none; }
@media (min-width: 720px) { .motion dialog.sheet.closing { animation: pop-out .15s ease-in forwards; } }
@keyframes sheet-down { to { transform: translate3d(0, 40px, 0); opacity: 0; } }
@keyframes pop-out { to { transform: translate3d(0, 6px, 0) scale(.98); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* Print and reduced motion: everything visible, nothing moving */
@media print { .rv { opacity: 1 !important; animation: none !important; } .ambient, .spot-light { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; }
  .ambient, .spot-light { display: none; }
}
.top-list li.district-line { grid-template-columns: minmax(0, 1fr); } /* no rank badge on district rows */
.motion .top-bar.pre-play:not(.play) > span { transform: scaleX(0); }
.motion .top-bar.play > span { transform-origin: left center; animation: grow-x 1s var(--ease-out) .1s both; }

/* Phone field: fixed +998 prefix, national number typed as "90 123 12 34" */
.phone-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(18, 61, 46, .04); transition: border-color .15s, box-shadow .2s var(--ease); }
.phone-input:focus-within { border-color: var(--forest-500); box-shadow: var(--ring); }
.phone-input:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.phone-prefix { display: flex; align-items: center; padding: 0 2px 0 14px; color: var(--text-2); font-weight: 650; font-variant-numeric: tabular-nums; user-select: none; }
.phone-input input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; padding-left: 8px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.phone-input input:focus { outline: none; }

/* ============ 22. Dashboards: bento layout + HUD styling ============
   Seller statistics and the admin workspace. Same palette (forest, gold, cream), more depth:
   hairline gradient borders, a faint dot grid, glowing accents, compact typography for numbers. */
.stats-bento { columns: 1; column-gap: 14px; margin-top: 14px; }
.stats-bento > * { break-inside: avoid; display: block; width: 100%; margin: 0 0 14px !important; }
@media (min-width: 760px) { .stats-bento { columns: 2; } }
@media (min-width: 1360px) { .stats-bento { columns: 3; } }
.stats-bento h2 { font-size: 1rem; margin: 0 0 12px; }

.hud { --hud-edge: color-mix(in srgb, var(--forest-300) 55%, transparent); --hud-glow: color-mix(in srgb, var(--gold) 40%, transparent); position: relative; }
:root[data-theme="dark"] .hud { --hud-edge: color-mix(in srgb, var(--green) 30%, transparent); --hud-glow: color-mix(in srgb, var(--gold) 30%, transparent); }
.hud::before { content: ""; position: absolute; inset: -12px -12px auto; height: 420px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.2px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); opacity: .5; }
.hud :is(.card:not(.notice):not(.profile-identity):not(.pod-card), .kpi:not(.kpi-hero), .period, .group-card, .checkout-card, .order-card:not(.checkout-card .order-card),
  .offer-card, .review-group, .product-tile, .notif, .pp-reward, .sb-supplier, .sb-line:not(.kept), .sb-compare, .sb-strategy:not(.on), .rd-rec, .list-card, .summary-bar) {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(140deg, var(--hud-edge), color-mix(in srgb, var(--line) 80%, transparent) 38%, var(--line) 62%, var(--hud-glow)) border-box;
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 6%, transparent) inset, 0 18px 40px -30px rgba(13, 42, 31, .55);
}
.hud .card > h2:first-child, .hud .admin-chart > h2, .hud .stats-bento h2 { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.hud .card > h2:first-child::before, .hud .admin-chart > h2::before, .hud .stats-bento h2::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent), 0 0 12px color-mix(in srgb, var(--green) 55%, transparent); }
.hud .kpi-value, .hud .period strong, .hud .tnum, .hud .trust-facts dd { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hud .kpi:not(.kpi-hero)::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-edge), transparent); opacity: .8; }
.hud .kpi-hero { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent), 0 24px 48px -24px rgba(13, 42, 31, .7), 0 0 60px -30px var(--gold); }
.hud .kpi-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .10) 50%, transparent 65%);
  transform: translateX(-100%); }
.motion .hud .kpi-hero::after { animation: sheen 1.6s var(--ease-out) .6s both; }
@keyframes sheen { to { transform: translateX(100%); } }
.hud :is(.top-bar, .trust-bar, .admin-chart-track) { background: color-mix(in srgb, var(--surface-sunken) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.hud :is(.top-bar, .trust-bar) > span { background: linear-gradient(90deg, var(--forest-600), var(--green)); box-shadow: 0 0 12px -2px color-mix(in srgb, var(--green) 70%, transparent); }
:root[data-theme="dark"] .hud :is(.top-bar, .trust-bar) > span { background: linear-gradient(90deg, var(--forest-500), var(--green)); }
.hud .chart-line { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--green) 45%, transparent)); }
.hud .health-icon, .hud .notif-icon { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 20%, transparent); }
.hud .chips.stats-ranges .chip.on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent), 0 0 18px -6px var(--green); }

/* TrustScore panel: summary left, weighted metrics right; appeal form folds away */
.trust-summary { display: grid; gap: 14px; align-content: start; min-width: 0; }
.trust-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trust-facts div { padding: 9px 11px; }
.trust-facts dt { display: flex; align-items: center; gap: 6px; }
.trust-facts dt .ui-icon { width: 13px; height: 13px; flex: none; color: var(--green); }
.trust-progress { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.trust-metrics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; align-content: start; }
.trust-appeal-form summary { list-style: none; display: inline-flex; width: auto; cursor: pointer; }
.trust-appeal-form summary::-webkit-details-marker { display: none; }
.trust-appeal-form[open] summary { margin-bottom: 10px; }
.trust-appeal-form textarea { width: 100%; }
@media (min-width: 900px) {
  .trust-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 28px; align-items: start; }
  .trust-panel > :is(.trust-appeals, .trust-districts) { grid-column: 1 / -1; }
  .trust-panel .trust-metrics { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* ============ 23. Buyer pages: layout fixes + HUD on every page ============ */
/* Dot grid only behind the top of the page, and not on the admin workspace (it has its own frame) */
main.hud::before { inset: 0 0 auto; height: 520px; }
main:has(.admin-workspace)::before { display: none; }
/* Section titles across buyer pages get the same marker as dashboards */
.hud :is(.section-title, .landing-section-head h2, .sheet-head h2)::before { content: none; }
.hud :is(.product-alternatives, .storefront-products, .product-feedback) > h2:first-child { display: flex; align-items: center; gap: 8px; }
/* Prices and totals: tabular, slightly tighter */
.hud :is(.product-price, .offer-price, .order-total, .checkout-total, .line.grand span:last-child, .pi-best-price, .gb-price strong) { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hud .line.grand span:last-child { text-shadow: 0 0 18px color-mix(in srgb, var(--green) 30%, transparent); }
/* Status pills and chips glow faintly when active */
.hud :is(.chip.on, .tab.on, .nav-item.on) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent), 0 0 18px -8px var(--green); }
.hud :is(.progress, .gb-track, .rd-gauge, .stock-meter, .split-bar) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.hud :is(.progress-bar, .gb-fill, .rd-gauge > div) { box-shadow: 0 0 12px -2px color-mix(in srgb, var(--green) 65%, transparent); }
/* Best offer card on the product page: the gold-green top line glows */
.hud .product-purchase .offer-card::before { box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 55%, transparent); }

/* Product page: no empty middle column on wide screens — image left (kept in view), title + best offer right */
@media (min-width: 1040px) {
  .product-detail-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 28px; row-gap: 14px; }
  .product-media { grid-row: span 2; position: sticky; top: calc(var(--header-h) + 16px); }
  .product-purchase { grid-column: 2; position: static; }
  .product-media .product-icon.lg { max-height: 520px; }
}

/* Profile: two columns on desktop instead of one narrow centred column */
@media (min-width: 1000px) {
  .account-profile { max-width: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; column-gap: 18px; }
  .account-profile > .profile-identity { grid-column: 1; }
  .account-profile > .account-actions { grid-column: 2; grid-row: 1 / span 3; }
  .account-profile > .tg-card { grid-column: 1; }
  .account-profile > .product-feedback { grid-column: 1 / -1; }
}
/* Section headings that already carry an icon don't need the extra marker */
.hud .card > h2:first-child:has(> .ui-icon)::before { content: none; }
/* Other offers on the product page: two offers fill the row instead of two thirds of it */
@media (min-width: 1040px) { .product-alternatives .offer-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
/* Radar: two columns of forecast cards on wide screens */
@media (min-width: 1000px) { .rd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
/* Supplier delivery areas wrap instead of running off the card */
.trust-districts .chips { flex-wrap: wrap; overflow: visible; }
/* Passport: cards side by side on wide screens, history full width */
.pp-grid { display: grid; gap: 12px; }
.pp-grid > .card { margin: 0; }
@media (min-width: 1000px) {
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .pp-grid > .card:last-child { grid-column: 1 / -1; }
  .pp-grid > .card:nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; }
}

/* ============ 24. Command palette, scroll progress, living empty states ============ */
.pal-trigger { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); box-shadow: var(--e1); cursor: pointer; font: inherit; font-size: .8rem; transition: border-color .2s, color .2s, box-shadow .25s var(--ease); }
.pal-trigger .ui-icon { width: 15px; height: 15px; }
.pal-trigger:hover { color: var(--text); border-color: var(--line-strong); box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 25%, transparent), 0 0 18px -8px var(--green); }
@media (min-width: 1100px) and (hover: hover) { .pal-trigger { display: inline-flex; } }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--surface-sunken); color: var(--text-2); font: 650 .68rem/1 var(--mono, ui-monospace, monospace); }
dialog.palette { width: min(640px, calc(100% - 24px)); max-height: min(70dvh, 560px); margin: 12vh auto auto; padding: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); color: var(--text); border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, color-mix(in srgb, var(--forest-300) 60%, transparent), var(--line) 40%, color-mix(in srgb, var(--gold) 45%, transparent)) border-box;
  box-shadow: 0 30px 80px -20px rgba(8, 28, 20, .55), 0 0 0 1px color-mix(in srgb, #fff 5%, transparent) inset; }
dialog.palette:not([open]) { display: none; }
dialog.palette::backdrop { background: rgba(10, 30, 22, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.motion dialog.palette[open] { animation: pal-in .22s var(--ease-out); }
@keyframes pal-in { from { opacity: 0; transform: translate3d(0, -8px, 0) scale(.985); } }
.pal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-head > .ui-icon { width: 18px; height: 18px; color: var(--green); flex: none; }
.pal-input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; font-size: 1.02rem; padding: 4px 0; outline: none; }
.pal-list { list-style: none; margin: 0; padding: 6px; overflow: auto; overscroll-behavior: contain; }
.pal-group { padding: 10px 10px 4px; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pal-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.pal-item.on { background: color-mix(in srgb, var(--green) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.pal-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-sunken); color: var(--green); }
.pal-icon .ui-icon { width: 15px; height: 15px; }
.pal-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pal-hint { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pal-status:not(:empty) { padding: 4px 18px 10px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-sunken) 60%, var(--surface)); }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 559px) { dialog.palette { margin-top: 8vh; } .pal-foot { display: none; } }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform: scaleX(0); transform-origin: left center; pointer-events: none;
  background: linear-gradient(90deg, var(--forest-600), var(--green), var(--gold)); box-shadow: 0 0 10px color-mix(in srgb, var(--green) 60%, transparent); }

/* Empty states: a quiet orbit around the icon (very slow, decorative, off under reduced motion) */
.state-icon { position: relative; }
.state.empty .state-icon::before, .state.empty .state-icon::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--green) 35%, transparent); pointer-events: none; }
.state.empty .state-icon::after { inset: -24px; border-style: solid; border-color: color-mix(in srgb, var(--gold) 22%, transparent); border-left-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.motion .state.empty .state-icon::before { animation: orbit 28s linear infinite; }
.motion .state.empty .state-icon::after { animation: orbit 9s linear infinite reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.state.empty { padding-block: 34px; }
.pal-input::-webkit-search-cancel-button { display: none; }


/* =====================================================================================
   25. ATLAS — O-Mart visual identity (replaces the "Evergreen" look; all earlier sections keep layout)
   Subject: wholesale restocking for small Tashkent shops. The world it borrows from: the bozor signboard,
   crate price tags, and Margilan atlas (ikat) silk. One bold element — the signboard header with an atlas
   stripe — everything else flat, crisp and quiet.
     Paper   #F3F5F0  page            Ink      #10261F  text
     Emerald #0B6B4B  brand/actions   Saffron  #F2B01E  prices, highlights
     Plum    #7A2E5E  atlas stripe only
   Type: Unbounded (signboard display, used sparingly) + Onest (UI and body, Uzbek Latin + Cyrillic).
   ===================================================================================== */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/onest-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; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/onest-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: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/unbounded-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/unbounded-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; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/unbounded-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; }

:root {
  --a-paper: #F3F5F0; --a-ink: #10261F; --a-emerald: #0B6B4B; --a-emerald-deep: #07432F; --a-saffron: #F2B01E; --a-plum: #7A2E5E;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* roles */
  --base: var(--a-emerald); --ink: var(--a-ink); --gold: var(--a-saffron); --cream: #FFFFFF; --hero: #E6EEE7;
  --forest-950: #052A1E; --forest-900: var(--a-emerald-deep); --forest-800: var(--a-emerald); --forest-700: #0E7A56; --forest-600: #158A62;
  --forest-500: #2B9A70; --forest-300: #93CDB2; --forest-200: #C5E4D3; --forest-100: #E2F1E8; --forest-50: #EFF7F2;
  --gold-700: #7A5200; --gold-600: #A87400; --gold-300: #F8D277; --gold-100: #FDEFC6; --gold-50: #FEF8E6;
  --bg: var(--a-paper); --surface: #FFFFFF; --surface-2: #F7F8F5; --surface-sunken: #EDF0EA;
  --line: #D9DED5; --line-strong: #BCC4B8; --hairline: rgba(16, 38, 31, .08);
  --text: var(--a-ink); --text-2: #2F4139; --muted: #56645D; --subtle: #707D76;
  --green: var(--a-emerald); --green-600: var(--a-emerald-deep); --green-50: #E2F1E8;
  --ok: #0F7A4C; --danger: #B42318; --danger-50: #FDECEA; --info: #155E9C; --info-50: #E5F0FA;
  --focus: var(--a-emerald); --ring: 0 0 0 3px rgba(11, 107, 75, .28);
  --canvas-light: none;
  --brand-gradient: var(--a-emerald); --button-gradient: var(--a-emerald); --gold-gradient: var(--a-saffron);
  --r-xs: 3px; --r-sm: 8px; --radius: 10px; --r-lg: 14px; --r-xl: 18px;
  --highlight: 0 0 0 transparent;
  --e1: 0 1px 0 rgba(16, 38, 31, .06);
  --e2: 0 1px 0 rgba(16, 38, 31, .06), 0 6px 16px -10px rgba(16, 38, 31, .22);
  --e3: 0 2px 0 rgba(16, 38, 31, .06), 0 18px 40px -18px rgba(16, 38, 31, .38);
  --shadow-brand: none;
  --atlas: repeating-linear-gradient(90deg, var(--a-saffron) 0 18px, var(--a-plum) 18px 27px, #F7E9D0 27px 31px, var(--a-emerald) 31px 47px, var(--a-ink) 47px 51px, #F7E9D0 51px 55px);
}
:root[data-theme="dark"] {
  --bg: #0B1B15; --surface: #12261E; --surface-2: #163026; --surface-sunken: #0F211A; --hero: #173329;
  --line: #24392F; --line-strong: #33503F; --hairline: rgba(255, 255, 255, .06);
  --text: #E8F1EB; --text-2: #C9D8CE; --muted: #9DB2A5; --subtle: #81998A;
  --green: #5BD4A1; --green-600: #0B6B4B; --green-50: #173B2D; --forest-300: #2F7A5A; --forest-200: #24513F;
  --marigold-50: #3A2F12; --marigold-700: #F5C74E; --gold-100: #3A2F12; --gold-700: #F5C74E;
  --ok: #6EE0A8; --danger: #FF9C92; --danger-50: #3B1B18; --focus: #5BD4A1; --ring: 0 0 0 3px rgba(91, 212, 161, .3);
  --e1: 0 1px 0 rgba(0, 0, 0, .3); --e2: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .6); --e3: 0 2px 0 rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .7);
  --canvas-light: none;
}

/* Base */
body { background: var(--bg); font-feature-settings: "ss01", "tnum" 0; letter-spacing: -.003em; }
h1, h2, h3 { letter-spacing: -.015em; }
.page-title, .landing-content :is(h1, h2), .auth-panel h1, .auth-brand h2, .brand-name, .workspace-head .page-title, .pp-balance strong, .kpi-hero .kpi-value {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
.page-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; }
/* Sentence case everywhere: labels say what they are, they don't shout */
.eyebrow, .trust-facts dt, .kpi-label, .pi-stats dt, .offer-facts dt, .facts dt, .env-banner, .period-label, .pal-group, .hud .card > h2:first-child {
  text-transform: none !important; letter-spacing: 0 !important; }
.eyebrow { font-size: .8rem; font-weight: 600; color: var(--muted); }
::selection { background: var(--a-saffron); color: var(--a-ink); }

/* ---- The signboard: emerald header with an atlas stripe along its edge ---- */
.topbar::before { background: var(--a-emerald); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
:root[data-theme="dark"] .topbar::before { background: #07362A; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--atlas); pointer-events: none;
  -webkit-mask: repeating-linear-gradient(118deg, #000 0 7px, rgba(0, 0, 0, .55) 7px 9px); mask: repeating-linear-gradient(118deg, #000 0 7px, rgba(0, 0, 0, .55) 7px 9px); }
.scroll-progress { bottom: 0; height: 2px; background: var(--a-saffron); box-shadow: none; }
.topbar.scrolled::before { box-shadow: 0 10px 30px -16px rgba(5, 42, 30, .55); }
.brand { color: #fff; }
.brand-name { font-size: 1.02rem; letter-spacing: -.02em; }
.brand-mark { border-radius: 9px; background: #fff; }
.env-banner { color: var(--a-ink); background: var(--a-saffron); border: 0; font-size: .66rem; font-weight: 700; }
:root[data-theme="dark"] .env-banner { color: var(--a-ink); background: var(--a-saffron); }
.topbar :is(.district-pill, .theme-toggle, .bell, .pal-trigger, .lang) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.topbar :is(.district-pill, .theme-toggle, .bell, .pal-trigger):hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .4); }
.topbar .district-pill .ui-icon { color: var(--a-saffron); }
.topbar .lang-btn { color: rgba(255, 255, 255, .86); min-height: 30px; min-width: 36px; }
.topbar .lang-btn.on, :root[data-theme="dark"] .topbar .lang-btn.on { background: #fff; color: var(--a-emerald); box-shadow: none; }
.topbar .pal-trigger kbd { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.topbar .badge { background: var(--a-saffron); color: var(--a-ink); box-shadow: 0 0 0 2px var(--a-emerald); }
.global-search { border-color: transparent; border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.global-search:focus-within { border-color: var(--a-saffron); box-shadow: 0 0 0 3px rgba(242, 176, 30, .45); }
.global-search-go { background: var(--a-saffron); border-color: var(--a-saffron); color: var(--a-ink); }
.global-search-go:hover { background: #F7C24A; }
@media (min-width: 800px) {
  /* Desktop nav: words on the signboard, the current page underlined in saffron */
  .topbar-row .bottomnav { background: transparent; border: 0; padding: 0; gap: 4px; }
  .topbar .nav-item { color: rgba(255, 255, 255, .82); border-radius: 8px; background: transparent; box-shadow: none; font-weight: 600; }
  .topbar .nav-item:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .topbar .nav-item.on, .hud .nav-item.on { color: #fff; background: transparent; box-shadow: inset 0 -3px 0 var(--a-saffron); border-radius: 0; }
  .topbar .nav-item.on .nav-icon .ui-icon { color: var(--a-saffron); }
  .topbar .badge { box-shadow: none; }
}
@media (max-width: 799px) {
  /* Phone dock: a white shelf with the current tab marked by an emerald bar */
  .bottomnav { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--e3); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-item { color: var(--muted); border-radius: 12px; }
  .nav-item.on { color: var(--a-emerald); background: transparent; box-shadow: inset 0 3px 0 var(--a-emerald); border-radius: 0 0 12px 12px; }
  :root[data-theme="dark"] .nav-item.on { color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
  .nav-item .badge { box-shadow: 0 0 0 2px var(--surface); }
}

/* ---- Surfaces: flat, crisp, radius by hierarchy ---- */
.card, .group-card, .checkout-card, .order-card, .offer-card, .review-group, .product-tile, .kpi, .period, .notif, .gb-card, .pp-reward, .sb-supplier, .sb-line, .rd-item, .list-card {
  background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.card { box-shadow: none; }
.checkout-card .order-card { border: 0; border-top: 1px solid var(--line); }
a.card:hover, .product-tile:hover { transform: none; border-color: var(--line-strong); box-shadow: var(--e2); }
.notice { border-radius: var(--radius); }
.chip { border-radius: 8px; box-shadow: none; }
.chip.on { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
:root[data-theme="dark"] .chip.on { background: var(--green); color: #0B1B15; border-color: var(--green); }
.tab.on { box-shadow: inset 0 -3px 0 var(--a-emerald); }
.status { border-radius: var(--r-xs); font-weight: 650; }
.size-tag { border-radius: var(--r-xs); }

/* ---- Buttons: flat emerald, saffron reserved for buying moments ---- */
.btn { box-shadow: none; border-radius: var(--radius); font-weight: 650; }
.btn:hover { box-shadow: none; }
.btn.primary { background: var(--a-emerald); border-color: var(--a-emerald); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--a-emerald-deep); border-color: var(--a-emerald-deep); box-shadow: none; transform: none; }
:root[data-theme="dark"] .btn.primary { background: #0A7550; border-color: #0A7550; }
.btn.primary .ui-icon:last-child:not(:first-child) { transform: none; }
/* Add-to-cart and the final order button: the saffron "buy" colour */
.quick-add, .product-purchase .btn.primary, .summary-bar .btn.primary, .checkout-submit, .review .btn.primary.lg, button.btn.primary.block.lg {
  background: var(--a-saffron); border-color: var(--a-saffron); color: var(--a-ink); }
.quick-add:hover, .product-purchase .btn.primary:hover, .summary-bar .btn.primary:hover, button.btn.primary.block.lg:hover { background: #F7C24A; border-color: #F7C24A; }
.btn.is-busy::before { --btn-spin: currentColor; }
.btn.is-done::before { border-color: currentColor; }
.btn:disabled, .btn[disabled] { opacity: 1; background: var(--surface-sunken); border-color: var(--line); color: var(--subtle); filter: none; }

/* ---- Inputs ---- */
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: var(--r-sm); box-shadow: none; }

/* ---- Prices: the saffron hang-tag for the best price ---- */
.price-tag, .best-unit, .offer-best, .tag.accent, .product-best-unit, .gb-price strong:first-child {
  font-variant-numeric: tabular-nums; }
.tag.best, .best-badge, .offer-card .best-tag, .badge-best {
  position: relative; background: var(--a-saffron); color: var(--a-ink); border-radius: 3px 3px 3px 3px; padding-left: 14px;
  -webkit-mask: radial-gradient(circle 3px at 7px 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 3px at 7px 50%, transparent 98%, #000 100%); }

/* ---- Landing: the stall front ---- */
.landing-hero { background: var(--a-emerald); border-radius: var(--r-xl); box-shadow: none; }
.landing-hero::after { display: none; }
.landing-content :is(h1, h2) { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.02; max-width: 13ch; }
.landing-cta { background: var(--a-saffron) !important; color: var(--a-ink) !important; border-color: var(--a-saffron) !important; }
.landing-hero::before { background: linear-gradient(90deg, var(--a-emerald) 34%, rgba(11, 107, 75, .55) 58%, transparent 80%); }
.value-prop { box-shadow: none; border: 1px solid var(--line); background: var(--surface); }
.value-prop-icon { background: var(--a-ink); color: var(--a-saffron); box-shadow: none; }
.market-category-nav a, .landing-category-list a { box-shadow: none; }
.market-spotlight { background: var(--surface) !important; box-shadow: none; }

/* ---- Workspace and dashboards ---- */
.kpi-hero { background: var(--a-ink); color: #fff; }
:root[data-theme="dark"] .kpi-hero { background: #07362A; }
.kpi-hero::before { background: none; }
.kpi-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--atlas); opacity: .9; }
.stat { box-shadow: none; }
.pp-hero, .profile-identity, .account-profile .profile-identity { background: var(--a-emerald) !important; box-shadow: none !important; }
.pp-hero { position: relative; overflow: hidden; }
.pp-hero::after, .account-profile .profile-identity::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--atlas); }
.account-profile .profile-identity::before { background: none; }
.auth-brand { background: var(--a-emerald); }
.auth-brand::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--atlas); }
.progress-bar, .gb-fill, .rd-gauge > div, .top-bar > span, .trust-bar > span { background: var(--a-emerald); box-shadow: none; }
:root[data-theme="dark"] :is(.progress-bar, .gb-fill, .rd-gauge > div, .top-bar > span, .trust-bar > span) { background: var(--green); }
.chart-line { stroke: var(--a-emerald); filter: none; }
:root[data-theme="dark"] .chart-line { stroke: var(--green); }
.chart-bar { background: var(--a-emerald); }
:root[data-theme="dark"] .chart-bar { background: var(--green); }

/* Empty states: a crate label, not decoration */
.state.empty .state-icon::before, .state.empty .state-icon::after { content: none; }
.state-icon { background: var(--surface); border: 1.5px dashed var(--line-strong); color: var(--a-emerald); border-radius: 12px; }

/* Palette, sheets */
dialog.palette { background: var(--surface); border: 1px solid var(--line); }
.pal-item.on { background: var(--green-50); box-shadow: inset 3px 0 0 var(--a-emerald); }
dialog.sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; }
@media (min-width: 720px) { dialog.sheet { border-radius: var(--r-xl); } }

/* Atlas refinements after the first render pass */
.market-dot[aria-pressed="true"]::before { background: var(--a-saffron); }
.landing-content :is(h1, h2) { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 12ch; }
.landing-hero::before { background: linear-gradient(90deg, var(--a-emerald) 40%, rgba(11, 107, 75, .7) 60%, rgba(11, 107, 75, .1) 85%); }
.product-brand { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; color: var(--muted); }
.product-description .product-brand { color: var(--muted); font-size: .9rem; }
.btn.primary.quick-add, :root[data-theme="dark"] .btn.primary.quick-add,
:root[data-theme="dark"] :is(.product-purchase, .summary-bar) .btn.primary, :root[data-theme="dark"] button.btn.primary.block.lg {
  background: var(--a-saffron); border-color: var(--a-saffron); color: var(--a-ink); }
.btn.primary.quick-add:hover { background: #F7C24A; border-color: #F7C24A; }
.catalog-intro { box-shadow: none; border: 1px solid var(--line); }
/* Review fixes: the disabled order button explains itself; bigger tap targets on phones */
.submit-why:not(:empty) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--gold-50); border: 1px solid color-mix(in srgb, var(--a-saffron) 55%, transparent); color: var(--text); font-size: .9rem; font-weight: 550; }
:root[data-theme="dark"] .submit-why:not(:empty) { background: #2C2410; }
.submit-why .ui-icon { color: var(--gold-700); }
.link-btn { border: 0; background: none; padding: 0; color: var(--green); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-item-check, .cart-select-all input { width: 24px; height: 24px; }
@media (max-width: 799px) { .topbar .lang-btn { min-height: 34px; min-width: 40px; } }
.trust-badge.none { color: var(--text-2); }
.empty-actions { justify-content: center; margin-top: 4px; }
/* A disabled action never looks clickable, whatever its colour role */
.btn:is(:disabled, [disabled]), .btn.primary:is(:disabled, [disabled]), .btn.primary.block.lg:is(:disabled, [disabled]), .quick-add:is(:disabled, [disabled]) {
  background: var(--surface-sunken) !important; border-color: var(--line) !important; color: var(--subtle) !important; cursor: not-allowed; }
/* Numbers stay in the body face: the wide signboard face is for words, not figures */
.kpi-hero .kpi-value, .pp-balance strong { font-family: var(--font); font-weight: 800; letter-spacing: -.035em; }

/* ============ 26. No scroll chrome; the admin is a normal page ============
   Scrolling still works everywhere (wheel, touch, keyboard, trackpad); only the bars are not drawn.
   The admin workspace no longer nests scroll panes: the page scrolls, the sidebar stays in view. */
html, body, * { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }

#app:has(.admin-workspace) { display: block; height: auto; overflow: visible; }
main:has(.admin-workspace) { padding: 16px var(--gutter) calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); max-width: 1440px; }
main:has(.admin-workspace) > .view { height: auto; }
.admin-workspace { height: auto; border: 0; background: none; box-shadow: none; padding: 0; gap: 18px; }
.admin-content { overflow: visible; scrollbar-gutter: auto; padding: 0; }
.admin-menu a { white-space: nowrap; }
.admin-recent ul { overflow: visible; }
@media (min-width: 780px) {
  .admin-workspace { grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto; align-items: start; }
  .admin-sidebar { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; }
}
@media (min-width: 1000px) {
  .admin-overview-content { display: block; }
  .admin-overview-content .admin-section-body { display: block; }
  .admin-dashboard-grid { align-items: start; }
  .admin-recent { display: block; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  /* the old "fit the dashboard into one screen" squeeze is no longer needed */
  .admin-metrics .card { padding-block: clamp(8px, 1.2vw, 14px); gap: 5px; }
  .admin-charts > .card, .admin-dashboard-grid > .card { padding: 14px; }
  .chart-plot { height: 120px; }
  .admin-chart-track { height: 6px; }
  .admin-recent-order, .admin-queue-link { padding-block: 9px; }
}
@media (min-width: 780px) and (max-height: 860px) {
  /* every menu item fits in the sidebar on laptop-height screens */
  .admin-menu { gap: 2px; padding-top: 6px; }
  .admin-menu a { padding-block: 7px; }
}

/* ============ 27. Glass market — layout language after raqamli-klinika.uz, O-Mart colours kept ============
   What changed: a grid canvas with soft emerald/saffron light, a frosted header, pill buttons with a
   coloured glow, rounded tinted cards with hairline borders, icon tiles, Space Grotesk headings with one
   accented word, and the new home page (hero + live price board, feature cards, marquee, steps,
   problem → solution, closing call to action). Colours stay Atlas: emerald, saffron, ink, paper. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/space-grotesk-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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/space-grotesk-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; }
:root {
  --display: "Space Grotesk", "Onest", system-ui, sans-serif;
  --font: "Inter", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px; --r-sm: 10px; --r-lg: 18px; --r-xl: 22px; --r-2xl: 28px;
  --card-tint: color-mix(in srgb, var(--a-emerald) 6%, var(--surface));
  --card-bg: linear-gradient(160deg, var(--card-tint) 0%, var(--surface) 46%);
  --card-line: color-mix(in srgb, var(--line) 85%, transparent);
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --glow-emerald: rgba(11, 107, 75, .16); --glow-saffron: rgba(242, 176, 30, .13);
  --grid-line: rgba(16, 38, 31, .045);
  --e2: 0 1px 2px rgba(16, 38, 31, .05), 0 12px 28px -18px rgba(16, 38, 31, .35);
  --e3: 0 2px 4px rgba(16, 38, 31, .05), 0 28px 60px -28px rgba(16, 38, 31, .45);
  --glow-btn: 0 10px 26px -10px rgba(11, 107, 75, .7);
  --glow-buy: 0 10px 26px -10px rgba(214, 150, 10, .75);
}
:root[data-theme="dark"] {
  --card-tint: color-mix(in srgb, #5BD4A1 7%, var(--surface));
  --glow-emerald: rgba(11, 107, 75, .38); --glow-saffron: rgba(242, 176, 30, .08);
  --grid-line: rgba(255, 255, 255, .035);
  --e2: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -16px rgba(0, 0, 0, .7);
  --e3: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .8);
  --glow-btn: 0 10px 28px -10px rgba(40, 190, 130, .55);
}

/* ---- Canvas: a faint grid fading out, emerald light top-right, saffron light bottom-left ---- */
body { position: relative; isolation: isolate; background: var(--bg); font-feature-settings: "cv11", "ss03"; letter-spacing: -.008em; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%); mask: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%); }
body::after { background: radial-gradient(900px 600px at 92% -8%, var(--glow-emerald), transparent 65%), radial-gradient(700px 520px at -6% 104%, var(--glow-saffron), transparent 65%); }

/* ---- Type: Space Grotesk for headings, Inter for reading ---- */
h1, h2, h3, .page-title, .landing-content :is(h1, h2), .auth-panel h1, .auth-brand h2, .brand-name, .workspace-head .page-title, .card > h2, .section-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.page-title { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.08; }
/* Inter's stylistic sets (body) mean other glyphs in Space Grotesk: headings use the face's defaults */
h1, h2, h3, .page-title, .brand-name, .card > h2, .section-title, .lp-card strong, .lp-board-top strong, .lp-marquee-item, .lp-step-num, .landing-section-head h2,
.kpi-value, .stat strong, .kpi-hero .kpi-value, .pp-balance strong { font-feature-settings: normal; }
.kpi-value, .stat strong, .kpi-hero .kpi-value, .pp-balance strong { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }

/* ---- Header: frosted glass on the page, not a signboard ---- */
.topbar::before { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border-bottom: 1px solid var(--hairline); }
:root[data-theme="dark"] .topbar::before { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.topbar::after { content: none; }
.topbar.scrolled::before { box-shadow: 0 12px 30px -22px rgba(16, 38, 31, .45); }
.scroll-progress { height: 2px; background: linear-gradient(90deg, var(--a-emerald), var(--a-saffron)); }
.brand { color: var(--text); }
.brand-name { font-size: 1.15rem; letter-spacing: -.03em; }
.brand-mark { border-radius: 10px; background: transparent; box-shadow: 0 6px 18px -8px rgba(11, 107, 75, .6); }
.env-banner, :root[data-theme="dark"] .env-banner { color: var(--gold-700); background: color-mix(in srgb, var(--a-saffron) 16%, transparent); border: 1px solid color-mix(in srgb, var(--a-saffron) 45%, transparent); border-radius: 999px; font-size: .64rem; padding: 2px 9px; }
.topbar :is(.district-pill, .theme-toggle, .bell, .pal-trigger, .lang) { background: var(--glass); border: 1px solid var(--card-line); color: var(--text); box-shadow: none; border-radius: 999px; }
.topbar :is(.district-pill, .theme-toggle, .bell, .pal-trigger):hover { background: var(--surface); color: var(--green); border-color: color-mix(in srgb, var(--a-emerald) 40%, var(--line)); }
.topbar .district-pill .ui-icon { color: var(--green); }
.topbar .lang-btn { color: var(--muted); }
.topbar .lang-btn.on, :root[data-theme="dark"] .topbar .lang-btn.on { background: var(--a-emerald); color: #fff; box-shadow: 0 4px 12px -4px rgba(11, 107, 75, .6); }
.topbar .pal-trigger kbd { background: var(--surface-sunken); border-color: var(--line); color: var(--muted); }
.topbar .badge { background: var(--a-saffron); color: var(--a-ink); box-shadow: 0 0 0 2px var(--bg); }
.global-search { border-radius: 999px; border: 1px solid var(--card-line); background: var(--glass); box-shadow: none; padding-left: 16px; }
.global-search:focus-within { border-color: var(--a-emerald); box-shadow: 0 0 0 4px rgba(11, 107, 75, .14); background: var(--surface); }
.global-search-go { border-radius: 999px; background: linear-gradient(135deg, #0E7A56, var(--a-emerald-deep)); border-color: transparent; color: #fff; }
.global-search-go:hover { background: linear-gradient(135deg, #11875F, var(--a-emerald)); }
@media (min-width: 800px) {
  .topbar-row .bottomnav { background: transparent; border: 0; padding: 0; gap: 2px; }
  .topbar .nav-item { color: var(--muted); background: transparent; box-shadow: none; border-radius: 999px; font-weight: 600; }
  .topbar .nav-item:hover { color: var(--text); background: color-mix(in srgb, var(--a-emerald) 7%, transparent); }
  .topbar .nav-item.on, .hud .nav-item.on { color: var(--green); background: color-mix(in srgb, var(--a-emerald) 11%, transparent); box-shadow: none; border-radius: 999px; }
  .topbar .nav-item.on .nav-icon .ui-icon { color: var(--green); }
}
@media (max-width: 799px) {
  .bottomnav { background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid var(--card-line); border-radius: 24px; box-shadow: var(--e3); }
  .nav-item.on, :root[data-theme="dark"] .nav-item.on { color: var(--green); background: color-mix(in srgb, var(--a-emerald) 12%, transparent); box-shadow: none; border-radius: 18px; }
}

/* ---- Buttons: pills; emerald glows, saffron is the buying colour ---- */
.btn, .btn.sm, .btn.lg { border-radius: 999px; }
.btn { background: var(--glass); border: 1px solid var(--card-line); font-weight: 650; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--surface); border-color: color-mix(in srgb, var(--a-emerald) 35%, var(--line)); color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--glass); }
.btn.primary, :root[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #0F7D58 0%, var(--a-emerald) 45%, var(--a-emerald-deep) 100%); border-color: transparent; color: #fff; box-shadow: var(--glow-btn), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn.primary:hover { background: linear-gradient(135deg, #11895F 0%, #0C7350 45%, var(--a-emerald) 100%); border-color: transparent; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(11, 107, 75, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.quick-add, .product-purchase .btn.primary, .summary-bar .btn.primary, .checkout-submit, .review .btn.primary.lg, button.btn.primary.block.lg, .btn.primary.quick-add,
:root[data-theme="dark"] :is(.btn.primary.quick-add, .product-purchase .btn.primary, .summary-bar .btn.primary, button.btn.primary.block.lg) {
  background: linear-gradient(135deg, #F8C84F 0%, var(--a-saffron) 55%, #E3A010 100%); border-color: transparent; color: var(--a-ink); box-shadow: var(--glow-buy), inset 0 1px 0 rgba(255, 255, 255, .35); }
:is(.quick-add, .product-purchase .btn.primary, .summary-bar .btn.primary, button.btn.primary.block.lg, .btn.primary.quick-add):hover {
  background: linear-gradient(135deg, #FAD066 0%, #F5BA2E 55%, #E9A814 100%); color: var(--a-ink); transform: translateY(-1px); }
.btn.danger { border-radius: 999px; }
.btn:is(:disabled, [disabled]), .btn.primary:is(:disabled, [disabled]), .btn.primary.block.lg:is(:disabled, [disabled]), .quick-add:is(:disabled, [disabled]) { box-shadow: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn.primary:hover { transform: none; } }

/* ---- Surfaces: rounded, tinted, hairline ---- */
.card, .group-card, .checkout-card, .order-card, .offer-card, .review-group, .product-tile, .kpi, .period, .notif, .gb-card, .pp-reward, .sb-supplier, .sb-line, .rd-item, .list-card, .value-prop, .catalog-intro, .market-spotlight {
  background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--e2); }
.card, .group-card, .checkout-card, .offer-card, .review-group, .kpi, .gb-card, .list-card, .value-prop, .catalog-intro { border-radius: var(--r-xl); }
.product-tile { border-radius: var(--r-xl); }
.checkout-card .order-card { border: 0; border-top: 1px solid var(--line); box-shadow: none; background: transparent; border-radius: 0; }
a.card:hover, .product-tile:hover, .lp-card:hover, .landing-category-list a:hover { border-color: color-mix(in srgb, var(--a-emerald) 38%, var(--line)); box-shadow: 0 18px 40px -22px rgba(11, 107, 75, .45); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover, .product-tile:hover, .lp-card:hover, .landing-category-list a:hover { transform: none; } }
.chip { border-radius: 999px; background: var(--glass); border-color: var(--card-line); }
.chip.on, :root[data-theme="dark"] .chip.on { background: var(--a-emerald); color: #fff; border-color: var(--a-emerald); box-shadow: 0 6px 16px -8px rgba(11, 107, 75, .7); }
.status { border-radius: 999px; }
.tabs { border-radius: 999px; background: var(--glass); border-color: var(--card-line); padding: 5px; }
.tab { border-radius: 999px; }
.tab.on { background: var(--surface); color: var(--green); box-shadow: var(--e2); }
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 12px; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--a-emerald); box-shadow: 0 0 0 4px rgba(11, 107, 75, .14); }
.notice { border-radius: var(--r-lg); }
dialog.sheet { border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
@media (min-width: 720px) { dialog.sheet { border-radius: var(--r-2xl); } }
dialog.palette { border-radius: var(--r-xl); }

/* Icon tiles: a small rounded square with an emerald glyph */
.value-prop-icon, .lp-icon, .state-icon, .tg-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px;
  background: linear-gradient(160deg, var(--surface), var(--surface-sunken)); border: 1px solid var(--card-line); color: var(--green); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 14px -10px rgba(16, 38, 31, .5); }
:root[data-theme="dark"] :is(.value-prop-icon, .lp-icon, .state-icon) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.value-prop-icon .ui-icon, .lp-icon .ui-icon { width: 21px; height: 21px; }
.state-icon { border-style: solid; }

/* Dark identity panels keep the atlas stripe, now with a soft emerald light */
.kpi-hero, .pp-hero, .auth-brand, .account-profile .profile-identity { border-radius: var(--r-xl); }
.kpi-hero { background: radial-gradient(500px 220px at 100% 0%, rgba(91, 212, 161, .22), transparent 70%), var(--a-ink); }
.pp-hero, .account-profile .profile-identity { background: radial-gradient(520px 240px at 100% 0%, rgba(242, 176, 30, .22), transparent 70%), var(--a-emerald) !important; }
.progress-bar, .gb-fill, .rd-gauge > div, .top-bar > span, .trust-bar > span { background: linear-gradient(90deg, var(--a-emerald), #19A774); border-radius: 999px; }
.chart-bar { border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #19A774, var(--a-emerald)); }

/* ---- Home ---- */
.market-home.lp { gap: clamp(36px, 7vw, 88px); }
.lp-accent { background: linear-gradient(100deg, var(--a-emerald) 10%, #19A774 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .lp-accent { background-image: linear-gradient(100deg, #5BD4A1 10%, var(--a-saffron) 95%); }
.lp-badge { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--glass);
  color: var(--text-2); font-size: .8rem; font-weight: 600; line-height: 1.3; }
.lp-badge-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a-emerald); }
.lp-badge-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--a-emerald); opacity: .25; animation: lp-ping 2.4s var(--ease) infinite; }
@keyframes lp-ping { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(1.8); opacity: 0; } }

.lp-hero { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; padding-top: clamp(8px, 4vw, 48px); }
.lp-title { margin: 20px 0 0; font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.lp-lead { margin: 20px 0 0; max-width: 50ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-cta-row .btn.lg { min-height: 52px; padding-inline: 26px; }
.lp-hero-visual { position: relative; display: grid; justify-items: center; padding: 10px 0; }
.lp-glow { position: absolute; inset: 6% 4%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(11, 107, 75, .28), transparent 65%); filter: blur(40px); }
.lp-board { position: relative; width: min(100%, 440px); padding: 18px; border-radius: 26px; border: 1px solid var(--card-line);
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--e3); }
.lp-board-skeleton { min-height: 300px; display: grid; place-items: center; }
.lp-board-photo { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 18px; }
.lp-board-inner { display: grid; gap: 12px; color: var(--text); text-decoration: none; }
.lp-board-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lp-board-top strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.lp-board-top small, .lp-board-product small { color: var(--muted); font-size: .76rem; }
.lp-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--green);
  background: color-mix(in srgb, var(--a-emerald) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a-emerald) 25%, transparent); }
.lp-live .lp-badge-dot { width: 6px; height: 6px; }
.lp-board-product { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--card-line); }
.lp-board-product .product-icon { width: 54px; height: 54px; flex: none; border-radius: 12px; overflow: hidden; }
.lp-board-product strong { display: block; font-size: .95rem; line-height: 1.3; }
.lp-board-block { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--card-line); }
.lp-board-label { color: var(--muted); font-size: .76rem; font-weight: 650; }
.lp-row { margin-top: 11px; }
.lp-row-head { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.lp-row-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.lp-row-head strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-bar { height: 6px; margin-top: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.lp-bar span { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--a-emerald) 45%, var(--surface-sunken)); }
.lp-row.best .lp-bar span { background: linear-gradient(90deg, var(--a-emerald), #19A774); }
.lp-row.best .lp-row-head strong { color: var(--green); }
.lp-board-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: .84rem; font-weight: 650;
  color: var(--gold-700); background: color-mix(in srgb, var(--a-saffron) 15%, transparent); border: 1px solid color-mix(in srgb, var(--a-saffron) 40%, transparent); }
.lp-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--card-line);
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--e3); }
.lp-chip strong { display: block; font-size: .84rem; line-height: 1.25; }
.lp-chip small { display: block; color: var(--muted); font-size: .72rem; }
.lp-chip-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #0F7D58, var(--a-emerald-deep)); box-shadow: var(--glow-btn); }
.lp-chip-ic.pulse { color: var(--a-ink); background: linear-gradient(135deg, #F8C84F, #E3A010); box-shadow: var(--glow-buy); }
.lp-chip-ic .ui-icon { width: 17px; height: 17px; }
@media (max-width: 639px) {
  .lp-hero-visual { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-board { grid-column: 1 / -1; width: 100%; }
  .lp-chip { min-width: 0; }
  .lp-chip > div { min-width: 0; }
}
@media (min-width: 640px) {
  .lp-hero-visual { padding: 52px 40px; }
  .lp-chip { position: absolute; z-index: 1; animation: lp-float 7s ease-in-out infinite; }
  .lp-chip-1 { left: 0; top: 0; }
  .lp-chip-2 { right: 0; bottom: 0; animation-delay: -3.5s; }
}
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (min-width: 980px) {
  .lp-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: min(640px, calc(100dvh - var(--header-h) - 60px)); }
}

.lp-feat-grid, .lp-steps { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.lp-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--card-line); background: var(--card-bg); box-shadow: var(--e2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.lp-card .lp-icon { margin-bottom: 12px; }
.lp-card strong { font-family: var(--display); font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.25; }
.lp-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
@media (min-width: 560px) { .lp-feat-grid, .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-feat-grid, .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lp-marquee { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding: 16px 0; border-block: 1px solid var(--card-line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee-track { display: flex; width: max-content; animation: lp-marquee 48s linear infinite; }
.lp-marquee-group { display: flex; flex: none; }
.lp-marquee-item { display: inline-flex; align-items: center; gap: 12px; margin-right: 44px; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--text-2); white-space: nowrap; }
.lp-marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-saffron); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-saffron) 20%, transparent); }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

.lp-section { display: grid; gap: 22px; min-width: 0; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto; }
.lp-head h2 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.lp-head p { margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; }
.landing-section-head { margin-bottom: 0; align-items: end; }
.landing-section-head h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.035em; }
.market-discovery.lp-section { margin-top: 0; }
.lp .landing-categories { display: block; margin: 0; }
.landing-category-list a { border-radius: var(--r-lg); background: var(--card-bg); border-color: var(--card-line); box-shadow: var(--e2); }
@media (min-width: 640px) and (max-width: 1119px) { .lp .landing-category-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lp-step-num { align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  color: var(--green); background: color-mix(in srgb, var(--a-emerald) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a-emerald) 22%, transparent); }

.lp-prob-grid { display: grid; gap: 14px; list-style: none; margin: 0 auto; padding: 0; width: min(100%, 1040px); }
.lp-prob { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); border: 1px solid var(--card-line); background: var(--card-bg); box-shadow: var(--e2); overflow: hidden; }
.lp-prob > div { padding: 18px 20px; min-width: 0; }
.lp-prob p { margin: 6px 0 0; font-size: .93rem; line-height: 1.5; }
.lp-prob-old { border-right: 1px solid var(--card-line); }
.lp-prob-old p { color: var(--muted); }
.lp-prob-new p { color: var(--text); font-weight: 600; }
.lp-prob-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.lp-prob-new .lp-prob-label { color: var(--green); }
@media (min-width: 900px) { .lp-prob-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 419px) { .lp-prob { grid-template-columns: 1fr; } .lp-prob-old { border-right: 0; border-bottom: 1px solid var(--card-line); } }

.lp-final { position: relative; display: grid; justify-items: center; text-align: center; padding: clamp(36px, 7vw, 80px) clamp(18px, 4vw, 48px); border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--card-line); box-shadow: var(--e3);
  background: radial-gradient(600px 300px at 50% 0%, var(--glow-emerald), transparent 70%), radial-gradient(500px 260px at 50% 110%, var(--glow-saffron), transparent 70%), var(--surface); }
.lp-final h2 { margin: 20px 0 0; font-size: clamp(1.9rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.lp-final p { margin: 14px 0 0; max-width: 52ch; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.lp-final .lp-cta-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .lp-chip, .lp-marquee-track, .lp-badge-dot::after { animation: none !important; }
  .lp-marquee-track { width: auto; justify-content: center; }
  .lp-marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .lp-marquee-group + .lp-marquee-group { display: none; }
}
