html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.fa-hide-chrome {
  margin-bottom: 0;
}

.fa-skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 1100;
  transform: translateY(-150%);
  padding: 0.55rem 0.8rem;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #0a4f58;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.22);
}

.fa-skip-link:focus,
.fa-skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #0b8ee5;
  outline-offset: 2px;
}

.btn-outline-danger {
  color: #a51d2d;
  border-color: #a51d2d;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
  color: #ffffff;
  background-color: #a51d2d;
  border-color: #a51d2d;
}

.btn-outline-warning {
  color: #6f4500;
  border-color: #8a5a00;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus-visible {
  color: #1f1300;
  background-color: #ffd45c;
  border-color: #8a5a00;
}

/* Form Assistant — typing indicator (three bouncing dots) */
@keyframes fa-dot-bounce {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-4px); }
}

.fa-typing-dots {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.fa-typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
  background: currentColor;
  animation: fa-dot-bounce 1.3s infinite ease-in-out;
}

.fa-typing-dots span:nth-child(1) { animation-delay: 0s; }
.fa-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.fa-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.fa-stream-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475467;
}

.fa-stream-indicator-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.fa-stream-caret {
  display: inline-block;
  width: 0.6ch;
  margin-left: 1px;
  animation: fa-stream-caret-blink 1s step-end infinite;
  color: #98a2b3;
}

@keyframes fa-stream-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes fa-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.fa-status-pulse {
  animation: fa-status-pulse 1.5s ease-in-out infinite;
}

.fa-step-chip {
  display: inline-block;
  appearance: none;
  font: inherit;
  text-align: left;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  border: 1px solid #d0d7de;
  color: #344054;
  background: #f8fafc;
  cursor: pointer;
}

.fa-step-chip:focus-visible {
  outline: 3px solid #ffbe2e;
  outline-offset: 3px;
}

.fa-step-chip:disabled {
  cursor: progress;
}

.fa-step-chip.is-current {
  color: #004085;
  background: #e7f1ff;
  border-color: #9ec5fe;
}

.fa-step-chip.is-completed {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #a3cfbb;
}

.fa-step-chip.is-upcoming {
  color: #6c757d;
  background: #f8f9fa;
  border-color: #e9ecef;
}

.fa-section-header {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #667085;
  padding: 0.35rem 0.1rem 0.1rem;
  margin-top: 0.25rem;
}

.fa-step-items {
  padding: 0.25rem 0 0.15rem 0.6rem;
  border-left: 2px solid #9ec5fe;
  margin: 0.15rem 0 0.25rem 0.35rem;
}

.fa-step-field-item {
  font-size: 0.68rem;
  color: #475467;
  padding: 0.1rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fa-step-field-item.is-satisfied {
  color: #0f5132;
}

.fa-step-field-value {
  color: #98a2b3;
  font-style: italic;
}

.fa-step-item-group {
  margin: 0.15rem 0;
}

.fa-step-item-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #344054;
  padding-bottom: 0.05rem;
}

#faProgressToastHost {
  width: min(96vw, 980px);
  pointer-events: none;
}

#faProgressToastHost #faStepProgressWrap,
#faProgressToastHost #faBatchProgressWrap {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.4rem 1.1rem rgba(15, 23, 42, 0.18);
}

#faSpecAdminAccordion .accordion-button span[id^="faSpecAdminHint"] {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#faInProgressWrap {
  background: #f8fafc;
}

.fa-in-progress-item {
  background: #ffffff;
}

.fa-chat-input-group .fa-chat-mic-btn {
  min-width: 3rem;
}

.fa-chat-input-group .fa-voice-capture {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3rem;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
  border-color: #9ec5fe;
  color: #0f172a;
}

.fa-chat-input-group .fa-voice-capture.d-none {
  display: none;
}

.fa-chat-input-group .fa-voice-capture.is-processing {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-color: #a5b4fc;
}

.fa-chat-input-group .fa-voice-capture.is-connecting {
  background: #f8fafc;
  border-color: #bae6fd;
}

.fa-chat-input-group .fa-voice-capture.is-recording {
  border-color: #38bdf8;
  box-shadow: 0 0 0 0.18rem rgba(14, 165, 233, 0.14);
  animation: fa-voice-recording-surface-pulse 1.4s ease-in-out infinite;
}

.fa-chat-input-group .fa-voice-action-btn {
  min-width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fa-voice-capture-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.15rem;
  overflow-wrap: anywhere;
}

.fa-voice-capture.is-wave-only .fa-voice-capture-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fa-voice-capture-text.is-processing {
  font-weight: 600;
  animation: fa-voice-processing-pulse 1.15s ease-in-out infinite;
}

.fa-voice-wave {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 5.5rem;
  height: 1.75rem;
  overflow: hidden;
}

.fa-voice-wave-bar {
  --fa-voice-bar-scale: 0.08;
  flex: 0 0 auto;
  width: 0.14rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #111827;
  transform-origin: center;
  transform: scaleY(var(--fa-voice-bar-scale));
  transition: transform 55ms linear;
  opacity: 1;
}

.fa-chat-input-group .fa-voice-capture:not(.is-wave-only) .fa-voice-wave {
  display: none;
}

.fa-chat-input-group .fa-voice-capture.is-wave-only .fa-voice-wave {
  flex: 1 1 auto;
  min-width: 8rem;
  justify-content: center;
}

.fa-chat-input-group .fa-voice-capture.is-processing .fa-voice-wave {
  display: none;
}

.fa-chat-mic-btn.is-recording {
  color: #ffffff;
  background: #b42318;
  border-color: #b42318;
  box-shadow: 0 0 0 0.2rem rgba(180, 35, 24, 0.15);
  animation: fa-voice-recording-button-pulse 1.1s ease-in-out infinite;
}

.fa-chat-mic-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@keyframes fa-voice-processing-pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes fa-voice-recording-button-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0.16rem rgba(180, 35, 24, 0.16);
  }

  50% {
    box-shadow: 0 0 0 0.34rem rgba(180, 35, 24, 0.26);
  }
}

@keyframes fa-voice-recording-surface-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0.12rem rgba(14, 165, 233, 0.12);
  }

  50% {
    box-shadow: 0 0 0 0.22rem rgba(14, 165, 233, 0.2);
  }
}

@media (max-width: 767.98px) {
  .fa-chat-input-group .fa-voice-capture {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .fa-voice-wave {
    min-width: 0;
  }
}

.fa-admin-shell {
  min-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.fa-runtime-titlebar {
  padding: clamp(0.85rem, 0.72rem + 0.3vw, 1.3rem) clamp(1rem, 0.8rem + 0.6vw, 1.7rem) !important;
}

.fa-runtime-tabbar {
  padding-left: clamp(1rem, 0.82rem + 0.55vw, 1.6rem) !important;
  padding-right: clamp(1rem, 0.82rem + 0.55vw, 1.6rem) !important;
}

.fa-admin-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fa-runtime-body {
  gap: clamp(0.8rem, 0.65rem + 0.35vw, 1.25rem);
}

.fa-runtime-main-row {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.fa-step-sidebar {
  flex: 0 0 190px;
  width: 190px;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid #dee2e6;
  padding: 0.75rem 0.6rem 0.75rem 0.5rem;
  margin-right: 0.75rem;
}

.fa-step-sidebar #faStepProgressWrap {
  display: flex;
  flex-direction: column;
}

.fa-step-sidebar #faStepProgressSteps {
  flex-direction: column;
  flex-wrap: nowrap;
}

.fa-step-sidebar .fa-step-chip {
  display: block;
  border-radius: 0.375rem;
  white-space: normal;
  word-break: break-word;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
}

.fa-step-sidebar #faStepProgressPct {
  display: none !important;
}

.fa-step-sidebar #faStepProgressLabel {
  font-size: 0.78rem;
}

@media (max-width: 767.98px) {
  .fa-runtime-main-row {
    flex-direction: column;
  }

  .fa-step-sidebar {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
    margin-right: 0;
    margin-bottom: 0.5rem;
    max-height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .fa-step-sidebar #faStepProgressSteps {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .fa-step-sidebar .fa-step-chip {
    display: inline-block;
    border-radius: 999px;
    white-space: nowrap;
    word-break: normal;
  }

  .fa-step-sidebar #faStepProgressLabel,
  .fa-step-sidebar #faStepProgressPct,
  .fa-step-sidebar .progress {
    display: none !important;
  }

  .fa-step-sidebar .fa-step-items,
  .fa-step-sidebar .fa-section-header {
    display: none !important;
  }
}

.fa-runtime-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 0.65rem + 0.35vw, 1.25rem);
}

.fa-runtime-current-field {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  max-height: clamp(160px, 22dvh, 320px);
  overflow: auto;
  margin-bottom: 0 !important;
}

.fa-runtime-transcript {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow-y: auto;
  margin-bottom: 0 !important;
}

.fa-runtime-input-row {
  flex: 0 0 auto;
}

.fa-admin-page-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fa-admin-tab-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.fa-admin-pane-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 1.25rem;
}

.fa-admin-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fa-admin-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 1.5rem;
}

.fa-admin-scroll-region {
  min-height: 0;
  overflow: auto;
}

.fa-admin-tall-select {
  min-height: 16rem;
}

.fa-analytics-dashboard {
  margin-top: 0.75rem;
}

.fa-analytics-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.fa-analytics-kpi {
  border: 1px solid #d8dee8;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  padding: 0.85rem 0.95rem;
}

.fa-analytics-kpi-label {
  font-size: 0.75rem;
  color: #5f6b7a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fa-analytics-kpi-value {
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 700;
  color: #13263c;
  margin-top: 0.25rem;
}

.fa-analytics-kpi-subvalue {
  font-size: 0.8rem;
  color: #5f6b7a;
  margin-top: 0.2rem;
}

.fa-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.9rem;
}

.fa-analytics-panel {
  border: 1px solid #d8dee8;
  border-radius: 1rem;
  background: #fbfcfe;
  padding: 0.9rem;
}

.fa-analytics-panel-title {
  font-weight: 600;
  color: #1d2d40;
  margin-bottom: 0.65rem;
}

.fa-analytics-empty {
  color: #6b7280;
  font-size: 0.9rem;
}

.fa-analytics-column-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  align-items: end;
  gap: 0.3rem;
  min-height: 10.5rem;
}

.fa-analytics-column {
  min-width: 0;
}

.fa-analytics-column-track {
  height: 8.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #eef3f8 0%, #e2e8f0 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.fa-analytics-column-bar {
  width: 100%;
  border-radius: 0.75rem 0.75rem 0 0;
  min-height: 2px;
  background: linear-gradient(180deg, #0f7aa8 0%, #083d77 100%);
}

.fa-analytics-column-bar-muted {
  background: linear-gradient(180deg, #8aa4bf 0%, #5f6b7a 100%);
}

.fa-analytics-column-label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #5f6b7a;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fa-analytics-column-value {
  font-size: 0.72rem;
  color: #243b53;
  text-align: center;
  margin-top: 0.15rem;
}

.fa-analytics-bar-list {
  display: grid;
  gap: 0.55rem;
}

.fa-analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(6rem, 1.4fr) minmax(0, 3fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.fa-analytics-bar-label {
  font-size: 0.82rem;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-analytics-bar-track {
  height: 0.85rem;
  border-radius: 999px;
  background: #e5ebf2;
  overflow: hidden;
}

.fa-analytics-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f7aa8 0%, #22a06b 100%);
}

.fa-analytics-bar-value {
  font-size: 0.78rem;
  color: #425466;
  min-width: 3rem;
  text-align: right;
}

.fa-analytics-fallback-list {
  display: grid;
  gap: 0.45rem;
}

.fa-analytics-fallback-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5ebf2;
}

.fa-analytics-fallback-item:last-child {
  border-bottom: none;
}

.fa-analytics-fallback-text {
  color: #1f2937;
  font-size: 0.84rem;
}

.fa-analytics-fallback-count {
  color: #5f6b7a;
  font-size: 0.78rem;
  white-space: nowrap;
}

.fa-analytics-shell {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  overflow: hidden;
}

.fa-analytics-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5ebf2;
  background: #f8fafc;
}

.fa-analytics-tabs,
.fa-analytics-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.fa-analytics-tab {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.fa-analytics-tab.is-active {
  color: #0f172a;
  background: #eaf4f8;
  border-color: #7bb6c8;
}

.fa-analytics-input {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0.2rem 0.45rem;
}

.fa-analytics-input input,
.fa-analytics-input select,
.fa-analytics-select,
.fa-analytics-filter-row select {
  border: 0;
  background: transparent;
  min-height: 1.5rem;
  font-size: 0.8rem;
  color: #0f172a;
}

.fa-analytics-select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0.25rem 0.45rem;
}

.fa-analytics-input input:focus,
.fa-analytics-select:focus,
.fa-analytics-filter-row select:focus {
  outline: none;
}

.fa-analytics-input-wide input,
.fa-analytics-input-wide select {
  width: 16rem;
  max-width: min(55vw, 22rem);
}

.fa-analytics-input-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.fa-analytics-workarea {
  display: flex;
  min-height: 32rem;
}

.fa-analytics-filter-rail {
  width: 15rem;
  flex: 0 0 15rem;
  border-right: 1px solid #e5ebf2;
  background: #f8fafc;
  padding: 0.75rem;
}

.fa-analytics-filter-head {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.fa-analytics-filter-row {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}

.fa-analytics-filter-row select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0.3rem 0.4rem;
}

.fa-analytics-work-main {
  flex: 1 1 auto;
  min-width: 0;
}

.fa-analytics-table-wrap {
  overflow-x: auto;
}

.fa-analytics-run-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.fa-analytics-run-table th {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #d8dee8;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.fa-analytics-run-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

.fa-analytics-run-table tr:hover td {
  background: #f8fafc;
}

.fa-analytics-run-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fa-analytics-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
}

.fa-analytics-truncate {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-analytics-tag,
.fa-analytics-score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.fa-analytics-tag {
  color: #334155;
  background: #eef2f7;
}

.fa-analytics-tag.ok,
.fa-analytics-score.good {
  color: #116149;
  background: #dff7ed;
}

.fa-analytics-tag.warn,
.fa-analytics-score.warn {
  color: #8a5a00;
  background: #fff4ce;
}

.fa-analytics-tag.err,
.fa-analytics-score.bad {
  color: #a3162a;
  background: #fde3e8;
}

.fa-analytics-run-detail {
  background: #f8fafc;
  padding: 0.75rem;
}

.fa-analytics-run-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 1fr);
  gap: 0.75rem;
}

.fa-analytics-timeline {
  display: grid;
  gap: 0.4rem;
}

.fa-analytics-timeline-row {
  display: grid;
  grid-template-columns: 5rem 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e5ebf2;
}

.fa-analytics-timeline-kind {
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.fa-analytics-diff {
  display: grid;
  border: 1px solid #e5ebf2;
  border-radius: 6px;
  overflow: hidden;
}

.fa-analytics-diff-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid #e5ebf2;
}

.fa-analytics-diff-row:last-child {
  border-bottom: 0;
}

.fa-analytics-diff-row > div {
  padding: 0.35rem 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-analytics-diff-row.head {
  color: #64748b;
  background: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fa-analytics-llm-call {
  border: 1px solid #e5ebf2;
  border-radius: 6px;
  margin-top: 0.5rem;
  background: #fff;
}

.fa-analytics-llm-call summary {
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  font-weight: 700;
}

.fa-analytics-llm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem;
}

.fa-analytics-pre {
  max-height: 18rem;
  overflow: auto;
  border: 1px solid #e5ebf2;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0.5rem;
  white-space: pre-wrap;
  font-size: 0.72rem;
}

.fa-analytics-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fa-analytics-test-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 18rem) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e5ebf2;
}

.fa-analytics-test-card:last-child {
  border-bottom: 0;
}

.fa-analytics-test-card.has-failures {
  align-items: start;
}

.fa-analytics-test-failures {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.35rem;
  margin-top: -0.25rem;
}

.fa-analytics-test-failure {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(6rem, 0.7fr) auto minmax(12rem, 2fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border: 1px solid #f3c7d0;
  border-radius: 6px;
  background: #fff6f7;
  color: #3c4452;
  font-size: 0.78rem;
}

.fa-analytics-passbar {
  display: flex;
  gap: 1px;
  height: 1.1rem;
  overflow: hidden;
}

.fa-analytics-passbar span {
  flex: 1 1 3px;
  min-width: 2px;
  border-radius: 1px;
}

.fa-analytics-passbar .pass {
  background: #22a06b;
}

.fa-analytics-passbar .fail {
  background: #c52b45;
}

.fa-analytics-passbar .skip {
  background: #94a3b8;
}

@media (max-width: 1100px) {
  .fa-analytics-workarea,
  .fa-analytics-run-detail-grid,
  .fa-analytics-llm-body,
  .fa-analytics-test-card,
  .fa-analytics-test-failure {
    display: block;
  }

  .fa-analytics-filter-rail {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #e5ebf2;
  }
}

/* Wizard: hide global header buttons when the field-confirmation step is active */
#faWizardShell[data-current-step="fields"] #faWizardHeaderButtons {
  display: none !important;
}

/* Field editor preview panel */
.fa-admin-preview-stage {
  display: block;
  width: 100%;
}

.fa-admin-preview-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fa-admin-preview-overlay > div {
  pointer-events: auto;
  transition: opacity 0.1s;
}

.fa-admin-preview-overlay > div:hover {
  opacity: 0.65;
}

/* Accordion in admin field editor */
#faSpecFieldEditorAccordion .accordion-button {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
}

#faSpecFieldEditorAccordion .accordion-body {
  padding: 0.5rem 0.75rem 0.75rem;
}

/* ─── Flow Editor ─────────────────────────────────────── */
.fe-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}
.fe-sections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fe-section {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background: #f8f9fa;
}
.fe-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #e9ecef;
  border-radius: 0.375rem 0.375rem 0 0;
  cursor: pointer;
}
.fe-section-title {
  font-weight: 600;
  min-width: 80px;
  outline: none;
}
.fe-section-title:focus {
  background: #fff;
  padding: 0 4px;
  border-radius: 2px;
}
.fe-section-badge {
  font-size: 0.75rem;
  color: #6c757d;
  margin-left: auto;
}
.fe-section-actions {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: 0.5rem;
}
.fe-toggle {
  cursor: pointer;
  font-size: 0.7rem;
  color: #6c757d;
  width: 1rem;
  text-align: center;
  user-select: none;
}
.fe-steps {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
}
.fe-step {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
}
.fe-step.fe-dragging {
  opacity: 0.5;
}
.fe-step.fe-drag-over {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}
.fe-step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  background: #f8f9fa;
  border-radius: 0.25rem 0.25rem 0 0;
}
.fe-step-title {
  font-weight: 500;
  outline: none;
  min-width: 60px;
}
.fe-step-title:focus {
  background: #fff;
  padding: 0 4px;
  border-radius: 2px;
}
.fe-kind-badge, .fe-type-badge {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #e9ecef;
  color: #495057;
}
.fe-conditional-badge {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #fff3cd;
  color: #856404;
}
.fe-step-count {
  font-size: 0.75rem;
  color: #6c757d;
  margin-left: auto;
}
.fe-step-actions {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: 0.25rem;
}
.fe-items {
  padding: 0.375rem 0.5rem 0.5rem;
}
.fe-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.375rem;
  border-radius: 0.25rem;
  cursor: grab;
  transition: background-color 0.1s;
}
.fe-item:hover {
  background: #f0f4f8;
}
.fe-item.fe-selected {
  background: #cfe2ff;
}
.fe-item.fe-dragging {
  opacity: 0.5;
}
.fe-item.fe-drag-over {
  border-top: 2px solid #0d6efd;
}
.fe-item-drag {
  color: #adb5bd;
  cursor: grab;
  font-size: 0.8rem;
  letter-spacing: -2px;
  user-select: none;
}
.fe-item-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.fe-item-copy-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.fe-item-label {
  font-size: 0.85rem;
}
.fe-item-prompt,
.fe-item-hint,
.fe-group-child-prompt,
.fe-group-shared-prompt {
  font-size: 0.75rem;
  color: #6c757d;
}
.fe-item-prompt,
.fe-item-hint {
  margin-top: 0.125rem;
}
.fe-item-actions {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: auto;
}
.fe-field-id {
  font-size: 0.7rem;
  color: #adb5bd;
  font-family: monospace;
}
.fe-item-group {
  border: 1px dashed #adb5bd;
  border-radius: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.25rem;
}
.fe-item-ai-suggested {
  border-color: #0d6efd;
  background: #f7fbff;
}
.fe-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.375rem;
  flex-wrap: wrap;
}
.fe-group-label {
  font-weight: 500;
  font-size: 0.85rem;
  outline: none;
}
.fe-group-label:focus {
  background: #fff;
  padding: 0 4px;
  border-radius: 2px;
}
.fe-group-count {
  font-size: 0.7rem;
  color: #6c757d;
}
.fe-ai-badge,
.fe-confidence-badge,
.fe-group-type-badge {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.fe-ai-badge {
  background: #e7f1ff;
  border-color: #b6d4fe;
  color: #0a58ca;
}
.fe-confidence-badge {
  background: #ecfdf3;
  border-color: #badbcc;
  color: #146c43;
}
.fe-group-type-badge {
  background: #fff3cd;
  border-color: #ffecb5;
  color: #997404;
}
.fe-group-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: auto;
}
.fe-group-rationale {
  margin: 0 0.375rem 0.25rem 1.75rem;
  padding: 0.375rem 0.5rem;
  border-left: 3px solid #cfe2ff;
  background: #f8fbff;
  color: #495057;
  font-size: 0.78rem;
}
.fe-group-shared-prompt {
  margin: 0 0.375rem 0.25rem 1.75rem;
  padding: 0.125rem 0;
}
.fe-group-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0.375rem 0.25rem 1.75rem;
}
.fe-review-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  background: #f8d7da;
  color: #842029;
  font-size: 0.65rem;
  border: 1px solid #f1aeb5;
}
.fe-group-children {
  padding-left: 1.5rem;
}
.fe-group-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.85rem;
}
.fe-group-child-copy {
  min-width: 0;
}
.fe-group-child-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.fe-drop-zone {
  min-height: 1rem;
  font-size: 0.75rem;
  color: #adb5bd;
  text-align: center;
  padding: 0.25rem;
}
.fe-props-dialog {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.75rem;
  margin: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.fe-props-row {
  margin-bottom: 0.5rem;
}
.fe-props-row label {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
  display: block;
}
.fe-props-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.fe-step-review {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid #dbe7f3;
  border-radius: 0.375rem;
  background: #f8fbff;
}
.fe-step-review-summary {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0a58ca;
}
.fe-step-review-note {
  font-size: 0.76rem;
  color: #495057;
}

/* Runtime redesign */
.fa-runtime-page,
.fa-shell-runtime {
  --fa-ink: #18313c;
  --fa-muted: #667784;
  --fa-accent: #0e6d76;
  --fa-accent-strong: #0a4f58;
  --fa-accent-soft: #d9f1ec;
  --fa-warm: #f5ede3;
  --fa-sun: #ec9a5d;
  --fa-surface: rgba(255, 252, 247, 0.82);
  --fa-surface-strong: #fffdfa;
  --fa-surface-deep: #163644;
  --fa-border: rgba(24, 49, 60, 0.12);
  --fa-shadow-lg: 0 32px 80px rgba(24, 49, 60, 0.16);
  --fa-shadow-md: 0 16px 40px rgba(24, 49, 60, 0.12);
  --fa-radius-xl: 2rem;
  --fa-radius-lg: 1.4rem;
  --fa-radius-md: 1rem;
}

body.fa-hide-chrome,
body.fa-shell-runtime {
  margin-bottom: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(236, 154, 93, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(14, 109, 118, 0.22), transparent 28%),
    linear-gradient(180deg, #f6f0e8 0%, #eef3ef 52%, #f8f8f5 100%);
}

.fa-runtime-page {
  min-height: 100vh;
  padding: clamp(0.8rem, 1vw, 1rem);
}

.fa-runtime-page > .row,
.fa-runtime-page > .row > .col-12 {
  min-height: calc(100vh - clamp(1.6rem, 2vw, 2rem));
}

.fa-runtime-page #faRoot {
  border: 0;
  border-radius: 2rem;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.65)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(241, 248, 246, 0.82));
  box-shadow: var(--fa-shadow-lg);
  backdrop-filter: blur(20px);
}

.fa-shell-runtime .fa-admin-shell {
  max-width: 1680px;
  margin: 0 auto;
  background: transparent;
}

.fa-shell-runtime .fa-runtime-titlebar {
  position: relative;
  background:
    radial-gradient(circle at left center, rgba(236, 154, 93, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(245, 251, 249, 0.92));
  border-bottom: 1px solid rgba(24, 49, 60, 0.08) !important;
}

.fa-shell-runtime .fa-runtime-titlebar::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 0 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 109, 118, 0.35), transparent);
}

.fa-shell-runtime .fa-runtime-titlebar .small.text-uppercase {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  color: var(--fa-muted) !important;
}

.fa-shell-runtime .fa-runtime-titlebar .fw-semibold,
.fa-shell-runtime .fa-runtime-tabbar .small,
.fa-shell-runtime .fa-runtime-body,
.fa-shell-runtime .fa-runtime-body .form-control,
.fa-shell-runtime .fa-runtime-body .form-select,
.fa-shell-runtime .fa-runtime-body .btn,
.fa-shell-runtime .fa-runtime-body .form-check-label {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.fa-shell-runtime .fa-runtime-tabbar {
  background: rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(24, 49, 60, 0.08) !important;
  backdrop-filter: blur(18px);
}

.fa-shell-runtime .fa-runtime-tabbar .nav {
  gap: 0.45rem !important;
  padding-bottom: 0.15rem;
}

.fa-shell-runtime .fa-runtime-tabbar .btn,
.fa-shell-runtime .fa-runtime-preview-toggle .btn {
  border-radius: 999px;
  border-color: rgba(24, 49, 60, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--fa-ink);
  box-shadow: 0 8px 18px rgba(24, 49, 60, 0.06);
  white-space: nowrap;
}

.fa-shell-runtime .fa-runtime-tabbar .btn.active,
.fa-shell-runtime .fa-runtime-preview-toggle .btn.active,
.fa-shell-runtime .fa-runtime-tabbar .btn:hover,
.fa-shell-runtime .fa-runtime-preview-toggle .btn:hover {
  background: linear-gradient(135deg, var(--fa-accent) 0%, var(--fa-accent-strong) 100%);
  border-color: transparent;
  color: #fff;
}

.fa-shell-runtime .fa-runtime-preview-toggle {
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(22, 54, 68, 0.06);
}

.fa-shell-runtime .fa-runtime-preview-toggle .btn {
  min-width: 5.75rem;
}

.fa-shell-runtime #faActiveFormBanner {
  border-radius: 999px;
  min-height: 2.5rem;
}

.fa-shell-runtime .fa-runtime-tabbar .form-select,
.fa-shell-runtime .fa-runtime-body .form-select {
  border-radius: 999px;
  border-color: rgba(24, 49, 60, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--fa-ink);
}

.fa-shell-runtime .fa-runtime-tabbar .btn-outline-secondary,
.fa-shell-runtime .fa-runtime-titlebar .btn-outline-secondary,
.fa-shell-runtime .fa-runtime-body .btn-outline-secondary {
  border-color: rgba(24, 49, 60, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--fa-ink);
}

.fa-shell-runtime .fa-runtime-titlebar .btn-outline-primary,
.fa-shell-runtime .fa-runtime-body .btn-primary,
.fa-shell-runtime .fa-runtime-body .btn-outline-primary {
  border-color: transparent;
}

.fa-shell-runtime .fa-admin-body {
  padding: clamp(1rem, 1.1vw, 1.4rem) !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.52), rgba(242, 248, 246, 0.68)),
    radial-gradient(circle at bottom right, rgba(14, 109, 118, 0.08), transparent 24%);
}

.fa-shell-runtime .fa-runtime-main-row {
  gap: 1rem;
  align-items: stretch;
}

.fa-shell-runtime .fa-step-sidebar {
  flex: 0 0 18rem;
  width: 18rem;
  margin-right: 0;
  padding: 1rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--fa-radius-xl);
  background:
    linear-gradient(180deg, rgba(18, 54, 68, 0.96), rgba(10, 34, 47, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
  box-shadow: var(--fa-shadow-md);
}

.fa-shell-runtime .fa-step-sidebar #faStepProgressLabel,
.fa-shell-runtime .fa-step-sidebar #faStepProgressPct,
.fa-shell-runtime .fa-step-sidebar .fa-section-header,
.fa-shell-runtime .fa-step-sidebar .fa-step-item-group-label,
.fa-shell-runtime .fa-step-sidebar .fa-step-field-item,
.fa-shell-runtime .fa-step-sidebar .fa-step-field-value {
  color: rgba(241, 248, 246, 0.82);
}

@media (min-width: 768px) {
  .fa-shell-runtime .fa-step-sidebar #faStepProgressPct[data-fa-review-edit-active="true"] {
    display: block !important;
    margin-top: 0.45rem;
    color: rgba(241, 248, 246, 0.92);
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
  }
}

.fa-shell-runtime .fa-step-sidebar .progress {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.fa-shell-runtime .fa-step-sidebar .progress-bar {
  background: linear-gradient(90deg, #f0b06f 0%, #75d3c6 100%);
}

.fa-shell-runtime .fa-step-sidebar .fa-step-chip {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 249, 247, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fa-shell-runtime .fa-step-sidebar .fa-step-chip.is-current {
  background: linear-gradient(135deg, rgba(236, 154, 93, 0.96), rgba(14, 109, 118, 0.96));
  color: #fff;
}

.fa-shell-runtime .fa-step-sidebar .fa-step-chip.is-completed {
  background: rgba(117, 211, 198, 0.18);
  color: #d6fff8;
}

.fa-shell-runtime .fa-step-sidebar .fa-step-items {
  border-left-color: rgba(117, 211, 198, 0.5);
}

.fa-shell-runtime .fa-runtime-workspace {
  min-width: 0;
  gap: 1rem;
}

.fa-shell-runtime .fa-runtime-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--fa-radius-xl);
  background:
    radial-gradient(circle at top left, rgba(236, 154, 93, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(14, 109, 118, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(241, 248, 246, 0.9));
  box-shadow: var(--fa-shadow-md);
  transition: padding 160ms ease, gap 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.fa-shell-runtime .fa-runtime-hero.is-condensed {
  padding: 0.85rem 1rem;
  gap: 0.75rem;
}

.fa-shell-runtime .fa-runtime-hero-copy,
.fa-shell-runtime .fa-runtime-hero-panel {
  position: relative;
  z-index: 1;
}

.fa-shell-runtime .fa-runtime-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 54, 68, 0.08);
  color: var(--fa-accent-strong);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fa-shell-runtime .fa-runtime-hero-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 1.25rem + 1vw, 2.8rem);
  line-height: 1.08;
  color: var(--fa-ink);
}

.fa-shell-runtime .fa-runtime-hero-text {
  max-width: 40rem;
  margin: 0.95rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fa-muted);
}

.fa-shell-runtime .fa-runtime-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: calc(var(--fa-radius-xl) - 0.45rem);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(24, 49, 60, 0.06);
}

.fa-shell-runtime .fa-runtime-hero-panel-title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fa-muted);
}

.fa-shell-runtime .fa-runtime-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fa-shell-runtime .fa-runtime-hero-actions .btn {
  flex: 1 1 10rem;
  min-height: 3rem;
  border-radius: 1.1rem;
  border-color: rgba(24, 49, 60, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--fa-ink);
  justify-content: center;
}

.fa-shell-runtime .fa-runtime-hero-actions .btn:hover,
.fa-shell-runtime .fa-runtime-hero-actions .btn:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fa-accent) 0%, var(--fa-accent-strong) 100%);
  color: #fff;
}

.fa-shell-runtime .fa-runtime-hero-notes {
  display: grid;
  gap: 0.7rem;
}

.fa-shell-runtime .fa-runtime-hero-note {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: inset 0 0 0 1px rgba(24, 49, 60, 0.06);
}

.fa-shell-runtime .fa-runtime-hero-note-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fa-accent-strong);
}

.fa-shell-runtime .fa-runtime-hero-note-value {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--fa-ink);
}

.fa-shell-runtime .fa-runtime-current-field,
.fa-shell-runtime .fa-runtime-transcript {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: var(--fa-radius-xl) !important;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.95), rgba(255, 255, 255, 0.88)) !important;
  box-shadow: var(--fa-shadow-md);
}

.fa-shell-runtime .fa-runtime-current-field {
  padding: 1.15rem !important;
  overflow: hidden;
}

.fa-shell-runtime .fa-runtime-current-field::before,
.fa-shell-runtime .fa-runtime-transcript::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(236, 154, 93, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(14, 109, 118, 0.09), transparent 28%);
  pointer-events: none;
}

.fa-shell-runtime #faCurrentFieldPanelMessage {
  position: relative;
  z-index: 1;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 1rem + 0.55vw, 1.75rem);
  line-height: 1.2;
  color: var(--fa-ink);
}

.fa-shell-runtime #faCurrentFieldPanelControl {
  position: relative;
  z-index: 1;
}

.fa-shell-runtime #faCurrentFieldPanelControl .form-control,
.fa-shell-runtime #faCurrentFieldPanelControl .form-select,
.fa-shell-runtime #faTranscript .form-control,
.fa-shell-runtime #faTranscript .form-select {
  border-radius: 1rem;
  border-color: rgba(24, 49, 60, 0.12);
  min-height: 3rem;
}

.fa-shell-runtime #faCurrentFieldPanelControl .btn,
.fa-shell-runtime #faTranscript .btn {
  border-radius: 999px;
}

.fa-shell-runtime .fa-runtime-transcript {
  padding: 1rem !important;
  min-height: 26rem;
}

.fa-shell-runtime .fa-transcript-turn {
  padding: 0.15rem 0;
}

.fa-shell-runtime .fa-transcript-entry {
  position: relative;
  z-index: 1;
  max-width: min(48rem, 92%);
  padding: 1rem 1.15rem;
  border-radius: 1.5rem;
  line-height: 1.55;
  box-shadow: 0 16px 30px rgba(24, 49, 60, 0.08);
}

.fa-shell-runtime .fa-transcript-entry [data-fa="text"] {
  white-space: pre-wrap;
}

.fa-shell-runtime .fa-transcript-turn-user {
  display: flex;
  justify-content: flex-end;
}

.fa-shell-runtime .fa-transcript-turn-user .fa-transcript-entry {
  background: linear-gradient(135deg, var(--fa-accent) 0%, var(--fa-accent-strong) 100%);
  color: #fff;
  border-bottom-right-radius: 0.55rem;
}

.fa-shell-runtime .fa-transcript-turn-assistant .fa-transcript-entry {
  background: rgba(255, 253, 250, 0.94);
  color: var(--fa-ink);
  border: 1px solid rgba(24, 49, 60, 0.08);
  border-bottom-left-radius: 0.55rem;
}

.fa-shell-runtime #faTranscript > .mb-2.d-flex.justify-content-start > div,
.fa-shell-runtime #faCurrentFieldPanelControl > .mb-2.d-flex.justify-content-start > div {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(24, 49, 60, 0.08) !important;
  border-radius: 1.45rem !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 30px rgba(24, 49, 60, 0.08);
  padding: 0.95rem !important;
}

.fa-shell-runtime .fa-runtime-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--fa-radius-xl) - 0.2rem);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: var(--fa-shadow-md);
}

.fa-shell-runtime .fa-runtime-input-row > * {
  border-radius: 999px !important;
}

.fa-shell-runtime .fa-runtime-input-row .form-control {
  min-height: 3.35rem;
  border-color: transparent;
  background: rgba(241, 246, 244, 0.8);
  box-shadow: inset 0 0 0 1px rgba(24, 49, 60, 0.08);
}

.fa-shell-runtime .fa-runtime-input-row .form-control:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 109, 118, 0.3), 0 0 0 0.2rem rgba(14, 109, 118, 0.12);
}

.fa-shell-runtime .fa-chat-input-group .fa-chat-mic-btn,
.fa-shell-runtime .fa-runtime-input-row .btn-primary,
.fa-shell-runtime .fa-runtime-input-row .btn-outline-secondary {
  min-height: 3.35rem;
  min-width: 3.35rem;
}

.fa-shell-runtime .fa-runtime-input-row .btn-primary {
  background: linear-gradient(135deg, var(--fa-sun) 0%, var(--fa-accent) 100%);
  border: 0;
  box-shadow: 0 16px 26px rgba(14, 109, 118, 0.2);
}

.fa-shell-runtime .fa-chat-input-group .fa-chat-mic-btn {
  border-color: rgba(24, 49, 60, 0.08);
}

.fa-shell-runtime .fa-chat-input-group .fa-voice-capture {
  min-height: 3.35rem;
  border-radius: 1.35rem !important;
}

.fa-shell-runtime #faStatus {
  color: var(--fa-muted);
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-runtime-main-row {
  max-width: 28rem;
  margin: 0 auto;
  flex-direction: column;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-runtime-workspace {
  min-height: 70vh;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-runtime-hero {
  grid-template-columns: 1fr;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-runtime-transcript,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-runtime-current-field,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-runtime-input-row,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar {
  border-radius: 2.1rem !important;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar {
  width: 100%;
  max-height: none;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar #faStepProgressSteps {
  flex-direction: row;
  flex-wrap: nowrap;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar .fa-step-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar .fa-step-items,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar .fa-section-header,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar .progress,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar #faStepProgressLabel,
.fa-shell-runtime[data-fa-runtime-preview-mode="mobile"] .fa-step-sidebar #faStepProgressPct {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .fa-shell-runtime .fa-step-sidebar {
    flex-basis: 15.75rem;
    width: 15.75rem;
  }
}

@media (max-width: 991.98px) {
  .fa-runtime-page {
    padding: 0;
  }

  .fa-runtime-page > .row,
  .fa-runtime-page > .row > .col-12 {
    min-height: 100vh;
  }

  .fa-runtime-page #faRoot {
    border-radius: 0;
  }

  .fa-shell-runtime .fa-admin-body {
    padding: 0.85rem !important;
  }

  .fa-shell-runtime .fa-runtime-main-row {
    flex-direction: column;
  }

  .fa-shell-runtime .fa-runtime-hero {
    grid-template-columns: 1fr;
  }

  .fa-shell-runtime .fa-step-sidebar {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .fa-shell-runtime .fa-step-sidebar #faStepProgressSteps {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .fa-shell-runtime .fa-step-sidebar .fa-step-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .fa-shell-runtime .fa-step-sidebar .fa-step-items,
  .fa-shell-runtime .fa-step-sidebar .fa-section-header,
  .fa-shell-runtime .fa-step-sidebar .progress,
  .fa-shell-runtime .fa-step-sidebar #faStepProgressLabel,
  .fa-shell-runtime .fa-step-sidebar #faStepProgressPct {
    display: none !important;
  }

  .fa-shell-runtime .fa-runtime-transcript {
    min-height: 22rem !important;
  }

  .fa-shell-runtime .fa-runtime-input-row {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767.98px) {
  .fa-shell-runtime .fa-runtime-titlebar,
  .fa-shell-runtime .fa-runtime-tabbar {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .fa-shell-runtime .fa-runtime-tabbar .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.py-2,
  .fa-shell-runtime .fa-runtime-titlebar .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3 {
    align-items: flex-start !important;
  }

  .fa-shell-runtime .fa-runtime-tabbar .form-select,
  .fa-shell-runtime .fa-runtime-tabbar .btn,
  .fa-shell-runtime .fa-runtime-preview-toggle .btn {
    min-height: 2.5rem;
  }

  .fa-shell-runtime .fa-runtime-current-field,
  .fa-shell-runtime .fa-runtime-transcript {
    border-radius: 1.5rem !important;
  }

  .fa-shell-runtime .fa-runtime-hero {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .fa-shell-runtime .fa-runtime-hero-title {
    font-size: clamp(1.45rem, 1.18rem + 1vw, 2rem);
  }

  .fa-shell-runtime .fa-runtime-hero-panel {
    padding: 0.85rem;
    border-radius: 1.2rem;
  }

  .fa-shell-runtime .fa-runtime-hero-actions .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .fa-shell-runtime .fa-transcript-entry {
    max-width: 100%;
  }

  .fa-shell-runtime .fa-runtime-input-row {
    gap: 0.55rem;
    padding: 0.55rem;
  }

  .fa-shell-runtime .fa-chat-input-group .fa-chat-mic-btn,
  .fa-shell-runtime .fa-runtime-input-row .btn-primary,
  .fa-shell-runtime .fa-runtime-input-row .btn-outline-secondary,
  .fa-shell-runtime .fa-runtime-input-row .form-control {
    min-height: 3rem;
  }
}
