/* =========================================================================
   LUXS — datavolwassenheidsscan
   Chat surface, answer options and the result card. Loaded after styles.css
   and reusing its tokens; nothing here is needed on the home page.
   ========================================================================= */

/* ---------- Page header ----------------------------------------------- */
.scanhead {
  padding: calc(72px + clamp(2.5rem, 1.6rem + 3vw, 4.5rem)) 0 clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  background: radial-gradient(65% 55% at 82% 20%, rgba(216, 90, 76, .06), transparent 62%), var(--paper);
  border-bottom: 1px solid var(--line);
}
.scanhead__inner { max-width: 720px; }
.scanhead h1 { font-size: var(--fs-h1); margin-top: 1.1rem; }
.scanhead h1 .grad { color: var(--coral); }
.scanhead .lead { margin-top: 1.1rem; }
.scanhead__facts {
  display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1.5rem;
}
.scanhead__facts li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem .4rem .6rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 550; color: var(--text-muted);
}
.scanhead__facts svg { width: 15px; height: 15px; color: var(--go); flex: none; }

/* ---------- Chat shell ------------------------------------------------- */
.scanwrap { background: var(--paper); padding-block: clamp(1.6rem, 1rem + 1.6vw, 2.8rem) var(--section-y); }
.chat {
  max-width: 820px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-md);
  overflow: hidden; display: flex; flex-direction: column;
}

.chat__bar { padding: .85rem 1.15rem; border-bottom: 1px solid var(--line-soft); background: #fff; }
.chat__barrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.chat__who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.chat__who img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.chat__whoname { font-size: .88rem; font-weight: 680; letter-spacing: -.01em; }
.chat__whosub { font-size: .74rem; color: var(--text-faint); }
.chat__step {
  font-size: .74rem; font-weight: 650; color: var(--text-faint);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chat__track { height: 3px; border-radius: 2px; background: var(--line-soft); margin-top: .8rem; overflow: hidden; }
.chat__fill {
  height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--coral-bright));
  transition: width .45s var(--ease-out);
}

/* ---------- Message log ------------------------------------------------ */
.chat__log {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.4rem 1.15rem .4rem;
  height: min(58vh, 620px);
  display: flex; flex-direction: column; gap: .7rem;
  scrollbar-width: thin;
}
/* a short conversation hangs at the bottom, next to the dock, the way a chat
   does; the auto margin collapses as soon as the log actually overflows */
.chat__log::before { content: ""; margin-top: auto; }
.cmsg { display: flex; gap: .6rem; align-items: flex-end; max-width: 100%; scroll-margin-top: 84px; }
.cmsg--bot { justify-content: flex-start; }
.cmsg--me { justify-content: flex-end; }
.cmsg__av { width: 28px; height: 28px; flex: none; }
.cmsg__av img { width: 100%; height: 100%; border-radius: 50%; }
.cmsg__av--ghost { visibility: hidden; }
/* messages in the same run sit tighter than the gap between speakers */
.cmsg--bot + .cmsg--bot, .cmsg--me + .cmsg--me { margin-top: -.35rem; }

.bubble {
  max-width: min(78%, 34em);
  padding: .8rem 1rem; border-radius: 16px;
  font-size: var(--fs-sm); line-height: 1.5;
  background: var(--paper-2); color: var(--ink);
  border-bottom-left-radius: 5px;
  animation: cpop .28s var(--ease-out) both;
}
.cmsg--me .bubble {
  background: var(--ink); color: #fff; font-weight: 500;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 5px;
}
.bubble--note {
  background: rgba(200, 77, 60, .07); color: var(--rust);
  font-size: .82rem; border: 1px solid rgba(200, 77, 60, .16);
}
.bubble__theme {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral); margin-bottom: .35rem;
}
@keyframes cpop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* typing indicator */
.bubble--typing { display: flex; gap: 4px; align-items: center; padding: .9rem 1rem; }
.bubble--typing .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--slate); opacity: .5;
  animation: cdot 1.1s infinite ease-in-out;
}
.bubble--typing .dot:nth-child(2) { animation-delay: .16s; }
.bubble--typing .dot:nth-child(3) { animation-delay: .32s; }
@keyframes cdot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bubble--typing .dot { animation: none; } }

/* result delivered: the log stops being a window and the page takes over */
.chat--done, .chat--done .chat__log { height: auto; }
.chat--done .chat__log { overflow: visible; flex: none; }
.chat--done .chat__dock { background: #fff; }

/* working-it-out indicator, between the last answer and the result */
.bubble--calc { display: flex; align-items: center; gap: .6rem; }
.calcspin {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid rgba(37, 58, 87, .16); border-top-color: var(--coral);
  animation: cspin .7s linear infinite;
}
@keyframes cspin { to { transform: rotate(360deg); } }
.calclabel { color: var(--text-muted); }
.calclabel::after { content: "\2026"; }
@media (prefers-reduced-motion: reduce) { .calcspin { animation: none; } }

/* ---------- Dock: answer options, forms ------------------------------- */
.chat__dock {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, var(--paper));
  padding: 1rem 1.15rem 1.15rem;
}
.cdock__row { display: flex; justify-content: center; padding: .35rem 0 .2rem; }

.copts { display: grid; gap: .5rem; }
.copt {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .7rem;
  width: 100%; text-align: left;
  padding: .72rem .9rem; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line);
  font-size: .9rem; line-height: 1.45; color: var(--ink);
  transition: border-color .18s, background-color .18s, transform .18s var(--ease), box-shadow .2s;
}
.copt:hover { border-color: var(--coral); background: #fff; transform: translateY(-1px); box-shadow: var(--sh); }
.copt:active { transform: translateY(0); }
.copt__n {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center; margin-top: .08rem;
  background: var(--paper-2); color: var(--slate);
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color .18s, color .18s;
}
.copt:hover .copt__n { background: var(--coral); color: #fff; }

.ctools { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .9rem; }
.ctools--center { justify-content: center; margin-top: .2rem; }
.ctool {
  font-size: .78rem; font-weight: 600; color: var(--text-faint);
  padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.ctool:hover { color: var(--coral); border-color: currentColor; }
.ctool:disabled { opacity: .45; cursor: default; }
.ctool:disabled:hover { color: var(--text-faint); border-color: transparent; }

/* ---------- The lead step: name and e-mail ----------------------------- */
/* Lumi asks the three HubSpot fields one at a time, so the dock is a single
   input rather than a form: one question on screen, like every other one. */
.cform { display: flex; gap: .5rem; align-items: center; }
.cform__in {
  flex: 1 1 auto; min-width: 0;
  padding: .8rem .95rem; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line);
  font: inherit; font-size: .95rem; line-height: 1.4; color: var(--ink);
  transition: border-color .18s, box-shadow .2s;
}
.cform__in::placeholder { color: var(--text-faint); }
.cform__in:focus {
  outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(200, 77, 60, .16);
}
.cform__go {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  transition: background-color .18s, transform .18s var(--ease), box-shadow .2s;
}
.cform__go svg { width: 20px; height: 20px; transition: transform .18s var(--ease); }
.cform__go:hover { background: var(--ink-800); transform: translateY(-1px); box-shadow: var(--sh); }
.cform__go:hover svg { transform: translateX(2px); }
.cform__go:active { transform: translateY(0); }

.cform__legal {
  margin: .6rem 0 0;
  font-size: .72rem; line-height: 1.5; color: var(--text-faint);
}
.cform__legal a { color: var(--slate); text-decoration: underline; }
.cform__legal a:hover { color: var(--coral); }

/* The HubSpot form that actually carries the submission. Off-screen rather
   than display:none, because reCAPTCHA does not run in a hidden subtree. */
.scanlead-host {
  position: absolute; left: -9999px; top: 0;
  width: 520px; height: 640px; overflow: hidden;
}
/* The invisible captcha can still decide it wants a challenge. Google puts
   that in this document, so it shows itself; scan-lead.js pins it to the
   middle of the window and this is what sits behind it. */
.scanlead-veil {
  position: fixed; inset: 0; z-index: 2147482000;
  background: rgba(16, 26, 41, .72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}

/* ---------- Result ----------------------------------------------------- */
.cmsg--result { display: block; }
.res {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); overflow: hidden;
  animation: cpop .35s var(--ease-out) both;
}
@media (prefers-reduced-motion: reduce) { .res { animation: none; } }

.res__head {
  padding: 1.5rem 1.4rem 1.4rem;
  background: linear-gradient(160deg, var(--ink), var(--ink-deep));
  color: #fff;
}
.res__head .eyebrow { color: var(--coral-bright); }
.res__head .eyebrow::before { background: var(--coral-bright); }
.res__level { margin-top: .8rem; display: flex; flex-direction: column; gap: .1rem; }
.res__no { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.res__name { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.05; }
.res__phase { margin-top: .5rem; font-size: var(--fs-sm); color: var(--on-dark-muted); }

.res__ladder { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--line); }
.res__rung {
  background: var(--paper); padding: .7rem .5rem; text-align: center;
  display: flex; flex-direction: column; gap: .1rem;
}
.res__rung-n { font-size: .68rem; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.res__rung-t { font-size: .76rem; font-weight: 600; color: var(--text-muted); line-height: 1.2; }
.res__rung.is-here { background: var(--ink); }
.res__rung.is-here .res__rung-n { color: var(--coral-bright); }
.res__rung.is-here .res__rung-t { color: #fff; font-weight: 700; }
.res__rung.is-next { background: #fff; box-shadow: inset 0 -3px 0 var(--coral-bright); }
.res__rung.is-next .res__rung-t { color: var(--ink); }

.res__sec { padding: 1.4rem 1.4rem 0; }
.res__sec:last-of-type { padding-bottom: .2rem; }
.res__sec h3 { font-size: 1.02rem; margin-bottom: .55rem; }
.res__sec p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
.res__lead { font-size: .86rem !important; }

/* per-theme meters */
.res__themes { display: grid; gap: .1rem; margin-top: .8rem; }
.rth {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .8rem;
  padding: .5rem 0; border-top: 1px solid var(--line-soft);
}
.rth:first-child { border-top: 0; }
.rth__name { font-size: .86rem; font-weight: 550; color: var(--ink); }
.rth__meter { display: inline-flex; gap: 3px; }
.rth__meter i { width: 16px; height: 6px; border-radius: 3px; background: var(--line); }
.rth__meter i.on { background: var(--slate); }
.rth--low .rth__meter i.on { background: var(--coral); }
.rth--high .rth__meter i.on { background: var(--go-bright); }
.rth__n { font-size: .76rem; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; }
.rth--low .rth__name { font-weight: 650; }

/* next level */
.res__next { }
.res__dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin-top: .7rem; }
.res__dl dt {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--coral); padding-top: .18rem; white-space: nowrap;
}
.res__dl dd { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* steps */
.res__steps { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: .9rem; counter-reset: st; }
.rstep {
  padding: .8rem .95rem; border-radius: 12px;
  background: var(--paper); border-left: 3px solid var(--coral);
}
.rstep__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.rstep__theme { font-size: .8rem; font-weight: 700; color: var(--ink); }
.rstep__from { font-size: .7rem; font-weight: 600; color: var(--coral); }
.rstep p { font-size: .86rem !important; color: var(--text-muted); }

.res__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.rtag {
  font-size: .76rem; font-weight: 600; color: var(--go-deep);
  padding: .32rem .7rem; border-radius: var(--r-pill);
  background: rgba(47, 181, 116, .12);
}

.res__product { }
.res__prodname {
  font-size: 1.3rem !important; font-weight: 780; letter-spacing: -.02em;
  color: var(--ink) !important; margin-bottom: .3rem;
}

.res__note {
  margin: 1.3rem 1.4rem 0; padding: .8rem .95rem;
  background: var(--paper-2); border-radius: 10px;
  font-size: .78rem; line-height: 1.5; color: var(--text-muted);
}

.res__cta { margin: 1.3rem 0 0; padding: 1.4rem; border-top: 1px solid var(--line); background: var(--paper); }
.res__cta h3 { font-size: 1.05rem; }
.res__cta p { font-size: var(--fs-sm); color: var(--text-muted); margin: .4rem 0 1rem; }

/* ---------- Below the chat -------------------------------------------- */
.scanfoot { max-width: 820px; margin: 1.2rem auto 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; }
.scanfoot p { font-size: .76rem; color: var(--text-faint); }
.scanfoot a { color: var(--slate); text-decoration: underline; }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 720px) {
  .chat { border-radius: var(--r); }
  /* On a phone the card takes the screen and everything scrolls inside it, the
     same arrangement the modal uses: never the page. Space goes to the dock,
     because that is where the visitor acts; the log keeps a third of the card,
     which is enough for the question and a glimpse of the answer before it.
     Five long options do not fit any phone, so the dock scrolls. */
  .chat { height: calc(100dvh - 130px); }
  .chat__log {
    flex: 0 0 auto; height: 33%; min-height: 130px; overflow-y: auto;
    padding-inline: .85rem;
  }
  .chat__dock {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  }
  .chat--done .chat__log { height: auto; flex: none; }
  .chat--done .chat__dock { flex: none; overflow: visible; }
  .chat__dock { padding-inline: .85rem; }
  .chat__bar { padding-inline: .85rem; }
  .bubble { max-width: 86%; }
  .res__sec, .res__head, .res__cta { padding-inline: 1.05rem; }
  .res__note { margin-inline: 1.05rem; }
  .res__ladder { grid-template-columns: repeat(5, 1fr); }
  .res__rung-t { font-size: .66rem; }
  .rth { grid-template-columns: 1fr auto; row-gap: .3rem; }
  .rth__n { display: none; }
  .res__dl { grid-template-columns: 1fr; gap: .15rem .8rem; }
  .res__dl dd { margin-bottom: .5rem; }
}
@media (max-width: 420px) {
  .copt { font-size: .86rem; padding: .65rem .75rem; }
  .rth__meter i { width: 13px; }
}

/* ---------- Launcher: pinned to the bottom of the window --------------- */
.scanlaunch {
  position: fixed; z-index: 90;
  right: clamp(1rem, 2vw, 1.7rem); bottom: clamp(1rem, 2vw, 1.7rem);
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 1.1rem .55rem .6rem;
  background: var(--ink); color: #fff;
  border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(150%);
  transition: transform .5s var(--ease-out), opacity .3s var(--ease),
              background-color .2s, box-shadow .25s;
}
.scanlaunch.is-in { opacity: 1; transform: none; }
.scanlaunch:hover { background: var(--ink-800); box-shadow: 0 26px 60px rgba(23, 39, 59, .28); }
.scanlaunch:active { transform: translateY(1px); }
.scanlaunch img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.scanlaunch__copy { display: grid; text-align: left; }
.scanlaunch__t { font-size: .88rem; font-weight: 650; letter-spacing: -.012em; }
.scanlaunch__s { font-size: .72rem; color: var(--on-dark-muted); }
.scanlaunch__short { display: none; font-size: .92rem; font-weight: 650; }
.scanlaunch svg { width: 1.05em; height: 1.05em; color: var(--coral-bright); transition: transform .2s var(--ease); }
.scanlaunch:hover svg { transform: translateX(3px); }
body.scan-open .scanlaunch { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .scanlaunch { transition: opacity .2s, background-color .2s; transform: none; }
}
@media (max-width: 560px) {
  .scanlaunch { padding: .5rem .95rem .5rem .55rem; }
  .scanlaunch__copy { display: none; }
  .scanlaunch__short { display: block; }
  .scanlaunch img { width: 32px; height: 32px; }
}

/* ---------- The chat as a modal --------------------------------------- */
body.scan-open { overflow: hidden; }
.scanmodal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(.75rem, 2vw, 1.5rem);
}
/* this rule has to outrank the one above: an author `display` beats the
   browser's own [hidden] { display: none }, and a stretched, transparent
   overlay would swallow every click on the page underneath it */
.scanmodal[hidden] { display: none; }
.scanmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 39, 59, .58);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.scanmodal.is-open .scanmodal__backdrop { opacity: 1; }
.scanmodal__panel {
  position: relative; z-index: 1;
  width: min(760px, 100%); height: min(780px, 100%);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(16px) scale(.99);
  transition: opacity .22s var(--ease), transform .28s var(--ease-out);
}
.scanmodal.is-open .scanmodal__panel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scanmodal__backdrop, .scanmodal__panel { transition: none; }
}
.scanmodal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem .8rem .85rem 1.25rem; border-bottom: 1px solid var(--line-soft);
}
.scanmodal__title { font-size: 1.02rem; letter-spacing: -.015em; }
.scanmodal__close {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-faint);
  transition: background-color .18s, color .18s;
}
.scanmodal__close:hover { background: var(--paper-2); color: var(--ink); }
.scanmodal__close svg { width: 18px; height: 18px; }

/* inside the modal the panel is the frame, so the chat drops its own */
.chat--modal {
  border: 0; border-radius: 0; box-shadow: none; max-width: none;
  flex: 1 1 auto; min-height: 0;
}
/* The dock is sized by its content, so five long options can push the log to
   nothing and take the question with it — on a short laptop window the log
   collapsed to 29px and the visitor answered a question they could not read.
   So the log claims a floor first (basis 0 plus a minimum: enough for a theme
   line and a three-line question) and the dock is what gives way, scrolling
   only once it truly runs out of room. */
.chat--modal .chat__log {
  height: auto; flex: 1 1 0; min-height: 140px; overflow-y: auto;
}
.chat--modal .chat__dock {
  flex: 0 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  /* When the window is short enough that the dock does have to scroll, say so:
     a shadow along the bottom edge, covered by a paper-coloured patch that
     scrolls with the content and lands on top of it at the end of the list.
     Layers paint front to back, so the cover is listed first. */
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    radial-gradient(farthest-side at 50% 100%, rgba(23, 39, 59, .17), rgba(23, 39, 59, 0)),
    linear-gradient(180deg, #fff, var(--paper));
  background-repeat: no-repeat;
  background-attachment: local, scroll, scroll;
  background-position: 50% 100%, 50% 100%, 0 0;
  background-size: 100% 14px, 100% 14px, 100% 100%;
}
.chat--modal .chat__bar { border-bottom: 1px solid var(--line-soft); }

/* A short window is the squeeze, whatever its width: give the options back the
   room the chrome and their own padding were spending, so all five still fit
   under the question instead of hiding below a scroll. */
@media (max-height: 760px) {
  .chat--modal .copts { gap: .38rem; }
  .chat--modal .copt {
    padding: .55rem .8rem; gap: .6rem;
    font-size: .86rem; line-height: 1.4;
  }
  .chat--modal .copt__n { width: 20px; height: 20px; }
  .chat--modal .chat__dock { padding: .7rem 1.15rem .85rem; }
  .chat--modal .ctools { margin-top: .55rem; }

  /* the two stacked title bars cost 150px before a word of the scan is shown */
  .scanmodal__head { padding-top: .45rem; padding-bottom: .45rem; }
  .scanmodal__title { font-size: .95rem; }
  .scanmodal__close { width: 32px; height: 32px; }
  .chat--modal .chat__bar { padding-top: .55rem; padding-bottom: .55rem; }
  .chat--modal .chat__who img { width: 26px; height: 26px; }
  .chat--modal .chat__track { margin-top: .5rem; }
  .chat--modal .chat__log { padding-top: .9rem; }
}

@media (max-width: 720px) {
  .scanmodal { padding: 0; }
  .scanmodal__panel { width: 100%; height: 100%; border-radius: 0; }
  /* same split as the standalone page, and it has to be stated here: these
     selectors have to outrank .chat--modal .chat__log above */
  .chat--modal .chat__log { flex: 0 0 auto; height: 33%; min-height: 130px; }
  .chat--modal .chat__dock { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

  /* except in the lead step, where the dock is a single input and has no use
     for two thirds of a phone screen: give the room back to the conversation */
  .chat--modal.chat--lead .chat__log { flex: 1 1 auto; height: auto; min-height: 0; }
  .chat--modal.chat--lead .chat__dock { flex: 0 0 auto; overflow: visible; }
}
