/* Jer's Convenience. Colors are the San Francisco 49ers palette (scarlet, metallic gold, black, white).
   Contrast rules (measured, see PLAN.md section 3): gold is never text on white/cream; scarlet is never text on black. */

@font-face { font-family: "Alfa Slab One"; src: url("../fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --scarlet: #AA0000; --scarlet-dark: #7A0000; --scarlet-light: #D12A2A;
  --gold: #B3995D; --gold-ink: #6B5A2C; --gold-light: #E6D5A8; --gold-pale: #F3EAD0;
  --black: #0B0B0B; --charcoal: #242424;
  --cream: #F7F0E0; --cream-dark: #EADFC6; --paper: #FFFFFF;
  --ink: #1A1A1A; --muted: #555555; --line: #E2D7BD;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 11, 11, .08), 0 6px 18px rgba(11, 11, 11, .08);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Alfa Slab One", Georgia, "Times New Roman", serif;
  --font-label: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --header-h: 120px;      /* kept in sync by app.js */
  --sticky-top: 120px;    /* header height plus the category bar, kept in sync by app.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--cream); }
body.chat-open { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--black); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4, h5 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--scarlet); text-underline-offset: 2px; }
a:hover { color: var(--scarlet-dark); }
:focus-visible { outline: 3px solid var(--scarlet); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .chat-head :focus-visible { outline-color: var(--gold-light); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.center { text-align: center; padding-top: 48px; }
.muted { color: var(--muted); font-size: .92em; }
.muted-on-dark { color: #CFC6AE; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--gold); color: var(--black); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.6em; height: 1.6em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 20px; border: 2px solid var(--scarlet); border-radius: 999px; background: var(--scarlet); color: #fff; font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--scarlet-dark); border-color: var(--scarlet-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--scarlet); }
.btn-ghost:hover { background: var(--scarlet); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); }
.btn-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--scarlet); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linklike:hover { color: var(--scarlet-dark); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.banner { background: var(--black); border-bottom: 3px solid var(--gold); }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: block; line-height: 0; }
.brand img { height: 56px; width: auto; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; border: 1.5px solid var(--gold); color: var(--gold-light); background: rgba(255, 255, 255, .04); }
.open-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9A9A9A; }
.open-badge.is-open::before { background: #46C25A; box-shadow: 0 0 0 3px rgba(70, 194, 90, .25); }
.open-badge.is-closed::before { background: #E5A93B; }
.panel .open-badge, .lede + .open-badge { color: var(--ink); background: var(--gold-pale); }
.sms-pill { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: var(--black); font-weight: 700; text-decoration: none; }
.sms-pill:hover { background: var(--gold-light); color: var(--black); }

.tabs { background: var(--scarlet); }
.tabs-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.tab-sms { display: inline-flex; align-items: center; gap: 8px; align-self: center; margin: 6px 0; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: var(--gold); color: var(--black); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.tab-sms:hover { background: var(--gold-light); color: var(--black); }
.tab-sms-label { font-family: var(--font-label); letter-spacing: .08em; font-size: 1.2rem; line-height: 1; }
.tab-list { display: flex; margin: 0 0 0 auto; padding: 0; list-style: none; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; min-height: 52px; padding: 0 20px; background: transparent; border: 0; color: var(--cream); font-family: var(--font-label); font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.tab:hover { background: var(--scarlet-dark); color: #fff; }
.tab[aria-current="page"], .tab[aria-expanded="true"] { background: var(--scarlet-dark); color: #fff; }
.tab[aria-current="page"]::after, .tab[aria-expanded="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; background: var(--gold); border-radius: 4px 4px 0 0; }
.tab .icon { width: 1.05em; height: 1.05em; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--black) url("../images/hero/hero.svg") right center / cover no-repeat; color: var(--cream); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .75) 38%, rgba(11, 11, 11, 0) 70%); }
.hero-inner { padding-top: 44px; padding-bottom: 48px; max-width: 1240px; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .4em; }
.hero p { max-width: 34ch; font-size: 1.1rem; color: #F0E8D2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .open-badge { margin-bottom: 14px; display: none; }

/* ---------- notice, finder ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; padding: 14px 16px; background: var(--gold-pale); border: 1px solid var(--gold-light); border-left: 6px solid var(--gold); border-radius: 10px; font-size: .95rem; }
.notice p { margin: 0; }
.notice .icon { margin-top: 2px; color: var(--scarlet); }
.finder { display: grid; gap: 12px; margin-bottom: 12px; }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }
.search input:focus { border-color: var(--scarlet); outline: none; box-shadow: 0 0 0 3px rgba(170, 0, 0, .2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .92rem var(--font-body); cursor: pointer; }
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.result-count { margin: 0; min-height: 1.5em; color: var(--muted); font-size: .92rem; }

/* ---------- category bar ---------- */
.catbar { position: sticky; top: var(--header-h); z-index: 60; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 4px 10px -8px rgba(0, 0, 0, .4); }
.catlist { display: flex; gap: 8px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip-nav { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink); font: 600 .92rem var(--font-body); text-decoration: none; white-space: nowrap; }
.chip-nav:hover { border-color: var(--gold); color: var(--ink); }
.chip-nav[aria-current="true"] { background: var(--scarlet); border-color: var(--scarlet); color: #fff; }

/* ---------- menu sections and cards ---------- */
.cat { padding-top: 28px; scroll-margin-top: var(--sticky-top); }
.cat h2 { display: inline-block; border-bottom: 4px solid var(--gold); padding-bottom: 4px; }
.cat-intro { max-width: 70ch; color: var(--muted); margin-top: .5em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 16px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--sticky-top) + 12px); }
.card-img { background: var(--cream-dark); aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; }
.card h3 { margin: 0; }
.desc { margin: 0; color: #333; font-size: .95rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--gold-pale); border: 1px solid var(--gold-light); color: var(--gold-ink); font-size: .78rem; font-weight: 700; }
.badge .icon { width: 1em; height: 1em; }
.prices { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.prices li { color: var(--scarlet); }
.prices .lbl { color: var(--ink); font-size: .9rem; }
.prices strong { font-size: 1.05rem; }
.extra { margin: 0; font-size: .85rem; color: var(--muted); }
.facts { display: grid; gap: 6px; margin: 0; }
.fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.fact dt { flex: none; min-width: 76px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact dd { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.chip { padding: 1px 10px; border-radius: 6px; font-size: .82rem; font-weight: 600; background: #fff; }
.chip-allergen { border: 1.5px solid var(--scarlet); color: var(--scarlet); }
.chip-contains { border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.none { font-size: .85rem; color: var(--muted); }
.more { border-top: 1px solid var(--line); padding-top: 8px; font-size: .92rem; }
.more summary, .faq-item summary { cursor: pointer; font-weight: 700; color: var(--scarlet); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.more summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--scarlet); color: #fff; font-weight: 700; line-height: 1; }
.more[open] > summary::before { content: "\2212"; }
.detail { margin-top: 10px; }
.detail h4 { font: 700 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.detail p { margin: 0 0 .5em; font-size: .9rem; }
.choice { margin-bottom: 10px; }
.choice h5 { font: 700 .92rem var(--font-body); margin: 0 0 2px; color: var(--ink); }
.choice .rule { font-weight: 400; color: var(--muted); font-size: .85rem; }
.opts { margin: 0; padding-left: 1.1em; font-size: .88rem; columns: 1; }
.opt-note { color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 4px; }
.more.big { border-top: 0; }
.more.big > summary { font-family: var(--font-display); font-size: 1.3rem; color: var(--black); }
.more.big h3 { margin-top: 1.2em; }
.big .detail, .big .cat-intro { font-size: .95rem; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table.plain { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.plain th, table.plain td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain thead th { background: var(--black); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
table.plain tbody th { font-weight: 700; }
table.plain tr:last-child th, table.plain tr:last-child td { border-bottom: 0; }
.heat { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-transform: capitalize; }
.heat .icon { width: 1em; height: 1em; color: var(--scarlet); }
.heat .icon + .icon { margin-right: 0; }
.heat span, .heat { white-space: nowrap; }
.empty { padding: 40px 0; text-align: center; }

/* ---------- FAQ / About ---------- */
.lede { font-size: 1.1rem; color: #333; }
#faq .narrow, #about .narrow { padding-top: 32px; padding-bottom: 56px; }
.faq-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.faq-list { display: grid; gap: 10px; margin-bottom: 28px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.faq-item summary { justify-content: space-between; min-height: 52px; color: var(--ink); font-size: 1.02rem; }
.faq-item summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--scarlet); border-bottom: 2.5px solid var(--scarlet); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; flex: none; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] { border-color: var(--gold); }
.faq-a { padding: 0 0 8px; color: #333; }
.faq-item:target { box-shadow: 0 0 0 3px rgba(170, 0, 0, .25); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.4rem; }
.panel h3 { font-family: var(--font-label); font-size: 1.3rem; letter-spacing: .06em; margin: 1em 0 .2em; color: var(--scarlet); }
.about-hero { background: var(--black); border-bottom: 4px solid var(--gold); }
.about-hero img { width: 100%; max-width: 1100px; margin: 0 auto; max-height: 440px; object-fit: cover; }
.about-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
address { font-style: normal; font-size: 1.1rem; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact .icon { width: 1.6em; height: 1.6em; color: var(--scarlet); margin-top: 2px; }
.map { margin: 0 0 20px; }
.map img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.map figcaption { margin-top: 6px; text-align: center; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--cream); border-top: 4px solid var(--gold); margin-top: 40px; padding: 28px 0 32px; }
.site-footer p { margin: 0 0 .5em; }
.site-footer a { color: var(--gold-light); }

/* ---------- SMS popover ---------- */
.popover { position: fixed; z-index: 250; width: min(340px, calc(100vw - 24px)); padding: 18px; background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.popover h2 { font-size: 1.2rem; margin-bottom: .3em; }
.pop-number { font: 400 2rem var(--font-display); color: var(--scarlet); margin: 0 0 .3em; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- chat panel ---------- */
.chat-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; width: 400px; height: min(620px, calc(100vh - 140px)); }
.chat { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; border: 2px solid var(--black); border-radius: 18px; box-shadow: 0 16px 50px rgba(0, 0, 0, .4); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--scarlet); color: #fff; border-bottom: 4px solid var(--gold); }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); }
.chat-title { flex: 1; min-width: 0; }
.chat-title strong { display: block; font: 400 1.05rem var(--font-display); line-height: 1.2; }
.chat-title span { font-size: .8rem; color: #F5E3E3; }
.chat-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .25); }
.chat-close .icon { width: 1.4em; height: 1.4em; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--black); color: #fff; border-bottom-right-radius: 4px; }
.msg-typing { color: var(--muted); font-style: italic; }
.chat-quick { display: flex; gap: 8px; padding: 8px 14px 0; flex-wrap: wrap; background: var(--cream); }
.chat-quick button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--gold); background: #fff; color: var(--ink); font: 600 .85rem var(--font-body); cursor: pointer; }
.chat-quick button:hover { background: var(--gold-pale); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 6px; background: var(--cream); }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 14px; border: 2px solid var(--line); border-radius: 22px; font: inherit; background: #fff; }
.chat-form textarea:focus { border-color: var(--scarlet); outline: none; box-shadow: 0 0 0 3px rgba(170, 0, 0, .2); }
.chat-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--scarlet); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--scarlet-dark); }
.chat-send:disabled { background: #B8B0A0; cursor: default; }
.chat-foot { margin: 0; padding: 0 14px 10px; background: var(--cream); font-size: .75rem; color: var(--muted); }
.prechat { display: grid; gap: 12px; padding: 16px; background: var(--cream); flex: 1; align-content: start; overflow-y: auto; }
.prechat label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.prechat input { min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.prechat .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }

/* 404 */
.notfound { background: var(--cream); }

/* ---------- wide screens ---------- */
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .opts.many { columns: 2; }
}

/* ---------- phones: tab bar moves to the bottom, text number becomes a pill in the banner ---------- */
@media (max-width: 719px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .banner-inner { min-height: 64px; }
  .brand img { height: 46px; }
  .banner .open-badge { display: none; }
  .hero .open-badge { display: inline-flex; }
  .sms-pill { display: inline-flex; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; border-top: 3px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
  .tabs-inner { padding: 0; gap: 0; }
  .tab-sms { display: none; }
  .tab-list { width: 100%; margin: 0; }
  .tab-list li { flex: 1; }
  .tab { width: 100%; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 2px; font-size: 1.05rem; }
  .tab .icon { width: 1.5em; height: 1.5em; }
  .tab[aria-current="page"]::after, .tab[aria-expanded="true"]::after { left: 22%; right: 22%; top: 0; bottom: auto; height: 4px; border-radius: 0 0 4px 4px; }
  .hero { background-position: 78% center; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 11, 11, .86) 0%, rgba(11, 11, 11, .7) 100%); }
  .hero-inner { padding-top: 28px; padding-bottom: 32px; }
  .hero p { max-width: none; }
  .card-img { aspect-ratio: 4 / 3; }
  /* the chat becomes a full-screen sheet */
  .chat-root { inset: 0; width: auto; height: 100%; height: 100dvh; }
  .chat { border: 0; border-radius: 0; }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}
