@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-Variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0B1F33; --ink-soft: #4D6072; --pine: #0B1F33; --pine-2: #123A57;
  --mint: #DDF7FA; --mint-2: #A8EAF0; --cream: #F7F5EF; --paper: #FFFEFB;
  --coral: #FF6B5E; --cyan: #22C7D9; --gold: #F4B942; --line: #D8E2E8; --danger: #B93F3F;
  --shadow: 0 18px 50px rgba(11,31,51,.10); --radius: 20px; --radius-sm: 12px;
  --topbar: 76px; --mobile-nav: 68px; --chat-pane-width: 38%;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; }
h1,h2,h3,h4,h5,h6 { font-family: "Sora",system-ui,sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(34,199,217,.42); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 100; background: white; color: var(--pine); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.app-shell.booting .workspace { grid-template-columns: 1fr; grid-template-areas: "assistant"; background: var(--paper); }
.app-shell.booting .role-navigation,.app-shell.booting .main-content,.app-shell.booting .workspace-divider,.app-shell.booting .mobile-navigation,.app-shell.booting .mobile-ai-bar,.app-shell.booting .cart-dock { display: none!important; }
.app-shell.booting .assistant-panel { grid-area: assistant; position: sticky; inset: auto; top: var(--topbar); width: min(900px,100%); height: calc(100vh - var(--topbar)); justify-self: center; visibility: visible; opacity: 1; pointer-events: auto; transform: none; border: 0; border-radius: 0; box-shadow: none; }
.app-shell.booting .conversation { padding-top: clamp(38px,8vh,90px); }
.app-shell.booting .message { max-width: min(78%,680px); }
.app-shell.booting .desktop-collapse,.app-shell.booting .chat-market-switcher { display: none; }

.topbar { height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,254,251,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; border: 0; background: transparent; padding: 0; cursor: pointer; }
.brand-logo { display: block; width: 142px; height: 53px; object-fit: contain; object-position: left center; }
.demo-badge { display: inline-block; align-self: flex-end; margin: 0 0 8px -4px; padding: 2px 5px; border: 1px solid rgba(255,104,91,.55); border-radius: 4px; color: var(--coral, #ff685b); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1; }
#app[data-role="business"] .demo-badge, #app[data-role="admin"] .demo-badge { display: none; }
.brand small { display: block; max-width: 150px; padding-left: 13px; border-left: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; line-height: 1.3; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.location-pill, .icon-button, .avatar-button, .cart-button { border: 0; cursor: pointer; }
.location-pill { background: var(--mint); color: var(--pine); border-radius: 999px; padding: 10px 14px; display: flex; gap: 7px; align-items: center; font-weight: 600; }
.language-picker select { appearance: none; border: 1px solid var(--line); background: white; padding: 9px 25px 9px 10px; border-radius: 10px; color: var(--ink); background-image: linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%); background-position: calc(100% - 12px) 14px,calc(100% - 8px) 14px; background-size: 4px 4px; background-repeat: no-repeat; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; background: transparent; display: grid; place-items: center; }
.icon-button:hover { background: var(--mint); }
.cart-button { position: relative; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--pine); color: white; font-weight: 750; }
.cart-button-icon { font-size: 18px; }
.cart-header-summary { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.staff-kitchen .location-pill,.staff-kitchen .orders-button,.staff-kitchen .cart-button,.staff-kitchen #cart-dock,.staff-kitchen #chat-market-switcher { display:none !important; }
.count { position: absolute; right: -3px; top: -3px; background: var(--coral); color: white; min-width: 18px; height: 18px; border-radius: 9px; font-size: 11px; display: grid; place-items: center; border: 2px solid white; }
.avatar-button { position: relative; min-width: 40px; height: 42px; border-radius: 999px; padding: 0 12px 0 7px; background: #f4ead2; display: inline-flex; align-items: center; gap: 8px; font-weight: 750; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--pine); font-size: 12px; font-weight: 850; }
.user-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-online { display: none; position: absolute; width: 10px; height: 10px; left: 29px; bottom: 4px; border: 2px solid var(--paper); border-radius: 50%; background: #2fac7f; }
.avatar-button.authenticated { background: var(--mint); }
.avatar-button.authenticated .user-online { display: block; }

.workspace { min-height: calc(100vh - var(--topbar)); display: grid; grid-template-columns: minmax(320px,var(--chat-pane-width)) 11px minmax(480px,1fr); grid-template-areas: "assistant divider canvas"; transition: none; }
.workspace.assistant-visible { grid-template-columns: 210px minmax(0,1fr) 360px; }
.role-navigation { grid-area: nav; background: var(--pine); color: white; padding: 25px 16px; }
.role-switcher { margin-bottom: 28px; }
.role-switcher label { display: block; color: #B9D9E2; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin: 0 8px 8px; }
.role-switcher select { width: 100%; background: #123A57; color: white; border: 1px solid #2B5C78; border-radius: 10px; padding: 10px; }
.nav-list { display: grid; gap: 5px; }
.nav-link { color: #D7EBF0; text-decoration: none; padding: 11px 12px; border-radius: 10px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.12); }
.nav-link.active { box-shadow: inset 3px 0 var(--coral); }
.nav-footer { color: #A9CAD5; font-size: 12px; margin: 35px 10px 0; line-height: 1.5; }

.main-content { grid-area: canvas; min-width: 0; padding: 34px; overflow: hidden; }
.assistant-panel { grid-area: assistant; min-width: 0; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; border-left: 0; background: var(--paper); display: flex; flex-direction: column; height: calc(100vh - var(--topbar)); position: sticky; top: var(--topbar); transition: opacity .2s ease; }
.workspace.assistant-visible .assistant-panel { visibility: visible; opacity: 1; pointer-events: auto; border-left: 1px solid var(--line); }
.app-shell[data-role="customer"] .workspace { grid-template-columns: minmax(320px,var(--chat-pane-width)) 11px minmax(480px,1fr); grid-template-areas: "assistant divider canvas"; transition: none; }
.app-shell[data-role="customer"] .role-navigation { display: none; }
.app-shell[data-role="customer"] .assistant-panel { visibility: visible; opacity: 1; pointer-events: auto; border-right: 1px solid var(--line); }
.app-shell[data-role="customer"] .workspace:not(.canvas-active) { grid-template-columns: 1fr; grid-template-areas: "assistant"; background: var(--paper); }
.app-shell[data-role="customer"] .workspace:not(.canvas-active) .assistant-panel { width: min(900px,100%); justify-self: center; border-right: 0; }
.app-shell[data-role="customer"] .workspace:not(.canvas-active) .main-content, .app-shell[data-role="customer"] .workspace:not(.canvas-active) .workspace-divider { display: none; }
.app-shell[data-role="customer"] .desktop-collapse { display: none; }
.workspace-divider { display: none; }
.app-shell[data-role="customer"] .workspace.canvas-active .workspace-divider { grid-area: divider; position: relative; display: grid; place-items: center; cursor: col-resize; touch-action: none; background: var(--cream); border-inline: 1px solid transparent; z-index: 4; }
.app-shell[data-role="customer"] .workspace.canvas-active .workspace-divider::before { content: ""; position: absolute; inset: 0 -5px; }
.app-shell[data-role="customer"] .workspace.canvas-active .workspace-divider span { width: 3px; height: 48px; border-radius: 999px; background: #9BCDD5; transition: height .15s ease,background .15s ease; }
.app-shell[data-role="customer"] .workspace.canvas-active .workspace-divider:hover span,
.app-shell[data-role="customer"] .workspace.canvas-active .workspace-divider:focus-visible span,
.app-shell[data-role="customer"] .workspace.canvas-active.resizing .workspace-divider span { height: 76px; background: var(--coral); }
.app-shell[data-role="customer"] .workspace.canvas-active.resizing { cursor: col-resize; user-select: none; }
.app-shell[data-role="admin"] .workspace { grid-template-columns: minmax(320px,var(--chat-pane-width)) 11px minmax(480px,1fr); grid-template-areas: "assistant divider canvas"; transition: none; }
.app-shell[data-role="admin"] .role-navigation { display: none; }
.app-shell[data-role="admin"] .assistant-panel { visibility: visible; opacity: 1; pointer-events: auto; border-right: 1px solid var(--line); }
.app-shell[data-role="admin"] .workspace:not(.canvas-active) { grid-template-columns: 1fr; grid-template-areas: "assistant"; background: var(--paper); }
.app-shell[data-role="admin"] .workspace:not(.canvas-active) .assistant-panel { width: min(900px,100%); justify-self: center; border-right: 0; }
.app-shell[data-role="admin"] .workspace:not(.canvas-active) .main-content,
.app-shell[data-role="admin"] .workspace:not(.canvas-active) .workspace-divider { display: none; }
.app-shell[data-role="admin"] .desktop-collapse { display: none; }
.app-shell[data-role="admin"] .workspace.canvas-active .workspace-divider { grid-area: divider; position: relative; display: grid; place-items: center; cursor: col-resize; touch-action: none; background: var(--cream); border-inline: 1px solid transparent; z-index: 4; }
.app-shell[data-role="admin"] .workspace.canvas-active .workspace-divider::before { content: ""; position: absolute; inset: 0 -5px; }
.app-shell[data-role="admin"] .workspace.canvas-active .workspace-divider span { width: 3px; height: 48px; border-radius: 999px; background: #9BCDD5; transition: height .15s ease,background .15s ease; }
.app-shell[data-role="admin"] .workspace.canvas-active .workspace-divider:hover span,
.app-shell[data-role="admin"] .workspace.canvas-active .workspace-divider:focus-visible span,
.app-shell[data-role="admin"] .workspace.canvas-active.resizing .workspace-divider span { height: 76px; background: var(--coral); }
.app-shell[data-role="admin"] .workspace.canvas-active.resizing { cursor: col-resize; user-select: none; }
.app-shell[data-role="business"] .workspace { grid-template-columns: minmax(320px,var(--chat-pane-width)) 11px minmax(480px,1fr); grid-template-areas: "assistant divider canvas"; transition: none; }
.app-shell[data-role="business"] .role-navigation { display: none; }
.app-shell[data-role="business"] .assistant-panel { visibility: visible; opacity: 1; pointer-events: auto; border-right: 1px solid var(--line); }
.app-shell[data-role="business"] .workspace:not(.canvas-active) { grid-template-columns: 1fr; grid-template-areas: "assistant"; background: var(--paper); }
.app-shell[data-role="business"] .workspace:not(.canvas-active) .assistant-panel { width: min(900px,100%); justify-self: center; border-right: 0; }
.app-shell[data-role="business"] .workspace:not(.canvas-active) .main-content,.app-shell[data-role="business"] .workspace:not(.canvas-active) .workspace-divider { display: none; }
.app-shell[data-role="business"] .desktop-collapse { display: none; }
.app-shell[data-role="business"] .workspace.canvas-active .workspace-divider { grid-area: divider; position: relative; display: grid; place-items: center; cursor: col-resize; touch-action: none; background: var(--cream); border-inline: 1px solid var(--line); }
.workspace:not(.canvas-active) { grid-template-columns: 1fr; grid-template-areas: "assistant"; background: var(--paper); }
.workspace:not(.canvas-active) .assistant-panel { width: min(900px,100%); justify-self: center; border-right: 0; }
.workspace:not(.canvas-active) .main-content,
.workspace:not(.canvas-active) .workspace-divider { display: none; }
.role-navigation,
.mobile-navigation { display: none!important; }
.workspace .assistant-panel { visibility: visible; opacity: 1; pointer-events: auto; border-right: 1px solid var(--line); }
.workspace.canvas-active .workspace-divider { grid-area: divider; position: relative; display: grid; place-items: center; cursor: col-resize; touch-action: none; background: var(--cream); border-inline: 1px solid transparent; z-index: 4; }
.workspace.canvas-active .workspace-divider::before { content: ""; position: absolute; inset: 0 -5px; }
.workspace.canvas-active .workspace-divider span { width: 3px; height: 48px; border-radius: 999px; background: #9BCDD5; }
.workspace:not(.canvas-active) .conversation { padding-top: clamp(38px,8vh,90px); }
.workspace:not(.canvas-active) .message { max-width: min(78%,680px); }
.desktop-collapse { display: none; }
.assistant-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.assistant-heading > div { display: flex; gap: 9px; align-items: center; }
.assistant-brand-indicator { width: 31px; height: 31px; object-fit: contain; }
.assistant-panel:has(.chat-composer textarea:focus) .assistant-brand-indicator { content: url("/assets/brand/cityia-ai-listening.webp"); }
.assistant-panel:has(.message.thinking) .assistant-brand-indicator { content: url("/assets/brand/cityia-ai-responding.webp"); }
.assistant-heading strong { font-family: "Sora",sans-serif; font-weight: 700; }
.ai-spark { color: var(--coral); font-size: 20px; }
.chat-market-switcher { display: none; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.app-shell[data-role="customer"] .chat-market-switcher.visible { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chat-market-switcher > strong { flex: 0 0 auto; font-size: 12px; color: var(--ink-soft); }
.chat-market-buttons { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.chat-market-button { min-height: 34px; border: 1px solid transparent; border-radius: 999px; padding: 7px 12px; background: var(--mint); color: var(--pine); cursor: pointer; font-size: 12px; font-weight: 750; }
.chat-market-button:hover { border-color: var(--mint-2); }
.chat-market-button.active { background: var(--coral); color: white; box-shadow: 0 4px 12px rgba(255,107,94,.22); }
.conversation { flex: 1 1 auto; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.message { flex: 0 0 auto; width: fit-content; height: auto; max-width: min(90%,680px); min-width: 0; max-height: none; overflow: visible; overflow-wrap: anywhere; word-break: break-word; padding: 12px 14px; border-radius: 16px; line-height: 1.55; font-size: 14px; animation: rise .25s ease; white-space: pre-wrap; }
.message.ai { position: relative; min-height: 45px; padding-left: 51px; background: var(--mint); border-bottom-left-radius: 4px; align-self: flex-start; }
.message.ai::before { content: ""; position: absolute; left: 11px; top: 9px; width: 30px; height: 30px; background: url("/assets/brand/cityia-ai-idle.webp") center/contain no-repeat; }
.message.ai.thinking::before { background-image: url("/assets/brand/cityia-ai-responding.webp"); }
.message.user { background: var(--pine); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.message.thinking { color: var(--ink-soft); font-style: italic; }
.app-shell[data-role="customer"] .workspace:not(.canvas-active) .conversation { padding-top: clamp(38px,8vh,90px); }
.app-shell[data-role="customer"] .workspace:not(.canvas-active) .message { max-width: min(78%,680px); }
.app-shell[data-role="admin"] .workspace:not(.canvas-active) .conversation { padding-top: clamp(38px,8vh,90px); }
.app-shell[data-role="admin"] .workspace:not(.canvas-active) .message { max-width: min(78%,680px); }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 100%; min-width: 0; }
.suggestion { max-width: 100%; border: 1px solid var(--mint-2); color: var(--pine); background: white; border-radius: 999px; padding: 8px 11px; cursor: pointer; font-size: 12px; overflow-wrap: anywhere; }
.chat-composer { display: flex; gap: 8px; margin: 12px 16px 5px; padding: 7px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 22px rgba(11,31,51,.07); }
.chat-composer textarea { resize: none; min-height: 40px; max-height: 120px; flex: 1; border: 0; outline: 0; padding: 9px; color: var(--ink); background: transparent; }
.send-button { flex: 0 0 40px; height: 40px; align-self: flex-end; border: 0; border-radius: 12px; color: white; background: var(--coral); font-weight: 800; cursor: pointer; }
.ai-disclaimer { font-size: 10px; color: var(--ink-soft); text-align: center; margin: 4px 18px 12px; }
.canvas-idle { min-height: calc(100vh - var(--topbar) - 68px); display: grid; place-content: center; justify-items: center; text-align: center; color: var(--ink-soft); padding: 40px; }
.canvas-idle-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 20px; background: var(--mint); color: var(--coral); font-size: 30px; }
.canvas-idle h1 { margin: 10px 0 8px; color: var(--ink); font: 800 clamp(28px,4vw,44px) "Sora",sans-serif; letter-spacing: -.04em; }
.canvas-idle p { max-width: 480px; margin: 0; line-height: 1.6; }

.page-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; justify-content: space-between; margin-bottom: 24px; gap: 16px 22px; }
.page-header > div:first-child { min-width: 0; }
.page-header h1 { font: 800 clamp(25px,2.65vw,35px) "Sora", sans-serif; line-height: 1.08; letter-spacing: -.045em; margin: 0; }
.page-header p { color: var(--ink-soft); margin: 6px 0 0; max-width: 680px; line-height: 1.5; }
.page-header > .button-row { align-items: end; justify-content: flex-end; flex-wrap: wrap; }
.kitchen-welcome,.kitchen-clear { min-height:360px; display:grid; place-content:center; justify-items:center; text-align:center; gap:10px; padding:36px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.kitchen-welcome > span,.kitchen-clear > span { display:grid; place-items:center; width:64px; height:64px; border-radius:22px; background:var(--mint); color:var(--teal); font-size:30px; font-weight:900; }
.kitchen-welcome h1,.kitchen-clear h2 { margin:0; font:800 clamp(25px,3vw,38px) "Sora",sans-serif; }
.kitchen-welcome p,.kitchen-clear p { max-width:560px; margin:0 0 10px; color:var(--ink-soft); line-height:1.55; }
.kitchen-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.kitchen-metrics article { display:grid; gap:8px; padding:20px; border-radius:18px; background:var(--mint); }
.kitchen-metrics small { color:var(--ink-soft); }
.kitchen-metrics strong { font:800 30px "Sora",sans-serif; }
.kitchen-queue { display:grid; gap:16px; }
.kitchen-queue-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.kitchen-queue-heading h2 { margin:0; font:800 25px "Sora",sans-serif; }
.kitchen-order-card { display:grid; gap:18px; padding:22px; border:2px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:0 10px 26px rgba(11,31,51,.06); }
.kitchen-order-card.status-preparing { border-color:var(--coral); }
.kitchen-order-card > header,.kitchen-order-card > footer { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.kitchen-order-card h2 { margin:3px 0 0; font:800 27px "Sora",sans-serif; }
.kitchen-items { display:grid; gap:10px; }
.kitchen-item { display:grid; gap:5px; padding:14px 16px; border-radius:14px; background:var(--cream); }
.kitchen-item strong { font-size:18px; }
.kitchen-item span { color:var(--ink-soft); }
.kitchen-item em { color:var(--coral); font-style:normal; font-weight:750; }
.kitchen-permission-note { padding:14px; border-radius:12px; background:var(--cream); }
@media (max-width:760px){.kitchen-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.kitchen-order-card>header,.kitchen-order-card>footer{align-items:stretch;flex-direction:column}.kitchen-order-card>footer .primary-button{width:100%}}
.eyebrow { color: var(--coral); font: 700 11px "Sora", sans-serif; letter-spacing: .17em; }
.hero { background: var(--pine); color: white; min-height: 330px; border-radius: 28px; padding: clamp(28px,5vw,60px); position: relative; overflow: hidden; display: grid; align-content: center; }
.hero:before, .hero:after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.hero:before { width: 360px; height: 360px; right: -90px; top: -160px; }
.hero:after { width: 220px; height: 220px; right: 80px; bottom: -150px; }
.hero-content { position: relative; z-index: 1; max-width: 670px; }
.hero h1 { font: 800 clamp(36px,5vw,62px) "Sora", sans-serif; line-height: 1.03; letter-spacing: -.05em; margin: 12px 0 16px; }
.hero p { max-width: 570px; color: #C9E9EF; font-size: 17px; line-height: 1.6; }
.market-card { margin-top: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(11,31,51,.06); }
.market-card > .eyebrow { display: block; margin-bottom: 9px; }
.market-choice { display: grid; gap: 11px; color: var(--pine); }
.market-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.market-listbox { width: min(100%,420px); border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: white; color: var(--ink); }
.market-listbox option { padding: 9px 10px; border-radius: 7px; }
.market-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 650; }
.market-change { margin-left: auto; border: 0; background: transparent; color: var(--coral); cursor: pointer; font-weight: 750; }
.assistant-market-choice { align-self: stretch; padding: 12px; border: 1px solid var(--mint-2); border-radius: 14px; background: white; }
.prompt-card { margin-top: 25px; background: white; color: var(--ink); padding: 7px 7px 7px 17px; max-width: 590px; border-radius: 16px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); }
.prompt-card input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 10px 0; }
.prompt-card button { background: var(--coral); color: white; border: 0; border-radius: 11px; height: 44px; padding: 0 20px; cursor: pointer; font-weight: 700; }
.section { margin-top: 32px; }
.section-title { font: 800 20px "Sora", sans-serif; margin: 0 0 15px; }
.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.category-card { border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 18px 10px; text-align: center; cursor: pointer; transition: .2s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--mint); border-radius: 14px; font-size: 22px; }
.category-card strong { font-size: 13px; }

.results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.business-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.admin-surface-selector,.tourism-filters label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:var(--ink-soft)}
.admin-surface-selector select,.tourism-filters input,.tourism-filters select{border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:var(--paper);color:var(--ink)}
.admin-surface-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-surface-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);text-align:left;cursor:pointer}.admin-surface-card strong{font-size:1.25rem;color:var(--ink)}.admin-surface-card span{color:var(--ink-soft)}.admin-surface-card b{color:var(--accent)}
.tourism-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:end;gap:12px;margin:18px 0}.tourism-filters label{min-width:0}.tourism-filters input,.tourism-filters select{width:100%;min-width:0;box-sizing:border-box}.tourism-filters .primary-button{width:100%;min-width:0}.tourism-map-section{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:18px}.tourism-map-canvas{height:430px;margin-top:12px}.tourism-record-list{display:grid;gap:12px}.tourism-record-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:16px 18px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.tourism-record-card h2{margin:3px 0;font-size:1.05rem}.tourism-record-card p{margin:0;color:var(--ink-soft)}.tourism-record-card small{display:block;margin-top:6px;color:var(--ink-soft)}.tourism-certified{display:inline-block;border-radius:999px;padding:5px 9px;background:#e7f7ef;color:#18794e;font-size:.8rem;font-weight:800}.tourism-pending{display:inline-block;border-radius:999px;padding:5px 9px;background:#fff4d8;color:#966c00;font-size:.8rem;font-weight:800}
.tourism-tabs{display:flex;gap:8px;padding:0 24px 12px;border-bottom:1px solid var(--line)}.tourism-tab{border:1px solid var(--line);border-radius:999px;padding:9px 13px;background:var(--paper);color:var(--ink-soft);font-weight:800;cursor:pointer}.tourism-tab.is-active{background:var(--ink);border-color:var(--ink);color:#fff}.tourism-edit-modal textarea{width:100%;resize:vertical;font:inherit;border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:var(--paper);color:var(--ink)}.tourism-verification-data{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--wash)}.tourism-verification-data div{display:grid;gap:3px}.tourism-verification-data a{overflow-wrap:anywhere}.tourism-verification-data small{color:var(--ink-soft)}
.tourism-map-move-toggle{display:inline-flex;align-items:center;gap:8px;margin:10px 0;color:var(--ink-soft);font-weight:800}.tourism-map-move-toggle input{width:18px;height:18px;accent-color:var(--coral)}
.tourism-view-controls{display:flex;gap:8px;align-items:center;margin-right:auto}.tourism-view-controls .secondary-button{padding:7px 11px}.tourism-import-progress{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--wash)}.tourism-import-progress progress{width:100%;height:12px}.tourism-import-modal{max-width:620px}
@media(max-width:760px){.admin-surface-grid{grid-template-columns:1fr}.tourism-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.tourism-record-card{grid-template-columns:1fr}.tourism-filters .primary-button{width:100%}}
@media(max-width:480px){.tourism-filters{grid-template-columns:1fr}}
.business-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.business-visual { height: 150px; background: linear-gradient(135deg,var(--mint),#B8EDF2); display: flex; align-items: flex-end; padding: 14px; position: relative; }
.business-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.business-placeholder { margin: auto; font-size: 72px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.1)); }
.business-visual .badge { position: relative; z-index: 1; }
.badge { display: inline-flex; background: var(--pine); color: white; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 700; }
.business-body { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; min-width: 0; padding: 18px; }
.business-card-copy { min-width: 0; }
.business-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.business-title h2 { margin: 0; font: 800 19px "Sora", sans-serif; }
.rating { color: var(--ink); white-space: nowrap; font-weight: 700; }
.rating span { color: var(--gold); }
.business-meta { color: var(--ink-soft); display: flex; gap: 12px; margin: 8px 0 15px; font-size: 13px; }
.business-service-hours { min-width: 0; display: grid; gap: 2px; color: var(--ink-soft); font-size: 11px; line-height: 1.25; }
.business-service-hours small { color: var(--coral); font-size: 10px; font-weight: 800; }
.business-body > .card-action { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; flex: none; }
.card-action, .primary-button, .secondary-button, .danger-button { min-height: 42px; border: 0; border-radius: 12px; padding: 10px 15px; cursor: pointer; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.card-action, .primary-button { background: var(--coral); color: white; }
.secondary-button { background: var(--mint); color: var(--pine); }
.danger-button { background: #f8dede; color: var(--danger); }
.result-footer { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.filter-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 18px; background: var(--mint); border-radius: 14px; }
.filter-context > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pine); font-weight: 600; }
.product-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.catalog-product-card { container-type: inline-size; display: grid; grid-template-columns: clamp(96px,38%,150px) minmax(0,1fr); min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.catalog-product-image { display: grid; place-items: center; min-height: 190px; background: linear-gradient(145deg,var(--mint),#B8EDF2); font-size: 60px; }
.catalog-product-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-product-body { display: flex; flex-direction: column; padding: 18px; min-width: 0; }
.catalog-product-body small { color: var(--coral); font-weight: 700; }
.catalog-product-body h2 { margin: 5px 0 7px; font-size: 19px; }
.catalog-product-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.catalog-product-body > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; margin-top: auto; }
.catalog-product-body > div strong { min-width: 0; white-space: nowrap; }
.catalog-product-body > div .card-action { flex: none; }
.catalog-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.catalog-view-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--pine); cursor: pointer; box-shadow: 0 4px 12px rgba(11,31,51,.06); }
.catalog-view-toggle:hover { border-color: var(--cyan); background: var(--mint); }
.catalog-view-toggle:focus-visible,.catalog-category-filter button:focus-visible,.compact-menu-view:focus-visible { outline: 3px solid rgba(34,199,217,.35); outline-offset: 2px; }
.catalog-view-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.catalog-category-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 2px 1px 5px; overflow-x: auto; scrollbar-width: thin; }
.catalog-category-filter button { flex: none; min-height: 36px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); cursor: pointer; font-weight: 700; }
.catalog-category-filter button.active { border-color: var(--pine); background: var(--pine); color: white; }
.compact-catalog-menu { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 8px 24px rgba(11,31,51,.05); }
.compact-menu-category + .compact-menu-category { border-top: 1px solid var(--line); }
.compact-menu-category > h2 { margin: 0; padding: 14px 18px 10px; background: linear-gradient(90deg,var(--mint),rgba(216,247,249,.24)); color: var(--pine); font: 800 17px "Sora",sans-serif; }
.compact-menu-products { padding: 0 18px 7px; }
.compact-menu-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; min-height: 48px; padding: 8px 0; border-top: 1px dotted #c5d4da; }
.compact-menu-row:first-child { border-top: 0; }
.compact-menu-product { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.compact-menu-product > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-menu-product > small { flex: none; color: var(--coral); font-weight: 700; }
.compact-menu-price { white-space: nowrap; font-size: 14px; }
.compact-menu-view { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--coral); color: white; cursor: pointer; font-weight: 750; }
.customer-orders-header { align-items: center; }
.orders-business-list-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--pine); cursor: pointer; box-shadow: 0 4px 12px rgba(11,31,51,.06); }
.orders-business-list-button:hover { border-color: var(--cyan); background: var(--mint); }
.orders-business-list-button:focus-visible,.compact-business-view:focus-visible { outline: 3px solid rgba(34,199,217,.35); outline-offset: 2px; }
.orders-business-list-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.compact-business-header { margin-bottom: 16px; }
.compact-business-filter { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--mint-2); border-radius: 14px; background: var(--mint); }
.compact-business-filter > div { display: grid; gap: 2px; min-width: 0; }
.compact-business-filter .eyebrow { color: var(--coral); }
.compact-business-filter small { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.compact-business-list { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 8px 24px rgba(11,31,51,.05); }
.compact-business-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; min-height: 58px; padding: 9px 16px; border-top: 1px dotted #c5d4da; }
.compact-business-row:first-child { border-top: 0; }
.compact-business-name { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.compact-business-name > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-business-meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.compact-business-meta > small { color: var(--ink-soft); white-space: nowrap; }
.business-availability { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 750; }
.business-availability i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.business-availability.is-open { color: #187443; }
.business-availability.is-closed { color: var(--danger); }
.compact-business-view { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--coral); color: white; cursor: pointer; font-weight: 750; }
.business-card-view-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.directory-results-header { grid-template-columns:minmax(220px,.8fr) minmax(390px,1.2fr); align-items:stretch; gap:24px; margin-bottom:22px; }
.directory-results-intro { display:flex; flex-direction:column; justify-content:center; padding:8px 0; }
.directory-results-intro h1 { max-width:360px; }
.directory-results-actions { display:grid; gap:13px; align-content:center; padding:16px 18px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:0 8px 24px rgba(11,31,51,.05); }
.directory-toolbar-title { display:grid; gap:3px; }
.directory-toolbar-title strong { color:var(--pine); font:800 14px "Sora",sans-serif; }
.directory-toolbar-title span { color:var(--ink-soft); font-size:12px; }
.directory-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.directory-filters label { display:grid; gap:5px; color:var(--ink-soft); font-size:11px; font-weight:800; }
.directory-filters select { width:100%; min-height:40px; padding:8px 30px 8px 11px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font:inherit; font-size:13px; }
.directory-filters select:focus-visible { outline:3px solid rgba(34,199,217,.3); outline-offset:1px; border-color:var(--cyan); }
.directory-view-switcher { display:flex; gap:7px; align-items:center; flex-wrap:wrap; padding-top:2px; }
.directory-view-switcher .secondary-button { min-width:76px; }
.directory-view-switcher .secondary-button.active { background:var(--ink); color:var(--paper); }
.directory-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.directory-card,.directory-list,.directory-map-section { background:var(--paper); border:1px solid var(--line); border-radius:18px; box-shadow:0 8px 24px rgba(11,31,51,.05); }
.directory-card { padding:18px; display:grid; gap:10px; }
.directory-card h2 { margin:3px 0 0; }
.directory-card-heading .eyebrow { color:var(--coral); }
.directory-address,.directory-card p { margin:0; color:var(--ink-soft); }
.directory-card-footer { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:4px; color:var(--ink-soft); font-size:12px; }
.directory-card-footer .primary-button { margin-left:auto; }
.directory-list { overflow:hidden; }
.directory-list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:14px 18px; border-top:1px dotted #c5d4da; }
.directory-list-row:first-child { border-top:0; }
.directory-list-row div { display:grid; gap:4px; min-width:0; }
.directory-list-row small { color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.directory-map-section { padding:16px; }
.directory-map-legend { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 2px 12px; color:var(--ink-soft); }
.directory-map-legend > div { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.directory-map-legend strong { color:var(--pine); font-size:15px; }
.directory-map-legend span { font-size:12px; }
.directory-map-canvas { position:relative; width:100%; height:430px; overflow:hidden; border-radius:14px; background:#dbe7e9; isolation:isolate; }
.directory-map-canvas .business-geo-tiles { position:absolute; inset:0; z-index:0; user-select:none; pointer-events:none; }
.directory-map-canvas .business-geo-tiles img { position:absolute; inset:auto; z-index:0; user-select:none; pointer-events:none; }
.directory-map-canvas .business-geo-tiles img { width:256px; height:256px; max-width:none; }
.directory-map-canvas>small { position:absolute; z-index:4; right:7px; bottom:5px; padding:2px 5px; border-radius:4px; background:rgba(255,255,255,.8); color:#355; font-size:9px; }
.directory-map-pins { position:absolute; inset:0; z-index:3; }
.directory-map-navigation { position:absolute; z-index:5; inset:0; pointer-events:none; }
.directory-map-pan-grid { display:grid; grid-template-columns:repeat(3,30px); grid-template-rows:repeat(2,30px); }
.directory-map-navigation .directory-map-pan-grid { position:absolute; left:10px; top:10px; pointer-events:auto; }
.directory-map-pan-grid button:nth-child(1) { grid-column:2; }
.directory-map-pan-grid button:nth-child(2) { grid-column:1; grid-row:2; }
.directory-map-pan-grid button:nth-child(3) { grid-column:3; grid-row:2; }
.directory-map-pan-grid button:nth-child(4) { grid-column:2; grid-row:2; }
.directory-map-navigation button { width:30px; height:30px; padding:0; border:1px solid rgba(11,31,51,.15); background:rgba(255,255,255,.92); color:var(--ink); font-weight:800; cursor:pointer; box-shadow:0 2px 5px rgba(0,0,0,.18); }
.directory-map-navigation button:hover { background:var(--mint); }
.directory-map-navigation .business-geo-controls { position:absolute; right:10px; top:10px; display:grid; gap:4px; pointer-events:auto; }
.directory-map-pin { position:absolute; transform:translate(-50%,-100%); border:0; background:transparent; cursor:pointer; display:grid; justify-items:center; gap:2px; }
.directory-map-pin i { display:grid; place-items:center; width:29px; height:29px; border-radius:50%; background:var(--coral); color:#fff; font-style:normal; font-weight:800; box-shadow:0 2px 5px rgba(0,0,0,.25); }
.directory-map-pin span { max-width:150px; padding:2px 5px; border-radius:5px; background:rgba(255,255,255,.9); color:var(--ink); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.directory-map-empty { display:grid; place-items:center; min-height:260px; color:var(--ink-soft); }
.directory-detail-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.directory-detail-fields div { display:grid; gap:3px; }
.directory-detail-fields small { color:var(--ink-soft); }
.directory-metadata { max-height:180px; overflow:auto; padding:12px; border-radius:10px; background:#f4f7f6; font-size:11px; white-space:pre-wrap; }
.business-list-view-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--pine); cursor: pointer; box-shadow: 0 4px 12px rgba(11,31,51,.06); }
.business-list-view-toggle:hover { border-color: var(--cyan); background: var(--mint); }
.business-list-view-toggle:focus-visible { outline: 3px solid rgba(34,199,217,.35); outline-offset: 2px; }
.business-list-view-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@container (max-width: 360px) {
  .catalog-product-body > div { grid-template-columns: minmax(0,1fr); }
  .catalog-product-body > div .card-action { justify-self: stretch; width: 100%; }
}

.product-layout { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(300px,1.2fr); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.product-art { min-height: 500px; background: linear-gradient(145deg,var(--mint),#B8EDF2); display: grid; place-items: center; font-size: min(13vw,150px); }
.product-art img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.product-config { padding: clamp(24px,4vw,46px); }
.product-config h1 { font: 800 34px "Sora",sans-serif; margin: 0 0 7px; }
.product-config > p { color: var(--ink-soft); line-height: 1.6; }
.option-group { border-top: 1px solid var(--line); padding: 20px 0; }
.option-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.option-group h3 { font: 700 15px "Sora",sans-serif; margin: 0; }
.option-group-heading small { color: var(--ink-soft); }
.option-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.option-choice { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: white; border-radius: 12px; overflow: hidden; }
.option-chip { border: 0; background: white; padding: 10px 13px; cursor: pointer; }
.option-choice.selected { background: var(--mint); border-color: var(--pine-2); box-shadow: inset 0 0 0 1px var(--pine-2); }
.option-choice.selected .option-chip { background: transparent; }
.option-chip.selected { background: var(--mint); border-color: var(--pine-2); box-shadow: inset 0 0 0 1px var(--pine-2); }
.option-quantity { display: inline-flex; align-items: center; border-left: 1px solid var(--mint-2); }
.option-quantity button { width: 32px; border: 0; align-self: stretch; background: rgba(255,255,255,.55); cursor: pointer; font-size: 17px; }
.option-quantity strong { min-width: 24px; text-align: center; font-size: 12px; }
.option-error { margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.primary-button:disabled { cursor: not-allowed; opacity: .5; }
.product-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; }
.price { font: 800 25px "Sora",sans-serif; }

.cart-panel { max-width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.cart-line { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 62px; height: 62px; background: var(--mint); border-radius: 14px; display: grid; place-items: center; font-size: 30px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cart-line h3 { margin: 0 0 5px; }
.cart-line p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.cart-options { margin: 0 0 7px; color: var(--ink-soft); font-size: 12px; }
.cart-header-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.quantity-control { display: inline-grid; grid-template-columns: 30px 32px 30px; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.quantity-control button { height: 30px; border: 0; background: var(--mint); cursor: pointer; font-size: 18px; }
.quantity-control strong { font-size: 13px; }
.cart-panel > .button-row { justify-content: space-between; }
.totals { margin: 20px 0; display: grid; gap: 10px; }
.total-row { display: flex; justify-content: space-between; }
.total-row.grand { font: 800 20px "Sora",sans-serif; border-top: 1px solid var(--line); padding-top: 12px; }
.full { width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.admin-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.admin-tool-card { display: grid; min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.business-control-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.business-control-metrics article { display: grid; gap: 8px; padding: 17px; border-radius: 16px; background: var(--mint); }
.business-control-metrics small { color: var(--ink-soft); }
.business-control-metrics strong { font: 800 20px "Sora",sans-serif; overflow-wrap: anywhere; }
.business-control-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.business-orders-header { grid-template-columns:minmax(210px,1fr) auto; align-items:end; gap:16px 22px; }
.business-orders-title { min-width:0; }
.business-orders-title h1 { margin-bottom:0; white-space:nowrap; font-size:clamp(26px,2.8vw,36px); }
.business-orders-filters { display:flex; width:auto; align-items:end; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.business-orders-filters .business-context-select { flex:0 1 230px; width:230px; max-width:100%; }
.business-control-card { display: grid; align-content: start; gap: 8px; min-height: 174px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.business-control-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-2px); }
.business-control-card > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--mint); color: var(--cyan); font-size: 21px; }
.business-control-card > strong { font: 800 17px "Sora",sans-serif; }
.business-control-card > small { color: var(--ink-soft); line-height: 1.45; }
.business-control-card > b { align-self: end; margin-top: auto; color: var(--coral); font-size: 13px; }
.business-response { padding: 12px 14px; border-radius: 13px; background: var(--mint); }
.business-response p { margin-top: 5px; }
.admin-tool-card:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 12px 30px rgba(11,31,51,.09); }
.admin-tool-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--cyan); font-size: 27px; }
.admin-tool-card > strong { align-self: end; font-size: 20px; }
.admin-tool-card > small { min-height: 38px; margin-top: 6px; color: var(--ink-soft); line-height: 1.45; }
.admin-tool-card > b { margin-top: 14px; color: var(--coral); font-size: 13px; }
.admin-record-list { display: grid; gap: 14px; }
.admin-record-card { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px rgba(11,31,51,.045); }
.admin-record-card h2,.admin-record-card p { margin: 0; }
.admin-record-card p,.admin-record-card time { color: var(--ink-soft); font-size: 13px; }
.admin-owner-meta { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-owner-businesses { display: grid; gap: 9px; }
.admin-owner-business { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 13px; background: var(--mint); }
.admin-owner-business > div:first-child { display: grid; gap: 3px; min-width: 0; }
.admin-owner-business small { color: var(--ink-soft); overflow-wrap: anywhere; }
.admin-owner-business-status { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.admin-customer-purchases,.admin-customer-keyfobs { display: grid; gap: 9px; }
.admin-customer-keyfobs { padding-top: 12px; border-top: 1px solid var(--line); }
.admin-customer-keyfobs > span { padding: 10px 12px; border-radius: 12px; background: var(--mint); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; }
.managed-product-card { grid-template-columns: 148px minmax(0,1fr); align-items: stretch; }
.managed-product-card[hidden] { display: none!important; }
.managed-product-image { position: relative; min-height: 128px; overflow: hidden; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--coral); font-size: 34px; }
.managed-product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.managed-product-content { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.managed-product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.business-location-fields { min-width: 0; display: grid; gap: 13px; margin: 6px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.business-location-fields legend { padding: 0 8px; font-family: "Sora",sans-serif; font-weight: 750; }
.business-editor-modal { width:min(760px,calc(100vw - 24px)); }
.business-editor-tabs { display:flex; gap:6px; padding:0 24px 12px; border-bottom:1px solid var(--line); }
.business-editor-tabs button { padding:9px 14px; border:0; border-radius:10px; background:transparent; color:var(--ink-soft); font:750 13px/1 "Sora",sans-serif; }
.business-editor-tabs button.active { background:var(--mint); color:var(--ink); }
[data-business-editor-panel] { display:grid; gap:13px; }
[data-business-editor-panel][hidden] { display:none; }
.business-geo-map { position:relative; width:100%; height:270px; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#dbe7e9; cursor:crosshair; isolation:isolate; }
.business-geo-tiles,.business-geo-tiles img { position:absolute; inset:0; user-select:none; pointer-events:none; }
.business-geo-tiles img { width:256px; height:256px; max-width:none; }
.business-geo-pin { position:absolute; z-index:2; left:50%; top:50%; width:30px; height:38px; padding:0; border:0; background:transparent; transform:translate(-50%,-100%); filter:drop-shadow(0 4px 4px rgba(11,31,51,.28)); }
.business-geo-pin span { display:block; width:24px; height:24px; margin:auto; border:4px solid white; border-radius:50% 50% 50% 0; background:var(--coral); transform:rotate(-45deg); }
.business-geo-controls { position:absolute; z-index:3; right:10px; top:10px; display:grid; border-radius:9px; overflow:hidden; box-shadow:0 2px 8px rgba(11,31,51,.18); }
.business-geo-controls button { width:34px; height:34px; border:0; background:white; color:var(--ink); font-size:20px; }
.business-geo-controls button+button { border-top:1px solid var(--line); }
.business-geo-map>small { position:absolute; z-index:3; right:7px; bottom:5px; padding:2px 5px; border-radius:4px; background:rgba(255,255,255,.8); color:#355; font-size:9px; }
.business-inline-field { display:flex; gap:8px; align-items:center; }
.business-inline-field input { flex:1; min-width:0; }
.business-location-actions { display:flex; flex-wrap:wrap; gap:8px; }
.location-moved-warning { margin:0; padding:11px 13px; border:1px solid rgba(239,93,88,.35); border-radius:11px; background:#fff0ee; color:#8f302d; font-size:12px; }
.delivery-zones-editor { display:grid; gap:13px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.delivery-zone-list { display:grid; gap:8px; }
.delivery-zone-card { display:flex; justify-content:space-between; gap:15px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.delivery-zone-card.inactive { opacity:.58; }
.delivery-zone-card>div { display:grid; gap:3px; }
.delivery-zone-card>div:last-child { justify-items:end; }
.delivery-zone-card small { color:var(--ink-soft); }
.delivery-zone-card .text-button { padding:0; font-size:11px; }
.delivery-zone-actions { display:flex; gap:10px; }
.delivery-zone-create { display:grid; gap:12px; padding:15px; border-radius:15px; background:var(--cream); }
.delivery-zone-create [hidden] { display:none!important; }
.delivery-zone-create h4 { margin:0; }
.polygon-zone-map { height:320px; }
.polygon-zone-overlay { position:absolute; z-index:2; inset:0; width:100%; height:100%; pointer-events:none; }
.polygon-zone-overlay polygon { fill:rgba(35,190,155,.24); stroke:#087f68; stroke-width:3; vector-effect:non-scaling-stroke; }
.polygon-zone-overlay polyline { fill:none; stroke:#087f68; stroke-width:3; stroke-dasharray:7 5; vector-effect:non-scaling-stroke; }
.polygon-zone-overlay circle { fill:#fff; stroke:#087f68; stroke-width:3; vector-effect:non-scaling-stroke; }
.polygon-zone-map .business-geo-pin { opacity:.6; transform:translate(-50%,-50%) scale(.65); }
.polygon-zone-map { cursor:grab; touch-action:none; }
.polygon-zone-map:active { cursor:grabbing; }
.polygon-map-navigation { position:absolute; z-index:4; left:10px; top:10px; display:flex; align-items:flex-start; gap:8px; }
.polygon-map-pan-grid { display:grid; grid-template-columns:repeat(3,30px); grid-template-rows:repeat(2,30px); gap:2px; padding:3px; border-radius:9px; background:rgba(255,255,255,.92); box-shadow:0 2px 8px rgba(11,31,51,.18); }
.polygon-map-pan-grid button { width:30px; height:30px; padding:0; border:0; border-radius:6px; background:white; color:var(--ink); font-size:17px; line-height:1; }
.polygon-map-pan-grid button:first-child { grid-column:2; }
.polygon-map-pan-grid button:nth-child(2) { grid-column:1; grid-row:2; }
.polygon-map-pan-grid button:nth-child(3) { grid-column:2; grid-row:2; }
.polygon-map-pan-grid button:nth-child(4) { grid-column:3; grid-row:2; }
.polygon-map-navigation .business-geo-controls { position:relative; right:auto; top:auto; }
.polygon-zone-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:8px; }
.polygon-zone-toolbar span { flex:1; min-width:190px; color:var(--ink-soft); font-size:12px; }
.checkout-coverage { padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:#fff8e8; color:#72551b; font-size:12px; }
.checkout-coverage.covered { border-color:rgba(8,127,104,.3); background:#eaf9f4; color:#086653; }
.courier-location-status { margin:8px 0 0; color:var(--ink-soft); font-size:12px; }
.courier-location-map { position:relative; width:100%; height:280px; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#dbe7e9; cursor:grab; isolation:isolate; touch-action:none; }
.courier-location-map:active { cursor:grabbing; }
.courier-location-map .business-geo-tiles,.courier-location-map .business-geo-tiles img { position:absolute; inset:0; user-select:none; pointer-events:none; }
.courier-location-map .business-geo-tiles img { width:256px; height:256px; max-width:none; }
.courier-live-map { position:relative; width:100%; height:420px; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#dbe7e9; isolation:isolate; }
.courier-live-map .business-geo-tiles,.courier-live-map .business-geo-tiles img { position:absolute; inset:0; pointer-events:none; }
.courier-live-map .business-geo-tiles img { width:256px; height:256px; max-width:none; }
.courier-map-pins { position:absolute; inset:0; z-index:2; }
.courier-map-pin { position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; color:#11263d; font-size:10px; font-weight:700; white-space:nowrap; }
.courier-map-pin i { width:18px; height:18px; display:block; border:3px solid #fff; border-radius:50% 50% 50% 0; transform:rotate(-45deg); box-shadow:0 2px 7px #18364c66; }
.courier-map-pin b { margin-top:4px; padding:2px 5px; border-radius:6px; background:#ffffffdf; }
.courier-map-pin.is-available i,.courier-map-legend .is-available { background:#20a464; color:#147447; }
.courier-map-pin.is-delivery i,.courier-map-legend .is-delivery { background:#df4c58; color:#b52d3a; }
.courier-map-legend { display:flex; gap:18px; margin:8px 0 12px; font-size:13px; font-weight:700; }
.courier-live-map>small { position:absolute; z-index:3; right:7px; bottom:5px; padding:2px 5px; border-radius:4px; background:#fff9; color:#355; font-size:9px; }
.courier-location-map .business-geo-pin { z-index:2; }
.form-help { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.admin-record-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-record-main > div { display: grid; gap: 5px; min-width: 0; }
.admin-viewer-header .button-row { flex-wrap: wrap; justify-content: flex-end; }
.admin-record-metrics { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-record-metrics > span { display: grid; min-width: 160px; gap: 3px; padding: 11px 13px; border-radius: 12px; background: var(--mint); color: var(--ink-soft); font-size: 12px; }
.admin-record-metrics strong { color: var(--ink); font-size: 16px; }
.admin-status { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 27px; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--pine); font-size: 12px; font-weight: 750; }
.admin-status.status-suspended,.admin-status.status-rejected,.admin-status.status-overdue,.admin-status.status-urgent { background: #f8dede; color: var(--danger); }
.admin-status.status-pending_approval,.admin-status.status-pending,.admin-status.status-pending_collection,.admin-status.status-high { background: #fff0cf; color: #78530a; }
.admin-status.status-active,.admin-status.status-approved,.admin-status.status-available,.admin-status.status-collected { background: #d9f3df; color: #1e6335; }
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.metric-card small { color: var(--ink-soft); display: block; margin-bottom: 12px; }
.metric-card strong { font: 800 25px "Sora",sans-serif; }
.app-shell[data-role="admin"] .metric-card { min-width: 0; padding: 18px; }
.app-shell[data-role="admin"] .metric-card strong.metric-money { display: flex; max-width: 100%; align-items: baseline; justify-content: flex-end; gap: .25em; flex-wrap: wrap; font-size: clamp(16px,1.7vw,22px); line-height: 1.25; letter-spacing: -.02em; }
.app-shell[data-role="admin"] .metric-money-value,.app-shell[data-role="admin"] .metric-money-currency { white-space: nowrap; }
.metric-card .trend { color: #277a61; font-size: 12px; margin-top: 7px; }
.chart-card, .table-card, .offer-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-top: 18px; box-shadow: 0 8px 24px rgba(11,31,51,.045); }
.fake-chart { height: 210px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line); padding: 20px 8px 0; }
.fake-chart span { flex: 1; height: var(--h); min-width: 12px; background: linear-gradient(to top,var(--pine-2),var(--mint-2)); border-radius: 7px 7px 0 0; }
.activity-row { padding: 12px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--pine); font-size: 11px; font-weight: 700; }
.status-badge.pending { background: #fbedd0; color: #795412; }
.review-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); margin-bottom: 12px; }
.review-card p { color: var(--ink-soft); line-height: 1.55; }
.privacy-banner { display: inline-flex; gap: 7px; align-items: center; background: var(--mint); color: var(--pine); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #35a87c; box-shadow: 0 0 0 5px rgba(53,168,124,.13); }
.offer-card { max-width: 620px; border-top: 5px solid var(--coral); }
.offer-route { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 20px 0; }
.offer-route p { margin: 0 0 16px; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mobile-navigation, .mobile-ai-bar { display: none; }
.cart-dock { display: none; }
.cart-dock[hidden] { display: none!important; }
.app-shell[data-role="customer"] .cart-dock { position: fixed; z-index: 40; display: grid; gap: 12px; right: 20px; bottom: 20px; width: min(340px,calc(100vw - 40px)); padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,251,.97); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.cart-dock-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cart-dock-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--pine); font-size: 20px; }
.cart-dock-copy > div { min-width: 0; display: grid; }
.cart-dock-copy small, .cart-dock-copy span { color: var(--ink-soft); font-size: 11px; }
.cart-dock-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-dock-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cart-dock-actions button, .cart-dock-empty { min-height: 38px; border: 0; border-radius: 11px; cursor: pointer; font-weight: 700; }
.cart-dock-view { background: var(--pine); color: white; }
.cart-dock-clear { padding-inline: 12px; background: transparent; color: var(--danger); }
.cart-dock-empty { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 4px; background: transparent; text-align: left; }
.cart-dock-empty > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--mint); }
.cart-dock-empty > span:last-child { display: grid; }
.cart-dock-empty small { color: var(--ink-soft); font-weight: 400; }
.app-shell[data-role="customer"] .workspace.canvas-active .main-content { padding-bottom: 140px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,31,51,.58); display: grid; place-items: center; padding: 18px; overflow-y: auto; overscroll-behavior: contain; z-index: 70; animation: fade .2s ease; }
.modal { width: min(520px,100%); max-height: calc(100dvh - 36px); border-radius: 22px; background: var(--paper); padding: 26px; box-shadow: var(--shadow); }
.modal h2 { font: 800 24px "Sora",sans-serif; margin: 0 0 8px; }
.modal p { color: var(--ink-soft); }
.modal input:not([type="checkbox"]),.modal select,.modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin: 7px 0 14px; background: white; color: var(--ink); }
.modal textarea { resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-heading h2 { padding-right: 6px; }
.modal-close { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; margin: -8px -8px 0 0; border: 0; border-radius: 12px; background: var(--mint); cursor: pointer; font-size: 22px; line-height: 1; }
.auth-modal { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.auth-modal > .modal-heading { flex: 0 0 auto; padding: 24px 24px 12px; }
.auth-scroll { min-height: 0; overflow-y: auto; padding: 4px 24px 20px; scrollbar-gutter: stable; }
.auth-intro { margin: 0 0 14px; line-height: 1.45; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 20px; padding: 4px; border-radius: 14px; background: var(--mint); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--pine); cursor: pointer; font-weight: 750; }
.auth-tabs button.active { background: var(--paper); box-shadow: 0 4px 14px rgba(11,31,51,.10); }
.auth-form { display: grid; }
.auth-form label { color: var(--ink); }
.auth-form > .primary-button { min-height: 46px; margin-top: 5px; }
.mfa-access { margin: 0 0 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.mfa-access summary { cursor: pointer; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.mfa-access label { display: block; margin-top: 12px; }
.mfa-qr { display: grid; place-items: center; margin: 16px 0; }
.mfa-qr canvas { width: 220px; max-width: 100%; height: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.mfa-secret { display: block; margin: 10px 0; padding: 12px; overflow-wrap: anywhere; border-radius: 10px; background: var(--mint); color: var(--pine); font-size: 13px; letter-spacing: .08em; }
.recovery-codes { margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--pine); font: 700 15px/1.7 ui-monospace,monospace; letter-spacing: .08em; text-align: center; }
.form-separator { margin: 0 0 10px; text-align: center; font-weight: 700; }
.account-actions { flex-wrap: wrap; }
.checkbox-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px; margin: 2px 0 15px; line-height: 1.35; font-size: 13px; }
.checkbox-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--coral); }
.modal-footer { flex: 0 0 auto; padding: 14px 24px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.checkout-modal { display: flex; flex-direction: column; padding: 0; overflow: hidden; width: min(590px,100%); }
.checkout-modal > .modal-heading { flex: 0 0 auto; padding: 22px 24px 10px; }
.checkout-scroll { min-height: 0; overflow-y: auto; padding: 5px 24px 20px; }
.signed-customer { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 11px 13px; border-radius: 13px; background: var(--mint); }
.signed-customer > div { display: grid; min-width: 0; }
.signed-customer small { color: var(--ink-soft); font-size: 10px; }
.signed-customer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-warning { margin: 0 0 14px; }
.checkout-error { padding: 11px 13px; border-radius: 11px; background: #f8dede; color: var(--danger)!important; font-weight: 650; }
.email-verification-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #e7c973; border-radius: 12px; background: #fff7d8; color: var(--ink); font-size: 13px; }
.email-verification-note .text-button { flex: 0 0 auto; margin: 0; }
.checkout-scroll > label { display: grid; margin-bottom: 13px; }
.checkout-scroll select { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.checkout-address, .checkout-payment { min-width: 0; margin: 7px 0 15px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; }
.checkout-address legend, .checkout-payment legend { padding: 0 6px; font-weight: 750; }
.checkout-address label { display: grid; }
.checkout-fields { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.text-button { margin: -5px 0 12px; padding: 4px 0; border: 0; background: transparent; color: var(--coral); cursor: pointer; text-align: left; font-weight: 700; }
.payment-choice { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--cream); }
.payment-choice input { accent-color: var(--coral); }
.nfc-special-offer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 14px; margin:12px 0; padding:14px; border:1px solid rgba(34,199,217,.38); border-radius:15px; background:linear-gradient(135deg,#effcfe,#fffdf7); }
.nfc-special-offer.applied { border-color:rgba(8,127,104,.34); background:#eaf9f4; }
.nfc-special-offer > div { display:grid; gap:3px; }
.nfc-special-offer small { color:var(--ink-soft); }
.nfc-special-offer > p { grid-column:1/-1; margin:0; color:var(--ink-soft); font-size:12px; }
.nfc-special-offer.applied > p,.checkout-totals .discount { color:#086653; }
.checkout-totals { display: grid; gap: 8px; margin-top: 13px; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 15px; }
.checkout-totals .grand { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.empty-state.compact { padding: 35px 20px; }
.customer-survey-card { margin-top: 18px; padding: 22px; border: 1px solid #b8e8e2; border-radius: 22px; background: linear-gradient(135deg,#f4fffc,#fffdf7); box-shadow: 0 12px 32px rgba(11,31,51,.07); }
.survey-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.survey-heading h2 { margin:4px 0 7px; font-size:clamp(20px,3vw,28px); }
.survey-heading p { margin:0; color:var(--ink-soft); line-height:1.5; }
.survey-order-ref { display:block; margin-top:8px; color:var(--ink-soft); font-size:11px; font-family:ui-monospace,monospace; overflow-wrap:anywhere; }
.survey-ai-badge { flex:0 0 auto; padding:8px 11px; border-radius:999px; background:var(--mint); color:var(--pine); font-size:12px; font-weight:800; }
.survey-rating-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.survey-rating { min-width:0; padding:12px; border:1px solid var(--line); border-radius:15px; background:rgba(255,255,255,.8); }
.survey-rating legend { padding:0 4px; font-size:13px; font-weight:750; }
.survey-stars { display:flex; gap:3px; margin-top:7px; }
.survey-star { width:34px; height:34px; padding:0; border:0; border-radius:9px; background:transparent; color:#c5d0d5; cursor:pointer; font-size:25px; line-height:1; }
.survey-star:hover,.survey-star.selected { color:var(--gold); background:#fff7dc; }
.survey-field { display:grid; gap:6px; margin-top:14px; color:var(--ink-soft); font-size:13px; font-weight:700; }
.survey-field textarea { width:100%; resize:vertical; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:white; color:var(--ink); }
.survey-actions { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:16px; }
.survey-actions small { color:var(--ink-soft); line-height:1.35; }
.order-list { display: grid; gap: 12px; margin-top: 18px; }
.order-summary-card { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.order-summary-card:hover { border-color: var(--cyan); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,31,51,.08); }
.order-summary-main { display: grid; min-width: 0; gap: 5px; }
.order-summary-main > strong { font-size: 17px; }
.order-summary-main > span { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.order-summary-meta { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 7px 12px; }
.order-summary-meta time { color: var(--ink-soft); font-size: 12px; }
.order-summary-meta > strong { grid-column: 2; }
.order-status { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--pine); font-size: 12px; font-weight: 750; }
.order-status.status-cancelled,.order-status.status-delivery_failed { background: #f8dede; color: var(--danger); }
.order-status.status-delivered { background: #d9f3df; color: #1e6335; }
.order-survey-completed { display:inline-flex; align-items:center; gap:4px; color:#1e6335; font-size:11px; font-weight:800; }
.business-review-ratings { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:12px 0; }
.business-review-ratings span { display:grid; gap:3px; padding:9px; border-radius:10px; background:var(--cream); }
.business-review-ratings small { color:var(--ink-soft); }
.business-review-ratings b { color:var(--gold); letter-spacing:1px; }
.business-review-card { min-width:0; max-width:100%; overflow:hidden; }
.business-review-card .admin-record-main > div { min-width:0; max-width:100%; }
.business-review-card .admin-record-main strong { display:block; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.business-review-ratings,.business-review-ratings span { min-width:0; max-width:100%; }
.business-review-ratings b { min-width:0; overflow-wrap:anywhere; font-size:clamp(16px,4vw,22px); }
.business-private-comment { margin:12px 0; padding:12px; border-left:4px solid var(--cyan); border-radius:10px; background:var(--mint); }
.business-private-comment p { margin:5px 0 0; }
.order-chevron { color: var(--coral); font-size: 26px; line-height: 1; }
.order-detail-modal { display: flex; flex-direction: column; width: min(620px,100%); padding: 0; overflow: hidden; }
.order-detail-modal > .modal-heading { padding: 22px 24px 12px; }
.order-detail-scroll { min-height: 0; overflow-y: auto; padding: 4px 24px 22px; }
.order-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border-radius: 13px; background: var(--mint); }
.order-detail-header > div,.order-detail-info { display: grid; gap: 3px; }
.order-detail-header small,.order-detail-info small { color: var(--ink-soft); }
.order-delivery-window { display:grid; gap:4px; margin:14px 0; padding:12px 14px; border:1px solid rgba(20,194,214,.28); border-radius:12px; background:var(--ice); color:var(--ink); font:500 13px/1.45 "Manrope",sans-serif; }
.order-delivery-window small { color:var(--ink); font:800 14px/1.3 "Sora",sans-serif; }
.order-delivery-window span { color:var(--ink-soft); }
.order-delivery-window.delayed { border-color:rgba(239,93,88,.42); background:rgba(255,236,234,.92); color:#8f302d; box-shadow:0 4px 14px rgba(239,93,88,.09); }
.order-delivery-window.delayed small { color:#8f302d; }
.business-delay-panel { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:-8px 0 22px; padding:14px 16px; border:1px solid rgba(20,194,214,.24); border-radius:16px; background:linear-gradient(110deg,var(--ice),var(--paper)); }
.business-delay-copy { display:grid; gap:3px; min-width:0; }
.business-delay-copy strong { font:800 15px/1.25 "Sora",sans-serif; }
.business-delay-copy small { color:var(--ink-soft); font:500 12px/1.4 "Manrope",sans-serif; }
.business-delay-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.business-delay-actions .compact { white-space:nowrap; }
.order-detail-items { display: grid; margin: 16px 0; border-block: 1px solid var(--line); }
.order-detail-items article { display: flex; justify-content: space-between; gap: 15px; padding: 13px 2px; }
.order-detail-items article + article { border-top: 1px solid var(--line); }
.order-detail-items article > div { display: grid; gap: 4px; }
.order-detail-items small { color: var(--ink-soft); }
.order-detail-info { margin: 12px 0; }
.toast-region { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 90; }
.toast { background: var(--pine); color: white; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); animation: rise .25s ease; }
.empty-state { text-align: center; padding: 65px 20px; color: var(--ink-soft); }
.empty-state span { display: block; font-size: 46px; margin-bottom: 10px; }
.admin-view-actions { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: -10px 0 18px; }
.admin-city-filter { display: grid; gap: 5px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.admin-city-filter select { min-width: 210px; min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
.admin-business-modal { width: min(820px,calc(100vw - 30px)); }
.admin-business-modal fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 15px; }
.admin-business-modal legend { padding: 0 8px; font-weight: 800; color: var(--ink); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.business-hours-editor { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 15px; }
.business-hours-editor legend { padding: 0 8px; font-weight: 800; color: var(--ink); }
.business-hours-list { display: grid; gap: 8px; margin-top: 13px; }
.business-hours-row { display: grid; grid-template-columns: minmax(92px,1fr) 130px 130px; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: var(--cream); }
.business-hours-row label { display: grid; gap: 3px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.business-hours-row input { margin: 0!important; padding: 8px!important; }
.form-help { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
[data-fee-field][hidden] { display: none!important; }
.business-context-select { display: grid; gap: 5px; width: min(100%,280px); max-width: 280px; margin: 0 0 18px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.catalog-context-filters { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.catalog-context-filters .business-context-select { margin: 0; }
.page-header .business-context-select { margin: 0; }
.business-context-select select { min-height: 42px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0 34px 0 12px; color: var(--ink); font: 700 13px "Sora",sans-serif; }

.finance-header { align-items: center; }
.finance-header-actions { display: grid; justify-items: end; gap: 8px; min-width: 250px; }
.finance-header-actions .business-context-select { margin: 0; min-width: 250px; }
.finance-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.finance-live i { width: 7px; height: 7px; border-radius: 50%; background: #28a873; box-shadow: 0 0 0 4px rgba(40,168,115,.12); }
.finance-currency-block + .finance-currency-block { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.finance-period-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.finance-period-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: 0 8px 25px rgba(11,31,51,.045); }
.finance-period-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.finance-period-card > div span { color: var(--ink); font: 750 14px "Sora",sans-serif; }
.finance-period-card > div small { color: var(--ink-soft); font-size: 10px; }
.finance-period-card > strong { display: block; margin: 16px 0 15px; font: 800 clamp(22px,2.6vw,32px) "Sora",sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.finance-period-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }
.finance-period-card footer b { color: #197455; text-align: right; }
.finance-period-card.period-today { color: white; border-color: var(--pine); background: var(--pine); }
.finance-period-card.period-today > div span,.finance-period-card.period-today footer b { color: white; }
.finance-period-card.period-today > div small,.finance-period-card.period-today footer { color: #bcd9e2; }
.finance-period-card.period-today footer { border-color: rgba(255,255,255,.15); }
.finance-kpi-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.finance-kpi-strip article { min-width: 0; padding: 15px 17px; }
.finance-kpi-strip article + article { border-left: 1px solid var(--line); }
.finance-kpi-strip small { display: block; min-height: 28px; color: var(--ink-soft); font-size: 10px; line-height: 1.35; }
.finance-kpi-strip strong { display: block; margin-top: 5px; font: 800 16px "Sora",sans-serif; overflow-wrap: anywhere; }
.finance-kpi-strip .accent { background: var(--mint); }
.finance-chart-card,.finance-detail-card { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: 0 8px 24px rgba(11,31,51,.04); }
.finance-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.finance-section-heading h2,.finance-detail-toggle h2 { margin: 4px 0 0; font: 800 17px "Sora",sans-serif; }
.finance-section-heading p,.finance-detail-toggle p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.finance-section-heading > span { padding: 5px 8px; border-radius: 8px; background: var(--mint); color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.finance-bars { display: grid; grid-template-columns: repeat(7,minmax(32px,1fr)); gap: clamp(7px,1.4vw,17px); height: 185px; margin-top: 20px; padding-top: 20px; border-bottom: 1px solid var(--line); }
.finance-bar-column { display: grid; grid-template-rows: 18px 1fr 20px; justify-items: center; align-items: end; min-width: 0; height: 165px; }
.finance-bar-column span { max-width: 100%; overflow: hidden; color: var(--ink-soft); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.finance-bar-column i { display: block; width: min(34px,75%); min-height: 2px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg,var(--cyan),var(--pine-2)); }
.finance-bar-column b { padding-top: 6px; color: var(--ink-soft); font-size: 9px; text-transform: capitalize; }
.finance-detail-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.finance-row-count { white-space: nowrap; }
.finance-table-scroll { max-width: 100%; margin-top: 16px; overflow: auto; border: 1px solid #cbd8df; border-radius: 10px; }
.finance-data-table { width: 100%; min-width: 1280px; border-collapse: separate; border-spacing: 0; font-size: 9px; font-variant-numeric: tabular-nums; }
.finance-data-table th,.finance-data-table td { max-width: 260px; padding: 7px 9px; overflow: hidden; border-right: 1px solid #dfe7eb; border-bottom: 1px solid #dfe7eb; text-overflow: ellipsis; white-space: nowrap; }
.finance-data-table thead th { position: sticky; z-index: 2; top: 0; background: #e8f3f5; color: #334d60; font-size: 8px; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.finance-data-table tbody tr:nth-child(even) td { background: #f8faf9; }
.finance-data-table tbody tr:hover td { background: #eef9fa; }
.finance-data-table th:first-child,.finance-data-table td:first-child { position: sticky; z-index: 1; left: 0; background: var(--paper); }
.finance-data-table thead th:first-child { z-index: 3; background: #e8f3f5; }
.finance-data-table tbody tr:nth-child(even) td:first-child { background: #f8faf9; }
.finance-data-table td small { display: block; color: var(--ink-soft); font-size: 8px; }
.finance-data-table .num { text-align: right; }
.finance-data-table .strong { font-weight: 800; }
.finance-data-table .fee { color: #a45125; }
.finance-data-table .net { color: #126747; font-weight: 800; }
.finance-data-table tfoot th { position: sticky; bottom: 0; z-index: 2; border-bottom: 0; background: var(--pine); color: white; font-size: 9px; }
.finance-data-table tfoot th:first-child { left: 0; z-index: 3; background: var(--pine); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; } }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(320px,var(--chat-pane-width)) 11px minmax(480px,1fr); }
  .workspace:not(.canvas-active) { grid-template-columns: 1fr; }
  .role-navigation { padding-inline: 10px; }
  .role-switcher label, .nav-link span:last-child, .nav-footer { display: none; }
  .role-switcher select { padding: 8px 3px; font-size: 10px; }
  .nav-link { justify-content: center; font-size: 19px; }
  .category-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  :root { --topbar: 62px; }
  .topbar { padding: 0 14px; }
  .brand small, .location-pill span:last-child { display: none; }
  .brand-logo { width: 112px; height: 42px; }
  .avatar-button { display: inline-flex; width: 40px; min-width: 40px; height: 40px; padding: 5px; }
  .avatar-button .user-label { display: none; }
  .avatar-button .user-avatar { width: 30px; height: 30px; }
  .avatar-button .user-online { left: 27px; bottom: 2px; }
  .cart-header-summary { display: none; }
  .cart-button { width: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .location-pill { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .workspace, .app-shell[data-role="customer"] .workspace { display: block; min-height: calc(100vh - var(--topbar)); }
  .app-shell[data-role="admin"] .workspace { display: block; min-height: calc(100vh - var(--topbar)); }
  .workspace-divider, .app-shell[data-role="customer"] .workspace.canvas-active .workspace-divider { display: none; }
  .app-shell[data-role="admin"] .workspace.canvas-active .workspace-divider { display: none; }
  .role-navigation { display: none; }
  .main-content { padding: 20px 15px calc(var(--mobile-nav) + 78px); }
  .managed-product-card { grid-template-columns: 96px minmax(0,1fr); }
  .managed-product-image { min-height: 112px; }
  .assistant-panel { position: fixed; inset: auto 0 0; height: min(78vh,680px); z-index: 60; border-left: 0; border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -20px 50px rgba(11,31,51,.18); }
  .assistant-panel.open { transform: translateY(0); }
  .workspace:not(.canvas-active) .assistant-panel { position: fixed; inset: var(--topbar) 0 0; width: 100%; height: auto; border: 0; border-radius: 0; transform: none; box-shadow: none; }
  .app-shell[data-role="customer"] .workspace:not(.canvas-active) .assistant-panel { position: fixed; inset: var(--topbar) 0 0; width: 100%; height: auto; border: 0; border-radius: 0; transform: none; box-shadow: none; }
  .app-shell[data-role="admin"] .workspace:not(.canvas-active) .assistant-panel { position: fixed; inset: var(--topbar) 0 0; width: 100%; height: auto; border: 0; border-radius: 0; transform: none; box-shadow: none; }
  .app-shell[data-role="customer"] .workspace.canvas-active:not(.assistant-open) ~ .mobile-ai-bar { display: flex; }
  .app-shell[data-role="admin"] .workspace.canvas-active:not(.assistant-open) ~ .mobile-ai-bar { display: flex; bottom: 14px; }
  .workspace.canvas-active:not(.assistant-open) ~ .mobile-ai-bar { display: flex; bottom: 14px; }
  .app-shell[data-role="customer"] .desktop-collapse { display: grid; }
  .app-shell[data-role="admin"] .desktop-collapse { display: grid; }
  .workspace.canvas-active .desktop-collapse { display: grid; }
  .mobile-navigation { position: fixed; z-index: 35; display: grid; grid-template-columns: repeat(4,1fr); bottom: 0; left: 0; right: 0; height: var(--mobile-nav); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,254,251,.97); border-top: 1px solid var(--line); }
  .mobile-navigation a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--ink-soft); text-decoration: none; font-size: 10px; }
  .mobile-navigation a b { font-size: 19px; line-height: 1; }
  .mobile-navigation a.active { color: var(--coral); }
  .mobile-ai-bar { align-items: center; gap: 9px; position: fixed; z-index: 36; bottom: calc(var(--mobile-nav) + 10px); left: 14px; right: 14px; border: 0; background: var(--pine); color: white; height: 48px; padding: 0 15px; border-radius: 15px; box-shadow: var(--shadow); }
  .mobile-ai-bar span:nth-child(2) { flex: 1; text-align: left; }
  .app-shell[data-role="customer"] .cart-dock { left: 14px; right: 14px; bottom: calc(var(--mobile-nav) + 68px); width: auto; }
  .app-shell[data-role="customer"] .cart-dock:not(.has-items) { display: none; }
  .app-shell[data-role="customer"] .workspace.canvas-active .main-content { padding-bottom: calc(var(--mobile-nav) + 155px); }
  .modal-backdrop { place-items: end center; padding: 10px; }
  .modal { width: 100%; max-height: calc(100dvh - 20px); border-radius: 22px 22px 16px 16px; }
  .auth-modal > .modal-heading { padding: 20px 18px 10px; }
  .auth-scroll { padding: 4px 18px 16px; }
  .checkout-modal > .modal-heading { padding: 18px 18px 8px; }
  .checkout-scroll { padding: 4px 18px 16px; }
  .checkout-fields { grid-template-columns: 1fr; gap: 0; }
  .nfc-special-offer { grid-template-columns:1fr; }
  .nfc-special-offer > button { width:100%; }
  .modal-footer { padding-inline: 18px; }
  .auth-modal .modal-footer .secondary-button { width: 100%; min-height: 44px; }
  .checkout-modal .modal-footer { display: grid; grid-template-columns: auto 1fr; }
  .checkout-modal .modal-footer button { min-height: 46px; }
  .order-summary-card { grid-template-columns: minmax(0,1fr) 16px; gap: 10px; padding: 15px; }
  .customer-survey-card { padding:18px 15px; border-radius:18px; }
  .survey-rating-grid { grid-template-columns:1fr; }
  .business-review-ratings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .survey-actions { align-items:stretch; flex-direction:column; }
  .survey-actions .primary-button { width:100%; min-height:46px; }
  .order-summary-main > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .order-summary-meta { grid-column: 1; grid-row: 2; grid-template-columns: auto 1fr auto; justify-items: start; width: 100%; }
  .order-summary-meta > strong { grid-column: 3; justify-self: end; }
  .order-chevron { grid-column: 2; grid-row: 1 / span 2; }
  .business-delay-panel { align-items: stretch; flex-direction: column; }
  .business-delay-actions { justify-content: flex-start; }
  .order-detail-modal > .modal-heading { padding: 18px 18px 10px; }
  .order-detail-scroll { padding: 4px 18px 18px; }
  .hero { min-height: 390px; padding: 30px 24px; border-radius: 22px; }
  .prompt-card { display: grid; grid-template-columns: 1fr auto; padding-left: 12px; }
  .prompt-card span { display: none; }
  .prompt-card button { padding: 0 14px; }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .results-grid, .product-layout, .product-card-grid { grid-template-columns: 1fr; }
  .product-art { min-height: 220px; font-size: 90px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .admin-tool-grid { grid-template-columns: 1fr; }
  .business-control-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .business-control-grid { grid-template-columns: 1fr; }
  .admin-tool-card { min-height: 155px; }
  .admin-record-main { align-items: flex-start; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .business-editor-tabs { padding-inline:18px; }
  .business-editor-tabs button { flex:1; }
  .business-geo-map { height:230px; }
  .business-inline-field,.delivery-zone-card { align-items:stretch; flex-direction:column; }
  .delivery-zone-card>div:last-child { justify-items:start; }
  .admin-owner-business { align-items: flex-start; flex-direction: column; }
  .admin-owner-business-status { justify-content: flex-start; }
  .admin-view-actions { align-items: stretch; flex-direction: column; }
  .admin-city-filter select { width: 100%; }
  .page-header { grid-template-columns: minmax(0,1fr); align-items: start; gap: 14px; }
  .page-header > .button-row { justify-content: flex-start; width: 100%; }
  .page-header h1 { font-size: clamp(25px,6.4vw,32px); }
  .catalog-header-actions { width: 100%; justify-content: space-between; }
  .business-card-view-actions { width: 100%; justify-content: space-between; }
  .business-orders-header { grid-template-columns: minmax(0,1fr); }
  .business-orders-title h1 { font-size: clamp(26px,6.6vw,33px); }
  .business-orders-filters { display: grid; grid-template-columns: minmax(142px,.78fr) minmax(0,1.22fr); align-items:end; width:100%; }
  .business-orders-filters .business-context-select { width:100%; max-width:none; }
  .business-orders-filters > .secondary-button { grid-column:1; grid-row:1; justify-self:start; }
  .business-orders-filters > .business-context-select:first-of-type { grid-column:2; grid-row:1; }
  .business-orders-filters > .business-context-select + .business-context-select { grid-column:1 / -1; grid-row:2; max-width:none; }
  .finance-header-actions { width: 100%; justify-items: stretch; }
  .finance-header-actions .business-context-select { max-width: none; }
  .finance-period-grid { grid-template-columns: 1fr; }
  .finance-kpi-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-kpi-strip article + article { border-left: 0; }
  .finance-kpi-strip article { border-bottom: 1px solid var(--line); }
  .finance-kpi-strip .accent { grid-column: 1 / -1; }
  .finance-detail-toggle { align-items: stretch; flex-direction: column; }
  .finance-detail-toggle button { width: 100%; }
  .app-shell[data-role="customer"] .workspace:not(.canvas-active) ~ .mobile-navigation { display: none; }
  .app-shell[data-role="admin"] .mobile-navigation { display: none; }
  .app-shell[data-role="admin"] .main-content { padding-bottom: 82px; }
}

/* Customer purchase actions use one compact, text-only button treatment. */
.app-shell[data-role="customer"] .card-action,
.app-shell[data-role="customer"] .compact-business-view,
.app-shell[data-role="customer"] .compact-menu-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 430px) {
  .business-hours-row { grid-template-columns: 1fr 1fr; }
  .business-hours-row > strong { grid-column: 1 / -1; }
  .business-orders-filters { grid-template-columns: 1fr; }
  .business-orders-filters > .secondary-button,.business-orders-filters > .business-context-select:first-of-type,.business-orders-filters > .business-context-select + .business-context-select { grid-column:1; grid-row:auto; max-width:none; width:100%; }
  .business-orders-filters > .secondary-button { justify-content:center; }
  .topbar { gap: 5px; }
  .brand { min-width: 0; }
  .brand-logo { width: 90px; height: 38px; }
  .topbar-actions { min-width: 0; gap: 3px; }
  .location-pill,.cart-button,.avatar-button { width: 36px; min-width: 36px; height: 38px; min-height: 38px; }
  .brand strong { font-size: 17px; }
  .topbar { padding-inline: 10px; }
  .topbar-actions { gap: 4px; }
  .orders-button { display: none; }
  .language-picker select { width: 52px; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .catalog-product-card { grid-template-columns: 110px minmax(0,1fr); }
  .compact-menu-products { padding-inline: 13px; }
  .compact-menu-row { grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding-block: 9px; }
  .compact-menu-product { grid-row: 1 / span 2; display: block; }
  .compact-menu-product > small { display: block; margin-top: 2px; }
  .compact-menu-price { grid-column: 2; grid-row: 1; text-align: right; }
  .compact-menu-view { grid-column: 2; grid-row: 2; justify-self: end; }
  .compact-business-filter { align-items: stretch; flex-direction: column; }
  .compact-business-filter .secondary-button { width: 100%; }
  .compact-business-row { grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding: 10px 13px; }
  .compact-business-name { grid-row: 1 / span 2; display: grid; gap: 2px; }
  .business-availability { grid-column: 2; grid-row: 1; justify-self: end; }
  .compact-business-view { grid-column: 2; grid-row: 2; justify-self: end; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 15px; }
  .app-shell[data-role="admin"] .metric-card { padding: 14px; }
  .app-shell[data-role="admin"] .metric-card strong.metric-money { font-size: clamp(14px,3.7vw,18px); }
  .cart-panel { padding: 19px; }
}

.courier-page-header { align-items: center; margin-bottom: 16px; }
.courier-viewer-nav { display:flex; gap:10px; margin-bottom:18px; }
.courier-viewer-nav .secondary-button { min-height:40px; padding:9px 15px; }
.courier-header-actions { display:flex; align-items:center; justify-content:flex-start; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.courier-header-actions .primary-button,.courier-header-actions .secondary-button { min-width:0; min-height:46px; }
.courier-location-status { margin:0 0 20px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.62); line-height:1.35; }
.courier-offer-card,.courier-active-card,.courier-waiting { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.courier-offer-card { border: 2px solid var(--coral); }
.courier-offer-heading,.courier-offer-money,.courier-route { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.courier-offer-heading h2,.courier-active-card h2 { margin: 3px 0 0; }
.courier-offer-heading > strong { min-width: 58px; padding: 10px; border-radius: 16px; background: var(--coral); color: #fff; text-align: center; font-size: 20px; }
.courier-route { margin: 18px 0; align-items: stretch; }
.courier-route > div { flex: 1; padding: 14px; border-radius: 16px; background: var(--aqua-soft); }
.courier-route small,.courier-stop small,.courier-offer-money span { display: block; color: var(--muted); }
.courier-route b,.courier-offer-money strong { display: block; margin-top: 4px; color: var(--navy); }
.courier-route > span { align-self: center; font-size: 22px; }
.courier-offer-money { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.courier-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.courier-action-grid .primary-button,.courier-action-grid .danger-button { min-height: 52px; }
.courier-stop { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 14px; padding: 16px; margin-top: 14px; border-radius: 16px; background: var(--aqua-soft); }
.courier-stop small,.courier-stop strong,.courier-stop span { grid-column: 1; }
.courier-stop a { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.courier-stop.destination { background: #fff6f3; }
.courier-waiting { min-height:260px; display:grid; place-content:center; justify-items:center; gap:10px; text-align: center; padding-block: 38px; }
.courier-waiting > span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--aqua-soft); color: var(--teal); font-size: 26px; }
.courier-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.courier-summary-grid article { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.courier-summary-grid small,.courier-summary-grid strong { display: block; margin-bottom: 12px; }
.courier-choice-list { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.courier-choice-list button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--navy); text-align: left; cursor: pointer; }
.courier-choice-list button:hover { border-color: var(--teal); background: var(--aqua-soft); }
.courier-choice-list span,.courier-choice-list small { display: block; }
.courier-choice-list small { margin-top: 4px; color: var(--muted); }
.courier-choice-list strong { color: var(--teal); }
.delivery-offer-pending { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 13px; border-radius: 14px; background: #fff4d8; color: var(--navy); }
.delivery-offer-pending small,.delivery-offer-pending b { display: block; }
.courier-cash-total { padding: 16px; border-radius: 16px; background: var(--aqua-soft); }
.courier-cash-total small,.courier-cash-total strong { display: block; }
.courier-cash-total strong { margin-top: 4px; font-size: 24px; }

@media (max-width: 680px) {
  .courier-viewer-nav { position:sticky; top:0; z-index:4; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px 0; background:var(--cream); }
  .courier-viewer-nav .secondary-button { width:100%; min-width:0; padding-inline:8px; white-space:normal; }
  .courier-header-actions { display:grid; grid-template-columns:1fr; gap:9px; justify-content:stretch; margin:0 0 12px; }
  .courier-header-actions .primary-button,.courier-header-actions .secondary-button { width:100%; min-height:48px; padding:11px 14px; white-space:normal; }
  .courier-location-status { margin:0 0 18px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.62); line-height:1.35; }
  .courier-page-header { align-items: stretch; }
  .courier-page-header > button { width: 100%; }
  .courier-route { display: grid; grid-template-columns: 1fr; }
  .courier-route > span { transform: rotate(90deg); justify-self: center; }
  .courier-action-grid,.courier-summary-grid { grid-template-columns: 1fr; }
  .courier-offer-card,.courier-active-card { padding: 17px; border-radius: 20px; }
}

/* Product configuration editor */
.product-editor-backdrop { z-index: 95; padding: 18px; }
.product-editor-modal { display: flex; flex-direction: column; width: min(1500px,calc(100vw - 36px)); height: calc(100dvh - 36px); max-width: none; max-height: none; overflow: hidden; border-radius: 24px; }
.product-editor-modal > .modal-heading { position: relative; z-index: 3; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.product-editor-modal > form { display: grid; flex: 1; grid-template-rows: minmax(0,1fr) auto; min-height: 0; }
.product-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; min-height: 0; overflow: hidden; }
.product-editor-main { min-width: 0; padding: 22px; overflow: auto; background: var(--cream); }
.product-editor-panel { padding: 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 8px 26px rgba(11,31,51,.04); }
.product-editor-section-head,.product-editor-group > header,.product-editor-option-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-editor-section-head h3,.product-editor-group h3,.product-editor-section-head h4 { margin: 0; font: 800 18px "Sora",sans-serif; }
.product-editor-section-head p,.product-editor-group header small,.product-assignment-rules p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.product-editor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.product-editor-grid label,.product-dependency-row label { display: grid; align-content: start; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.product-editor-grid input,.product-editor-grid select,.product-editor-grid textarea,.product-dependency-row select,.group-library-bar select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 9px 11px; font: inherit; }
.product-editor-grid textarea { resize: vertical; }
.product-editor-grid .editor-wide { grid-column: span 2; }
.product-editor-grid .editor-check,.product-editor-option .option-enabled { display: flex; align-items: center; align-self: end; min-height: 42px; }
.product-editor-grid .editor-check input,.product-editor-option .option-enabled input { width: 18px; min-height: 18px; }
.group-library-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 15px; background: var(--aqua-soft); }
.group-library-bar label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.product-editor-groups { display: grid; gap: 16px; margin-top: 18px; }
.product-editor-group { padding: 18px; border: 1px solid #cbdde3; border-radius: 18px; background: #fbfefd; }
.product-editor-group > header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.product-assignment-rules,.product-option-override { margin-top: 15px; border: 1px dashed #aac8d0; border-radius: 13px; background: white; }
.product-assignment-rules summary,.product-option-override summary { padding: 12px 14px; cursor: pointer; color: var(--pine); font-size: 12px; font-weight: 800; }
.product-assignment-rules[open],.product-option-override[open] { padding-bottom: 14px; }
.product-assignment-rules > p,.product-assignment-rules > .product-editor-grid,.product-option-override > .product-editor-grid { margin-inline: 14px; }
.product-editor-options { margin-top: 18px; }
.product-editor-option { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.product-editor-option .option-fields { grid-template-columns: repeat(4,minmax(0,1fr)); }
.text-danger { border: 0; background: transparent; color: #a83d35; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.product-dependency-list { display: grid; gap: 10px; margin-top: 15px; }
.product-dependency-row { display: grid; grid-template-columns: 1.4fr .7fr 1.2fr auto; align-items: end; gap: 10px; padding: 13px; border-radius: 14px; background: var(--aqua-soft); }
.product-editor-preview { padding: 24px; overflow: auto; border-left: 1px solid var(--line); background: white; }
.product-editor-preview > h2 { margin: 7px 0; font: 800 25px "Sora",sans-serif; }
.product-editor-preview > p { color: var(--ink-soft); font-size: 12px; }
.product-editor-preview > strong { display: block; margin: 18px 0; color: var(--coral); font: 850 27px "Sora",sans-serif; }
.product-editor-preview section { padding: 14px 0; border-top: 1px solid var(--line); }
.product-editor-preview section > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.product-editor-preview section small { color: var(--ink-soft); }
.product-editor-preview section > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.product-editor-preview section span { padding: 7px 9px; border: 1px solid var(--cyan); border-radius: 999px; color: var(--pine); font-size: 10px; }
.product-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -8px 24px rgba(11,31,51,.05); }
.product-editor-footer > span { color: var(--ink-soft); font-size: 11px; }
.product-editor-footer > div { display: flex; gap: 10px; }

@media (max-width: 1050px) {
  .product-editor-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .product-editor-grid,.product-editor-option .option-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-dependency-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .directory-results-header { grid-template-columns:1fr; gap:14px; }
  .directory-results-intro { padding:0; }
  .directory-results-intro h1 { max-width:none; }
  .directory-results-actions { padding:14px; }
  .directory-filters { grid-template-columns:1fr; }
  .directory-view-switcher .secondary-button { flex:1; }
  .directory-map-legend { align-items:flex-start; flex-direction:column; gap:5px; }
  .directory-card-grid { grid-template-columns:1fr; }
  .directory-map-canvas { height:320px; }
  .directory-detail-fields { grid-template-columns:1fr; }
  .product-editor-backdrop { padding: 0; }
  .product-editor-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .product-editor-layout { display: block; overflow: auto; }
  .product-editor-main { overflow: visible; padding: 12px; }
  .product-editor-preview { border-top: 1px solid var(--line); border-left: 0; }
  .product-editor-panel { padding: 15px; border-radius: 16px; }
  .product-editor-section-head,.product-editor-group > header { align-items: stretch; flex-direction: column; }
  .product-editor-grid,.product-editor-option .option-fields,.product-dependency-row,.group-library-bar { grid-template-columns: 1fr; }
  .product-editor-grid .editor-wide { grid-column: auto; }
  .product-editor-footer { align-items: stretch; flex-direction: column; padding: 12px; }
  .product-editor-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}
.sales-availability-banner { display: grid; gap: .25rem; padding: .9rem 1rem; border: 1px solid #ff9b91; border-radius: 16px; background: #fff0ed; color: #70231d; }
.sales-availability-banner strong { color: #b42d24; }
.sales-paused-note { margin: .25rem 0; color: #8b342d; font-weight: 700; }
.business-card.sales-paused .business-visual img { filter: saturate(.72); }
.business-card .badge.paused { background: #fff0ed; color: #a62e25; }

/* Operational product availability and customer order revisions */
.product-availability,.operational-state { display:inline-flex; align-items:center; gap:7px; width:max-content; font-size:11px; font-weight:800; }
.product-availability i,.operational-state i { width:9px; height:9px; border-radius:50%; background:#2b9366; box-shadow:0 0 0 3px rgba(43,147,102,.13); }
.product-availability.low,.state-low_availability { color:#8a5a00; }
.product-availability.low i,.state-low_availability i { background:#f2b536; box-shadow:0 0 0 3px rgba(242,181,54,.18); }
.state-unavailable { color:#a7342b; }
.state-unavailable i { background:#dc5146; box-shadow:0 0 0 3px rgba(220,81,70,.16); }
.product-low-notice { display:grid; gap:4px; margin:12px 0; padding:12px 14px; border:1px solid #edc268; border-radius:14px; background:#fff8df; color:#6f4a00; }
.product-availability-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding:11px; border-radius:13px; background:#f5faf9; }
.warning-button { border:1px solid #e2b54f; border-radius:12px; background:#fff4ca; color:#6e4900; padding:10px 14px; font:inherit; font-weight:800; cursor:pointer; }
.compact { min-height:32px; padding:6px 10px; font-size:10px; }
.kitchen-availability-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:7px; }
.kitchen-product-panel { margin:20px 0; padding:18px; border:1px solid var(--line); border-radius:20px; background:var(--paper); }
.kitchen-product-panel p { margin:4px 0 0; color:var(--ink-soft); font-size:11px; }
.kitchen-product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; margin-top:14px; }
.kitchen-product-grid article { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fbfefd; }
.kitchen-product-grid article>div:first-child { display:grid; gap:4px; }
.kitchen-product-grid small { color:var(--ink-soft); }
.low-availability { border-color:#e8bf60 !important; background:#fffdf5; }
.order-summary-card.needs-confirmation { border-color:#e36b5f; background:#fff6f4; animation:order-attention-pulse 2.4s ease-in-out infinite; }
.order-attention-message { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:2px 8px; color:#962e25; }
.order-attention-message i { grid-row:span 2; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#d8473c; color:white; font-style:normal; font-weight:900; }
.order-attention-message small { color:#74423e; }
.order-attention-panel,.business-revision-summary { display:grid; gap:5px; margin:12px 0; padding:14px; border:1px solid #e8786d; border-radius:14px; background:#fff1ef; color:#762820; }
.business-revision-summary { grid-template-columns:1fr auto; border-color:#ebbc58; background:#fff8df; color:#624400; }
.business-revision-summary strong { grid-column:1/-1; }
.unavailable-order-item { opacity:.68; text-decoration-color:#b63a30; }
.unavailable-order-item small { color:#aa382f !important; font-weight:800; }
.revised-business-order { border-color:#eab84e; box-shadow:0 0 0 3px rgba(234,184,78,.15); }
.status-awaiting_customer_confirmation { background:#fff1ef !important; color:#9a3128 !important; }
.status-revised_pending_acceptance { background:#fff4ca !important; color:#735000 !important; }
@keyframes order-attention-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(216,71,60,0)} 50%{box-shadow:0 0 0 6px rgba(216,71,60,.13)} }
@media (prefers-reduced-motion:reduce) { .order-summary-card.needs-confirmation { animation:none; box-shadow:0 0 0 3px rgba(216,71,60,.13); } }

/* Customer canvas refinement: keep the conversation and visual result as separate surfaces. */
.customer-mobile-navigation { display: none; }

@media (max-width: 820px) {
  :root { --mobile-nav: 58px; }

  .app-shell[data-role="customer"] .main-content {
    padding: 14px 12px calc(var(--mobile-nav) + 124px);
    background: var(--cream);
  }

  .app-shell[data-role="customer"] .page-header {
    margin-bottom: 14px;
    gap: 10px 14px;
  }

  .app-shell[data-role="customer"] .page-header h1 {
    font-size: clamp(22px, 6vw, 27px);
    letter-spacing: -.035em;
  }

  .app-shell[data-role="customer"] .page-header p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
  }

  .app-shell[data-role="customer"] .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .app-shell[data-role="customer"] .section { margin-top: 20px; }
  .app-shell[data-role="customer"] .section-title { font-size: 17px; margin-bottom: 10px; }
  .app-shell[data-role="customer"] .results-grid,
  .app-shell[data-role="customer"] .product-card-grid { grid-template-columns: 1fr; gap: 10px; }

  .app-shell[data-role="customer"] .business-card {
    border-radius: 15px;
    display: grid;
    grid-template-columns: clamp(108px,29vw,126px) minmax(0, 1fr);
  }

  .app-shell[data-role="customer"] .business-visual {
    height: 100%;
    min-height: 132px;
    padding: 9px;
  }

  .app-shell[data-role="customer"] .business-body { gap: 8px; padding: 12px; }
  .app-shell[data-role="customer"] .business-title { gap: 7px; }
  .app-shell[data-role="customer"] .business-title h2 { font-size: 15px; line-height: 1.15; }
  .app-shell[data-role="customer"] .rating { font-size: 11px; }
  .app-shell[data-role="customer"] .business-meta { gap: 8px; margin: 6px 0 9px; font-size: 11px; flex-wrap: wrap; }
  .app-shell[data-role="customer"] .business-service-hours { font-size: 10px; }
  .app-shell[data-role="customer"] .card-action,
  .app-shell[data-role="customer"] .primary-button,
  .app-shell[data-role="customer"] .secondary-button,
  .app-shell[data-role="customer"] .danger-button { min-height: 36px; padding: 8px 11px; border-radius: 10px; font-size: 12px; }

  .app-shell[data-role="customer"] .compact-business-list,
  .app-shell[data-role="customer"] .compact-catalog-menu { border-radius: 14px; }
  .app-shell[data-role="customer"] .compact-business-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    min-height: 54px;
    padding: 8px 11px;
  }
  .app-shell[data-role="customer"] .compact-business-name { display: grid; gap: 2px; }
  .app-shell[data-role="customer"] .compact-business-name > strong { font-size: 13px; }
  .app-shell[data-role="customer"] .compact-business-name > small { font-size: 11px; }
  .app-shell[data-role="customer"] .business-availability { grid-column: 1; font-size: 10px; }
  .app-shell[data-role="customer"] .compact-business-view { grid-column: 2; grid-row: 1 / span 2; min-height: 32px; padding: 6px 9px; font-size: 11px; }

  .app-shell[data-role="customer"] .catalog-business-header { margin-bottom: 10px; }
  .app-shell[data-role="customer"] .catalog-category-filter { gap: 6px; margin-bottom: 10px; padding-bottom: 3px; }
  .app-shell[data-role="customer"] .catalog-category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    padding-inline: 2px 28px;
  }
  .app-shell[data-role="customer"] .catalog-category-filter::-webkit-scrollbar { display: none; }
  .app-shell[data-role="customer"] .catalog-category-filter button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 31px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .app-shell[data-role="customer"] .catalog-product-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 122px; border-radius: 14px; }
  .app-shell[data-role="customer"] .catalog-product-image { min-height: 122px; }
  .app-shell[data-role="customer"] .catalog-product-body { padding: 11px; }
  .app-shell[data-role="customer"] .catalog-product-body small { font-size: 10px; }
  .app-shell[data-role="customer"] .catalog-product-body h2 { margin: 3px 0 4px; font-size: 14px; line-height: 1.2; }
  .app-shell[data-role="customer"] .catalog-product-body p { margin-bottom: 7px; font-size: 11px; line-height: 1.3; }
  .app-shell[data-role="customer"] .compact-menu-category > h2 { padding: 11px 12px 8px; font-size: 14px; }
  .app-shell[data-role="customer"] .compact-menu-products { padding: 0 12px 5px; }
  .app-shell[data-role="customer"] .compact-menu-row { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; min-height: 44px; padding: 6px 0; }
  .app-shell[data-role="customer"] .compact-menu-product > strong,
  .app-shell[data-role="customer"] .compact-menu-price { font-size: 12px; }
  .app-shell[data-role="customer"] .compact-menu-view { min-height: 30px; padding: 5px 7px; font-size: 10px; }

  .app-shell[data-role="customer"] .product-layout { grid-template-columns: 1fr; border-radius: 15px; }
  .app-shell[data-role="customer"] .product-art { min-height: 190px; max-height: 230px; }
  .app-shell[data-role="customer"] .product-config { padding: 16px; }
  .app-shell[data-role="customer"] .product-config h1 { font-size: 24px; }
  .app-shell[data-role="customer"] .product-config > p { font-size: 12px; line-height: 1.45; }
  .app-shell[data-role="customer"] .option-group { padding: 13px 0; }
  .app-shell[data-role="customer"] .option-group h3 { font-size: 13px; }
  .app-shell[data-role="customer"] .option-chip { padding: 8px 10px; font-size: 12px; }
  .app-shell[data-role="customer"] .price { font-size: 21px; }

  .app-shell[data-role="customer"] .customer-mobile-navigation {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    height: var(--mobile-nav);
    padding: 2px 8px env(safe-area-inset-bottom);
    background: rgba(255,254,251,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(11,31,51,.06);
    backdrop-filter: blur(14px);
  }

  .app-shell[data-role="customer"] .workspace.canvas-active:not(.assistant-open) ~ .customer-mobile-navigation { display: grid; }
  .app-shell[data-role="customer"] .customer-mobile-navigation button {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 44px;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 10px;
    line-height: 1.1;
  }
  .app-shell[data-role="customer"] .customer-mobile-navigation button.active { color: var(--coral); font-weight: 750; }
  .app-shell[data-role="customer"] .mobile-nav-icon { font-size: 18px; line-height: 1; }
  .app-shell[data-role="customer"] .mobile-nav-count {
    position: absolute;
    top: 5px;
    margin-left: 24px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border: 2px solid var(--paper);
    border-radius: 99px;
    background: var(--coral);
    color: white;
    font-size: 9px;
    line-height: 11px;
  }

  .app-shell[data-role="customer"] .mobile-ai-bar {
    right: 12px;
    bottom: calc(var(--mobile-nav) + 7px);
    left: auto;
    width: 46px;
    height: 46px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }
  .app-shell[data-role="customer"] .mobile-ai-bar span:nth-child(2) { display: none; }
  .app-shell[data-role="customer"] .mobile-ai-bar span:last-child { display: none; }
  .app-shell[data-role="customer"] .mobile-ai-bar .ai-spark { font-size: 20px; }

  .app-shell[data-role="customer"] .cart-dock {
    display: none !important;
    right: 12px;
    bottom: calc(var(--mobile-nav) + 62px);
    left: 12px;
    width: auto;
    padding: 9px 10px;
    border-radius: 14px;
  }
  .app-shell[data-role="customer"] .cart-dock-copy { gap: 8px; }
  .app-shell[data-role="customer"] .cart-dock-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 16px; }
  .app-shell[data-role="customer"] .cart-dock-copy strong { font-size: 12px; }
  .app-shell[data-role="customer"] .cart-dock-copy small,
  .app-shell[data-role="customer"] .cart-dock-copy span { font-size: 10px; }
  .app-shell[data-role="customer"] .cart-dock-actions button { min-height: 34px; font-size: 11px; }
}

@media (max-width: 430px) {
  .app-shell[data-role="customer"] .main-content { padding-inline: 9px; }
  .app-shell[data-role="customer"] .business-card { grid-template-columns: clamp(108px,29vw,118px) minmax(0,1fr); }
  .app-shell[data-role="customer"] .business-visual { min-height: 124px; }
  .app-shell[data-role="customer"] .business-body { padding: 10px; }
  .app-shell[data-role="customer"] .business-meta { display: grid; gap: 3px; }
  .app-shell[data-role="customer"] .compact-menu-row { grid-template-columns: minmax(0,1fr) auto; }
  .app-shell[data-role="customer"] .compact-menu-view { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 820px) {
  /* Customer navigation owns profile, orders and cart on mobile. */
  .app-shell[data-role="customer"] .topbar .orders-button,
  .app-shell[data-role="customer"] .topbar .cart-button,
  .app-shell[data-role="customer"] .topbar .avatar-button { display: none !important; }
  .app-shell[data-role="customer"] .topbar .location-pill {
    width: auto;
    min-width: 40px;
    padding: 0 10px;
  }
  .app-shell[data-role="customer"] .topbar .location-pill span:last-child {
    display: inline;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .app-shell[data-role="customer"] .customer-mobile-navigation {
    display: grid;
    z-index: 80;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    border-top: 2px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11,31,51,.14);
    opacity: 1;
  }
  .app-shell[data-role="customer"]:has(#modal-root .modal-backdrop) .customer-mobile-navigation {
    display: none !important;
  }
  .app-shell.booting .customer-mobile-navigation { display: none !important; }
  .app-shell[data-role="customer"] .assistant-panel { bottom: var(--mobile-nav); }
  .app-shell[data-role="customer"] .workspace:not(.canvas-active) .assistant-panel {
    inset: var(--topbar) 0 var(--mobile-nav);
  }
  .app-shell[data-role="customer"] .catalog-view-switch-row {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 10px;
  }
  .app-shell[data-role="customer"] .catalog-view-switch-row .catalog-view-toggle {
    width: 42px;
    height: 42px;
  }
  .app-shell[data-role="customer"] .customer-mobile-navigation button {
    color: var(--pine-2);
    font-size: 11px;
    font-weight: 650;
  }
  .app-shell[data-role="customer"] .customer-mobile-navigation button.active {
    color: var(--coral);
  }
  .app-shell[data-role="customer"] .customer-mobile-navigation .mobile-nav-icon {
    color: currentColor;
    font-size: 19px;
  }
}

/* Product viewer: image and configuration must remain separate surfaces on narrow screens. */
.app-shell[data-role="customer"] .product-layout { min-width: 0; }
.app-shell[data-role="customer"] .product-art,
.app-shell[data-role="customer"] .product-config { min-width: 0; }
.app-shell[data-role="customer"] .product-art { position: relative; isolation: isolate; overflow: hidden; }
.app-shell[data-role="customer"] .product-art img { display: block; position: relative; z-index: 0; }
.app-shell[data-role="customer"] .product-config { position: relative; z-index: 1; background: var(--paper); }

@media (max-width: 820px) {
  .app-shell[data-role="customer"] .product-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }
  .app-shell[data-role="customer"] .product-art {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.35;
  }
  .app-shell[data-role="customer"] .product-art img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
  .app-shell[data-role="customer"] .product-config {
    flex: 0 0 auto;
    width: 100%;
    padding: 15px;
  }
  .app-shell[data-role="customer"] .product-config h1 { margin-top: 2px; }
  .app-shell[data-role="customer"] .product-total {
    align-items: flex-end;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

/* Final customer action normalization, after responsive overrides. */
.app-shell[data-role="customer"] .card-action,
.app-shell[data-role="customer"] .compact-business-view,
.app-shell[data-role="customer"] .compact-menu-view {
  min-width: 52px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.app-shell[data-role="customer"] .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid rgba(34,199,217,.2);
  border-radius: 10px;
  background: var(--mint);
  color: var(--pine);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  width: max-content;
  justify-self: start;
}
.app-shell[data-role="customer"] .back-button:hover { border-color: var(--cyan); background: #d5f6f8; }
.app-shell[data-role="customer"] .back-button:focus-visible { outline: 3px solid rgba(34,199,217,.35); outline-offset: 2px; }
.app-shell[data-role="customer"] .cart-page-header h1 { margin-top: 0; }

.app-shell[data-role="customer"] .orders-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.app-shell[data-role="customer"] .orders-header-row h1 { margin: 0; }
