.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  padding: 0.55rem 1rem;
  background: #10141c;
  color: #c5cedb;
  border-bottom: 1px solid rgba(232, 237, 246, 0.1);
  font: 0.88rem/1.4 "Instrument Sans", "Segoe UI", sans-serif;
}
.demo-toolbar a, .demo-toolbar button {
  color: #d5e2ff;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.demo-toolbar span { color: #8b97a8; }
.lab-page h1 { font-size: clamp(2.05rem, 4vw, 3.15rem); }
.lab-page .section { padding: 2.6rem 0 3.4rem; }
.lab-page .lede { margin-top: 0; }
.lab-home .hero { padding-bottom: 1.4rem; }
.lab-home .section { padding-top: 0.4rem; }
.demo-note { color: var(--muted, #8b97a8); font-size: 0.92rem; }
.feature {
  padding: 1.5rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(158, 184, 255, 0.38);
  background:
    radial-gradient(520px 200px at 100% 0%, rgba(142, 175, 255, 0.16), transparent 62%),
    #141924;
}
.feature h2 { max-width: 18ch; }
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
}
.journey li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(142, 175, 255, 0.1);
  color: #d7e3ff;
  font-size: 0.92rem;
}
.journey li + li::before {
  content: "→";
  margin-right: 0.45rem;
  color: #8eafff;
}
h2.group-label { font-size: 0.78rem; letter-spacing: 0.14em; }
.group-label {
  margin: 1.8rem 0 0.75rem;
  color: var(--muted, #a8b3c5);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[hidden] { display: none !important; }
.lab-page .apex-ask {
  position: static;
  width: min(23.5rem, calc(100% - 8vw));
  margin: 0.5rem 4vw 1.5rem auto;
}
.demo-card, .record, .dash-panel, .stage {
  border: 1px solid var(--line, rgba(232, 237, 246, 0.12));
  border-radius: 1.1rem;
  background: rgba(21, 26, 36, 0.9);
  padding: 1.15rem 1.2rem;
}
.demo-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.demo-card h2, .demo-card h3, .record h3 { margin: 0.15rem 0 0.4rem; }
.demo-card p { margin: 0; color: var(--muted, #a8b3c5); }
.demo-card .btn, .stage .actions, .record .actions { margin-top: auto; padding-top: 1rem; }
.demo-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: rgba(142, 175, 255, 0.12);
  color: #d5e2ff;
  margin-bottom: 0.75rem;
}
.demo-icon svg { display: block; }
button[data-done] {
  margin-left: 0.35rem;
  border: 1px solid var(--line, rgba(232, 237, 246, 0.2));
  background: transparent;
  color: inherit;
  border-radius: 999px;
  min-height: 1.8rem;
  padding: 0 0.6rem;
  cursor: pointer;
}
.skip-site {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-site:focus { left: 1rem; top: 0.6rem; background: #fff; color: #111; padding: 0.4rem 0.7rem; z-index: 6; }
.is-embed .demo-toolbar, .is-embed .skip-site { display: none; }
.site-bn .chat-log, .site-bn .record {
  background: #10241e;
  color: #f4f7f4;
  border-radius: 0.9rem;
  padding: 0.75rem;
}
.site-bn .chat-log .bot { background: #1a332b; color: #f4f7f4; }
.site-bn .chat-log .user { color: #f4f7f4; }
.site-bn .suggestions button {
  color: #12352c;
  border-color: rgba(18, 53, 44, 0.22);
  background: #fff;
}
.site-bn .chat-form textarea { background: #fff; color: #1c2430; }
.site-bn .demo-note, .site-bn .record .demo-note { color: #d5e0da; }
.flow, .guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.flow li, .guide-steps li {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(232, 237, 246, 0.12));
  color: var(--muted, #a8b3c5);
  background: transparent;
}
.flow li strong { font-weight: 650; }
.flow li.is-done, .guide-steps li.is-done { color: #d7e3ff; border-color: rgba(142, 175, 255, 0.45); }
.guide-steps li.is-current {
  color: #0c1020;
  background: linear-gradient(135deg, #9eb8ff, #c4b6ff);
  border-color: transparent;
}
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 1rem 0; }
.metric { padding: 0.75rem 0.8rem; border-radius: 0.9rem; background: rgba(142, 175, 255, 0.08); }
.metric b { display: block; font-size: 1.45rem; letter-spacing: -0.03em; }
.metric span { color: var(--muted, #a8b3c5); font-size: 0.86rem; }
.biz-switch { max-width: 22rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.6rem; }
.filters label { flex: 1 1 9rem; }
.table-wrap { overflow-x: auto; }
table.demo-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.demo-table th, .demo-table td {
  text-align: left;
  padding: 0.6rem 0.35rem;
  border-bottom: 1px solid var(--line, rgba(232, 237, 246, 0.12));
  vertical-align: middle;
}
.demo-table tr.is-focus { background: rgba(142, 175, 255, 0.08); }
.demo-table button:not(.btn) {
  background: none;
  border: 0;
  color: #d7e3ff;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: rgba(232, 237, 246, 0.08);
}
.status-new { color: #d7e3ff; }
.status-contacted, .status-review { color: #c4b6ff; }
.status-scheduled, .status-approved, .status-open { color: #b7f0cf; }
.status-progress { color: #9fd4ff; }
.status-completed, .status-done { color: #d5dbe8; }
.confirm { text-align: center; padding: 0.4rem 0 0.2rem; }
.check {
  width: 3rem; height: 3rem; margin: 0 auto 0.7rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(183, 240, 207, 0.16); color: #b7f0cf;
}
.site-bn .check, .site-rw .check { background: #e7f6ee; color: #145c45; }
.extra { margin-top: 1rem; }
.extra summary { cursor: pointer; font-weight: 650; }
[data-tasks] li, [data-job-list] li {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; align-items: center;
  justify-content: space-between; padding: 0.65rem 0;
  border-bottom: 1px solid var(--line, rgba(232, 237, 246, 0.12));
}
.confirm-title { margin: 0 0 0.4rem; font-size: 1.35rem; }
ul.plain { margin: 0.6rem 0 1rem; padding-left: 1.1rem; }
ul.plain li + li { margin-top: 0.35rem; }
.status-closed, .status-done { color: #a8b3c5; }
.stack { display: grid; gap: 0.75rem; }
.stack h2 { font-size: 1.05rem; margin: 0.4rem 0; }
.stack ul, .record ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.stack li, .record li { margin: 0.28rem 0; }
.stack button, .record button.linkish {
  margin-left: 0.35rem;
}
.empty {
  padding: 0.8rem 0;
  color: var(--muted, #a8b3c5);
}
pre {
  white-space: pre-wrap;
  font: 0.92rem/1.45 "Instrument Sans", "Segoe UI", sans-serif;
  margin: 0.4rem 0 0;
}
.stage-nav, .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.device {
  border: 1px solid var(--line, rgba(232, 237, 246, 0.12));
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0d1118;
}
.device-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line, rgba(232, 237, 246, 0.12));
}
.segment { display: inline-flex; padding: 0.15rem; border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.segment button {
  border: 0;
  background: transparent;
  color: var(--muted, #a8b3c5);
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
}
.segment button[aria-pressed="true"] {
  background: linear-gradient(135deg, #9eb8ff, #c4b6ff);
  color: #0c1020;
}
.preview-frame {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  border: 0;
  background: #f4f7f4;
}
.preview-frame.is-phone { width: min(390px, 100%); margin: 0.6rem auto; border-radius: 1rem; }
.chat-shell { display: grid; gap: 0.75rem; }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.suggestions button {
  border: 1px solid var(--line, rgba(232, 237, 246, 0.16));
  background: transparent;
  color: #d7e3ff;
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 14rem;
  max-height: 22rem;
  overflow: auto;
  padding: 0.2rem;
}
.chat-log p { margin: 0; max-width: min(36rem, 92%); padding: 0.7rem 0.8rem; border-radius: 0.9rem; }
.chat-log .bot { background: #171c28; }
.chat-log .user { align-self: flex-end; background: rgba(142, 175, 255, 0.16); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: end; }
.chat-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quiz fieldset { border: 0; margin: 0; padding: 0; }
.quiz legend { font-weight: 680; margin-bottom: 0.45rem; }
.quiz label { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.4rem 0; }
.lab-form label, .bn-form label, .rw-form label { display: block; margin: 0.65rem 0 0.25rem; font-weight: 650; }
.lab-form input, .lab-form select, .lab-form textarea,
.dash-panel input, .dash-panel select, .filters input, .filters select,
.bn-form input, .bn-form select, .bn-form textarea,
.rw-form input, .rw-form select, .rw-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(232, 237, 246, 0.16);
  background: #0d1118;
  color: #edf1f7;
  font: inherit;
}
.bn-form input, .bn-form select, .bn-form textarea,
.rw-form input, .rw-form select, .rw-form textarea,
.site-bn input, .site-rw input, .site-bn select, .site-rw select, .site-bn textarea, .site-rw textarea {
  background: #fff;
  color: #1c2430;
  border-color: rgba(28, 36, 48, 0.16);
}
.site-bn, .site-rw {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #1c2430;
  line-height: 1.5;
}
.site-bn { background: #f3f6f3; }
.site-rw { background: #f6f3ee; }
.bn-bar, .rw-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 5vw;
}
.bn-bar { background: #12352c; color: #f4f7f4; }
.rw-bar { background: #2b241c; color: #f6f3ee; }
.bn-bar strong, .rw-bar strong { letter-spacing: 0.01em; }
.bn-bar nav, .rw-bar nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.bn-bar a, .rw-bar a { color: inherit; text-decoration: none; }
.bn-hero, .rw-hero { padding: 2.4rem 0 1rem; }
.bn-hero h1, .rw-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  color: #17211c;
}
.rw-hero h1 { color: #241c14; }
.hero-split, .split-2 { display: grid; gap: 1.2rem; align-items: center; }
.bn-wrap, .rw-wrap { width: min(1080px, calc(100% - 8vw)); margin: 0 auto 2.2rem; }
.kicker-site { margin: 0 0 0.45rem; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }
.site-bn .kicker-site { color: #3d6b5c; }
.site-rw .kicker-site { color: #7a5b3a; }
.bn-grid, .rw-grid { display: grid; gap: 0.8rem; }
.bn-card, .rw-card, .bn-form, .rw-form {
  background: #fff;
  border-radius: 1rem;
  padding: 1.05rem 1.1rem 1.15rem;
  box-shadow: 0 12px 32px rgba(24, 32, 24, 0.06);
}
.scene { width: 100%; height: auto; display: block; border-radius: 1rem; }
.site-bn .btn, .site-rw .btn, .bn-form .btn, .rw-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 680;
  border: 1px solid transparent;
  cursor: pointer;
}
.site-bn .btn-primary, .bn-form .btn-primary { background: #12352c; color: #f4f7f4; }
.site-rw .btn-primary, .rw-form .btn-primary { background: #2b241c; color: #f6f3ee; }
.site-bn .btn-ghost, .site-rw .btn-ghost { background: transparent; border-color: rgba(28, 36, 48, 0.2); color: inherit; }
[data-calc] label { display: block; margin-top: 0.65rem; font-weight: 650; }
[data-calc] input[type="number"] { max-width: 8rem; }
.calc { font-size: 1.7rem; margin: 0.35rem 0 0; letter-spacing: -0.03em; }
.gallery { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
.swatch { min-height: 140px; border-radius: 0.9rem; display: flex; align-items: end; padding: 0.8rem; color: white; font-weight: 680; }
.site-foot { width: min(1080px, calc(100% - 8vw)); margin: 0 auto; padding: 0.4rem 0 2.4rem; color: #5d6a62; }
.is-embed #desk, .is-embed #status { display: none; }
@media (max-width: 720px) {
  .chat-form { grid-template-columns: 1fr; }
  .bn-bar, .rw-bar { align-items: flex-start; flex-direction: column; }
  .guide-steps li { font-size: 0.82rem; }
  .demo-table thead { display: none; }
  .demo-table tr { display: grid; gap: 0.2rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line, rgba(232, 237, 246, 0.12)); }
  .demo-table td { border: 0; padding: 0.12rem 0; }
  .stage-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; }
}
@media (min-width: 800px) {
  .demo-grid.cols-2, .hero-split, .split-2 { grid-template-columns: 1fr 1fr; }
  .bn-grid, .rw-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-layout { grid-template-columns: 1.4fr 0.8fr; }
}
.dash-layout { display: grid; gap: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  .card, .demo-card, .feature { transition: none; }
}
