:root {
  color-scheme: light;
  --ink: #171714;
  --muted: #77766f;
  --line: #e8e4d9;
  --paper: #f6f4ee;
  --surface: #fffdf8;
  --accent: #ef5a2f;
  --accent-dark: #d84620;
  --accent-soft: #fff0e8;
  --green: #277c53;
  --green-soft: #e4f4eb;
  --shadow: 0 20px 55px rgba(54, 44, 30, .09);
  --side: 238px;
  --order: 326px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.app-shell { min-height: 100vh; padding-left: var(--side); padding-right: var(--order); }
.side-panel, .order-panel { position: fixed; top: 0; bottom: 0; z-index: 20; background: var(--surface); }
.side-panel { left: 0; display: flex; width: var(--side); flex-direction: column; padding: 24px 17px; border-right: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; padding: 7px; color: inherit; background: transparent; text-align: left; }
.brand-mark, .assistant-avatar { display: grid; place-items: center; color: white; background: var(--ink); border-radius: 15px; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 43px; background: #fff; padding: 3px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark svg, .assistant-avatar svg { stroke: none; fill: currentColor; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 900; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.main-nav { display: grid; gap: 6px; margin-top: 38px; }
.nav-button { position: relative; display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 0 13px; color: #77766f; background: transparent; border-radius: 12px; font-size: 12px; font-weight: 800; text-align: left; }
.nav-button:hover, .nav-button.active { color: var(--accent-dark); background: var(--accent-soft); }
.nav-button svg { width: 18px; }
.nav-count { min-width: 20px; padding: 3px 6px; margin-left: auto; color: white; background: var(--accent); border-radius: 99px; font-size: 9px; font-style: normal; text-align: center; }
.side-callout { padding: 17px; margin-top: auto; background: var(--ink); border-radius: 16px; }
.side-callout span { display: block; margin-bottom: 12px; color: #b7b4aa; font-size: 10px; }
.side-callout a { display: flex; align-items: center; gap: 8px; color: white; font-size: 11px; font-weight: 900; text-decoration: none; }
.side-callout svg { width: 17px; color: #ff8b68; }

.order-panel { right: 0; display: flex; width: var(--order); flex-direction: column; padding: 28px 22px; border-left: 1px solid var(--line); }
.order-panel-head { display: flex; align-items: flex-start; justify-content: space-between; }
.order-panel h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.text-button { padding: 6px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.text-button:hover { color: var(--accent); }
.cart-lines { display: grid; gap: 10px; margin: 23px 0; overflow: auto; }
.order-panel .cart-lines { flex: 1; }
.cart-empty { display: grid; min-height: 210px; place-items: center; padding: 26px 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.cart-empty svg { width: 28px; height: 28px; margin-bottom: 10px; color: #bbb5a8; }
.cart-empty strong, .cart-empty span { display: block; }
.cart-empty strong { color: var(--ink); font-size: 12px; }
.cart-empty span { margin-top: 5px; font-size: 10px; line-height: 1.5; }
.cart-line { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; background: #faf8f2; border: 1px solid #eee9de; border-radius: 13px; }
.cart-line-art { display: grid; width: 46px; height: 46px; place-items: center; color: white; background: linear-gradient(145deg, #ff9268, var(--accent)); border-radius: 11px; font-size: 16px; font-weight: 900; }
.cart-line-copy { min-width: 0; }
.cart-line-copy strong, .cart-line-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-copy strong { font-size: 11px; }
.cart-line-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.line-actions { display: grid; justify-items: end; gap: 7px; }
.line-actions strong { font-size: 10px; }
.quantity-control { display: flex; align-items: center; gap: 7px; }
.quantity-control button { display: grid; width: 21px; height: 21px; place-items: center; color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; font-size: 13px; }
.quantity-control span { min-width: 10px; font-size: 9px; font-weight: 900; text-align: center; }
.order-panel-foot { padding-top: 18px; border-top: 1px solid var(--line); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; }
.total-row span { color: var(--muted); font-size: 11px; font-weight: 700; }
.total-row strong { font-size: 22px; letter-spacing: -.05em; }
.primary-button, .secondary-button { width: 100%; min-height: 49px; border-radius: 12px; font-size: 11px; font-weight: 900; }
.primary-button { margin-top: 17px; color: white; background: var(--accent); box-shadow: 0 10px 25px rgba(239, 90, 47, .2); }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.secondary-button { margin-top: 8px; color: var(--ink); background: #ece8de; }
.order-panel-foot p { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 12px 0 0; color: var(--muted); font-size: 8px; }
.order-panel-foot p svg { width: 13px; color: var(--green); }

.main-stage { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 12px; min-height: 74px; align-items: center; justify-content: space-between; padding: 13px 24px; background: rgba(246, 244, 238, .9); border-bottom: 1px solid rgba(232, 228, 217, .8); backdrop-filter: blur(16px); }
.topbar-brand { display: none; align-items: center; gap: 10px; min-width: 0; padding: 4px 6px 4px 4px; color: inherit; background: transparent; border-radius: 12px; text-align: left; }
.topbar-brand:hover { background: rgba(255, 255, 255, .55); }
.topbar-brand-mark { display: grid; width: 36px; height: 36px; place-items: center; flex: 0 0 36px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.topbar-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar-brand-name { overflow: hidden; font-size: 13px; font-weight: 900; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-status { display: grid; grid-template-columns: auto auto; gap: 1px 7px; align-items: center; margin-left: auto; }
.open-dot { width: 7px; height: 7px; background: #36a46d; border-radius: 99px; box-shadow: 0 0 0 4px var(--green-soft); }
.topbar strong { font-size: 10px; }
.topbar small { grid-column: 2; color: var(--muted); font-size: 8px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.install-button { min-height: 36px; padding: 0 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; font-size: 9px; font-weight: 800; }
.cart-button { position: relative; display: none; width: 38px; height: 38px; place-items: center; color: white; background: var(--ink); border-radius: 11px; }
.cart-button svg { width: 17px; }
.cart-button span { position: absolute; top: -5px; right: -4px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; color: white; background: var(--accent); border: 2px solid var(--paper); border-radius: 99px; font-size: 7px; font-weight: 900; }
.view { display: none; min-height: calc(100vh - 74px); }
.view.active { display: block; }

.home-page {
  min-height: calc(100vh - 74px);
  padding: clamp(28px, 5vw, 52px) max(24px, calc((100% - 720px) / 2)) 40px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(239, 90, 47, .14), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(23, 23, 20, .04), transparent 40%),
    var(--paper);
}
.home-hero { margin-bottom: clamp(28px, 4vw, 40px); }
.home-brand-lockup { text-align: center; }
.home-flame-mark {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  place-items: center;
  background: #fff;
  border: 8px solid #e9e5da;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 8px;
  overflow: hidden;
}
.home-flame-mark img { width: 100%; height: 100%; object-fit: contain; }
.home-flame-mark svg { width: 38px; height: 38px; stroke: none; fill: currentColor; }
.home-brand-lockup h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
}
.home-tagline {
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.home-status {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 12px 18px;
  background: rgba(255, 253, 248, .85);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(54, 44, 30, .06);
}
.home-status strong { display: block; font-size: 11px; }
.home-status small { display: block; color: var(--muted); font-size: 9px; }
.home-actions { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.home-action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(54, 44, 30, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-action-card:hover {
  transform: translateY(-2px);
  border-color: #efb9a8;
  box-shadow: 0 16px 40px rgba(239, 90, 47, .12);
}
.home-action-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
}
.home-action-icon svg { width: 22px; height: 22px; }
.home-action-chat .home-action-icon { color: var(--accent-dark); background: var(--accent-soft); }
.home-action-voice .home-action-icon { color: white; background: var(--ink); }
.home-action-call .home-action-icon { color: #277c53; background: var(--green-soft); }
.home-action-copy strong { display: block; font-size: 13px; font-weight: 900; }
.home-action-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.home-action-arrow { color: var(--accent); font-size: 20px; font-weight: 700; }
.home-contacts {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 18px;
  background: rgba(255, 253, 248, .85);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(54, 44, 30, .06);
}
.home-contacts-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.home-contacts-grid {
  display: grid;
  gap: 8px;
}
.home-contact-link,
.home-contact-map {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s ease, transform .18s ease;
}
.home-contact-link:hover,
.home-contact-map:hover {
  transform: translateY(-1px);
  border-color: #efb9a8;
}
.home-contact-map { margin-top: 8px; }
.home-contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 12px;
}
.home-contact-icon svg { width: 18px; height: 18px; stroke: none; fill: currentColor; }
.home-contact-map .home-contact-icon { color: #277c53; background: var(--green-soft); }
.home-contact-copy strong { display: block; font-size: 12px; font-weight: 900; }
.home-contact-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.home-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-top: 28px;
}
.home-secondary-link {
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-secondary-tel { color: var(--muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.home-secondary-tel:hover { color: var(--accent-dark); }
.callback-dialog { width: min(420px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 18px; }
.callback-dialog::backdrop { background: rgba(23, 23, 20, .45); backdrop-filter: blur(4px); }
.callback-dialog form { padding: 28px 24px 24px; }
.callback-alt { margin: 14px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.callback-alt a { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.callback-alt a:hover { text-decoration: underline; }

.chat-layout { display: flex; height: calc(100vh - 74px); flex-direction: column; }
.chat-scroll { flex: 1; overflow: auto; padding: 30px max(24px, calc((100% - 700px) / 2)); }
.welcome { padding: 5vh 0 26px; text-align: center; }
.assistant-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 11px; }
.assistant-avatar.large { width: 68px; height: 68px; margin: 0 auto 18px; color: #fff0e7; background: linear-gradient(145deg, #23231f, #070706); border: 7px solid #e9e5da; border-radius: 22px; box-shadow: var(--shadow); }
.assistant-avatar.large svg { width: 30px; height: 30px; }
.welcome h1, .page-title h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -.055em; }
.welcome > p:not(.eyebrow) { max-width: 480px; margin: 12px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.suggestions { display: grid; max-width: 530px; gap: 8px; margin: 27px auto 0; }
.suggestions button { display: flex; min-height: 45px; align-items: center; justify-content: space-between; padding: 0 15px; color: #56544d; background: rgba(255, 253, 248, .7); border: 1px solid var(--line); border-radius: 12px; font-size: 10px; font-weight: 800; text-align: left; }
.suggestions button:hover { color: var(--accent-dark); background: var(--surface); border-color: #efb9a8; transform: translateY(-1px); }
.suggestions span { color: var(--accent); font-size: 16px; }
.messages { display: grid; gap: 19px; }
.message { display: flex; gap: 10px; align-items: flex-start; animation: rise .24s ease both; }
.message.user { justify-content: flex-end; }
.message-body { display: flex; flex-direction: column; gap: 8px; max-width: min(86%, 600px); }
.message.user .message-body { align-items: flex-end; }
.message.assistant .message-body { align-items: flex-start; }
.message-bubble { max-width: 100%; padding: 11px 14px; color: #47463f; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; font-size: 11px; line-height: 1.6; box-shadow: 0 7px 22px rgba(54, 44, 30, .045); }
.message.user .message-bubble { color: white; background: var(--ink); border: 0; border-radius: 14px 4px 14px 14px; }
.message.loading .message-bubble { display: flex; gap: 4px; padding: 15px; }
.message.loading i { width: 5px; height: 5px; background: #aaa69b; border-radius: 99px; animation: pulse 1s infinite; }
.message.loading i:nth-child(2) { animation-delay: .15s; }
.message.loading i:nth-child(3) { animation-delay: .3s; }
.composer-wrap { padding: 10px max(24px, calc((100% - 700px) / 2)) 15px; background: linear-gradient(transparent, var(--paper) 18%); }
.voice-shortcut button { display: flex; width: 100%; min-height: 49px; align-items: center; gap: 12px; padding: 7px 11px; margin-bottom: 8px; color: white; background: var(--ink); border-radius: 14px; text-align: left; box-shadow: 0 9px 30px rgba(23, 23, 20, .14); }
.voice-shortcut button > span:nth-child(2) { flex: 1; }
.voice-shortcut strong, .voice-shortcut small { display: block; }
.voice-shortcut strong { font-size: 10px; }
.voice-shortcut small { margin-top: 2px; color: #aaa79e; font-size: 8px; }
.voice-shortcut svg { width: 15px; color: #aaa79e; }
.voice-waves { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; gap: 2px; color: white; background: var(--accent); border-radius: 10px; }
.voice-waves i { width: 2px; height: 8px; background: currentColor; border-radius: 99px; animation: wave 1s ease-in-out infinite alternate; }
.voice-waves i:nth-child(2) { height: 14px; animation-delay: .2s; }
.voice-waves i:nth-child(3) { height: 10px; animation-delay: .4s; }
.voice-waves i:nth-child(4) { height: 5px; animation-delay: .6s; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) 38px 38px; gap: 5px; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 12px 32px rgba(54, 44, 30, .07); }
.composer:focus-within { border-color: #e5ac9a; box-shadow: 0 0 0 4px rgba(239, 90, 47, .08); }
.composer textarea { min-height: 38px; max-height: 110px; padding: 10px 8px; resize: none; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; line-height: 1.5; }
.mic-button, .send-button { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; }
.mic-button { color: #6d6a62; background: #f0ede5; }
.mic-button.listening { color: white; background: var(--accent); animation: softPulse 1s infinite; }
.send-button { color: white; background: var(--accent); }
.mic-button svg, .send-button svg { width: 16px; }
.composer-note { margin: 7px 0 0; color: #aaa69b; font-size: 7px; text-align: center; }

.page-wrap { width: min(1120px, 100%); padding: 35px 30px 60px; margin: 0 auto; }
.page-title { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; }
.page-title p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.voice-order-button { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 14px; color: white; background: var(--ink); border-radius: 12px; font-size: 9px; font-weight: 900; }
.voice-order-button svg { width: 15px; color: #ff8b68; }
.category-tabs { display: flex; gap: 7px; margin: 28px 0 20px; overflow-x: auto; scrollbar-width: none; }
.category-tabs button { min-height: 37px; flex: 0 0 auto; padding: 0 14px; color: #747168; background: #ebe7dd; border-radius: 99px; font-size: 9px; font-weight: 900; }
.category-tabs button.active { color: white; background: var(--accent); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.menu-card { position: relative; display: flex; min-height: 220px; flex-direction: column; padding: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 9px 26px rgba(54, 44, 30, .045); animation: rise .3s ease both; }
.menu-card.sold-out { filter: grayscale(1); opacity: .55; }
.menu-card-art { position: relative; display: grid; height: 98px; place-items: center; overflow: hidden; margin-bottom: 13px; color: rgba(255,255,255,.9); background: radial-gradient(circle at 35% 25%, #ffa27d, #ef5a2f 58%, #9e3218); border-radius: 13px; font-family: Georgia, serif; font-size: 42px; font-weight: 700; }
.menu-card[data-category="acompanhamentos"] .menu-card-art { background: radial-gradient(circle at 35% 25%, #c4d58c, #66854a 65%, #304e2c); }
.menu-card[data-category="bebidas"] .menu-card-art { background: radial-gradient(circle at 35% 25%, #9fcbdd, #397a9b 65%, #18465d); }
.menu-card[data-category="sobremesas"] .menu-card-art { background: radial-gradient(circle at 35% 25%, #e4ba8b, #a5683f 65%, #5a321e); }
.menu-card-art::after { position: absolute; right: -20px; bottom: -30px; width: 90px; height: 90px; content: ""; border: 14px solid rgba(255,255,255,.1); border-radius: 99px; }
.menu-card-art::before { position: absolute; inset: 0; content: ""; background-image: var(--img-url); background-size: cover; background-position: center; border-radius: inherit; }
.menu-card-art:has(::before) .menu-card-art-fallback { opacity: 0; }
.menu-card h3 { margin: 0; font-size: 12px; }
.menu-card p { display: -webkit-box; min-height: 30px; margin: 6px 0 10px; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.menu-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.menu-card-price strong, .menu-card-price span { display: block; }
.menu-card-price strong { font-size: 12px; }
.menu-card-price span { margin-top: 1px; color: var(--muted); font-size: 7px; }
.add-button { display: grid; width: 32px; height: 32px; place-items: center; color: white; background: var(--accent); border-radius: 10px; font-size: 18px; font-weight: 500; }
.sold-out .add-button { background: #888; }
.sold-label { position: absolute; top: 22px; left: 22px; z-index: 1; padding: 5px 8px; color: white; background: var(--ink); border-radius: 6px; font-size: 7px; font-weight: 900; text-transform: uppercase; }

.cart-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; margin-top: 28px; }
.large-lines { margin: 0; overflow: visible; }
.large-lines .cart-line { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 13px; background: var(--surface); }
.large-lines .cart-line-art { width: 58px; height: 58px; }
.large-lines .cart-line-copy strong { font-size: 12px; }
.checkout-card { position: sticky; top: 98px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.checkout-card > div { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.checkout-card > div strong { color: var(--ink); }
.checkout-card hr { margin: 17px 0; border: 0; border-top: 1px solid var(--line); }
.checkout-card .total-row strong { font-size: 20px; }

dialog { width: min(440px, calc(100% - 24px)); padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(23, 23, 20, .25); }
dialog::backdrop { background: rgba(23, 23, 20, .55); backdrop-filter: blur(5px); }
dialog form { position: relative; padding: 26px; }
.dialog-close { position: absolute; top: 13px; right: 13px; z-index: 2; display: grid; width: 31px; height: 31px; place-items: center; color: #706e66; background: rgba(255,255,255,.85); border-radius: 99px; font-size: 20px; }
.dialog-art { display: grid; height: 120px; place-items: center; margin: -12px -12px 20px; color: white; background: radial-gradient(circle at 35% 25%, #ffa27d, #ef5a2f 58%, #9e3218); border-radius: 16px; font-family: Georgia, serif; font-size: 54px; font-weight: 700; }
dialog h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.dialog-description { margin: 8px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.option-group { margin: 17px 0; }
.option-group label, .checkout-dialog label { display: block; margin-bottom: 8px; color: #55534d; font-size: 9px; font-weight: 900; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.option-buttons button { min-height: 34px; padding: 0 11px; color: #66635b; background: #eeeae0; border-radius: 9px; font-size: 8px; font-weight: 900; }
.option-buttons button.active { color: white; background: var(--ink); }
.quantity-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; margin-top: 18px; border-top: 1px solid var(--line); }
.quantity-row > span { font-size: 9px; font-weight: 900; }
.quantity-row > div { display: flex; align-items: center; gap: 12px; }
.quantity-row button { display: grid; width: 28px; height: 28px; place-items: center; color: var(--accent-dark); background: var(--accent-soft); border-radius: 8px; font-size: 17px; }
.quantity-row strong { min-width: 12px; font-size: 11px; text-align: center; }
.checkout-dialog form { display: grid; gap: 13px; }
.checkout-icon { display: grid; width: 45px; height: 45px; place-items: center; color: white; background: var(--accent); border-radius: 14px; }
.checkout-icon.brand-logo-icon { background: #fff; padding: 4px; overflow: hidden; }
.checkout-icon.brand-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.checkout-icon svg { width: 19px; }
.checkout-dialog input, .checkout-dialog textarea { width: 100%; min-height: 43px; padding: 10px 11px; margin-top: 5px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; outline: none; font-size: 10px; }
.checkout-dialog textarea { min-height: 70px; resize: vertical; }
.checkout-dialog input:focus, .checkout-dialog textarea:focus { border-color: #e5ac9a; box-shadow: 0 0 0 4px rgba(239, 90, 47, .07); }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: #f3f0e8; border-radius: 12px; }
.checkout-total span { color: var(--muted); font-size: 8px; }
.checkout-total strong { font-size: 16px; }

.voice-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; padding: 25px; color: white; background: radial-gradient(circle at 50% 42%, #4b261b, #171714 45%, #090908); text-align: center; }
.voice-overlay > button:first-child { position: absolute; top: 22px; right: 22px; display: grid; width: 38px; height: 38px; place-items: center; color: white; background: rgba(255,255,255,.12); border-radius: 99px; font-size: 22px; }
.voice-orb { position: relative; display: grid; width: 150px; height: 150px; place-items: center; margin-bottom: 30px; }
.voice-orb span { width: 82px; height: 82px; background: radial-gradient(circle at 32% 28%, #ffd1b8, #ef5a2f 53%, #7c2310); border-radius: 99px; box-shadow: 0 0 50px rgba(239,90,47,.55); animation: breathe 2s ease-in-out infinite; }
.voice-orb i { position: absolute; inset: 15px; border: 1px solid rgba(255,142,106,.35); border-radius: 99px; animation: rings 2s ease-out infinite; }
.voice-orb i:last-child { inset: 0; animation-delay: 1s; }
.voice-overlay .eyebrow { color: #ff9777; }
.voice-overlay h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.voice-overlay > p:not(.eyebrow) { max-width: 420px; min-height: 42px; margin: 13px 0 24px; color: #aaa79e; font-size: 11px; line-height: 1.6; }
.voice-levels { display: flex; height: 32px; align-items: center; gap: 4px; }
.voice-levels i { width: 3px; height: 8px; background: #ff8b68; border-radius: 99px; animation: voiceLevel .7s ease-in-out infinite alternate; }
.voice-levels i:nth-child(2), .voice-levels i:nth-child(6) { height: 20px; animation-delay: .2s; }
.voice-levels i:nth-child(3), .voice-levels i:nth-child(5) { height: 29px; animation-delay: .4s; }
.voice-levels i:nth-child(4) { height: 15px; animation-delay: .6s; }
.end-voice-button { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 16px; margin-top: 25px; color: white; background: #cf3f35; border-radius: 99px; font-size: 9px; font-weight: 900; }
.end-voice-button svg { width: 15px; transform: rotate(135deg); }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 150; max-width: min(380px, calc(100% - 30px)); padding: 12px 15px; color: white; background: var(--ink); border-radius: 11px; box-shadow: var(--shadow); font-size: 10px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(20px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #a8322b; }
.mobile-nav { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes wave { to { transform: scaleY(.45); } }
@keyframes softPulse { 50% { box-shadow: 0 0 0 5px rgba(239,90,47,.15); } }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 70px rgba(239,90,47,.7); } }
@keyframes rings { to { opacity: 0; transform: scale(1.18); } }
@keyframes voiceLevel { to { transform: scaleY(.4); opacity: .35; } }

@media (max-width: 1180px) {
  :root { --side: 205px; --order: 290px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 930px) {
  .app-shell { padding: 0; }
  .side-panel, .order-panel { display: none; }
  .topbar-brand { display: flex; flex: 0 1 auto; min-width: 0; }
  .topbar-status { display: none; }
  .cart-button { display: grid; }
  .main-stage { padding-bottom: 66px; }
  .view { min-height: calc(100vh - 140px); }
  .chat-layout { height: calc(100vh - 140px); }
  .mobile-nav { position: fixed; inset: auto 8px 9px; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; background: rgba(255,253,248,.95); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(54,44,30,.16); backdrop-filter: blur(15px); }
  .mobile-nav button { display: grid; min-height: 48px; place-items: center; align-content: center; gap: 2px; color: #8b877c; background: transparent; border-radius: 11px; font-size: 5px; font-weight: 900; }
  .mobile-nav button.active { color: var(--accent-dark); background: var(--accent-soft); }
  .mobile-nav svg { width: 17px; height: 17px; }
  .mobile-cart-icon { position: relative; }
  .mobile-cart-icon em { position: absolute; top: -7px; right: -12px; display: grid; min-width: 15px; height: 15px; place-items: center; padding: 0 3px; color: white; background: var(--accent); border-radius: 99px; font-size: 6px; font-style: normal; }
  .toast { bottom: 80px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 64px; padding: 10px 13px; }
  .view { min-height: calc(100vh - 130px); }
  .chat-layout { height: calc(100vh - 130px); }
  .chat-scroll { padding: 18px 13px; }
  .welcome { padding-top: 3vh; }
  .welcome h1 { font-size: 32px; }
  .welcome > p:not(.eyebrow) { font-size: 10px; }
  .suggestions { margin-top: 20px; }
  .composer-wrap { padding: 8px 10px 10px; }
  .composer-note { display: none; }
  .message-bubble { max-width: 100%; }
  .message-body { max-width: 92%; }
  .chat-highlight-card { flex-basis: 120px; }
  .page-wrap { padding: 25px 13px 40px; }
  .page-title { align-items: flex-start; flex-direction: column; }
  .home-page { padding: 22px 13px 36px; }
  .home-flame-mark { width: 72px; height: 72px; border-width: 6px; border-radius: 22px; }
  .home-flame-mark svg { width: 30px; height: 30px; }
  .home-brand-lockup h1 { font-size: 34px; }
  .home-tagline { font-size: 11px; }
  .home-action-card { padding: 14px; gap: 12px; }
  .home-action-icon { width: 42px; height: 42px; }
  .page-title h1 { font-size: 34px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .menu-card { min-height: 190px; padding: 10px; border-radius: 15px; }
  .menu-card-art { height: 78px; margin-bottom: 10px; font-size: 32px; }
  .menu-card h3 { font-size: 10px; }
  .menu-card p { font-size: 7px; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .checkout-card { position: static; }
  .large-lines .cart-line { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .large-lines .cart-line-art { width: 48px; height: 48px; }
  dialog form { padding: 21px; }
}

/* Conversations */
.conversations-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.conversations-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.conversations-head strong { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.conversations-list { display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.conversation-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 10px; font-weight: 700; text-align: left; background: transparent; color: var(--ink); cursor: pointer; }
.conversation-item:hover, .conversation-item.active { background: var(--accent-soft); color: var(--accent-dark); }
.conversation-item .conv-type { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--line); font-size: 8px; flex: 0 0 20px; }
.conversation-item.active .conv-type { background: var(--accent); color: white; }
.conversation-item .conv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item .conv-date { color: var(--muted); font-size: 8px; flex: 0 0 auto; }

/* Auth */
.auth-button { display: flex; align-items: center; gap: 6px; padding: 0 11px; min-height: 36px; background: white; border: 1px solid var(--line); border-radius: 10px; font-size: 9px; font-weight: 800; color: var(--ink); }
.auth-button svg { width: 16px; stroke-width: 2; }

/* Login dialog */
.login-dialog { border: none; border-radius: 20px; padding: 0; max-width: 380px; width: 90vw; }
.login-dialog::backdrop { background: rgba(0,0,0,.35); }
.login-dialog form { padding: 28px; }
.login-dialog label { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 800; color: var(--muted); }
.login-dialog input { width: 100%; margin-top: 5px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.login-toggle { text-align: center; margin-top: 12px; }
.login-toggle button { color: var(--accent); font-size: 10px; }

/* Voice overlay redesign */
.voice-overlay { position: fixed; inset: 0; z-index: 100; display: flex; background: rgba(23, 23, 20, .92); backdrop-filter: blur(10px); color: white; }
.voice-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.voice-cart { width: 320px; display: flex; flex-direction: column; padding: 22px; background: rgba(255,255,255,.06); border-left: 1px solid rgba(255,255,255,.08); }
.voice-cart-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.voice-cart-head strong { font-size: 11px; }
.voice-cart-head span { font-size: 13px; font-weight: 900; }
.voice-cart-lines { flex: 1; overflow: auto; display: grid; gap: 8px; }
.voice-cart .cart-line { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: white; }
.voice-cart .cart-line-copy strong { color: white; }
.voice-cart .cart-line-art { background: linear-gradient(145deg, #ff9268, var(--accent)); }

/* Quick register */
.quick-register { margin-top: 10px; }
.quick-register.hidden { display: none; }

/* History */
.history-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.history-tabs button { padding: 8px 14px; border-radius: 10px; font-size: 10px; font-weight: 800; background: transparent; color: var(--muted); }
.history-tabs button.active { background: var(--accent-soft); color: var(--accent-dark); }
.history-content.hidden { display: none; }
.history-order { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.history-order strong { font-size: 12px; }
.history-order small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.history-conversation { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.history-conversation .conv-icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 8px; font-size: 10px; }

@media (max-width: 960px) {
  .voice-overlay { flex-direction: column; }
  .voice-main { padding: 22px 18px; justify-content: flex-start; padding-top: 80px; }
  .voice-cart {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 110;
    width: auto; max-height: 55vh;
    border-left: none; border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(30,28,24,.98);
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    padding: 16px 18px 24px;
  }
  .voice-cart.open { transform: translateY(0); }
  .voice-cart-head { margin-bottom: 10px; }
  .voice-cart-lines { max-height: 180px; }
}

.voice-cart-toggle {
  position: absolute; top: 22px; left: 22px; z-index: 5;
  display: grid; width: 40px; height: 40px; place-items: center;
  color: white; background: rgba(255,255,255,.12);
  border-radius: 99px;
}
.voice-cart-toggle svg { width: 18px; }
.voice-cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  padding: 0 5px; color: white; background: var(--accent);
  border-radius: 99px; font-size: 9px; font-weight: 900;
}
.voice-cart-badge.hidden { display: none; }

/* FAB Cart (mobile) */
.fab-cart { position: fixed; right: 14px; bottom: 148px; z-index: 55; display: flex; height: 40px; align-items: center; gap: 8px; padding: 0 14px; color: white; background: var(--accent); border-radius: 99px; box-shadow: 0 6px 20px rgba(239, 90, 47, .4); transition: transform .25s ease, opacity .25s ease; cursor: pointer; font-size: 11px; font-weight: 800; }
.fab-cart.hidden { transform: scale(0); opacity: 0; pointer-events: none; }
.fab-cart svg { width: 18px; height: 18px; stroke-width: 2; }
.fab-cart span { display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; color: var(--accent); background: white; border-radius: 99px; font-size: 9px; font-weight: 900; }
.fab-cart.popped { animation: fabPop .4s ease; }
@keyframes fabPop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 70% { transform: scale(0.95); } 100% { transform: scale(1); } }

.fab-cart-overlay { position: fixed; inset: 0; z-index: 56; background: rgba(23, 23, 20, .35); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.fab-cart-overlay.open { opacity: 1; pointer-events: auto; }

.fab-cart-sheet { position: fixed; right: 0; bottom: 0; left: 0; z-index: 57; display: flex; max-height: 75vh; flex-direction: column; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(23, 23, 20, .18); transform: translateY(105%); transition: transform .35s cubic-bezier(.32, .72, .35, 1); }
.fab-cart-sheet.open { transform: translateY(0); }
.fab-cart-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fab-cart-sheet-head strong { font-size: 14px; }
.fab-cart-sheet-head button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); background: #f0ede5; border-radius: 50%; font-size: 18px; }
.fab-cart-lines { flex: 1; overflow: auto; display: grid; gap: 8px; margin-bottom: 12px; }
.fab-cart-foot { padding-top: 10px; border-top: 1px solid var(--line); }
.fab-cart-foot .total-row { margin-bottom: 12px; }
.fab-cart-foot .primary-button { margin-top: 0; }

/* Desktop: hide FAB cart */
@media (min-width: 931px) {
  .fab-cart, .fab-cart-overlay, .fab-cart-sheet { display: none !important; }
}

/* Conversations button (mobile topbar) */
.conversations-button { position: relative; display: none; width: 38px; height: 38px; place-items: center; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; }
.conversations-button svg { width: 17px; }
.conversations-button span { position: absolute; top: -5px; right: -4px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; color: white; background: var(--accent); border: 2px solid var(--paper); border-radius: 99px; font-size: 7px; font-weight: 900; }

/* Conversation drawer (mobile) */
.conv-overlay { position: fixed; inset: 0; z-index: 58; background: rgba(23, 23, 20, .35); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.conv-overlay.open { opacity: 1; pointer-events: auto; }
.conv-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 59; display: flex; width: min(320px, 85vw); flex-direction: column; padding: 16px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(23, 23, 20, .15); transform: translateX(105%); transition: transform .35s cubic-bezier(.32, .72, .35, 1); }
.conv-drawer.open { transform: translateX(0); }
.conv-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.conv-drawer-head strong { font-size: 14px; }
.conv-drawer-head button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); background: #f0ede5; border-radius: 50%; font-size: 18px; }
.conv-new-btn { width: 100%; min-height: 40px; margin-bottom: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; font-size: 11px; font-weight: 800; }
.conv-drawer-list { flex: 1; overflow: auto; display: grid; gap: 4px; }
.conv-drawer-list .conversation-item { padding: 10px; border-radius: 10px; font-size: 11px; }

@media (max-width: 930px) {
  .conversations-button { display: grid; }
  .conversations-section { display: none; }
}

/* Chat rich formatting */
.message-bubble .price-tag { color: var(--accent); font-weight: 800; }
.message-bubble ul.chat-list { margin: 8px 0; padding-left: 16px; font-size: 11px; }
.message-bubble ul.chat-list li { margin-bottom: 4px; }
.message-bubble .product-mention { color: var(--accent-dark); font-weight: 700; cursor: pointer; }

.chat-product-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(54,44,30,.06);
  animation: rise .25s ease both;
}
.chat-product-img {
  width: 64px; height: 64px;
  background-size: cover; background-position: center;
  border-radius: 11px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, #ffa27d, #ef5a2f 58%, #9e3218);
}
.chat-product-img .chat-product-art {
  font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: white;
}
.chat-product-info { min-width: 0; }
.chat-product-info strong { display: block; font-size: 11px; }
.chat-product-info span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.chat-product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.chat-product-price { font-size: 11px; font-weight: 800; }
.chat-product-add {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: white; background: var(--accent);
  border-radius: 8px; font-size: 16px; font-weight: 700;
}
.chat-product-add:disabled { background: #bbb; cursor: not-allowed; }

/* Suggestion chips (inline after assistant messages) */
.message-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}
.suggestion-chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #f0c4b4;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease;
}
.suggestion-chip:hover {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.suggestion-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Image strip in chat bubbles */
.chat-image-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chat-image-strip::-webkit-scrollbar { display: none; }
.chat-image-card {
  flex: 0 0 auto;
  width: 88px;
  margin: 0;
  cursor: pointer;
  transition: transform .15s ease;
}
.chat-image-card:hover { transform: translateY(-2px); }
.chat-image-thumb {
  width: 88px;
  height: 72px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.chat-image-card figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* Menu highlights carousel */
.chat-carousel {
  margin-top: 12px;
  margin-left: -4px;
  margin-right: -4px;
}
.chat-carousel-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 8px;
}
.chat-carousel-track::-webkit-scrollbar { display: none; }
.chat-highlight-card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  overflow: hidden;
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(54, 44, 30, .1);
}
.chat-highlight-img {
  height: 78px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  background-color: #ef5a2f;
}
.chat-highlight-img .chat-highlight-art {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.chat-highlight-body {
  padding: 8px 9px 10px;
}
.chat-highlight-body strong {
  display: block;
  font-size: 9px;
  line-height: 1.35;
}
.chat-highlight-price {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}
.chat-highlight-add {
  width: 100%;
  min-height: 28px;
  margin-top: 7px;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 900;
}
.chat-highlight-add:hover { background: var(--accent-dark); }

.message-bubble strong { font-weight: 800; color: var(--ink); }
.message.user .message-bubble strong { color: white; }

/* Voice audit panel */
.voice-audit-toggle {
  position: absolute; bottom: 22px; right: 22px; z-index: 5;
  display: grid; width: 34px; height: 34px; place-items: center;
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.08);
  border-radius: 99px; transition: .2s ease;
}
.voice-audit-toggle:hover { color: white; background: rgba(255,255,255,.15); }
.voice-audit-toggle svg { width: 16px; }
.voice-audit {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 120;
  width: 320px; display: flex; flex-direction: column;
  background: rgba(18,16,14,.98); backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255,255,255,.08);
  color: white;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.voice-audit.open { transform: translateX(0); }
.voice-audit-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.voice-audit-head strong { font-size: 11px; }
.voice-audit-head button { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); border-radius: 99px; font-size: 18px; }
.voice-audit-badge {
  padding: 3px 8px; color: white; background: #cf3f35;
  border-radius: 99px; font-size: 8px; font-weight: 900; text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}
.voice-audit-body { flex: 1; overflow: auto; padding: 12px 16px; }
.voice-audit-section { margin-bottom: 16px; }
.voice-audit-section small { display: block; margin-bottom: 8px; color: #aaa79e; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.voice-audit-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 10px; }
.voice-audit-row span { color: #aaa79e; }
.voice-audit-row strong { color: white; font-size: 10px; font-weight: 600; }
.voice-audit-log { display: flex; flex-direction: column; gap: 6px; font-size: 9px; }
.voice-audit-log .audit-entry { padding: 8px 10px; background: rgba(255,255,255,.05); border-radius: 8px; border-left: 2px solid rgba(255,255,255,.15); }
.voice-audit-log .audit-entry.transcript { border-left-color: #4caf50; }
.voice-audit-log .audit-entry.error { border-left-color: #cf3f35; }
.voice-audit-log .audit-entry.speak { border-left-color: #2196f3; }
.voice-audit-log .audit-time { color: #777; font-size: 8px; margin-bottom: 2px; }
.voice-audit-log .audit-label { color: #aaa79e; font-size: 8px; text-transform: uppercase; font-weight: 800; margin-bottom: 2px; }

@media (max-width: 960px) {
  .voice-audit { width: 100%; top: auto; bottom: 0; left: 0; right: 0; height: 60vh; transform: translateY(110%); border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .voice-audit.open { transform: translateY(0); }
}

/* Voice overlay enhancements */
.voice-quick-actions { margin-top: 20px; }
.voice-quick-actions button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; min-height: 42px;
  color: white; background: var(--accent);
  border-radius: 99px; font-size: 10px; font-weight: 900;
  box-shadow: 0 8px 24px rgba(239,90,47,.35);
  animation: rise .3s ease both;
}
.voice-quick-actions button svg { width: 16px; }

.voice-cart-summary {
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.voice-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 10px;
}
.voice-summary-row span { color: #aaa79e; }
.voice-summary-row strong { color: white; font-size: 11px; }
.voice-cart-line .voice-qty {
  display: block; margin-top: 2px;
  color: #ff8b68; font-size: 9px; font-weight: 800;
}

/* PWA install button improvement */
.install-button { transition: transform .2s ease; }
.install-button:hover { transform: translateY(-1px); }
.install-button:not(.hidden) { animation: rise .3s ease both; }
