/* frontend/css/views/assistant.css — feuille Assistant repas (#/assistant).
   Maquette : design/maquettes/C_Assistant.dc.html (390×844). Les briques communes (feuille, puces,
   boutons, champs, bandeaux .notice, états vides) sont dans css/components.css ; ici, ce qui est
   propre à l'assistant, préfixé .as-.
   Trois couleurs de la maquette n'ont pas de variable dans tokens.css (fichier partagé) : elles
   sont posées ici sur .as-scope (en-tête, conversation, pied), avec leur version sombre dérivée
   (contraste du texte gris ≥ 4,5:1 vérifié sur les deux fonds). */

.as-scope {
  --as-card: #F4F3F9;       /* carte « Liste de courses », recettes */
  --as-card-line: #E4E2EE;  /* filets entre rayons */
  --as-pick: #C6E9D4;       /* menu choisi (menthe plus soutenu) */
}
[data-theme="dark"] .as-scope {
  --as-card: #25222F;
  --as-card-line: #34304A;
  --as-pick: #24452F;
}

/* ========== En-tête ========== */

.as-head {
  padding-top: 18px;
  gap: 10px;
}
.as-head .sheet__title-row { min-height: 46px; }
.as-head .sheet__title { white-space: nowrap; }

/* Résumé « Nos goûts » : deux lignes de pastilles de 28 px. */
.as-tastes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-tastes__row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  min-width: 0;
}
.as-tastes__edit {
  flex: none;
  height: 44px;
  margin: -8px 0;
  padding: 0 4px 0 0;
  white-space: nowrap;
}
.as-pill {
  flex: 0 1 auto;
  min-width: 0;
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--chip);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-pill--fixed { flex: none; }
/* Le matériel cède la place en premier : « N'aime pas » (et les allergies) compte plus. */
.as-pill--equip { flex-shrink: 4; max-width: 45%; }
/* … sans disparaître : « N'aime pas » (long dès qu'on ajoute une allergie) s'arrête à 6rem du bord,
   le matériel garde au moins son icône et un mot (et pas « F… »). */
.as-tastes__row .as-pill:has(+ .as-pill--equip) { max-width: calc(100% - 6rem - 6px); }
.as-pill--equip svg { vertical-align: -2px; margin-right: 4px; }
.as-pill__label { color: var(--mute); }
.as-pill.is-empty { color: var(--mute); }

/* Barre de conversation : conversation en cours (ouvre la liste) et « Nouvelle ». */
.as-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
}
.as-bar__threads {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: -7px 0;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.as-bar__threads svg { color: var(--mute); }
.as-bar__threads[aria-expanded="true"] svg { transform: rotate(180deg); }
.as-bar__title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-bar__new { flex: none; margin: -7px 0; }
.as-bar [aria-disabled="true"] { opacity: 0.5; cursor: default; }

/* ========== Zone centrale ========== */

/* Conversation : marges de la maquette (4 px en haut, 10 px en bas) et fondu de 14 px en haut. */
.sheet__main.as-main {
  position: relative; /* offsetTop des messages relatif à cette zone (défilement vers une réponse) */
  padding-top: 4px;
  padding-bottom: 10px;
}
.as-main--chat {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
}
.sheet__main.as-main--panel {
  padding-top: 14px;
  padding-bottom: 24px;
}
.sheet__main.as-main--panel:not(:has(+ .sheet__foot:not([hidden]))) {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}

/* Le log se cale en bas quand il est court (margin-top:auto, et non justify-content:flex-end
   qui rendrait le haut d'une longue conversation inaccessible au défilement). */
.as-log {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}
.as-log--status { margin: auto 0; }

/* État vide d'une nouvelle conversation */
.as-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 4px 8px;
  text-align: center;
}
.as-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--menthe);
  color: var(--ink);
}
.as-empty__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
}
.as-empty__text {
  max-width: 310px;
  font-size: 14px;
  line-height: 19px;
  color: var(--mute);
}
.as-prompts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.as-prompt {
  height: auto;
  min-height: 44px;
  padding: 0 16px;
  white-space: normal;
  text-align: center;
}
.as-spend {
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}
.as-empty .as-spend { margin-top: 8px; }

/* ========== Messages ========== */

.as-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.as-msg--user {
  align-items: flex-end;
  gap: 4px;
}
.as-msg__author {
  margin-right: 8px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  color: var(--mute);
}

/* Bulle de la personne : accent, coin bas droit resserré. */
.as-bubble {
  max-width: min(310px, 88%);
  border-radius: 22px 22px 6px 22px;
  background: var(--acc);
  color: var(--on-acc);
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.as-bubble.has-photo { padding: 6px; }
.as-bubble__photo,
.as-bubble__nophoto {
  width: 100px;
  height: 88px;
  flex: none;
  border-radius: 17px;
}
.as-bubble__photo {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.16);
}
.as-bubble__nophoto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  line-height: 13px;
  font-weight: 600;
  text-align: center;
}
.as-bubble__text {
  min-width: 0;
  font-size: 14px;
  line-height: 18px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.as-bubble.has-photo .as-bubble__text { padding: 4px 6px 4px 0; }
.as-msg--user.is-pending .as-bubble { opacity: 0.85; }

/* Réponse de l'assistant : texte brut, sans bulle (maquette). */
.as-reply {
  font-size: 14px;
  line-height: 19px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* « L'assistant réfléchit » */
.as-thinking {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--chip);
  color: var(--mute);
  font-size: 13px;
  line-height: 17px;
}
.as-dots { display: inline-flex; gap: 4px; flex: none; }
.as-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--acc);
  animation: as-dot 1.2s ease-in-out infinite;
}
.as-dots i:nth-child(2) { animation-delay: 0.15s; }
.as-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes as-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Erreurs et refus (bandeau pêche de components.css) */
.as-alert,
.as-refused { align-self: stretch; }
.as-alert__action {
  align-self: flex-start;
  margin: 2px 0 -10px -4px;
}

/* ========== Pastille « J'ai noté : … » ========== */

.as-note {
  align-self: flex-start;
  max-width: 100%;
  min-height: 32px;
  border-radius: 16px;
  background: var(--chip);
  padding: 0 2px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.as-note > svg { color: var(--link); }
.as-note__text {
  min-width: 0;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.as-note.is-cancelled .as-note__text { color: var(--mute); }
.as-note.is-cancelled > svg { color: var(--mute); }
.as-note__btn {
  flex: none;
  height: 44px;
  margin: -6px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
}
.as-note__btn[aria-busy="true"] { opacity: 0.6; }
/* « Annuler » fait 44 px dans une pastille de 32 px (6 px de chaque côté) : deux pastilles
   consécutives sont espacées d'au moins 12 px pour que leurs zones de toucher ne se chevauchent pas. */
.as-note + .as-note { margin-top: 4px; }   /* dans une réponse : 8 px d'écart du message + 4 */

/* ========== Menus proposés ========== */

.as-menus-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.as-menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.as-menus--1 { grid-template-columns: minmax(0, 1fr); }
.as-menus--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.as-menu {
  position: relative;
  height: 68px;
  min-width: 0;
  border: 0;
  border-radius: 20px;
  padding: 9px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--menthe);
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.as-menu:active:not([aria-disabled="true"]) { transform: scale(0.97); }
.as-menu[aria-pressed="true"] {
  background: var(--as-pick);
  box-shadow: inset 0 0 0 2px var(--acc);
}
/* Déjà ajouté : pas d'anneau, coche verte et « Au planning » à la place du jour. */
.as-menu.is-applied { cursor: default; }
.as-menu.is-applied .as-menu__meta { color: var(--victoire); }
.as-menu__meta {
  padding-right: 20px; /* place de la coche */
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-menu__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.as-menu__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--acc);
  color: var(--on-acc);
  display: none;
  align-items: center;
  justify-content: center;
}
.as-menu[aria-pressed="true"] .as-menu__badge,
.as-menu.is-applied .as-menu__badge { display: flex; }
.as-menu.is-applied .as-menu__badge {
  background: var(--victoire);
  color: var(--surface);
}
/* Un repas est déjà prévu ce jour-là à ce créneau : la tuile dit ce qu'elle remplacerait. Les
   tuiles de la rangée grandissent ensemble pour cette ligne de plus. */
.as-menus.has-replace .as-menu {
  height: auto;
  min-height: 68px;
  gap: 2px;
}
.as-menu__replace {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--danger);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.as-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.as-apply[aria-disabled="true"] { opacity: 0.6; }
.as-recipes-toggle { margin-left: auto; }
.as-recipes-toggle svg { transition: transform 160ms ease; }
.as-recipes-toggle.is-open svg { transform: rotate(180deg); }

/* État « ajouté » (maquette : fond menthe, texte vert) */
.as-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  background: var(--menthe);
  color: var(--victoire);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Recettes dépliées */
.as-recipes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.as-recipe {
  border-radius: 20px;
  background: var(--as-card);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-recipe__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.as-recipe__meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}
.as-recipe__why {
  font-size: 13px;
  line-height: 18px;
  color: var(--mute);
}
.as-recipe__h {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.as-recipe__list,
.as-recipe__steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.as-recipe__qty { color: var(--mute); }

/* ========== Liste de courses proposée ========== */

.as-shop {
  background: var(--as-card);
  border-radius: 24px;
  padding: 10px 14px 6px;
}
.as-shop__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-bottom: 4px;
}
.as-shop__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.as-shop__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 20px;
  white-space: nowrap;
}
/* Compteur « 2 à acheter · 1 à la maison » : passe à la ligne plutôt que d'être coupé. */
.as-shop__meta {
  font-size: 12px;
  line-height: 15px;
  color: var(--mute);
  overflow-wrap: anywhere;
}
.as-shop__action {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* « Voir » : cible de 44 px de large (SPEC §3), le mot seul n'en fait que 33. */
.as-shop__action .link-btn { min-width: 44px; justify-content: center; }
.as-shop__add {
  padding: 0 14px;
  font-size: 14px;
}
.as-shop__row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 3px 0;
  border-top: 1px solid var(--as-card-line);
}
.as-shop__aisle {
  width: 66px;
  flex: none;
  font-size: 10.5px;
  line-height: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.as-shop__items {
  flex: 1;
  min-width: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.as-shop__item { min-width: 0; }
/* Seul article du rayon : toute la largeur (sinon « Lentilles vert… » coupé à côté d'une colonne vide). */
.as-shop__item:only-child { grid-column: 1 / -1; }
/* Case « déjà à la maison » (maquette C_Assistant) : la vraie case, invisible, couvre toute la
   ligne de 44 px ; le carré de 20 px dessiné à côté suit son état et son focus. */
.as-shop__label {
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.as-shop__check {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.as-shop__box {
  width: 20px;
  height: 20px;
  flex: none;
  box-sizing: border-box;
  border-radius: 6px;
  border: 2px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--on-acc);
}
.as-shop__box svg { visibility: hidden; }
.as-shop__check:checked + .as-shop__box {
  background: var(--acc);
  border-color: var(--acc);
}
.as-shop__check:checked + .as-shop__box svg { visibility: visible; }
.as-shop__check:focus-visible + .as-shop__box {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.as-shop__label:has(.as-shop__check:disabled) { cursor: default; }
.as-shop__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.as-shop__item.is-home .as-shop__name {
  color: var(--mute);
  text-decoration: line-through;
}
.as-shop__name {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-shop__qty {
  font-size: 11.5px;
  line-height: 14px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Pied : composeur ========== */

.sheet__foot.as-foot {
  padding-top: 8px;
  flex-direction: column;
  align-items: stretch;
}
.as-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.as-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-field {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px 0 14px;
  border: 1.5px solid var(--field-line);
  border-radius: 24px;
  background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.as-field:focus-within { border-color: var(--acc); }
.as-field:has(.as-input:focus-visible) {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 30%, transparent);
}
/* 16 px (et non les 15 px de la maquette) : en dessous, Safari iOS zoome à chaque focus. */
.as-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.as-input::placeholder { color: var(--mute); opacity: 1; }
.as-input:focus-visible { outline: none; }

/* Micro dans le champ : bouton rond discret de 44 px (remplace l'accent de micButton). */
.as-field .as-mic {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as-send[aria-disabled="true"],
.as-photo-btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.as-send[aria-busy="true"] svg { animation: as-pulse 1.2s ease-in-out infinite; }
@keyframes as-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.as-photo-btn[aria-busy="true"] svg { animation: as-pulse 1.2s ease-in-out infinite; }

/* Aperçu de la photo avant l'envoi */
.as-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}
.as-preview__img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  background: var(--chip);
}
.as-preview__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 17px;
  color: var(--mute);
}

/* Actions des panneaux (Annuler / Enregistrer) */
.as-foot__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== Panneaux (Discussions, Nos goûts) ========== */

.as-panel-host { display: flex; flex-direction: column; }
.as-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.as-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.as-panel__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 26px;
}
.as-panel__title:focus { outline: none; }
.as-panel__title:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.as-back { flex: none; }
.as-back__icon { display: inline-flex; transform: scaleX(-1); }
.as-panel__new { align-self: flex-start; }
.as-panel__text {
  font-size: 14px;
  line-height: 19px;
  color: var(--mute);
}

.as-threads {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-thread {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 20px;
  background: var(--chip);
  color: var(--ink);
  padding: 8px 12px 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.as-thread[aria-current="true"] {
  background: var(--menthe);
  box-shadow: inset 0 0 0 2px var(--acc);
}
.as-thread > svg { color: var(--mute); }
.as-thread__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.as-thread__title {
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-thread__meta {
  font-size: 12px;
  line-height: 15px;
  color: var(--mute);
}

/* Formulaire « Nos goûts » */
.as-tastes-form {
  display: flex;
  flex-direction: column;
}
.as-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.as-section:first-child { border-top: 0; padding-top: 0; }
.as-section__title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}
.as-section__hint {
  margin-top: -8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}

.as-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.as-fieldset > legend {
  padding: 0;
  margin-bottom: 8px;
}
.as-fieldset > .field__hint { margin-top: -4px; }

.as-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.as-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 36px;
  padding-left: 12px;
  border-radius: 18px;
  background: var(--chip);
  font-size: 14px;
  font-weight: 500;
}
.as-tag__text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-tag__remove {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -4px -4px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.as-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-tag-input { flex: 1; min-width: 0; }
.as-sugg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.as-sugg__chip { font-size: 13px; }

.as-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-persons {
  width: 88px;
  text-align: center;
  padding: 0 8px;
}
.as-minus {
  display: block;
  width: 13px;
  height: 2.4px;
  border-radius: 2px;
  background: currentColor;
}

.as-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
  line-height: 19px;
}
.as-dl dt { color: var(--mute); font-weight: 500; }
.as-dl dd { margin: 0; overflow-wrap: anywhere; }
.as-dl dd.is-empty { color: var(--mute); }

.as-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.as-form-error { padding-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .as-menu:active:not([aria-disabled="true"]) { transform: none; }
}
