/* Cybernet AI — демо агентов. Тёмный — цвет логотипа #1B1349, акцент — синий #1677FF с сайта Cybernet; шрифт Geist. */
:root {
  --brand: #1677ff;
  --brand-700: #0958d9;
  --brand-50: #eef5ff;
  --brand-100: #d7e8ff;
  --brand-200: #a6cbff;
  --navy: #1b1349;
  --sky: #00b8ff;
  --ink: #18181b;
  --muted: #71717b;
  --soft: #9f9fa9;
  --line: #e4e4e7;
  --line-2: #f0f0f2;
  --bg: #fafafa;
  --card: #ffffff;
  --ok: #12a150;
  --ok-50: #e9f8ef;
  --warn: #b45309;
  --danger: #da0028;
  --radius: 20px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(27, 19, 73, .04), 0 8px 28px rgba(27, 19, 73, .06);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.glow {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(22, 119, 255, .10), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(0, 184, 255, .10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- шапка ---------- */
.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-logo { display: block; height: 30px; width: auto; }
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
}
.lang button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lang button.on { background: var(--navy); color: #fff; }

/* ---------- первый экран ---------- */
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }
.hero { text-align: center; padding: 44px 0 30px; }
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 {
  margin: 16px auto 12px;
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(30px, 6.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 0 auto; max-width: 600px; color: var(--muted); font-size: clamp(16px, 2.4vw, 18px); }

/* ---------- вкладки сценариев ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 18px 18px 16px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s, background .15s, transform .15s;
}
@media (hover: hover) {
  .tab:hover { border-color: var(--brand-200); transform: translateY(-1px); }
  .tab.on:hover { border-color: var(--brand); }
}
.tab:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.tab .ico {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab-title { color: var(--navy); font-weight: 600; font-size: 17px; line-height: 1.25; }
.tab-sub { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab.on { background: var(--brand-50); border-color: var(--brand); }
.tab.on .ico { stroke: var(--brand); }

/* ---------- панель сценария ---------- */
.panel {
  margin-top: 16px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #fdfcff);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 260px;
}
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: start; }
.panel h2 { margin: 0 0 14px; color: var(--navy); font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; color: #3f3f46; }
.bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.company {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 220px;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 18px;
  background: #f4f4f5;
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  line-height: 1.2;
}
.company img { max-width: 180px; max-height: 64px; display: block; }

.action { grid-column: 1 / -1; margin-top: 6px; padding-top: 22px; border-top: 1px dashed var(--line); }

/* входящая линия */
.dial { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.dial-num {
  font-family: var(--mono);
  font-size: clamp(24px, 5.4vw, 34px);
  color: var(--navy);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.dial-hint { color: var(--muted); font-size: 14px; flex-basis: 100%; margin-top: -6px; }
.dial-qr { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; max-width: 220px; }

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(22, 119, 255, .28);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--brand-700); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand-200); background: var(--brand-50); }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid #f6c7d0; box-shadow: none; min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.danger:hover { background: #fff5f7; }

/* форма */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 17px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #c4c4cc; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 4px #ffe4ea; }
.phone { position: relative; }
.phone .cc {
  position: absolute;
  left: 16px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  color: var(--navy);
  font-size: 17px;
  pointer-events: none;
}
.phone .input { padding-left: 70px; font-family: var(--mono); letter-spacing: .02em; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.consent { grid-column: 1 / -1; margin: 0; color: var(--soft); font-size: 13px; }
.err { grid-column: 1 / -1; margin: 0; color: var(--danger); font-size: 14px; font-weight: 500; }

/* запись разговора */
.audio { margin-top: 14px; }
.audio audio { width: 100%; max-width: 360px; height: 40px; }
.audio-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }

/* ---------- живой звонок ---------- */
.live { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.live.single { grid-template-columns: minmax(0, 1fr); }
.live-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { display: block; width: 6px; border-radius: 6px; background: var(--brand); height: 8px; opacity: .35; }
.live.on .wave i { animation: bar 1.1s ease-in-out infinite; opacity: 1; }
.live.on .wave i:nth-child(2) { animation-delay: .12s; }
.live.on .wave i:nth-child(3) { animation-delay: .24s; }
.live.on .wave i:nth-child(4) { animation-delay: .36s; }
.live.on .wave i:nth-child(5) { animation-delay: .48s; }
.live.ring .wave i { animation: ring 1.4s ease-in-out infinite; opacity: .9; background: var(--sky); }
@keyframes bar { 0%, 100% { height: 8px; } 50% { height: 32px; } }
@keyframes ring { 0%, 100% { height: 8px; } 30% { height: 18px; } }
.live-status { display: flex; flex-direction: column; min-width: 0; }
.live-status b { color: var(--navy); font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
.live-status span { color: var(--muted); font-size: 14px; }
.timer { font-family: var(--mono); color: var(--navy); font-size: 15px; padding: 4px 10px; border-radius: 8px; background: #f4f4f5; }
.live-head .btn { margin-left: auto; }

.box {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
}
.box h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: pop .22s ease-out; overflow-wrap: anywhere; }
.msg.agent { align-self: flex-start; background: var(--brand-50); color: var(--navy); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.msg small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .6; margin-bottom: 2px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--brand-50); border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chat-empty { color: var(--soft); font-size: 14px; }

/* заявка */
.app { position: relative; overflow: hidden; }
.app-rows { display: grid; gap: 2px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row span { color: var(--muted); }
.row b { color: var(--navy); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.row b.empty { color: #d4d4d8; font-weight: 400; }
.row.flash b { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { color: var(--brand); background: var(--brand-100); } 100% { background: transparent; } }
.row.pay b { font-size: 17px; color: var(--brand); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f4f4f5; color: var(--muted); }
.pill.ok { background: var(--ok-50); color: var(--ok); }
.pill.live { background: var(--brand-50); color: var(--brand); }
.pill.warn { background: #fff4e5; color: var(--warn); }
.app h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stamp {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ok-50);
  color: var(--ok);
  font-weight: 600;
  animation: pop .3s ease-out;
}
.stamp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.summary { margin-top: 12px; color: #3f3f46; font-size: 15px; }
.again { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.again .note { color: var(--muted); font-size: 14px; }

/* ---------- подвал ---------- */
.foot {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
  font-size: 13px;
}
.foot-qr { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.qr { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.qr img, .qr canvas { width: 96px !important; height: 96px !important; }

/* ---------- общие мелочи нового макета ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #16c464; flex: none; }
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #16c464;
  opacity: 0;
  animation: dot 1.8s ease-out infinite;
}
@keyframes dot { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.lead-m, .tab-short, .chips, .dialer, .meta-co { display: none; }
.meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.meta-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}
.meta-dir svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.meta-dir.in { background: var(--ok-50); color: var(--ok); }
.meta-dir.out { background: var(--brand-50); color: var(--brand); }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.steps li { display: flex; align-items: center; gap: 8px; color: #3f3f46; font-size: 14px; }
.steps b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.hang { transform: rotate(135deg); }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 12px; scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .glow { height: 48vh; }
  .top { padding: 14px 16px 0; }
  .brand-logo { height: 26px; }
  /* без своего слоя: иначе подвал рисуется поверх нижней панели и забирает нажатия */
  .wrap { padding-bottom: 12px; z-index: auto; }

  .hero { padding: 20px 0 16px; text-align: left; }
  .hero h1 { margin: 12px 0 8px; font-size: clamp(25px, 7.6vw, 36px); }
  .lead { display: none; }
  .lead-m { display: block; margin: 0; color: var(--muted); font-size: 15px; }

  /* выбор сценария — нижняя панель под большим пальцем */
  .tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    gap: 4px;
    padding: 6px;
    border-radius: 24px;
    background: rgba(27, 19, 73, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(27, 19, 73, .32), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  }
  .tab {
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
    padding: 8px 4px;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
    color: rgba(255, 255, 255, .62);
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, color .2s;
  }
  .tab .ico { width: 22px; height: 22px; margin: 0; stroke: currentColor; }
  .tab-title, .tab-sub { display: none; }
  .tab-short { display: block; font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
  .tab.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(22, 119, 255, .45); }
  .tab.on .ico { stroke: #fff; }
  .tab:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

  .panel {
    margin-top: 0;
    padding: 18px 16px 20px;
    border-radius: 26px;
    min-height: 0;
    scroll-margin-top: 12px;
    animation: pop .25s ease-out;
  }
  .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .company { display: none; }
  .meta { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; margin-bottom: 12px; }
  .meta-dir { white-space: nowrap; }
  .meta-co {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
  }
  .meta-co::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--brand), var(--sky));
    flex: none;
  }
  .panel h2 { font-size: 23px; margin-bottom: 12px; }
  .bullets { display: none; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip {
    padding: 6px 11px;
    border-radius: 999px;
    background: #f4f4f5;
    color: var(--navy);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
  }
  .action { margin-top: 18px; padding-top: 0; border-top: 0; }

  /* три шага исходящего звонка */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .steps li {
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--navy);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
  }
  .steps b { width: 22px; height: 22px; background: var(--brand); font-size: 11px; }

  /* входящий: одна большая кнопка вызова */
  .dial { display: none; }
  .dialer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px 22px;
    border-radius: 22px;
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(22, 119, 255, .55), transparent 70%),
      var(--navy);
    color: #fff;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .dialer-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #16c464;
    box-shadow: 0 10px 28px rgba(22, 196, 100, .45);
    transition: transform .12s;
  }
  .dialer-btn::before, .dialer-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(22, 196, 100, .7);
    animation: halo 2.2s ease-out infinite;
  }
  .dialer-btn::after { animation-delay: 1.1s; }
  .dialer-btn svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: wiggle 2.2s ease-in-out infinite;
  }
  .dialer:active .dialer-btn { transform: scale(.94); }
  .dialer-num { margin-top: 22px; font-family: var(--mono); font-size: clamp(24px, 7.4vw, 30px); letter-spacing: .01em; white-space: nowrap; }
  .dialer-hint { margin-top: 4px; color: rgba(255, 255, 255, .7); font-size: 13px; max-width: 260px; }

  /* исходящий: форма */
  .form { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form .btn { width: 100%; justify-self: stretch; min-height: 56px; font-size: 17px; }
  .consent { text-align: center; }

  /* экран звонка — как у телефона */
  .panel.is-live {
    padding: 22px 14px 16px;
    background:
      radial-gradient(110% 60% at 50% 0%, rgba(22, 119, 255, .6), transparent 70%),
      linear-gradient(180deg, #1b1349, #0d0926);
    border-color: transparent;
    color: #fff;
  }
  .live { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .live-head { flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-bottom: 6px; }
  .wave { height: 44px; gap: 4px; }
  .wave i { background: #fff; }
  .live.ring .wave i { background: #7cc8ff; }
  .live.on .wave i { animation-name: bar-m; }
  .live.on .wave i:nth-child(6) { animation-delay: .6s; }
  .live.on .wave i:nth-child(7) { animation-delay: .72s; }
  .live-status { align-items: center; }
  .live-status b { color: #fff; font-size: 22px; }
  .live-status span { color: rgba(255, 255, 255, .7); }
  .timer { background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; }
  .live-head .btn.danger {
    margin: 8px 0 0;
    width: 64px;
    height: 64px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    box-shadow: 0 10px 24px rgba(218, 0, 40, .45);
  }
  .live-head .btn.danger svg { width: 28px; height: 28px; }
  .end-txt { display: none; }
  .panel.is-live .box { border: 0; border-radius: 20px; padding: 14px; }
  .panel.is-live .box:not(.app) { background: rgba(255, 255, 255, .07); }
  .panel.is-live .box:not(.app) h3 { color: rgba(255, 255, 255, .55); }
  .chat { max-height: 46vh; }
  .panel.is-live .msg.agent { background: rgba(255, 255, 255, .13); color: #fff; }
  .panel.is-live .msg.user { background: #fff; color: var(--navy); }
  .panel.is-live .typing { background: rgba(255, 255, 255, .13); }
  .panel.is-live .typing i { background: #fff; }
  .panel.is-live .chat-empty { color: rgba(255, 255, 255, .6); }
  .panel.is-live .app { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  .again { justify-content: center; }
  .panel.is-live .btn.ghost { width: 100%; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }

  .foot { justify-content: center; text-align: center; padding-bottom: 16px; }
}
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 82% { transform: rotate(10deg); } 89% { transform: rotate(-6deg); } }
@keyframes bar-m { 0%, 100% { height: 8px; } 50% { height: 40px; } }
@media (max-width: 360px) {
  .form { grid-template-columns: 1fr; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; font-size: 11px; }
  .tab-short { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
