/* Same look as go.acetonlink.ru (AC_LEDENG/assets/styles.css): its tokens, page,
   glass header, dock and help chat, and its news cards, trimmed to what this
   page uses. The chat's rules are copied as they are there, where they were
   tuned on iPhone; keep them in step. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --page: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --text-2: #6e6e73;

  --blue: #0071e3;
  --link: #0066cc;
  --quiet: #e8e8ed;

  --note-fg: #b64400;
  --note-bg: rgba(245, 99, 0, .1);

  --hairline: rgba(0, 0, 0, .08);

  /* Liquid glass — the .lens.samGlass recipe from Aceton Business */
  --glass-fill: rgba(120, 120, 128, .12);
  --glass-blur: blur(18px) saturate(1.28) brightness(1.04);
  --glass-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .05), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --glass-sheen: rgba(255, 255, 255, .62);

  /* Floating dock — geometry from Aceton Business */
  --ui-inset: clamp(16px, 5.35vw, 21px);
  --ui-gap: clamp(7px, 2.05vw, 8px);
  --dock-h: clamp(58px, 15.55vw, 62px);
  --compact-h: clamp(50px, 13.75vw, 54px);
  --composer-text-h: 50px;
  --composer-h: max(var(--compact-h), calc(var(--composer-text-h) + 4px));
  --morph: cubic-bezier(.22, .78, .22, 1);
  --lens-bg: rgba(246, 246, 249, .38);
  --lens-drop: 0 10px 26px rgba(0, 0, 0, .12);
  --dock-drop: 0 4px 12px rgba(0, 0, 0, .12);
  --lens-edge: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .05), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --lens-shadow: var(--lens-drop), var(--lens-edge);
  --kb: 0px;

  --peer-r: 36px;
  --peer-h: calc(var(--peer-r) * 2);
  --peer-top: 12px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #86868b;

    --link: #2997ff;
    --quiet: #333336;

    --note-fg: #ff9f4d;
    --note-bg: rgba(255, 146, 48, .14);

    --hairline: rgba(255, 255, 255, .12);

    --glass-fill: rgba(255, 255, 255, .09);
    --glass-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .05);
    --glass-sheen: rgba(255, 255, 255, .4);

    --lens-bg: rgba(44, 44, 46, .5);
    --lens-drop: 0 10px 26px rgba(0, 0, 0, .5);
    --dock-drop: 0 4px 12px rgba(0, 0, 0, .5);
    --lens-edge: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .06);
    --lens-shadow: var(--lens-drop), var(--lens-edge);
  }
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.022em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

button { font: inherit; letter-spacing: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Page ---------- */

.page {
  width: min(100% - 32px, 440px);
  margin: 0 auto;
  /* starts under the header, which floats over the page (.peer) */
  padding: calc(env(safe-area-inset-top) + var(--peer-top) + var(--peer-h)) 0 calc(env(safe-area-inset-bottom) + var(--ui-inset) + var(--dock-h) + 24px);
}

.section-title {
  margin: 28px 4px 12px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .005em;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  border-radius: 28px;
  background: var(--card);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-2);
}

.kind {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--note-bg);
  color: var(--note-fg);
  font-weight: 600;
}

.card h3 {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .01em;
}

.card p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--text-2);
}

/* A person: the portrait fills the card's whole left side, edge to edge,
   and the card's rounded corners clip it; the text keeps its padding */
.person {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding-left: calc(var(--photo-w) + 16px);
  --photo-w: 136px;
}

/* Narrow phones (iPhone SE 1st gen): keep the text column readable */
@media (max-width: 359px) {
  .person { --photo-w: 108px; }
}

.person-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--photo-w);
  height: 100%;
  background: var(--quiet); /* while the image loads */
  object-fit: cover;
  object-position: 50% 25%;
}

.credits {
  margin: 28px 4px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}

.credits a { color: inherit; }

/* ---------- Glass controls ---------- */

.chip,
.chat-send {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Sheen: rests as a soft highlight at the top edge, follows the finger on press. */
.chip::after,
.chat-send::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130px 95px at var(--gx, 50%) var(--gy, 16%),
    var(--glass-sheen), rgba(255, 255, 255, .15) 46%, rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: overlay;
  opacity: .32;
  transition: opacity .2s ease;
}

.chip.pressed::after,
.chat-send.pressed::after { opacity: .94; }

.chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: -2px;
  padding: 0 18px 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  color: var(--link);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- Dock ----------
   Left: a glass circle with the Aceton picture, a link to go.acetonlink.ru.
   Right: the help circle, which stretches into a message field while the page
   behind it switches to the chat (the Search control from Aceton Business). */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  z-index: 20;
  max-width: 480px;
  height: 0;
  margin: 0 auto;
  transition: bottom .3s var(--morph);
}

.keyboard-open .dock {
  bottom: calc(env(safe-area-inset-bottom) + var(--kb));
}

.lens {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--lens-bg);
  box-shadow: var(--lens-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transform: translateZ(0);
  transform-origin: 50% 50%;
}

.lens::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130px 95px at var(--gx, 50%) var(--gy, 16%),
    var(--glass-sheen), rgba(255, 255, 255, .15) 46%, rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: overlay;
  opacity: .32;
  transition: opacity .2s ease;
}

.lens.pressed::after { opacity: .94; }

.ask {
  right: var(--ui-inset);
  bottom: var(--ui-inset);
  display: flex;
  align-items: center;
  width: var(--dock-h);
  height: var(--dock-h);
  margin: 0;
  border: 2px solid var(--blue);
  transition:
    width .40s var(--morph),
    height .40s var(--morph),
    transform .24s var(--morph);
}

.ask.pressed { transform: scale(.986); }

.ask-icon {
  position: relative;
  z-index: 6;
  flex: 0 0 var(--dock-h);
  display: grid;
  place-items: center;
  width: var(--dock-h);
  height: var(--dock-h);
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  transition:
    width .40s var(--morph),
    height .40s var(--morph),
    flex-basis .40s var(--morph);
}

.ask-icon svg {
  width: clamp(27px, 7.5vw, 30px);
  height: clamp(27px, 7.5vw, 30px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: width .40s var(--morph), height .40s var(--morph);
}

.chat-input {
  position: relative;
  z-index: 6;
  flex: 1;
  min-width: 0;
  height: 50px;
  max-height: 150px;
  padding: 14px 52px 14px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 17px/1.2 var(--font); /* 16px+ keeps iOS from zooming in on focus */
  letter-spacing: -.022em;
  opacity: 0;
  pointer-events: none;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity .20s ease .08s;
}

.chat-input::-webkit-scrollbar { display: none; }

.chat-input::placeholder { color: var(--text-2); }

/* Send is the field's primary action — tinted blue glass */
.chat-send {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 62%), var(--blue);
  box-shadow: 0 4px 12px rgba(0, 113, 227, .28), inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(0, 0, 0, .12);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(.72);
  pointer-events: none;
  transition: opacity .12s ease, transform .28s cubic-bezier(.2, .9, .25, 1);
}

.chat-send svg {
  position: relative;
  z-index: 3;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The link circle, the size of the help circle. While chatting it shrinks into
   the Close button, like go.acetonlink.ru's section pill: the picture gives way
   to the list's icon, and to an arrow that hides the keyboard while it is up. */
.home {
  left: var(--ui-inset);
  bottom: var(--ui-inset);
  width: var(--dock-h);
  height: var(--dock-h);
  transition:
    width .40s var(--morph),
    height .40s var(--morph);
}

.home img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  background: #b3161b; /* painting's red while the image loads */
  object-fit: cover;
  transition: opacity .2s ease, transform .3s var(--morph);
}

.home svg {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: clamp(24px, 6.7vw, 27px);
  height: clamp(24px, 6.7vw, 27px);
  margin: auto;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--morph);
}

.home .i-list {
  stroke: var(--blue);
  transform: scale(.72);
}

.home .i-keyboard {
  stroke: var(--text);
  transform: rotate(-45deg) scale(.5);
}

.is-chat .home {
  width: var(--compact-h);
  height: var(--compact-h);
}

.is-chat .home img {
  opacity: 0;
  transform: scale(.72);
}

.is-chat .home .i-list {
  opacity: 1;
  transform: none;
}

.keyboard-open .home .i-list {
  opacity: 0;
  transform: rotate(45deg) scale(.5);
}

.keyboard-open .home .i-keyboard {
  opacity: 1;
  transform: none;
}

/* Chatting: the circle stretches into the field, the link circle takes the left slot. */
.is-chat .ask {
  width: calc(100% - (var(--ui-inset) * 2) - var(--compact-h) - var(--ui-gap));
  height: var(--composer-h);
  border-radius: calc(var(--compact-h) / 2);
  align-items: flex-end;
  transition:
    width .40s var(--morph),
    height .16s var(--morph),
    transform .24s var(--morph);
}

.is-chat .ask-icon {
  align-self: flex-end;
  flex-basis: clamp(40px, 10vw, 44px);
  width: clamp(40px, 10vw, 44px);
  height: var(--compact-h);
}

.is-chat .ask-icon svg {
  width: clamp(26px, 7.2vw, 29px);
  height: clamp(26px, 7.2vw, 29px);
}

.is-chat .chat-input {
  align-self: flex-end;
  height: var(--composer-text-h);
  opacity: 1;
  pointer-events: auto;
}

.is-chat .chat-send {
  top: auto;
  bottom: 5px;
  margin-top: 0;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: .22s;
}

.is-chat .chat-send:disabled {
  opacity: .4;
  pointer-events: none;
}

/* iOS 26 Safari cuts fixed elements off where its toolbar starts, --ui-inset
   below the dock: a tighter drop fades out before that line. */
.dock .lens { box-shadow: var(--dock-drop), var(--lens-edge); }

/* The page behind switches between the list and the chat. `backwards`, not
   `both`: an animation that stays in effect keeps the page on its own layer,
   and iOS 26 Safari cuts that layer off at its bars. */
.page-in { animation: page-in .32s var(--morph) backwards; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Safari briefly rasterizes the glass chips as a flat grey surface when their
   backdrop is inside the moving page-in layer. Let the chat shell open first,
   then reveal only its content without moving it. */
.chat-page.page-in {
  animation: none;
}

.chat-page.chat-intro .chat-log {
  animation: chat-content-in .22s ease .24s backwards;
}

@keyframes chat-content-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The conversation is the page itself and scrolls with it, so messages pass
   under Safari's bars (iOS 26 cuts a fixed or inner scroller off at them).
   It sits on the message field, as in a messenger. */
.chat-page {
  display: flex;
  flex-direction: column;
  width: min(100%, 472px);
  min-height: 100vh;
  min-height: 100dvh;
  /* room for the header, so the first message starts below it */
  padding-top: calc(env(safe-area-inset-top) + var(--peer-top) + var(--peer-h) + 12px);
  padding-right: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--ui-inset) + var(--composer-h) + 16px);
  padding-left: 16px;
}

/* ---------- Header ----------
   One header over both screens: a glass circle with the flag and a bar along
   its upper half with the screen's name (Известные голландцы, the chat's
   Гид по Нидерландам). The bar starts square under the circle's centre, so its
   top edge runs straight into the top of the circle. The drop shadow is a
   separate layer masked to the outside of the shape, so the join has no seam.
   Fixed on top: both screens scroll under it. Opening the chat stretches the
   bar to the new name (--peer-name-w, measured by app.js) while the names
   cross-fade inside it. */

.peer {
  position: fixed;
  z-index: 15;
  top: calc(env(safe-area-inset-top) + var(--peer-top));
  left: calc((100% - min(100%, 472px)) / 2 + 16px); /* the page's and the messages' left edge */
  width: calc(var(--peer-h) + 7px + var(--peer-name-w, 176px) + 20px);
  height: var(--peer-h);
}

/* Only after app.js has measured the first name: the page doesn't open stretching */
.peer.is-ready {
  transition: width .5s var(--morph);
}

.peer-shadow {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  /* everything minus the shape: circle, bar body, bar's rounded end */
  -webkit-mask:
    linear-gradient(#000 0 0),
    radial-gradient(closest-side, #000 calc(100% - 1px), #0000) 40px 40px / var(--peer-h) var(--peer-h) no-repeat,
    linear-gradient(#000 0 0) calc(40px + var(--peer-r)) 40px / calc(100% - 80px - var(--peer-r) * 1.5) var(--peer-r) no-repeat,
    radial-gradient(closest-side, #000 calc(100% - 1px), #0000) right 40px top 40px / var(--peer-r) var(--peer-r) no-repeat;
  -webkit-mask-composite: source-out, source-over, source-over, source-over;
  mask:
    linear-gradient(#000 0 0),
    radial-gradient(closest-side, #000 calc(100% - 1px), #0000) 40px 40px / var(--peer-h) var(--peer-h) no-repeat,
    linear-gradient(#000 0 0) calc(40px + var(--peer-r)) 40px / calc(100% - 80px - var(--peer-r) * 1.5) var(--peer-r) no-repeat,
    radial-gradient(closest-side, #000 calc(100% - 1px), #0000) right 40px top 40px / var(--peer-r) var(--peer-r) no-repeat;
  mask-composite: subtract, add, add, add;
}

.peer-shadow::before,
.peer-shadow::after {
  content: "";
  position: absolute;
  box-shadow: var(--lens-drop);
}

.peer-shadow::before {
  top: 40px;
  left: 40px;
  width: var(--peer-h);
  height: var(--peer-h);
  border-radius: 50%;
}

.peer-shadow::after {
  top: 40px;
  right: 40px;
  bottom: calc(40px + var(--peer-r));
  left: calc(40px + var(--peer-r));
  border-radius: 0 999px 999px 0;
}

.peer-bar {
  top: 0;
  right: 0;
  bottom: var(--peer-r);
  left: var(--peer-r);
  border-radius: 0 999px 999px 0;
  box-shadow: var(--lens-edge);
}

.peer-circle {
  top: 0;
  left: 0;
  width: var(--peer-h);
  height: var(--peer-h);
  border-radius: 50%;
  box-shadow: var(--lens-edge);
}

.peer-avatar {
  position: absolute;
  inset: 5px;
  width: calc(var(--peer-h) - 10px);
  height: calc(var(--peer-h) - 10px);
  border-radius: 50%;
  object-fit: cover;
}

/* The bar's text area: clipped to the bar, so a longer name on its way out is
   cut by the shrinking bar instead of spilling past its end */
.peer-names {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: var(--peer-h);
  height: var(--peer-r);
  overflow: hidden;
  border-radius: 0 999px 999px 0;
}

.peer-name {
  position: absolute;
  top: 0;
  left: 7px;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: var(--peer-r);
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: 0;
  filter: blur(6px);
}

.peer-name.is-on {
  opacity: 1;
  filter: blur(0);
}

.peer.is-ready .peer-name {
  transition: opacity .32s var(--morph), filter .32s var(--morph);
}

/* With the keyboard up the page grows by the keyboard's height, so the last
   message can still scroll up onto the field, which rides above the keyboard. */
.keyboard-open .chat-page {
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--ui-inset) + var(--composer-h) + 16px + var(--kb));
}

/* iOS often pans the whole page up to reveal the field (visualViewport.offsetTop),
   so the header can't sit at the top of the page. It is anchored like the dock
   (bottom on --kb, same transition), then lifted by the visible height. */
.keyboard-open .peer {
  top: auto;
  bottom: var(--kb);
  transform: translateY(calc(env(safe-area-inset-top) + var(--peer-top) + var(--peer-h) - var(--vvh, 100dvh)));
  transition: width .5s var(--morph), bottom .3s var(--morph);
}

/* ---------- Chat ---------- */

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.msg {
  max-width: 86%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.012em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--card);
  color: var(--text);
}

.msg--me {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--blue);
  color: #fff;
}

.msg--error {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--note-bg);
  color: var(--note-fg);
}

/* Inside an answer: lines, "• " items and "1)" steps (app.js renderAnswer).
   A blank line in the answer becomes the wider gap between blocks. */
.msg :is(p, ul, ol) { margin: 0; }
.msg > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 4px; }
.msg > .msg-gap { margin-top: 12px; }

.msg :is(ul, ol) {
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.msg li {
  position: relative;
  padding-left: 18px;
}

.msg ul li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.msg ol li { padding-left: 29px; }

.msg ol li::before {
  content: attr(data-n);
  position: absolute;
  top: 1px;
  left: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0;
  text-align: center;
}

.msg strong { font-weight: 600; }

/* Typing indicator */
.msg--typing {
  display: flex;
  gap: 5px;
  padding: 15px 16px;
}

.msg--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typing 1.2s ease-in-out infinite;
}

.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Starting questions and quick replies: one per line, in a column */
.chat-suggest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.chat-suggest .chip {
  align-self: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  font-size: 15px;
  text-align: left;
}

.chat-quick-replies {
  align-self: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: fit-content;
  max-width: 92%;
  margin-bottom: 4px;
}

.chat-quick-replies .chip {
  justify-content: flex-start;
}

@media (hover: hover) {
  .chip:hover::after { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
