:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --blue: #0057ff;
  --blue-dark: #004ee6;
  --blue-soft: #eaf2ff;
  --green: #22c55e;
  --shadow: 0 18px 45px rgb(15 23 42 / 0.12);
  --phone-shadow: 0 22px 54px rgb(15 23 42 / 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgb(0 87 255 / 0.09), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef4fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.target-anchor {
  position: fixed;
  inline-size: 1px;
  block-size: 1px;
  inset-block-start: 0;
  inset-inline-start: 0;
  opacity: 0;
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.concept-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark,
.round-icon,
.bot-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #36a8ff, var(--blue));
}

.brand-mark {
  width: 52px;
  height: 52px;
}

.lucide {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.kicker {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.header-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.08);
}

.header-note > span {
  display: grid;
  place-items: center;
  color: var(--blue);
}

.header-note > span .lucide {
  width: 24px;
  height: 24px;
}

.header-note strong,
.header-note small {
  display: block;
}

.header-note small {
  margin-top: 3px;
  color: var(--muted);
}

.state-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-width: none;
}

.state-nav::-webkit-scrollbar {
  display: none;
}

.style-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.74);
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.05);
}

.style-options {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: -4px -2px;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.style-options::-webkit-scrollbar {
  display: none;
}

.style-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 12px 6px 7px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition-property: transform, border-color, background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.style-option:hover,
.style-option:focus-within {
  border-color: rgb(0 87 255 / 0.32);
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.08);
  transform: translateY(-1px);
}

.style-option:active {
  transform: scale(0.96);
}

.style-option input,
.classic-theme-toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.style-swatch {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.52),
    0 0 0 1px rgb(15 23 42 / 0.08);
}

.style-classic .style-swatch {
  background: linear-gradient(145deg, #36a8ff 0%, #0057ff 100%);
}

.style-minimal .style-swatch {
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
}

.style-dark .style-swatch {
  background: #1b1c21;
  box-shadow:
    inset 0 0 0 6px #141518,
    inset 0 0 0 8px #ff5f6d,
    0 0 0 1px rgb(15 23 42 / 0.08);
}

.style-neon .style-swatch {
  background: linear-gradient(135deg, #00c8ff 0%, #0877ff 48%, #f02bd2 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.24),
    0 0 16px rgb(0 200 255 / 0.24);
}

.style-business .style-swatch {
  background: linear-gradient(145deg, #ecfdf5 0%, #10b981 100%);
}

.style-warm .style-swatch {
  background: linear-gradient(145deg, #fff7ed 0%, #f97316 100%);
}

.page-shell:has(#style-classic:checked) .style-classic,
.page-shell:has(#style-minimal:checked) .style-minimal,
.page-shell:has(#style-dark:checked) .style-dark,
.page-shell:has(#style-neon:checked) .style-neon,
.page-shell:has(#style-business:checked) .style-business,
.page-shell:has(#style-warm:checked) .style-warm {
  border-color: rgb(0 87 255 / 0.48);
  background: #f8fbff;
  box-shadow:
    0 0 0 2px rgb(0 87 255 / 0.08),
    0 8px 18px rgb(15 23 42 / 0.08);
}

.page-shell:has(#style-neon:checked) .style-neon {
  border-color: rgb(0 200 255 / 0.58);
  background: linear-gradient(180deg, rgb(0 200 255 / 0.08), rgb(240 43 210 / 0.05));
  box-shadow:
    0 0 0 2px rgb(0 200 255 / 0.1),
    0 8px 18px rgb(0 200 255 / 0.12);
}

.classic-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.page-shell:not(:has(#style-classic:checked)) .classic-theme-toggle {
  display: none;
}

.theme-switch {
  width: 38px;
  height: 22px;
  padding: 3px;
  border-radius: 999px;
  background: #dbe3ef;
  transition-property: background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.theme-switch span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.2);
  transition-property: transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.classic-theme-toggle:has(input:checked) .theme-switch {
  background: var(--blue);
}

.classic-theme-toggle:has(input:checked) .theme-switch span {
  transform: translateX(16px);
}

.state-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  white-space: nowrap;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.state-tab:hover,
.state-tab:focus-visible {
  border-color: rgb(0 87 255 / 0.38);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.state-tab:active {
  transform: scale(0.96);
}

.state-tab span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.interactive-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 380px;
  gap: 42px;
  align-items: center;
  min-height: 620px;
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.94), rgb(241 245 249 / 0.86)),
    var(--surface);
}

.screen-copy {
  max-width: 440px;
}

.screen-copy h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.screen-copy p:not(.state-label) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.state-label {
  display: none;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.hub-copy {
  display: inline-flex;
}

.phone {
  position: relative;
  width: 380px;
  max-width: 100%;
  height: 650px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--phone-shadow);
  transform-origin: center;
  transition-property: opacity, transform, filter;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  --blue: #0057ff;
  --blue-dark: #004ee6;
  --blue-soft: #eaf2ff;
  --chat-bg: #ffffff;
  --chat-bg-soft: #f8fbff;
  --chat-surface: #ffffff;
  --chat-panel: #f8fbff;
  --chat-panel-2: #eef4fb;
  --chat-text: #0f172a;
  --chat-muted: #475569;
  --chat-border: #dbe3ef;
  --chat-shadow: 0 22px 54px rgb(15 23 42 / 0.18);
  --chat-hero-start: #168cff;
}

.widget-launcher {
  position: absolute;
  top: 50%;
  right: calc(34px + 158px);
  z-index: 5;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow:
    0 18px 38px rgb(0 87 255 / 0.28),
    inset 0 0 0 1px rgb(255 255 255 / 0.24);
  opacity: 0;
  transform: translateY(-50%) scale(0.72);
  pointer-events: none;
  transition-property: opacity, transform, background-color, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.widget-launcher::before,
.widget-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 2px solid rgb(0 87 255 / 0.34);
  background: rgb(0 87 255 / 0.1);
  opacity: 0;
  pointer-events: none;
}

.widget-launcher .lucide {
  width: 28px;
  height: 28px;
}

.widget-launcher:hover,
.widget-launcher:focus-visible {
  background: var(--blue-dark);
  box-shadow:
    0 22px 44px rgb(0 87 255 / 0.34),
    inset 0 0 0 1px rgb(255 255 255 / 0.3);
  transform: translateY(-50%) scale(1.04);
}

.widget-launcher:active {
  transform: translateY(-50%) scale(0.96);
}

@keyframes launcherBounce {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  45% {
    transform: translateY(calc(-50% - 8px)) scale(1.05);
  }
  70% {
    transform: translateY(-50%) scale(0.98);
  }
}

@keyframes launcherRipple {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  14% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: scale(2.08);
  }
}

@keyframes phoneZoomIn {
  from {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.page-shell:has(#style-minimal:checked) .phone {
  --blue: #0f172a;
  --blue-dark: #020617;
  --blue-soft: #f1f5f9;
  --chat-bg: #ffffff;
  --chat-bg-soft: #ffffff;
  --chat-surface: #ffffff;
  --chat-panel: #ffffff;
  --chat-panel-2: #f8fafc;
  --chat-text: #0f172a;
  --chat-muted: #64748b;
  --chat-border: #e2e8f0;
  --chat-hero-start: #ffffff;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone {
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: rgb(59 130 246 / 0.16);
  --chat-bg: #020a14;
  --chat-bg-soft: #031326;
  --chat-surface: #071423;
  --chat-panel: #0a1827;
  --chat-panel-2: #101f32;
  --chat-text: #f8fafc;
  --chat-muted: #b7c5d8;
  --chat-border: rgb(148 163 184 / 0.18);
  --chat-shadow: 0 30px 70px rgb(2 6 23 / 0.52);
  --chat-hero-start: #07172a;
}

.page-shell:has(#style-dark:checked) .phone {
  --blue: #ff5f6d;
  --blue-dark: #ff3f52;
  --blue-soft: rgb(255 95 109 / 0.14);
  --chat-bg: #141518;
  --chat-bg-soft: #17181c;
  --chat-surface: #1b1c21;
  --chat-panel: #191a1f;
  --chat-panel-2: #202127;
  --chat-text: #f5f5f5;
  --chat-muted: #b7bbc4;
  --chat-border: rgb(255 255 255 / 0.08);
  --chat-shadow: 0 26px 60px rgb(0 0 0 / 0.42);
  --chat-hero-start: #1b1c21;
}

.page-shell:has(#style-neon:checked) .phone {
  --blue: #00c8ff;
  --blue-dark: #00a3ff;
  --blue-soft: rgb(0 200 255 / 0.16);
  --neon-pink: #f02bd2;
  --neon-purple: #7c3cff;
  --neon-header: #07182c;
  --chat-bg: #020916;
  --chat-bg-soft: #061428;
  --chat-surface: #07162a;
  --chat-panel: #091a30;
  --chat-panel-2: #0c2038;
  --chat-text: #ecfeff;
  --chat-muted: #b9d7e8;
  --chat-border: rgb(0 200 255 / 0.34);
  --chat-shadow:
    0 30px 76px rgb(2 9 22 / 0.58),
    0 0 32px rgb(0 200 255 / 0.14);
  --chat-hero-start: #07182c;
}

.page-shell:has(#style-business:checked) .phone {
  --blue: #10b981;
  --blue-dark: #059669;
  --blue-soft: #ecfdf5;
  --chat-bg: #ffffff;
  --chat-bg-soft: #f6fffb;
  --chat-surface: #ffffff;
  --chat-panel: #f6fffb;
  --chat-panel-2: #ecfdf5;
  --chat-text: #052e2b;
  --chat-muted: #315f55;
  --chat-border: #cdeee2;
  --chat-hero-start: #34d399;
}

.page-shell:has(#style-warm:checked) .phone {
  --blue: #f97316;
  --blue-dark: #ea580c;
  --blue-soft: #fff7ed;
  --chat-bg: #fffaf5;
  --chat-bg-soft: #fff7ed;
  --chat-surface: #fffaf5;
  --chat-panel: #fff7ed;
  --chat-panel-2: #ffedd5;
  --chat-text: #431407;
  --chat-muted: #7c2d12;
  --chat-border: #fed7aa;
  --chat-hero-start: #fb923c;
}

.widget-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.screen-hub {
  display: flex;
}

.widget-screen[style],
.widget-screen {
  animation: screenIn 220ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-panel {
  position: relative;
  min-height: 164px;
  padding: 28px 22px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #168cff 0%, var(--blue) 100%);
}

.hero-panel-live-slate {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08);
}

.hero-panel-live-slate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% -20%, rgb(59 130 246 / 0.56), transparent 46%),
    linear-gradient(180deg, rgb(0 87 255 / 0.34), transparent 68%);
  opacity: 0.432;
}

.hero-panel-live-slate > * {
  position: relative;
  z-index: 1;
}

.collapse-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  z-index: 4;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  background: rgb(255 255 255 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  transition-property: transform, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.collapse-button::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  pointer-events: auto;
}

.collapse-button .lucide {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.collapse-button:hover,
.collapse-button:focus-visible {
  background: rgb(255 255 255 / 0.24);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.28),
    0 8px 18px rgb(15 23 42 / 0.14);
  transform: translateY(-1px);
}

.collapse-button:active {
  transform: scale(0.96);
}

.avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  margin-left: -7px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(145deg, #f8cda8, #7c3f33);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-two {
  background: linear-gradient(145deg, #ffd9ba, #423456);
}

.avatar-three {
  background: linear-gradient(145deg, #f4c69b, #64748b);
}

.hero-panel h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  vertical-align: 3px;
}

.verified .lucide {
  width: 12px;
  height: 12px;
}

.hero-panel p,
.hero-panel strong {
  margin: 0;
  font-size: 12px;
}

.hero-panel strong {
  display: block;
  margin-top: 5px;
  font-weight: 700;
}

.online-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.35;
}

.online-line span {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #7eea31;
  box-shadow: 0 0 0 0 rgb(126 234 49 / 0.38);
  animation: onlinePulse 1700ms ease-out infinite;
}

@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgb(126 234 49 / 0.38);
  }
  70% {
    box-shadow: 0 0 0 8px rgb(126 234 49 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(126 234 49 / 0);
  }
}

.channel-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 16px 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}

.channel-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 82px;
  align-content: center;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  transition-property: transform, color, background-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.channel-button:focus-visible,
.channel-button:hover {
  color: var(--blue-dark);
  background: rgb(0 87 255 / 0.06);
  box-shadow:
    0 0 0 1px rgb(0 87 255 / 0.08),
    0 10px 20px rgb(15 23 42 / 0.08);
  transform: translateY(-2px);
}

.channel-button:active {
  transform: translateY(0) scale(0.96);
}

.round-icon {
  width: 44px;
  height: 44px;
  box-shadow: 0 8px 18px rgb(0 87 255 / 0.18);
  transition-property: transform, box-shadow, filter;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.round-icon .lucide {
  width: 22px;
  height: 22px;
}

.channel-button:hover .round-icon,
.channel-button:focus-visible .round-icon {
  transform: scale(1.06);
  filter: saturate(1.08);
  box-shadow: 0 12px 24px rgb(0 87 255 / 0.24);
}

.round-icon.plane {
  padding-left: 2px;
}

.channel-button small {
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--chat-text);
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.channel-button:hover small,
.channel-button:focus-visible small {
  color: var(--chat-text);
}

.info-card,
.empty-card {
  margin: 0 16px 12px;
  padding: 16px;
  border: 1px solid #e7eef8;
  border-radius: 12px;
  background: #f8fbff;
  transition-property: transform, box-shadow, background-color;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.info-card:hover,
.empty-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgb(15 23 42 / 0.04),
    0 12px 24px rgb(15 23 42 / 0.08);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
}

.card-heading .lucide {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.info-card p,
.empty-card p {
  margin: 10px 0 13px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.outline-action {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgb(0 87 255 / 0.55);
  border-radius: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.outline-action:hover,
.outline-action:focus-visible {
  background: var(--blue-soft);
}

.empty-card {
  display: grid;
  justify-items: center;
  min-height: 154px;
  align-content: center;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
}

.empty-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #64748b;
}

.empty-icon .lucide {
  width: 25px;
  height: 25px;
}

.topbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(180deg, #168cff, var(--blue));
}

.topbar.simple {
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  text-align: center;
}

.topbar > a,
.menu-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition-property: background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.topbar > a .lucide,
.menu-trigger .lucide {
  width: 20px;
  height: 20px;
}

.topbar > a:hover,
.topbar > a:focus-visible {
  background: rgb(255 255 255 / 0.16);
  transform: translateX(-1px);
}

.menu-trigger:hover,
.menu-trigger:focus-visible {
  background: rgb(255 255 255 / 0.16);
}

.topbar > a:active,
.menu-trigger:active {
  transform: scale(0.96);
}

.bot-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid rgb(255 255 255 / 0.75);
  background: #fff;
  color: var(--blue);
}

.bot-avatar .lucide {
  width: 20px;
  height: 20px;
}

.topbar strong,
.topbar small {
  display: block;
}

.topbar strong {
  font-size: 14px;
}

.topbar small {
  opacity: 0.86;
  font-size: 11px;
}

.topbar-status {
  position: relative;
  display: block;
  width: 142px;
  max-width: 100%;
  height: 14px;
  overflow: hidden;
  opacity: 1;
  line-height: 14px;
}

.topbar-status span {
  position: absolute;
  inset: 0 auto auto 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform, opacity;
}

.topbar-status span:first-child {
  animation: topbarStatusOnline 7.5s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.topbar-status span:last-child {
  color: currentColor;
  font-weight: 750;
  opacity: 0;
  transform: translateY(100%);
  animation: topbarStatusAction 7.5s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.topbar-status span:last-child::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
  opacity: 0.62;
  animation: topbarActionDots 950ms ease-in-out infinite;
}

@keyframes topbarStatusOnline {
  0%, 9% {
    opacity: 1;
    transform: translateY(0);
  }
  15%, 82% {
    opacity: 0;
    transform: translateY(-100%);
  }
  88%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topbarStatusAction {
  0%, 9% {
    opacity: 0;
    transform: translateY(100%);
  }
  15%, 82% {
    opacity: 1;
    transform: translateY(0);
  }
  88%, 100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes topbarActionDots {
  0%, 70%, 100% {
    opacity: 0.35;
  }
  35% {
    opacity: 0.9;
  }
}

.chat-menu {
  position: relative;
  z-index: 8;
}

.chat-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 3px;
  width: 238px;
  padding: 8px;
  border: 1px solid var(--chat-border);
  border-radius: 14px;
  background: var(--chat-surface);
  color: var(--chat-text);
  box-shadow: 0 18px 38px rgb(15 23 42 / 0.18);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  visibility: hidden;
  pointer-events: auto;
  transition-property: opacity, transform, visibility;
  transition-duration: 160ms, 160ms, 0ms;
  transition-delay: 180ms, 180ms, 340ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.chat-menu-panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 12px;
}

.chat-menu:hover .chat-menu-panel,
.chat-menu:focus-within .chat-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0ms, 0ms, 0ms;
}

.chat-menu-panel a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  transition-property: background-color, color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}

.chat-menu-panel a:hover,
.chat-menu-panel a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateX(1px);
}

.chat-menu-panel .lucide {
  width: 18px;
  height: 18px;
}

.telegram-body {
  display: grid;
  justify-items: center;
  padding: 44px 18px 0;
  text-align: center;
}

.telegram-body h3 {
  margin-bottom: 24px;
  font-size: 24px;
  line-height: 1.2;
}

.telegram-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  gap: 8px;
}

.telegram-cta .lucide {
  width: 17px;
  height: 17px;
}

.telegram-cta:hover,
.telegram-cta:focus-visible {
  background: var(--blue-dark);
}

.qr-card {
  width: 100%;
  padding: 18px 16px;
  border-radius: 18px;
  background: #f1f5f9;
}

.qr-card p {
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.qr {
  width: 164px;
  height: 164px;
  margin: 0 auto 12px;
  border: 9px solid #fff;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, #111 50%, transparent 50%),
    linear-gradient(#111 50%, transparent 50%),
    linear-gradient(90deg, transparent 64%, #111 64% 72%, transparent 72%),
    linear-gradient(transparent 18%, #111 18% 26%, transparent 26% 48%, #111 48% 56%, transparent 56%),
    radial-gradient(circle at 18% 18%, transparent 0 10%, #111 10% 18%, transparent 18%),
    radial-gradient(circle at 82% 18%, transparent 0 10%, #111 10% 18%, transparent 18%),
    radial-gradient(circle at 18% 82%, transparent 0 10%, #111 10% 18%, transparent 18%);
  background-size: 18px 18px, 14px 14px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  image-rendering: pixelated;
}

.qr-card small,
.secure-note {
  color: #64748b;
  font-size: 12px;
}

.secure-note {
  margin: auto 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.secure-note .lucide,
.privacy .lucide {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.chat-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 18px 16px 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.message {
  width: 224px;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 12px 12px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 8px rgb(15 23 42 / 0.04);
  transition-property: transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.message:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgb(15 23 42 / 0.04),
    0 10px 18px rgb(15 23 42 / 0.08);
}

.message p {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.message > time {
  display: block;
  color: #64748b;
  text-align: right;
  font-size: 10px;
}

.manager-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
}

.manager-meta strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-meta time {
  margin-left: auto;
  color: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.manager-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(145deg, #f8cda8, #7c3f33);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.12);
}

.media-area {
  gap: 0;
  overflow-y: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.media-area::-webkit-scrollbar {
  display: none;
}

.media-area .media-message {
  display: grid;
  gap: 6px;
  width: 286px;
  margin-bottom: 6px;
  padding: 8px;
  overflow: visible;
}

.media-area .image-message {
  gap: 5px;
}

.image-message .media-image {
  height: 64px;
}

.media-area .media-message p {
  margin: 0 2px;
  font-size: 11px;
  line-height: 1.35;
}

.inline-keyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 286px;
  margin: -2px 0 8px;
}

.inline-keyboard a {
  display: grid;
  box-sizing: border-box;
  place-items: center;
  min-width: 0;
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid var(--chat-border);
  border-radius: 8px;
  color: var(--blue);
  background: var(--chat-bg-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transition-property: background-color, color;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}

.inline-keyboard a:hover,
.inline-keyboard a:focus-visible {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.inline-keyboard .inline-keyboard-url {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 24px;
  padding-left: 24px;
}

.inline-keyboard-url .lucide {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 11px;
  height: 11px;
  color: currentColor;
  stroke-width: 2.6;
}

.media-message .manager-meta {
  min-height: 18px;
  margin-top: 0;
  padding: 1px 2px 0;
  font-size: 10px;
  line-height: 1.2;
}

.media-message .manager-avatar {
  width: 16px;
  height: 16px;
  border-width: 1px;
}

.media-image,
.media-video {
  position: relative;
  overflow: hidden;
  height: 74px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 78% 22%, rgb(255 255 255 / 0.88) 0 9px, transparent 10px),
    linear-gradient(145deg, #bfdbfe 0%, #60a5fa 44%, #2563eb 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
}

.media-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgb(15 23 42 / 0.32));
}

.image-sun {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fde68a;
  box-shadow: 0 0 24px rgb(253 230 138 / 0.62);
}

.image-mountain {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 170px;
  height: 88px;
  rotate: 45deg;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f766e, #14532d);
}

.image-mountain-two {
  right: 88px;
  bottom: -30px;
  width: 130px;
  height: 78px;
  background: linear-gradient(145deg, #22c55e, #166534);
}

.media-video {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 26%, rgb(96 165 250 / 0.46), transparent 32%),
    linear-gradient(145deg, #0f172a 0%, #172554 52%, #1d4ed8 100%);
}

.media-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.42;
}

.media-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow:
    0 0 0 6px rgb(255 255 255 / 0.14),
    0 14px 28px rgb(15 23 42 / 0.28);
}

.media-play .lucide {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.media-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgb(2 6 23 / 0.62);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.media-progress {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  z-index: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.28);
}

.media-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.media-video .media-duration {
  bottom: 16px;
}

.document-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--chat-border);
  border-radius: 10px;
  background: var(--chat-bg-soft);
  transition-property: border-color, background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.document-card:hover,
.document-card:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.document-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
}

.document-card strong,
.document-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-card strong {
  color: var(--chat-text);
  font-size: 12px;
  line-height: 1.2;
}

.document-card small {
  margin-top: 4px;
  color: var(--chat-muted);
  font-size: 10px;
  font-weight: 700;
}

.document-card > .lucide {
  justify-self: center;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.audio-player {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 6px 8px;
  border: 1px solid var(--chat-border);
  border-radius: 999px;
  background: var(--chat-bg-soft);
}

.audio-play {
  width: 36px;
  height: 36px;
  box-shadow: 0 10px 20px rgb(0 87 255 / 0.2);
}

.audio-play .lucide {
  width: 18px;
  height: 18px;
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  height: 24px;
}

.audio-wave span {
  width: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 72%, white 10%);
}

.audio-wave span:nth-child(1) { height: 9px; }
.audio-wave span:nth-child(2) { height: 16px; }
.audio-wave span:nth-child(3) { height: 24px; }
.audio-wave span:nth-child(4) { height: 18px; }
.audio-wave span:nth-child(5) { height: 28px; }
.audio-wave span:nth-child(6) { height: 14px; }
.audio-wave span:nth-child(7) { height: 21px; }
.audio-wave span:nth-child(8) { height: 11px; }

.audio-player time {
  justify-self: end;
  color: var(--chat-muted);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quick-list {
  display: grid;
  gap: 8px;
}

.quick-list a {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid rgb(0 87 255 / 0.52);
  border-radius: 9px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  transition-property: transform, background-color, border-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.quick-list a .lucide {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  flex: 0 0 auto;
}

.quick-list.compact {
  gap: 7px;
}

.quick-list.compact a {
  min-height: 36px;
}

.quick-list a:hover,
.quick-list a:focus-visible {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgb(0 87 255 / 0.1);
  transform: translateY(-1px);
}

.quick-list a:active {
  transform: scale(0.96);
}

.privacy {
  padding-bottom: 10px;
  color: #64748b;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
  background: #f8fbff;
}

.privacy a {
  color: var(--blue-dark);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 12px 12px 12px;
  padding: 7px 8px 7px 14px;
  min-height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  color: #64748b;
  box-shadow: 0 6px 14px rgb(15 23 42 / 0.06);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.composer a,
.composer button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  transition-property: transform, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.chat-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--chat-text);
  caret-color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.chat-input::placeholder {
  color: color-mix(in srgb, var(--chat-muted) 78%, transparent);
  opacity: 1;
}

.composer:focus-within {
  border-color: var(--blue);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent),
    0 10px 22px rgb(15 23 42 / 0.08);
}

.composer a[aria-label="Открыть эмодзи"] {
  line-height: 1;
}

.composer a[aria-label="Прикрепить файл"] {
  line-height: 1;
}

.composer .lucide {
  width: 20px;
  height: 20px;
}

.composer button .lucide {
  width: 19px;
  height: 19px;
  margin-left: 2px;
}

.composer a:hover,
.composer a:focus-visible {
  background: #f1f5f9;
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.composer a:active,
.composer button:active,
.telegram-cta:active,
.outline-action:active,
.start-chat:active {
  transform: scale(0.96);
}

.composer span {
  font-size: 12px;
}

.send-action {
  max-width: 0;
  margin-left: -4px;
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  overflow: hidden;
  transition-property: max-width, margin-left, opacity, transform, background-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.composer.has-text .send-action {
  max-width: 40px;
  margin-left: 0;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.composer button {
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(0 87 255 / 0.2);
}

.composer button:hover,
.composer button:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 12px 22px rgb(0 87 255 / 0.28);
  transform: translateY(-1px);
}

.prechat-body {
  flex: 1;
  min-height: 0;
  padding: 22px 18px 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.prechat-intro {
  margin-bottom: 16px;
}

.prechat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.prechat-intro h3 {
  margin: 10px 0 7px;
  font-size: 22px;
  line-height: 1.16;
  text-wrap: balance;
}

.prechat-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}

.prechat-form {
  display: grid;
  gap: 12px;
}

.prechat-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.prechat-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition-property: border-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.prechat-form input:hover,
.prechat-form input:focus {
  outline: 0;
  border-color: rgb(0 87 255 / 0.5);
  box-shadow:
    0 0 0 3px rgb(0 87 255 / 0.1),
    0 7px 16px rgb(15 23 42 / 0.07);
}

.start-chat {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgb(0 87 255 / 0.22);
  transition-property: transform, background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.start-chat:hover,
.start-chat:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 16px 28px rgb(0 87 255 / 0.3);
  transform: translateY(-1px);
}

.conversation-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.conversation-area .message {
  margin-bottom: 0;
}

.user-message {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-color: transparent;
}

.user-message > time {
  color: rgb(255 255 255 / 0.72);
}

.support-message {
  width: 270px;
}

.emoji-shift {
  flex: 0 0 286px;
}

.emoji-panel {
  flex: 1;
  min-height: 0;
  padding: 8px 14px 12px;
  border-top: 1px solid #dbe3ef;
  background: #fff;
}

.emoji-cats {
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

.emoji-cats .lucide {
  width: 17px;
  height: 17px;
}

.emoji-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 8px;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  color: #64748b;
  font-size: 11px;
}

.emoji-search .lucide {
  width: 14px;
  height: 14px;
}

.emoji-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-size: 20px;
}

.emoji-grid span {
  text-align: center;
}

.file-shift {
  padding-bottom: 0;
}

.file-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 16px rgb(15 23 42 / 0.08);
}

.file-thumb {
  width: 48px;
  height: 38px;
  border-radius: 7px;
  border: 1px solid #dbe3ef;
  background:
    linear-gradient(135deg, transparent 54%, rgb(0 87 255 / 0.2) 54%),
    linear-gradient(45deg, #e2e8f0, #ffffff);
}

.file-card strong,
.file-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card strong {
  font-size: 11px;
}

.file-card small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.file-card a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #64748b;
  font-size: 20px;
}

.file-card a .lucide {
  width: 16px;
  height: 16px;
}

.phone,
.phone .widget-screen {
  background: var(--chat-bg);
  color: var(--chat-text);
}

.phone {
  box-shadow: var(--chat-shadow);
}

.phone .hero-panel,
.phone .topbar {
  background: linear-gradient(180deg, var(--chat-hero-start), var(--blue));
}

.page-shell:has(#style-minimal:checked) .phone .topbar {
  color: var(--chat-text);
  background: #fff;
  border-bottom: 1px solid var(--chat-border);
}

.page-shell:has(#style-minimal:checked) .phone .topbar > a:hover,
.page-shell:has(#style-minimal:checked) .phone .topbar > a:focus-visible,
.page-shell:has(#style-minimal:checked) .phone .menu-trigger:hover,
.page-shell:has(#style-minimal:checked) .phone .menu-trigger:focus-visible {
  color: var(--blue-dark);
  background: #f8fafc;
}

.page-shell:has(#style-minimal:checked) .phone .bot-avatar {
  border-color: var(--chat-border);
  background: #f8fafc;
  color: var(--blue);
}

.page-shell:has(#style-dark:checked) .phone .hero-panel,
.page-shell:has(#style-dark:checked) .phone .topbar {
  background: var(--chat-hero-start);
}

.page-shell:has(#style-dark:checked) .phone .round-icon,
.page-shell:has(#style-dark:checked) .phone .composer button,
.page-shell:has(#style-dark:checked) .phone .telegram-cta,
.page-shell:has(#style-dark:checked) .phone .start-chat,
.page-shell:has(#style-dark:checked) .phone .user-message {
  background: var(--blue);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone {
  background:
    radial-gradient(circle at 50% 11%, rgb(14 165 233 / 0.2), transparent 28%),
    linear-gradient(180deg, #020a14 0%, #031326 100%);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .screen-hub {
  background:
    radial-gradient(circle at 50% 4%, rgb(59 130 246 / 0.18), transparent 30%),
    radial-gradient(circle at 18% 65%, rgb(14 165 233 / 0.1), transparent 24%),
    linear-gradient(180deg, #020a14 0%, #031326 100%);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .topbar {
  background:
    radial-gradient(circle at 50% -56%, rgb(14 165 233 / 0.32), transparent 56%),
    radial-gradient(circle at 50% 120%, rgb(59 130 246 / 0.18), transparent 54%),
    linear-gradient(180deg, #07172a 0%, #03101f 100%);
  box-shadow:
    inset 0 -1px 0 rgb(59 130 246 / 0.72),
    inset 0 -14px 26px rgb(59 130 246 / 0.08);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .topbar .bot-avatar {
  border-color: rgb(255 255 255 / 0.18);
  color: #60a5fa;
  background:
    radial-gradient(circle at 35% 24%, rgb(255 255 255 / 0.24), transparent 34%),
    rgb(255 255 255 / 0.08);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 10px 22px rgb(0 0 0 / 0.22);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .topbar strong {
  color: #ffffff;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .topbar small {
  color: #c7d2e4;
  opacity: 1;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .hero-panel {
  min-height: 162px;
  padding: 24px 18px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgb(14 165 233 / 0.26), transparent 44%),
    radial-gradient(circle at 50% 110%, rgb(59 130 246 / 0.24), transparent 46%),
    linear-gradient(180deg, #07172a 0%, #03101f 100%);
  box-shadow:
    inset 0 -1px 0 rgb(59 130 246 / 0.78),
    inset 0 -18px 34px rgb(59 130 246 / 0.08);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .collapse-button {
  top: 14px;
  right: 14px;
  background: rgb(255 255 255 / 0.08);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 12px 26px rgb(0 0 0 / 0.28);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .avatars {
  margin-bottom: 12px;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .avatar {
  width: 46px;
  height: 46px;
  margin-left: -8px;
  border-width: 4px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 12px 22px rgb(0 0 0 / 0.24);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .hero-panel h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgb(255 255 255 / 0.1);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .verified {
  width: 18px;
  height: 18px;
  color: #ffffff;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  box-shadow:
    0 0 0 2px rgb(59 130 246 / 0.18),
    0 8px 20px rgb(37 99 235 / 0.3);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .online-line {
  gap: 8px;
  color: #c7d2e4;
  font-size: 13px;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .online-line span {
  width: 10px;
  height: 10px;
  box-shadow:
    0 0 0 6px rgb(126 234 49 / 0.12),
    0 0 18px rgb(126 234 49 / 0.46);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .hero-panel strong {
  margin-top: 8px;
  color: #c7d2e4;
  font-size: 13px;
  font-weight: 650;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .channel-row {
  position: relative;
  gap: 0;
  margin: 14px 24px 12px;
  padding: 16px;
  border: 1px solid rgb(148 163 184 / 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgb(59 130 246 / 0.1), transparent 58%),
    rgb(255 255 255 / 0.035);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 18px 34px rgb(0 0 0 / 0.2);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .channel-row::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgb(148 163 184 / 0.2), transparent);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .channel-button {
  gap: 10px;
  min-height: 82px;
  color: #ffffff;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .round-icon {
  width: 52px;
  height: 52px;
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.22), transparent 30%),
    linear-gradient(145deg, #1d4ed8, #0b3da8);
  box-shadow:
    inset 0 0 0 1px rgb(96 165 250 / 0.36),
    0 0 0 7px rgb(37 99 235 / 0.12),
    0 16px 30px rgb(37 99 235 / 0.26);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .round-icon .lucide {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .channel-button small {
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .info-card,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .empty-card {
  margin-right: 24px;
  margin-left: 24px;
  padding: 16px;
  border-color: rgb(148 163 184 / 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgb(59 130 246 / 0.08), transparent 58%),
    rgb(255 255 255 / 0.035);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 18px 34px rgb(0 0 0 / 0.16);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .info-card:hover,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .empty-card:hover {
  background:
    radial-gradient(circle at 50% 0%, rgb(59 130 246 / 0.12), transparent 58%),
    rgb(255 255 255 / 0.055);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .card-heading {
  color: #60a5fa;
  font-size: 14px;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .card-heading .lucide {
  width: 18px;
  height: 18px;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .info-card p {
  margin-top: 10px;
  color: #c7d2e4;
  font-size: 13px;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .outline-action {
  min-height: 40px;
  border-color: #3b82f6;
  color: #60a5fa;
  background: rgb(2 10 20 / 0.24);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgb(96 165 250 / 0.12);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .empty-card {
  display: grid;
  justify-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .empty-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-color: rgb(148 163 184 / 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.1), transparent 58%),
    rgb(255 255 255 / 0.04);
  color: #93c5fd;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 14px 28px rgb(0 0 0 / 0.18);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .empty-card strong {
  color: #ffffff;
  font-size: 16px;
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .empty-card p {
  color: #9fb0c7;
  font-size: 12px;
}

.phone .channel-row,
.phone .message,
.phone .composer,
.phone .emoji-panel,
.phone .file-card,
.phone .prechat-form input {
  background: var(--chat-surface);
  color: var(--chat-text);
  border-color: var(--chat-border);
}

.phone .chat-area,
.phone .prechat-body {
  background: linear-gradient(180deg, var(--chat-bg), var(--chat-bg-soft));
}

.phone .privacy {
  background: var(--chat-bg-soft);
  color: var(--chat-muted);
}

.phone .info-card,
.phone .empty-card,
.phone .quick-list a {
  background: var(--chat-panel);
  border-color: var(--chat-border);
}

.phone .empty-card {
  background: linear-gradient(180deg, var(--chat-panel), var(--chat-panel-2));
}

.phone .info-card:hover,
.phone .empty-card:hover {
  background: var(--chat-surface);
}

.phone .info-card p,
.phone .empty-card p,
.phone .qr-card p,
.phone .qr-card small,
.phone .secure-note,
.phone .message time,
.phone .manager-meta,
.phone .prechat-intro p,
.phone .emoji-cats,
.phone .emoji-search,
.phone .file-card small {
  color: var(--chat-muted);
}

.phone .outline-action,
.phone .quick-list a {
  color: var(--blue-dark);
}

.page-shell:has(#style-dark:checked) .phone .outline-action,
.page-shell:has(#style-dark:checked) .phone .quick-list a,
.page-shell:has(#style-neon:checked) .phone .outline-action,
.page-shell:has(#style-neon:checked) .phone .quick-list a,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .outline-action,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .quick-list a {
  color: #f8fafc;
  border-color: color-mix(in srgb, var(--blue) 62%, white 10%);
}

.page-shell:has(#style-dark:checked) .phone .outline-action:hover,
.page-shell:has(#style-dark:checked) .phone .quick-list a:hover,
.page-shell:has(#style-neon:checked) .phone .outline-action:hover,
.page-shell:has(#style-neon:checked) .phone .quick-list a:hover,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .outline-action:hover,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .quick-list a:hover {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .outline-action {
  border-color: #3b82f6;
  color: #60a5fa;
  background: rgb(2 10 20 / 0.24);
  box-shadow: inset 0 0 0 1px rgb(96 165 250 / 0.12);
}

.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .outline-action:hover,
.page-shell:has(#style-classic:checked):has(#classic-dark:checked) .phone .outline-action:focus-visible {
  color: #93c5fd;
  background: rgb(59 130 246 / 0.14);
}

.phone .qr-card {
  background: var(--chat-panel-2);
}

.phone .prechat-form label,
.phone .prechat-intro h3,
.phone .empty-card strong,
.phone .emoji-panel strong,
.phone .file-card strong {
  color: var(--chat-text);
}

.page-shell:has(#style-neon:checked) .phone {
  border-color: rgb(0 200 255 / 0.44);
  background:
    radial-gradient(circle at 50% 10%, rgb(0 200 255 / 0.12), transparent 36%),
    radial-gradient(circle at 100% 20%, rgb(240 43 210 / 0.08), transparent 30%),
    linear-gradient(180deg, #020916 0%, #061428 100%);
  box-shadow:
    0 32px 78px rgb(2 9 22 / 0.6),
    0 0 0 1px rgb(0 200 255 / 0.16),
    0 0 36px rgb(0 200 255 / 0.16);
}

.page-shell:has(#style-neon:checked) .phone .widget-screen {
  background:
    radial-gradient(circle at 50% 8%, rgb(0 200 255 / 0.1), transparent 34%),
    radial-gradient(circle at 96% 38%, rgb(240 43 210 / 0.08), transparent 28%),
    linear-gradient(180deg, #020916 0%, #061428 100%);
}

.page-shell:has(#style-neon:checked) .phone .hero-panel,
.page-shell:has(#style-neon:checked) .phone .topbar {
  background: var(--neon-header);
  border-bottom: 1px solid rgb(0 200 255 / 0.38);
  box-shadow:
    inset 0 -1px 0 rgb(240 43 210 / 0.22),
    0 12px 28px rgb(0 0 0 / 0.22);
}

.page-shell:has(#style-neon:checked) .phone .hero-panel {
  box-shadow:
    inset 0 -1px 0 rgb(0 200 255 / 0.42),
    0 16px 34px rgb(0 0 0 / 0.22);
}

.page-shell:has(#style-neon:checked) .phone .topbar > a,
.page-shell:has(#style-neon:checked) .phone .menu-trigger,
.page-shell:has(#style-neon:checked) .phone .collapse-button {
  color: #ecfeff;
  background: rgb(255 255 255 / 0.06);
  box-shadow:
    inset 0 0 0 1px rgb(0 200 255 / 0.18),
    0 0 18px rgb(0 200 255 / 0.1);
}

.page-shell:has(#style-neon:checked) .phone .topbar > a:hover,
.page-shell:has(#style-neon:checked) .phone .topbar > a:focus-visible,
.page-shell:has(#style-neon:checked) .phone .menu-trigger:hover,
.page-shell:has(#style-neon:checked) .phone .menu-trigger:focus-visible,
.page-shell:has(#style-neon:checked) .phone .collapse-button:hover,
.page-shell:has(#style-neon:checked) .phone .collapse-button:focus-visible {
  color: #ffffff;
  background: rgb(0 200 255 / 0.13);
  box-shadow:
    inset 0 0 0 1px rgb(0 200 255 / 0.46),
    0 0 20px rgb(0 200 255 / 0.22);
}

.page-shell:has(#style-neon:checked) .phone .verified {
  color: #ffffff;
  background: linear-gradient(145deg, #00c8ff 0%, #0877ff 52%, #f02bd2 100%);
  box-shadow: 0 0 18px rgb(0 200 255 / 0.36);
}

.page-shell:has(#style-neon:checked) .phone .avatar {
  border-color: #07182c;
  box-shadow:
    0 0 0 2px rgb(0 200 255 / 0.66),
    0 0 18px rgb(240 43 210 / 0.34);
}

.page-shell:has(#style-neon:checked) .phone .avatar:nth-child(2n) {
  box-shadow:
    0 0 0 2px rgb(124 60 255 / 0.64),
    0 0 18px rgb(0 200 255 / 0.32);
}

.page-shell:has(#style-neon:checked) .phone .online-line span {
  background: #36e833;
  box-shadow:
    0 0 0 5px rgb(54 232 51 / 0.12),
    0 0 16px rgb(54 232 51 / 0.54);
}

.page-shell:has(#style-neon:checked) .phone .channel-row,
.page-shell:has(#style-neon:checked) .phone .info-card,
.page-shell:has(#style-neon:checked) .phone .empty-card,
.page-shell:has(#style-neon:checked) .phone .message,
.page-shell:has(#style-neon:checked) .phone .emoji-panel,
.page-shell:has(#style-neon:checked) .phone .file-card,
.page-shell:has(#style-neon:checked) .phone .prechat-form input,
.page-shell:has(#style-neon:checked) .phone .composer {
  border-color: rgb(0 200 255 / 0.34);
  background: rgb(7 22 42 / 0.9);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.03),
    0 0 18px rgb(0 200 255 / 0.08);
}

.page-shell:has(#style-neon:checked) .phone .info-card:hover,
.page-shell:has(#style-neon:checked) .phone .empty-card:hover,
.page-shell:has(#style-neon:checked) .phone .message:hover {
  border-color: rgb(0 200 255 / 0.58);
  background: rgb(9 30 55 / 0.94);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.04),
    0 0 24px rgb(0 200 255 / 0.16);
}

.page-shell:has(#style-neon:checked) .phone .round-icon,
.page-shell:has(#style-neon:checked) .phone .telegram-cta,
.page-shell:has(#style-neon:checked) .phone .start-chat,
.page-shell:has(#style-neon:checked) .phone .composer button,
.page-shell:has(#style-neon:checked) .phone .user-message,
.page-shell:has(#style-neon:checked) .phone .media-play,
.page-shell:has(#style-neon:checked) .phone .document-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #00c8ff 0%, #0877ff 48%, #f02bd2 100%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.15) inset,
    0 0 22px rgb(0 200 255 / 0.32),
    0 0 18px rgb(240 43 210 / 0.18);
}

.page-shell:has(#style-neon:checked) .phone .telegram-cta:hover,
.page-shell:has(#style-neon:checked) .phone .telegram-cta:focus-visible,
.page-shell:has(#style-neon:checked) .phone .start-chat:hover,
.page-shell:has(#style-neon:checked) .phone .start-chat:focus-visible,
.page-shell:has(#style-neon:checked) .phone .composer button:hover,
.page-shell:has(#style-neon:checked) .phone .composer button:focus-visible {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.2) inset,
    0 0 30px rgb(0 200 255 / 0.44),
    0 0 24px rgb(240 43 210 / 0.26);
}

.page-shell:has(#style-neon:checked) .phone .outline-action,
.page-shell:has(#style-neon:checked) .phone .quick-list a,
.page-shell:has(#style-neon:checked) .phone .inline-keyboard a {
  border-color: rgb(0 200 255 / 0.58);
  color: #00c8ff;
  background: rgb(2 9 22 / 0.2);
  box-shadow: inset 0 0 0 1px rgb(0 200 255 / 0.08);
}

.page-shell:has(#style-neon:checked) .phone .outline-action:hover,
.page-shell:has(#style-neon:checked) .phone .outline-action:focus-visible {
  border-color: #00c8ff;
  color: #ffffff;
  background: rgb(0 200 255 / 0.13);
  box-shadow:
    inset 0 0 0 1px rgb(0 200 255 / 0.18),
    0 0 20px rgb(0 200 255 / 0.2);
}

.page-shell:has(#style-neon:checked) .phone .quick-list a:hover,
.page-shell:has(#style-neon:checked) .phone .quick-list a:focus-visible,
.page-shell:has(#style-neon:checked) .phone .inline-keyboard a:hover,
.page-shell:has(#style-neon:checked) .phone .inline-keyboard a:focus-visible {
  border-color: #f02bd2;
  color: #ffffff;
  background: linear-gradient(135deg, #00c8ff 0%, #0877ff 48%, #f02bd2 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 0 20px rgb(240 43 210 / 0.18);
}

.page-shell:has(#style-neon:checked) .phone .card-heading,
.page-shell:has(#style-neon:checked) .phone .quick-list a .lucide,
.page-shell:has(#style-neon:checked) .phone .composer a,
.page-shell:has(#style-neon:checked) .phone .document-card > .lucide,
.page-shell:has(#style-neon:checked) .phone .audio-wave {
  color: #00c8ff;
}

.page-shell:has(#style-neon:checked) .phone .quick-list a::after {
  color: #f02bd2;
}

.page-shell:has(#style-neon:checked) .phone .composer:focus-within,
.page-shell:has(#style-neon:checked) .phone .prechat-form input:focus {
  border-color: #00c8ff;
  box-shadow:
    0 0 0 3px rgb(0 200 255 / 0.16),
    0 0 20px rgb(0 200 255 / 0.18);
}

.page-shell:has(#style-neon:checked) .phone .qr-card {
  position: relative;
  padding: 20px 18px;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(var(--chat-panel), var(--chat-panel)) padding-box,
    linear-gradient(135deg, #00c8ff 0%, #0877ff 48%, #f02bd2 100%) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 0 0 1px rgb(0 200 255 / 0.08) inset,
    0 0 22px rgb(0 200 255 / 0.18),
    0 0 20px rgb(240 43 210 / 0.12);
}

.page-shell:has(#style-neon:checked) .phone .qr-card .qr {
  overflow: hidden;
  border: 8px solid rgb(236 254 255 / 0.92);
  border-radius: 16px;
  box-shadow:
    0 0 0 3px rgb(0 200 255 / 0.2),
    0 0 18px rgb(240 43 210 / 0.16);
}

.principles {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.8);
}

.principles h2 {
  margin: 0;
  font-size: 18px;
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.principle span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 19px;
}

.principle span .lucide {
  width: 20px;
  height: 20px;
}

.principle strong {
  font-size: 13px;
}

.principle small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

#hub:target ~ .page-shell .screen-hub,
#telegram:target ~ .page-shell .screen-telegram,
#prechat:target ~ .page-shell .screen-prechat,
#messages:target ~ .page-shell .screen-messages,
#topics:target ~ .page-shell .screen-topics,
#typing:target ~ .page-shell .screen-typing,
#emoji:target ~ .page-shell .screen-emoji,
#file:target ~ .page-shell .screen-file,
#media:target ~ .page-shell .screen-media,
#hub:target ~ .phone .screen-hub,
#telegram:target ~ .phone .screen-telegram,
#prechat:target ~ .phone .screen-prechat,
#messages:target ~ .phone .screen-messages,
#topics:target ~ .phone .screen-topics,
#typing:target ~ .phone .screen-typing,
#emoji:target ~ .phone .screen-emoji,
#file:target ~ .phone .screen-file,
#media:target ~ .phone .screen-media {
  display: flex;
}

#telegram:target ~ .page-shell .screen-hub,
#prechat:target ~ .page-shell .screen-hub,
#messages:target ~ .page-shell .screen-hub,
#topics:target ~ .page-shell .screen-hub,
#typing:target ~ .page-shell .screen-hub,
#emoji:target ~ .page-shell .screen-hub,
#file:target ~ .page-shell .screen-hub,
#media:target ~ .page-shell .screen-hub,
#telegram:target ~ .phone .screen-hub,
#prechat:target ~ .phone .screen-hub,
#messages:target ~ .phone .screen-hub,
#topics:target ~ .phone .screen-hub,
#typing:target ~ .phone .screen-hub,
#emoji:target ~ .phone .screen-hub,
#file:target ~ .phone .screen-hub,
#media:target ~ .phone .screen-hub {
  display: none;
}

#telegram:target ~ .page-shell .hub-copy,
#prechat:target ~ .page-shell .hub-copy,
#messages:target ~ .page-shell .hub-copy,
#topics:target ~ .page-shell .hub-copy,
#typing:target ~ .page-shell .hub-copy,
#emoji:target ~ .page-shell .hub-copy,
#file:target ~ .page-shell .hub-copy,
#media:target ~ .page-shell .hub-copy {
  display: none;
}

#telegram:target ~ .page-shell .telegram-copy,
#prechat:target ~ .page-shell .prechat-copy,
#messages:target ~ .page-shell .messages-copy,
#topics:target ~ .page-shell .topics-copy,
#typing:target ~ .page-shell .typing-copy,
#emoji:target ~ .page-shell .emoji-copy,
#file:target ~ .page-shell .file-copy,
#media:target ~ .page-shell .media-copy {
  display: inline-flex;
}

#hub:target ~ .page-shell .hub-tab,
#telegram:target ~ .page-shell .telegram-tab,
#prechat:target ~ .page-shell .prechat-tab,
#messages:target ~ .page-shell .messages-tab,
#topics:target ~ .page-shell .topics-tab,
#typing:target ~ .page-shell .typing-tab,
#emoji:target ~ .page-shell .emoji-tab,
#file:target ~ .page-shell .file-tab,
#media:target ~ .page-shell .media-tab {
  border-color: rgb(0 87 255 / 0.46);
  background: var(--blue);
  color: #fff;
}

#hub:target ~ .page-shell .hub-tab span,
#telegram:target ~ .page-shell .telegram-tab span,
#prechat:target ~ .page-shell .prechat-tab span,
#messages:target ~ .page-shell .messages-tab span,
#topics:target ~ .page-shell .topics-tab span,
#typing:target ~ .page-shell .typing-tab span,
#emoji:target ~ .page-shell .emoji-tab span,
#file:target ~ .page-shell .file-tab span,
#media:target ~ .page-shell .media-tab span {
  background: #fff;
  color: var(--blue);
}

#collapsed:target ~ .page-shell .phone {
  opacity: 0;
  transform: scale(0.86);
  filter: blur(5px);
  pointer-events: none;
}

#collapsed:target ~ .page-shell .widget-launcher {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
  animation: launcherBounce 1400ms cubic-bezier(0.2, 0, 0, 1) infinite;
}

#collapsed:target ~ .page-shell .widget-launcher::before,
#collapsed:target ~ .page-shell .widget-launcher::after {
  animation: launcherRipple 1800ms cubic-bezier(0.2, 0, 0, 1) infinite;
}

#collapsed:target ~ .page-shell .widget-launcher::after {
  animation-delay: 780ms;
}

#hub:target ~ .page-shell .phone {
  animation: phoneZoomIn 260ms cubic-bezier(0.2, 0, 0, 1);
}

body:not(:has(:target)) .hub-tab {
  border-color: rgb(0 87 255 / 0.46);
  background: var(--blue);
  color: #fff;
}

body:not(:has(:target)) .hub-tab span {
  background: #fff;
  color: var(--blue);
}

@media (max-width: 900px) {
  .concept-header {
    grid-template-columns: 1fr;
  }

  .header-note {
    min-width: 0;
  }

  .interactive-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 22px;
  }

  .widget-launcher {
    top: calc(50% + 104px);
    right: 50%;
    transform: translate(50%, -50%) scale(0.72);
  }

  .widget-launcher:hover,
  .widget-launcher:focus-visible {
    transform: translate(50%, -50%) scale(1.04);
  }

  .widget-launcher:active {
    transform: translate(50%, -50%) scale(0.96);
  }

  #collapsed:target ~ .page-shell .widget-launcher {
    transform: translate(50%, -50%) scale(1);
  }

  @keyframes launcherBounce {
    0%, 100% {
      transform: translate(50%, -50%) scale(1);
    }
    45% {
      transform: translate(50%, calc(-50% - 8px)) scale(1.05);
    }
    70% {
      transform: translate(50%, -50%) scale(0.98);
    }
  }

  .screen-copy {
    max-width: none;
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 420px);
    padding-top: 14px;
  }

  h1,
  .screen-copy h2 {
    font-size: 27px;
  }

  .concept-header {
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .header-note {
    padding: 12px;
  }

  .interactive-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .phone {
    height: 632px;
    border-radius: 24px;
  }

  .principles {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

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

  .topbar-status span:first-child {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .topbar-status span:last-child {
    display: none;
  }

  #collapsed:target ~ .page-shell .widget-launcher,
  #collapsed:target ~ .page-shell .widget-launcher::before,
  #collapsed:target ~ .page-shell .widget-launcher::after,
  #hub:target ~ .page-shell .phone {
    animation: none;
  }
}
