/* Koee Demo Web — throwaway, deployable high-fidelity prototype. */
:root {
  --ink: #18251f;
  --muted: #68746e;
  --soft: #89948e;
  --paper: #f5f5ef;
  --surface: #ffffff;
  --surface-2: #edf0e9;
  --line: rgba(24, 37, 31, 0.1);
  --green: #216f51;
  --green-2: #174b3b;
  --lime: #d9ed73;
  --coral: #ef654e;
  --amber: #f0b23f;
  --blue: #4d80cf;
  --shadow-sm: 0 4px 18px rgba(27, 43, 35, 0.07);
  --shadow-lg: 0 24px 70px rgba(22, 41, 32, 0.18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --rail: 232px;
  --top: 72px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
body.presentation .prototype-dock,
body.presentation .state-inspector { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

/* App shell */
.app-shell { min-height: 100vh; }
.topbar {
  position: fixed; inset: 0 0 auto var(--rail); z-index: 40; height: var(--top);
  display: flex; align-items: center; gap: 22px; padding: 0 30px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.25);
}
.brand { display: none; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.045em; }
.brand-mark {
  display: grid; place-items: center; width: 37px; height: 37px; border-radius: 13px;
  background: var(--green-2); color: var(--lime); font-weight: 950; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.search-trigger {
  width: min(520px, 42vw); height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 15px; border: 1px solid transparent; border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--muted); cursor: pointer; transition: .2s ease;
}
.search-trigger:hover { background: white; border-color: var(--line); box-shadow: var(--shadow-sm); }
.top-context { margin-right: auto; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.location-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(239,101,78,.12); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.72); cursor: pointer; transition: .2s ease;
}
.icon-btn:hover { transform: translateY(-2px); background: white; box-shadow: var(--shadow-sm); }
.counter {
  position: absolute; top: -4px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 999px;
  background: var(--coral); color: white; font-size: 9px; font-weight: 900;
}
.avatar-button {
  height: 43px; display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); cursor: pointer;
}
.avatar, .avatar-lg, .avatar-xl { flex: none; background-position: center; background-size: cover; border-radius: 50%; }
.avatar { width: 32px; height: 32px; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-xl { width: 78px; height: 78px; }

.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--rail); padding: 22px 14px 20px;
  display: flex; flex-direction: column; background: var(--green-2); color: rgba(255,255,255,.74);
}
.rail .brand { display: flex; color: white; padding: 0 10px 24px; }
.rail .brand-mark { background: var(--lime); color: var(--green-2); }
.rail-section-label { margin: 18px 13px 8px; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.36); }
.rail-nav { display: grid; gap: 4px; }
.rail-link {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 13px;
  border: 0; border-radius: 13px; background: transparent; color: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: .2s ease;
}
.rail-link:hover { background: rgba(255,255,255,.07); color: white; }
.rail-link.active { background: rgba(255,255,255,.13); color: white; font-weight: 800; }
.rail-link.active::before { content: ""; position: absolute; left: -14px; width: 4px; height: 20px; border-radius: 0 6px 6px 0; background: var(--lime); }
.rail-count { margin-left: auto; min-width: 22px; padding: 3px 6px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: 10px; text-align: center; }
.rail-spacer { flex: 1; }
.rail-agent {
  position: relative; overflow: hidden; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  background: linear-gradient(145deg, rgba(217,237,115,.16), rgba(255,255,255,.06)); color: white;
}
.rail-agent::after { content: ""; position: absolute; width: 90px; height: 90px; right: -40px; top: -42px; border-radius: 50%; background: var(--lime); opacity: .13; filter: blur(2px); }
.rail-agent strong { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rail-agent p { margin: 8px 0 12px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.5; }
.rail-agent button { width: 100%; border: 0; border-radius: 10px; padding: 9px; background: var(--lime); color: var(--green-2); font-weight: 850; cursor: pointer; }

.main { min-height: 100vh; margin-left: var(--rail); padding-top: var(--top); }
.view { animation: viewIn .42s cubic-bezier(.2,.75,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.page { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 120px; }
.page.narrow { width: min(1000px, calc(100% - 48px)); }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 5px 0 4px; font-size: clamp(31px, 4vw, 52px); line-height: 1; letter-spacing: -.055em; }
.page-heading h2 { margin: 4px 0; font-size: 30px; letter-spacing: -.04em; }
.lede { margin: 0; max-width: 620px; color: var(--muted); line-height: 1.6; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--green); font-weight: 800; cursor: pointer; }
.primary, .secondary, .soft-button, .danger-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 0 17px;
  border-radius: 13px; font-weight: 800; cursor: pointer; transition: .2s ease;
}
.primary { border: 1px solid var(--green-2); background: var(--green-2); color: white; box-shadow: 0 8px 20px rgba(23,75,59,.18); }
.primary:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,75,59,.25); }
.primary.lime { border-color: var(--lime); background: var(--lime); color: var(--green-2); }
.secondary { border: 1px solid var(--line); background: white; }
.secondary:hover { border-color: rgba(24,37,31,.22); box-shadow: var(--shadow-sm); }
.soft-button { border: 0; background: var(--surface-2); }
.danger-button { border: 0; background: #fff0ed; color: #b84335; }
.button-block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 7px 10px; border-radius: 999px; background: #e8f3ec; color: var(--green); font-size: 11px; font-weight: 750; }
.pill.hot { background: #fff0ed; color: #bd4837; }
.pill.amber { background: #fff5db; color: #8f6214; }
.pill.dark { background: rgba(255,255,255,.13); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 0 16px; }
.section-head h2, .section-head h3 { margin: 0; letter-spacing: -.035em; }
.section-head h2 { font-size: 28px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.chip-row { display: flex; gap: 8px; overflow: auto; padding: 4px 0; scrollbar-width: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.chip:hover, .chip.active { border-color: var(--green-2); background: var(--green-2); color: white; }

/* Discover */
.discover-hero {
  position: relative; min-height: 290px; overflow: hidden; display: grid; grid-template-columns: 1fr .92fr; align-items: stretch;
  border-radius: var(--radius-lg); background: var(--green-2); color: white; box-shadow: var(--shadow-sm);
}
.hero-copy { position: relative; z-index: 2; padding: 42px; }
.hero-copy h1 { max-width: 600px; margin: 12px 0 14px; font-size: clamp(38px, 5vw, 68px); line-height: .95; letter-spacing: -.065em; }
.hero-copy p { max-width: 460px; color: rgba(255,255,255,.67); line-height: 1.6; }
.hero-actions { display: flex; gap: 9px; margin-top: 25px; }
.hero-actions .secondary { color: var(--ink); }
.hero-photo { min-height: 290px; background-size: cover; background-position: center; mask-image: linear-gradient(90deg, transparent, black 25%); }
.hero-scribble { position: absolute; inset: auto auto 20px 38%; width: 150px; height: 40px; border-bottom: 2px solid var(--lime); border-radius: 50%; transform: rotate(-6deg); opacity: .7; }
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 18px 0 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.stat-mini { padding: 16px 18px; background: rgba(255,255,255,.75); }
.stat-mini strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.stat-mini span { color: var(--muted); font-size: 11px; }
.campaign-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.campaign-card {
  grid-column: span 4; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .28s ease, box-shadow .28s ease;
}
.campaign-card.featured { grid-column: span 6; }
.campaign-card:hover { transform: translateY(-5px); box-shadow: 0 18px 46px rgba(27,43,35,.13); }
.card-photo { position: relative; height: 245px; overflow: hidden; background-size: cover; background-position: center; }
.campaign-card.featured .card-photo { height: 320px; }
.card-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(9,22,16,.58)); }
.card-photo .pill { position: absolute; z-index: 2; top: 13px; left: 13px; backdrop-filter: blur(10px); }
.save-btn { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; transition: .2s ease; }
.save-btn:hover { transform: scale(1.08); }
.save-btn.saved { color: var(--coral); }
.save-btn.saved .icon { fill: currentColor; }
.photo-meta { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 13px; display: flex; justify-content: space-between; color: white; font-size: 11px; font-weight: 750; }
.card-body { padding: 16px; }
.card-body h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.campaign-card.featured .card-body h3 { font-size: 22px; }
.translated-line { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 700; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 13px 0; }
.price { color: var(--coral); font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.price small { color: var(--muted); font-size: 10px; font-weight: 650; }
.card-host { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.card-host strong { color: var(--ink); }
.card-host .distance { margin-left: auto; }

/* Variant compositions */
body.variant-b { --paper: #f7f2eb; --green: #9c3e2e; --green-2: #2a2521; --lime: #ffcd79; --coral: #d54b38; --radius: 8px; --radius-lg: 8px; }
body.variant-b .rail { display: none; }
body.variant-b .main { margin-left: 0; }
body.variant-b .topbar { left: 0; }
body.variant-b .topbar .brand { display: flex; }
body.variant-b .page { width: min(1400px, calc(100% - 72px)); }
body.variant-b .discover-hero { min-height: 470px; grid-template-columns: .7fr 1.3fr; }
body.variant-b .hero-photo { min-height: 470px; order: -1; mask-image: linear-gradient(90deg,black 70%,transparent); }
body.variant-b .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 58px; }
body.variant-b .campaign-grid { gap: 22px; }
body.variant-b .campaign-card { grid-column: span 3; }
body.variant-b .campaign-card.featured { grid-column: span 4; }
body.variant-b .card-photo, body.variant-b .campaign-card.featured .card-photo { height: 300px; }
body.variant-b .card-body h3, body.variant-b .campaign-card.featured .card-body h3 { font-family: Georgia, serif; font-weight: 500; }

body.variant-c { --paper: #eef1ec; --green: #26584c; --green-2: #143c34; --lime: #b8df5b; --coral: #e65d45; --rail: 276px; }
body.variant-c .page { width: min(1160px, calc(100% - 40px)); }
body.variant-c .discover-hero { min-height: 235px; grid-template-columns: 1fr 320px; border-radius: 18px; }
body.variant-c .hero-copy { padding: 30px; }
body.variant-c .hero-copy h1 { font-size: 43px; }
body.variant-c .hero-photo { min-height: 235px; }
body.variant-c .stats-strip { float: right; width: 320px; grid-template-columns: repeat(2,1fr); margin-top: 20px; }
body.variant-c .campaign-grid { grid-template-columns: 1fr; width: calc(100% - 345px); }
body.variant-c .campaign-card, body.variant-c .campaign-card.featured { grid-column: auto; display: grid; grid-template-columns: 250px 1fr; }
body.variant-c .card-photo, body.variant-c .campaign-card.featured .card-photo { height: 205px; }
body.variant-c .card-body h3, body.variant-c .campaign-card.featured .card-body h3 { font-size: 18px; }

/* Nearby */
.nearby-layout { display: grid; grid-template-columns: minmax(390px, 520px) 1fr; height: calc(100vh - var(--top)); }
.nearby-list { overflow: auto; padding: 30px 24px 110px max(28px, calc((100vw - var(--rail) - 1260px)/2)); background: var(--surface); }
.nearby-list h1 { margin: 5px 0 14px; font-size: 38px; letter-spacing: -.05em; }
.near-row { display: grid; grid-template-columns: 122px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.near-row:hover h3 { color: var(--green); }
.near-thumb { border-radius: 14px; background-size: cover; background-position: center; }
.near-row h3 { margin: 4px 0 7px; font-size: 16px; line-height: 1.25; }
.micro { color: var(--muted); font-size: 11px; line-height: 1.55; }
.near-map { position: relative; overflow: hidden; background: #dfe8db; }
.near-map::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(30deg, transparent 48%,rgba(255,255,255,.9) 49% 52%,transparent 53%), linear-gradient(120deg, transparent 40%,rgba(255,255,255,.85) 41% 44%,transparent 45%); background-size: 190px 150px, 240px 180px; }
.map-river { position: absolute; left: -10%; top: 57%; width: 120%; height: 90px; border-radius: 50%; background: #a9d3db; transform: rotate(7deg); }
.map-label { position: absolute; z-index: 2; color: rgba(44,66,55,.5); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.map-pin { position: absolute; z-index: 4; transform: translate(-50%,-50%); border: 4px solid white; border-radius: 999px; padding: 9px 12px; background: var(--green-2); color: white; box-shadow: 0 10px 24px rgba(20,55,45,.2); font-size: 11px; font-weight: 900; cursor: pointer; transition: .2s ease; }
.map-pin:hover, .map-pin.active { transform: translate(-50%,-50%) scale(1.12); background: var(--coral); }
.map-card { position: absolute; z-index: 5; left: 24px; right: 24px; bottom: 24px; display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 13px; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); }
.map-card-photo { height: 94px; border-radius: 12px; background-size: cover; background-position: center; }
.map-card h3 { margin: 3px 0 7px; }

/* Channel */
.channel-banner { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--radius-lg); background: var(--green-2); color: white; }
.channel-cover { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; filter: saturate(.7); }
.channel-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,38,29,.96),rgba(8,38,29,.35)); }
.channel-info { position: relative; z-index: 2; max-width: 690px; padding: 38px; }
.channel-profile { display: flex; align-items: center; gap: 13px; }
.channel-profile h2 { margin: 0 0 3px; font-size: 20px; }
.channel-profile p { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; }
.channel-info h1 { margin: 27px 0 10px; font-size: clamp(36px,5vw,58px); line-height: 1; letter-spacing: -.06em; }
.channel-actions { position: absolute; z-index: 3; top: 32px; right: 32px; display: flex; gap: 8px; }
.channel-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 25px; margin-top: 25px; }
.pinned-campaign { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: var(--radius); background: white; border: 1px solid var(--line); cursor: pointer; }
.pinned-photo { min-height: 330px; background-size: cover; background-position: center; }
.pinned-copy { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.pinned-copy h2 { margin: 9px 0; font-size: 30px; letter-spacing: -.045em; }
.channel-post { display: grid; grid-template-columns: 43px 1fr; gap: 13px; padding: 23px 4px; border-bottom: 1px solid var(--line); }
.post-body p { margin: 5px 0 14px; line-height: 1.55; }
.post-preview { display: grid; grid-template-columns: 155px 1fr; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: white; cursor: pointer; }
.post-preview-photo { min-height: 130px; background-size: cover; background-position: center; }
.post-preview-copy { padding: 17px; }
.channel-aside { display: grid; align-content: start; gap: 14px; }
.aside-card { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.aside-card h3 { margin: 0 0 12px; font-size: 15px; }
.store-url { display: block; overflow-wrap: anywhere; margin: 8px 0 14px; color: var(--green); font-weight: 800; font-size: 12px; }
.pickup-card { display: flex; gap: 12px; align-items: flex-start; }
.pickup-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--green); }
.host-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.host-mini + .host-mini { border-top: 1px solid var(--line); }

/* Campaign catalogue */
.campaign-hero { display: grid; grid-template-columns: 1.03fr .97fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--green-2); color: white; }
.campaign-hero-photo { min-height: 440px; background-size: cover; background-position: center; }
.campaign-hero-copy { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.campaign-hero-copy h1 { margin: 12px 0 13px; font-size: clamp(38px,4.5vw,61px); line-height: .98; letter-spacing: -.06em; }
.fact-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 19px 0; }
.fact { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 99px; background: rgba(255,255,255,.11); font-size: 11px; }
.campaign-host-link { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: rgba(255,255,255,.72); font-size: 12px; cursor: pointer; }
.catalog-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; margin-top: 30px; }
.catalog-toolbar { position: sticky; top: var(--top); z-index: 20; padding: 11px 0; background: color-mix(in srgb,var(--paper) 90%,transparent); backdrop-filter: blur(16px); }
.menu-section { scroll-margin-top: 145px; margin: 30px 0 40px; }
.menu-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.menu-title h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.product-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.product-card { position: relative; display: grid; grid-template-columns: 132px 1fr; min-height: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; transition: .2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.product-photo { background-size: cover; background-position: center; }
.product-copy { padding: 14px; }
.product-copy h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.3; }
.product-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-footer { position: absolute; left: 146px; right: 13px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.quantity { display: flex; align-items: center; gap: 9px; }
.qty-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--green-2); color: white; cursor: pointer; transition: .18s ease; }
.qty-button:hover { transform: scale(1.08); }
.qty-button.minus { background: var(--surface-2); color: var(--ink); }
.cart-summary { position: sticky; top: calc(var(--top) + 18px); align-self: start; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.cart-summary h3 { margin: 0 0 14px; }
.mini-cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: end; margin: 18px 0; }
.cart-total strong { font-size: 24px; }

/* Orders and account */
.orders-tabs { display: flex; gap: 5px; width: fit-content; padding: 5px; border-radius: 13px; background: var(--surface-2); }
.orders-tabs button { border: 0; border-radius: 9px; padding: 9px 13px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.orders-tabs button.active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }
.order-card { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.order-card-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.order-card-head .pill { margin-left: auto; }
.order-items { padding: 6px 18px; }
.order-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; }
.order-item + .order-item { border-top: 1px solid var(--line); }
.order-item-photo { width: 56px; height: 56px; border-radius: 11px; background-size: cover; background-position: center; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; background: #fafbf8; }
.progress { display: flex; align-items: center; width: min(480px,100%); }
.progress-step { position: relative; flex: 1; color: var(--soft); font-size: 9px; text-align: center; }
.progress-step::before { content: ""; position: relative; z-index: 2; display: block; width: 10px; height: 10px; margin: 0 auto 7px; border: 3px solid #d9ded9; border-radius: 50%; background: white; }
.progress-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 5px; left: 50%; width: 100%; height: 2px; background: #d9ded9; }
.progress-step.done { color: var(--green); font-weight: 800; }
.progress-step.done::before, .progress-step.done::after { border-color: var(--green); background: var(--green); }
.account-grid { display: grid; grid-template-columns: 330px 1fr; gap: 23px; }
.profile-card { padding: 25px; border-radius: 22px; background: var(--green-2); color: white; }
.profile-card h2 { margin: 15px 0 3px; }
.profile-card p { color: rgba(255,255,255,.58); }
.account-panel { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.workspace-option { display: flex; align-items: center; gap: 14px; padding: 15px 0; cursor: pointer; }
.workspace-option + .workspace-option { border-top: 1px solid var(--line); }
.workspace-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); color: var(--green); }
.workspace-option .icon:last-child { margin-left: auto; color: var(--soft); }

/* Workspaces */
.workspace-shell { min-height: calc(100vh - var(--top)); background: #f1f3f0; }
.workspace-header { padding: 27px 30px 23px; background: white; border-bottom: 1px solid var(--line); }
.workspace-header-inner { width: min(1220px,100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workspace-header h1 { margin: 3px 0; font-size: 30px; letter-spacing: -.045em; }
.workspace-content { width: min(1220px,calc(100% - 40px)); margin: auto; padding: 25px 0 120px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.metric-card .micro { display: flex; align-items: center; justify-content: space-between; }
.metric-card strong { display: block; margin: 10px 0 3px; font-size: 28px; letter-spacing: -.04em; }
.metric-change { color: var(--green); font-size: 10px; font-weight: 800; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 16px; margin-top: 16px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: white; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 14px; background: #fafbf9; color: var(--muted); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.data-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-title { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.table-thumb { width: 42px; height: 42px; border-radius: 10px; background-size: cover; background-position: center; }
.task-list { padding: 7px 17px; }
.task { display: flex; gap: 11px; padding: 13px 0; }
.task + .task { border-top: 1px solid var(--line); }
.task-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(239,101,78,.1); }
.task p { margin: 0 0 4px; font-size: 12px; font-weight: 750; }
.task span { color: var(--muted); font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; padding: 17px; }
.quick-action { min-height: 90px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf8; text-align: left; cursor: pointer; transition: .2s ease; }
.quick-action:hover { border-color: var(--green); background: #f0f6f2; transform: translateY(-2px); }
.quick-action .icon { display: block; margin-bottom: 11px; color: var(--green); }
.quick-action strong { display: block; font-size: 12px; }
.quick-action span { color: var(--muted); font-size: 10px; }

/* Drawers, modal, agent */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(12,24,18,.44); backdrop-filter: blur(3px); animation: fadeIn .2s both; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(440px,100%); display: flex; flex-direction: column; background: white; box-shadow: -24px 0 70px rgba(22,41,32,.2); animation: drawerIn .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: #fafbf8; }
.cart-drawer-line { display: grid; grid-template-columns: 68px 1fr auto; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-drawer-photo { height: 68px; border-radius: 12px; background-size: cover; background-position: center; }
.cart-drawer-line h4 { margin: 2px 0 5px; font-size: 13px; }
.modal-wrap { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(12,24,18,.48); backdrop-filter: blur(5px); animation: fadeIn .2s both; }
.modal { width: min(520px,100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 24px; background: white; box-shadow: var(--shadow-lg); animation: modalIn .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-head { display: flex; align-items: center; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 23px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 23px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 11px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(33,111,81,.1); }
.inline-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.success-hero { padding: 20px 0 10px; text-align: center; }
.success-mark { width: 68px; height: 68px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: #e5f3ea; color: var(--green); animation: successPop .45s cubic-bezier(.2,1.6,.3,1) both; }
@keyframes successPop { from { transform: scale(.2) rotate(-15deg); opacity: 0; } }
.success-mark .icon { width: 33px; height: 33px; stroke-width: 2.5; }

.agent-drawer { width: min(480px,100%); background: #f7f8f4; }
.agent-head { color: white; background: var(--green-2); border-color: rgba(255,255,255,.1); }
.agent-head .icon-btn { color: white; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.08); }
.agent-status { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.6); font-size: 10px; }
.agent-online { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,237,115,.12); }
.agent-messages { display: flex; flex-direction: column; gap: 13px; }
.message { max-width: 88%; padding: 12px 14px; border-radius: 16px; background: white; box-shadow: var(--shadow-sm); font-size: 13px; line-height: 1.5; animation: messageIn .28s ease both; }
@keyframes messageIn { from { opacity: 0; transform: translateY(7px); } }
.message.user { align-self: flex-end; background: var(--green-2); color: white; border-bottom-right-radius: 4px; }
.message.agent { border-bottom-left-radius: 4px; }
.message small { display: block; margin-top: 7px; color: var(--soft); }
.agent-action-card { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fafbf8; }
.agent-action-head { padding: 10px 12px; background: #edf4ef; color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.agent-action-body { padding: 12px; }
.agent-action-body strong { display: block; margin-bottom: 5px; }
.agent-action-buttons { display: flex; gap: 7px; padding: 0 12px 12px; }
.agent-chip-row { display: flex; gap: 7px; overflow: auto; padding: 3px 0 13px; scrollbar-width: none; }
.agent-chip { flex: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: 10px; cursor: pointer; }
.agent-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.agent-composer input { min-width: 0; height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: white; outline: none; }
.typing { display: flex; gap: 4px; padding: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity:.4; } 30% { transform: translateY(-4px); opacity:1; } }

/* Search and toasts */
.search-modal { align-self: start; margin-top: 9vh; }
.search-input { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.search-input input { flex: 1; border: 0; outline: 0; font-size: 18px; }
.search-results { padding: 12px; }
.search-result { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 13px; cursor: pointer; }
.search-result:hover { background: var(--surface-2); }
.search-result-photo { height: 62px; border-radius: 11px; background-size: cover; background-position: center; }
#toast-root { position: fixed; z-index: 200; right: 22px; top: 88px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 260px; display: flex; gap: 10px; align-items: center; padding: 13px 15px; border-radius: 14px; background: var(--green-2); color: white; box-shadow: var(--shadow-lg); animation: toastIn .3s ease both; font-size: 12px; font-weight: 700; }
@keyframes toastIn { from { opacity:0; transform: translateX(18px); } }

/* Prototype controls */
.prototype-dock { position: fixed; z-index: 190; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 6px; border-radius: 999px; background: #101814; color: white; box-shadow: 0 15px 50px rgba(0,0,0,.35); }
.prototype-dock button { height: 36px; border: 0; border-radius: 999px; padding: 0 12px; background: transparent; color: rgba(255,255,255,.68); cursor: pointer; font-size: 11px; font-weight: 750; }
.prototype-dock button.active { background: var(--lime); color: #13251d; }
.prototype-dock .dock-arrow { width: 36px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.09); color: white; font-size: 16px; }
.dock-divider { width: 1px; height: 21px; background: rgba(255,255,255,.14); }
.state-inspector { position: fixed; z-index: 180; right: 15px; bottom: 15px; width: 245px; overflow: hidden; border-radius: 14px; background: rgba(16,24,20,.94); color: white; box-shadow: var(--shadow-lg); font: 10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }
.state-inspector summary { padding: 10px 12px; cursor: pointer; color: var(--lime); font-weight: 800; }
.state-inspector pre { margin: 0; max-height: 260px; overflow: auto; padding: 0 12px 12px; color: rgba(255,255,255,.72); white-space: pre-wrap; }

.mobile-nav { display: none; }
.mobile-cart-bar { display: none; }

@media (max-width: 1100px) {
  :root { --rail: 82px; }
  .rail { align-items: center; padding-inline: 10px; }
  .rail .brand { padding-inline: 0; }
  .rail .brand > span:last-child, .rail-link span:not(.rail-count), .rail-section-label, .rail-agent { display: none; }
  .rail-link { width: 48px; justify-content: center; padding: 0; }
  .rail-link.active::before { left: -17px; }
  .rail-count { position: absolute; top: 2px; right: 0; }
  .campaign-card { grid-column: span 6; }
  .campaign-card.featured { grid-column: span 6; }
  body.variant-b .campaign-card, body.variant-b .campaign-card.featured { grid-column: span 6; }
  body.variant-c .campaign-grid { width: 100%; }
  body.variant-c .stats-strip { float: none; width: auto; grid-template-columns: repeat(4,1fr); }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-aside { grid-template-columns: repeat(3,1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .cart-summary { display: none; }
  .mobile-cart-bar { position: fixed; z-index: 45; left: calc(var(--rail) + 18px); right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; padding: 11px 13px 11px 17px; border-radius: 17px; background: var(--green-2); color: white; box-shadow: var(--shadow-lg); }
  .workspace-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --rail: 0px; --top: 62px; }
  .rail { display: none; }
  .topbar { left: 0; height: var(--top); padding: 0 13px; gap: 9px; }
  .topbar .brand { display: flex; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 35px; height: 35px; }
  .search-trigger { width: auto; flex: 1; height: 39px; }
  .search-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-context, .language-button, .avatar-button span { display: none; }
  .avatar-button { width: 40px; height: 40px; padding: 3px; }
  .main { margin-left: 0; }
  .page, body.variant-b .page, body.variant-c .page { width: calc(100% - 26px); padding-top: 17px; padding-bottom: 115px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading .lede { font-size: 13px; }
  .discover-hero, body.variant-b .discover-hero, body.variant-c .discover-hero { min-height: 460px; display: block; }
  .hero-copy, body.variant-b .hero-copy, body.variant-c .hero-copy { position: absolute; inset: auto 0 0; padding: 24px; background: linear-gradient(transparent,rgba(11,40,31,.98) 35%); }
  .hero-copy h1, body.variant-c .hero-copy h1 { font-size: 41px; }
  .hero-photo, body.variant-b .hero-photo, body.variant-c .hero-photo { min-height: 460px; mask-image: none; }
  .hero-copy .eyebrow { color: var(--lime); }
  .stats-strip, body.variant-c .stats-strip { grid-template-columns: repeat(2,1fr); }
  .campaign-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
  .campaign-card, .campaign-card.featured, body.variant-b .campaign-card, body.variant-b .campaign-card.featured, body.variant-c .campaign-card, body.variant-c .campaign-card.featured { grid-column: auto; display: block; border-radius: 14px; }
  .card-photo, .campaign-card.featured .card-photo, body.variant-b .card-photo, body.variant-b .campaign-card.featured .card-photo, body.variant-c .card-photo, body.variant-c .campaign-card.featured .card-photo { height: 205px; }
  .card-body { padding: 11px; }
  .card-body h3, .campaign-card.featured .card-body h3 { font-size: 14px; }
  .card-host .avatar, .card-host .distance, .translated-line { display: none; }
  .price { font-size: 17px; }
  .nearby-layout { display: flex; flex-direction: column; height: auto; }
  .near-map { order: -1; height: 330px; }
  .nearby-list { padding: 20px 14px 110px; }
  .map-card { left: 13px; right: 13px; bottom: 13px; grid-template-columns: 82px 1fr; }
  .map-card-photo { height: 74px; }
  .map-card .primary { display: none; }
  .channel-banner { min-height: 410px; }
  .channel-info { position: absolute; inset: auto 0 0; padding: 22px; background: linear-gradient(transparent,rgba(7,35,27,.98) 25%); }
  .channel-info h1 { font-size: 38px; }
  .channel-actions { top: 14px; right: 14px; }
  .channel-grid { display: block; margin-top: 14px; }
  .pinned-campaign { display: block; }
  .pinned-photo { min-height: 260px; }
  .pinned-copy { padding: 20px; }
  .channel-aside { display: none; }
  .post-preview { grid-template-columns: 105px 1fr; }
  .campaign-hero { display: block; position: relative; min-height: 590px; }
  .campaign-hero-photo { min-height: 590px; }
  .campaign-hero-copy { position: absolute; inset: auto 0 0; padding: 25px; background: linear-gradient(transparent,rgba(8,38,29,.98) 27%); }
  .campaign-hero-copy h1 { font-size: 39px; }
  .catalog-layout { margin-top: 18px; }
  .catalog-toolbar { top: var(--top); margin-inline: -13px; padding-inline: 13px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 116px 1fr; }
  .product-footer { left: 130px; }
  .mobile-cart-bar { left: 13px; right: 13px; bottom: 78px; }
  .orders-tabs { width: 100%; overflow: auto; }
  .order-card-foot { align-items: flex-start; flex-direction: column; }
  .account-grid { grid-template-columns: 1fr; }
  .workspace-header { padding: 20px 14px; }
  .workspace-header-inner { align-items: flex-start; }
  .workspace-header h1 { font-size: 25px; }
  .workspace-content { width: calc(100% - 26px); padding-top: 14px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 22px; }
  .data-table { min-width: 700px; }
  .prototype-dock { bottom: 82px; }
  .prototype-dock button:not(.active):not(.dock-arrow):not(.present-button) { display: none; }
  .state-inspector { display: none; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: 66px; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 8px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
  .mobile-nav button { min-width: 55px; display: grid; place-items: center; gap: 3px; border: 0; background: none; color: var(--soft); font-size: 9px; cursor: pointer; }
  .mobile-nav button.active { color: var(--green); font-weight: 800; }
  .mobile-nav .icon { width: 20px; height: 20px; }
  #toast-root { top: 73px; left: 13px; right: 13px; }
  .toast { min-width: 0; }
}

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