@font-face {
  font-family: Geologica;
  src: url("/static/fonts/geologica-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Geologica;
  src: url("/static/fonts/geologica-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/static/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f1e9;
  --paper: #fffdf9;
  --ink: #1f1a17;
  --muted: #6a6259;
  --line: #e6ddcf;
  --warm: linear-gradient(135deg, #ff7a4e, #ffa53c);
  --warm-solid: #ff8a48;
  --danger-bg: #fde8e4;
  --danger: #8d1d24;
  --round: 22px;
  --round-small: 14px;
  --lift: 0 1px 2px rgba(60, 34, 14, 0.06), 0 8px 24px rgba(60, 34, 14, 0.06);
  color-scheme: light;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  min-width: 280px;
}
.wash {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wash span {
  position: absolute;
  border-radius: 50%;
}
.wash span:nth-child(1) {
  width: 58vw;
  height: 44vw;
  left: -14vw;
  top: -6vh;
  background: radial-gradient(ellipse at center, rgba(255, 140, 64, 0.42), transparent 68%);
  animation: blob-a 16s ease-in-out infinite alternate;
}
.wash span:nth-child(2) {
  width: 46vw;
  height: 60vw;
  right: -12vw;
  bottom: -16vh;
  background: radial-gradient(ellipse at center, rgba(255, 122, 72, 0.36), transparent 66%);
  animation: blob-b 20s ease-in-out infinite alternate;
}
.wash span:nth-child(3) {
  width: 34vw;
  height: 26vw;
  left: 36%;
  top: 38%;
  background: radial-gradient(ellipse at center, rgba(255, 166, 92, 0.22), transparent 70%);
  animation: blob-c 13s ease-in-out infinite alternate;
}
@keyframes blob-a {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(9vw, 7vh, 0) rotate(14deg); }
}
@keyframes blob-b {
  from { transform: translate3d(0, 0, 0) rotate(6deg); }
  to { transform: translate3d(-8vw, -9vh, 0) rotate(-12deg); }
}
@keyframes blob-c {
  from { transform: translate3d(-5vw, 3vh, 0) scale(1); }
  to { transform: translate3d(7vw, -6vh, 0) scale(1.18); }
}
.top, .note, main { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2, .brand { font-family: Geologica, Manrope, system-ui, sans-serif; }
h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-weight: 600;
}
h2 { font-size: 20px; line-height: 1.25; margin: 0 0 4px; font-weight: 600; }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 12px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; flex: none; }
nav, .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.who { color: var(--muted); font-size: 15px; }
.quiet {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  text-underline-offset: 3px;
}
.note {
  margin: 0 22px;
  padding: 8px 14px;
  border-radius: var(--round-small);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 14px;
}
main { padding: 20px 22px 64px; }

/* Landing */
.hero {
  display: grid;
  grid-template-columns: minmax(140px, 230px) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 8vh 0 24px;
}
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.lede { margin: 0 0 22px; max-width: 36em; color: var(--muted); font-size: 19px; }

.promises { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.promises li::before { content: "✓"; margin-right: 8px; color: var(--warm-solid); font-weight: 700; }
.band { max-width: 960px; margin: 0 auto; padding: 56px 0 0; scroll-margin-top: 16px; }
.band.narrow { max-width: 720px; }
.band-title { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.025em; margin: 0 0 22px; }
.centre { text-align: center; }
.band .centre { margin-top: 22px; }
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.demo { margin: 0; padding: 18px; border-radius: var(--round); background: rgba(255, 255, 255, 0.62); box-shadow: var(--lift); }
.demo figcaption { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.demo ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.demo li { display: flex; }
.demo li.mine { justify-content: flex-end; }
.demo p { margin: 0; max-width: 86%; padding: 9px 14px; border-radius: 18px; line-height: 1.4; background: #fff; box-shadow: 0 1px 2px rgba(60, 34, 14, 0.06); }
.demo .hers p { border-bottom-left-radius: 6px; }
.demo .mine p { border-bottom-right-radius: 6px; background: var(--warm); box-shadow: none; }
.demo p.demo-page { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 15px; }
.demo-page span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: repeating-linear-gradient(#f3ece1 0 3px, #fff 3px 7px); border: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.features article { padding: 20px; border-radius: var(--round); background: var(--paper); box-shadow: var(--lift); }
.features svg { width: 30px; height: 30px; margin-bottom: 12px; fill: none; stroke: var(--warm-solid); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin: 0 0 8px; font-family: Geologica, Manrope, system-ui, sans-serif; font-size: 18px; line-height: 1.25; font-weight: 600; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }
.calm { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.calm li { padding-left: 18px; border-left: 3px solid var(--warm-solid); color: var(--muted); }
.calm strong { color: var(--ink); }
.start { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: start; }
.start li { counter-increment: start; padding: 20px; border-radius: var(--round); background: rgba(255, 255, 255, 0.62); color: var(--muted); }
.start li::before { content: counter(start); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--warm); color: var(--ink); font-weight: 700; }
.start strong { display: block; margin-bottom: 4px; color: var(--ink); }
.faq { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 960px; margin: 64px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot span { margin-right: auto; font-family: Geologica, Manrope, system-ui, sans-serif; font-weight: 700; color: var(--ink); }

/* Buttons: one rounded shape everywhere */
.pill, button.pill, a.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.pill.solid { border-color: transparent; background: var(--warm); }
.text {
  border: 0;
  background: none;
  color: var(--ink);
  min-height: 40px;
  padding: 6px 0;
  cursor: pointer;
}

/* Forms and the adult's pages */
.sheet, .card {
  background: var(--paper);
  border-radius: var(--round);
  box-shadow: var(--lift);
}
.sheet { max-width: 760px; margin: 0 auto; padding: 28px 24px 32px; }
.sheet.narrow { max-width: 440px; }
.stack, fieldset { display: grid; gap: 16px; }
fieldset {
  border: 0;
  margin: 8px 0 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0 0 4px;
  font-family: Geologica, Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
}
label { display: grid; gap: 6px; min-width: 0; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--round-small);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--warm-solid);
  outline-offset: 2px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 32px;
  line-height: 1.35;
}
.check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--warm-solid);
}
.hint { margin: 0; color: var(--muted); font-size: 15px; }

/* Registration, one step at a time */
.wizard-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.wizard-face { flex: none; width: 76px; }
.wizard-head h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; }
.wizard-head h1:focus { outline: none; }
.wizard-head .eyebrow { margin: 0 0 4px; }
.dots { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.dots li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background 240ms ease; }
.dots li.done, .dots li.now { background: var(--warm-solid); }
.dots li.done { opacity: 0.45; }
.wizard.stepped legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wizard.stepped fieldset { margin-top: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: block; position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--round-small); background: #fff; font-weight: 700; text-align: center; }
.chips.wide .chip span { font-weight: 400; }
.chip input:checked + span { border-color: transparent; background: var(--warm); }
.chip input:focus-visible + span { outline: 3px solid var(--warm-solid); outline-offset: 2px; }
.book small { display: block; color: var(--muted); font-size: 14px; }
#all-books { justify-self: start; text-decoration: underline; }
.summary { margin: 4px 0 0; padding: 12px 16px; border-radius: var(--round-small); background: var(--bg); color: var(--muted); }
.wizard-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wizard-nav .solid { margin-left: auto; min-width: 150px; }
.wizard > .centre { margin-top: 20px; }

/* The talk page: the voice switch, shaped like the one on a phone */
.switch { display: flex; align-items: center; gap: 6px; padding: 4px; border: 0; background: none; cursor: pointer; }
.switch svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms ease; }
.switch-track { display: block; width: 46px; height: 28px; padding: 2px; border-radius: 14px; background: #d9cfc2; transition: background 220ms ease; }
.switch-knob { display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(40, 20, 5, 0.3); transition: transform 220ms cubic-bezier(0.3, 1.3, 0.6, 1); }
.switch[aria-checked="true"] .switch-track { background: var(--warm); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(18px); }
.switch[aria-checked="false"] svg { opacity: 0.4; }

/* Tariffs on the adult's page */
.plan { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--round-small); background: #fff; cursor: pointer; }
.plan input { width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--warm-solid); }
.plan strong { display: block; }
.plan small { display: block; color: var(--muted); font-size: 15px; }
.plan:has(input:checked) { border-color: var(--warm-solid); box-shadow: 0 0 0 1px var(--warm-solid); }
.payg { display: grid; gap: 14px; }
.warn { margin: 0; padding: 12px 16px; border-radius: var(--round-small); background: #fff1d6; color: #6b4300; }
.wizard-head h2 { font-size: 24px; margin: 0 0 6px; }
.wizard-head h2:focus { outline: none; }
.fold > .wizard { margin-top: 18px; }
.errors {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--round-small);
  background: var(--danger-bg);
  color: var(--danger);
  list-style-position: inside;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 28px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 260px;
  max-width: 100%;
  padding: 18px;
  background: #fff;
}
.card p { margin: 0; color: var(--muted); }
.card.done { opacity: 0.55; }
.fold { width: 100%; }
.fold summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.fold > form, .fold > p { margin-top: 14px; }

/* Long text: the policy */
.prose h2 { margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 12px; font-size: 15px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 130px; }

/* Energy: a charge bar, not a number */
.energy {
  display: flex;
  align-items: center;
  gap: 6px;
}
.energy svg { width: 16px; height: 16px; flex: none; fill: var(--warm-solid); }
.energy-track {
  display: block;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.1);
  overflow: hidden;
}
.energy-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--warm);
  transition: width 600ms ease;
}
.energy.low svg { fill: #b9ada0; }
.energy.low .energy-fill { background: #b9ada0; }
.energy.wide { width: 100%; }
.energy.wide .energy-track { flex: 1; width: auto; }
.energy-number { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* АІшка */
.face {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: float 5s ease-in-out infinite;
  transition: transform 300ms ease;
}
.face-skin { fill: #fffaf3; }
.face-eye { fill: #2b1d2a; }
.face-shine { fill: #fff; }
.face-cheek { fill: #ff8a6a; opacity: 0.28; }
.face[data-state="listening"] { transform: scale(1.05); }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: -1.5deg; }
  50% { translate: 0 -6px; rotate: 1.5deg; }
}

/* The conversation: a stage for АІшка, the talk under it */
body.talk {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.talk .top { padding: 8px 16px; }
body.talk .brand { font-size: 15px; }
body.talk .brand img { width: 24px; height: 24px; }
body.talk main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 0 20px 12px;
}
.session {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.stage {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 4px 0 2px;
}
.stage .face { width: clamp(80px, 18vh, 160px); }
.caption {
  margin: 0;
  min-height: 22px;
  color: var(--muted);
  font-size: 15px;
}
.log {
  list-style: none;
  margin: 0;
  padding: 12px 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
}
.log::before { content: ""; flex: 1 0 auto; }
.log li { display: flex; margin: 0; }
.log li.mine { justify-content: flex-end; }
.log li.fresh { align-items: center; gap: 12px; margin: 6px 0; color: var(--muted); font-size: 0.82rem; }
.log li.fresh::before, .log li.fresh::after { content: ""; flex: 1 1 0; height: 1px; background: currentColor; opacity: 0.3; }
.bubble {
  margin: 0;
  max-width: 78%;
  padding: 10px 16px;
  border-radius: var(--round);
  line-height: 1.4;
  white-space: pre-wrap;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 34, 14, 0.06);
}
.hers .bubble { border-bottom-left-radius: 6px; }
.mine .bubble { border-bottom-right-radius: 6px; background: var(--warm); box-shadow: none; }
.page {
  display: block;
  width: min(280px, 70%);
  padding: 0;
  border: 0;
  border-radius: var(--round-small);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--lift);
  cursor: zoom-in;
}
.page img { display: block; width: 100%; height: auto; }
.page-view {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px;
  border: 0;
  background: rgba(31, 26, 23, 0.86);
  overflow: auto;
  cursor: zoom-out;
}
.page-view::backdrop { background: transparent; }
.page-view img {
  display: block;
  width: min(1100px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: var(--round-small);
}
.page-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.page-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bubble.waiting {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}
.bubble.waiting i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 1.1s ease-in-out infinite;
}
.bubble.waiting i:nth-child(2) { animation-delay: 0.15s; }
.bubble.waiting i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.dock {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
.page-chip {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--lift);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: zoom-in;
}
.page-chip img {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.page-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}
.dock-status .hint:empty { display: none; }
.dock-status #hear { margin-left: auto; text-decoration: underline; }
.dock-status #clear { margin-left: auto; }
.dock-status #hear:not([hidden]) + #clear { margin-left: 0; }
.ask-box {
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 0;
  border-radius: var(--round);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--lift);
}
.ask-box::backdrop { background: rgba(31, 26, 23, 0.45); }
.ask-box p { margin: 0 0 16px; line-height: 1.4; }
.ask-box .row { display: flex; gap: 10px; flex-wrap: wrap; }
.ask-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ask-form input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--lift);
}
.mic, .send {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease;
}
.mic svg, .send svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mic { background: var(--warm); box-shadow: var(--lift); }
.mic svg rect { fill: currentColor; stroke: none; }
.mic.on { animation: pulse 1.2s ease-out infinite; }
@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(255, 122, 78, 0.55); }
  to { box-shadow: 0 0 0 18px rgba(255, 122, 78, 0); }
}
.send { background: var(--ink); color: var(--paper); }
.shot {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--lift);
  color: var(--ink);
  cursor: pointer;
  transition: transform 150ms ease;
}
.shot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic:active, .send:active, .shot:active { transform: scale(0.94); }
.mic:disabled, .send:disabled, .shot:disabled, .ask-form input:disabled { opacity: 0.45; cursor: not-allowed; }
.photo-chip { cursor: default; padding-right: 6px; }
.photo-chip img { border-radius: 10px; object-position: center; }
.photo-chip button {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.photo-chip button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.session.dropping .ask-form input { outline: 2px dashed var(--ink); outline-offset: 2px; }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 18px; }
  .hero-face { width: min(170px, 46vw); }
  body.talk nav { gap: 6px 10px; }
  body.talk .energy-track { width: 40px; }
  body.talk .brand span { display: none; }
  .band { padding-top: 40px; }
  .wizard-face { width: 56px; }
  .wizard-nav .solid { flex: 1; }
  .top, main { padding-left: 16px; padding-right: 16px; }
  .note { margin: 0 16px; }
  .sheet { padding: 22px 18px 28px; }
  body.talk main { padding: 0 12px 8px; }
  .stage .face { width: clamp(64px, 14vh, 120px); }
  .bubble { max-width: 88%; padding: 9px 14px; }
  .ask-form input { min-height: 50px; padding: 10px 16px; }
  .mic, .send { width: 50px; height: 50px; }
}
/* A wide screen: АІшка moves to a column of her own, next to the newest messages, and the talk gets the whole height. */
@media (min-width: 900px) and (min-height: 521px) {
  body.talk main { width: min(1180px, 100%); padding: 0 24px 12px; }
  .session {
    display: grid;
    grid-template-columns: clamp(150px, 17vw, 230px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 28px;
  }
  .stage { grid-column: 1; grid-row: 1 / 3; align-self: end; padding: 0 0 18px; }
  .stage .face { width: 100%; }
  .caption { text-align: center; }
  .log { grid-column: 2; grid-row: 1; }
  .dock { grid-column: 2; grid-row: 2; }
  .bubble { max-width: min(78%, 46em); }
}
/* The keyboard is open or the phone lies on its side: АІшка steps back, the talk stays. */
@media (max-height: 520px) {
  .stage { padding: 0; }
  .stage .face { width: 56px; }
  .caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wash span, .face, .mic.on, .bubble.waiting i { animation: none; }
  .pill:hover { transform: none; }
}

/* «помилка?» under her answer: small enough not to get in the way, there when the child needs it. */
.log li.hers:has(.oops) { flex-direction: column; align-items: flex-start; gap: 2px; }
.oops {
  border: 0;
  background: none;
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.6;
  cursor: pointer;
}
.oops:hover { opacity: 1; text-decoration: underline; }
.oops:disabled { opacity: 1; cursor: default; text-decoration: none; }

/* Staff pages */
.sheet.wide { max-width: 1100px; }
.sheet.wide h2 { margin: 26px 0 8px; }
.staffside .top nav { flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.tile { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--round); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--lift); }
.tile b { font-size: 28px; }
.tile span { color: var(--muted); font-size: 14px; }
.tile.hot b { color: #b3261e; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.row input, .row select, .row label { width: auto; flex: 1 1 140px; }
.scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th, table.list td { padding: 8px 10px; border-bottom: 1px solid #0001; text-align: left; vertical-align: top; }
table.list tr.off { opacity: 0.5; }
.warn { color: #b3261e; }
.note.done { background: #e7f5ea; }
.oopscase { margin: 12px 0; }
.oopscase .marked { border-left: 3px solid #b3261e; padding-left: 10px; }
.note.verify { display: grid; gap: 4px; text-align: left; margin: 0 0 16px; }
.note.verify p { margin: 0; }
code.copy { cursor: copy; user-select: all; font-size: 13px; }
code.copy[data-done] { color: #2e7d32; }
.sheet .note { margin: 0 0 14px; }

/* Support chat */
.support-log { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.support-log li { max-width: 85%; padding: 10px 14px; border-radius: var(--round-small); background: #fff; }
.support-log li.mine { justify-self: end; background: #fde9d6; }
.support-log li p { margin: 0; white-space: pre-wrap; }
.support-log li p.who { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #b3261e; color: #fff; font-size: 12px; text-align: center; }
