﻿:root {
  --fusion-ink: #101416;
  --fusion-muted: #69716e;
  --fusion-paper: #f5f1e8;
  --fusion-white: #ffffff;
  --fusion-cream: #ece6da;
  --fusion-green: #1f5c43;
  --fusion-leaf: #5f8e3f;
  --fusion-red: #e74631;
  --fusion-red-dark: #b82f23;
  --fusion-pool: #20aaa6;
  --fusion-slate: #15191b;
  --fusion-gold: #d8a53a;
  --fusion-line: rgba(16, 20, 22, 0.13);
  --fusion-shadow: 0 22px 54px rgba(16, 20, 22, 0.18);
  --fusion-soft-shadow: 0 12px 30px rgba(16, 20, 22, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f7f8f5 0%, #ffffff 48%, #eef5f3 100%);
  background-size: 32px 32px, auto;
  color: var(--fusion-ink);
  letter-spacing: 0;
}

.app-shell {
  display: block !important;
  min-height: 100vh;
}

.brand-rail {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  width: auto !important;
  min-height: 84px !important;
  padding: 14px clamp(16px, 3vw, 42px) !important;
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 20, 22, 0.94) !important;
  box-shadow: 0 14px 38px rgba(16, 20, 22, 0.18);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  min-width: 0;
  padding: 0 !important;
  gap: 12px !important;
}

.brand-mark {
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  background: var(--fusion-paper) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.brand-logo,
.hero-logo {
  object-fit: contain;
}

.brand-lockup strong {
  color: var(--fusion-paper) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
}

.brand-lockup small,
.store-meta,
.store-visual {
  color: rgba(245, 241, 232, 0.66) !important;
}

.role-switch {
  width: auto !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.role-tab,
.language-toggle,
.nav-order-button,
.ghost-button,
.secondary-button,
.primary-button,
.text-button,
.category-tab,
.mode-chip,
.icon-button {
  border-radius: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.role-tab {
  padding: 10px 12px !important;
  min-height: 42px;
  color: rgba(245, 241, 232, 0.82) !important;
  background: transparent !important;
  border: 0 !important;
}

.role-tab.is-active,
.role-tab:hover {
  color: var(--fusion-white) !important;
  background: var(--fusion-red) !important;
}

.role-tab .tab-icon {
  color: currentColor;
}

.language-toggle {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--fusion-paper) !important;
}

.nav-order-button,
.primary-button {
  border: 0 !important;
  background: var(--fusion-red) !important;
  color: var(--fusion-white) !important;
  box-shadow: 0 10px 24px rgba(199, 71, 47, 0.24);
}

.nav-order-button:hover,
.primary-button:hover {
  background: var(--fusion-red-dark) !important;
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button,
.text-button {
  border: 1px solid var(--fusion-line) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--fusion-ink) !important;
}

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

.workspace {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 102px clamp(16px, 3.4vw, 46px) 56px !important;
}

.view {
  border-radius: 0 !important;
}

.promo-view {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.hero-panel {
  position: relative;
  min-height: min(680px, calc(100vh - 132px));
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: var(--fusion-shadow);
  background: var(--fusion-slate);
  isolation: isolate;
}

.fusion-hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.fusion-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.9) 0%, rgba(16, 20, 22, 0.66) 42%, rgba(16, 20, 22, 0.12) 76%),
    linear-gradient(0deg, rgba(16, 20, 22, 0.42), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(600px, calc(100% - 32px));
  padding: clamp(34px, 6vw, 76px) !important;
  color: #fffaf2 !important;
}

.hero-copy .hero-logo {
  width: 88px !important;
  height: 88px !important;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.hero-copy h1 {
  max-width: 9ch;
  margin: 18px 0 16px;
  color: #fffaf2 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8.4vw, 7.8rem) !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
}

.hero-copy p {
  max-width: 570px;
  color: rgba(255, 250, 242, 0.9) !important;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.hero-tagline {
  color: #7fe2df !important;
  font-weight: 800;
}

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

.hero-proof-strip {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 76px);
  right: clamp(24px, 5vw, 76px);
  bottom: 86px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.16);
  backdrop-filter: blur(14px);
}

.hero-proof-strip div {
  padding: 14px;
  background: rgba(255, 250, 242, 0.12);
}

.hero-proof-strip strong {
  display: block;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

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

.hero-media-stack {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 4vw, 54px);
  top: 112px;
  width: min(380px, 32vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-media-stack figure {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 4px solid rgba(255, 250, 242, 0.82);
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  background: var(--fusion-paper);
}

.hero-media-stack figure:nth-child(2),
.hero-media-stack figure:nth-child(3) {
  transform: translateY(28px);
}

.hero-media-stack img,
.featured-dish img,
.video-card img,
.catalog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-stack figcaption {
  background: rgba(23, 55, 45, 0.78) !important;
  color: var(--fusion-paper) !important;
}

.home-marquee {
  position: relative;
  z-index: 4;
  margin-top: 12px !important;
  border-block: 1px solid var(--fusion-line);
  background: var(--fusion-white);
  color: var(--fusion-green);
  transform: none !important;
}

.home-marquee__track span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--fusion-green);
}

.section-title-row h2,
.topbar h1,
.owner-report h2,
.queue-summary h2,
.cart-panel h2,
.orders-detail-panel h2 {
  color: var(--fusion-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0 !important;
}

.featured-menu,
.experience-grid,
.chef-story,
.private-access-panel,
.customer-grid,
.delivery-grid,
.owner-report,
.login-panel,
.orders-workspace,
.cart-panel,
.tracker-panel,
.queue-panel,
.delivery-detail {
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: var(--fusion-soft-shadow) !important;
}

.featured-menu {
  padding: clamp(18px, 3vw, 30px) !important;
}

.digital-menu-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--fusion-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(245, 234, 217, 0.88)),
    repeating-linear-gradient(90deg, rgba(31, 92, 67, 0.08) 0 1px, transparent 1px 32px);
  box-shadow: var(--fusion-soft-shadow);
}

.digital-menu-board .section-title-row {
  margin-bottom: 2px;
}

.digital-menu-group {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(23, 55, 45, 0.12);
  border-radius: 8px;
  background: var(--fusion-white);
}

.digital-menu-group h3 {
  margin: 0 0 4px;
  color: var(--fusion-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1;
}

.digital-menu-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding-block: 8px;
  border-top: 1px solid rgba(23, 55, 45, 0.1);
}

.digital-menu-line span {
  min-width: 0;
  color: var(--fusion-ink);
  font-weight: 800;
  line-height: 1.25;
}

.digital-menu-line strong {
  color: var(--fusion-red);
  font-size: 0.86rem;
  white-space: nowrap;
}

.digital-menu-line button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fusion-green);
  color: var(--fusion-white);
  font-weight: 950;
}

.featured-menu__rail {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.featured-dish {
  min-width: 0 !important;
  border: 1px solid rgba(23, 55, 45, 0.12) !important;
  border-radius: 8px !important;
  background: var(--fusion-paper) !important;
}

.featured-dish img {
  height: 160px !important;
  border-radius: 6px 6px 0 0 !important;
}

.featured-dish h3 {
  color: var(--fusion-ink);
  font-size: 1rem;
}

.featured-dish strong {
  color: var(--fusion-red) !important;
}

.featured-add-button {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--fusion-green) !important;
  color: var(--fusion-white) !important;
}

.home-category-strip span,
.category-tab,
.mode-chip {
  border: 1px solid var(--fusion-line) !important;
  background: var(--fusion-white) !important;
  color: var(--fusion-ink) !important;
}

.category-tab.is-active,
.mode-chip.is-active {
  background: var(--fusion-green) !important;
  color: var(--fusion-white) !important;
}

.experience-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 30px) !important;
}

.section-title-row--full {
  grid-column: 1 / -1;
}

.video-card {
  min-height: 260px;
  border-radius: 8px !important;
  overflow: hidden;
  background: var(--fusion-green);
}

.video-card figcaption {
  background: rgba(23, 55, 45, 0.82) !important;
  color: var(--fusion-paper) !important;
}

.chef-story {
  display: grid !important;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(20px, 4vw, 44px) !important;
}

.menu-board-preview {
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(245, 234, 217, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(23, 55, 45, 0.08) 19px);
  border: 1px dashed rgba(107, 70, 51, 0.34) !important;
  box-shadow: none !important;
}

.menu-board-preview__brand img {
  border-radius: 8px !important;
}

.menu-board-preview__grid > div {
  border-radius: 8px !important;
  background: var(--fusion-white) !important;
  border: 1px solid var(--fusion-line);
}

.private-access-panel {
  padding: 24px !important;
  background: var(--fusion-green) !important;
  color: var(--fusion-paper);
}

.private-access-panel h2,
.private-access-panel p,
.private-access-panel .eyebrow {
  color: var(--fusion-paper) !important;
}

.private-access-menu summary,
.private-access-menu a {
  border-radius: 8px !important;
  background: rgba(255, 250, 242, 0.94) !important;
  color: var(--fusion-ink) !important;
}

.topbar {
  position: static !important;
  margin-bottom: 22px !important;
  padding: 18px clamp(16px, 2.4vw, 28px) !important;
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: var(--fusion-white) !important;
  box-shadow: var(--fusion-soft-shadow);
}

#customer-view .topbar,
#staff-view .topbar,
#owner-view .topbar {
  align-items: center !important;
  margin: 0 0 24px !important;
  padding: 18px clamp(16px, 2.4vw, 28px) !important;
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: var(--fusion-white) !important;
  color: var(--fusion-ink) !important;
  box-shadow: var(--fusion-soft-shadow) !important;
}

#customer-view .topbar h1,
#staff-view .topbar h1,
#owner-view .topbar h1 {
  max-width: 980px !important;
  color: var(--fusion-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

#customer-view .customer-grid {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  gap: 24px !important;
}

#customer-view .customer-main {
  width: 100% !important;
  max-width: none !important;
}

#customer-view .orders-workspace {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start;
}

#customer-view .market-panel,
#customer-view .cart-panel,
#customer-view .tracker-panel,
#customer-view .orders-list-panel,
#customer-view .orders-detail-panel,
#staff-view .queue-panel,
#staff-view .delivery-detail,
#owner-view .owner-report,
#owner-view .owner-inventory-panel,
#staff-view .login-panel,
#owner-view .login-panel {
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--fusion-ink) !important;
  box-shadow: var(--fusion-soft-shadow) !important;
}

#customer-view .tracker-panel,
#customer-view .orders-detail-panel,
#staff-view .delivery-detail {
  background: var(--fusion-white) !important;
}

#customer-view .tracker-panel *,
#customer-view .orders-detail-panel *,
#staff-view .delivery-detail *,
#owner-view .owner-report * {
  text-shadow: none !important;
}

#customer-view .tracker-panel h1,
#customer-view .tracker-panel h2,
#customer-view .tracker-panel h3,
#customer-view .orders-detail-panel h1,
#customer-view .orders-detail-panel h2,
#customer-view .orders-detail-panel h3,
#staff-view .delivery-detail h1,
#staff-view .delivery-detail h2,
#staff-view .delivery-detail h3,
#owner-view .owner-report h1,
#owner-view .owner-report h2,
#owner-view .owner-report h3 {
  color: var(--fusion-ink) !important;
}

#customer-view,
#staff-view,
#owner-view {
  min-height: calc(100vh - 168px);
  width: min(1560px, calc(100% - 32px)) !important;
  margin: 0 auto 34px !important;
  padding-top: 0 !important;
}

#customer-view .customer-stage,
#customer-view .orders-list-panel,
#customer-view .orders-detail-panel,
#staff-view .delivery-grid,
#owner-view .owner-report {
  min-width: 0;
}

#customer-view .customer-grid:has(#customer-orders-stage:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) !important;
}

#customer-view .customer-grid:has(#customer-orders-stage:not([hidden])) .cart-panel {
  display: none !important;
}

.workspace > .view:not(.promo-view) {
  padding-top: 0 !important;
}

.topbar h1 {
  max-width: 980px !important;
  color: var(--fusion-ink) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

.topbar p,
.topbar .eyebrow {
  text-shadow: none !important;
}

.customer-stage-bar {
  margin-top: 0 !important;
}

.customer-stage-bar,
.orders-list-panel,
.tracker-panel,
.delivery-detail,
.queue-panel,
.owner-report {
  color: var(--fusion-ink) !important;
}

.customer-orders-list,
.orders-detail-panel,
.tracker-panel {
  background: var(--fusion-white) !important;
}

.tracker-panel h2,
.orders-detail-panel h2,
.customer-orders-list h2,
.customer-order-card strong,
.customer-order-card p,
.delivery-detail p,
.delivery-detail strong,
.owner-report p,
.owner-report strong {
  color: var(--fusion-ink) !important;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h2,
.queue-summary h2 {
  color: var(--fusion-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.panel-heading p,
.empty-state,
.empty-state p,
.product-meta,
.cart-empty,
.location-helper,
.location-status,
.checkout-status,
.detail-meta,
.compact-meta,
.tracker-header p,
.tracker-card p,
.route-stage-header p,
.route-loading-copy,
.owner-period-card p,
.owner-insight-card p,
.owner-table-title span,
.owner-empty {
  color: var(--fusion-muted) !important;
}

.status-pill,
.live-pill,
.tag,
.availability-pill {
  color: var(--fusion-green) !important;
  background: rgba(91, 224, 184, 0.18) !important;
  font-weight: 900 !important;
}

.status-pill.delivered {
  color: var(--fusion-white) !important;
  background: var(--fusion-green) !important;
}

.mode-chip.is-active,
.category-tab.is-active {
  color: var(--fusion-white) !important;
  background: var(--fusion-green) !important;
}

#customer-view .customer-mode-switch .mode-chip:not(.is-active),
#customer-view .location-mode-switch .mode-chip:not(.is-active),
#owner-view .owner-mode-switch .mode-chip:not(.is-active),
#owner-view .owner-period-tabs .mode-chip:not(.is-active),
.category-tab:not(.is-active) {
  color: var(--fusion-ink) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.customer-order-card,
.order-card,
.owner-period-card,
.owner-metric,
.owner-insight-card,
.owner-product-row,
.tracker-card,
.route-summary-card,
.route-nav-banner,
.detail-card,
.summary-row,
.order-summary-card,
.location-card {
  border: 1px solid var(--fusion-line) !important;
  background: rgba(255, 250, 242, 0.76) !important;
  color: var(--fusion-ink) !important;
  box-shadow: none !important;
}

.customer-order-card.is-selected,
.order-card.is-selected {
  border-color: rgba(215, 166, 58, 0.76) !important;
  background: #fff8e8 !important;
  box-shadow: inset 4px 0 0 var(--fusion-gold) !important;
}

.customer-order-card__meta,
.detail-meta,
.compact-meta,
.cart-line,
.summary-row,
.status-row,
.driver-row {
  color: var(--fusion-muted) !important;
}

.metric span,
.owner-metric span,
.owner-period-summary span,
.route-summary-card span,
.route-nav-banner span,
.mobile-nav-metrics span,
.owner-table th {
  color: rgba(23, 55, 45, 0.68) !important;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric strong,
.owner-metric strong,
.owner-period-summary strong,
.route-summary-card strong,
.route-nav-banner strong,
.mobile-nav-metrics strong,
.item-row strong,
.item-row span {
  color: var(--fusion-ink) !important;
}

.timeline-step {
  color: var(--fusion-muted) !important;
  background: rgba(23, 55, 45, 0.08) !important;
}

.timeline-step.is-done {
  color: var(--fusion-ink) !important;
  background: rgba(91, 224, 184, 0.34) !important;
}

.tracker-header,
.detail-header,
.route-stage-header,
.owner-period-history__header,
.owner-insight-card__header,
.owner-table-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tracker-header h2,
.detail-title h2 {
  margin: 6px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  line-height: 0.95 !important;
}

.tracker-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.tracker-map-stage,
.route-map-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #d7eee9;
}

.tracker-map-toolbar {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.tracker-map-toolbar > * {
  pointer-events: auto;
}

.tracker-info-panel,
.route-guidance-panel,
.detail-card {
  display: grid;
  gap: 14px;
}

.tracker-summary-grid,
.tracker-detail-grid,
.route-summary-grid,
.owner-period-summary,
.owner-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.metric,
.tracker-card,
.detail-card,
.route-summary-card,
.owner-metric {
  padding: 14px;
  border-radius: 8px !important;
}

.tracker-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(23, 55, 45, 0.1);
}

.item-row:last-child {
  border-bottom: 0;
}

.route-focus-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.route-stage {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.route-nav-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 8px !important;
}

.route-map,
.tracker-map {
  min-height: 430px !important;
}

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

.map-float-button,
.map-float-pill {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px !important;
  background: rgba(23, 55, 45, 0.9) !important;
  color: var(--fusion-white) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(23, 55, 45, 0.18);
}

.map-float-button--primary {
  background: #5be0b8 !important;
  color: var(--fusion-ink) !important;
}

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

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

.route-step {
  justify-content: flex-start;
  padding: 10px;
  border: 1px solid rgba(23, 55, 45, 0.1);
  border-radius: 8px;
  background: var(--fusion-white);
}

.route-step__number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--fusion-green);
  color: var(--fusion-white);
  font-weight: 900;
}

.route-step__copy small,
.route-summary-card small,
.route-nav-banner small {
  color: var(--fusion-muted) !important;
}

.location-indicator {
  color: var(--fusion-ink) !important;
}

#staff-view .queue-summary select {
  border-color: var(--fusion-line) !important;
  background: var(--fusion-white) !important;
  color: var(--fusion-ink) !important;
}

#staff-view .route-steps-head span {
  color: var(--fusion-muted) !important;
}

.owner-period-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px !important;
}

.owner-mode-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 22px;
}

.owner-mode-panel {
  display: grid;
  gap: 22px;
}

.owner-mode-panel.is-hidden {
  display: none !important;
}

.owner-table-wrap {
  overflow-x: auto;
  background: var(--fusion-white) !important;
}

.owner-table {
  width: 100%;
  border-collapse: collapse;
}

.owner-table th,
.owner-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(23, 55, 45, 0.1);
  color: var(--fusion-ink) !important;
  text-align: left;
}

#customer-view .tracker-panel {
  overflow: hidden !important;
  background: var(--fusion-white) !important;
}

#customer-view .tracker-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: start !important;
  padding: 22px !important;
  border-bottom: 1px solid var(--fusion-line) !important;
  background:
    linear-gradient(135deg, rgba(245, 234, 217, 0.78), rgba(255, 255, 255, 0.92)) !important;
}

#customer-view .tracker-header p,
#customer-view .tracker-empty p {
  max-width: 58ch !important;
  margin: 0 !important;
  color: var(--fusion-muted) !important;
  line-height: 1.55 !important;
}

#customer-view .tracker-header__status {
  display: grid !important;
  gap: 10px !important;
  justify-items: end !important;
}

#customer-view .tracker-shell {
  display: grid !important;
  grid-template-columns: minmax(380px, 1fr) minmax(360px, 0.78fr) !important;
  gap: 1px !important;
  min-width: 0 !important;
  background: var(--fusion-line) !important;
}

#customer-view .tracker-map-stage,
#customer-view .tracker-info-panel {
  min-width: 0 !important;
  background: var(--fusion-white) !important;
}

#customer-view .tracker-map-stage {
  display: block !important;
}

#customer-view .tracker-map-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--fusion-line) !important;
  background: rgba(255, 250, 242, 0.88) !important;
}

#customer-view .tracker-map,
#customer-view .tracker-map.leaflet-container,
#customer-view .tracker-map--focused,
#customer-view .tracker-map--focused.leaflet-container {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 520px !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #d7eee9 !important;
}

#customer-view .orders-detail-panel {
  position: static !important;
  top: auto !important;
}

#staff-view .route-map:not(.leaflet-container),
#staff-view .route-map--expanded:not(.leaflet-container) {
  position: relative !important;
  min-height: 500px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 31% 46%, rgba(31, 92, 67, 0.2) 0 12px, transparent 13px),
    radial-gradient(circle at 67% 28%, rgba(199, 71, 47, 0.18) 0 11px, transparent 12px),
    linear-gradient(135deg, transparent 0 42%, rgba(31, 92, 67, 0.22) 42% 45%, transparent 45% 100%),
    linear-gradient(28deg, transparent 0 50%, rgba(215, 166, 58, 0.24) 50% 53%, transparent 53% 100%),
    linear-gradient(90deg, rgba(23, 55, 45, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 55, 45, 0.06) 1px, transparent 1px),
    #dbe8df !important;
  background-size: auto, auto, auto, auto, 52px 52px, 52px 52px, auto !important;
}

#staff-view .route-map:not(.leaflet-container)::before {
  content: "";
  position: absolute;
  inset: 28% 18% 36% 14%;
  border: 8px solid rgba(31, 92, 67, 0.5);
  border-right-color: transparent;
  border-radius: 44% 56% 52% 48%;
  transform: rotate(-8deg);
}

#staff-view .route-map:not(.leaflet-container)::after {
  content: "REP";
  position: absolute;
  left: 34%;
  top: 45%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid #fffaf2;
  border-radius: 999px 999px 999px 0;
  background: #0e8d91;
  color: #fffaf2;
  font-weight: 950;
  transform: rotate(-45deg);
  box-shadow: 0 10px 24px rgba(23, 55, 45, 0.2);
}

#customer-view .tracker-info-panel {
  display: grid !important;
  align-content: start !important;
  gap: 14px !important;
  padding: 14px !important;
}

#customer-view .tracker-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1px !important;
  overflow: hidden !important;
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: var(--fusion-line) !important;
}

#customer-view .tracker-summary-grid .metric {
  min-height: 78px !important;
  padding: 14px !important;
  border: 0 !important;
  background: #fffaf2 !important;
}

#customer-view .tracker-summary-grid .metric span,
#customer-view .tracker-card .eyebrow {
  color: rgba(23, 55, 45, 0.68) !important;
}

#customer-view .tracker-summary-grid .metric strong,
#customer-view .tracker-card h3,
#customer-view .tracker-items .item-row span,
#customer-view .tracker-items .item-row strong {
  color: var(--fusion-ink) !important;
}

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

#customer-view .tracker-card {
  padding: 16px !important;
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: #fffaf2 !important;
}

#customer-view .tracker-card p {
  margin: 0 0 6px !important;
  color: var(--fusion-muted) !important;
  line-height: 1.45 !important;
}

#customer-view .tracker-timeline {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

#customer-view .tracker-timeline .timeline-step {
  display: inline-flex !important;
  min-height: 30px !important;
  align-items: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: var(--fusion-muted) !important;
  background: rgba(23, 55, 45, 0.08) !important;
  font-weight: 850 !important;
}

#customer-view .tracker-timeline .timeline-step.is-done {
  color: var(--fusion-ink) !important;
  background: #5be0b8 !important;
}

.eyebrow {
  color: var(--fusion-red) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

.customer-grid {
  align-items: start;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.customer-main,
.cart-panel,
.orders-list-panel,
.orders-detail-panel,
.queue-panel,
.delivery-detail,
.owner-report,
.login-panel {
  border-radius: 8px !important;
}

.catalog-toolbar,
.customer-stage-bar,
.queue-summary,
.cart-summary,
.checkout-form,
.order-card,
.customer-order-card,
.owner-metric,
.inventory-form,
.inventory-card,
.owner-table-wrap {
  border-radius: 8px !important;
}

.catalog-item {
  border: 1px solid var(--fusion-line) !important;
  border-radius: 8px !important;
  background: var(--fusion-white) !important;
  box-shadow: none !important;
}

.catalog-item.is-in-cart {
  border-color: rgba(199, 71, 47, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(199, 71, 47, 0.1) !important;
}

.catalog-item h3,
.cart-item strong,
.order-card h3,
.customer-order-card strong {
  color: var(--fusion-ink) !important;
}

#customer-view .catalog-item,
#customer-view .catalog-item *,
#customer-view .cart-panel,
#customer-view .cart-panel * {
  text-shadow: none !important;
}

#customer-view .product-main h3,
#customer-view .product-actions strong,
#customer-view .cart-panel h2,
#customer-view .cart-line strong,
#customer-view .totals strong,
#customer-view .grand-total strong {
  color: var(--fusion-ink) !important;
}

#customer-view .product-main p,
#customer-view .product-meta,
#customer-view .product-meta span,
#customer-view .cart-line p,
#customer-view .cart-empty,
#customer-view .totals span,
#customer-view .checkout-form label span,
#customer-view .payment-field legend,
#customer-view .location-helper,
#customer-view .location-status {
  color: var(--fusion-muted) !important;
}

#customer-view .catalog-item .tag,
#customer-view .cart-panel .tag {
  color: var(--fusion-green) !important;
  background: rgba(91, 224, 184, 0.18) !important;
}

input,
select,
textarea {
  border-radius: 8px !important;
  border: 1px solid rgba(23, 55, 45, 0.18) !important;
  background: var(--fusion-white) !important;
  color: var(--fusion-ink) !important;
}

.cart-panel {
  position: sticky !important;
  top: 104px !important;
  overflow: visible;
}

.cart-panel::before,
.delivery-detail::before,
.owner-report::before {
  content: "";
  display: block;
  height: 8px;
  margin: -1px -1px 14px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, var(--fusion-red) 0 16px, var(--fusion-gold) 16px 32px, var(--fusion-green) 32px 48px);
}

.mini-map,
.tracker-map,
.delivery-map {
  border-radius: 8px !important;
  border: 1px solid rgba(23, 55, 45, 0.14) !important;
}

.status-dot,
.map-marker--driver,
.map-marker--customer,
.map-marker--store {
  box-shadow: 0 0 0 4px rgba(31, 92, 67, 0.12) !important;
}

.delivery-state.is-active .delivery-state-marker,
.delivery-state-marker,
.status-pill,
.availability-pill {
  border-radius: 999px !important;
}

.owner-report {
  padding: clamp(18px, 3vw, 30px) !important;
}

.owner-tabs,
.owner-period-tabs {
  border-radius: 8px !important;
  background: rgba(31, 92, 67, 0.08) !important;
}

.owner-tab.is-active,
.owner-period-tab.is-active {
  background: var(--fusion-green) !important;
  color: var(--fusion-white) !important;
}

.assistant-fab {
  border-radius: 999px !important;
  background: var(--fusion-green) !important;
  color: var(--fusion-white) !important;
  box-shadow: 0 18px 36px rgba(23, 55, 45, 0.24) !important;
}

.assistant-widget {
  border-radius: 8px !important;
  border: 1px solid var(--fusion-line) !important;
  box-shadow: var(--fusion-shadow) !important;
}

.assistant-widget__header {
  background: var(--fusion-green) !important;
  color: var(--fusion-paper) !important;
}

.view-transition__car svg {
  color: var(--fusion-red) !important;
}

.language-wave__sheet--lagoon,
.casa-language-wave__sheet--lagoon {
  background: var(--fusion-green) !important;
}

.language-wave__sheet--reef,
.casa-language-wave__sheet--reef {
  background: var(--fusion-red) !important;
}

.language-wave__sheet--foam,
.casa-language-wave__sheet--foam {
  background: var(--fusion-paper) !important;
}

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

  .role-switch {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-order-button {
    display: none !important;
  }

  .workspace {
    padding-top: 142px !important;
  }

  .hero-media-stack {
    width: min(330px, 40vw);
    top: auto;
    bottom: 118px;
  }

  .featured-menu__rail {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }

  .digital-menu-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .brand-rail {
    position: sticky !important;
    grid-template-columns: 1fr auto;
    padding: 10px 12px !important;
  }

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

  .brand-lockup small {
    display: none;
  }

  .brand-mark {
    width: 44px !important;
    height: 44px !important;
  }

  .role-switch {
    margin-top: 6px;
    width: 100% !important;
  }

  .role-switch--public {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible !important;
  }

  .role-tab {
    min-width: 0 !important;
    padding-inline: 6px !important;
    justify-content: center;
    font-size: 0.68rem;
  }

  .workspace {
    padding: 14px 12px 38px !important;
  }

  .hero-panel {
    min-height: 760px;
  }

  .fusion-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(20, 55, 44, 0.9) 0%, rgba(20, 55, 44, 0.58) 52%, rgba(20, 55, 44, 0.16) 100%);
  }

  .hero-copy {
    width: 100%;
    padding: 26px 20px !important;
  }

  .hero-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.1rem, 17vw, 5.7rem) !important;
  }

  .hero-media-stack {
    left: 18px;
    right: 18px;
    bottom: 112px;
    top: auto;
    width: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-media-stack figure {
    border-width: 2px;
  }

  .hero-media-stack figure:nth-child(2),
  .hero-media-stack figure:nth-child(3) {
    transform: none;
  }

  .hero-media-stack figcaption {
    display: none;
  }

  .hero-proof-strip {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
  }

  .featured-menu__rail {
    display: flex !important;
    overflow-x: auto;
  }

  .featured-dish {
    min-width: 240px !important;
  }

  .experience-grid,
  .chef-story {
    grid-template-columns: 1fr !important;
  }

  .digital-menu-board {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  #customer-view .customer-grid,
  #customer-view .orders-workspace,
  .delivery-grid,
  .tracker-shell,
  .route-focus-shell,
  .owner-period-card {
    grid-template-columns: 1fr !important;
  }

  .tracker-header,
  .detail-header,
  .route-stage-header,
  .owner-period-history__header,
  .owner-insight-card__header,
  .owner-table-title {
    display: grid;
  }

  .tracker-map,
  .route-map {
    min-height: 360px !important;
  }

  .route-map-floating {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .video-card {
    min-height: 220px;
  }

  .cart-panel {
    top: 0 !important;
  }
}

@media (max-width: 520px) {
  .language-toggle {
    min-width: 48px;
  }

  .hero-actions {
    display: grid;
  }

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

  .topbar,
  .section-title-row,
  .queue-summary {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions > * {
    flex: 1 1 auto;
  }
}

/* Final Fusion overrides for inherited restaurant shell details. */
body::before {
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.92), rgba(238, 245, 243, 0.84)),
    url("assets/fusion/pool-overhead.png") center top / cover fixed !important;
  opacity: 0.42 !important;
}

.hero-copy::before {
  content: "Food & Fun Menu" !important;
  display: block !important;
  margin-bottom: 12px !important;
  color: #7fe2df !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem) !important;
  font-style: italic !important;
}

.assistant-fab::before {
  content: "Asistente Fusion" !important;
}

.home-reveal,
.home-reveal.is-reveal-ready,
.home-reveal.is-reveal-ready[data-reveal],
.home-reveal .featured-dish,
.home-reveal .video-card {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}

#customer-view .category-tab,
#customer-view .mode-chip {
  border-color: rgba(16, 20, 22, 0.12) !important;
  background: #ffffff !important;
  color: var(--fusion-ink) !important;
}

#customer-view .category-tab.is-active,
#customer-view .mode-chip.is-active {
  background: var(--fusion-red) !important;
  color: #ffffff !important;
}

#customer-view .search-control input,
#customer-view .field input,
#customer-view .field textarea,
#customer-view .field select,
#customer-view .form-field input,
#customer-view .form-field textarea,
#customer-view .form-field select {
  color: var(--fusion-ink) !important;
}

#customer-view .search-control input::placeholder,
#customer-view input::placeholder,
#customer-view textarea::placeholder {
  color: rgba(16, 20, 22, 0.48) !important;
}

