.hero-copy > p strong {
  color: var(--ink);
  font-weight: 750;
}

.eyebrow-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgb(22 163 74 / 10%);
}

.eyebrow {
  gap: 8px;
}

.feature-card {
  position: relative;
}

.feature-card.feature-call {
  background: #f8fbff;
  box-shadow: inset 0 3px 0 var(--blue);
}

.feature-badge {
  position: absolute;
  top: 24px;
  right: 22px;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.channel-status.offline-state {
  border-color: #fde68a;
  background: var(--amber-soft);
  color: var(--amber);
}

.channel-status.offline-state i {
  background: #f59e0b;
}

.connected-tag {
  background: var(--green-soft);
  color: var(--green);
}

.status-dot.online {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgb(22 163 74 / 12%);
}

#device-visual.connected {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  border-radius: 50%;
}

#device-visual.connected::after {
  content: "✓";
  color: var(--green);
  font-size: 54px;
  font-weight: 800;
}

.table-attachment {
  display: block;
  width: max-content;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}

.empty-table,
.empty-day {
  padding: 32px !important;
  color: var(--muted);
  text-align: center;
}

.button:disabled {
  cursor: default;
  opacity: .68;
  transform: none;
}

/* Guided onboarding */
#onboarding-view {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgb(29 78 216 / 8%), transparent 34%),
    var(--canvas);
}

.onboarding-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
}

.onboarding-help {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.onboarding-help button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 700;
}

.onboarding-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.onboarding-progress {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin: 0 auto 56px;
}

.onboarding-progress > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
}

.onboarding-progress > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.onboarding-progress p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.onboarding-progress b {
  color: inherit;
  font-size: 12px;
}

.onboarding-progress small {
  font-size: 10px;
}

.onboarding-progress > i {
  height: 1px;
  margin: 0 16px;
  background: var(--line-strong);
}

.onboarding-progress > div.active,
.onboarding-progress > div.complete {
  color: var(--blue);
}

.onboarding-progress > div.active > span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 5px rgb(29 78 216 / 8%);
}

.onboarding-progress > div.complete > span {
  border-color: #bbf7d0;
  background: var(--green-soft);
  color: transparent;
}

.onboarding-progress > div.complete > span::after {
  content: "✓";
  color: var(--green);
}

.onboarding-progress > i.active {
  background: var(--blue);
}

.onboarding-step {
  display: none;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .72fr);
  align-items: center;
  gap: 96px;
  animation: onboarding-in .24s ease;
}

.onboarding-step.active {
  display: grid;
}

@keyframes onboarding-in {
  from { opacity: 0; transform: translateY(5px); }
}

.onboarding-copy-block h1,
.onboarding-success h1 {
  max-width: 640px;
  margin: 14px 0 0;
  font: 650 46px/1.06 var(--display);
  letter-spacing: -.045em;
}

.onboarding-step h1:focus { outline: none; }

.onboarding-copy-block > p,
.onboarding-success > p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.step-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 490px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.trust-note > svg {
  width: 25px;
  height: 25px;
  padding: 5px;
  border-radius: 50%;
  background: var(--green-soft);
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
}

.trust-note > span {
  display: flex;
  flex-direction: column;
}

.trust-note b { font-size: 13px; }
.trust-note small { margin-top: 2px; color: var(--muted); }

.onboarding-card {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgb(15 23 42 / 8%);
}

.onboarding-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.company-avatar.large {
  width: 42px;
  height: 42px;
}

.onboarding-card-head > div {
  display: flex;
  flex-direction: column;
}

.onboarding-card-head b { font-size: 14px; }
.onboarding-card-head small { color: var(--muted); font-size: 12px; }

.onboarding-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.onboarding-card input,
.onboarding-card select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  background: #fff;
}

.onboarding-card input:focus,
.onboarding-card select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(29 78 216 / 10%);
}

.secure-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.qr-instructions {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.qr-instructions li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-instructions li > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.qr-instructions p { margin: 0; color: var(--ink-2); font-size: 14px; }

.qr-onboarding-card { text-align: center; }
.qr-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.qr-card-top > span { display: flex; align-items: center; gap: 7px; color: var(--green); font-weight: 750; }
.qr-card-top i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.onboarding-qr { width: 250px; height: 250px; margin: 28px auto 20px; border: 12px solid #fff; outline: 1px solid var(--line); border-radius: 8px; }
.qr-onboarding-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.qr-onboarding-card > .link-button { margin-top: 12px; }

.onboarding-success.active {
  display: flex;
  max-width: 820px;
  margin: 20px auto 0;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 0 0 10px rgb(22 163 74 / 6%);
}

.success-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.onboarding-success > p { margin-inline: auto; }

.capability-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.capability-grid > span {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.capability-grid svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.capability-grid b { color: var(--ink-2); font-size: 12px; }
.success-actions { display: flex; gap: 10px; margin-top: 30px; }
.onboarding-success > small { margin-top: 18px; color: var(--muted); }

/* Journeys */
.journey-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.journey-stats article {
  display: flex;
  flex-direction: column;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.journey-stats article:last-child { border: 0; }
.journey-stats span { color: var(--muted); font-size: 12px; }
.journey-stats strong { margin-top: 5px; font: 650 28px var(--display); letter-spacing: -.035em; }
.journey-stats small { margin-top: 1px; color: var(--green); font-size: 11px; }

.journey-layout {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(590px, 1fr);
  gap: 18px;
}

.journey-list-panel { align-self: start; overflow: hidden; }
.journey-list { display: flex; flex-direction: column; }

.journey-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.journey-item:last-child { border-bottom: 0; }
.journey-item:hover { background: var(--surface-2); }
.journey-item.active { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.journey-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 6px; background: #fff; color: var(--blue); }
.journey-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.journey-item p { display: flex; min-width: 0; flex-direction: column; margin: 0; }
.journey-item b { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.journey-item small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.journey-item em { padding: 3px 6px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 10px; font-style: normal; font-weight: 750; }

.journey-canvas { min-height: 720px; overflow: hidden; }
.journey-canvas-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.journey-canvas-head > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 8px; }
.journey-canvas-head .live-dot { grid-row: 1 / 3; }
.journey-canvas-head b { font-size: 13px; }
.journey-canvas-head small { color: var(--muted); font-size: 10px; }
.journey-canvas-head > div:last-child { display: flex; gap: 7px; }

.flow-board {
  min-height: 650px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 34px 20px 44px;
  background-color: #f8fafc;
  background-image: radial-gradient(#dbe4f0 1px, transparent 1px);
  background-size: 18px 18px;
}

#journey-custom-steps { display: contents; }

.flow-node {
  width: min(470px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(15 23 42 / 5%);
}

.flow-node > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.flow-node > span svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.flow-node p { display: flex; flex-direction: column; margin: 0; }
.flow-node p small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.flow-node p b { margin-top: 2px; font-size: 13px; }
.flow-node p em { margin-top: 2px; color: var(--muted); font-size: 11px; font-style: normal; }
.flow-node > button { border: 0; background: transparent; color: var(--muted); }
.flow-node.entry > span { background: var(--green-soft); color: var(--green); }
.flow-node.call { border-color: #93c5fd; box-shadow: 0 0 0 3px rgb(29 78 216 / 6%); }
.flow-node.call > span { background: var(--blue); color: #fff; }
.flow-node.audio > span { background: #f5f3ff; color: #7c3aed; }

.flow-line {
  position: relative;
  width: 1px;
  height: 38px;
  display: block;
  background: #94a3b8;
}

.flow-line::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid #64748b;
  border-bottom: 1px solid #64748b;
  transform: rotate(45deg);
}

.flow-line b {
  position: absolute;
  top: 10px;
  left: 12px;
  width: max-content;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.add-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px dashed #93c5fd;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.add-flow-step svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Multichannel forms and API */
.attachment-field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.attachment-field legend {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.attachment-field legend small { color: var(--muted); font-weight: 400; }
.attachment-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.attachment-options button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.attachment-options button span { color: var(--ink-2); font-size: 10px; font-weight: 650; }
.attachment-options button.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgb(29 78 216 / 8%); }
.attachment-field > small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }

.api-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.api-capabilities span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
}

.docs-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  overflow: auto;
}

.docs-endpoint span { padding: 3px 5px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.docs-endpoint code { font-size: 11px; white-space: nowrap; }
.docs-code { padding: 13px; border-radius: 7px; background: var(--navy); color: #cbd5e1; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-hint { display: block; margin: -7px 0 14px; color: var(--muted); font-size: 10px; }

.journey-templates {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.journey-templates > button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.journey-templates > button.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgb(29 78 216 / 7%); }
.journey-templates svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.9; }
.journey-templates span { display: flex; flex-direction: column; }
.journey-templates b { font-size: 12px; }
.journey-templates small { margin-top: 2px; color: var(--muted); font-size: 10px; }

@media (max-width: 1080px) {
  .onboarding-step { gap: 42px; }
  .journey-layout { grid-template-columns: 1fr; }
  .journey-list-panel { display: block; }
}

@media (max-width: 760px) {
  .app-sidebar { z-index: 65; }
  .onboarding-header { height: 62px; padding: 0 16px; }
  .onboarding-help span { display: none; }
  .onboarding-shell { width: min(100% - 30px, 1120px); padding-top: 28px; }
  .onboarding-progress { grid-template-columns: auto 1fr auto 1fr auto; margin-bottom: 36px; }
  .onboarding-progress p { display: none; }
  .onboarding-progress > i { margin: 0 8px; }
  .onboarding-step { grid-template-columns: 1fr; gap: 28px; }
  .onboarding-copy-block h1, .onboarding-success h1 { font-size: 36px; }
  .onboarding-copy-block > p, .onboarding-success > p { font-size: 15px; }
  .onboarding-card { padding: 21px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .success-actions { width: 100%; flex-direction: column; }
  .journey-stats { grid-template-columns: 1fr; }
  .journey-stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .journey-canvas-head { align-items: flex-start; flex-direction: column; }
  .journey-canvas-head > div:last-child { width: 100%; }
  .journey-canvas-head .button { flex: 1; padding-inline: 9px; }
  .flow-board { padding-inline: 12px; }
  .attachment-options { grid-template-columns: repeat(2, 1fr); }
  .feature-badge { top: 18px; }
}
