body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.min-vh-app {
  min-height: calc(100vh - 116px);
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.sidebar-panel {
  min-height: calc(100vh - 57px);
}

.chat-page {
  min-height: calc(100vh - 180px);
}

.chat-history {
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.98));
}

.chat-bubble {
  max-width: min(85%, 420px);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
}

.emulator-screen {
  min-height: 520px;
  border: 1px dashed rgba(13, 110, 253, 0.35);
}

.card {
  border-radius: 1rem;
}

.list-group-item {
  border-radius: 0.75rem !important;
}

.hero-metric-card {
  backdrop-filter: blur(8px);
}

.workflow-story-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
}

.workflow-story-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.08);
  pointer-events: none;
}

.workflow-story-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.12);
  font-size: 1.5rem;
}

.workflow-step {
  position: relative;
  padding-left: 4rem;
}

.workflow-step + .workflow-step {
  margin-top: 1rem;
}

.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2.2rem;
  bottom: -0.9rem;
  border-left: 2px dashed rgba(13, 110, 253, 0.3);
}

.workflow-step-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.12);
  box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.12);
}

.workflow-step-title {
  font-weight: 600;
  color: #212529;
}

.workflow-step-copy {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: #6c757d;
}

.workflow-story-note {
  position: relative;
  z-index: 1;
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.06);
}

.workflow-diagram {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.06), rgba(13, 202, 240, 0.08));
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.workflow-diagram-lane {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.workflow-diagram-node {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.16);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.08);
  text-align: center;
}

.workflow-diagram-node strong {
  display: block;
  color: #212529;
  font-size: 0.95rem;
}

.workflow-diagram-node span {
  display: block;
  margin-top: 0.2rem;
  color: #6c757d;
  font-size: 0.8rem;
}

.workflow-diagram-arrow {
  align-self: center;
  color: #0d6efd;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(90deg);
}

.workflow-diagram-feedback {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.84rem;
  color: #0d6efd;
  font-weight: 600;
}

.workflow-diagram-feedback span {
  color: #6c757d;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .emulator-screen {
    min-height: 420px;
  }

  .chat-history {
    max-height: 380px;
  }
}
