/* =================================================================
   TRTC Conversational AI Demo — hi-fi component styles
   Built on tokens.css (Tencent Cloud / TDesign foundations).
   ================================================================= */

html, body {
  background: var(--bg);
  color: var(--fg1);
}

body {
  font-feature-settings: "tnum"0, "kern"1;
  min-height: 100vh;
}

/* honor the hidden attribute even on flex/grid elements */
[hidden] {
  display: none !important;
}

button,
input {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

button::-webkit-search-decoration,
button::-webkit-search-cancel-button,
input::-webkit-search-decoration,
input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg1);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  margin-left: var(--sp-4);
}

.nav-links a {
  color: var(--fg2);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard);
}

.nav-links a:hover {
  color: var(--fg1);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--brand-blue);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px 2px 0 0;
}

.nav-cta {
  margin-left: auto;
  display: flex;
  gap: var(--sp-2);
}


/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-standard);
  color: var(--fg1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 110, 255, .25);
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px var(--accent-shadow);
}

.btn-primary:active {
  background: var(--accent-press);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg1);
}

.btn-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-white {
  background: #fff;
  color: var(--brand-blue);
}

.btn-white:hover {
  background: #fff;
  box-shadow: var(--shadow-3);
  color: var(--brand-blue-600);
}

.btn-onDark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.btn-onDark:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
}

.btn-lg {
  font-size: 15px;
  padding: 12px 22px;
}

.btn-pill {
  border-radius: var(--r-pill);
}

.btn-ico {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-send {
  padding: 7px 14px 7px 16px;
  font-size: 13px;
}


/* =================================================================
   ICON BUTTONS
   ================================================================= */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg2);
  transition: all var(--dur-fast) var(--ease-standard);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}


/* =================================================================
   PILLS / TAGS
   ================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-muted);
  color: var(--fg2);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pill.accent {
  background: var(--brand-blue-100);
  color: var(--brand-blue);
  border-color: var(--brand-blue-200);
}

.pill.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: -.01em;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-blue-100);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 600;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 3px 24px 3px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230D2137' fill-opacity='.45'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}

.lang-select:hover {
  border-color: var(--brand-blue);
}

.lang-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(13, 33, 55, .1);
}


/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: var(--sp-20) 0 var(--sp-16);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 200, 255, .18) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(64, 150, 255, .18) 0%, transparent 45%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--brand-blue-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-4);
}

.hero .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand-blue-400);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 var(--sp-5);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #4096FF 0%, #00C8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
  max-width: 620px;
  margin: 0 0 var(--sp-10);
}

.hero-stats {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  font-feature-settings: "tnum";
  letter-spacing: -.02em;
}

.hero-stat .num .unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue-400);
  margin-left: 2px;
}

.hero-stat .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}


/* =================================================================
   DEMO SECTION CHROME
   ================================================================= */
.demo-section {
  background: var(--bg);
  padding: var(--sp-8) 0;
}

/* =================================================================
   MAIN HERO — public-facing pitch above the launcher
   ================================================================= */
.main-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-blue) 6%, var(--surface)) 0%, var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-8);
  margin-bottom: var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.main-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, color-mix(in srgb, var(--brand-blue) 55%, #fff) 100%);
}

.main-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--sp-3);
}

.main-hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.main-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--fg1);
  margin: 0 0 var(--sp-3);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.main-hero-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg2);
  margin: 0 0 var(--sp-5);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.main-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5);
  font-size: 13.5px;
  color: var(--fg2);
}

.main-hero-stat strong {
  color: var(--fg1);
  font-weight: 700;
  margin-right: 4px;
}

.main-hero-link {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

.main-hero-link:hover {
  text-decoration: underline;
}

.main-hero-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-3);
}

.main-hero-lang-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg3);
}

.lang-select-lg {
  font-size: 14px;
  padding: 6px 30px 6px 14px;
  background-size: 10px 6px;
  background-position: right 10px center;
}

@media (max-width: 760px) {
  .main-hero {
    padding: var(--sp-7) var(--sp-5);
  }

  .main-hero-stats {
    gap: var(--sp-3);
    font-size: 12.5px;
  }
}

/* =================================================================
   LAUNCHER VIEW
   ================================================================= */
.launcher-head {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.launcher-head .eyebrow {
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--brand-blue);
  display: block;
  margin-bottom: var(--sp-3);
}

.launcher-head h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--fg1);
  margin: 0 0 var(--sp-3);
  line-height: 1.1;
}

.launcher-head p {
  font-size: 16px;
  color: var(--fg2);
  margin: 0;
}

.launcher-step {
  margin-bottom: 0;
}

/* Side-by-side split: agents on the left, mode + start on the right */
.launcher-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.step-mode {
  position: sticky;
  top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}

.step-mode .step-head {
  margin-bottom: 0;
}

.step-mode .launcher-modes {
  flex-direction: column;
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.step-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg1);
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.step-head p {
  font-size: 14px;
  color: var(--fg3);
  margin: 0;
}

/* Agent cards (launcher) */
.launcher-agents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.launcher-agent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all var(--dur-base) var(--ease-standard);
  position: relative;
}

.launcher-agent:hover {
  border-color: var(--brand-blue-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.launcher-agent.on {
  border-color: var(--brand-blue);
  background: var(--brand-blue-50);
  box-shadow: 0 0 0 1px var(--brand-blue) inset, var(--shadow-2);
}

.launcher-agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.launcher-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.launcher-agent-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-emphasized);
}

.launcher-agent-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launcher-agent.on .launcher-agent-check {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.launcher-agent-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg1);
  margin: 0;
  line-height: 1.2;
}

.launcher-agent-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-blue);
  margin: 2px 0 0;
}

.launcher-agent-desc {
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.launcher-agent-channels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
}

.launcher-agent-channels .pill {
  font-size: 10.5px;
  padding: 2px 8px;
}

/* Industry / use-case tags on agent cards */
.launcher-agent-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 2px 0 0;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: nowrap;
}

.agent-tag-scenario {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg2);
}

.agent-tag-scenario.scenario-customer_service {
  background: rgba(124, 58, 237, 0.10);
  color: #6d28d9;
}

.agent-tag-scenario.scenario-medical {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

.agent-tag-scenario.scenario-education {
  background: rgba(202, 138, 4, 0.12);
  color: #a16207;
}

.agent-tag-scenario.scenario-retail {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
}

.agent-tag-scenario.scenario-banking {
  background: rgba(13, 148, 136, 0.10);
  color: #0f766e;
}

.agent-tag-scenario.scenario-other {
  background: rgba(75, 85, 99, 0.08);
  color: #4b5563;
}

.agent-tag-usecase {
  background: transparent;
  color: var(--fg3);
  border: 1px solid var(--border);
}

/* Mode cards (launcher) — stacked vertical in right column */
.launcher-modes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mode-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: all var(--dur-base) var(--ease-standard);
  position: relative;
}

.mode-card:hover {
  border-color: var(--brand-blue-200);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.mode-card[aria-selected="true"] {
  border-color: var(--brand-blue);
  background: var(--brand-blue-50);
  box-shadow: 0 0 0 1px var(--brand-blue) inset, var(--shadow-2);
}

.mode-card[aria-selected="true"] .mode-card-ico {
  background: var(--brand-blue);
  color: #fff;
}

.mode-card-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--brand-blue-100);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease-standard);
}

.mode-card-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg1);
  letter-spacing: -.01em;
}

.mode-card-sub {
  font-size: 13px;
  color: var(--fg3);
}

.mode-card-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-emphasized);
}

.mode-card-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-card[aria-selected="true"] .mode-card-check {
  opacity: 1;
  transform: scale(1);
}

/* Language chips */
.lang-chip {
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--fg2);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-standard);
}

.lang-chip:hover {
  border-color: var(--brand-blue-200);
}

.lang-chip.on {
  border-color: var(--brand-blue);
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  font-weight: 600;
}

/* CTA at the bottom of the right column */
.launcher-cta {
  border-top: 1px solid var(--divider);
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.launcher-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 13.5px;
  color: var(--fg2);
  min-width: 0;
}

.launcher-summary .chip-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.launcher-summary strong {
  color: var(--fg1);
  font-weight: 700;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
}

/* =================================================================
   DEMO VIEW (immersive)
   ================================================================= */
.demo-topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.demo-back {
  font-size: 13px;
  padding: 7px 12px;
  gap: 6px;
}

.demo-back .btn-ico {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.topbar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.topbar-identity .chip-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.topbar-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
}

.topbar-meta span {
  font-size: 11.5px;
  color: var(--fg3);
}

.topbar-mode-switch {
  display: inline-flex;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2px;
  gap: 2px;
}

.tab-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--fg2);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}


.tab-mini[aria-selected="true"] {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-1);
}

/* Agent picker — top of page, no negative margin */
.agent-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 2;
}

.agent-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.agent-bar-head .eyebrow {
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--brand-blue);
}

.agent-bar-hint {
  font-size: 13px;
  color: var(--fg3);
}

.agent-chips {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--sp-2);
}

.agent-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all var(--dur-fast) var(--ease-standard);
  font-family: var(--font-sans);
  min-width: 0;
}

.agent-chip:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-50);
}

.agent-chip.on {
  border-color: var(--brand-blue);
  background: var(--brand-blue-100);
  box-shadow: 0 0 0 1px var(--brand-blue) inset;
}

.chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
}

.chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg1);
  white-space: nowrap;
}

.chip-role {
  font-size: 11px;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-chip.on .chip-name {
  color: var(--brand-blue);
}


/* Mode tabs */
.mode-tabs {
  margin-bottom: var(--sp-6);
}

.mode-tabs-head {
  margin-bottom: var(--sp-3);
}

.mode-tabs-head .eyebrow {
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--brand-blue);
}

.tab-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.tab {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: all var(--dur-base) var(--ease-standard);
  position: relative;
}

.tab:hover {
  border-color: var(--brand-blue-200);
  background: var(--brand-blue-50);
  transform: translateY(-1px);
}

.tab[aria-selected="true"] {
  border-color: var(--brand-blue);
  background: var(--brand-blue-50);
  box-shadow: 0 0 0 1px var(--brand-blue) inset, var(--shadow-2);
}

.tab[aria-selected="true"] .tab-ico {
  background: var(--brand-blue);
  color: #fff;
}

.tab-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-blue-100);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease-standard);
}

.tab-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg1);
  margin-bottom: 2px;
}

.tab-sub {
  display: block;
  font-size: 13px;
  color: var(--fg3);
}


/* =================================================================
   DEMO PANELS / GRIDS / CARDS
   ================================================================= */
.panel {
  display: none;
}

.panel[aria-current="true"] {
  display: block;
  animation: panelFade var(--dur-slow) var(--ease-emphasized);
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--sp-5);
  align-items: start;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--divider);
  gap: var(--sp-3);
}

.card-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg1);
}

.card-sub {
  font-size: 12px;
  color: var(--fg3);
}


/* =================================================================
   PHONE CARD (dark, cinematic) — Voice tab left
   ================================================================= */
.phone-card {
  background: var(--brand-navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .06);
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(0, 200, 255, .18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 110, 255, .22) 0%, transparent 55%);
  pointer-events: none;
}

.phone-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  opacity: .6;
  pointer-events: none;
}

.phone-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.phone-head-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  font-size: 11.5px;
  font-weight: 600;
  width: max-content;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg4);
}

.status-pill.live {
  background: rgba(227, 77, 89, .18);
  color: #FF8A93;
  border-color: rgba(227, 77, 89, .3);
}

.status-pill.live .dot {
  background: #E34D59;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.phone-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .02em;
}

.phone-timer {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  font-feature-settings: "tnum";
}

.phone-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-10) var(--sp-6) var(--sp-8);
  text-align: center;
}

.phone-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.phone-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 2;
  letter-spacing: -.02em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.phone-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(64, 150, 255, .4);
  opacity: 0;
}

.phone-card[data-active="true"] .phone-ring {
  animation: ring 1.8s ease-out infinite;
}

@keyframes ring {
  0% {
    opacity: .6;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.phone-name {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}

.phone-role {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 var(--sp-5);
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  margin-bottom: var(--sp-6);
  width: 100%;
  max-width: 280px;
}

.waveform span {
  width: 3px;
  background: linear-gradient(180deg, #4096FF, #00C8FF);
  border-radius: 2px;
  height: 6px;
  transition: background var(--dur-base);
}

.waveform[data-active="true"] span {
  animation: wave 1.2s ease-in-out infinite;
}

.waveform[data-active="false"] span {
  background: rgba(255, 255, 255, .15);
}

.waveform span:nth-child(1) {
  animation-delay: 0.00s;
}

.waveform span:nth-child(2) {
  animation-delay: 0.05s;
}

.waveform span:nth-child(3) {
  animation-delay: 0.10s;
}

.waveform span:nth-child(4) {
  animation-delay: 0.15s;
}

.waveform span:nth-child(5) {
  animation-delay: 0.20s;
}

.waveform span:nth-child(6) {
  animation-delay: 0.25s;
}

.waveform span:nth-child(7) {
  animation-delay: 0.30s;
}

.waveform span:nth-child(8) {
  animation-delay: 0.35s;
}

.waveform span:nth-child(9) {
  animation-delay: 0.40s;
}

.waveform span:nth-child(10) {
  animation-delay: 0.45s;
}

.waveform span:nth-child(11) {
  animation-delay: 0.50s;
}

.waveform span:nth-child(12) {
  animation-delay: 0.55s;
}

.waveform span:nth-child(13) {
  animation-delay: 0.60s;
}

.waveform span:nth-child(14) {
  animation-delay: 0.65s;
}

.waveform span:nth-child(15) {
  animation-delay: 0.70s;
}

.waveform span:nth-child(16) {
  animation-delay: 0.75s;
}

.waveform span:nth-child(17) {
  animation-delay: 0.80s;
}

.waveform span:nth-child(18) {
  animation-delay: 0.85s;
}

.waveform span:nth-child(19) {
  animation-delay: 0.90s;
}

.waveform span:nth-child(20) {
  animation-delay: 0.95s;
}

@keyframes wave {
  0%, 100% {
    height: 6px;
  }

  50% {
    height: 44px;
  }
}

.phone-controls {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.phone-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-standard);
}

.phone-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}

.phone-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.phone-btn.primary-call {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  width: 64px;
  height: 64px;
  box-shadow: 0 8px 24px var(--accent-shadow);
}

.phone-btn.primary-call:hover {
  background: var(--accent-hover);
}

.phone-btn.primary-call svg {
  width: 26px;
  height: 26px;
}

.phone-btn.hangup {
  background: #E34D59;
  border-color: #E34D59;
  color: #fff;
  box-shadow: 0 8px 24px rgba(227, 77, 89, .45);
}

.phone-btn.hangup:hover {
  background: #c8434e;
}

.phone-btn.hangup svg {
  transform: rotate(135deg);
  width: 26px;
  height: 26px;
}

.phone-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  max-width: 32ch;
  margin: 0;
  line-height: 1.5;
}


/* =================================================================
   AVATAR (general)
   ================================================================= */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.avatar-md {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 36px;
}

/* per-agent gradient palette */
.avatar[data-grad="0"], .chip-avatar[data-grad="0"], .launcher-agent-avatar[data-grad="0"] {
  background: var(--grad-product-call);
}

.avatar[data-grad="1"], .chip-avatar[data-grad="1"], .launcher-agent-avatar[data-grad="1"] {
  background: var(--grad-product-chat);
}

.avatar[data-grad="2"], .chip-avatar[data-grad="2"], .launcher-agent-avatar[data-grad="2"] {
  background: var(--grad-product-tccc);
}

.avatar[data-grad="3"], .chip-avatar[data-grad="3"], .launcher-agent-avatar[data-grad="3"] {
  background: var(--grad-cloud);
}

.avatar[data-grad="4"], .chip-avatar[data-grad="4"], .launcher-agent-avatar[data-grad="4"] {
  background: linear-gradient(135deg, #4096FF 0%, #29CCCC 100%);
}

.avatar[data-grad="5"], .chip-avatar[data-grad="5"], .launcher-agent-avatar[data-grad="5"] {
  background: linear-gradient(135deg, #00C8FF 0%, #003CAB 100%);
}

.avatar[data-grad="6"], .chip-avatar[data-grad="6"], .launcher-agent-avatar[data-grad="6"] {
  background: linear-gradient(135deg, #0052D9 0%, #29CCCC 100%);
}

.avatar[data-grad="7"], .chip-avatar[data-grad="7"], .launcher-agent-avatar[data-grad="7"] {
  background: linear-gradient(135deg, #00C8FF 0%, #4096FF 50%, #003CAB 100%);
}


/* =================================================================
   TRANSCRIPT (light, used on voice right + chat)
   ================================================================= */
.transcript-card {
  min-height: 360px;
}

.transcript-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 200px;
  max-height: 380px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.transcript-scroll::-webkit-scrollbar {
  display: none;
}

.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--font-sans);
  word-wrap: break-word;
  position: relative;
  animation: bubbleIn var(--dur-base) var(--ease-emphasized);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble.user {
  align-self: flex-end;
  background: var(--brand-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--fg1);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.bubble .who {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
  color: var(--fg3);
}

.bubble.user .who {
  color: rgba(255, 255, 255, .7);
}

.bubble.typing .dots {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  overflow: visible;
}

.bubble.typing .dots path {
  transform-box: fill-box;
  transform-origin: center;
}

.bubble.typing .dots path:first-child {
  animation: typingSparkle 1.9s ease-in-out infinite;
}

.bubble.typing .dots path:last-child {
  animation: typingSparkle 1.9s ease-in-out infinite .22s;
}

@keyframes typingSparkle {
  0%, 100% {
    opacity: .45;
    transform: scale(.92) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.06) rotate(8deg);
  }
}

/* empty state */
.empty-state {
  margin: auto;
  text-align: center;
  color: var(--fg3);
  padding: var(--sp-6);
}

.empty-state .empty-ico {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--sp-3);
  fill: none;
  stroke: var(--fg4);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}

.empty-state p {
  font-size: 13px;
  margin: 0;
  color: var(--fg3);
}

.empty-state-sm {
  font-size: 13px;
  color: var(--fg3);
  padding: var(--sp-3) 0;
}


/* =================================================================
   COMPOSER
   ================================================================= */
.composer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-top: 1px solid var(--divider);
}

.composer input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg1);
  transition: all var(--dur-fast) var(--ease-standard);
}

.composer input::placeholder {
  color: var(--fg3);
}


.composer input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.composer-mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--fg2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.composer-mic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =================================================================
   LATENCY CARD
   ================================================================= */
.latency-card {}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg3);
}

.kpi-value {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg1);
  font-feature-settings: "tnum";
  letter-spacing: -.02em;
  line-height: 1;
}

.kpi-value.accent {
  color: var(--brand-blue);
}

.kpi-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg3);
  margin-left: 2px;
  letter-spacing: 0;
}

.breakdown {
  padding: 0 var(--sp-5) var(--sp-5);
}

.breakdown-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg3);
  margin-bottom: var(--sp-3);
}

.brk-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.brk-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  gap: var(--sp-3);
  align-items: center;
  font-size: 12px;
}

.brk-label {
  color: var(--fg2);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.brk-bar {
  height: 6px;
  background: var(--bg-sunken);
  border-radius: 3px;
  overflow: hidden;
}

.brk-bar>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-400) 100%);
  border-radius: 3px;
  width: 0;
  transition: width var(--dur-slow) var(--ease-emphasized);
}

.brk-ms {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg1);
  text-align: right;
  font-feature-settings: "tnum";
}

.brk-hint {
  font-size: 11px;
  color: var(--fg3);
  margin: var(--sp-3) 0 0;
  font-style: italic;
}

.turn-history {
  padding: 0 var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: none;
}

.turn-history::-webkit-scrollbar {
  display: none;
}

.turn-row {
  display: grid;
  grid-template-columns: 18px 1fr 60px;
  gap: var(--sp-2);
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
}

.turn-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg3);
  text-align: right;
}

.turn-bar {
  position: relative;
  height: 4px;
  background: var(--bg-sunken);
  border-radius: 2px;
  overflow: hidden;
}

.turn-bar>span {
  display: block;
  height: 100%;
  background: var(--brand-blue);
  border-radius: 2px;
  transition: width var(--dur-slow) var(--ease-emphasized);
}

.turn-text {
  font-size: 11.5px;
  color: var(--fg2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.turn-ms {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg1);
  text-align: right;
  font-feature-settings: "tnum";
}

.turn-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.turn-row-full {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-2);
  align-items: baseline;
  font-size: 11.5px;
}

.turn-row-full .lbl {
  color: var(--fg2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-row-full .ms {
  color: var(--fg1);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}


/* =================================================================
   CHAT CARD (widget)
   ================================================================= */
.chat-card {
  min-height: 600px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, var(--brand-blue-50), transparent 80%);
}

.chat-head-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.chat-head-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.chat-head-meta strong {
  display: block;
  font-size: 15px;
  color: var(--fg1);
  font-weight: 700;
}

.online-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fg3);
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(0, 168, 112, .18);
}

/* Welcome */
.welcome {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--brand-blue-100) 0%, transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--divider);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
  margin-bottom: var(--sp-3);
  box-shadow: 0 6px 16px rgba(0, 110, 255, .18);
}

.welcome h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg1);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.welcome>p {
  font-size: 13.5px;
  color: var(--fg2);
  margin: 0 0 var(--sp-4);
  max-width: 44ch;
  line-height: 1.5;
}

.faq-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
}

.faq-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-blue);
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.faq-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--fg1);
  transition: all var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}

.faq-chip:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.chat-transcript {
  flex: 1;
  max-height: 440px;
}

.composer-chat {
  padding: var(--sp-3) var(--sp-4);
}


/* =================================================================
   INFO CARD
   ================================================================= */
.info-card {}

.info-desc {
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.55;
  margin: 0;
}

.info-row {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-row-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg3);
}

.info-row-val {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}


/* =================================================================
   CTA BAND
   ================================================================= */
.cta-band {
  background: var(--grad-hero);
  padding: var(--sp-12) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 200, 255, .15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  position: relative;
}

.cta-band h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 var(--sp-2);
  letter-spacing: -.02em;
}

.cta-band p {
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

.cta-buttons {
  display: flex;
  gap: var(--sp-3);
}


/* =================================================================
   FOOTER
   ================================================================= */
.site-foot {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, .55);
  padding: var(--sp-8) 0;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 13px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  font-weight: 600;
}

.foot-brand img {
  filter: brightness(0) invert(1);
}

.foot-meta {
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
}


/* =================================================================
   TWEAKS PANEL
   ================================================================= */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-4);
  font-family: var(--font-sans);
  z-index: 200;
  transform: translateY(calc(100% + 30px));
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease-emphasized),
    opacity var(--dur-base) ease;
  pointer-events: none;
  overflow: hidden;
}

.tweaks-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--divider);
}

.tw-head strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg1);
}

.tw-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--fg3);
  padding: 0 4px;
  line-height: 1;
}

.tw-close:hover {
  color: var(--fg1);
}

.tw-body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.tw-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg3);
  display: block;
  margin-bottom: var(--sp-2);
}

.tw-hint {
  font-size: 11.5px;
  color: var(--fg3);
  margin: var(--sp-2) 0 0;
  line-height: 1.4;
}

.tw-seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-muted);
}

.tw-seg button {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  color: var(--fg2);
  transition: all var(--dur-fast) var(--ease-standard);
}

.tw-seg button:last-child {
  border-right: none;
}

.tw-seg button:hover {
  background: #fff;
  color: var(--fg1);
}

.tw-seg button.on {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
}

.tw-seg-sm {
  border-radius: var(--r-sm);
}

.tw-seg-sm button {
  padding: 4px 10px;
  font-size: 12px;
}


/* =================================================================
   RESPONSE CARDS — rich widgets emitted alongside AI replies
   ================================================================= */
.bubble.card-bubble {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 360px;
  width: 100%;
}

.bubble.card-bubble .who {
  color: var(--fg3);
  margin-bottom: 6px;
}

@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-msg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-size: 13px;
  color: var(--fg1);
  animation: card-slide-in 0.35s ease-out;
}

/* gradient head — per type (use blue palette + supporting accents) */
.card-msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  position: relative;
}

.card-grad-order {
  background: linear-gradient(135deg, #4096FF 0%, #006EFF 100%);
}

.card-grad-booking {
  background: linear-gradient(135deg, #00C8FF 0%, #0052D9 100%);
}

.card-grad-form {
  background: linear-gradient(135deg, #4096FF 0%, #003CAB 100%);
}

.card-grad-survey {
  background: linear-gradient(135deg, #29CCCC 0%, #0052D9 100%);
}

.card-grad-meeting {
  background: linear-gradient(135deg, #0052D9 0%, #001A45 100%);
}

.card-grad-nps {
  background: linear-gradient(135deg, #00C8FF 0%, #006EFF 50%, #003CAB 100%);
}

.card-grad-candidate {
  background: linear-gradient(135deg, #29CCCC 0%, #006EFF 100%);
}

.card-grad-appointment {
  background: linear-gradient(135deg, #00C8FF 0%, #006EFF 100%);
}

.card-grad-cfg {
  /* background: linear-gradient(135deg, var(--accent, #1D9E75) 0%, color-mix(in srgb, var(--accent, #1D9E75) 60%, #000) 100%); */
  background: var(--neu-action);
}

.cfg-list-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cfg-list-row:last-child {
  border-bottom: none;
}

.cfg-list-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--fg3);
  flex-shrink: 0;
  margin-top: 1px;
}

.cfg-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cfg-list-val {
  font-weight: 600;
  color: var(--accent, #1D9E75);
  font-size: 13px;
}

.cfg-list-sub {
  font-size: 11px;
  color: var(--fg3);
}

.card-msg-head-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-msg-head-ico .ic {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card-msg-head-text {
  flex: 1;
  min-width: 0;
}

.card-msg-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 1px;
}

.card-msg-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}

.card-msg-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-msg-badge.ok {
  background: rgba(0, 168, 112, .9);
}

.card-msg-badge.info {
  background: rgba(255, 255, 255, .22);
}

.card-msg-badge.warn {
  background: rgba(237, 123, 47, .9);
}

.card-msg-badge.err {
  background: rgba(227, 77, 89, .9);
}

.card-msg-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* generic row/grid/cell */
.card-row, .card-grid {
  display: grid;
  gap: 8px 14px;
}

.card-row {
  grid-template-columns: 1fr 1fr;
}

.card-grid {
  grid-template-columns: 1fr 1fr;
}

.card-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-cell-full {
  grid-column: 1 / -1;
}

.card-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg3);
}

.card-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg1);
}

.card-val.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 13px;
}

.card-msg-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--divider);
  background: var(--bg-muted);
}

.card-act {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg2);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}

.card-act:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-50);
}

.card-act.primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.card-act.primary:hover {
  background: var(--brand-blue-600);
  color: #fff;
}

/* --- Order card --- */
.card-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-muted);
  border-radius: var(--r-md);
}

.card-route-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg3);
}

.card-route-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
}

.card-route-to {
  text-align: right;
}

.card-route-line {
  display: flex;
  align-items: center;
  gap: 0;
  height: 16px;
}

.card-route-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}

.card-route-line .dot-end {
  background: transparent;
  border: 1.5px solid var(--brand-blue);
}

.card-route-line .line {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed var(--brand-blue-200);
}

.card-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-step {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: center;
  position: relative;
}

.card-step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}

.card-step:last-child::before {
  display: none;
}

.card-step.done::before {
  background: var(--brand-blue);
}

.card-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: 2px solid var(--border);
  z-index: 1;
}

.card-step.done .card-step-dot {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.card-step.current .card-step-dot {
  box-shadow: 0 0 0 3px rgba(0, 110, 255, .2);
}

.card-step-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--fg1);
  font-weight: 500;
}

.card-step.done .card-step-meta {
  color: var(--fg1);
  font-weight: 600;
}

.card-step:not(.done) .card-step-meta {
  color: var(--fg3);
}

.card-step-t {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
  font-feature-settings: "tnum";
}

.card-eta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--brand-blue-50);
  border-radius: var(--r-md);
  border: 1px solid var(--brand-blue-100);
}

.card-eta span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-blue);
}

.card-eta strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
}

/* --- Booking card --- */
.card-venue {
  font-size: 12.5px;
  color: var(--fg2);
}

.card-addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.4;
}

.card-addr .ic {
  width: 14px;
  height: 14px;
  stroke: var(--fg3);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-notes {
  font-size: 12px;
  color: var(--fg2);
  font-style: italic;
  padding: 8px 10px;
  border-left: 3px solid var(--brand-blue-200);
  background: var(--bg-muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.45;
}

/* --- Form / Survey progress --- */
.card-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-progress-lbl {
  font-size: 11.5px;
  color: var(--fg2);
  font-weight: 600;
}

.card-progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  font-feature-settings: "tnum";
}

.card-progress {
  height: 6px;
  background: var(--bg-sunken);
  border-radius: 3px;
  overflow: hidden;
}

.card-progress>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-400) 100%);
  border-radius: 3px;
  transition: width var(--dur-slow) var(--ease-emphasized);
}

.card-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-field {
  display: grid;
  grid-template-columns: 20px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  font-size: 12.5px;
}

.card-field-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--fg4);
  font-size: 11px;
  font-weight: 700;
}

.card-field.done .card-field-tick {
  background: var(--success);
  color: #fff;
}

.card-field-lbl {
  font-weight: 600;
  color: var(--fg1);
}

.card-field:not(.done) .card-field-lbl {
  color: var(--fg3);
}

.card-field-val {
  color: var(--fg2);
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-field-val em {
  color: var(--fg4);
  font-style: normal;
  font-size: 11px;
}

/* survey */
.card-sentiment {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--bg-sunken);
  color: var(--fg3);
}

.card-sentiment.ok {
  background: var(--success-bg);
  color: var(--success);
}

.card-sentiment.warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.card-sentiment.err {
  background: var(--error-bg);
  color: var(--error);
}

.card-qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-qa {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed var(--divider);
}

.card-qa:last-child {
  border-bottom: none;
}

.card-qa-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg4);
  font-weight: 700;
}

.card-qa.done .card-qa-num {
  color: var(--brand-blue);
}

.card-qa-q {
  font-size: 12px;
  color: var(--fg3);
  margin-bottom: 2px;
}

.card-qa.done .card-qa-q {
  color: var(--fg2);
}

.card-qa-a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg1);
}

.card-qa-a em {
  color: var(--fg4);
  font-style: normal;
}

/* --- Meeting / Appointment --- */
.card-meeting-body {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.card-date-block {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: center;
  background: #fff;
}

.card-date-month {
  background: var(--brand-blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 0;
}

.card-date-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--fg1);
  line-height: 1.1;
  padding: 6px 0 0;
  letter-spacing: -.02em;
}

.card-date-day {
  font-size: 10.5px;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 6px;
}

.card-meeting-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.card-meeting-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
}

.card-tz {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--fg3);
  margin-left: 4px;
}

.card-meeting-with {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-meeting-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-cloud);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-meeting-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg1);
}

.card-meeting-role {
  font-size: 11px;
  color: var(--fg3);
}

.card-agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-agenda li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: var(--fg2);
  line-height: 1.4;
}

.card-agenda li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.card-provider {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg1);
}

/* --- NPS card --- */
.nps-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.nps-display.ok {
  background: var(--success-bg);
  border-color: rgba(0, 168, 112, .25);
}

.nps-display.warn {
  background: var(--warning-bg);
  border-color: rgba(237, 123, 47, .25);
}

.nps-display.err {
  background: var(--error-bg);
  border-color: rgba(227, 77, 89, .25);
}

.nps-score {
  font-size: 38px;
  font-weight: 800;
  color: var(--fg1);
  line-height: 1;
  letter-spacing: -.04em;
  font-feature-settings: "tnum";
}

.nps-display.ok .nps-score {
  color: var(--success);
}

.nps-display.warn .nps-score {
  color: var(--warning);
}

.nps-display.err .nps-score {
  color: var(--error);
}

.nps-of {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg3);
  letter-spacing: 0;
  margin-left: 2px;
}

.nps-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nps-label.ok {
  color: var(--success);
}

.nps-label.warn {
  color: var(--warning);
}

.nps-label.err {
  color: var(--error);
}

.nps-scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
}

.nps-tick {
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg3);
  background: var(--bg-sunken);
}

.nps-tick.detractor {
  background: rgba(227, 77, 89, .12);
  color: var(--error);
}

.nps-tick.passive {
  background: rgba(237, 123, 47, .12);
  color: var(--warning);
}

.nps-tick.promoter {
  background: rgba(0, 168, 112, .12);
  color: var(--success);
}

.nps-tick.on {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 800;
  transform: scale(1.18);
  box-shadow: 0 4px 12px rgba(0, 110, 255, .4);
  z-index: 1;
}

.nps-tick.on.detractor {
  background: var(--error);
}

.nps-tick.on.passive {
  background: var(--warning);
}

.nps-tick.on.promoter {
  background: var(--success);
}

.nps-legend {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10.5px;
  color: var(--fg3);
  flex-wrap: wrap;
}

.nps-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.nps-legend .dot.ok {
  background: var(--success);
}

.nps-legend .dot.warn {
  background: var(--warning);
}

.nps-legend .dot.err {
  background: var(--error);
}

/* --- Candidate card --- */
.card-cand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-cand-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-cand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-product-tccc);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-cand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
}

.card-cand-role {
  font-size: 11.5px;
  color: var(--fg3);
}

.card-cand-score {
  text-align: center;
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: var(--success-bg);
  border: 1px solid rgba(0, 168, 112, .2);
  min-width: 56px;
}

.card-cand-score.ok {
  background: var(--success-bg);
  border-color: rgba(0, 168, 112, .25);
}

.card-cand-score.warn {
  background: var(--warning-bg);
  border-color: rgba(237, 123, 47, .25);
}

.card-cand-score.err {
  background: var(--error-bg);
  border-color: rgba(227, 77, 89, .25);
}

.card-cand-score-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  letter-spacing: -.02em;
}

.card-cand-score.warn .card-cand-score-num {
  color: var(--warning);
}

.card-cand-score.err .card-cand-score-num {
  color: var(--error);
}

.card-cand-score-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg3);
  margin-top: 2px;
}

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-skill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--brand-blue-50);
  border: 1px solid var(--brand-blue-100);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* mobile tweaks */
@media (max-width: 520px) {
  .bubble.card-bubble {
    max-width: 100%;
  }

  .card-meeting-body {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }

  .card-date-num {
    font-size: 22px;
  }

  .nps-tick {
    height: 24px;
    font-size: 9.5px;
  }

  .nps-score {
    font-size: 32px;
  }
}

/* Tablet — fewer agent chip cols */
@media (max-width: 1180px) and (min-width: 821px) {
  .agent-chips {
    grid-template-columns: repeat(4, 1fr);
  }

  .launcher-split {
    grid-template-columns: 1.4fr 1fr;
  }

  .launcher-agents {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small tablet / large phone */
@media (max-width: 820px) {
  .container {
    padding: 0 var(--sp-5);
  }

  .demo-section {
    padding: var(--sp-5) 0;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .tab-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
  }

  /* Launcher — stack split, 2-col agent grid */
  .launcher-head h1 {
    font-size: 26px;
  }

  .launcher-head p {
    font-size: 14px;
  }

  .launcher-step {
    margin-bottom: var(--sp-6);
  }

  .launcher-split {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .step-mode {
    position: static;
  }

  .launcher-agents {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
  }

  .launcher-agent {
    padding: var(--sp-3);
  }

  .launcher-agent-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .launcher-modes {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .mode-card {
    padding: var(--sp-4);
  }

  .launcher-cta {
    gap: var(--sp-3);
  }

  .launcher-summary {
    font-size: 13px;
  }

  /* Demo topbar — wrap & compact */
  .demo-topbar {
    padding: var(--sp-2);
  }

  .topbar-identity {
    order: 1;
    flex-basis: 100%;
  }

  .demo-back {
    order: 2;
  }

  .topbar-mode-switch {
    order: 3;
    margin-left: auto;
  }

  /* Agent picker becomes horizontal-scroll row */
  .agent-bar {
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
  }

  .agent-bar-head {
    margin-bottom: var(--sp-2);
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .agent-bar-hint {
    display: none;
  }

  .agent-chips {
    display: flex;
    grid-template-columns: none;
    gap: var(--sp-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 calc(var(--sp-4) * -1);
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .agent-chips::-webkit-scrollbar {
    display: none;
  }

  .agent-chips {
    scrollbar-width: none;
  }

  .agent-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 6px 14px 6px 6px;
  }

  .chip-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .chip-name {
    font-size: 12.5px;
  }

  .chip-role {
    display: none;
  }

  /* Mode tabs more compact */
  .tab {
    padding: var(--sp-3);
    gap: var(--sp-2);
  }

  .tab-ico {
    width: 36px;
    height: 36px;
  }

  .tab-ico svg {
    width: 18px;
    height: 18px;
  }

  .tab-title {
    font-size: 14px;
  }

  .tab-sub {
    font-size: 11px;
  }

  /* Phone card */
  .phone-card {
    min-height: auto;
  }

  .phone-body {
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
  }

  .phone-avatar-wrap {
    width: 96px;
    height: 96px;
    margin-bottom: var(--sp-3);
  }

  .phone-avatar {
    width: 84px;
    height: 84px;
    font-size: 32px;
  }

  .phone-name {
    font-size: 22px;
  }

  .phone-role {
    margin-bottom: var(--sp-3);
    font-size: 12px;
  }

  .waveform {
    height: 40px;
    margin-bottom: var(--sp-4);
    max-width: 220px;
  }

  .phone-controls {
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
  }

  .phone-btn {
    width: 44px;
    height: 44px;
  }

  .phone-btn.primary-call, .phone-btn.hangup {
    width: 56px;
    height: 56px;
  }

  /* Chat card no minimum */
  .chat-card {
    min-height: auto;
  }

  .chat-transcript {
    max-height: 360px;
  }

  .transcript-scroll {
    max-height: 320px;
  }

  /* KPI row smaller */
  .kpi-row {
    gap: var(--sp-2);
    padding: var(--sp-4);
  }

  .kpi-value {
    font-size: 22px;
  }

  .kpi-label {
    font-size: 10px;
  }

  /* Composer button compact (icon only) */
  .btn-send {
    padding: 9px 12px;
    font-size: 0;
    gap: 0;
  }

  .btn-send .btn-ico {
    width: 18px;
    height: 18px;
  }

  .composer-mic {
    display: none;
  }
}

/* Phone — stack mode tabs, tightest spacing */
@media (max-width: 520px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .agent-bar {
    border-radius: var(--r-lg);
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .tab {
    padding: var(--sp-3) var(--sp-4);
  }

  .card {
    border-radius: var(--r-lg);
  }

  .card-head {
    padding: var(--sp-3) var(--sp-4);
  }

  .kpi-row {
    padding: var(--sp-3) var(--sp-4);
    grid-template-columns: 1fr 1fr;
  }

  .kpi-row .kpi:nth-child(3) {
    display: none;
  }

  .turn-history, .breakdown {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .composer, .composer-chat {
    padding: var(--sp-2) var(--sp-3);
  }

  .welcome {
    padding: var(--sp-4);
  }

  .welcome-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-bottom: var(--sp-2);
  }

  .welcome h2 {
    font-size: 16px;
  }

  .welcome>p {
    font-size: 13px;
    margin-bottom: var(--sp-3);
  }

  .info-row {
    padding: var(--sp-3) var(--sp-4);
  }

  .info-desc {
    padding: var(--sp-3) var(--sp-4) var(--sp-2);
    font-size: 13px;
  }
}

/* =================================================================
   CUSTOMER CO-BRAND — demo topbar mini logo
   Shown only when /c/:customer/demo injects boot.customer.logoUrl.
   ================================================================= */
.customer-logo-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  max-width: 96px;
  padding: 0 6px;
  border-left: 1px solid var(--border);
  margin-left: var(--sp-2);
  padding-left: var(--sp-3);
}

.customer-logo-mini img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  max-height: 24px;
}

@media (max-width: 768px) {
  .customer-logo-mini {
    display: none;
  }
}

/* =================================================================
   CUSTOMER LANDING (/c/:customer → customer.html)
   Shared, brand-themable via --accent set from primaryColor.
   ================================================================= */
.cust-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 92% 92%, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 50%),
    var(--bg);
  padding: var(--sp-16) var(--sp-6) var(--sp-12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cust-wrap {
  width: 100%;
  max-width: 940px;
  display: grid;
  gap: var(--sp-8);
}

.cust-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-10);
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}

.cust-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
}

.cust-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: center;
}

@media (max-width: 760px) {
  .cust-hero {
    padding: var(--sp-8) var(--sp-6);
  }

  .cust-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

.cust-logo {
  max-width: 180px;
  max-height: 56px;
  margin-bottom: var(--sp-5);
  display: block;
}

.cust-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.cust-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.cust-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fg1);
  margin: 0 0 var(--sp-4);
}

.cust-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg2);
  margin: 0 0 var(--sp-6);
  max-width: 52ch;
}

.cust-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 6px 18px var(--accent-shadow);
}

.cust-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--accent-shadow);
  background: var(--accent-hover);
}

.cust-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cust-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-5);
}

.cust-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Right column of hero — visual mock */
.cust-mock {
  background: linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 18%, #0F1F3D) 0%,
      #0F1F3D 60%);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.cust-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 55%);
  pointer-events: none;
}

.cust-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cust-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00C896;
  box-shadow: 0 0 0 4px rgba(0, 200, 150, .18);
  animation: cust-pulse 2s ease-in-out infinite;
}

@keyframes cust-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(0, 200, 150, .18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 200, 150, .05);
  }
}

.cust-mock-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

.cust-mock-body {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
  position: relative;
  z-index: 1;
}

.cust-mock-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  margin-top: auto;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}

.cust-mock-meta span strong {
  color: #fff;
  font-weight: 600;
}

/* Feature tiles row */
.cust-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 760px) {
  .cust-tiles {
    grid-template-columns: 1fr;
  }
}

.cust-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}

.cust-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.cust-tile-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.cust-tile-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cust-tile-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
}

.cust-tile-desc {
  font-size: 12.5px;
  color: var(--fg3);
  line-height: 1.5;
}

/* Models row (ASR / LLM / TTS pills) */
.cust-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cust-models-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg3);
  margin-right: 4px;
}

.cust-model-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--fg2);
}

.cust-model-pill strong {
  color: var(--fg1);
  font-weight: 600;
}

.cust-foot {
  text-align: center;
  font-size: 12px;
  color: var(--fg3);
}

.cust-foot strong {
  color: var(--fg2);
}

/* ── location_confirm card (Zig taxi demo) ──────────────────── */
.card-loc {
  width: 100%;
}

.card-loc .loc-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.card-loc .loc-pin-pick {
  background: rgba(16, 185, 129, .9);
  color: #fff;
}

.card-loc .loc-pin-drop {
  background: rgba(244, 63, 94, .9);
  color: #fff;
}

.card-loc-map {
  position: relative;
  height: 180px;
  background: #eef2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-loc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-loc-map .loc-map-fallback {
  font-size: 12px;
  color: var(--fg3);
}

.card-loc-note {
  font-size: 12px;
  color: var(--fg3);
  font-style: italic;
}

/* Temporary ride status card — NeuChat / Zig App, Figma node 739:5797 */
.ride-temp-card {
  width: 100%;
  max-width: 342px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #4F5470;
  font-family: "HarmonyOS Sans SC", var(--font-sans);
  box-shadow: 0 10px 30px rgba(32, 35, 50, .08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ride-temp-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ride-temp-status {
  width: fit-content;
  min-height: 26px;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(223, 185, 31, .1);
  color: #EDAA00;
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ride-temp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EDAA00;
  flex-shrink: 0;
}

.ride-temp-title {
  width: 100%;
  color: #4F5470;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
  word-break: break-word;
}

.ride-temp-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 7px;
}

.ride-temp-item {
  min-width: 0;
  color: #8186A5;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ride-temp-ic {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ride-temp-action {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 105, 255, .1);
  color: #0069FF;
  font-family: "HarmonyOS Sans SC", var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ride-temp-action .ride-temp-ic {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  stroke-width: 1.6;
}

/* =================================================================
   CUSTOMER GALLERY — /c collection page
   ================================================================= */
.cust-gallery-back {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

.cust-gallery-back:hover {
  text-decoration: underline;
}

.cust-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.cust-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.cust-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
  text-decoration: none;
}

.cust-card-accent {
  height: 4px;
  flex-shrink: 0;
}

.cust-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  flex: 1;
}

.cust-card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.cust-card-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cust-card-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cust-card-logo-letter {
  font-size: 24px;
  font-weight: 800;
}

.cust-card-head-text {
  min-width: 0;
}

.cust-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg1);
  margin: 0;
  line-height: 1.2;
}

.cust-card-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg3);
  margin: 3px 0 0;
  line-height: 1.3;
}

.cust-card-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cust-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cust-card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg2);
  border: 1px solid var(--border);
}

.cust-card-cta {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  padding-top: var(--sp-2);
}

@media (max-width: 760px) {
  .cust-gallery {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   NeuChat Figma restyle — demo voice/chat screens
   Source: NeuChat / Zig App, node 768:5530.
   ================================================================= */
body[data-page="demo"] {
  --neu-blue: #3C7EFF;
  --neu-blue-dark: #1F66F2;
  --neu-bg: #F3F7FF;
  --neu-bg-2: #EAF1FF;
  --neu-text: #1D2129;
  --neu-muted: #8186A5;
  --neu-soft: #F3F4F4;
  --neu-line: rgba(32, 35, 50, .08);
  --neu-shadow: 0 20px 60px rgba(32, 35, 50, .12);
  background: #EEF4FF;
  color: var(--neu-text);
}

body[data-page="demo"] .demo-section {
  min-height: 100vh;
  padding: 28px 0 40px;
  background:
    linear-gradient(180deg, #EAF2FF 0%, #F8FAFF 42%, #FFFFFF 100%);
}

body[data-page="demo"] .container {
  max-width: 1180px;
  padding: 0 24px;
}

body[data-page="demo"] .demo-view {
  max-width: 1040px;
  margin: 0 auto;
}

body[data-page="demo"] .demo-topbar {
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 8px;
  border: 1px solid rgba(60, 126, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 36px rgba(60, 126, 255, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-page="demo"] .demo-back {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: transparent;
  background: #F5F7FC;
  color: var(--neu-text);
}

body[data-page="demo"] .demo-back:hover {
  border-color: rgba(60, 126, 255, .22);
  color: var(--neu-blue);
  box-shadow: none;
}

body[data-page="demo"] .topbar-identity {
  gap: 12px;
}

body[data-page="demo"] .topbar-identity .chip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: none;
}

body[data-page="demo"] .topbar-meta strong {
  font-size: 14px;
  color: var(--neu-text);
}

body[data-page="demo"] .topbar-meta span {
  color: var(--neu-muted);
}

/* body[data-page="demo"] .topbar-mode-switch {
  height: 38px;
  padding: 3px;
  border: 0;
  border-radius: 13px;
  background: #F1F4FB;
} */

body[data-page="demo"] .tab-mini[aria-selected="true"] {
  background: #FFFFFF;
  color: var(--neu-blue);
  box-shadow: 0 4px 14px rgba(60, 126, 255, .14);
}

body[data-page="demo"] .demo-grid {
  grid-template-columns: minmax(320px, 375px) minmax(320px, 1fr);
  justify-content: center;
  gap: 28px;
}

body[data-page="demo"] .side-stack {
  max-width: 430px;
  gap: 16px;
}

body[data-page="demo"] .card {
  border: 1px solid rgba(32, 35, 50, .08);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(32, 35, 50, .08);
}

body[data-page="demo"] .phone-card,
body[data-page="demo"] .chat-card {
  width: 375px;
  border-radius: 30px;
  border: 8px solid #202332;
  background:
    linear-gradient(180deg, #FFFFFF 0 88px, var(--neu-bg) 88px 100%);
  color: var(--neu-text);
  box-shadow: var(--neu-shadow);
  overflow: hidden;
  position: relative;
}

body[data-page="demo"] .phone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 4;
  background:
    radial-gradient(circle at 325px 22px, #202332 0 4px, transparent 4px),
    linear-gradient(#FFFFFF, #FFFFFF);
  pointer-events: none;
}

body[data-page="demo"] .phone-card::after,
body[data-page="demo"] .chat-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 5;
  width: 134px;
  height: 4px;
  border-radius: 999px;
  background: #202332;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .9;
}

body[data-page="demo"] .phone-card-head,
body[data-page="demo"] .chat-head {
  min-height: 88px;
  padding: 46px 16px 10px;
  border-bottom: 0;
  background: #FFFFFF;
  position: relative;
  z-index: 3;
}

body[data-page="demo"] .phone-card-head::before,
body[data-page="demo"] .chat-head::before {
  content: "9:41";
  position: absolute;
  top: 11px;
  left: 21px;
  color: #202332;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

body[data-page="demo"] .phone-card-head::after,
body[data-page="demo"] .chat-head::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 16px;
  width: 66px;
  height: 12px;
  opacity: .9;
  background:
    linear-gradient(#202332, #202332) 0 7px / 4px 5px no-repeat,
    linear-gradient(#202332, #202332) 7px 5px / 4px 7px no-repeat,
    linear-gradient(#202332, #202332) 14px 3px / 4px 9px no-repeat,
    linear-gradient(#202332, #202332) 21px 1px / 4px 11px no-repeat,
    linear-gradient(#202332, #202332) 34px 3px / 18px 9px no-repeat,
    linear-gradient(#202332, #202332) 54px 5px / 2px 5px no-repeat;
  border-radius: 2px;
}

body[data-page="demo"] .phone-card-head {
  justify-content: center;
}

body[data-page="demo"] .phone-head-left {
  min-width: 0;
  align-items: center;
}

body[data-page="demo"] .status-pill {
  border: 0;
  background: transparent;
  color: var(--neu-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  padding: 0;
}

body[data-page="demo"] .status-pill .dot,
body[data-page="demo"] .phone-meta {
  display: none;
}

body[data-page="demo"] .phone-timer {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--neu-muted);
  font-size: 12px;
  line-height: 20px;
}

body[data-page="demo"] .phone-body {
  padding: 24px 16px 0;
  justify-content: flex-start;
}

body[data-page="demo"] .phone-avatar-wrap,
body[data-page="demo"] .phone-avatar,
body[data-page="demo"] .phone-name,
body[data-page="demo"] .phone-role {
  display: none;
}

body[data-page="demo"] .phone-body::before {
  content: "Hi, I am NeuChat. Tell me where you want to go, and I will help with the route.";
  align-self: flex-start;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  color: var(--neu-text);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

body[data-page="demo"] .phone-body::after {
  content: "I want to go the garden";
  align-self: flex-end;
  margin: 0 0 26px;
  padding: 12px;
  border-radius: 4px;
  background: var(--neu-blue);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

body[data-page="demo"] .waveform {
  order: 10;
  width: 168px;
  height: 72px;
  max-width: none;
  gap: 12px;
  margin: auto auto 94px;
}

body[data-page="demo"] .waveform span {
  width: 8px;
  border-radius: 999px;
  background: var(--neu-blue);
}

body[data-page="demo"] .waveform span:nth-child(n+10) {
  display: none;
}

body[data-page="demo"] .waveform span:nth-child(1),
body[data-page="demo"] .waveform span:nth-child(5) {
  height: 72px;
}

body[data-page="demo"] .waveform span:nth-child(2),
body[data-page="demo"] .waveform span:nth-child(4),
body[data-page="demo"] .waveform span:nth-child(8) {
  height: 32px;
}

body[data-page="demo"] .waveform span:nth-child(3),
body[data-page="demo"] .waveform span:nth-child(9) {
  height: 24px;
}

body[data-page="demo"] .waveform span:nth-child(6) {
  height: 40px;
}

body[data-page="demo"] .waveform span:nth-child(7) {
  height: 16px;
}

body[data-page="demo"] .phone-controls {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  order: 11;
  transform: translateX(-50%);
}

body[data-page="demo"] .phone-btn.primary-call {
  width: 56px;
  height: 56px;
  border: 0;
  background: var(--neu-blue);
  box-shadow: 0 10px 24px rgba(60, 126, 255, .24);
}

body[data-page="demo"] .phone-btn.hangup {
  background: #E34D59;
  box-shadow: 0 10px 24px rgba(227, 77, 89, .22);
}

body[data-page="demo"] .phone-hint {
  order: 9;
  align-self: flex-start;
  max-width: none;
  margin: 0 0 40px;
  color: var(--neu-muted);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

body[data-page="demo"] .chat-card {
  background: var(--neu-bg);
}

body[data-page="demo"] .chat-head {
  gap: 8px;
}

body[data-page="demo"] .chat-head-left {
  min-width: 0;
}

body[data-page="demo"] .chat-head-left::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: currentColor;
  color: #202332;
  clip-path: polygon(60% 18%, 24% 50%, 60% 82%, 66% 75%, 40% 50%, 66% 25%);
}

body[data-page="demo"] .chat-head .avatar,
body[data-page="demo"] .online-line {
  display: none;
}

body[data-page="demo"] .chat-head-meta strong {
  font-size: 16px;
  line-height: 22px;
  color: var(--neu-text);
}

body[data-page="demo"] .chat-head-right {
  gap: 6px;
}

body[data-page="demo"] .chat-head-right::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--neu-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4h10v2H7V4Zm0 5h10v2H7V9Zm0 5h10v2H7v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4h10v2H7V4Zm0 5h10v2H7V9Zm0 5h10v2H7v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="demo"] .chat-head-right .lang-select {
  max-width: 78px;
  padding-left: 8px;
  background-color: #F6F8FF;
}

body[data-page="demo"] .chat-head-right .icon-btn {
  width: 64px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: #FFFFFF;
  color: var(--neu-text);
  box-shadow: none;
}

body[data-page="demo"] .chat-head-right .icon-btn::after {
  content: "Call";
  margin-left: 4px;
  font-size: 12px;
  line-height: 20px;
}

body[data-page="demo"] .chat-head-right .icon-btn svg {
  width: 18px;
  height: 18px;
}

body[data-page="demo"] .welcome {
  flex: 1;
  justify-content: flex-start;
  align-items: stretch;
  padding: 56px 16px 12px;
  border-bottom: 0;
  background: var(--neu-bg);
  text-align: left;
}

body[data-page="demo"] .welcome-avatar {
  display: none;
}

body[data-page="demo"] .welcome h2 {
  margin: 0 0 24px;
  color: var(--neu-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

body[data-page="demo"] .welcome>p {
  max-width: none;
  margin: 0 0 24px;
  color: var(--neu-text);
  font-size: 14px;
  line-height: 22px;
}

body[data-page="demo"] .faq-block {
  align-items: stretch;
  gap: 10px;
}

body[data-page="demo"] .faq-label {
  color: var(--neu-muted);
  font-size: 12px;
  line-height: 20px;
  text-transform: none;
  letter-spacing: 0;
}

body[data-page="demo"] .faq-chips {
  justify-content: flex-start;
  gap: 8px;
}

body[data-page="demo"] .faq-chip {
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--neu-text);
  font-size: 14px;
  line-height: 22px;
  box-shadow: none;
}

body[data-page="demo"] .faq-chip:hover {
  background: #FFFFFF;
  color: var(--neu-blue);
  transform: none;
}

body[data-page="demo"] .chat-transcript,
body[data-page="demo"] .transcript-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 56px 16px 12px;
  gap: 26px;
}

body[data-page="demo"] .transcript-card {
  min-height: 360px;
}

body[data-page="demo"] .transcript-card .transcript-scroll {
  padding-top: 18px;
}

body[data-page="demo"] .bubble {
  max-width: min(343px, 86%);
  padding: 12px;
  border-radius: 4px;
  border: 0;
  box-shadow: none;
  font-family: "HarmonyOS Sans SC", var(--font-sans);
  font-size: 14px;
  line-height: 22px;
}

body[data-page="demo"] .bubble.bot {
  align-self: flex-start;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  color: var(--neu-text);
  text-align: left;
}

body[data-page="demo"] .bubble.user {
  align-self: flex-end;
  background: var(--neu-blue);
  color: #FFFFFF;
}

body[data-page="demo"] .bubble .who {
  display: none;
}

body[data-page="demo"] .composer {
  position: relative;
  z-index: 4;
  min-height: 92px;
  padding: 12px 16px 38px;
  border-top: 0;
  background: #FFFFFF;
}

body[data-page="demo"] .composer input {
  border: 0;
  color: var(--neu-text);
  font-size: 14px;
}


body[data-page="demo"] .btn-send {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 16px;
  background: var(--neu-blue);
  color: #FFFFFF;
  font-size: 0;
  gap: 0;
}

body[data-page="demo"] .btn-send:hover {
  background: var(--neu-blue-dark);
  box-shadow: none;
  transform: none;
}

body[data-page="demo"] .btn-send .btn-ico {
  width: 16px;
  height: 16px;
}

body[data-page="demo"] .card-head {
  padding: 16px;
  border-bottom-color: var(--neu-line);
}

body[data-page="demo"] .card-title {
  color: var(--neu-text);
  font-size: 15px;
  font-weight: 700;
}

body[data-page="demo"] .card-sub,
body[data-page="demo"] .info-row-label,
body[data-page="demo"] .kpi-label,
body[data-page="demo"] .breakdown-head {
  color: var(--neu-muted);
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="demo"] .latency-card,
body[data-page="demo"] .info-card,
body[data-page="demo"] .transcript-card {
  border-radius: 18px;
}

body[data-page="demo"] .kpi-row {
  gap: 10px;
  padding: 16px;
}

body[data-page="demo"] .kpi {
  padding: 12px;
  border-radius: 12px;
  background: #F7F9FF;
}

body[data-page="demo"] .kpi-value,
body[data-page="demo"] .kpi-value.accent {
  color: var(--neu-blue);
  font-size: 24px;
}

body[data-page="demo"] .breakdown,
body[data-page="demo"] .turn-history,
body[data-page="demo"] .info-desc,
body[data-page="demo"] .info-row {
  padding-left: 16px;
  padding-right: 16px;
}

body[data-page="demo"] .brk-bar,
body[data-page="demo"] .turn-bar {
  background: #E6ECF8;
}

body[data-page="demo"] .brk-bar>span,
body[data-page="demo"] .turn-bar>span {
  background: var(--neu-blue);
}

body[data-page="demo"] .pill,
body[data-page="demo"] .lang-select {
  border: 0;
  background-color: #F5F7FB;
  color: #4F5470;
}

@media (max-width: 980px) {
  body[data-page="demo"] .demo-grid {
    grid-template-columns: minmax(320px, 375px);
  }

  body[data-page="demo"] .side-stack {
    max-width: 375px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  body[data-page="demo"] .demo-section {
    padding: 0;
    background: var(--neu-bg);
  }

  body[data-page="demo"] .container {
    padding: 0;
  }

  body[data-page="demo"] .demo-topbar {
    margin: 12px;
  }

  body[data-page="demo"] .demo-grid {
    display: block;
  }

  body[data-page="demo"] .phone-card,
  body[data-page="demo"] .chat-card {
    width: 100%;
    height: calc(100vh - 74px);
    min-height: 620px;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page="demo"] .side-stack {
    padding: 16px;
  }
}

/* NeuChat mobile refinement: Figma nav (694:5555) + transcript-first body (721:2328). */
body[data-page="demo"] .demo-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-page="demo"] .demo-topbar {
  width: 375px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 73px 1fr 73px;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="demo"] .customer-logo-mini,
body[data-page="demo"] .topbar-identity {
  display: none !important;
}

body[data-page="demo"] .demo-back {
  width: 73px;
  height: 44px;
  padding: 0;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1D2129;
  font-size: 0;
}

body[data-page="demo"] .demo-back .btn-ico {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

body[data-page="demo"] .demo-nav-title {
  display: block;
  min-width: 0;
  text-align: center;
  color: #1D2129;
  font-family: "HarmonyOS Sans SC", var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

body[data-page="demo"] .topbar-mode-switch {
  padding: 0;
  justify-content: flex-end;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="demo"] .tab-mini[aria-selected="true"] {
  display: none;
}

body[data-page="demo"] .demo-grid {
  width: 375px;
  max-width: 100%;
  grid-template-columns: 1fr;
  gap: 0;
}

body[data-page="demo"] .panel[aria-current="true"] {
  min-height: 0;
}

body[data-page="demo"] .demo-hidden-modules {
  display: none !important;
}

body[data-page="demo"] .phone-card,
body[data-page="demo"] .chat-card {
  width: 375px;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: #F3F7FF;
  box-shadow: none;
}

body[data-page="demo"] .phone-card::before,
body[data-page="demo"] .phone-card::after,
body[data-page="demo"] .chat-card::after,
body[data-page="demo"] .phone-card-head,
body[data-page="demo"] .chat-head {
  display: none !important;
}

body[data-page="demo"] .phone-body {
  height: 100%;
  min-height: 0;
  padding: 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

body[data-page="demo"] .phone-body::before,
body[data-page="demo"] .phone-body::after {
  content: none;
}

body[data-page="demo"] .phone-legacy-identity,
body[data-page="demo"] .voice-transcript-head {
  display: none !important;
}

body[data-page="demo"] .phone-body>.transcript-scroll,
body[data-page="demo"] .chat-transcript {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 0 0 16px;
  gap: 26px;
  overflow-y: auto;
}

body[data-page="demo"] .phone-body .empty-state {
  min-height: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

body[data-page="demo"] .phone-body .empty-ico {
  display: none;
}

body[data-page="demo"] .phone-body .empty-state p {
  max-width: none;
  margin: 0;
  color: #1D2129;
  font-size: 14px;
  line-height: 22px;
}

body[data-page="demo"] .bubble {
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="demo"] .bubble.user {
  max-width: 86%;
  padding: 12px;
  border-radius: 4px;
  background: #3C7EFF;
  color: #FFFFFF;
}

body[data-page="demo"] .bubble.bot {
  max-width: 100%;
  padding: 0;
  color: #1D2129;
}

body[data-page="demo"] .waveform {
  order: initial;
  flex: 0 0 auto;
  width: 168px;
  height: 72px;
  margin: 8px auto 42px;
}

body[data-page="demo"] .waveform[data-active="false"] {
  display: none;
}

body[data-page="demo"] .waveform[data-active="true"] {
  display: flex;
}

body[data-page="demo"] .phone-controls {
  order: initial;
  flex: 0 0 auto;
  margin: 0 auto 48px;
}

body[data-page="demo"] .phone-hint {
  display: none;
}

body[data-page="demo"] .voice-composer {
  flex: 0 0 auto;
  margin: 0 -16px;
  display: none;
}

body[data-page="demo"] .chat-card {
  display: flex;
  flex-direction: column;
}

body[data-page="demo"] .welcome {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 16px 16px;
}

body[data-page="demo"] .chat-transcript {
  padding: 16px 16px 16px;
}

body[data-page="demo"] .composer {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 10px 16px 26px;
}

body[data-page="demo"] .composer::before {
  bottom: 8px;
}

@media (min-width: 521px) {
  body[data-page="demo"] .demo-section {
    padding-top: 24px;
  }

  body[data-page="demo"] .demo-topbar,
  body[data-page="demo"] .phone-card,
  body[data-page="demo"] .chat-card {
    border-radius: 20px 20px 0 0;
  }

  body[data-page="demo"] .phone-card,
  body[data-page="demo"] .chat-card {
    border-radius: 0 0 20px 20px;
  }
}

body[data-page="demo"] .call-welcome {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 28px;
  color: var(--neu-copy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

body[data-page="demo"] .phone-body>.welcome {
  flex: 0 0 auto;
  padding: 0 0 16px;
  background: transparent;
}

body[data-page="demo"] .phone-body>.transcript-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 176px;
}

body[data-page="demo"] .voice-call-launch {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-page="demo"] .phone-btn.phone-btn-launch {
  width: 108px;
  height: 108px;
  border: 0;
  box-shadow: 0 24px 56px rgba(60, 126, 255, .32);
}

body[data-page="demo"] .phone-btn.phone-btn-launch svg {
  width: 42px;
  height: 42px;
}

body[data-page="demo"] .waveform {
  flex: 0 0 96px;
  height: 96px;
  gap: 10px;
  margin: 0 auto 108px;
}

body[data-page="demo"] .waveform span {
  width: 9px;
  min-height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(60, 126, 255, .96), rgba(60, 126, 255, .42));
  box-shadow: 0 10px 24px rgba(60, 126, 255, .22);
  opacity: .42;
  transition: height 80ms ease-out, opacity 100ms ease-out, transform 100ms ease-out;
  animation: none !important;
}

body[data-page="demo"] .waveform[data-active="true"] span {
  animation: none !important;
}

body[data-page="demo"] .voice-call-launch {
  flex-direction: column;
  gap: 28px;
}

body[data-page="demo"] .voice-call-launch-hint {
  max-width: none;
  margin: 0;
  color: var(--neu-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

body[data-page="demo"] .phone-controls {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
}

body[data-page="demo"] .phone-btn.primary-call,
body[data-page="demo"] .phone-btn.hangup {
  width: 56px;
  height: 56px;
}

body[data-page="demo"] .phone-btn.primary-call svg,
body[data-page="demo"] .phone-btn.hangup svg {
  width: 26px;
  height: 26px;
}

body[data-page="demo"] .phone-btn.phone-btn-launch {
  width: 108px;
  height: 108px;
}

body[data-page="demo"] .phone-btn.phone-btn-launch svg {
  width: 42px;
  height: 42px;
}

body[data-page="demo"] .call-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  color: var(--neu-muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

body[data-page="demo"] .call-divider::before,
body[data-page="demo"] .call-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(79, 84, 112, .16);
}

body[data-page="demo"] .call-divider span {
  flex: 0 0 auto;
}

/* Exact pass for NeuChat chat request screen, Figma node 680:15415. */
body[data-page="demo"] {
  --neu-view-bg: linear-gradient(180deg, rgba(228, 239, 254, 1) 0%, rgba(240, 244, 255, 1) 100%);
  --neu-frame-bg: transparent;
  --neu-copy: #202332;
  --neu-secondary: #8186A5;
  --neu-brand: #0e1c97;
  --neu-action: #0E6CFF;
  margin: 0;
  scrollbar-width: none;
}

body[data-page="demo"] * {
  scrollbar-width: none;
}

body[data-page="demo"]::-webkit-scrollbar,
body[data-page="demo"] *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-page="demo"] .demo-section {
  background: #FFFFFF;
}

body[data-page="demo"] .demo-view {
  background: var(--neu-view-bg);
}

body[data-page="demo"] .demo-topbar {
  width: 375px;
  height: auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--neu-frame-bg);
}

body[data-page="demo"] .demo-back {
  width: 24px;
  height: 24px;
  position: relative;
}


body[data-page="demo"] .demo-back::before {
  transform: rotate(45deg);
}

body[data-page="demo"] .demo-back::after {
  transform: rotate(-45deg);
}

body[data-page="demo"] .demo-nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 160px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4F5470;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

body[data-page="demo"] .topbar-mode-switch {
  margin-left: auto;
}

body[data-page="demo"] .tab-mini {
  box-sizing: border-box;
  min-width: 83px;
  min-height: 38px;
  padding: 7px 14px;
  justify-content: center;
  gap: 2px;
  border-radius: 1000px;
  background: #FFFFFF;
  color: #1A1A1A;
  font-size: 15px;
  line-height: 22px;
  border: 0;
}


body[data-page="demo"] .tab-mini svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

body[data-page="demo"] .demo-grid {
  width: 375px;
}

body[data-page="demo"] .phone-card,
body[data-page="demo"] .chat-card {
  height: min(724px, calc(100vh - 88px));
  min-height: 620px;
  background: var(--neu-frame-bg);
}

body[data-page="demo"] .chat-card {
  height: 100%;
  position: relative;
  overflow: hidden;
}


body[data-page="demo"] .welcome {
  position: relative;
  flex: 1 1 auto;
  background: var(--neu-frame-bg);
  color: var(--neu-copy);
}

body[data-page="demo"] .welcome[data-started="true"] {
  flex: 0 0 auto;
  min-height: 0;
  padding-bottom: 16px;
}

body[data-page="demo"] .welcome::after {
  content: none;
}

body[data-page="demo"] .chat-transcript>.welcome[data-started="true"] {
  width: 100%;
  padding: 0 0 16px;
}

body[data-page="demo"] .welcome h2 {
  margin: 0 0 8px;
  color: var(--neu-copy);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

body[data-page="demo"] .welcome>p {
  max-width: none;
  margin: 0 0 8px;
  color: var(--neu-copy);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

body[data-page="demo"] .logo {
  padding: 0 16px 0;
}

body[data-page="demo"] .phone-body>.logo {
  padding: 0;
  margin-bottom: 16px;
}

body[data-page="demo"] .welcome-logo {
  display: block;
  width: 97px;
  height: 20px;
}

body[data-page="demo"] .faq-block {
  display: flex !important;
  align-items: stretch;
  gap: 0;
}

body[data-page="demo"] .faq-block[hidden] {
  display: none !important;
}

body[data-page="demo"] .faq-label {
  display: none;
}

body[data-page="demo"] .faq-chips {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

body[data-page="demo"] .faq-chip {
  width: auto;
  max-width: 343px;
  min-height: 46px;
  padding: 12px;
  border: 0;
  border-radius: 8px 8px 0 8px;
  background: #FFFFFF;
  color: var(--neu-copy);
  font-family: Arial, var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  box-shadow: none;
}

body[data-page="demo"] .faq-chip:hover {
  background: #FFFFFF;
  color: var(--neu-action);
  transform: none;
}

body[data-page="demo"] .chat-transcript {
  padding: 60px 16px 16px;
  background: var(--neu-frame-bg);
}

body[data-page="demo"] .chat-card[data-chat-started="true"] .chat-transcript {
  padding: 0 16px 16px;
  row-gap: 24px;
}

body[data-page="demo"] .bubble {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  animation: none;
}

body[data-page="demo"] .bubble.user {
  max-width: 175px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px 8px 0 8px;
  background: var(--neu-action);
  font-family: Arial, var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

body[data-page="demo"] .bubble.bot {
  max-width: none;
  color: var(--neu-copy);
}

body[data-page="demo"] .card-msg {
  animation: none;
}

body[data-page="demo"] .composer {
  padding: 8px 16px 62px;
  background: var(--neu-frame-bg);
}

body[data-page="demo"] .composer-chat {
  margin-top: auto;
}

body[data-page="demo"] .composer::before {
  bottom: 8px;
  height: 4px;
  background: #000000;
}

body[data-page="demo"] .composer::after {
  content: "NeuChat can make mistakes. Check important info.";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 36px;
  color: #B6BAD2;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}


body[data-page="demo"] .chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px 16px;
}

body[data-page="demo"] .composer input {
  height: 22px;
  color: var(--neu-copy);
  font-size: 14px;
  width: 100%;
}

body[data-page="demo"] .composer input:focus,
body[data-page="demo"] .composer input:focus-visible,
body[data-page="demo"] .btn-send:focus,
body[data-page="demo"] .btn-send:focus-visible {
  outline: none;
  box-shadow: none;
}

body[data-page="demo"] .btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
  background: #EDF1F7;
  color: #B6BAD2;
  transition: background-color .22s ease, color .22s ease;
}

body[data-page="demo"] .btn-send:hover {
  background: #E4E9F2;
  color: #8186A5;
}

body[data-page="demo"] .btn-send[data-has-text="true"] {
  background: transparent;
  color: inherit;
}

body[data-page="demo"] .btn-send[data-has-text="true"]:hover {
  background: transparent;
}

body[data-page="demo"] .btn-send svg {
  display: block;
}

@media (max-width: 520px) {
  body[data-page="demo"] {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--neu-view-bg);
  }

  body[data-page="demo"] .demo-section,
  body[data-page="demo"] .container,
  body[data-page="demo"] .demo-view {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body[data-page="demo"] .demo-view {
    background: var(--neu-view-bg);
  }

  body[data-page="demo"] .container {
    display: flex;
    justify-content: center;
  }

  body[data-page="demo"] .demo-topbar {
    width: 100%;
    margin: 0;
    flex: 0 0 auto;
  }

  body[data-page="demo"] .panel[aria-current="true"] {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
  }

  body[data-page="demo"] .demo-grid {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
  }

  body[data-page="demo"] .phone-card,
  body[data-page="demo"] .chat-card {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 521px) {
  html:has(body[data-page="demo"]) {
    height: 100%;
    overflow: hidden;
  }

  body[data-page="demo"] {
    height: 100vh;
    min-height: 100dvh;
    background: #FFFFFF;
    overflow: hidden;
  }

  body[data-page="demo"] .demo-section {
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    justify-content: center;
    background: #FFFFFF;
    overflow: hidden;
  }

  body[data-page="demo"] .container {
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    justify-content: center;
    background: #FFFFFF;
  }

  body[data-page="demo"] .demo-view {
    width: min(100%, 480px);
    height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    background: var(--neu-view-bg);
  }

  body[data-page="demo"] .panel[aria-current="true"] {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    background: var(--neu-frame-bg);
  }

  body[data-page="demo"] .demo-grid {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    align-items: stretch;
    background: var(--neu-frame-bg);
  }

  body[data-page="demo"] .demo-topbar,
  body[data-page="demo"] .phone-card,
  body[data-page="demo"] .chat-card {
    border-radius: 0;
  }

  body[data-page="demo"] .demo-topbar {
    width: 100%;
    flex: 0 0 auto;
  }

  body[data-page="demo"] .phone-card,
  body[data-page="demo"] .chat-card {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

body[data-page="demo"] .call-welcome {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 28px;
  color: var(--neu-copy);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

body[data-page="demo"] .phone-body>.transcript-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-page="demo"] .waveform {
  flex: 0 0 96px;
  height: 96px;
  gap: 10px;
  margin: 0 auto 118px;
}

body[data-page="demo"] .waveform span {
  width: 9px;
  min-height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(60, 126, 255, .96), rgba(60, 126, 255, .42));
  box-shadow: 0 10px 24px rgba(60, 126, 255, .22);
  opacity: .42;
  transition: height 80ms ease-out, opacity 100ms ease-out, transform 100ms ease-out;
  animation: none !important;
}

body[data-page="demo"] .waveform[data-active="true"] span {
  animation: none !important;
}

body[data-page="demo"] .voice-call-launch {
  flex-direction: column;
  gap: 28px;
}

body[data-page="demo"] .voice-call-launch-hint {
  max-width: none;
  margin: 0;
  color: var(--neu-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

body[data-page="demo"] .phone-controls {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 2;
}

body[data-page="demo"] .phone-btn.primary-call,
body[data-page="demo"] .phone-btn.hangup {
  width: 56px;
  height: 56px;
}

body[data-page="demo"] .phone-btn.primary-call svg,
body[data-page="demo"] .phone-btn.hangup svg {
  width: 26px;
  height: 26px;
}

body[data-page="demo"] .phone-btn.phone-btn-launch {
  width: 108px;
  height: 108px;
}

body[data-page="demo"] .phone-btn.phone-btn-launch svg {
  width: 42px;
  height: 42px;
}