:root {
  color-scheme: light;
  --ink: #162013;
  --muted: #68715f;
  --soft: #f3f5e8;
  --surface: #fffdf3;
  --surface-strong: #ffffff;
  --line: #d9dec8;
  --green: #66851f;
  --green-strong: #304915;
  --coral: #d95f35;
  --gold: #d7b63e;
  --blue: #347d82;
  --shadow: 0 18px 42px rgba(31, 42, 18, 0.14);
  --radius: 14px;
  font-family:
    "Aptos Display", "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--soft);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(215, 182, 62, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(102, 133, 31, 0.18), transparent 32rem),
    linear-gradient(180deg, rgba(255, 253, 243, 0.86), rgba(243, 245, 232, 0.92)),
    var(--soft);
  letter-spacing: 0;
}

body.is-transitioning {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100svh;
}

.brand-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100svh;
  overflow-y: auto;
  padding: 22px;
  color: #f8fff9;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 182, 62, 0.16), transparent 18rem),
    linear-gradient(180deg, #11170d 0%, #1d2714 100%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: #c4ce3f;
  color: #11170d;
  font-weight: 800;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 1.08rem;
}

.brand-lockup small {
  margin-top: 2px;
  color: rgba(248, 255, 249, 0.68);
}

.role-switch {
  display: grid;
  gap: 8px;
}

.admin-menu {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  width: fit-content;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(248, 255, 249, 0.62);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.admin-menu summary::-webkit-details-marker {
  display: none;
}

.admin-menu summary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.admin-menu summary svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.admin-menu[open] summary svg {
  transform: rotate(180deg);
}

.role-switch--private {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.role-switch--private .role-tab {
  min-height: 40px;
  color: rgba(248, 255, 249, 0.62);
  font-size: 0.92rem;
}

.role-switch--private .tab-icon {
  width: 28px;
  height: 28px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.role-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(248, 255, 249, 0.72);
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.role-tab:hover,
.role-tab.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.tab-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.store-visual {
  position: relative;
  min-height: 270px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 14, 7, 0.04), rgba(8, 14, 7, 0.72)),
    url("super-negro-store.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.store-visual div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.store-visual span,
.store-visual strong {
  display: block;
}

.store-visual span {
  color: rgba(248, 255, 249, 0.74);
  font-size: 0.86rem;
}

.store-visual strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 1.32rem;
}

.store-meta {
  display: grid;
  gap: 10px;
  color: rgba(248, 255, 249, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.store-meta p {
  margin: 0;
}

.store-meta a {
  width: fit-content;
  color: #ffffff;
  font-weight: 700;
}

.workspace {
  min-width: 0;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}

.view {
  display: none;
  min-height: calc(100svh - 44px);
  animation: surfaceIn 280ms ease both;
}

.view.is-active {
  display: block;
}

[hidden] {
  display: none !important;
}

@keyframes surfaceIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view.is-view-entering .hero-panel,
.view.is-view-entering .promo-band,
.view.is-view-entering .market-panel,
.view.is-view-entering .cart-panel,
.view.is-view-entering .tracker-panel,
.view.is-view-entering .queue-panel,
.view.is-view-entering .delivery-detail,
.view.is-view-entering .owner-report {
  animation: polishedPanelIn 520ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.view.is-view-entering .cart-panel,
.view.is-view-entering .delivery-detail,
.view.is-view-entering .owner-report {
  animation-delay: 70ms;
}

@keyframes polishedPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h1,
.panel-heading h2,
.queue-summary h2 {
  margin: 2px 0 0;
}

.topbar h1 {
  max-width: 680px;
  font-size: clamp(1.95rem, 3.2vw, 3.2rem);
  line-height: 1.02;
}

.panel-heading h2,
.queue-summary h2 {
  font-size: 1.18rem;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.promo-view {
  position: relative;
  min-height: calc(100svh - 44px);
}

.home-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.home-orb--one {
  top: 8vh;
  right: 7vw;
  width: 24vw;
  min-width: 240px;
  height: 24vw;
  min-height: 240px;
  background: rgba(196, 206, 63, 0.2);
  animation: homeOrbDrift 14s ease-in-out infinite alternate;
}

.home-orb--two {
  bottom: 4vh;
  left: 25vw;
  width: 18vw;
  min-width: 180px;
  height: 18vw;
  min-height: 180px;
  background: rgba(52, 125, 130, 0.14);
  animation: homeOrbDrift 16s ease-in-out infinite alternate-reverse;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: min(760px, calc(100svh - 44px));
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 14%, rgba(196, 206, 63, 0.24), transparent 20rem),
    linear-gradient(135deg, rgba(8, 14, 7, 0.98), rgba(30, 44, 19, 0.94) 58%, rgba(92, 111, 27, 0.92));
  box-shadow: var(--shadow);
  animation: homeReveal 760ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.hero-panel::before {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(223, 232, 155, 0.16);
  border-radius: 14px;
  content: "";
}

.hero-panel::after {
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(215, 182, 62, 0.16);
  filter: blur(8px);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 0;
  animation: homeTextRise 780ms cubic-bezier(0.2, 0.82, 0.2, 1) 120ms both;
}

.hero-copy .eyebrow {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(196, 206, 63, 0.28);
  border-radius: 999px;
  color: #eef8a8;
  background: rgba(255, 255, 255, 0.08);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 8ch;
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-market-board {
  position: relative;
  z-index: 1;
  min-height: 560px;
}

.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #121b0e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: homePhotoFloat 7s ease-in-out infinite alternate;
}

.hero-photo img,
.market-intro__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(12, 18, 9, 0.72);
  font-size: 0.82rem;
  line-height: 1.3;
  backdrop-filter: blur(12px);
}

.hero-photo--main {
  top: 0;
  right: 0;
  width: min(100%, 500px);
  height: 390px;
  border-radius: 34px 34px 10px 34px;
}

.hero-photo--float {
  right: clamp(28px, 6vw, 86px);
  bottom: 0;
  width: min(68%, 320px);
  height: 240px;
  border-radius: 10px 30px 30px 30px;
  animation-delay: 900ms;
}

.hero-proof-strip {
  position: absolute;
  right: clamp(22px, 4vw, 48px);
  bottom: clamp(22px, 4vw, 48px);
  left: clamp(22px, 4vw, 48px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  animation: homeTextRise 760ms cubic-bezier(0.2, 0.82, 0.2, 1) 260ms both;
}

.hero-proof-strip div {
  display: grid;
  gap: 3px;
  min-height: 72px;
  align-content: center;
  padding: 12px 16px;
  background: rgba(10, 14, 7, 0.36);
}

.hero-proof-strip strong {
  color: #eef8a8;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-proof-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.home-marquee {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(48, 73, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(31, 42, 18, 0.08);
}

.home-marquee::before,
.home-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 12%;
  content: "";
  pointer-events: none;
}

.home-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--soft), transparent);
}

.home-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--soft), transparent);
}

.home-marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 5vw, 72px);
  padding: 14px 24px;
  color: var(--green-strong);
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: homeMarquee 26s linear infinite;
}

.home-marquee__track span {
  position: relative;
}

.home-marquee__track span::after {
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(18px, 3vw, 42px));
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  transform: translateY(-50%);
}

.market-intro,
.review-dossier {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: 20px;
}

.market-intro {
  align-items: stretch;
}

.market-intro__copy,
.review-dossier__heading {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 226, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.market-intro__copy h2,
.review-dossier__heading h2 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.market-intro__copy p:last-child,
.review-dossier__heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.market-intro__photo {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.review-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
  margin-top: 20px;
}

.review-showcase__heading {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 26px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(9, 14, 7, 0.18), rgba(9, 14, 7, 0.78)),
    url("super-negro-aisle.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.review-showcase__heading::after {
  position: absolute;
  right: -14%;
  bottom: -28%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(196, 206, 63, 0.22);
  content: "";
}

.review-showcase__heading .eyebrow {
  color: #eff8a7;
}

.review-showcase__heading h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.review-showcase__heading p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.review-lane {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.review-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 236px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(48, 73, 21, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(196, 206, 63, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(31, 42, 18, 0.1);
}

.review-card--featured {
  grid-row: span 2;
  min-height: 486px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 8%, rgba(196, 206, 63, 0.26), transparent 14rem),
    linear-gradient(145deg, #11170d, #263715);
}

.review-card__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2.7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.review-card--featured blockquote {
  color: #ffffff;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
}

.review-card footer {
  display: grid;
  gap: 3px;
}

.review-card footer strong {
  font-size: 1rem;
}

.review-card footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.review-card--featured footer span {
  color: rgba(255, 255, 255, 0.62);
}

.delivery-story {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
  margin-top: 20px;
  margin-bottom: 10px;
}

.delivery-story__media {
  min-height: 480px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.delivery-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-story__panel {
  display: grid;
  gap: 22px;
  align-content: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(215, 182, 62, 0.2), transparent 18rem),
    #ffffff;
  box-shadow: var(--shadow);
}

.delivery-story__panel h2 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.3rem, 5.8vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.delivery-story__steps {
  display: grid;
  gap: 12px;
}

.delivery-story__steps div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(48, 73, 21, 0.12);
  border-radius: 16px;
  background: rgba(246, 249, 226, 0.7);
}

.delivery-story__steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.delivery-story__steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-reveal {
  --reveal-x: 0px;
  --reveal-y: 42px;
  --reveal-scale: 0.98;
  --reveal-rotate: 0deg;
  --reveal-delay: 0ms;
  transform-origin: 50% 56%;
}

.home-reveal.is-reveal-ready {
  opacity: 0;
  filter: blur(12px);
  transform:
    translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale))
    rotate(var(--reveal-rotate));
  transition:
    opacity 780ms cubic-bezier(0.2, 0.82, 0.2, 1),
    filter 900ms cubic-bezier(0.2, 0.82, 0.2, 1),
    transform 900ms cubic-bezier(0.18, 0.9, 0.2, 1);
  transition-delay: var(--reveal-delay);
  will-change: opacity, filter, transform;
}

.home-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.home-reveal[data-reveal="left"] {
  --reveal-x: -58px;
  --reveal-y: 16px;
  --reveal-rotate: -1.4deg;
}

.home-reveal[data-reveal="right"] {
  --reveal-x: 58px;
  --reveal-y: 18px;
  --reveal-rotate: 1.6deg;
}

.home-reveal[data-reveal="zoom"] {
  --reveal-y: 26px;
  --reveal-scale: 0.92;
}

.home-reveal[data-reveal="split"] {
  --reveal-x: -26px;
  --reveal-y: 34px;
  --reveal-scale: 0.96;
}

.home-reveal[data-reveal="tide"] {
  --reveal-x: 32px;
  --reveal-y: 52px;
  --reveal-rotate: 0.8deg;
}

.home-reveal[data-reveal="wave"] {
  --reveal-x: -34px;
  --reveal-y: 18px;
  --reveal-scale: 0.99;
}

@keyframes homeReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes homeTextRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homePhotoFloat {
  from {
    transform: translateY(0) rotate(-0.5deg);
  }
  to {
    transform: translateY(-10px) rotate(0.7deg);
  }
}

@keyframes homeCardRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes homeOrbDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

.home-feature-board {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.05fr;
  gap: 14px;
  margin-top: 20px;
}

.home-feature-board article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(48, 73, 21, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 42, 18, 0.09);
}

.home-feature-board article:nth-child(2) {
  transform: translateY(22px);
  background:
    radial-gradient(circle at top right, rgba(215, 182, 62, 0.24), transparent 12rem),
    #162013;
  color: #ffffff;
}

.home-feature-board span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(196, 206, 63, 0.22);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-feature-board article:nth-child(2) span {
  color: #eff8a7;
  background: rgba(239, 248, 167, 0.13);
}

.home-feature-board h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.home-feature-board p,
.review-dossier blockquote {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-feature-board article:nth-child(2) p {
  color: rgba(255, 255, 255, 0.72);
}

.review-dossier {
  align-items: stretch;
  margin-bottom: 10px;
}

.review-dossier__cards {
  display: grid;
  gap: 12px;
}

.review-dossier blockquote {
  min-height: 116px;
  padding: 22px;
  border: 1px solid rgba(48, 73, 21, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(31, 42, 18, 0.08);
}

.promo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.promo-band div {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.promo-band h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.promo-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 200ms ease,
    filter 180ms ease;
}

.primary-button {
  padding: 0 16px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(15, 122, 79, 0.22);
}

.primary-button:hover {
  background: var(--green-strong);
  transform: translateY(-1px);
}

.primary-button span:last-child {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-strong);
  background: #ffffff;
  font-size: 0.82rem;
}

.secondary-button,
.ghost-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-strong);
}

.secondary-button {
  padding: 0 14px;
}

.secondary-button.is-live {
  color: var(--green-strong);
  border-color: rgba(15, 122, 79, 0.34);
  background: rgba(15, 122, 79, 0.08);
}

.ghost-button {
  padding: 0 12px;
  color: var(--muted);
}

.icon-button {
  width: 42px;
  padding: 0;
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  border-color: rgba(15, 122, 79, 0.34);
  color: var(--green-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 32, 26, 0.12);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.text-button,
.role-tab,
.mode-chip,
.category-tab,
.order-card,
.customer-order-card,
.map-float-button {
  position: relative;
  overflow: hidden;
}

.primary-button::after,
.secondary-button::after,
.ghost-button::after,
.icon-button::after,
.text-button::after,
.role-tab::after,
.mode-chip::after,
.category-tab::after,
.order-card::after,
.customer-order-card::after,
.map-float-button::after {
  content: "";
  position: absolute;
  left: var(--tap-x, 50%);
  top: var(--tap-y, 50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.34);
  transform: translate(-50%, -50%) scale(0.2);
}

.secondary-button::after,
.ghost-button::after,
.icon-button::after,
.text-button::after,
.role-tab::after,
.mode-chip::after,
.category-tab::after,
.order-card::after,
.customer-order-card::after {
  background: rgba(15, 122, 79, 0.2);
}

.tap-ripple::after {
  animation: tapRipple 420ms ease-out both;
}

.text-button {
  min-height: 34px;
  padding: 0;
  color: var(--coral);
  background: transparent;
}

.full-width {
  width: 100%;
}

.customer-grid,
.delivery-grid {
  display: grid;
  align-items: start;
  gap: 18px;
  transition: grid-template-columns 280ms ease;
}

.customer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.customer-main {
  display: grid;
  gap: 18px;
}

.customer-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-mode-switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
}

.mode-chip span:last-child {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
  font-size: 0.78rem;
}

.mode-chip.is-active {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(15, 122, 79, 0.2);
}

.mode-chip.is-active span:last-child {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.customer-stage {
  display: grid;
  gap: 18px;
}

.customer-grid.is-orders-mode {
  grid-template-columns: 1fr;
}

.shop-order-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 122, 79, 0.08), rgba(40, 111, 143, 0.03)),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.shop-order-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.shop-order-banner h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.shop-order-banner p {
  margin: 0;
  color: var(--muted);
}

.shop-order-banner__actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.orders-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.orders-list-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.customer-orders-list {
  display: grid;
}

.customer-orders-empty h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.customer-order-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.customer-order-card:hover {
  background: rgba(15, 122, 79, 0.04);
}

.customer-order-card.is-selected {
  background: rgba(15, 122, 79, 0.08);
}

.customer-order-card__header,
.customer-order-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-order-card__meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.customer-order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.orders-detail-panel {
  min-height: 680px;
}

.delivery-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.delivery-grid.is-route-focus {
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
}

.market-panel,
.cart-panel,
.tracker-panel,
.queue-panel,
.delivery-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.market-panel,
.queue-panel,
.delivery-detail {
  min-height: 680px;
}

.queue-panel {
  position: sticky;
  top: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100svh - 44px);
  overflow: hidden;
}

.delivery-grid.is-route-focus .queue-panel {
  box-shadow: 0 12px 24px rgba(21, 44, 35, 0.08);
}

.owner-gate-page {
  display: grid;
  min-height: calc(100svh - 44px);
  place-items: center;
  padding: 24px;
}

.owner-report {
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  contain: layout paint;
}

.owner-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
}

.owner-metric {
  min-height: 104px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.owner-metric:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.owner-metric span,
.owner-table-title span,
.owner-table th,
.owner-study__table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-metric strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1;
}

.owner-table-wrap {
  padding: 18px;
}

.owner-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1px;
  background: var(--line);
}

.owner-analytics-grid--products {
  grid-template-columns: 1fr;
}

.owner-insight-card {
  min-height: 320px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.owner-insight-card__header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.owner-insight-card__header h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.owner-product-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.owner-product-row {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: #ffffff;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.owner-product-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 122, 79, 0.4);
  box-shadow: 0 12px 20px rgba(16, 32, 26, 0.08);
}

.owner-product-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.owner-product-row__top strong {
  font-size: 1rem;
}

.owner-product-row__top span,
.owner-product-row__meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.owner-product-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.owner-product-row__meta strong {
  color: var(--ink);
}

.owner-product-row__bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 122, 79, 0.1);
}

.owner-product-row__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f7a4f, #32a868);
}

.owner-study {
  display: grid;
  align-content: start;
  gap: 14px;
}

.owner-study__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner-study__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-study__header h3 {
  margin: 4px 0;
  font-size: 1.2rem;
}

.owner-study__header p {
  margin: 0;
  color: var(--muted);
}

.owner-study__stats,
.owner-study__totals {
  display: grid;
  gap: 10px;
}

.owner-study__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-study__totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-study__stats div,
.owner-study__totals div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.owner-study__stats span,
.owner-study__totals span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-study__stats strong,
.owner-study__totals strong {
  display: block;
  margin-top: 9px;
  font-size: 1.4rem;
  line-height: 1;
}

.owner-study__table-wrap {
  overflow-x: auto;
}

.owner-study__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.owner-study__table th,
.owner-study__table td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.owner-study__table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.owner-order-row.is-selected {
  background: rgba(15, 122, 79, 0.07);
}

.owner-order-row {
  cursor: pointer;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.owner-order-row:hover {
  transform: translateX(2px);
}

.owner-order-row:focus-visible {
  outline: 3px solid rgba(15, 122, 79, 0.28);
  outline-offset: -3px;
}

.owner-order-row td:first-child {
  position: relative;
}

.owner-order-row.is-selected td:first-child::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.owner-order-detail-row td {
  padding: 0;
  white-space: normal;
  background: rgba(238, 247, 242, 0.72);
}

.owner-order-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  transform-origin: top center;
  animation: ownerDetailIn 160ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

@keyframes ownerDetailIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.owner-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.owner-table-title h3 {
  margin: 0;
  font-size: 1rem;
}

.owner-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.owner-table th,
.owner-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.owner-table tbody tr:hover {
  background: rgba(15, 122, 79, 0.04);
}

.owner-table .owner-order-row td:nth-last-child(-n + 3) {
  font-weight: 800;
}

.owner-empty {
  min-height: 110px;
}

.tracker-panel {
  overflow: hidden;
}

.tracker-empty {
  display: grid;
  min-height: 210px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(15, 122, 79, 0.08), transparent),
    rgba(255, 255, 255, 0.84);
}

.tracker-empty h2,
.tracker-header h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.6rem);
  line-height: 1;
}

.tracker-empty p,
.tracker-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tracker-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.tracker-header > :first-child {
  min-width: 0;
}

.tracker-header h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.95rem);
  line-height: 1.06;
  max-width: 14ch;
}

.tracker-header p {
  max-width: 48ch;
}

.tracker-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1px;
  background: var(--line);
}

.tracker-map {
  min-height: 220px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.tracker-info {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.metric {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.metric span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 4px;
  font-size: 1.02rem;
}

.tracker-timeline {
  padding: 14px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.tracker-header__status {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.tracker-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.tracker-map-stage,
.tracker-info-panel {
  background: rgba(255, 255, 255, 0.88);
}

.tracker-map-stage {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.tracker-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.tracker-map--focused,
.tracker-map--focused.leaflet-container {
  height: clamp(260px, 42vh, 340px);
  min-height: 260px;
  max-height: 340px;
}

.tracker-info-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.tracker-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.tracker-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tracker-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 250, 0.9);
}

.tracker-card h3 {
  margin: 4px 0 8px;
  font-size: 1.14rem;
}

.tracker-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tracker-items {
  display: grid;
  gap: 10px;
}

.catalog-tools {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(14px);
}

.search-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
}

.category-tab.is-active {
  border-color: rgba(15, 122, 79, 0.2);
  color: #ffffff;
  background: var(--green);
}

.catalog-list,
.order-list {
  display: grid;
}

.order-list {
  min-height: 0;
  overflow: auto;
}

.catalog-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.catalog-item:hover {
  background: rgba(15, 122, 79, 0.04);
}

.catalog-item.is-in-cart {
  background: rgba(15, 122, 79, 0.05);
  box-shadow: inset 3px 0 0 rgba(15, 122, 79, 0.92);
}

.catalog-item.is-just-added {
  animation: cartSelectPulse 420ms ease;
}

@keyframes cartSelectPulse {
  0% {
    transform: scale(0.995);
    background: rgba(15, 122, 79, 0.12);
  }
  60% {
    transform: scale(1);
    background: rgba(15, 122, 79, 0.08);
  }
  100% {
    transform: scale(1);
    background: rgba(15, 122, 79, 0.05);
  }
}

.product-swatch {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.product-main {
  min-width: 0;
}

.product-main h3 {
  margin: 0;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-selection-copy {
  color: var(--green-strong);
  font-weight: 800;
}

.tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(219, 91, 66, 0.12);
  color: #98402f;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.product-actions strong {
  font-size: 0.98rem;
  white-space: nowrap;
}

.product-cart-tools {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

.add-button,
.quantity-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-size: 1.12rem;
  font-weight: 900;
}

.add-button.is-active {
  background: var(--green-strong);
  box-shadow: 0 10px 18px rgba(7, 92, 59, 0.18);
}

.quantity-button--subtle {
  color: var(--green-strong);
  background: rgba(15, 122, 79, 0.12);
}

.product-quantity-chip {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  transform: scale(0.82);
  opacity: 0;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.product-quantity-chip.is-visible {
  transform: scale(1);
  opacity: 1;
}

.cart-panel {
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.panel-heading,
.queue-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-items {
  display: grid;
  min-height: 120px;
}

.cart-empty,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-button {
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: var(--soft);
}

.totals {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.totals strong {
  color: var(--ink);
}

.grand-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.payment-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-field legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkout-form .payment-option {
  position: relative;
  display: block;
  color: var(--ink);
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.payment-option input:checked + span {
  border-color: rgba(15, 122, 79, 0.24);
  color: #ffffff;
  background: var(--green);
}

.checkout-form input,
.checkout-form textarea,
.queue-summary select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
}

.checkout-form input {
  min-height: 42px;
  padding: 0 11px;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 82px;
  padding: 11px;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.queue-summary select:focus {
  border-color: rgba(15, 122, 79, 0.46);
  box-shadow: 0 0 0 4px rgba(15, 122, 79, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.location-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.manual-location {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.location-card,
.manual-location__header {
  display: grid;
  gap: 6px;
}

.location-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.location-mode-switch .mode-chip {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.location-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.location-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-map,
.route-map {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 122, 79, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 122, 79, 0.08) 1px, transparent 1px),
    #f5faf7;
  background-size: 28px 28px;
}

.live-map,
.mini-map.leaflet-container,
.route-map.leaflet-container {
  min-height: 240px;
  width: 100%;
  background: #dfece5;
}

.mini-map.leaflet-container {
  min-height: 220px;
}

.tracker-map.leaflet-container {
  min-height: 260px;
}

.mini-map.is-pin-select-mode,
.mini-map.is-pin-select-mode.leaflet-container,
.mini-map.is-pin-select-mode .leaflet-pane,
.mini-map.is-pin-select-mode .leaflet-interactive {
  cursor: crosshair !important;
}

.mini-map.is-pin-select-mode::after {
  content: attr(data-pin-hint);
  position: absolute;
  z-index: 640;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 122, 79, 0.2);
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
}

.mini-map.leaflet-container::before,
.route-map.leaflet-container::before,
.live-map.leaflet-container::before {
  display: none;
}

.route-map.is-map-locked .leaflet-control-zoom {
  opacity: 0.45;
  pointer-events: none;
}

.route-map.is-map-locked,
.route-map.is-map-locked .leaflet-pane,
.route-map.is-map-locked .leaflet-interactive {
  cursor: default !important;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(15, 122, 79, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 122, 79, 0.08) 1px, transparent 1px),
    #f5faf7;
  background-size: 28px 28px;
}

.leaflet-pin {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(16, 32, 26, 0.24);
  font-size: 0.68rem;
  font-weight: 900;
  isolation: isolate;
}

.leaflet-pin span {
  position: relative;
  z-index: 2;
  transform: rotate(calc(var(--map-bearing, 0deg) * -1));
}

.leaflet-pin .pin-heading {
  position: absolute;
  inset: -22px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: rotate(var(--pin-heading, 0deg));
  transform-origin: 50% 50%;
  transition: opacity 160ms ease;
}

.leaflet-pin .pin-heading::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 18px;
  height: 31px;
  background: linear-gradient(180deg, #41b6df 0%, #286f8f 100%);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  filter: drop-shadow(0 6px 8px rgba(16, 32, 26, 0.28));
  transform: translateX(-50%);
}

.leaflet-pin.driver.has-heading .pin-heading {
  opacity: 1;
}

.leaflet-pin.driver[data-heading-source="route"] .pin-heading::before {
  background: linear-gradient(180deg, #3cc985 0%, #148a59 100%);
}

.leaflet-pin.customer {
  background: var(--coral);
  box-shadow:
    0 0 0 5px rgba(219, 91, 66, 0.16),
    0 12px 24px rgba(16, 32, 26, 0.24);
}

.leaflet-pin.driver {
  background: var(--blue);
  animation: pulsePin 1.8s ease-in-out infinite;
}

.leaflet-pin.dropoff {
  background: var(--gold);
  box-shadow:
    0 0 0 5px rgba(228, 172, 63, 0.18),
    0 12px 24px rgba(16, 32, 26, 0.24);
}

.leaflet-control-attribution {
  font-size: 0.65rem;
}

.mini-map::before,
.route-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-top: 3px solid rgba(40, 111, 143, 0.34);
  border-right: 3px solid rgba(40, 111, 143, 0.34);
  border-radius: 40% 18% 35% 20%;
  transform: rotate(-8deg);
}

.map-pin {
  position: absolute;
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px 999px 999px 0;
  color: #ffffff;
  background: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px rgba(219, 91, 66, 0.24);
}

.map-pin span {
  transform: rotate(45deg);
}

.map-pin.store {
  top: 34%;
  left: 26%;
  background: var(--green);
}

.map-pin.customer {
  right: 24%;
  bottom: 26%;
}

.map-pin.driver {
  background: var(--blue);
}

.map-pin.driver.at-store {
  top: 24%;
  left: 31%;
}

.map-pin.driver.is-waiting {
  top: 42%;
  left: 47%;
  opacity: 0.74;
}

.map-pin.driver.is-live {
  top: 46%;
  left: 54%;
  animation: pulsePin 1.8s ease-in-out infinite;
}

@keyframes pulsePin {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(40, 111, 143, 0.2);
  }
  50% {
    box-shadow: 0 10px 26px rgba(40, 111, 143, 0.42);
  }
}

.queue-summary select {
  max-width: 150px;
  min-height: 38px;
  padding: 0 9px;
  font-weight: 800;
}

.order-card {
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.order-card:hover,
.order-card.is-selected {
  background: rgba(15, 122, 79, 0.05);
}

.order-card.is-selected {
  box-shadow: inset 4px 0 0 var(--green);
}

.order-card h3,
.detail-title h2 {
  margin: 0;
}

.order-card-meta,
.detail-meta,
.timeline,
.item-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-card-meta,
.detail-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(15, 122, 79, 0.12);
  font-size: 0.75rem;
  font-weight: 900;
}

.status-pill.delivered {
  color: #315d70;
  background: rgba(40, 111, 143, 0.12);
}

.status-pill.is-live {
  color: var(--green-strong);
  background: rgba(15, 122, 79, 0.16);
}

.delivery-detail {
  overflow: hidden;
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    background 280ms ease;
}

.delivery-detail.is-route-focus {
  transform: translateY(-2px);
  background: rgba(248, 251, 249, 0.96);
  box-shadow: 0 24px 48px rgba(16, 32, 26, 0.16);
}

.detail-empty {
  display: grid;
  min-height: 680px;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.detail-header,
.detail-section,
.detail-actions {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.route-focus-callout {
  display: none;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid rgba(40, 111, 143, 0.16);
  border-radius: 8px;
  background: rgba(40, 111, 143, 0.08);
}

.route-focus-callout.is-visible {
  display: grid;
  gap: 4px;
}

.route-focus-callout strong {
  font-size: 0.92rem;
}

.route-focus-callout span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.detail-title p,
.detail-section p {
  margin: 6px 0 0;
  color: var(--muted);
}

.detail-section h3 {
  margin: 0;
  font-size: 0.96rem;
}

.route-focus-shell {
  display: grid;
  gap: 1px;
}

.route-focus-shell.is-active {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
  background: var(--line);
}

.route-focus-sidebar {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.route-stage,
.detail-card {
  background: rgba(255, 255, 255, 0.9);
}

.route-stage {
  min-height: 100%;
}

.route-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-nav-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(35, 136, 230, 0.18);
  border-radius: 8px;
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(18, 71, 116, 0.94), rgba(35, 136, 230, 0.92)),
    #1d87cf;
  box-shadow: 0 18px 30px rgba(35, 136, 230, 0.18);
}

.route-nav-banner.is-muted {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.route-nav-banner__copy,
.route-nav-banner__eta {
  display: grid;
  gap: 4px;
}

.route-nav-banner__copy span,
.route-nav-banner__eta span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.82;
}

.route-nav-banner__copy strong,
.route-nav-banner__eta strong {
  line-height: 1.2;
}

.route-nav-banner__copy strong {
  font-size: 1.02rem;
}

.route-nav-banner__copy small,
.route-nav-banner__eta small {
  font-size: 0.84rem;
  line-height: 1.45;
  opacity: 0.86;
}

.route-nav-banner__eta {
  align-content: center;
  justify-items: end;
  min-width: 92px;
}

.route-nav-banner__eta strong {
  font-size: 1.4rem;
}

.route-distance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(15, 122, 79, 0.12);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.route-distance-badge--eta {
  color: var(--blue);
  background: rgba(40, 111, 143, 0.12);
}

.route-guidance-panel {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.route-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-summary-card,
.route-steps-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.route-summary-card {
  display: grid;
  gap: 6px;
}

.route-summary-card span,
.route-steps-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-summary-card strong {
  font-size: 1.3rem;
  line-height: 1;
}

.route-summary-card small,
.route-loading-copy,
.route-step__copy small {
  color: var(--muted);
  line-height: 1.45;
}

.route-summary-card--primary strong,
.route-step__number {
  color: var(--green-strong);
}

.route-steps-panel {
  display: grid;
  gap: 12px;
}

.route-steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.route-steps-head h4,
.route-loading-copy {
  margin: 0;
}

.route-steps-list {
  display: grid;
  gap: 10px;
}

.route-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.route-step__number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 122, 79, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
}

.route-step__copy {
  display: grid;
  gap: 4px;
}

.route-step__copy strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

.route-guidance-panel.is-muted .route-summary-card--primary strong {
  color: var(--ink);
}

.route-map--expanded,
.route-map--expanded.leaflet-container {
  min-height: 500px;
}

.route-map-shell {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfece5;
  box-shadow: 0 18px 32px rgba(16, 32, 26, 0.12);
}

.route-map-shell .route-map,
.route-map-shell .route-map.leaflet-container {
  min-height: 500px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.route-map-floating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 700;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.map-float-button,
.map-float-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(11, 25, 20, 0.28);
}

.map-float-button {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(11, 25, 20, 0.78);
}

.map-float-button:hover {
  background: rgba(11, 25, 20, 0.9);
}

.map-float-button--primary {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--green);
}

.map-float-button--primary:hover {
  background: var(--green-strong);
}

.map-float-pill {
  border: 1px solid rgba(16, 32, 26, 0.14);
  color: var(--green-strong);
  background: rgba(255, 255, 255, 0.92);
}

.route-focus-sidebar.is-hidden-mobile-nav {
  display: none;
}

.route-map-shell--mobile-nav {
  min-height: 74svh;
}

.route-map--mobile-nav,
.route-map--mobile-nav.leaflet-container {
  min-height: 74svh;
}

.mobile-nav-sheet {
  position: absolute;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 680;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 32, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(16, 32, 26, 0.24);
}

.mobile-nav-sheet__grab {
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 32, 26, 0.2);
}

.mobile-nav-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-nav-sheet__header strong {
  font-size: 0.98rem;
}

.mobile-nav-sheet__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.mobile-nav-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-metrics div {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 250, 0.92);
}

.mobile-nav-metrics span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-nav-metrics strong {
  font-size: 0.92rem;
}

.mobile-nav-states {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.detail-card--status,
.detail-card--customer {
  position: relative;
}

.customer-focus {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.customer-focus strong {
  font-size: 1.08rem;
}

.customer-focus span,
.customer-focus p {
  margin: 0;
}

.customer-focus-line {
  color: var(--ink);
  font-weight: 700;
}

.compact-meta {
  margin-top: 2px;
}

.route-live-meta {
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.live-pill.is-live {
  background: rgba(15, 122, 79, 0.12);
  color: var(--green-strong);
}

.location-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(102, 114, 109, 0.4);
}

.location-indicator.is-live {
  color: var(--green-strong);
  border-color: rgba(15, 122, 79, 0.2);
  background: rgba(15, 122, 79, 0.08);
}

.location-indicator.is-live .status-dot {
  background: var(--green);
}

.location-indicator.is-pending {
  color: var(--blue);
  border-color: rgba(40, 111, 143, 0.16);
  background: rgba(40, 111, 143, 0.08);
}

.location-indicator.is-pending .status-dot {
  background: var(--blue);
}

.location-indicator.is-error {
  color: var(--coral);
  border-color: rgba(219, 91, 66, 0.2);
  background: rgba(219, 91, 66, 0.08);
}

.location-indicator.is-error .status-dot {
  background: var(--coral);
}

.delivery-states {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.delivery-state {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.delivery-state.is-current {
  background: rgba(15, 122, 79, 0.12);
  transform: translateX(2px);
}

.delivery-state.is-done {
  background: rgba(40, 111, 143, 0.09);
}

.delivery-state-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.delivery-state.is-current .delivery-state-marker,
.delivery-state.is-done .delivery-state-marker {
  color: #ffffff;
  background: var(--green);
}

.delivery-state strong,
.delivery-state small {
  display: block;
}

.delivery-state strong {
  font-size: 0.92rem;
}

.delivery-state small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.item-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--soft);
}

.route-map {
  min-height: 240px;
  margin-top: 12px;
}

.route-map .map-pin.store {
  top: 24%;
  left: 18%;
}

.route-map .map-pin.customer {
  right: 18%;
  bottom: 22%;
}

.tracker-map .map-pin.store {
  top: 24%;
  left: 18%;
}

.tracker-map .map-pin.customer {
  right: 16%;
  bottom: 22%;
}

.timeline {
  margin-top: 12px;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline-step.is-done {
  color: #ffffff;
  background: var(--green);
}

.timeline-step.is-current {
  color: var(--green-strong);
  background: rgba(15, 122, 79, 0.16);
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 0;
}

.staff-gate {
  display: grid;
  min-height: calc(100svh - 44px);
  place-items: center;
  padding: 24px;
}

.login-panel {
  display: grid;
  width: min(440px, 100%);
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.login-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.login-panel input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
}

.login-panel input:focus {
  border-color: rgba(15, 122, 79, 0.46);
  box-shadow: 0 0 0 4px rgba(15, 122, 79, 0.1);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid rgba(15, 122, 79, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: #10201a;
  box-shadow: var(--shadow);
  animation: toastIn 220ms ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-toggle {
  box-shadow: 0 10px 20px rgba(16, 32, 26, 0.14);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.icon-button:active,
.map-float-button:active {
  transform: translateY(0) scale(0.985);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.map-float-button:focus-visible,
.language-toggle:focus-visible,
.assistant-fab:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(15, 122, 79, 0.22),
    0 10px 24px rgba(16, 32, 26, 0.16);
}

.live-map.leaflet-container .leaflet-map-pane {
  will-change: transform;
}

.live-map.leaflet-container .leaflet-overlay-pane,
.live-map.leaflet-container .leaflet-tile-pane,
.live-map.leaflet-container .leaflet-shadow-pane,
.live-map.leaflet-container .leaflet-marker-pane {
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}

.view-transition {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: transparent;
}

.view-transition.is-active {
  animation: transitionFade 1000ms linear both;
}

.view-transition__road {
  display: none;
}

.view-transition__trail {
  position: absolute;
  inset: -8svh -40vw;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.view-transition__trail span {
  position: absolute;
  display: block;
  width: clamp(190px, 30vw, 560px);
  height: clamp(190px, 30vw, 560px);
  border-radius: 999px;
  font-size: 0;
  box-shadow: 0 18px 36px rgba(16, 76, 56, 0.22);
}

.view-transition__trail span::after {
  content: "";
  position: absolute;
  top: -34px;
  left: 36%;
  width: 30%;
  height: 34px;
  border-radius: 12px 12px 0 0;
  background: #4f8d48;
}

.view-transition__trail span:nth-child(1) {
  top: 6%;
  left: 70%;
  background: #f3b441;
}

.view-transition__trail span:nth-child(2) {
  top: 38%;
  left: 88%;
  background: #7db56d;
}

.view-transition__trail span:nth-child(3) {
  top: 66%;
  left: 72%;
  background: #e25e45;
}

.view-transition__trail span:nth-child(4) {
  top: 20%;
  left: 102%;
  background: #eb8c3c;
}

.view-transition__trail span:nth-child(5) {
  top: 74%;
  left: 94%;
  background: #f4d24f;
}

.view-transition__car {
  position: absolute;
  top: 50%;
  left: 120%;
  z-index: 2;
  height: clamp(580px, 108svh, 1400px);
  width: auto;
  color: #f6fbf8;
  opacity: 0;
  transform: translateY(-50%);
  filter: drop-shadow(0 24px 38px rgba(20, 92, 66, 0.24));
}

.view-transition__car svg {
  width: auto;
  height: 100%;
  fill: #2e94d6;
  stroke: rgba(24, 83, 61, 0.95);
  stroke-width: 2.2;
}

.view-transition.is-active .view-transition__car {
  animation: transitionCar 920ms cubic-bezier(0.18, 0.78, 0.2, 1) 20ms both;
}

.view-transition.is-active .view-transition__trail {
  animation: transitionVeg 920ms linear 80ms both;
}

@keyframes transitionFade {
  0% {
    opacity: 0;
  }
  6%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes transitionCar {
  from {
    left: 120%;
    opacity: 1;
    transform: translateY(-50%) translateY(8px) rotate(-1deg);
  }
  52% {
    transform: translateY(-50%) translateY(-8px) rotate(0deg);
  }
  to {
    left: -220%;
    opacity: 1;
    transform: translateY(-50%) translateY(0) rotate(1deg);
  }
}

@keyframes transitionVeg {
  0% {
    opacity: 1;
    transform: translateX(128vw) scale(1);
  }
  10%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(-132vw) scale(1.04);
  }
}

.language-wave {
  position: fixed;
  inset: 0;
  z-index: 5100;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: rgba(4, 27, 31, 0.04);
}

.language-wave.is-active {
  visibility: visible;
  opacity: 1;
}

.language-wave__sheet {
  position: absolute;
  top: -20svh;
  left: -8vw;
  width: 158vw;
  height: 142svh;
  border-radius: 0 48% 52% 0 / 0 42% 58% 0;
  transform: translate3d(-170vw, 0, 0) skewX(-5deg);
  will-change: transform;
}

.language-wave__sheet::after {
  position: absolute;
  inset: 8% -2% 6% 58%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.82), transparent 0.55rem),
    radial-gradient(circle at 62% 54%, rgba(255, 255, 255, 0.72), transparent 0.45rem),
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, 0.64), transparent 0.5rem);
  content: "";
  filter: blur(0.2px);
  opacity: 0.72;
}

.language-wave__sheet--lagoon {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 24%, rgba(218, 238, 99, 0.34), transparent 14rem),
    linear-gradient(110deg, #04363d 0%, #066c74 46%, #0fa9a2 100%);
  box-shadow: 22px 0 70px rgba(4, 54, 61, 0.34);
}

.language-wave__sheet--reef {
  top: -16svh;
  z-index: 2;
  width: 146vw;
  height: 134svh;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 209, 95, 0.24), transparent 13rem),
    linear-gradient(112deg, #078090 0%, #19b6ad 52%, #8de4d2 100%);
  opacity: 0.92;
}

.language-wave__sheet--foam {
  top: -12svh;
  z-index: 3;
  width: 138vw;
  height: 126svh;
  border-radius: 0 54% 46% 0 / 0 48% 52% 0;
  background:
    radial-gradient(circle at 83% 22%, rgba(255, 208, 80, 0.32), transparent 10rem),
    linear-gradient(112deg, rgba(236, 255, 243, 0.96), rgba(170, 238, 220, 0.82) 48%, rgba(250, 255, 235, 0.92));
  opacity: 0.96;
}

.language-wave__spark {
  position: absolute;
  z-index: 4;
  width: clamp(90px, 12vw, 170px);
  height: clamp(90px, 12vw, 170px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(-42vw, 0, 0) scale(0.75);
  will-change: transform, opacity;
}

.language-wave__spark--one {
  top: 16%;
  left: 16%;
}

.language-wave__spark--two {
  top: 58%;
  left: 34%;
  width: clamp(64px, 9vw, 130px);
  height: clamp(64px, 9vw, 130px);
}

.language-wave__spark--three {
  top: 34%;
  right: 12%;
  width: clamp(48px, 7vw, 96px);
  height: clamp(48px, 7vw, 96px);
}

.language-wave__label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(14px, 2vw, 20px) clamp(18px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: #07353a;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(4, 54, 61, 0.24);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  backdrop-filter: blur(16px);
  will-change: opacity, transform;
}

.language-wave__label span {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #07353a;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.language-wave__label strong {
  color: #07353a;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.language-wave.is-active .language-wave__sheet--lagoon {
  animation: languageLagoonWash 1360ms cubic-bezier(0.18, 0.76, 0.14, 1) both;
}

.language-wave.is-active .language-wave__sheet--reef {
  animation: languageReefWash 1290ms cubic-bezier(0.2, 0.78, 0.12, 1) 55ms both;
}

.language-wave.is-active .language-wave__sheet--foam {
  animation: languageFoamWash 1220ms cubic-bezier(0.18, 0.84, 0.14, 1) 95ms both;
}

.language-wave.is-active .language-wave__spark {
  animation: languageFoamSpark 980ms cubic-bezier(0.18, 0.84, 0.22, 1) 150ms both;
}

.language-wave.is-active .language-wave__spark--two {
  animation-delay: 240ms;
}

.language-wave.is-active .language-wave__spark--three {
  animation-delay: 320ms;
}

.language-wave.is-active .language-wave__label {
  animation: languageLabelFloat 780ms cubic-bezier(0.18, 0.84, 0.22, 1) 300ms both;
}

body.is-language-washing {
  overflow: hidden;
}

@keyframes languageLagoonWash {
  0% {
    transform: translate3d(-172vw, 0, 0) skewX(-5deg) scaleX(0.96);
  }
  43%,
  58% {
    transform: translate3d(-9vw, 0, 0) skewX(-2deg) scaleX(1.03);
  }
  100% {
    transform: translate3d(118vw, 0, 0) skewX(4deg) scaleX(0.98);
  }
}

@keyframes languageReefWash {
  0% {
    transform: translate3d(-164vw, 0, 0) skewX(-6deg) scaleX(0.94);
  }
  46%,
  61% {
    transform: translate3d(-2vw, 0, 0) skewX(-1deg) scaleX(1.02);
  }
  100% {
    transform: translate3d(124vw, 0, 0) skewX(5deg) scaleX(0.98);
  }
}

@keyframes languageFoamWash {
  0% {
    transform: translate3d(-156vw, 0, 0) skewX(-7deg) scaleX(0.92);
  }
  48%,
  63% {
    transform: translate3d(4vw, 0, 0) skewX(0deg) scaleX(1.01);
  }
  100% {
    transform: translate3d(130vw, 0, 0) skewX(6deg) scaleX(0.96);
  }
}

@keyframes languageFoamSpark {
  0% {
    opacity: 0;
    transform: translate3d(-36vw, 10px, 0) scale(0.72);
  }
  26%,
  70% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translate3d(78vw, -18px, 0) scale(1.45);
  }
}

@keyframes languageLabelFloat {
  0% {
    opacity: 0;
    transform: translate(-54%, -50%) scale(0.88);
  }
  25%,
  76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-44%, -50%) scale(0.96);
  }
}

@keyframes tapRipple {
  0% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (min-width: 901px) {
  .view-transition {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .language-toggle {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    z-index: 1120;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(16, 32, 26, 0.14);
    color: var(--green-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 22px rgba(16, 32, 26, 0.15);
    backdrop-filter: blur(8px);
  }

  .language-toggle svg {
    width: 16px;
    height: 16px;
  }

  .language-toggle:hover {
    background: #ffffff;
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  .owner-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-analytics-grid {
    grid-template-columns: 1fr;
  }

  .owner-study__stats,
  .owner-study__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-table-wrap {
    overflow-x: auto;
  }

  .owner-table {
    min-width: 820px;
  }
}

@media (max-width: 640px) {
  .owner-metrics {
    grid-template-columns: 1fr;
  }

  .owner-study__stats,
  .owner-study__totals {
    grid-template-columns: 1fr;
  }

  .owner-product-row__top,
  .owner-product-row__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

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

  .home-reveal,
  .home-reveal.is-reveal-ready,
  .home-reveal.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .language-wave {
    display: none !important;
  }
}

@media (min-width: 981px) {
  .mini-map.leaflet-container {
    min-height: 250px;
  }
}

@media (max-width: 1280px) and (min-width: 981px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .brand-rail {
    padding: 18px;
  }

  .customer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  }

  .orders-workspace {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .delivery-grid {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .route-focus-shell.is-active {
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.82fr);
  }
}

.assistant-fab {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 1125;
  min-width: 54px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(16, 32, 26, 0.14);
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 26px rgba(16, 32, 26, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.assistant-fab:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.assistant-fab.is-open {
  background: rgba(15, 122, 79, 0.12);
  color: var(--green-strong);
}

.assistant-widget {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 1124;
  display: grid;
  width: min(390px, calc(100vw - 20px));
  max-height: min(72svh, 620px);
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  border: 1px solid rgba(16, 32, 26, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 40px rgba(16, 32, 26, 0.22);
  backdrop-filter: blur(8px);
}

.assistant-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.assistant-widget__header strong,
.assistant-widget__header small {
  display: block;
}

.assistant-widget__header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.assistant-widget__messages {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.9), rgba(255, 255, 255, 0.98));
}

.assistant-message {
  display: grid;
  gap: 4px;
  width: min(100%, 290px);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(15, 122, 79, 0.08);
}

.assistant-message p {
  margin: 0;
  line-height: 1.45;
}

.assistant-message small {
  color: var(--muted);
  font-size: 0.72rem;
}

.assistant-message--user {
  justify-self: end;
  color: #ffffff;
  background: var(--green);
}

.assistant-message--user small {
  color: rgba(255, 255, 255, 0.78);
}

.assistant-widget__quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.assistant-widget__quick .ghost-button {
  min-height: 32px;
  white-space: nowrap;
  font-size: 0.8rem;
}

.assistant-widget__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.assistant-widget__form input {
  min-height: 40px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assistant-widget__form input:focus {
  outline: 0;
  border-color: rgba(15, 122, 79, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 122, 79, 0.12);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    padding: 14px;
  }

  .role-switch {
    align-self: center;
  }

  .role-switch--public,
  .role-switch--private {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-switch--private {
    margin-top: 8px;
  }

  .role-switch--private .role-tab {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .language-toggle {
    justify-self: start;
  }

  .admin-menu {
    margin-top: 0;
    padding-top: 10px;
  }

  .store-visual,
  .store-meta {
    display: none;
  }

  .customer-grid,
  .orders-workspace,
  .tracker-shell,
  .tracker-body,
  .route-focus-shell.is-active,
  .delivery-grid,
  .promo-band,
  .hero-panel,
  .market-intro,
  .review-dossier,
  .home-feature-board,
  .review-showcase,
  .delivery-story,
  .review-lane {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-market-board {
    min-height: 520px;
  }

  .hero-proof-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
  }

  .home-feature-board article:nth-child(2) {
    transform: none;
  }

  .review-card--featured {
    min-height: 360px;
  }

  .delivery-story__media {
    min-height: 320px;
  }

  .cart-panel {
    position: static;
    max-height: none;
  }

  .orders-detail-panel {
    order: 1;
    min-height: auto;
  }

  .orders-list-panel {
    order: 2;
  }

  .queue-panel,
  .delivery-detail {
    min-height: auto;
  }

  .queue-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .delivery-grid.is-route-focus {
    grid-template-columns: 1fr;
  }

  .delivery-grid.is-route-focus .queue-panel {
    box-shadow: none;
  }

  .tracker-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .language-toggle {
    top: calc(10px + env(safe-area-inset-top));
    right: calc(10px + env(safe-area-inset-right));
    min-height: 36px;
    padding: 0 10px;
  }

  .assistant-fab {
    right: calc(10px + env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-width: 50px;
    min-height: 50px;
  }

  .assistant-widget {
    right: calc(10px + env(safe-area-inset-right));
    left: calc(10px + env(safe-area-inset-left));
    width: auto;
    bottom: calc(68px + env(safe-area-inset-bottom));
    max-height: min(68svh, 520px);
  }
}

@media (max-width: 720px) {
  .brand-rail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .role-switch {
    grid-auto-flow: row;
  }

  .role-switch--public,
  .role-switch--private {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-toggle {
    width: auto;
    justify-content: center;
  }

  .language-wave__sheet {
    left: -18vw;
    width: 190vw;
  }

  .language-wave__sheet--reef {
    width: 178vw;
  }

  .language-wave__sheet--foam {
    width: 166vw;
  }

  .language-wave__label {
    width: min(86vw, 360px);
    justify-content: space-between;
    padding: 12px 14px;
  }

  .language-wave__label span {
    min-width: 38px;
    min-height: 38px;
  }

  .workspace {
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions > * {
    width: 100%;
  }

  .customer-stage-bar,
  .shop-order-banner__content,
  .manual-location__header {
    display: grid;
  }

  .customer-mode-switch {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
  }

  .mode-chip {
    width: 100%;
    padding: 0 12px;
  }

  .tracker-header {
    grid-template-columns: 1fr;
  }

  .tracker-header__status {
    justify-items: start;
  }

  .tracker-map-toolbar {
    display: grid;
  }

  .route-summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 1.85rem;
    line-height: 1.02;
  }

  .form-row,
  .payment-field,
  .location-actions {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .queue-summary,
  .detail-actions,
  .detail-header {
    display: grid;
  }

  .queue-summary select {
    max-width: none;
  }

  .delivery-detail {
    order: 1;
  }

  .queue-panel {
    order: 2;
  }

  .delivery-grid.is-route-focus,
  .route-focus-shell.is-active {
    grid-template-columns: 1fr;
  }

  .delivery-grid.is-route-focus .queue-panel {
    display: grid;
  }

  .delivery-detail.is-route-focus {
    transform: none;
    box-shadow: var(--shadow);
  }

  .route-focus-callout {
    max-width: none;
  }

  .detail-title h2 {
    font-size: 1.55rem;
    line-height: 1.04;
  }

  .hero-panel {
    min-height: 620px;
    background:
      radial-gradient(circle at 74% 0%, rgba(196, 206, 63, 0.22), transparent 18rem),
      linear-gradient(135deg, rgba(8, 14, 7, 0.98), rgba(30, 44, 19, 0.96));
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .hero-proof-strip {
    grid-template-columns: 1fr;
  }

  .hero-market-board {
    min-height: auto;
  }

  .market-intro__copy,
  .review-dossier__heading,
  .home-feature-board article,
  .review-dossier blockquote {
    border-radius: 16px;
  }

  .market-intro__photo {
    min-height: 260px;
  }

  .review-showcase__heading,
  .delivery-story__panel {
    border-radius: 18px;
  }

  .review-card,
  .review-card--featured {
    min-height: 230px;
    border-radius: 18px;
  }

  .delivery-story__steps div {
    grid-template-columns: 1fr;
  }

  .hero-photo--main,
  .hero-photo--float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .hero-photo--main {
    height: 320px;
  }

  .hero-photo--float {
    width: 78%;
    height: 210px;
    margin: -54px 0 0 auto;
  }

  .catalog-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .product-swatch {
    width: 48px;
    height: 48px;
  }

  .product-actions {
    grid-column: 2;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: start;
  }

  .product-cart-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-header {
    display: grid;
  }

  .route-stage-header {
    display: grid;
  }

  .tracker-map-toolbar > * {
    width: 100%;
  }

  .route-nav-banner {
    grid-template-columns: 1fr;
  }

  .route-nav-banner__eta {
    justify-items: start;
    min-width: 0;
  }

  .route-map--expanded,
  .route-map--expanded.leaflet-container {
    min-height: 300px;
  }

  .route-map-shell .route-map,
  .route-map-shell .route-map.leaflet-container {
    min-height: 300px;
  }

  .route-map-floating {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .map-float-button,
  .map-float-pill {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
  }

  .map-float-button--primary,
  .map-float-pill {
    grid-column: 1 / -1;
  }

  .delivery-detail.is-mobile-navigator {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .delivery-detail.is-mobile-navigator .detail-header {
    display: none;
  }

  .delivery-detail.is-mobile-navigator .route-focus-shell,
  .delivery-detail.is-mobile-navigator .route-stage {
    background: transparent;
  }

  .delivery-detail.is-mobile-navigator .route-stage {
    padding: 0;
    border-bottom: 0;
  }

  .delivery-detail.is-mobile-navigator .route-map-shell--mobile-nav {
    margin-top: 0;
    min-height: min(78dvh, 680px);
  }

  .delivery-detail.is-mobile-navigator .route-map--mobile-nav,
  .delivery-detail.is-mobile-navigator .route-map--mobile-nav.leaflet-container {
    min-height: min(78dvh, 680px);
  }

  .delivery-detail.is-mobile-navigator .route-map-floating--mobile-nav {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .delivery-detail.is-mobile-navigator .route-map-floating--mobile-nav .map-float-button,
  .delivery-detail.is-mobile-navigator .route-map-floating--mobile-nav .map-float-pill {
    width: auto;
    min-width: 124px;
    min-height: 34px;
    padding: 0 12px;
    grid-column: auto;
  }

  .delivery-detail.is-mobile-navigator .mobile-nav-sheet {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 10px;
  }

  .delivery-detail.is-mobile-navigator .mobile-nav-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .delivery-detail.is-mobile-navigator .mobile-nav-metrics div {
    padding: 7px;
  }

  .delivery-detail.is-mobile-navigator .mobile-nav-sheet__sub {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .tracker-map--focused,
  .tracker-map--focused.leaflet-container {
    height: clamp(220px, 34svh, 280px);
    min-height: 220px;
    max-height: 280px;
  }

  .tracker-summary-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px;
    max-width: none;
  }
}
