/* AnandAvo public chat — /anandavo
   Shell: meal-planner-embedded_v3 · Palette: aamoai.com cream / forest / terracotta */

html:has(body.aa-chat) {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body.aa-chat {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
}

.aa-chat {
  /* Claude-like stone chat shell · AamoAI leaf/spice accents (no purple wash) */
  --aa-bg: #f5f4f0;
  --aa-bg-soft: #efeee9;
  --aa-sand: #ebeae4;
  --aa-card: #ffffff;
  --aa-ink: #1f1e1b;
  --aa-ink-soft: #3d3c38;
  --aa-mist: #1f1e1b;
  --aa-mist-dim: rgba(31, 30, 27, 0.58);
  --aa-line: rgba(31, 30, 27, 0.1);
  --aa-line-strong: rgba(31, 30, 27, 0.16);
  --aa-leaf: #2a5c45;
  --aa-leaf-bright: #356f54;
  --aa-spice: #c96442;
  --aa-spice-soft: #d4845a;
  --aa-gold: #b8952f;
  --aa-warm: #efe6d4;
  --aa-warm-ink: #6b5430;
  --aa-user: #e8e6df;
  --aa-panel: #ffffff;
  --aa-sheet: #f3f2ed;
  --aa-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --aa-sans: "DM Sans", "Manrope", "Segoe UI", system-ui, sans-serif;
  --aa-display: "Manrope", "DM Sans", system-ui, sans-serif;
  --aa-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --aa-shadow-soft: 0 1px 2px rgba(31, 30, 27, 0.04);
  --aa-shadow-float: 0 8px 28px rgba(31, 30, 27, 0.08);
  --aa-radius: 12px;

  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--aa-bg);
  color: var(--aa-ink);
  font-family: var(--aa-sans);
  -webkit-font-smoothing: antialiased;
}

.aa-chat .drawer,
.aa-chat .drawer-overlay {
  display: none !important;
}

/* reCAPTCHA v3 badge — hide; disclosure is in .aa-recaptcha-note (Google allows this) */
body.aa-chat .grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.aa-skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--aa-ink);
  color: #fff;
  font-weight: 600;
}
.aa-skip:focus { left: 1rem; top: 1rem; }

.aa-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.aa-chat [hidden] {
  display: none !important;
}

.aa-app {
  --aa-top-h: 64px;
  --aa-panel-w: min(470px, 46vw);
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: var(--aa-top-h) minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: var(--aa-bg);
}

/* —— Top bar —— */
.aa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--aa-line);
  background: var(--aa-card);
  z-index: 30;
}
.aa-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--aa-ink);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.aa-top-logo {
  height: 28px;
  width: auto;
  max-width: 42vw;
  flex-shrink: 1;
  object-fit: contain;
  object-position: left center;
}
.aa-top-logo--anandavo {
  height: 30px;
  max-width: 46vw;
  padding-left: 0.65rem;
  border-left: 1px solid var(--aa-line);
}
.aa-home-mark {
  display: block;
  width: min(128px, 34vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.aa-asks-pill {
  display: inline-flex;
  align-items: center;
  max-width: 11rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--aa-spice) 28%, var(--aa-line));
  background: color-mix(in srgb, var(--aa-spice) 12%, #fff);
  color: var(--aa-spice);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.aa-asks-pill.is-asks-low {
  border-color: color-mix(in srgb, var(--aa-spice) 55%, var(--aa-line));
  background: color-mix(in srgb, var(--aa-spice) 22%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--aa-spice) 18%, transparent);
}
.aa-top-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.aa-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.15rem;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--aa-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--aa-card) 88%, #fff);
}
.aa-lang-sep {
  color: var(--aa-ink-soft);
  opacity: 0.55;
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}
.aa-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--aa-ink-soft);
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
}
.aa-lang-btn:hover,
.aa-lang-btn:focus-visible {
  color: var(--aa-ink);
  outline: none;
  background: color-mix(in srgb, var(--aa-forest) 10%, transparent);
}
.aa-lang-btn.is-active {
  color: var(--aa-forest);
  background: color-mix(in srgb, var(--aa-forest) 14%, #fff);
}
.aa-lang-offer {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--aa-sans);
  font-size: 0.85rem;
  color: var(--aa-ink-soft);
}
.aa-lang-offer #aa-lang-offer-label {
  margin-right: 0.2rem;
}
.aa-lang-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--aa-forest);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0 0.15rem;
}
.aa-lang-link.is-active {
  color: var(--aa-spice);
  font-weight: 700;
  text-decoration: none;
  cursor: default;
}
.aa-lang-link:not(.is-active):hover,
.aa-lang-link:not(.is-active):focus-visible {
  color: var(--aa-spice);
  outline: none;
}
.aa-profile-tip {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 40;
  min-width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  background: var(--aa-card);
  color: var(--aa-ink-soft);
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: var(--aa-shadow-float);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.15s var(--aa-ease), transform 0.15s var(--aa-ease), visibility 0.15s;
}
.aa-chat .profile-trigger:hover .aa-profile-tip,
.aa-chat .profile-trigger:focus-visible .aa-profile-tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@keyframes aaAsksLowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 100, 66, 0.45);
    background: var(--aa-sky);
    color: var(--aa-sky-ink);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(201, 100, 66, 0);
    background: rgba(201, 100, 66, 0.22);
    color: var(--aa-spice);
  }
}
.aa-chat .profile-trigger.is-asks-low {
  border-color: rgba(201, 100, 66, 0.55);
}
.aa-chat .profile-avatar.is-asks-low {
  animation: aaAsksLowPulse 1.4s var(--aa-ease) infinite;
  background: rgba(201, 100, 66, 0.18);
  color: var(--aa-spice);
}
@media (prefers-reduced-motion: reduce) {
  .aa-chat .profile-avatar.is-asks-low {
    animation: none;
    box-shadow: 0 0 0 2px rgba(201, 100, 66, 0.45);
  }
}
.aa-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  background: transparent;
  color: var(--aa-ink-soft);
  cursor: pointer;
  transition: background 0.15s var(--aa-ease), border-color 0.15s var(--aa-ease);
}
.aa-icon-btn:hover {
  background: var(--aa-sand);
  border-color: var(--aa-line-strong);
  color: var(--aa-ink);
}

/* —— Kitchen menus (v3 apps / profile) —— */
.aa-chat {
  --aa-sky: #d7ebf5;
  --aa-sky-ink: #2c5f78;
  --aa-rose: #f3dde3;
  --aa-rose-ink: #8a4555;
}
.aa-kitchen-menus {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.aa-chat .nine-dot-grid {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
}
.aa-chat .nine-dot-grid i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.aa-chat .header-menu-trigger,
.aa-chat .profile-trigger {
  border-radius: 50%;
}
.aa-chat .profile-trigger {
  position: relative;
  width: 37px;
  height: 37px;
  padding: 3px;
  border: 1px solid var(--aa-line);
}
.aa-chat .profile-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--aa-sky);
  color: var(--aa-sky-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.aa-menu-layer {
  position: fixed;
  z-index: 60;
  opacity: 1;
  animation: aaIn 0.15s var(--aa-ease) both;
  border: 1px solid var(--aa-line);
  border-radius: 20px;
  background: var(--aa-sheet);
  box-shadow: var(--aa-shadow-float);
  width: 350px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  padding: 10px;
}
.aa-menu-layer[hidden] { display: none !important; }
.aa-chat .aa-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 32px;
  padding: 6px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s var(--aa-ease), border-color 0.15s var(--aa-ease);
}
.aa-chat .aa-menu-btn:hover {
  background: var(--aa-sand);
}
.aa-chat .aa-menu-btn.aa-menu-btn-outline {
  border-color: var(--aa-line);
  background: var(--aa-card);
}
.aa-chat .aa-menu-btn.aa-menu-btn-primary {
  background: var(--aa-leaf);
  color: #fff;
  border-color: var(--aa-leaf);
}
.aa-chat .aa-menu-btn.aa-menu-btn-primary:hover {
  background: var(--aa-leaf-bright);
}
.aa-chat .aa-menu-btn.aa-menu-btn-icon {
  padding: 0;
  width: 36px;
  height: 36px;
}
.aa-chat .aa-menu-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.aa-chat .launcher-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 17px;
  font-size: 12px;
  color: var(--aa-mist-dim);
}
.aa-chat .launcher-heading svg { color: var(--aa-warm-ink); }
.aa-chat .kitchen-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--aa-card);
  padding: 12px 5px;
  border-radius: 12px;
  gap: 8px 3px;
}
.aa-chat .kitchen-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 93px;
  gap: 9px;
  padding: 12px 3px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--aa-ink);
  cursor: pointer;
}
.aa-chat .kitchen-app-item:hover { background: var(--aa-sand); }
.aa-chat .app-tile-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-chat .app-tile-icon svg { width: 24px; height: 24px; }
.aa-chat .tone-coral { background: rgba(197, 106, 63, 0.14); color: var(--aa-spice); }
.aa-chat .tone-sky { background: var(--aa-sky); color: var(--aa-sky-ink); }
.aa-chat .tone-gold { background: var(--aa-warm); color: var(--aa-warm-ink); }
.aa-chat .tone-rose { background: var(--aa-rose); color: var(--aa-rose-ink); }
.aa-chat .launcher-footer,
.aa-chat .profile-panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--aa-mist-dim);
  font-size: 10px;
  padding: 17px 8px 7px;
}
.aa-chat .launcher-footer svg { color: var(--aa-rose-ink); }
.aa-chat .profile-panel-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  font-size: 11px;
  color: var(--aa-mist-dim);
}
.aa-chat .profile-panel-top button {
  position: absolute;
  left: 0;
  height: 29px;
  width: 29px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--aa-ink-soft);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.aa-chat .profile-panel-top button:hover { background: var(--aa-sand); }
.aa-chat .profile-panel-top button svg { width: 15px; height: 15px; }
.aa-chat .profile-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 5px 22px;
}
.aa-chat .large-profile-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--aa-sky);
  color: var(--aa-sky-ink);
  width: 68px;
  height: 68px;
  font-size: 29px;
  font-weight: 600;
}
.aa-chat .large-profile-avatar > span {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 24px;
  height: 24px;
  border: 3px solid var(--aa-sheet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aa-warm);
  color: var(--aa-warm-ink);
}
.aa-chat .profile-greeting h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 14px 0 4px;
  font-family: var(--aa-display);
  color: var(--aa-ink);
}
.aa-chat .profile-greeting p {
  font-size: 10px;
  color: var(--aa-mist-dim);
  margin: 0 0 15px;
}
.aa-chat .profile-account-button {
  border-radius: 20px;
  color: var(--aa-leaf);
  font-size: 11px;
  padding: 0 17px;
  height: 33px;
  border: 1px solid var(--aa-line);
  background: var(--aa-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.aa-chat .profile-account-button:hover { background: var(--aa-sand); }
.aa-chat .profile-account-button svg { width: 16px; height: 16px; }
.aa-chat .profile-choice-list {
  background: var(--aa-card);
  border-radius: 12px;
  padding: 5px;
}
.aa-chat .profile-choice-list > button {
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--aa-ink);
  cursor: pointer;
  font: inherit;
}
.aa-chat .profile-choice-list > button:hover { background: var(--aa-sand); }
.aa-chat .profile-choice-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aa-chat .profile-choice-icon svg { width: 17px; height: 17px; }
.aa-chat .profile-choice-list > button > span:nth-child(2) { flex: 1; min-width: 0; }
.aa-chat .profile-choice-list strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.aa-chat .profile-choice-list small {
  display: block;
  font-size: 9px;
  color: var(--aa-mist-dim);
  margin-top: 4px;
}
.aa-chat .profile-choice-list > button > svg {
  width: 13px;
  height: 13px;
  color: var(--aa-mist-dim);
  flex-shrink: 0;
}
.aa-chat .profile-settings {
  text-align: center;
  padding: 20px 12px 15px;
}
.aa-chat .settings-illustration {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.aa-chat .profile-settings h2 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
  font-family: var(--aa-display);
}
.aa-chat .profile-settings p {
  font-size: 11px;
  color: var(--aa-mist-dim);
  margin: 0;
}
.aa-chat .family-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 27px 0;
}
.aa-chat .family-stepper button {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid var(--aa-line);
  background: var(--aa-card);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--aa-ink);
}
.aa-chat .family-stepper button:hover { background: var(--aa-sand); }
.aa-chat .family-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.aa-chat .family-stepper strong {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}
.aa-chat .family-stepper small {
  display: block;
  font-size: 11px;
  color: var(--aa-mist-dim);
  font-weight: 500;
}
.aa-chat .profile-plan-button {
  width: 100%;
  font-size: 11px;
  margin-top: 15px;
  border-radius: 20px;
  height: 36px;
  border: 0;
  background: var(--aa-leaf);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.aa-chat .profile-plan-button:hover { background: var(--aa-leaf-bright); }
.aa-chat .profile-plan-button svg { width: 16px; height: 16px; }
.aa-chat .profile-settings h3 {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  margin: 20px 0 9px;
}
.aa-chat .preference-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aa-chat .preference-options button {
  font-size: 10px;
  padding: 0 9px;
  height: 28px;
  border-radius: 16px;
  border: 1px solid var(--aa-line);
  background: var(--aa-card);
  color: var(--aa-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.aa-chat .preference-options button svg { width: 11px; height: 11px; }
.aa-chat .preference-options button[aria-pressed="true"] {
  background: rgba(47, 98, 73, 0.12);
  color: var(--aa-leaf);
  border-color: var(--aa-leaf);
}
.aa-chat .profile-save-status {
  text-align: center;
  font-size: 10px;
  color: var(--aa-leaf);
  margin: 8px 0 0;
}
@media (max-width: 600px) {
  .aa-kitchen-menus { gap: 3px; }
  .aa-chat .profile-trigger { width: 29px; height: 29px; }
  .aa-chat .profile-avatar { width: 25px; height: 25px; font-size: 11px; }
  .aa-chat .header-menu-trigger { width: 29px; height: 29px; }
  .aa-asks-pill { max-width: 8.5rem; font-size: 0.66rem; padding: 0.3rem 0.55rem; }
  .aa-menu-layer { width: min(340px, calc(100vw - 16px)); }
}


/* —— Main —— */
.aa-main {
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.aa-workspace {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.aa-chat-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  background: transparent;
}

/* Artifact / auth drawers - sit in the main band (header→footer), not over the dock */
.aa-artifact {
  width: var(--aa-panel-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--aa-line);
  background: var(--aa-card);
  box-shadow: -12px 0 32px rgba(46, 58, 51, 0.06);
  transition: transform 0.3s var(--aa-ease), opacity 0.3s var(--aa-ease), box-shadow 0.3s var(--aa-ease);
  animation: aaDrawerIn 0.32s var(--aa-ease) both;
}
@keyframes aaDrawerIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.aa-artifact[hidden] { display: none !important; }

@media (min-width: 900px) {
  /* Pin to viewport right - do not pad .aa-main (that inset the absolute drawer). */
  .aa-app[data-artifact="open"] #aa-artifact,
  .aa-app[data-auth="open"] #aa-auth-drawer {
    position: fixed;
    top: var(--aa-top-h);
    right: 0;
    bottom: 0;
    z-index: 25;
    height: auto;
    max-height: none;
  }
  .aa-app[data-artifact="open"] .aa-chat-col,
  .aa-app[data-auth="open"] .aa-chat-col,
  .aa-app[data-artifact="open"] .aa-dock,
  .aa-app[data-auth="open"] .aa-dock {
    padding-right: var(--aa-panel-w);
  }
}
.aa-artifact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--aa-line);
  background: var(--aa-sheet);
}
.aa-artifact--bom .aa-artifact-titles { display: none; }
.aa-artifact--bom #aa-artifact-copy { display: none; }
.aa-artifact--bom .aa-artifact-bar {
  justify-content: flex-end;
  padding: 0.55rem 0.75rem;
}
.aa-artifact--shop #aa-artifact-copy { display: none; }
.aa-artifact-titles { min-width: 0; }
.aa-artifact-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--aa-mist-dim);
}
.aa-artifact-title {
  margin: 0;
  font-family: var(--aa-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--aa-ink);
  line-height: 1.2;
}
.aa-artifact-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.aa-artifact-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 1rem 1.25rem;
  overscroll-behavior: contain;
}
.aa-copy.is-copied,
.aa-icon-btn.is-copied,
.aa-act.is-copied {
  color: var(--aa-leaf);
  border-color: rgba(47, 98, 73, 0.35);
  background: rgba(47, 98, 73, 0.08);
}
.aa-act.is-copied,
.aa-act.is-act-fail,
.aa-icon-btn.is-copied,
.aa-icon-btn.is-act-fail,
.aa-copy.is-copied,
.aa-copy.is-act-fail {
  width: auto;
  min-width: 2rem;
  padding: 0 0.55rem;
}
.aa-act.is-act-fail,
.aa-icon-btn.is-act-fail,
.aa-copy.is-act-fail {
  color: #9a4a3a;
  border-color: rgba(154, 74, 58, 0.35);
  background: rgba(154, 74, 58, 0.08);
}
.aa-act-flash {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

/* Auth */
.aa-auth-drawer .aa-artifact-body { padding: 1.1rem 1.15rem 1.5rem; }
.aa-auth-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--aa-mist-dim);
}
.aa-auth-benefits {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.aa-auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--aa-ink);
  line-height: 1.4;
}
.aa-auth-benefits li svg,
.aa-auth-check {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--aa-leaf-bright);
}
.aa-auth-actions {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.aa-auth-primary,
.aa-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s var(--aa-ease), background 0.18s var(--aa-ease);
}
.aa-auth-primary {
  background: linear-gradient(180deg, #3a7a5c 0%, #2f6249 100%);
  color: #fff;
  border: 0;
}
.aa-auth-primary:hover {
  transform: translateY(-1px);
  color: #fff;
}
.aa-auth-secondary {
  background: transparent;
  color: var(--aa-ink);
  border: 1px solid var(--aa-line);
}
.aa-auth-secondary:hover {
  background: var(--aa-sand);
  color: var(--aa-ink);
}
.aa-auth-switch {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--aa-mist-dim);
  text-align: center;
}
.aa-auth-switch button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--aa-spice);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  padding: 0;
}
.aa-auth-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--aa-mist-dim);
}
.aa-auth-sso { display: grid; gap: 0.5rem; margin: 0 0 0.85rem; }
.aa-auth-google {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--aa-line);
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.aa-auth-google:hover {
  transform: translateY(-1px);
  box-shadow: var(--aa-shadow-soft);
}
.aa-auth-google:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}
.aa-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.85rem;
  color: var(--aa-mist-dim);
  font-size: 0.78rem;
}
.aa-auth-divider::before,
.aa-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--aa-line);
}
.aa-auth-email-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--aa-line);
  background: transparent;
  color: var(--aa-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.aa-auth-email-toggle:hover { background: var(--aa-sand); }
.aa-auth-email-panel { margin: 0 0 0.35rem; }
.aa-auth-email-panel[hidden] { display: none !important; }
.aa-auth-form { display: grid; gap: 0.7rem; }
.aa-auth-field { display: grid; gap: 0.28rem; }
.aa-auth-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--aa-mist-dim);
}
.aa-auth-field input[type="text"],
.aa-auth-field input[type="email"],
.aa-auth-field input[type="password"],
.aa-auth-field input[type="tel"] {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  background: #fff;
  color: var(--aa-ink);
  font: inherit;
}
.aa-auth-field input:focus {
  outline: none;
  border-color: var(--aa-leaf);
  box-shadow: 0 0 0 3px rgba(58, 122, 92, 0.15);
}
.aa-auth-field.is-error input {
  border-color: #c45c4a;
}
.aa-auth-error {
  margin: 0;
  font-size: 0.75rem;
  color: #b42318;
}
.aa-auth-alert {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
}
.aa-auth-alert--error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}
.aa-auth-alert--ok {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}
.aa-auth-alert--info {
  background: var(--aa-sand);
  color: var(--aa-ink-soft);
  border: 1px solid var(--aa-line);
}
.aa-auth-fullpage {
  padding: 1rem 0;
}
.aa-auth-fullpage a {
  color: var(--aa-leaf);
  font-weight: 600;
}

.aa-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}
.aa-cat-pill {
  appearance: none;
  border: 1px solid var(--aa-line);
  background: var(--aa-card);
  color: var(--aa-ink-soft);
  font-family: var(--aa-sans);
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}
.aa-cat-pill:hover,
.aa-cat-pill.is-active {
  border-color: rgba(58, 122, 92, 0.45);
  background: rgba(58, 122, 92, 0.1);
  color: var(--aa-leaf);
}

.aa-acc {
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  margin: 0 0 0.55rem;
  background: var(--aa-card);
  overflow: hidden;
}
.aa-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--aa-ink);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.aa-acc > summary::-webkit-details-marker { display: none; }
.aa-acc > summary::after {
  content: '+';
  color: var(--aa-mist-dim);
  font-weight: 400;
}
.aa-acc[open] > summary::after { content: '–'; }
.aa-acc-count {
  color: var(--aa-mist-dim);
  font-weight: 500;
  font-size: 0.8rem;
}
.aa-acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.aa-acc-table th,
.aa-acc-table td {
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--aa-line);
  text-align: left;
  vertical-align: middle;
}
.aa-acc-table th:last-child,
.aa-acc-table td:last-child {
  width: 8.5rem;
  min-width: 8.5rem;
  text-align: right;
  vertical-align: middle;
}
.aa-acc-table th {
  color: var(--aa-mist-dim);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aa-food-acts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding-top: 0.2rem;
}
.aa-food-act {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid var(--aa-line);
  background: transparent;
  color: var(--aa-ink-soft);
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.5rem 0.28rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.aa-food-act--icon {
  position: relative;
  width: auto;
  min-width: 30px;
  height: 30px;
  padding: 0 0.35rem;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 8px;
  overflow: visible;
}
.aa-food-act--icon span:not(.aa-food-act-count) { display: none; }
.aa-food-act-count {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border: 0;
  border-radius: 999px;
  background: rgba(201, 100, 66, 0.16);
  color: var(--aa-spice);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}
.aa-acc-table td:last-child .aa-food-acts {
  flex-direction: row;
  flex-wrap: nowrap;
  min-width: 7.5rem;
}
.aa-food-act svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}
.aa-food-act:hover {
  background: var(--aa-sand);
  border-color: var(--aa-line-strong);
  color: var(--aa-ink);
}
.aa-open-catalog {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(58, 122, 92, 0.35);
  background: rgba(58, 122, 92, 0.1);
  color: var(--aa-leaf);
  font-family: var(--aa-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}
.aa-open-catalog:hover { background: rgba(58, 122, 92, 0.16); }

@media (max-width: 899px) {
  .aa-app[data-artifact="open"] #aa-artifact,
  .aa-app[data-auth="open"] #aa-auth-drawer {
    position: fixed;
    top: var(--aa-top-h);
    left: auto;
    right: 0;
    bottom: 0;
    width: min(100%, var(--aa-panel-w));
    z-index: 25;
    border-left: 1px solid var(--aa-line);
    border-top: 1px solid var(--aa-line);
    border-radius: 14px 0 0 0;
    box-shadow: -10px 0 28px rgba(46, 58, 51, 0.12);
    animation: aaDrawerIn 0.32s var(--aa-ease) both;
  }
}

/* —— Empty / homepage —— */
.aa-empty {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.25rem 4.5rem;
  animation: aaIn 0.7s var(--aa-ease) both;
}
.aa-app:not([data-empty="true"]) .aa-empty { display: none; }
@keyframes aaIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.aa-home-brand {
  width: 100%;
  max-width: min(160px, 100%);
  margin: 0 auto 1.15rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  text-align: center;
}
.aa-empty-name {
  margin: 0;
  width: 100%;
  max-width: 24rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  font-family: var(--aa-serif);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.45rem, 6.2vw, 2.15rem);
  line-height: 1.25;
  color: var(--aa-ink);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.aa-empty-name > #aa-empty-headline {
  display: block;
}
.aa-empty-name > #aa-empty-sub {
  display: block;
  margin-top: 0.45rem;
  color: var(--aa-mist-dim);
  font-family: var(--aa-sans);
  font-size: clamp(0.92rem, 3.6vw, 1.02rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.aa-empty-line {
  margin: 0.85rem 0 0;
  width: 100%;
  max-width: 26em;
  padding: 0 0.25rem;
  box-sizing: border-box;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--aa-mist-dim);
  overflow-wrap: anywhere;
}
.aa-try-label { display: none; }

/* Skills as suggestion chips (above composer on empty) */
.aa-skills {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.aa-app[data-empty="true"] .aa-skills { display: flex; }
.aa-skill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  background: var(--aa-card);
  color: var(--aa-ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--aa-shadow-soft);
  transition: border-color 0.15s var(--aa-ease), color 0.15s var(--aa-ease), transform 0.15s var(--aa-ease);
}
.aa-skill:hover {
  border-color: rgba(197, 106, 63, 0.4);
  color: var(--aa-spice);
  transform: translateY(-1px);
}
.aa-skill-label { white-space: nowrap; }

/* —— Thread —— */
.aa-thread {
  flex: 1;
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.aa-msg {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  animation: aaIn 0.35s var(--aa-ease) both;
}
.aa-msg-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aa-mist-dim);
}
.aa-msg--user .aa-msg-role { text-align: right; }
.aa-msg--assistant .aa-msg-role { display: none; }
.aa-msg-body {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 0.98rem;
  word-break: break-word;
}
.aa-msg--user .aa-msg-body {
  width: fit-content;
  max-width: min(82%, 640px);
  margin-left: auto;
  background: var(--aa-user);
  border: 1px solid var(--aa-line);
  color: var(--aa-ink);
  border-bottom-right-radius: 4px;
}
.aa-msg--assistant .aa-msg-body {
  position: relative;
  overflow: hidden;
  padding: 0 1.15rem 1.1rem;
  background: var(--aa-card);
  /* Apple-style dual-tone rim: light inner edge + soft outer line */
  border: 1px solid rgba(46, 58, 51, 0.14);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(46, 58, 51, 0.05),
    0 0 0 0.5px rgba(255, 255, 255, 0.35),
    var(--aa-shadow-float);
  color: var(--aa-ink);
}
.aa-msg--assistant .aa-msg-body.has-bom,
.aa-msg--assistant .aa-msg-body.has-cards,
.aa-msg--assistant .aa-msg-body.has-menu,
.aa-msg--assistant .aa-msg-body.has-nutri {
  border-color: rgba(46, 58, 51, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(46, 58, 51, 0.06),
    0 0 0 0.5px rgba(255, 255, 255, 0.4),
    0 10px 28px rgba(46, 58, 51, 0.07);
}
.aa-msg--assistant .aa-msg-body--plain {
  padding: 0.15rem 0.1rem 0.35rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.aa-msg--assistant .aa-msg-body--plain .aa-answer-p {
  color: var(--aa-ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 40rem;
}
.aa-msg--pending {
  margin-top: -0.55rem;
  margin-bottom: 0.75rem;
}
.aa-msg--pending .aa-msg-role { display: none; }
.aa-msg--pending .aa-msg-body,
.aa-msg--pending .aa-msg-body.aa-msg-body--plain {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.1rem 0.05rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--aa-mist-dim);
  font-style: italic;
  font-size: 0.92rem;
}
.aa-msg--user {
  margin-bottom: 0.55rem;
}
.aa-msg-actions--user {
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.aa-answer-head {
  margin: 0 -1.15rem 1rem;
  border-bottom: 1px solid var(--aa-line);
  background: var(--aa-card);
  overflow: hidden;
}
.aa-answer-head-band {
  height: 4px;
  background: linear-gradient(90deg, rgba(201, 100, 66, 0.55), rgba(42, 92, 69, 0.35));
}
.aa-answer-head--meal .aa-answer-head-band,
.aa-answer-head--pantry .aa-answer-head-band,
.aa-answer-head--nutrition .aa-answer-head-band,
.aa-answer-head--recipe .aa-answer-head-band,
.aa-answer-head--season .aa-answer-head-band {
  background: linear-gradient(90deg, rgba(201, 100, 66, 0.5), rgba(42, 92, 69, 0.32));
}
.aa-answer-head-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.15rem 0.85rem;
  background: var(--aa-card);
}
.aa-answer-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 10px;
  color: var(--aa-leaf);
  background: rgba(58, 122, 92, 0.12);
  border: 1px solid rgba(58, 122, 92, 0.2);
}
.aa-answer-head--nutrition .aa-answer-icon {
  color: var(--aa-spice);
  background: rgba(197, 106, 63, 0.12);
  border-color: rgba(197, 106, 63, 0.22);
}
.aa-answer-kicker {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--aa-mist-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aa-answer-title {
  display: block;
  color: var(--aa-ink);
  font-family: var(--aa-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.aa-answer-p {
  margin: 0 0 0.8rem;
  color: var(--aa-ink-soft);
  font-size: 0.95rem;
  line-height: 1.62;
  letter-spacing: -0.005em;
}
.aa-answer-p:last-child { margin-bottom: 0; }
.aa-answer-note {
  margin: 0.55rem 0 0;
  color: var(--aa-mist-dim);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
}
.aa-answer-note + .aa-answer-note { margin-top: 0.25rem; }
.aa-answer-heading {
  margin: 1.05rem 0 0.45rem;
  color: var(--aa-ink);
  font-family: var(--aa-display);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.aa-answer-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0.95rem;
  padding: 0;
  list-style: none;
}
.aa-answer-list li {
  position: relative;
  padding: 0.62rem 0.75rem 0.62rem 1.8rem;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  background: var(--aa-sheet);
  line-height: 1.5;
}
.aa-answer-list li::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 1.02rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--aa-leaf-bright);
}
.aa-msg-body.has-cards > .aa-answer-list,
.aa-msg-body.has-nutri > .aa-table-wrap:first-of-type,
.aa-msg-body.has-cards > .aa-answer-p[hidden],
.aa-msg-body.has-nutri > .aa-table-wrap[hidden] {
  display: none !important;
}

.aa-plate-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.65rem;
  margin: 0.05rem 0 0.95rem;
  padding: 0.9rem 1rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--aa-leaf) 18%, var(--aa-line));
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(42, 92, 69, 0.1), transparent 42%),
    linear-gradient(120deg, var(--aa-warm), var(--aa-sheet) 70%);
  box-shadow: var(--aa-shadow-soft);
}
.aa-plate-strip::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aa-gold) 22%, transparent);
  pointer-events: none;
}
.aa-plate-strip-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.aa-plate-strip-kicker {
  margin: 0 0 0.28rem;
  color: var(--aa-leaf);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.aa-plate-strip-title {
  margin: 0;
  color: var(--aa-ink);
  font-family: var(--aa-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.aa-plate-strip-blurb {
  margin: 0.35rem 0 0;
  color: var(--aa-ink-soft);
  font-size: 0.8rem;
  font-weight: 450;
  line-height: 1.45;
  max-width: 46rem;
}
.aa-plate-strip-meta {
  margin: 0.12rem 0 0;
  color: var(--aa-mist-dim);
  font-size: 0.78rem;
}
.aa-plate-strip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.aa-plate-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--aa-leaf) 12%, #fff);
  color: var(--aa-leaf);
  font-size: 0.7rem;
  font-weight: 700;
}
.aa-plate-chip--muted {
  background: rgba(31, 30, 27, 0.06);
  color: var(--aa-mist-dim);
  font-weight: 600;
}
.aa-plate-bar {
  position: relative;
  z-index: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(46, 58, 51, 0.1);
}
.aa-plate-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aa-leaf-bright), var(--aa-gold));
}

/* v7-style plate card (photo / compact tray) */
.aa-meal-card {
  margin: 0.15rem 0 1rem;
  border: 1px solid rgba(46, 58, 51, 0.14);
  border-radius: 16px;
  background: var(--aa-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(46, 58, 51, 0.05),
    0 0 0 0.5px rgba(255, 255, 255, 0.35),
    var(--aa-shadow-soft);
  overflow: hidden;
}
.aa-meal-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.55rem;
}
.aa-meal-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--aa-spice);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.aa-meal-title {
  margin: 0;
  color: var(--aa-ink);
  font-family: var(--aa-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.aa-meal-fav {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--aa-sheet);
  color: var(--aa-mist-dim);
  cursor: pointer;
}
.aa-meal-fav svg { width: 1.05rem; height: 1.05rem; }
.aa-meal-fav[aria-pressed="true"] {
  color: var(--aa-spice);
  background: rgba(197, 106, 63, 0.12);
}
.aa-meal-fav[aria-pressed="true"] svg { fill: currentColor; }
.aa-plate-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-top: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
  background: var(--aa-sheet);
}
.aa-plate-view-bar > span {
  color: var(--aa-mist-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aa-plate-view-toggle {
  display: inline-flex;
  padding: 0.15rem;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  background: var(--aa-card);
  gap: 0.1rem;
}
.aa-plate-view-toggle button {
  appearance: none;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--aa-mist-dim);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
}
.aa-plate-view-toggle button[aria-pressed="true"] {
  background: var(--aa-card);
  color: var(--aa-leaf);
  box-shadow: var(--aa-shadow-soft);
}
.aa-meal-card-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
}
.aa-meal-card-content.is-compact {
  grid-template-columns: 1fr;
}
.aa-meal-card-content.is-compact .aa-meal-photo { display: none; }
.aa-meal-card-content.is-photo .aa-dish-list {
  display: flex;
  flex-direction: column;
}
.aa-meal-photo {
  min-height: 220px;
  background: var(--aa-warm);
}
.aa-meal-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 220px;
}
.aa-meal-mosaic-cell {
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--aa-display);
  font-size: 1.4rem;
  font-weight: 750;
}
.aa-meal-mosaic-cell.has-photo span { display: none; }
.aa-dish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.aa-meal-card-content.is-photo .aa-dish-list {
  grid-template-columns: 1fr;
}
.aa-dish-item {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: start;
  width: 100%;
  min-height: 5.5rem;
  padding: 0.85rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
  background: var(--aa-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.aa-dish-item:nth-child(2n) { border-right: 0; }
.aa-meal-card-content.is-photo .aa-dish-item {
  border-right: 0;
  min-height: 0;
}
.aa-dish-item.is-focused,
.aa-dish-item:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--aa-spice) 10%, #fff);
}
.aa-dish-name {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--aa-ink);
}
.aa-dish-note {
  display: block;
  color: var(--aa-mist-dim);
  font-size: 0.74rem;
  line-height: 1.35;
}
.aa-dish-stats {
  display: block;
  margin-top: 0.4rem;
  color: var(--aa-leaf);
  font-size: 0.68rem;
  font-weight: 700;
}
.aa-dish-open {
  color: var(--aa-mist-dim);
}
.aa-dish-open svg { width: 0.95rem; height: 0.95rem; }
.aa-meal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--aa-line);
}
.aa-meal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--aa-sheet);
  color: var(--aa-ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
}
.aa-meal-meta-chip--region {
  background: color-mix(in srgb, var(--aa-leaf) 14%, #fff);
  color: var(--aa-leaf);
}
.aa-meal-meta-chip--muted {
  background: rgba(31, 30, 27, 0.06);
  color: var(--aa-mist-dim);
  font-weight: 600;
}
.aa-meal-why {
  margin: 0;
  padding: 0 1rem 0.45rem;
  color: var(--aa-ink-soft);
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.4;
}
.aa-meal-plate-bar-wrap {
  padding: 0 1rem 0.55rem;
}
.aa-meal-plate-bar-wrap .aa-plate-bar {
  margin: 0;
}
.aa-meal-plate-bar-hint {
  margin: 0.35rem 0 0;
  color: var(--aa-mist-dim);
  font-size: 0.62rem;
  font-weight: 600;
}
.aa-meal-warnings {
  margin: 0;
  padding: 0 1rem 0.75rem 1.85rem;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}
.aa-meal-warnings li {
  margin: 0.2rem 0;
}
.aa-meal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}
.aa-meal-action {
  appearance: none;
  min-height: 2.2rem;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--aa-leaf);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.aa-meal-action--ghost {
  background: transparent;
  border: 1px solid var(--aa-line);
  color: var(--aa-ink-soft);
}
.aa-meal-action--ghost:hover {
  background: var(--aa-sheet);
  color: var(--aa-ink);
}

/* Numbered follow-up ask (v7 mood / time / people) */
.aa-follow-ask {
  position: relative;
  z-index: 2;
  margin: 0.75rem 0 0.95rem;
  padding: 1rem 1.05rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--aa-spice) 28%, var(--aa-line));
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(31, 30, 27, 0.04),
    0 14px 36px rgba(31, 30, 27, 0.12);
  outline: none;
}
.aa-follow-ask:focus-visible {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--aa-spice) 35%, #fff),
    0 14px 36px rgba(31, 30, 27, 0.12);
}
.aa-msg-body:has(.aa-follow-ask) .aa-meal-card {
  opacity: 0.92;
}
.aa-follow-ask-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.aa-follow-ask-heading h3 {
  margin: 0;
  font-family: var(--aa-display);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--aa-ink);
}
.aa-follow-ask-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.aa-follow-ask-count {
  min-width: 3.2rem;
  text-align: center;
  color: var(--aa-mist-dim);
  font-size: 0.72rem;
  font-weight: 650;
}
.aa-follow-ask-icon {
  appearance: none;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.aa-follow-ask-icon:disabled { opacity: 0.35; cursor: default; }
.aa-follow-ask-options {
  display: grid;
  gap: 0.4rem;
}
.aa-follow-ask-option {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  background: var(--aa-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.aa-follow-ask-option.is-active {
  border-color: color-mix(in srgb, var(--aa-spice) 45%, var(--aa-line));
  background: color-mix(in srgb, var(--aa-spice) 10%, #fff);
}
.aa-follow-ask-num {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--aa-sheet);
  color: var(--aa-ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}
.aa-follow-ask-option.is-active .aa-follow-ask-num {
  background: var(--aa-spice);
  color: #fff;
}
.aa-follow-ask-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aa-ink);
}
.aa-follow-ask-enter {
  color: var(--aa-spice);
  font-size: 0.85rem;
  font-weight: 700;
}
.aa-follow-ask-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
}
.aa-follow-ask-else,
.aa-follow-ask-skip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--aa-mist-dim);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.aa-follow-ask-skip { color: var(--aa-spice); }
.aa-follow-ask-hint {
  margin: 0.55rem 0 0;
  color: var(--aa-mist-dim);
  font-size: 0.68rem;
}
.aa-follow-summary {
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--aa-spice) 12%, #fff);
  color: var(--aa-ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

@media (max-width: 720px) {
  .aa-meal-card-content.is-photo {
    grid-template-columns: 1fr;
  }
  .aa-dish-list {
    grid-template-columns: 1fr;
  }
  .aa-dish-item { border-right: 0; }
}

.aa-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.75rem;
  margin: 0.15rem 0 1rem;
}
.aa-recipe-card {
  appearance: none;
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  background: var(--aa-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--aa-shadow-soft);
  transition: border-color 0.18s var(--aa-ease), transform 0.18s var(--aa-ease), box-shadow 0.18s var(--aa-ease);
}
.aa-recipe-card:hover {
  border-color: rgba(58, 122, 92, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--aa-shadow-float);
}
.aa-recipe-card-thumb {
  position: relative;
  height: 72px;
  display: grid;
  place-items: center;
}
.aa-recipe-card-thumb--peach { background: linear-gradient(135deg, #ebe4dc, #ddd4c8); }
.aa-recipe-card-thumb--mint { background: linear-gradient(135deg, #e2e8e4, #d0dbd4); }
.aa-recipe-card-thumb--gold { background: linear-gradient(135deg, #ebe6d8, #ddd4c0); }
.aa-recipe-card-thumb--rose { background: linear-gradient(135deg, #e9e3e1, #dbd2cf); }
.aa-recipe-card-thumb--sage { background: linear-gradient(135deg, #e4e8e2, #d2d9cf); }
.aa-recipe-card-initial {
  color: rgba(46, 58, 51, 0.35);
  font-family: var(--aa-serif);
  font-size: 1.6rem;
  line-height: 1;
}
.aa-recipe-card-main {
  min-width: 0;
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem 0.85rem;
}
.aa-recipe-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.aa-recipe-card-name {
  margin: 0;
  color: var(--aa-ink);
  font-family: var(--aa-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.28;
}
.aa-recipe-card-go { display: none; }
.aa-recipe-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.aa-bom-summary {
  appearance: none;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin: 0.15rem 0 1rem;
  padding: 0;
  border: 1px solid var(--aa-line);
  border-radius: 14px;
  background: var(--aa-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--aa-shadow-soft);
}
.aa-bom-summary:hover {
  border-color: rgba(58, 122, 92, 0.35);
  box-shadow: var(--aa-shadow-float);
}
.aa-bom-summary-thumb {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.aa-bom-summary-thumb--photo {
  background-color: var(--aa-sheet);
}
.aa-bom-summary-copy {
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.2rem;
}
.aa-bom-summary-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aa-mist-dim);
}
.aa-bom-summary-title {
  margin: 0;
  font-family: var(--aa-serif);
  font-size: 1.15rem;
  color: var(--aa-ink);
  line-height: 1.25;
}
.aa-bom-summary-blurb {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--aa-ink-soft);
}
.aa-bom-summary-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--aa-leaf);
  font-weight: 600;
}
.aa-bom-hero {
  position: relative;
  margin: 0 0 1rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--aa-line);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.aa-bom-hero--photo {
  color: #fff;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 3.5rem;
}
.aa-bom-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 22, 0.15) 0%, rgba(20, 24, 22, 0.72) 100%);
  pointer-events: none;
}
.aa-bom-hero--photo > * {
  position: relative;
  z-index: 1;
}
.aa-bom-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.aa-bom-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.aa-bom-hero--photo .aa-bom-hero-actions .aa-icon-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(20, 24, 22, 0.35);
}
.aa-bom-hero-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(46, 58, 51, 0.55);
}
.aa-bom-hero--photo .aa-bom-hero-kicker {
  color: rgba(255, 255, 255, 0.75);
}
.aa-bom-hero-title {
  margin: 0;
  font-family: var(--aa-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--aa-ink);
  line-height: 1.25;
}
.aa-bom-hero--photo .aa-bom-hero-title {
  color: #fff;
}
.aa-bom-hero-blurb {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--aa-ink-soft);
}
.aa-bom-hero--photo .aa-bom-hero-blurb {
  color: rgba(255, 255, 255, 0.88);
}
.aa-bom-hero-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--aa-ink-soft);
}
.aa-bom-hero--photo .aa-bom-hero-meta {
  color: rgba(255, 255, 255, 0.78);
}
.aa-bom-scale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.35rem;
  padding: 0 0.15rem;
}
.aa-bom-scale-label {
  margin-right: 0.2rem;
  color: var(--aa-mist-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aa-bom-scale-btn {
  appearance: none;
  min-width: 2.4rem;
  height: 1.9rem;
  padding: 0 0.55rem;
  border: 1px solid var(--aa-line);
  border-radius: 999px;
  background: var(--aa-card);
  color: var(--aa-ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.aa-bom-scale-btn.is-active {
  border-color: color-mix(in srgb, var(--aa-leaf) 45%, var(--aa-line));
  background: color-mix(in srgb, var(--aa-leaf) 12%, #fff);
  color: var(--aa-leaf);
}
.aa-bom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.aa-bom-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0;
  border: none;
  border-bottom: 1px solid var(--aa-line);
  border-radius: 0;
  background: transparent;
}
.aa-bom-item:last-child {
  border-bottom: 0;
}
.aa-bom-item--main .aa-bom-name {
  color: var(--aa-forest, #3a7a5c);
}
.aa-bom-item-copy {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.aa-bom-item .aa-food-acts {
  flex-shrink: 0;
  margin-left: auto;
}
.aa-bom-qty {
  flex-shrink: 0;
  min-width: 4.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--aa-spice);
  white-space: nowrap;
}
.aa-bom-name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--aa-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aa-bom-state {
  font-size: 0.75rem;
  color: var(--aa-mist-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aa-bom-flags {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--aa-mist-dim);
  line-height: 1.4;
}
.aa-shop-meta {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--aa-mist-dim);
}
.aa-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.aa-shop-tool {
  appearance: none;
  border: 1px solid var(--aa-line);
  background: var(--aa-card);
  color: var(--aa-ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
.aa-shop-tool--ghost {
  background: transparent;
  color: var(--aa-mist-dim);
}
.aa-shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.aa-shop-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--aa-line);
}
.aa-shop-item:last-child { border-bottom: 0; }
.aa-shop-item.is-checked .aa-shop-name {
  text-decoration: line-through;
  color: var(--aa-mist-dim);
}
.aa-shop-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}
.aa-shop-label input {
  margin-top: 0.2rem;
  accent-color: var(--aa-leaf, #2f6249);
}
.aa-shop-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}
.aa-shop-qty {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--aa-spice);
  white-space: nowrap;
}
.aa-shop-name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--aa-ink);
}
.aa-shop-from {
  margin-left: 1.55rem;
  font-size: 0.7rem;
  color: var(--aa-mist-dim);
}
.aa-msg-body.has-bom > .aa-answer-list,
.aa-msg-body.has-bom > .aa-answer-p[hidden] {
  display: none;
}
.aa-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--aa-line);
  background: var(--aa-sheet);
  color: var(--aa-mist-dim);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.aa-pill--leaf {
  color: var(--aa-leaf);
  border-color: rgba(58, 122, 92, 0.28);
  background: rgba(58, 122, 92, 0.1);
}
.aa-recipe-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin: 0;
  color: var(--aa-mist-dim);
  font-size: 0.8rem;
  line-height: 1.4;
}
.aa-recipe-card-facts span strong {
  color: var(--aa-ink-soft);
  font-weight: 600;
}

.aa-condition-guide {
  display: grid;
  gap: 0.75rem;
  margin: 0.35rem 0 0.85rem;
}
.aa-condition-guide-block {
  border-left: 3px solid rgba(46, 125, 50, 0.45);
  padding: 0.15rem 0 0.15rem 0.75rem;
}
.aa-condition-guide-block--avoid {
  border-left-color: rgba(183, 80, 40, 0.55);
}
.aa-condition-guide-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aa-muted, #6b6358);
}
.aa-condition-guide-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--aa-ink, #1f1a14);
}
.aa-condition-guide-list li::marker {
  color: rgba(46, 125, 50, 0.7);
}
.aa-condition-guide-block--avoid .aa-condition-guide-list li::marker {
  color: rgba(183, 80, 40, 0.75);
}

.aa-nutri-block { margin: 0.15rem 0 1rem; }
.aa-nutri-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  margin: 0 0 0.65rem;
}
.aa-nutri-head strong {
  color: var(--aa-ink);
  font-family: var(--aa-display);
  font-size: 1.08rem;
  font-weight: 700;
}
.aa-nutri-head span {
  color: var(--aa-mist-dim);
  font-size: 0.75rem;
}
.aa-nutri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.5rem;
  margin: 0;
}
.aa-nutri-tile {
  padding: 0.7rem 0.75rem 0.75rem;
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  background: var(--aa-sheet);
}
.aa-nutri-tile dt {
  margin: 0 0 0.28rem;
  color: var(--aa-mist-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aa-nutri-tile dd {
  margin: 0;
  color: var(--aa-ink);
  font-family: var(--aa-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
}
.aa-nutri-tile dd small {
  display: block;
  margin-top: 0.2rem;
  color: var(--aa-mist-dim);
  font-family: var(--aa-sans);
  font-size: 0.7rem;
  font-weight: 500;
}

.aa-upgrade {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(197, 106, 63, 0.35);
  background: linear-gradient(145deg, rgba(197, 106, 63, 0.1), #fff 55%);
  box-shadow: var(--aa-shadow-soft);
}
/* v7 bf-promo language on soft signup ad */
.aa-upgrade--soft {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.1rem 1.15rem 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--aa-spice) 22%, var(--aa-line));
  border-radius: 16px;
  background: linear-gradient(120deg, #f8efe2, #f6e4d8 55%, #f3ebe3);
  color: var(--aa-ink);
  box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--aa-spice) 55%, transparent);
}
.aa-upgrade--soft::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aa-gold) 28%, transparent);
  pointer-events: none;
}
.aa-upgrade-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.aa-upgrade-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--aa-spice);
}
.aa-upgrade--soft .aa-upgrade-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  color: var(--aa-spice);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.aa-upgrade-title {
  margin: 0 0 0.35rem;
  font-family: var(--aa-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--aa-ink);
  line-height: 1.2;
}
.aa-upgrade--soft .aa-upgrade-title {
  font-family: var(--aa-display);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}
.aa-upgrade-body {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  color: var(--aa-ink-soft);
  line-height: 1.45;
}
.aa-upgrade--soft .aa-upgrade-body {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--aa-ink-soft);
}
.aa-upgrade-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--aa-ink-soft);
}
.aa-upgrade-benefits li::before {
  content: "✓ ";
  font-weight: 700;
  color: var(--aa-leaf);
}
.aa-upgrade-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.aa-upgrade-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, #fff 75%, transparent);
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--aa-ink-soft);
}
.aa-upgrade-preview span.is-locked {
  filter: blur(0.4px);
  opacity: 0.72;
}
.aa-upgrade-locks {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--aa-mist-dim);
}
.aa-upgrade-locks li::before { content: "· "; color: var(--aa-spice); }
.aa-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aa-upgrade--soft .aa-upgrade-actions {
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 9.5rem;
}
.aa-upgrade-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.3rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a7a5c 0%, #2f6249 100%);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.aa-upgrade-cta svg { flex-shrink: 0; }
.aa-upgrade-cta:hover { color: #fff; transform: translateY(-1px); }
.aa-upgrade--soft .aa-upgrade-cta {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
}
.aa-upgrade-login {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--aa-line);
  border-radius: 999px;
  background: transparent;
  color: var(--aa-ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.aa-upgrade-login:hover { background: var(--aa-sand); color: var(--aa-ink); }
.aa-upgrade--soft .aa-upgrade-login {
  width: 100%;
  min-height: 2.55rem;
  border-color: color-mix(in srgb, var(--aa-ink) 14%, transparent);
  background: color-mix(in srgb, #fff 70%, transparent);
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .aa-upgrade--soft {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .aa-upgrade--soft .aa-upgrade-actions {
    flex-direction: row;
    min-width: 0;
  }
  .aa-upgrade--soft .aa-upgrade-cta,
  .aa-upgrade--soft .aa-upgrade-login {
    flex: 1;
    width: auto;
  }
}

.aa-msg--assistant .aa-msg-body .aa-table-wrap {
  overflow: auto;
  margin: 0.5rem 0 0.9rem;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
}
.aa-msg--assistant .aa-msg-body .aa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.aa-msg--assistant .aa-msg-body .aa-table th,
.aa-msg--assistant .aa-msg-body .aa-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--aa-line);
  text-align: left;
}
.aa-msg--assistant .aa-msg-body .aa-table th {
  background: var(--aa-sheet);
  color: var(--aa-mist-dim);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aa-msg--assistant .aa-msg-body .aa-table tr:last-child td { border-bottom: 0; }

.aa-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.aa-act {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-mist-dim);
  cursor: pointer;
}
.aa-act:hover {
  background: var(--aa-sand);
  color: var(--aa-ink);
  border-color: var(--aa-line);
}
.aa-act[aria-pressed="true"] {
  color: var(--aa-leaf);
  background: rgba(58, 122, 92, 0.1);
}
.aa-feedback-thanks {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--aa-leaf);
}
.aa-feedback-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.aa-msg-cites,
.aa-clarify,
.aa-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.aa-cite {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--aa-sand);
  color: var(--aa-mist-dim);
  font-size: 0.7rem;
}
.aa-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--aa-line);
  border-radius: 999px;
  background: var(--aa-card);
  color: var(--aa-ink-soft);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: var(--aa-shadow-soft);
}
.aa-chip:hover {
  border-color: rgba(197, 106, 63, 0.4);
  color: var(--aa-spice);
}
.aa-chip--quiet {
  background: transparent;
  box-shadow: none;
}
.aa-err {
  color: #b42318;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* —— Composer dock —— */
.aa-dock {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem clamp(0.75rem, 3vw, 1.5rem) calc(0.65rem + 8px);
  background: linear-gradient(180deg, transparent, var(--aa-bg) 28%);
  z-index: 2;
  overflow: hidden;
}
.aa-composer-stack {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.aa-dock-promo {
  margin: 0 0 0.55rem;
}
.aa-dock-promo[hidden] { display: none !important; }
.aa-dock-promo .aa-upgrade--soft {
  margin: 0;
}
/* Claude-style: numbered follow-up ask fixed above the composer */
.aa-dock-ask {
  margin: 0 0 0.55rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}
.aa-dock-ask[hidden] { display: none !important; }
.aa-dock-ask .aa-follow-ask {
  margin: 0;
  box-shadow:
    0 1px 0 rgba(31, 30, 27, 0.04),
    0 10px 28px rgba(31, 30, 27, 0.1);
}
.aa-app[data-follow-ask="open"] .aa-dock-promo {
  display: none !important;
}
.aa-follow-lead {
  margin: 0;
  color: var(--aa-ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.aa-msg--follow-gate .aa-msg-body {
  max-width: 36rem;
  padding-bottom: 0.15rem;
}
.aa-ad {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.75rem 0.7rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--aa-spice) 20%, var(--aa-line));
  border-radius: 14px;
  background: linear-gradient(120deg, #f8efe2, #f7e8dc 50%, var(--aa-card));
  box-shadow: var(--aa-shadow-soft);
}
.aa-ad[hidden] { display: none !important; }
.aa-ad::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--aa-spice);
}
.aa-ad::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aa-gold) 24%, transparent);
  pointer-events: none;
}
.aa-ad-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  color: var(--aa-spice);
  background: rgba(197, 106, 63, 0.12);
  border: 1px solid rgba(197, 106, 63, 0.22);
}
.aa-ad-copy,
.aa-ad-cta,
.aa-ad-close { position: relative; z-index: 1; }
.aa-ad-copy { min-width: 0; }
.aa-ad-eyebrow,
.aa-ad-title,
.aa-ad-body { margin: 0; }
.aa-ad-eyebrow {
  margin-bottom: 0.04rem;
  color: var(--aa-spice);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.aa-ad-title {
  overflow: hidden;
  color: var(--aa-ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aa-ad-body {
  overflow: hidden;
  margin-top: 0.06rem;
  color: var(--aa-mist-dim);
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aa-ad-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.32rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--aa-ink);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.aa-ad-cta:hover { background: #1f2924; color: #fff; }
.aa-ad-cta--preview { opacity: 0.68; }
.aa-ad-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-mist-dim);
  cursor: pointer;
}
.aa-ad-close:hover {
  background: var(--aa-sand);
  color: var(--aa-ink);
}

.aa-attach-chip {
  width: 100%;
  margin: 0 0 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--aa-line);
  border-radius: 9px;
  background: var(--aa-sheet);
  color: var(--aa-ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}
.aa-attach-chip[hidden] { display: none !important; }
.aa-attach-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aa-attach-clear {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--aa-mist-dim);
  cursor: pointer;
}
.aa-attach-clear:hover {
  background: var(--aa-sand);
  color: var(--aa-ink);
}
.aa-composer {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.35rem;
  align-items: end;
  padding: 0.45rem 0.45rem 0.45rem 0.45rem;
  background: var(--aa-card);
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  box-shadow: var(--aa-shadow-soft);
  transition: border-color 0.2s var(--aa-ease), box-shadow 0.2s var(--aa-ease);
}
.aa-composer:focus-within {
  border-color: rgba(58, 122, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(58, 122, 92, 0.12), var(--aa-shadow-soft);
}
.aa-composer-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--aa-ink-soft);
  cursor: pointer;
  transition: background 0.15s var(--aa-ease), color 0.15s var(--aa-ease);
}
.aa-composer-btn:hover {
  background: var(--aa-sand);
  color: var(--aa-ink);
}
.aa-composer-btn.is-listening {
  color: var(--aa-spice);
  background: rgba(197, 106, 63, 0.12);
}
.aa-composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--aa-ink);
  font-family: var(--aa-sans);
  font-size: 0.98rem;
  line-height: 1.45;
  max-height: 160px;
  padding: 0.5rem 0.15rem;
}
.aa-composer textarea::placeholder {
  color: rgba(46, 58, 51, 0.42);
}
.aa-composer-hint {
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--aa-mist-dim);
}
.aa-composer-hint[hidden] { display: none !important; }
.aa-composer-hint.is-error { color: var(--aa-spice); }
.aa-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3a7a5c 0%, #2f6249 100%);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s var(--aa-ease), transform 0.15s var(--aa-ease);
}
.aa-send:hover:not(:disabled) { transform: translateY(-1px); }
.aa-send:disabled {
  opacity: 0.35;
  cursor: default;
}
.aa-disclaimer {
  width: min(760px, 100%);
  margin: 0.55rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--aa-mist-dim);
}
.aa-disclaimer svg {
  flex-shrink: 0;
  color: var(--aa-leaf-bright);
}
.aa-legal-note {
  width: min(760px, 100%);
  margin: 0.28rem auto 0;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.45;
  color: rgba(31, 30, 27, 0.42);
  box-sizing: border-box;
}
.aa-legal-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aa-legal-note a:hover {
  color: var(--aa-mist-dim);
}
.aa-auth-check a {
  color: var(--aa-leaf);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .aa-app {
    --aa-top-h: 56px;
    grid-template-rows: var(--aa-top-h) minmax(0, 1fr) auto;
  }
  .aa-top { padding: 0 0.75rem; gap: 0.35rem; }
  .aa-top-byline { display: none; }
  .aa-top-logo--aamoai {
    display: block;
    height: 20px;
    max-width: min(72px, 22vw);
    flex-shrink: 0;
  }
  .aa-top-logo--anandavo {
    height: 22px;
    max-width: min(96px, 30vw);
    padding-left: 0.4rem;
    flex-shrink: 0;
  }
  .aa-top-brand {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .aa-clarify,
  .aa-suggestions,
  .aa-feedback-reasons {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }
  .aa-clarify::-webkit-scrollbar,
  .aa-suggestions::-webkit-scrollbar,
  .aa-feedback-reasons::-webkit-scrollbar { display: none; }
  .aa-clarify .aa-chip,
  .aa-suggestions .aa-chip,
  .aa-feedback-reasons .aa-chip {
    flex-shrink: 0;
    font-size: 0.78rem;
    min-height: 1.85rem;
    padding: 0.3rem 0.65rem;
  }
  .aa-home-brand { max-width: min(140px, 42vw); margin-bottom: 0.9rem; }
  .aa-home-mark { width: min(112px, 32vw); }
  .aa-empty {
    padding: 1rem 1rem 1.25rem;
    justify-content: center;
  }
  .aa-empty-name {
    max-width: 100%;
    font-size: clamp(1.35rem, 7vw, 1.65rem);
  }
  .aa-empty-name > #aa-empty-sub { font-size: 0.92rem; }
  .aa-empty-line {
    max-width: 100%;
    font-size: 0.82rem;
  }
  .aa-skills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 0.05rem 0.1rem 0.35rem;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .aa-skills::-webkit-scrollbar { display: none; }
  .aa-skill { flex-shrink: 0; }
  .aa-ad {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem 0.55rem 0.7rem;
  }
  .aa-ad-body { display: none; }
  .aa-ad-cta { min-height: 1.65rem; padding: 0.26rem 0.5rem; font-size: 0.68rem; }
  .aa-card-grid { grid-template-columns: minmax(0, 1fr); }
  .aa-bom-summary { grid-template-columns: 68px minmax(0, 1fr); }
  .aa-bom-summary-title { font-size: 1.02rem; }
  .aa-msg--user .aa-msg-body { max-width: 92%; }
  .aa-msg--assistant .aa-msg-body { padding-left: 0.85rem; padding-right: 0.85rem; }
  .aa-msg--assistant .aa-msg-body--plain { padding: 0.15rem 0.1rem 0.35rem; }
  /* Menus / plates: drop bubble + recipe card chrome on phone */
  .aa-msg--assistant .aa-msg-body.has-menu {
    padding: 0.15rem 0.1rem 0.35rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-answer-head {
    display: none;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-plate-strip {
    margin: 0 0 0.5rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-plate-strip-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-plate-strip-blurb {
    font-size: 0.74rem;
    margin-top: 0.18rem;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-plate-strip-meta {
    font-size: 0.74rem;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-upgrade {
    display: none;
  }
  .aa-msg--assistant .aa-msg-body.has-menu .aa-msg-actions {
    margin-top: 0.35rem;
    gap: 0.35rem;
  }
  .aa-card-grid--menu {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .aa-card-grid--menu .aa-recipe-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--aa-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
  }
  .aa-card-grid--menu .aa-recipe-card:last-child { border-bottom: 0; }
  .aa-card-grid--menu .aa-recipe-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }
  .aa-card-grid--menu .aa-recipe-card-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-top: 0.1rem;
  }
  .aa-card-grid--menu .aa-recipe-card-initial { font-size: 1.05rem; }
  .aa-card-grid--menu .aa-recipe-card-main {
    padding: 0;
    min-width: 0;
    flex: 1 1 auto;
  }
  .aa-card-grid--menu .aa-recipe-card-title {
    font-size: 0.92rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .aa-card-grid--menu .aa-recipe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem 0.4rem;
    margin-top: 0.28rem;
  }
  .aa-card-grid--menu .aa-recipe-card-meta .aa-pill,
  .aa-card-grid--menu .aa-recipe-card-meta span {
    font-size: 0.68rem;
    line-height: 1.2;
    max-width: 100%;
  }
  .aa-thread {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .aa-answer-head {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .aa-composer {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.2rem;
    padding: 0.35rem;
  }
  .aa-composer textarea { font-size: 0.95rem; }
  .aa-composer-btn,
  .aa-send {
    width: 38px;
    height: 38px;
  }
  .aa-disclaimer {
    font-size: 0.68rem;
    padding: 0 0.25rem;
    flex-wrap: wrap;
  }
  .aa-thread { padding-left: 0.85rem; padding-right: 0.85rem; }
}

@media (max-width: 380px) {
  .aa-top-logo--aamoai {
    height: 18px;
    max-width: min(64px, 20vw);
  }
  .aa-top-logo--anandavo {
    height: 20px;
    max-width: min(88px, 28vw);
  }
  .aa-card-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .aa-empty, .aa-msg, .aa-artifact { animation: none !important; }
  .aa-artifact { transition: none !important; }
}
