/* K2J Menu — Guest AI Waiter (loaded only when enabled for a venue).
   Inherits venue tokens: --font-h, --font-b, --r, --r-sm, --bg, --surface,
   --text, --muted, --line, --accent, --on-accent, --accent-ink, --accent-soft. */

/* ---------- Floating dock trigger ---------- */
.aiw-fab{
  display:inline-flex;align-items:center;gap:8px;height:56px;padding-block:0;padding-inline:15px 18px;
  border-radius:999px;border:1px solid color-mix(in srgb,var(--on-accent) 16%,var(--accent));
  background:var(--accent);color:var(--on-accent);
  font:600 .875rem/1 var(--font-b);letter-spacing:.005em;white-space:nowrap;cursor:pointer;
  box-shadow:0 10px 26px -8px color-mix(in srgb,var(--accent) 52%,rgb(0 0 0/.35)),0 2px 6px rgb(0 0 0/.12);
  transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,opacity .16s ease
}
@media(hover:hover){
  .aiw-fab:hover{transform:translateY(-1.5px);box-shadow:0 14px 30px -8px color-mix(in srgb,var(--accent) 56%,rgb(0 0 0/.38)),0 3px 8px rgb(0 0 0/.14)}
}
.aiw-fab:active{transform:scale(.96)}
.aiw-fab .i{width:17px;height:17px;flex:none}

/* ---------- Sheet container (works natively with menu.css dialog.sheet) ---------- */
dialog.sheet.sheet-waiter[open]{
  display:flex;flex-direction:column;overflow:hidden;
  max-height:min(86dvh,680px)
}
@media(min-width:640px){
  dialog.sheet.sheet-waiter[open]{max-height:min(82dvh,650px)}
}
@media(max-height:540px){
  dialog.sheet.sheet-waiter[open]{max-height:94dvh}
}

/* ---------- Header ---------- */
.sheet-waiter .sheet-bar{
  flex:none;position:static;
  padding-block:20px 13px;padding-inline:18px 16px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
@media(min-width:640px){
  .sheet-waiter .sheet-bar{padding-block:15px 13px;padding-inline:18px 16px}
}
.aiw-brand{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.aiw-emblem{
  width:38px;height:38px;border-radius:var(--r-sm);flex:none;
  display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent-ink);
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line))
}
.aiw-emblem .i{width:18px;height:18px}
.aiw-titles{min-width:0;display:flex;flex-direction:column;gap:2px}
.aiw-titles h2{
  margin:0;font:600 1.0625rem/1.15 var(--font-h);color:var(--text);
  letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.aiw-sub{
  font:500 .75rem/1.2 var(--font-b);color:var(--muted);
  letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.aiw-bar-acts{display:flex;align-items:center;gap:6px;flex:none}
.aiw-icon-btn{
  width:38px;height:38px;border-radius:50%;
  border:1px solid var(--line);background:transparent;color:var(--muted);
  display:grid;place-items:center;cursor:pointer;
  transition:background-color .14s ease,color .14s ease,border-color .14s ease
}
@media(hover:hover){
  .aiw-icon-btn:hover{background:var(--accent-soft);color:var(--text);border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}
}
.aiw-icon-btn .i{width:16px;height:16px}
.sheet-waiter .sheet-x{width:38px;height:38px}
.sheet-waiter .sheet-x .i{width:17px;height:17px}

/* ---------- Body, scroll log & footer ---------- */
.sheet-waiter .sheet-body{
  flex:1 1 auto;min-height:0;overflow:hidden;
  display:flex;flex-direction:column;gap:12px;
  padding:14px 18px calc(12px + env(safe-area-inset-bottom,0px))
}
.aiw-log{
  flex:1 1 auto;min-height:110px;overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:12px;
  padding-block:2px 8px;padding-inline:2px 4px;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;
  scrollbar-width:thin;scrollbar-color:var(--line) transparent
}
.aiw-log::-webkit-scrollbar{width:4px}
.aiw-log::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}
.aiw-log::-webkit-scrollbar-track{background:transparent}
.aiw-foot{flex:none;display:flex;flex-direction:column;gap:7px;padding-top:2px}

/* ---------- Welcome hospitality card ---------- */
.aiw-welcome{
  padding:15px 16px;border-radius:var(--r);
  background:var(--bg);
  border:1px solid var(--line);
  border-inline-start:3px solid var(--accent);
  display:flex;flex-direction:column;gap:5px
}
.aiw-welcome-k{
  margin:0;font:600 .6875rem/1.2 var(--font-b);
  text-transform:uppercase;letter-spacing:.12em;color:var(--accent-ink)
}
.aiw-welcome-t{
  margin:0;font:600 1.125rem/1.28 var(--font-h);color:var(--text);text-wrap:balance
}
.aiw-welcome-p{
  margin:2px 0 0;font:400 .875rem/1.5 var(--font-b);color:var(--muted);text-wrap:pretty
}

/* ---------- Curated prompt starters ---------- */
.aiw-chips{
  flex:none;display:grid;grid-template-columns:minmax(0,1fr);gap:7px
}
@media(min-width:440px){
  .aiw-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.aiw-chip{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;padding:10px 13px;border-radius:var(--r-sm);
  border:1px solid var(--line);background:var(--bg);color:var(--text);
  font:500 .84375rem/1.3 var(--font-b);text-align:start;cursor:pointer;
  transition:border-color .15s ease,background-color .15s ease,transform .14s ease
}
.aiw-chip-t{min-width:0;overflow-wrap:anywhere}
.aiw-chip-go{
  flex:none;color:var(--muted);font-size:.9375rem;line-height:1;
  transition:transform .15s ease,color .15s ease
}
@media(hover:hover){
  .aiw-chip:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:var(--accent-soft)}
  .aiw-chip:hover .aiw-chip-go{color:var(--accent-ink);transform:translateX(2px)}
}
[dir=rtl] .aiw-chip-go{transform:scaleX(-1)}
@media(hover:hover){
  [dir=rtl] .aiw-chip:hover .aiw-chip-go{transform:scaleX(-1) translateX(2px)}
}
.aiw-chip:active{transform:scale(.985)}

/* ---------- Conversation messages ---------- */
.aiw-msg{display:flex;flex-direction:column;gap:8px;max-width:86%;animation:aiw-in .18s cubic-bezier(.2,.8,.2,1)}
.aiw-msg.is-user{align-self:flex-end;align-items:flex-end}
.aiw-msg.is-bot{align-self:flex-start;align-items:flex-start;max-width:95%}
.aiw-msg.is-bot:has(.aiw-cards){width:100%}
.aiw-bubble{
  padding:10px 14px;font:400 .9375rem/1.5 var(--font-b);
  word-break:break-word;white-space:pre-wrap
}
.aiw-msg.is-user .aiw-bubble{
  background:var(--accent);color:var(--on-accent);
  border-start-start-radius:var(--r);border-start-end-radius:var(--r);
  border-end-end-radius:max(4px,calc(var(--r-sm) * .5));border-end-start-radius:var(--r);
  box-shadow:0 4px 12px -4px color-mix(in srgb,var(--accent) 42%,transparent)
}
.aiw-msg.is-bot .aiw-bubble{
  background:var(--bg);color:var(--text);
  padding-inline-start:15px;
  border:1px solid var(--line);
  border-inline-start:2.5px solid var(--accent);
  border-start-start-radius:var(--r-sm);border-start-end-radius:var(--r);
  border-end-end-radius:var(--r);border-end-start-radius:var(--r-sm)
}
.aiw-msg.is-err .aiw-bubble{
  background:color-mix(in srgb,#b42318 7%,var(--bg));
  border-color:color-mix(in srgb,#b42318 32%,transparent);
  border-inline-start-color:#b42318;
  color:#b42318
}

/* ---------- Recommended dish cards ---------- */
.aiw-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%}
.aiw-card{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:10px 12px;border-radius:var(--r);
  border:1px solid var(--line);background:var(--bg);color:var(--text);
  text-align:start;cursor:pointer;
  box-shadow:0 2px 8px -2px rgb(0 0 0/.05);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background-color .15s ease
}
@media(hover:hover){
  .aiw-card:hover{
    border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
    transform:translateY(-1px);
    box-shadow:0 8px 18px -6px rgb(0 0 0/.12)
  }
  .aiw-card:hover .aiw-card-go{color:var(--accent-ink);transform:translateX(2px)}
  [dir=rtl] .aiw-card:hover .aiw-card-go{transform:scaleX(-1) translateX(2px)}
}
.aiw-card:active{transform:scale(.99)}
.aiw-thumb{
  width:50px;height:50px;border-radius:var(--r-sm);object-fit:cover;flex:none;
  background:var(--accent-soft);box-shadow:inset 0 0 0 1px rgb(0 0 0/.06)
}
.aiw-thumb.is-art{object-fit:contain;padding:4px}
.aiw-thumb-ph{
  width:50px;height:50px;border-radius:var(--r-sm);flex:none;
  display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent-ink);
  border:1px solid color-mix(in srgb,var(--accent) 18%,transparent);
  font:600 1.0625rem/1 var(--font-h)
}
.aiw-thumb-ph .fi{width:26px;height:26px}
.aiw-card-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.aiw-card-cat{
  font:600 .6875rem/1.2 var(--font-b);letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.aiw-card-name{
  font:600 .9375rem/1.28 var(--font-h);color:var(--text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.aiw-card-right{flex:none;display:flex;align-items:center;gap:6px;padding-inline-start:4px}
.aiw-card-price{
  font:700 .875rem/1 var(--font-b);font-variant-numeric:tabular-nums;
  color:var(--accent-ink);white-space:nowrap
}
.aiw-card-go{
  color:var(--muted);font-size:1.125rem;line-height:1;
  transition:transform .15s ease,color .15s ease
}
[dir=rtl] .aiw-card-go{transform:scaleX(-1)}

/* ---------- Composer (matches menu.css .search craft) ---------- */
.aiw-composer{
  display:flex;align-items:center;gap:8px;
  padding-block:5px;padding-inline:16px 5px;border-radius:999px;
  border:1px solid var(--line);background:var(--bg);
  transition:border-color .16s ease,box-shadow .16s ease
}
.aiw-composer:focus-within{
  border-color:var(--accent-ink);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent)
}
.aiw-input{
  flex:1;min-width:0;height:38px;padding:0;border:0;background:transparent;
  color:var(--text);font:400 1rem/1.25 var(--font-b);outline:none;box-shadow:none
}
.aiw-input:focus,.aiw-input:focus-visible{outline:none;box-shadow:none}
.aiw-input::placeholder{color:var(--muted)}
.aiw-send{
  flex:none;width:38px;height:38px;padding:0;border-radius:999px;border:0;
  background:var(--accent);color:var(--on-accent);cursor:pointer;
  display:grid;place-items:center;
  transition:opacity .15s ease,transform .14s ease
}
.aiw-send .i{width:16px;height:16px}
.aiw-send:disabled{opacity:.34;cursor:not-allowed}
.aiw-send:not(:disabled):active{transform:scale(.93)}

.aiw-note{margin:0;font:400 .725rem/1.35 var(--font-b);color:var(--muted);text-align:center}

/* ---------- Typing indicator (compositor-only: opacity + transform) ---------- */
.aiw-dots{display:inline-flex;align-items:center;gap:5px;padding:5px 2px}
.aiw-dots i{width:6px;height:6px;border-radius:50%;background:var(--accent-ink);opacity:.3;animation:aiw-dot 1s infinite ease-in-out}
.aiw-dots i:nth-child(2){animation-delay:.16s}
.aiw-dots i:nth-child(3){animation-delay:.32s}

@keyframes aiw-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes aiw-dot{0%,80%,100%{opacity:.28;transform:scale(.82)}40%{opacity:1;transform:scale(1.12)}}

/* ---------- Dark mode & dark palettes elevation ---------- */
:is([data-mode=dark],html[data-theme=dark]) .sheet-waiter .aiw-welcome,
:is([data-mode=dark],html[data-theme=dark]) .sheet-waiter .aiw-msg.is-bot .aiw-bubble,
:is([data-mode=dark],html[data-theme=dark]) .sheet-waiter .aiw-chip,
:is([data-mode=dark],html[data-theme=dark]) .sheet-waiter .aiw-card{
  background:color-mix(in srgb,var(--text) 6%,var(--surface));
  border-color:color-mix(in srgb,var(--text) 14%,var(--line))
}
:is([data-mode=dark],html[data-theme=dark]) .sheet-waiter .aiw-composer{
  background:color-mix(in srgb,var(--bg) 72%,var(--surface));
  border-color:color-mix(in srgb,var(--text) 16%,var(--line))
}
:is([data-mode=dark],html[data-theme=dark]) .sheet-waiter .aiw-msg.is-err .aiw-bubble{
  background:color-mix(in srgb,#ff8a80 10%,var(--surface));
  border-color:color-mix(in srgb,#ff8a80 34%,transparent);
  border-inline-start-color:#ff8a80;
  color:#ff8a80
}

/* ---------- Layout-specific craft across all 10 guest layouts ---------- */

/* editorial & carta: architectural hairlines, refined serif hierarchy */
.layout-editorial .aiw-fab{
  border-radius:var(--r-sm);background:var(--text);color:var(--bg);
  border-color:color-mix(in srgb,var(--bg) 16%,transparent);
  font-family:var(--font-h);font-weight:500;letter-spacing:.02em;
  box-shadow:0 8px 24px -8px rgb(0 0 0/.32)
}
.layout-editorial .sheet-waiter .aiw-emblem,
.layout-editorial .sheet-waiter .aiw-welcome,
.layout-editorial .sheet-waiter .aiw-chip,
.layout-editorial .sheet-waiter .aiw-card,
.layout-editorial .sheet-waiter .aiw-thumb,
.layout-editorial .sheet-waiter .aiw-thumb-ph,
.layout-editorial .sheet-waiter .aiw-composer,
.layout-editorial .sheet-waiter .aiw-send,
.layout-editorial .sheet-waiter .aiw-icon-btn,
.layout-editorial .sheet-waiter .sheet-x{border-radius:var(--r-sm)}
.layout-editorial .sheet-waiter .aiw-msg.is-user .aiw-bubble,
.layout-editorial .sheet-waiter .aiw-msg.is-bot .aiw-bubble{border-radius:var(--r-sm)}
.layout-editorial .sheet-waiter .aiw-welcome-t{font-style:italic;font-weight:400;font-size:1.3rem}
.layout-editorial .sheet-waiter .aiw-card-price{color:var(--text)}

.layout-carta .sheet-waiter .aiw-titles h2{
  text-transform:uppercase;letter-spacing:.1em;font-size:.9375rem
}
.layout-carta .sheet-waiter .aiw-welcome{
  border-inline-start:1px solid var(--line);
  border-top:2px solid var(--accent)
}
.layout-carta .sheet-waiter .aiw-welcome-t{font-style:normal;letter-spacing:.02em}

/* compact: crisp, dense, fast-scanning */
.layout-compact .sheet-waiter .sheet-body{gap:9px;padding:12px 14px calc(10px + env(safe-area-inset-bottom,0px))}
.layout-compact .sheet-waiter .aiw-welcome{padding:11px 13px}
.layout-compact .sheet-waiter .aiw-chip{padding:8px 11px;font-size:.8125rem}
.layout-compact .sheet-waiter .aiw-card{padding:8px 10px;gap:10px}
.layout-compact .sheet-waiter .aiw-thumb,
.layout-compact .sheet-waiter .aiw-thumb-ph{width:40px;height:40px}
.layout-compact .sheet-waiter .aiw-card-name{font-family:var(--font-b);font-size:.875rem}

/* chalkboard: café slate & dashed chalk framing */
.layout-chalkboard .aiw-fab{
  border:1.5px dashed color-mix(in srgb,var(--on-accent) 45%,transparent);
  font-family:var(--font-h);font-size:1.0625rem;letter-spacing:.01em
}
.layout-chalkboard dialog.sheet.sheet-waiter{
  background-image:radial-gradient(rgb(255 255 255/.035) 1px,transparent 1.5px);
  background-size:24px 24px
}
.layout-chalkboard .sheet-waiter .sheet-bar{border-bottom:1.5px dashed color-mix(in srgb,var(--text) 32%,transparent)}
.layout-chalkboard .sheet-waiter .aiw-welcome,
.layout-chalkboard .sheet-waiter .aiw-msg.is-bot .aiw-bubble,
.layout-chalkboard .sheet-waiter .aiw-chip,
.layout-chalkboard .sheet-waiter .aiw-card,
.layout-chalkboard .sheet-waiter .aiw-composer{
  border-style:dashed;border-width:1.5px
}
.layout-chalkboard .sheet-waiter .aiw-titles h2{font-size:1.35rem;color:var(--accent)}
.layout-chalkboard .sheet-waiter .aiw-welcome-t{font-size:1.35rem}
.layout-chalkboard .sheet-waiter .aiw-card-name{font-size:1.125rem}
.layout-chalkboard .sheet-waiter .aiw-card-price{font-family:var(--font-h);font-size:1.125rem;color:var(--accent)}

/* bold: thick ink outlines & hard offset shadows */
.layout-bold .aiw-fab{
  border:var(--bw,3px) solid var(--text);border-radius:var(--r);
  box-shadow:4px 4px 0 var(--text);
  font-family:var(--font-h);font-weight:700;text-transform:uppercase;letter-spacing:.03em
}
@media(hover:hover){
  .layout-bold .aiw-fab:hover{box-shadow:5px 5px 0 var(--text)}
}
.layout-bold .sheet-waiter .sheet-bar{border-bottom:var(--bw,3px) solid var(--text)}
.layout-bold .sheet-waiter .aiw-emblem,
.layout-bold .sheet-waiter .aiw-icon-btn,
.layout-bold .sheet-waiter .sheet-x{
  border:2px solid var(--text);border-radius:var(--r-sm)
}
.layout-bold .sheet-waiter .aiw-welcome,
.layout-bold .sheet-waiter .aiw-msg.is-bot .aiw-bubble,
.layout-bold .sheet-waiter .aiw-chip,
.layout-bold .sheet-waiter .aiw-card,
.layout-bold .sheet-waiter .aiw-composer{
  border:2px solid var(--text);border-radius:var(--r-sm)
}
.layout-bold .sheet-waiter .aiw-welcome{border-inline-start-width:5px;border-inline-start-color:var(--accent)}
.layout-bold .sheet-waiter .aiw-chip,
.layout-bold .sheet-waiter .aiw-card{box-shadow:3px 3px 0 var(--text)}
.layout-bold .sheet-waiter .aiw-msg.is-user .aiw-bubble{
  border:2px solid var(--text);border-radius:var(--r-sm);box-shadow:3px 3px 0 var(--text)
}
.layout-bold .sheet-waiter .aiw-cards{padding-inline-end:4px;padding-bottom:4px}
.layout-bold .sheet-waiter .aiw-card-name{text-transform:uppercase;letter-spacing:.01em;font-size:.875rem}
.layout-bold .sheet-waiter .aiw-card-price{
  background:var(--text);color:var(--bg);padding:3px 8px;border-radius:var(--r-sm);
  font-family:var(--font-h);letter-spacing:.02em
}
.layout-bold .sheet-waiter .aiw-send{border:2px solid var(--text);border-radius:var(--r-sm)}

/* cards & showcase: tactile soft-elevated dish cards */
.layout-cards .sheet-waiter .aiw-card,
.layout-showcase .sheet-waiter .aiw-card{
  box-shadow:0 4px 14px -4px rgb(0 0 0/.08)
}
.layout-showcase .sheet-waiter .aiw-thumb,
.layout-showcase .sheet-waiter .aiw-thumb-ph{width:54px;height:54px}

/* tiles: crisp geometric grid rhythm */
.layout-tiles .sheet-waiter .aiw-card,
.layout-tiles .sheet-waiter .aiw-chip,
.layout-tiles .sheet-waiter .aiw-welcome{border-radius:var(--r-sm)}

/* nordic: calm restraint, zero radius, hairline rhythm */
.layout-nordic .aiw-fab{
  background:var(--text);color:var(--bg);border:1px solid var(--text);border-radius:0;
  font-weight:500;letter-spacing:.04em;box-shadow:0 8px 24px -10px rgb(0 0 0/.28)
}
.layout-nordic .sheet-waiter .aiw-emblem,
.layout-nordic .sheet-waiter .aiw-welcome,
.layout-nordic .sheet-waiter .aiw-chip,
.layout-nordic .sheet-waiter .aiw-card,
.layout-nordic .sheet-waiter .aiw-thumb,
.layout-nordic .sheet-waiter .aiw-thumb-ph,
.layout-nordic .sheet-waiter .aiw-composer,
.layout-nordic .sheet-waiter .aiw-send,
.layout-nordic .sheet-waiter .aiw-msg.is-user .aiw-bubble,
.layout-nordic .sheet-waiter .aiw-msg.is-bot .aiw-bubble{border-radius:0}
.layout-nordic .sheet-waiter .aiw-emblem{background:transparent;border-color:var(--line)}
.layout-nordic .sheet-waiter .aiw-welcome,
.layout-nordic .sheet-waiter .aiw-chip,
.layout-nordic .sheet-waiter .aiw-card{box-shadow:none}
.layout-nordic .sheet-waiter .aiw-card-name{font:500 .9375rem/1.3 var(--font-b)}
.layout-nordic .sheet-waiter .aiw-card-price{font-weight:500;color:var(--text)}

/* ---------- Follow-up chips, retry & dish-sheet handoff ---------- */
.aiw-followups{display:flex;flex-wrap:wrap;gap:6px;padding-top:2px}
.aiw-fu{
  padding:6px 11px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);color:var(--text);
  font:500 .78125rem/1.2 var(--font-b);cursor:pointer;
  transition:border-color .14s ease,background-color .14s ease,transform .14s ease
}
@media(hover:hover){
  .aiw-fu:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:var(--accent-soft)}
}
.aiw-fu:active{transform:scale(.97)}
.aiw-retry{
  align-self:flex-start;margin-top:2px;padding:6px 12px;border-radius:999px;
  border:1px solid color-mix(in srgb,#b42318 35%,transparent);background:var(--bg);
  color:#b42318;font:600 .78125rem/1.2 var(--font-b);cursor:pointer;
  transition:background-color .14s ease,transform .14s ease
}
@media(hover:hover){.aiw-retry:hover{background:color-mix(in srgb,#b42318 8%,var(--bg))}}
.aiw-retry:active{transform:scale(.97)}
:is([data-mode=dark],html[data-theme=dark]) .aiw-retry{
  border-color:color-mix(in srgb,#ff8a80 40%,transparent);color:#ff8a80
}
.is-sec-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.is-ask-ai{
  display:inline-flex;align-items:center;gap:7px;
  min-height:40px;padding:0 15px;margin:0;
  border-radius:999px;border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line));
  background:var(--accent-soft);color:var(--accent-ink);
  font:600 .875rem/1 var(--font-b);cursor:pointer;white-space:nowrap;
  transition:border-color .14s ease,transform .14s ease,background-color .14s ease
}
.is-ask-ai .i{width:15px;height:15px;flex:none}
@media(hover:hover){.is-ask-ai:hover{border-color:var(--accent);transform:translateY(-1px)}}
.is-ask-ai:active{transform:scale(.97)}

/* ---------- Narrow screens & reduced motion ---------- */
@media(max-width:420px){
  .aiw-fab .aiw-fab-l{display:none}
  .aiw-fab{width:56px;padding:0;justify-content:center}
}
@media(max-width:359px){
  .sheet-waiter .sheet-bar{padding-block:12px 10px;padding-inline:14px 12px}
  .sheet-waiter .sheet-body{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}
  .aiw-thumb,.aiw-thumb-ph{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){
  .aiw-msg,.aiw-dots i,.aiw-fab,.aiw-card,.aiw-card-go,.aiw-chip,.aiw-chip-go,.aiw-send,.aiw-composer,.aiw-icon-btn,.aiw-fu,.aiw-retry,.is-ask-ai{
    animation:none;transition:none
  }
}
