﻿:root {
  color-scheme: light;
  --ink: #23140f;
  --muted: #75665d;
  --deep: #061d22;
  --ocean: #0b5962;
  --ocean-2: #0e7c86;
  --coral: #d84a36;
  --coral-2: #f06a3f;
  --sand: #f6ead4;
  --shell: #fffaf0;
  --wood: #3b2117;
  --gold: #d6aa55;
  --line: rgba(58, 35, 24, 0.14);
  --shadow: 0 22px 55px rgba(13, 29, 28, 0.18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--deep); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(6, 29, 34, 0.96) 0, rgba(11, 89, 98, 0.16) 520px, rgba(246, 234, 212, 0.96) 900px),
    var(--sand);
  overflow-x: hidden;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden], .view { display: none !important; }
.view.is-active { display: block !important; }

.app-shell { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 100svh; }
.brand-rail {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 22px;
  color: #fff7e8;
  background:
    linear-gradient(180deg, rgba(6, 29, 34, .94), rgba(18, 58, 55, .96) 48%, rgba(59, 33, 23, .98)),
    url("assets/casa-langosta/casalangostanightvibes.jpg") center/cover;
  box-shadow: inset -1px 0 rgba(255, 255, 255, .08);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 68px; height: 68px; overflow: hidden; border-radius: var(--radius); background: #f4dfc0; box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.brand-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 1rem; line-height: 1.1; }
.brand-lockup small { margin-top: 4px; color: rgba(255,247,232,.72); font-size: .82rem; }
.role-switch { display: grid; gap: 8px; }
.role-tab, .language-toggle, .admin-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: rgba(255,247,232,.76);
  background: rgba(255,255,255,.06);
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.role-tab:hover, .role-tab.is-active, .language-toggle:hover, .admin-menu summary:hover { color: #fff; background: rgba(255,255,255,.13); transform: translateX(2px); }
.tab-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius); background: rgba(255,255,255,.1); }
.language-toggle { width: fit-content; border: 1px solid rgba(255,255,255,.14); font-weight: 900; }
.admin-menu { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-menu summary { width: fit-content; list-style: none; font-weight: 800; cursor: pointer; }
.admin-menu summary::-webkit-details-marker { display: none; }
.role-switch--private { margin-top: 8px; }
.store-visual {
  position: relative;
  min-height: 246px;
  margin-top: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(6,29,34,.05), rgba(6,29,34,.75)),
    url("assets/casa-langosta/casalangostanightvibes2.jpg") center/cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.store-visual div { position: absolute; inset: auto 14px 14px; }
.store-visual span, .store-visual strong { display: block; }
.store-visual span { color: rgba(255,247,232,.74); font-size: .86rem; }
.store-visual strong { margin-top: 4px; color: #fff; font-size: 1.3rem; }
.store-meta { display: grid; gap: 10px; color: rgba(255,247,232,.72); line-height: 1.45; font-size: .92rem; }
.store-meta p { margin: 0; }
.store-meta a { width: fit-content; color: #fff; font-weight: 800; }

.workspace { min-width: 0; padding: 22px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.topbar h1 { margin: 2px 0 0; max-width: 720px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .98; }
.eyebrow { margin: 0; color: var(--coral); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.topbar-actions, .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.casa-hero {
  position: relative;
  min-height: min(780px, calc(100svh - 44px));
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(22px, 5vw, 58px);
  border-radius: var(--radius);
  color: #fffaf0;
  background: var(--deep);
  box-shadow: var(--shadow);
}
.hero-video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 29, 34, .9) 0%, rgba(6, 29, 34, .72) 38%, rgba(6, 29, 34, .24) 72%),
    linear-gradient(180deg, rgba(6,29,34,.28), rgba(6,29,34,.74));
}
.hero-copy { position: relative; z-index: 1; width: min(720px, 100%); }
.hero-logo { width: 132px; height: 132px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 46px rgba(0,0,0,.38); }
.hero-copy h1 { margin: 18px 0 14px; max-width: 9ch; font-size: clamp(3.35rem, 9vw, 7.4rem); line-height: .86; font-family: Georgia, "Times New Roman", serif; font-weight: 800; }
.hero-copy p { max-width: 620px; margin: 0; color: rgba(255,250,240,.84); font-size: 1.08rem; line-height: 1.58; }
.hero-tagline { margin-top: 10px !important; color: #ffd68a !important; font-weight: 900; }
.hero-proof-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-self: end;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
}
.hero-proof-strip div { padding: 15px; background: rgba(6,29,34,.42); }
.hero-proof-strip strong { display: block; color: #ffd68a; font-size: 1.5rem; }
.hero-proof-strip span { color: rgba(255,250,240,.78); font-size: .83rem; }

.home-marquee { margin-top: 18px; overflow: hidden; border-radius: 999px; background: rgba(255,250,240,.9); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.home-marquee__track { display: flex; gap: 46px; width: max-content; padding: 14px 24px; color: var(--wood); font-size: .92rem; font-weight: 950; text-transform: uppercase; animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(260px, .55fr) minmax(260px, .55fr);
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
}
.experience-copy, .chef-story, .market-panel, .cart-panel, .tracker-panel, .queue-panel, .delivery-detail, .owner-report, .owner-inventory-panel, .login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,240,.94);
  box-shadow: var(--shadow);
}
.experience-copy { padding: clamp(22px, 4vw, 42px); }
.experience-copy h2, .chef-story h2 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; font-family: Georgia, "Times New Roman", serif; }
.experience-copy p:last-child, .chef-story p { color: var(--muted); line-height: 1.65; }
.video-card { position: relative; min-height: 360px; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--deep); }
.video-card--tall { min-height: 430px; }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card figcaption { position: absolute; inset: auto 12px 12px; padding: 10px 12px; border-radius: var(--radius); color: #fff; background: rgba(6,29,34,.72); backdrop-filter: blur(10px); font-size: .86rem; }
.chef-story { display: grid; grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; padding: clamp(18px, 3vw, 34px); align-items: center; }
.chef-story img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }

.primary-button, .secondary-button, .ghost-button, .icon-button, .text-button, .mode-chip, .category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.primary-button { padding: 0 16px; color: #fff; background: linear-gradient(135deg, var(--coral), var(--coral-2)); box-shadow: 0 14px 28px rgba(216,74,54,.25); }
.secondary-button, .ghost-button, .icon-button { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.86); }
.secondary-button, .ghost-button { padding: 0 14px; }
.icon-button { width: 42px; padding: 0; }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .icon-button:hover, .mode-chip:hover, .category-tab:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(13,29,28,.13); }
.text-button { min-height: 34px; padding: 0; color: var(--coral); background: transparent; }
.full-width { width: 100%; }

.customer-grid, .delivery-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: 18px; align-items: start; }
.customer-main { display: grid; gap: 18px; min-width: 0; }
.customer-stage-bar { display: flex; justify-content: space-between; gap: 12px; }
.customer-mode-switch, .location-mode-switch, .owner-period-tabs { display: inline-flex; flex-wrap: wrap; gap: 7px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,240,.86); box-shadow: var(--shadow); }
.mode-chip, .category-tab { padding: 0 13px; color: var(--muted); background: transparent; }
.mode-chip.is-active, .category-tab.is-active { color: #fff; background: var(--ocean); }
.market-panel, .cart-panel, .tracker-panel, .queue-panel, .delivery-detail, .owner-report, .owner-inventory-panel { padding: 18px; }
.catalog-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.search-control { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-control input { width: 100%; border: 0; outline: 0; background: transparent; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.catalog-list, .orders-list, .queue-list, .owner-orders-list { display: grid; gap: 12px; }
.catalog-item, .order-card, .customer-order-card, .owner-period-card, .owner-inventory-item, .summary-row, .order-summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf4;
}
.catalog-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; padding: 12px; align-items: center; overflow: hidden; }
.product-swatch { width: 112px; height: 96px; overflow: hidden; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.product-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-main { min-width: 0; }
.product-main h3, .cart-panel h2, .panel-heading h2, .queue-summary h2 { margin: 0; }
.product-meta, .cart-empty, .location-helper, .panel-heading p, .empty-state p { color: var(--muted); }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: .86rem; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(11,89,98,.1); color: var(--ocean); font-weight: 850; font-size: .76rem; }
.tag--low-stock { background: rgba(216,74,54,.12); color: var(--coral); }
.tag--unavailable { background: rgba(35,20,15,.1); color: var(--muted); }
.product-actions { display: grid; gap: 8px; justify-items: end; }
.product-cart-tools, .quantity-control { display: inline-flex; align-items: center; gap: 8px; }
.add-button, .quantity-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); color: #fff; background: var(--coral); font-weight: 950; }
.quantity-button { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.product-quantity-chip { display: none; min-width: 24px; text-align: center; font-weight: 900; }
.product-quantity-chip.is-visible { display: inline-block; }
.catalog-item.is-unavailable { opacity: .58; }
.price, [data-cart-total], [data-cart-subtotal], [data-cart-delivery] { font-weight: 950; color: var(--wood); }
.cart-panel, .tracker-panel { position: sticky; top: 22px; }
.cart-line, .summary-row, .status-row, .driver-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child, .summary-row:last-child, .status-row:last-child { border-bottom: 0; }
.checkout-form, .manual-location, .delivery-destination, .owner-inventory-form { display: grid; gap: 12px; margin-top: 14px; }
.field, .form-field { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 800; }
.field input, .field textarea, .field select, .form-field input, .form-field textarea, .form-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 76px; resize: vertical; }
.mini-map, .staff-map, .customer-tracking-map, #customer-map, #staff-map, #owner-map { min-height: 300px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #d7eee9; }
.customer-tracking-map, .staff-map { min-height: 420px; }
.map-toolbar, .map-floating-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toast-region, #toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 8px; }
.toast { padding: 12px 14px; border-radius: var(--radius); color: #fff; background: var(--deep); box-shadow: var(--shadow); }

.assistant-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.assistant-panel { position: fixed; right: 18px; bottom: 74px; z-index: 40; width: min(420px, calc(100vw - 36px)); max-height: min(720px, calc(100svh - 110px)); display: grid; overflow: hidden; border-radius: var(--radius); background: #fffaf4; box-shadow: 0 24px 70px rgba(0,0,0,.28); border: 1px solid var(--line); }
.assistant-header, .assistant-form { display: flex; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.assistant-form { border-top: 1px solid var(--line); border-bottom: 0; }
.assistant-form input { flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; }
.assistant-messages { display: grid; gap: 10px; overflow: auto; padding: 12px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .brand-rail { position: relative; height: auto; min-height: 0; display: grid; grid-template-columns: 1fr; }
  .store-visual { display: none; }
  .role-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { padding: 14px; }
  .experience-grid, .chef-story, .customer-grid, .delivery-grid { grid-template-columns: 1fr; }
  .cart-panel, .tracker-panel { position: static; }
  .topbar { display: grid; }
}

@media (max-width: 620px) {
  .workspace { padding: 10px; }
  .casa-hero { min-height: 680px; padding: 18px; }
  .hero-logo { width: 98px; height: 98px; }
  .hero-proof-strip { grid-template-columns: 1fr; }
  .catalog-item { grid-template-columns: 86px minmax(0, 1fr); }
  .product-swatch { width: 86px; height: 78px; }
  .catalog-item .product-actions { grid-column: 1 / -1; justify-items: stretch; }
  .role-switch { grid-template-columns: 1fr; }
}

/* Casa Langosta restaurant shell refresh */
body {
  background:
    linear-gradient(180deg, #061f22 0 86px, transparent 86px),
    url("assets/casa-langosta/casalangostanightvibes.jpg") center top / cover fixed,
    #1f120e;
}
.app-shell { display: block; }
.brand-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 86px;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 20px;
  overflow: visible;
  padding: 0 28px;
  background: linear-gradient(90deg, rgba(4, 44, 46, .98), rgba(4, 26, 31, .98));
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
}
.brand-lockup strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: .95; text-transform: uppercase; }
.brand-lockup small { color: #d8b768; font-weight: 800; }
.brand-mark { width: 76px; height: 60px; background: transparent; box-shadow: none; }
.brand-mark img { object-fit: contain; }
.role-switch--public, .role-switch--private { display: flex; align-items: center; gap: 10px; margin: 0; }
.role-switch--private { grid-column: auto; }
.role-tab {
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  color: #fffaf0;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 950;
}
.role-tab .tab-icon { display: none; }
.role-tab:hover, .role-tab.is-active { transform: none; color: #ffd06f; background: transparent; }
.role-tab.is-active::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: #ffd06f; }
.language-toggle {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
}
.nav-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  font-size: .8rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(216,74,54,.26);
}
.admin-menu { padding: 0; border: 0; }
.admin-menu summary { display: none; }
.admin-menu[open] .role-switch--private, .admin-menu .role-switch--private { display: flex; }
.store-visual, .store-meta { display: none; }
.workspace { padding: 0; }
.promo-view { background: #1e120e; }
.casa-hero {
  min-height: calc(100svh - 86px);
  border-radius: 0;
  padding: clamp(28px, 5vw, 70px);
  align-items: center;
  box-shadow: none;
}
.casa-hero::after { display: none; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.42) 45%, rgba(0,0,0,.18)),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.8));
}
.hero-copy { max-width: 760px; }
.hero-logo { display: none; }
.hero-copy::before {
  content: "Caribbean Lobster & Steakhouse";
  display: block;
  margin-bottom: 12px;
  color: #d8b768;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
}
.hero-copy h1 { max-width: 8.5ch; color: #fffaf0; text-shadow: 0 8px 30px rgba(0,0,0,.42); }
.hero-copy p { font-size: 1.12rem; color: rgba(255,250,240,.9); }
.hero-tagline { color: #f0c869 !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem !important; }
.hero-proof-strip {
  position: absolute;
  left: clamp(28px, 5vw, 70px);
  right: auto;
  bottom: 96px;
  width: min(620px, calc(100% - 420px));
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.hero-media-stack {
  position: absolute;
  right: 28px;
  top: 38px;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(220px, 22vw);
}
.hero-media-stack figure {
  position: relative;
  min-height: 86px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 8px;
  background: #061d22;
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.hero-media-stack video,
.hero-media-stack img {
  width: 100%;
  height: 86px;
  display: block;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-media-stack figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.68));
}
.hero-media-stack figure::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.hero-media-stack figcaption {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: .67rem;
  font-weight: 850;
}
.hero-media-stack figcaption span { color: rgba(255,255,255,.72); font-weight: 700; }
.hero-proof-strip div { background: transparent; padding: 0 18px 0 0; }
.hero-proof-strip strong { color: #f0c869; font-size: 1rem; }
.hero-proof-strip span { color: #fffaf0; font-size: .78rem; }
.home-marquee, .featured-menu, .experience-grid, .delivery-preview, .ops-preview, .chef-story {
  width: min(1500px, calc(100% - 44px));
  margin-right: auto;
  margin-left: auto;
}
.home-marquee { margin-top: 0; transform: translateY(-32px); background: rgba(32,18,13,.92); border-color: rgba(216,183,104,.28); }
.home-marquee__track { color: #f0c869; }
.featured-menu, .experience-grid, .delivery-preview, .ops-preview {
  padding: 22px;
  border: 1px solid rgba(216,183,104,.2);
  border-radius: 8px;
  background:
    linear-gradient(rgba(31,18,14,.88), rgba(31,18,14,.9)),
    url("assets/casa-langosta/casalangostanightvibes2.jpg") center/cover;
  box-shadow: 0 22px 50px rgba(0,0,0,.26);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: #fffaf0;
}
.section-title-row h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}
.section-title-row a { color: #f0c869; text-transform: uppercase; font-size: .84rem; font-weight: 950; }
.featured-menu__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
  overflow-x: auto;
}
.featured-dish {
  position: relative;
  min-height: 318px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #0b1716;
}
.featured-dish img { width: 100%; height: 210px; object-fit: cover; display: block; }
.featured-dish div { padding: 12px; color: #fffaf0; }
.featured-dish h3 { margin: 0 0 3px; font-size: 1rem; }
.featured-dish small { color: #d8b768; display: block; }
.featured-dish strong { display: block; margin-top: 10px; color: #f0c869; }
.featured-dish > span { position: absolute; top: 0; left: 0; z-index: 1; padding: 6px 9px; color: #fff; background: var(--coral); font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.featured-dish::after {
  content: "Destacado";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(216,74,54,.92);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}
.home-category-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.home-category-strip span { padding: 8px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: #fffaf0; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.home-category-strip span:first-child { background: var(--coral); border-color: var(--coral); }
.experience-grid { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.section-title-row--full { grid-column: 1 / -1; margin-bottom: 0; }
.video-card { min-height: 210px; border: 1px solid rgba(255,255,255,.18); }
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.delivery-preview { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; margin-top: 20px; }
.tracking-demo, .home-cart-preview, .ops-card {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(5,22,25,.96), rgba(10,33,32,.92));
  color: #fffaf0;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}
.tracking-demo, .home-cart-preview, .ops-card { padding: 18px; }
.tracking-demo h2, .home-cart-preview h2, .ops-card h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; }
.tracking-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.tracking-status span { display: inline-flex; margin: 10px 0; padding: 5px 8px; border-radius: 999px; color: #6ff0c4; background: rgba(31,187,142,.16); text-transform: uppercase; font-size: .72rem; font-weight: 950; }
.tracking-status ol { margin: 16px 0 0; padding-left: 20px; color: rgba(255,250,240,.75); line-height: 2.25; }
.tracking-map-art {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #073036;
  background:
    radial-gradient(circle at 42% 42%, #f6fff3 0 8%, transparent 8%),
    linear-gradient(135deg, rgba(42,166,145,.74), rgba(215,238,229,.9)),
    url("assets/casa-langosta/casalangostapromotionary3.jpg") center/cover;
}
.tracking-map-art strong { padding: 14px 18px; border-radius: 8px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.home-cart-preview h2 span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--coral); font: 900 .8rem/1 Inter; }
.home-cart-line { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.home-cart-line img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.home-cart-line p { margin: 0; }
.home-cart-total { display: flex; justify-content: space-between; margin: 16px 0; font-size: 1.2rem; color: #48d0a4; }
.ops-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.ops-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ops-stats span { padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: rgba(255,250,240,.78); }
.ops-stats strong { display: block; color: #fffaf0; font-size: 1.45rem; }
.chart-bars { display: flex; align-items: end; gap: 8px; height: 150px; margin: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.chart-bars i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #41d0b0, rgba(65,208,176,.15)); }
.chart-bars i:nth-child(1){height:35%}.chart-bars i:nth-child(2){height:62%}.chart-bars i:nth-child(3){height:52%}.chart-bars i:nth-child(4){height:78%}.chart-bars i:nth-child(5){height:72%}.chart-bars i:nth-child(6){height:88%}
.mini-route-list { display: grid; gap: 10px; margin: 18px 0; }
.mini-route-list p { display: flex; justify-content: space-between; margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: rgba(255,250,240,.78); }
.mini-route-list b { color: #48d0a4; text-transform: uppercase; font-size: .74rem; }
.chef-story { margin-top: 20px; margin-bottom: 26px; background: rgba(255,250,240,.96); }

@media (max-width: 1050px) {
  .brand-rail { height: auto; grid-template-columns: 1fr auto; padding: 12px 16px; }
  .role-switch--public, .admin-menu { grid-column: 1 / -1; }
  .hero-media-stack { position: relative; right: auto; top: auto; width: 100%; grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .hero-proof-strip { position: relative; left: auto; bottom: auto; width: 100%; }
  .featured-menu__rail, .experience-grid, .delivery-preview, .ops-preview { grid-template-columns: 1fr 1fr; }
  .tracking-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .brand-rail { position: relative; }
  .role-switch--public, .role-switch--private { overflow-x: auto; }
  .casa-hero { min-height: 660px; }
  .hero-copy h1 { font-size: clamp(3.3rem, 18vw, 5.6rem); }
  .featured-menu__rail, .experience-grid, .delivery-preview, .ops-preview, .chef-story { grid-template-columns: 1fr; }
  .featured-menu, .experience-grid, .delivery-preview, .ops-preview, .chef-story { width: calc(100% - 20px); padding: 14px; }
  .ops-stats { grid-template-columns: 1fr; }
}

#customer-view,
#staff-view,
#owner-view {
  width: min(1500px, calc(100% - 44px));
  margin: 22px auto 34px;
  color: #fffaf0;
}
#customer-view .topbar,
#staff-view .topbar,
#owner-view .topbar {
  padding: 18px 0 4px;
}
#customer-view .topbar h1,
#staff-view .topbar h1,
#owner-view .topbar h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fffaf0;
}
#customer-view .market-panel,
#customer-view .cart-panel,
#customer-view .tracker-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-color: rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(5,22,25,.97), rgba(18,31,29,.94));
  color: #fffaf0;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
#customer-view .catalog-item,
#customer-view .customer-order-card,
#staff-view .order-card,
#owner-view .owner-period-card,
#owner-view .owner-inventory-item,
#owner-view .owner-insight-card,
#owner-view .owner-product-row {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,250,240,.06);
  color: #fffaf0;
}
#customer-view .product-meta,
#customer-view .cart-empty,
#customer-view .location-helper,
#customer-view .panel-heading p,
#staff-view .panel-heading p,
#owner-view .panel-heading p,
#owner-view .empty-state,
#staff-view .empty-state {
  color: rgba(255,250,240,.68);
}
#customer-view .search-control,
#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,
#owner-view .field input,
#owner-view .field textarea,
#owner-view .field select,
#staff-view .field input,
#staff-view .field textarea,
#staff-view .field select {
  border-color: rgba(255,255,255,.16);
  color: #fffaf0;
  background: rgba(255,255,255,.08);
}
#customer-view .search-control input::placeholder,
#customer-view textarea::placeholder,
#customer-view input::placeholder {
  color: rgba(255,250,240,.52);
}
#customer-view .customer-mode-switch,
#customer-view .location-mode-switch,
#owner-view .owner-period-tabs {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,250,240,.07);
}
#customer-view .secondary-button,
#customer-view .ghost-button,
#customer-view .icon-button,
#staff-view .secondary-button,
#staff-view .ghost-button,
#staff-view .icon-button,
#owner-view .secondary-button,
#owner-view .ghost-button,
#owner-view .icon-button {
  border-color: rgba(255,255,255,.18);
  color: #fffaf0;
  background: rgba(255,255,255,.08);
}
#customer-view .mini-map,
#customer-view .customer-tracking-map,
#staff-view .staff-map,
#owner-view #owner-map {
  border-color: rgba(255,255,255,.18);
}

@media (max-width: 700px) {
  #customer-view,
  #staff-view,
  #owner-view {
    width: calc(100% - 20px);
    margin-top: 12px;
  }
}

/* v4 hard override: move fully away from the legacy sidebar/order UI */
html,
body {
  background: #180f0b !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 31, 34, .96) 0 88px, rgba(16, 9, 7, .82) 88px 100%),
    url("assets/casa-langosta/casalangostanightvibes.jpg") center top / cover fixed !important;
}

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

.brand-rail {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 1fr) auto auto auto auto !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  height: 88px !important;
  min-height: 88px !important;
  padding: 0 34px !important;
  overflow: visible !important;
  color: #fffaf0 !important;
  background: linear-gradient(90deg, rgba(1, 55, 58, .99), rgba(1, 28, 34, .99)) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.32) !important;
}

.brand-lockup {
  gap: 14px !important;
}

.brand-mark {
  width: 90px !important;
  height: 72px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark img {
  object-fit: contain !important;
}

.brand-lockup strong {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.35rem !important;
  line-height: .95 !important;
  color: #fffaf0 !important;
  text-transform: uppercase !important;
}

.brand-lockup small {
  color: #d6aa55 !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

.role-switch--public,
.role-switch--private,
.admin-menu .role-switch--private {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.admin-menu {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-menu summary {
  display: none !important;
}

.role-tab {
  min-height: 44px !important;
  padding: 0 11px !important;
  border-radius: 0 !important;
  color: #fffaf0 !important;
  background: transparent !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

.role-tab .tab-icon {
  display: none !important;
}

.role-tab.is-active,
.role-tab:hover {
  color: #f3c96d !important;
  background: transparent !important;
  box-shadow: none !important;
}

.role-tab.is-active::before {
  left: 11px !important;
  right: 11px !important;
  bottom: 4px !important;
  height: 2px !important;
  background: #f3c96d !important;
}

.language-toggle {
  min-height: 30px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: rgba(255,255,255,.08) !important;
  font-size: .74rem !important;
}

.nav-order-button {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #e94d38 !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 30px rgba(233,77,56,.34) !important;
}

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

.workspace {
  padding: 0 !important;
  min-width: 0 !important;
}

.promo-view {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(24,15,11,.98) 660px),
    #180f0b !important;
}

.casa-hero {
  min-height: calc(100svh - 88px) !important;
  padding: 64px 38px 86px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hero-video {
  opacity: 1 !important;
  filter: saturate(1.08) contrast(1.06) !important;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.54) 42%, rgba(0,0,0,.18) 78%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.86)) !important;
}

.hero-copy {
  width: min(760px, calc(100% - 270px)) !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.hero-copy::before {
  content: "Caribbean Lobster & Steakhouse" !important;
  display: block !important;
  margin-bottom: 14px !important;
  color: #d6aa55 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.25rem !important;
  font-style: italic !important;
}

.hero-copy h1 {
  max-width: 8.4ch !important;
  margin: 0 0 18px !important;
  color: #fffaf0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(4rem, 8.4vw, 7.4rem) !important;
  line-height: .88 !important;
  text-shadow: 0 16px 40px rgba(0,0,0,.44) !important;
}

.hero-copy p {
  max-width: 600px !important;
  color: rgba(255,250,240,.92) !important;
  font-size: 1.05rem !important;
  line-height: 1.48 !important;
}

.hero-tagline {
  margin-top: 10px !important;
  color: #f3c96d !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.65rem !important;
}

.hero-actions {
  margin-top: 28px !important;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-width: 160px !important;
  min-height: 54px !important;
  text-transform: uppercase !important;
  font-size: .82rem !important;
}

.hero-actions .primary-button {
  background: #e94d38 !important;
}

.hero-actions .secondary-button {
  border: 1px solid rgba(255,255,255,.46) !important;
  color: #fffaf0 !important;
  background: rgba(0,0,0,.18) !important;
}

.hero-proof-strip {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  width: min(720px, calc(100% - 300px)) !important;
  margin-top: 36px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  border: 0 !important;
  background: transparent !important;
}

.hero-proof-strip div {
  padding: 0 20px 0 0 !important;
  background: transparent !important;
}

.hero-proof-strip strong {
  color: #f3c96d !important;
  font-size: 1rem !important;
}

.hero-proof-strip span {
  color: #fffaf0 !important;
  font-size: .76rem !important;
}

.hero-media-stack {
  position: absolute !important;
  top: 42px !important;
  right: 34px !important;
  width: 220px !important;
  display: grid !important;
  gap: 12px !important;
}

.hero-media-stack figure {
  min-height: 86px !important;
}

.featured-menu,
.experience-grid {
  width: min(1500px, calc(100% - 44px)) !important;
  margin: 0 auto 20px !important;
  border: 1px solid rgba(214,170,85,.2) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(rgba(31,18,14,.9), rgba(31,18,14,.94)),
    url("assets/casa-langosta/casalangostanightvibes2.jpg") center/cover !important;
}

.featured-menu {
  padding: 22px !important;
}

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

.featured-dish {
  min-height: 316px !important;
  background: rgba(0,0,0,.38) !important;
}

.featured-dish img {
  height: 210px !important;
}

.featured-dish::after {
  content: "" !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  background: #e94d38 !important;
}

.featured-dish::before {
  content: "+" !important;
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 2 !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  font-size: 1.2rem !important;
  font-weight: 950 !important;
}

/* Order section polish */
#customer-view,
#staff-view,
#owner-view {
  width: min(1500px, calc(100% - 44px)) !important;
  margin: 0 auto !important;
  padding: 34px 0 !important;
  color: #fffaf0 !important;
}

#customer-view .topbar,
#staff-view .topbar,
#owner-view .topbar {
  align-items: center !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

#customer-view .topbar h1,
#staff-view .topbar h1,
#owner-view .topbar h1 {
  max-width: 980px !important;
  color: #fffaf0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.6rem, 5vw, 5.2rem) !important;
  line-height: .9 !important;
}

#customer-view .customer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px) !important;
  gap: 24px !important;
}

#customer-view .market-panel,
#customer-view .cart-panel,
#customer-view .tracker-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 rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(145deg, rgba(6,24,25,.96), rgba(17,30,28,.95)) !important;
  color: #fffaf0 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
}

#customer-view .market-panel {
  padding: 20px !important;
}

#customer-view .cart-panel {
  position: sticky !important;
  top: 112px !important;
  padding: 22px !important;
  max-height: calc(100svh - 132px) !important;
  overflow: auto !important;
}

#customer-view .customer-mode-switch {
  margin-bottom: 0 !important;
  border: 1px solid rgba(214,170,85,.24) !important;
  background: rgba(255,250,240,.08) !important;
  box-shadow: none !important;
}

#customer-view .mode-chip {
  min-height: 50px !important;
  padding: 0 20px !important;
  color: rgba(255,250,240,.72) !important;
  font-size: 1rem !important;
}

#customer-view .mode-chip.is-active {
  color: #fff !important;
  background: #006b72 !important;
}

#customer-view .search-control {
  min-height: 58px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: rgba(255,255,255,.08) !important;
}

#customer-view .search-control input {
  color: #fffaf0 !important;
  font-size: 1rem !important;
}

#customer-view .category-tabs {
  gap: 10px !important;
  padding-bottom: 8px !important;
}

#customer-view .category-tab {
  min-height: 46px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: rgba(255,250,240,.78) !important;
  background: rgba(255,255,255,.05) !important;
  white-space: nowrap !important;
}

#customer-view .category-tab.is-active {
  border-color: #e94d38 !important;
  color: #fff !important;
  background: #e94d38 !important;
}

#customer-view .catalog-list {
  gap: 14px !important;
}

#customer-view .catalog-item {
  grid-template-columns: 136px minmax(0, 1fr) auto !important;
  gap: 18px !important;
  min-height: 150px !important;
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  background: rgba(255,250,240,.055) !important;
  color: #fffaf0 !important;
}

#customer-view .product-swatch {
  width: 136px !important;
  height: 120px !important;
  border-radius: 8px !important;
  background: #2a1710 !important;
}

#customer-view .product-swatch img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#customer-view .product-main h3 {
  color: #fffaf0 !important;
  font-size: 1.22rem !important;
}

#customer-view .product-meta {
  color: rgba(255,250,240,.68) !important;
  gap: 9px !important;
}

#customer-view .tag {
  color: #6ff0c4 !important;
  background: rgba(111,240,196,.12) !important;
}

#customer-view .product-actions strong {
  color: #f3c96d !important;
  font-size: 1.12rem !important;
}

#customer-view .add-button,
#customer-view .quantity-button {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #e94d38 !important;
}

#customer-view .quantity-button {
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.08) !important;
}

#customer-view .cart-panel .panel-heading {
  align-items: flex-start !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

#customer-view .cart-panel h2 {
  color: #fffaf0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 2rem !important;
}

#customer-view .cart-empty {
  padding: 18px !important;
  border: 1px dashed rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  color: rgba(255,250,240,.68) !important;
  background: rgba(255,255,255,.04) !important;
}

#customer-view .cart-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-color: rgba(255,255,255,.12) !important;
}

#customer-view .totals {
  margin: 18px 0 !important;
  padding: 16px 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

#customer-view .totals div {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 5px 0 !important;
  color: rgba(255,250,240,.76) !important;
}

#customer-view .grand-total strong,
#customer-view #total {
  color: #41d0b0 !important;
  font-size: 1.45rem !important;
}

#customer-view .checkout-form {
  display: grid !important;
  gap: 14px !important;
}

#customer-view .checkout-form label,
#customer-view .payment-field,
#customer-view .location-card {
  color: rgba(255,250,240,.78) !important;
}

#customer-view .form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

#customer-view .checkout-form input,
#customer-view .checkout-form textarea,
#customer-view .checkout-form select {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: #fffaf0 !important;
  background: rgba(255,255,255,.08) !important;
}

#customer-view .checkout-form textarea {
  min-height: 92px !important;
}

#customer-view .payment-field {
  display: flex !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
}

#customer-view .payment-option {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#customer-view .location-card {
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.045) !important;
}

#customer-view .mini-map {
  min-height: 240px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
}

@media (max-width: 1080px) {
  .brand-rail {
    position: relative !important;
    grid-template-columns: 1fr auto !important;
    height: auto !important;
    padding: 12px 16px !important;
  }

  .role-switch--public,
  .admin-menu {
    grid-column: 1 / -1 !important;
    overflow-x: auto !important;
  }

  .hero-copy,
  .hero-proof-strip {
    width: 100% !important;
  }

  .hero-media-stack {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 24px !important;
  }

  #customer-view .customer-grid {
    grid-template-columns: 1fr !important;
  }

  #customer-view .cart-panel {
    position: static !important;
    max-height: none !important;
  }
}

@media (max-width: 680px) {
  .casa-hero {
    padding: 32px 18px 54px !important;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem) !important;
  }

  .hero-proof-strip,
  .featured-menu__rail,
  .experience-grid {
    grid-template-columns: 1fr !important;
  }

  #customer-view,
  #staff-view,
  #owner-view,
  .featured-menu,
  .experience-grid {
    width: calc(100% - 20px) !important;
  }

  #customer-view .catalog-item {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  #customer-view .product-swatch {
    width: 96px !important;
    height: 86px !important;
  }

  #customer-view .product-actions {
    grid-column: 1 / -1 !important;
    justify-items: stretch !important;
  }

  #customer-view .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* Visible AI concierge and language transition */
.ai-nav-button {
  border: 1px solid rgba(111,240,196,.28) !important;
  border-radius: 8px !important;
  color: #6ff0c4 !important;
  background: rgba(111,240,196,.08) !important;
}

.hero-ai-button {
  border-color: rgba(111,240,196,.42) !important;
  color: #6ff0c4 !important;
}

.assistant-fab {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 160 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(111,240,196,.34) !important;
  border-radius: 999px !important;
  color: #041f22 !important;
  background: linear-gradient(135deg, #6ff0c4, #f3c96d) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.36), 0 0 0 8px rgba(111,240,196,.08) !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

.assistant-fab::before {
  content: "Asistente Casa Langosta";
  font-size: .78rem;
}

.assistant-fab svg {
  color: #041f22 !important;
}

.assistant-fab.is-open {
  transform: translateY(-4px) !important;
}

.assistant-widget {
  position: fixed !important;
  right: 24px !important;
  bottom: 96px !important;
  z-index: 160 !important;
  width: min(460px, calc(100vw - 32px)) !important;
  max-height: min(720px, calc(100svh - 128px)) !important;
  display: grid !important;
  grid-template-rows: auto minmax(160px, 1fr) auto auto !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: linear-gradient(145deg, rgba(5,22,25,.98), rgba(20,32,30,.98)) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.42) !important;
}

.assistant-widget[hidden] {
  display: none !important;
}

.assistant-widget__header,
.assistant-widget__form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.assistant-widget__header strong {
  display: block !important;
  color: #fffaf0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.15rem !important;
}

.assistant-widget__header small {
  color: rgba(255,250,240,.64) !important;
}

.assistant-widget__messages {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
  overflow: auto !important;
  padding: 14px !important;
}

.assistant-message {
  max-width: 88% !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.08) !important;
}

.assistant-message--user {
  justify-self: end !important;
  color: #041f22 !important;
  background: #f3c96d !important;
}

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

.assistant-message small {
  display: block !important;
  margin-top: 5px !important;
  opacity: .62 !important;
}

.assistant-widget__quick {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 12px 14px !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
}

.assistant-widget__quick .ghost-button {
  flex: 0 0 auto !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #fffaf0 !important;
  background: rgba(255,255,255,.08) !important;
}

.assistant-widget__form {
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-bottom: 0 !important;
}

.assistant-widget__form input {
  flex: 1 !important;
  min-height: 44px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  color: #fffaf0 !important;
  background: rgba(255,255,255,.08) !important;
}

.language-wave {
  position: fixed !important;
  inset: 0 !important;
  z-index: 300 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

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

.language-wave__sheet {
  position: absolute !important;
  inset: -15% !important;
  transform: translateX(-110%) skewX(-10deg) !important;
  border-radius: 48% !important;
}

.language-wave__sheet--lagoon { background: #006b72 !important; }
.language-wave__sheet--reef { background: #e94d38 !important; opacity: .92 !important; animation-delay: 80ms !important; }
.language-wave__sheet--foam { background: #fffaf0 !important; opacity: .94 !important; animation-delay: 160ms !important; }

.language-wave.is-active .language-wave__sheet {
  animation: casaLanguageWash 1360ms cubic-bezier(.76, 0, .24, 1) both !important;
}

.language-wave__label {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 22px !important;
  border-radius: 8px !important;
  color: #041f22 !important;
  background: rgba(255,250,240,.96) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
  transform: translateY(18px) scale(.96) !important;
  opacity: 0 !important;
}

.language-wave.is-active .language-wave__label {
  animation: casaLanguageLabel 980ms ease 150ms both !important;
}

.language-wave__label strong {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.2rem, 4vw, 2rem) !important;
}

@keyframes casaLanguageWash {
  0% { transform: translateX(-110%) skewX(-10deg); }
  45% { transform: translateX(0) skewX(-4deg); }
  100% { transform: translateX(110%) skewX(-10deg); }
}

@keyframes casaLanguageLabel {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  30%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(.98); }
}

@media (max-width: 700px) {
  .assistant-fab {
    right: 14px !important;
    bottom: 14px !important;
    min-height: 52px !important;
  }

  .assistant-fab::before {
    content: "IA Casa";
  }

  .assistant-widget {
    right: 10px !important;
    bottom: 78px !important;
    width: calc(100vw - 20px) !important;
  }
}

/* Casa v6 operations polish: proven delivery/admin layout in Casa colors */
.private-access-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) !important;
  gap: 18px !important;
  align-items: start !important;
  width: min(1440px, calc(100% - 36px)) !important;
  margin: 18px auto 36px !important;
  padding: 22px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: linear-gradient(135deg, rgba(4,31,34,.96), rgba(31,17,11,.96)) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
}

.private-access-panel h2 {
  margin: 4px 0 8px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
}

.private-access-panel p:not(.eyebrow) {
  margin: 0 !important;
  color: rgba(255,250,240,.72) !important;
  line-height: 1.55 !important;
}

.private-access-menu {
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.06) !important;
  overflow: hidden !important;
}

.private-access-menu summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  color: #f3c96d !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  list-style: none !important;
}

.private-access-menu summary::-webkit-details-marker { display: none !important; }
.private-access-menu svg { width: 20px !important; height: 20px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2.4 !important; }
.private-access-menu[open] summary svg { transform: rotate(180deg) !important; }

.private-access-menu nav {
  display: grid !important;
  gap: 10px !important;
  padding: 0 14px 14px !important;
}

.private-access-menu a {
  display: grid !important;
  gap: 4px !important;
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: rgba(0,107,114,.22) !important;
  text-decoration: none !important;
}

.private-access-menu a span { color: #fffaf0 !important; font-weight: 950 !important; }
.private-access-menu a small { color: rgba(255,250,240,.66) !important; line-height: 1.35 !important; }
.private-access-menu a:hover { border-color: rgba(243,201,109,.48) !important; background: rgba(233,77,56,.16) !important; }

#staff-view,
#owner-view {
  color: #fffaf0 !important;
}

#staff-view .topbar,
#owner-view .topbar {
  margin: 0 0 16px !important;
  padding: 18px 24px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, rgba(4,31,34,.94), rgba(12,42,43,.88)) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.25) !important;
}

#staff-view .topbar h1,
#owner-view .topbar h1 {
  max-width: 900px !important;
  color: #fffaf0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.1rem, 5vw, 4.9rem) !important;
}

#staff-view .delivery-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

#staff-view .queue-panel,
#staff-view .delivery-detail,
#owner-view .owner-report,
#owner-view .owner-inventory-panel,
.login-panel {
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: linear-gradient(145deg, rgba(5,22,25,.96), rgba(9,38,38,.92)) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.32) !important;
}

#staff-view .queue-panel,
#staff-view .delivery-detail {
  min-height: 680px !important;
}

#staff-view .queue-panel {
  position: sticky !important;
  top: 18px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  max-height: calc(100svh - 36px) !important;
  overflow: hidden !important;
}

.queue-summary,
.panel-heading,
.detail-header,
.detail-actions,
.route-stage-header,
.owner-table-title,
.owner-period-history__header,
.owner-study__header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.queue-summary select,
.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.owner-inventory-item input,
.owner-inventory-item select,
.owner-inventory-add input,
.owner-inventory-add select {
  min-height: 42px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: rgba(255,255,255,.08) !important;
}

.order-list,
.customer-orders-list,
.owner-product-list,
.delivery-states,
.item-list,
.route-steps-list,
.owner-period-list,
.owner-period-orders {
  display: grid !important;
  gap: 10px !important;
}

.order-card,
.customer-order-card,
.detail-card,
.owner-period-row,
.owner-period-order,
.owner-inventory-item,
.owner-inventory-add,
.owner-study,
.owner-order-detail {
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: rgba(255,250,240,.06) !important;
}

.order-card,
.customer-order-card,
.owner-period-row {
  width: 100% !important;
  padding: 14px !important;
  text-align: left !important;
}

.order-card.is-selected,
.owner-period-row.is-selected,
.customer-order-card.is-selected {
  border-color: rgba(243,201,109,.64) !important;
  background: rgba(243,201,109,.12) !important;
  box-shadow: inset 4px 0 0 #f3c96d !important;
}

.order-card-meta,
.detail-meta,
.route-step__copy small,
.route-loading-copy,
.owner-insight-card__header p,
.owner-table-title span,
.owner-period-card__copy p,
.owner-period-order small,
.owner-study__header p,
.owner-empty,
.detail-section p {
  color: rgba(255,250,240,.66) !important;
}

.status-pill,
.live-pill,
.route-distance-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #6ff0c4 !important;
  background: rgba(111,240,196,.12) !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.status-pill.delivered,
.status-pill.is-live,
.live-pill.is-live {
  color: #041f22 !important;
  background: #6ff0c4 !important;
}

.delivery-detail {
  overflow: hidden !important;
}

.delivery-detail.is-route-focus {
  transform: translateY(-2px) !important;
  box-shadow: 0 30px 82px rgba(0,0,0,.42) !important;
}

.detail-empty {
  display: grid !important;
  min-height: 620px !important;
  place-items: center !important;
  padding: 30px !important;
  color: rgba(255,250,240,.66) !important;
  text-align: center !important;
}

.detail-header,
.detail-section,
.detail-actions {
  padding: 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
}

.detail-title h2,
.owner-insight-card h3,
.owner-period-card h3,
.owner-period-history h3,
.detail-section h3 {
  margin: 0 !important;
  color: #fffaf0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

.route-focus-callout {
  display: none !important;
  max-width: 330px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(111,240,196,.22) !important;
  border-radius: 8px !important;
  background: rgba(111,240,196,.08) !important;
}

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

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

.route-focus-shell.is-active {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .78fr) !important;
  background: rgba(255,255,255,.1) !important;
}

.route-focus-sidebar {
  display: grid !important;
  gap: 1px !important;
  background: rgba(255,255,255,.1) !important;
}

.route-stage,
.detail-card {
  background: rgba(255,250,240,.045) !important;
}

.route-map-shell {
  position: relative !important;
  overflow: hidden !important;
  margin-top: 14px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  background: #dbe8df !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.3) !important;
}

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

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

.map-float-button,
.map-float-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 999px !important;
  color: #fffaf0 !important;
  background: rgba(4,31,34,.82) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

.map-float-button--primary {
  border-color: transparent !important;
  color: #041f22 !important;
  background: #6ff0c4 !important;
}

.route-nav-banner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  margin: 16px 0 !important;
  padding: 15px 16px !important;
  border: 1px solid rgba(111,240,196,.22) !important;
  border-radius: 8px !important;
  color: #041f22 !important;
  background: linear-gradient(135deg, #6ff0c4, #f3c96d) !important;
  box-shadow: 0 18px 38px rgba(111,240,196,.18) !important;
}

.route-nav-banner.is-muted {
  color: #fffaf0 !important;
  background: rgba(255,250,240,.06) !important;
  box-shadow: none !important;
}

.route-nav-banner__copy,
.route-nav-banner__eta,
.route-summary-card,
.route-steps-panel,
.customer-focus,
.route-guidance-panel {
  display: grid !important;
  gap: 8px !important;
}

.route-nav-banner__eta {
  justify-items: end !important;
  min-width: 96px !important;
}

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

.route-summary-card,
.route-steps-panel {
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  background: rgba(255,250,240,.06) !important;
}

.route-summary-card span,
.route-steps-head span,
.owner-metric span,
.owner-table th,
.owner-study__table th,
.owner-period-summary span,
.owner-period-detail__metrics span {
  color: rgba(255,250,240,.58) !important;
  font-size: .74rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

.route-summary-card strong {
  color: #f3c96d !important;
  font-size: 1.35rem !important;
}

.route-step {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.route-step__number,
.delivery-state-marker {
  display: grid !important;
  width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #041f22 !important;
  background: #f3c96d !important;
  font-weight: 950 !important;
}

.delivery-state {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 8px !important;
  background: rgba(255,250,240,.06) !important;
}

.delivery-state.is-current {
  background: rgba(111,240,196,.12) !important;
  box-shadow: inset 3px 0 0 #6ff0c4 !important;
}

.delivery-state.is-done .delivery-state-marker,
.delivery-state.is-current .delivery-state-marker {
  background: #6ff0c4 !important;
}

.item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: rgba(255,250,240,.06) !important;
}

#owner-view .owner-report {
  overflow: hidden !important;
  padding: 0 !important;
}

.owner-mode-switch {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 18px !important;
  padding: 6px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  background: rgba(255,250,240,.06) !important;
}

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

.owner-period-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  margin: 0 18px 18px !important;
  padding: 18px !important;
  border: 1px solid rgba(243,201,109,.2) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, rgba(243,201,109,.12), rgba(111,240,196,.06)) !important;
}

.owner-period-summary,
.owner-period-detail__metrics,
.owner-metrics,
.owner-study__stats,
.owner-study__totals {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 1px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.1) !important;
}

.owner-metrics {
  margin: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
}

.owner-metric,
.owner-period-summary div,
.owner-period-detail__metrics .owner-metric,
.owner-study__stats div,
.owner-study__totals div {
  min-height: 100px !important;
  padding: 16px !important;
  background: rgba(255,250,240,.06) !important;
}

.owner-metric strong,
.owner-period-summary strong,
.owner-period-detail__metrics strong {
  display: block !important;
  margin-top: 9px !important;
  color: #f3c96d !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.25rem, 2.4vw, 2.05rem) !important;
  line-height: 1 !important;
}

.owner-analytics-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1px !important;
  background: rgba(255,255,255,.1) !important;
}

.owner-insight-card,
.owner-table-wrap,
.owner-period-history,
.owner-period-detail,
.owner-inventory-card,
.owner-study {
  padding: 18px !important;
  background: rgba(255,250,240,.045) !important;
}

.owner-product-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 9px 12px !important;
  width: 100% !important;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  text-align: left !important;
  background: rgba(255,250,240,.06) !important;
}

.owner-product-row__bar {
  grid-column: 1 / -1 !important;
  height: 9px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.1) !important;
}

.owner-product-row__bar span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #e94d38, #f3c96d, #6ff0c4) !important;
}

.owner-table,
.owner-study__table {
  width: 100% !important;
  border-collapse: collapse !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

.owner-table-wrap,
.owner-study__table-wrap {
  overflow-x: auto !important;
}

.owner-table th,
.owner-table td,
.owner-study__table th,
.owner-study__table td {
  padding: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.owner-table tbody tr,
.owner-study__table tbody tr {
  background: rgba(255,250,240,.035) !important;
}

.owner-table tbody tr:hover,
.owner-study__table tbody tr:hover {
  background: rgba(111,240,196,.08) !important;
}

.owner-period-detail__grid {
  display: grid !important;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

.owner-period-order summary {
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, .8fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  cursor: pointer !important;
}

.owner-period-order__body,
.owner-period-order__meta,
.owner-period-order__delivery,
.owner-period-order__items {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
}

.owner-period-order__meta {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
}

.owner-inventory-card,
.owner-inventory-list,
.owner-inventory-add,
.owner-inventory-item {
  display: grid !important;
  gap: 12px !important;
}

.owner-inventory-add,
.owner-inventory-item {
  grid-template-columns: minmax(170px, 1fr) minmax(120px, .55fr) minmax(120px, .55fr) auto !important;
  align-items: end !important;
  padding: 14px !important;
}

.location-indicator {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  color: rgba(255,250,240,.7) !important;
  background: rgba(255,250,240,.06) !important;
  font-weight: 850 !important;
}

.status-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: rgba(255,250,240,.42) !important;
}

.location-indicator.is-live {
  color: #6ff0c4 !important;
  border-color: rgba(111,240,196,.24) !important;
  background: rgba(111,240,196,.1) !important;
}

.location-indicator.is-error {
  color: #ff8a72 !important;
  border-color: rgba(233,77,56,.32) !important;
  background: rgba(233,77,56,.1) !important;
}

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

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

.mobile-nav-sheet {
  position: absolute !important;
  right: 12px !important;
  bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  left: 12px !important;
  z-index: 680 !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px !important;
  color: #fffaf0 !important;
  background: rgba(4,31,34,.9) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
}

.mobile-nav-sheet__grab {
  justify-self: center !important;
  width: 42px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: rgba(255,250,240,.36) !important;
}

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

.mobile-nav-sheet__sub {
  margin: 0 !important;
  color: rgba(255,250,240,.72) !important;
  line-height: 1.35 !important;
}

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

.mobile-nav-metrics div {
  display: grid !important;
  gap: 4px !important;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  background: rgba(255,250,240,.08) !important;
}

.mobile-nav-metrics span {
  color: rgba(255,250,240,.58) !important;
  font-size: .68rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

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

@media (max-width: 1000px) {
  #staff-view .delivery-grid,
  #staff-view .delivery-grid.is-route-focus,
  .route-focus-shell.is-active,
  .owner-period-card,
  .owner-period-detail__grid {
    grid-template-columns: 1fr !important;
  }

  #staff-view .queue-panel {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  .private-access-panel {
    grid-template-columns: 1fr !important;
    width: calc(100% - 20px) !important;
    padding: 16px !important;
  }

  #staff-view .topbar,
  #owner-view .topbar {
    padding: 16px !important;
  }

  .route-map-shell .route-map,
  .route-map-shell .route-map.leaflet-container,
  .route-map--expanded,
  .route-map--expanded.leaflet-container {
    min-height: 320px !important;
  }

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

  .map-float-button,
  .map-float-pill {
    width: 100% !important;
  }

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

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

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

  .delivery-detail.is-mobile-navigator .route-map-shell--mobile-nav,
  .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) !important;
  }

  .mobile-nav-sheet {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    padding: 10px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 8px !important;
    color: #fffaf0 !important;
    background: rgba(4,31,34,.9) !important;
    backdrop-filter: blur(12px) !important;
  }

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

  .owner-inventory-add,
  .owner-inventory-item,
  .owner-period-order summary {
    grid-template-columns: 1fr !important;
  }
}


