.workflow-tabs {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: 440px;
}
.workflow-tablist {
  display: grid;
  gap: 6px;
  align-content: start;
}
.workflow-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.workflow-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 6px;
  transition: background 160ms ease, color 160ms ease;
}
.workflow-tab:hover {
  border-color: var(--line);
}
.workflow-tab.is-active {
  color: var(--text);
  background: rgba(118, 215, 201, 0.06);
  border-color: rgba(118, 215, 201, 0.16);
  box-shadow: 0 0 24px rgba(118, 215, 201, 0.06);
}
.workflow-tab.is-active span {
  color: var(--bg);
  background: var(--theme);
}
.workflow-panels {
  position: relative;
}
.workflow-panel-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  min-height: 420px;
}
.panel-mini-ui,
.workflow-side-stack {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-mini-ui {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}
.panel-mini-ui > strong {
  font-size: 1rem;
  line-height: 1.5;
}
.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--theme);
  border-radius: 4px;
  transition: width 420ms ease;
}
.mini-grid,
.panel-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.panel-insight-grid span {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(118, 215, 201, 0.08);
  border-radius: var(--radius);
}
.panel-insight-grid b {
  display: block;
  margin-bottom: 6px;
  color: var(--theme);
  font-size: 1.06rem;
  line-height: 1.1;
.workflow-side-stack {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}
.workflow-side-note,
.workflow-side-action {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.workflow-side-note span,
.workflow-side-action span {
  color: var(--theme);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}
.workflow-side-note strong {
  font-size: 0.92rem;
  line-height: 1.5;
}
.workflow-side-action {
  background: rgba(118, 215, 201, 0.045);
  border-color: rgba(118, 215, 201, 0.14);
}
.workflow-side-action strong {
  color: var(--theme);
}
.fabe-list {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.fabe-list li {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fabe-list b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.82rem;
}
.profile-grid-small {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.profile-grid-small span {
  padding: 8px 6px;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
}
.chat-preview {
  position: relative;
  padding: 14px;
  background: rgba(118, 215, 201, 0.045);
  border: 1px solid rgba(118, 215, 201, 0.12);
  border-radius: var(--radius);
}
.chat-preview p {
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.5;
}
.script-carousel {
  position: relative;
  min-height: 200px;
}
.script-track {
  position: relative;
}
.script-slide {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.script-slide .mini-label {
  margin-bottom: 2px;
}
.chat-bubble {
  position: relative;
  max-width: 82%;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  border-radius: 12px;
}
.chat-bubble.client {
  align-self: start;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-bubble.advisor {
  align-self: end;
  color: #08080a;
  background: var(--theme);
  border-bottom-right-radius: 4px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}
.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--muted-2);
  font-size: 1.18rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.carousel-dots button.is-active {
  background: var(--theme);
  box-shadow: 0 0 18px rgba(118, 215, 201, 0.2);
}
.carousel-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.carousel-button:hover,
.carousel-dots button.is-active {
  border-color: rgba(118, 215, 201, 0.34);
  background: rgba(118, 215, 201, 0.16);
}
