#faro-iforms-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  background: #2e7df0;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#faro-iforms-fab:hover { background: #1f60c2; }

#faro-iforms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#faro-iforms-overlay.faro-open { display: flex; }

.faro-iforms-modal {
  width: min(960px, 95vw);
  max-height: 92vh;
  overflow: hidden;
  background: #ffffff;
  color: #1d2530;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.faro-iforms-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e6ecf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1d3a72, #2e7df0);
  color: #fff;
}
.faro-iforms-header h2 { margin: 0; font-size: 1rem; }
.faro-iforms-close {
  background: transparent; border: none; color: #fff;
  font-size: 22px; cursor: pointer; line-height: 1;
}
.faro-iforms-stepper {
  display: flex;
  padding: 12px 20px;
  background: #f1f5fb;
  font-size: .85rem;
  color: #5a6b80;
  gap: 10px;
}
.faro-iforms-stepper .step {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e3eaf3;
}
.faro-iforms-stepper .step.active { background: #2e7df0; color: #fff; }
.faro-iforms-body {
  padding: 18px 20px;
  overflow: auto;
  flex: 1;
}
.faro-iforms-footer {
  padding: 12px 20px;
  border-top: 1px solid #e6ecf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.faro-iforms-btn {
  background: #2e7df0;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
}
.faro-iforms-btn.secondary { background: #d8e1ec; color: #1d2530; }
.faro-iforms-btn[disabled] { opacity: .5; cursor: not-allowed; }

.faro-iforms-drop {
  border: 2px dashed #b3c2d6;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #5a6b80;
  background: #f8fafc;
}
.faro-iforms-drop.dragging { background: #e6f0ff; border-color: #2e7df0; }

.faro-iforms-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faro-iforms-field.wide { grid-column: 1 / -1; }
.faro-iforms-section { margin-bottom: 18px; }
.faro-iforms-section h3 {
  margin: 0 0 10px;
  font-size: .95rem;
  color: #1d3a72;
  border-bottom: 1px solid #e6ecf2;
  padding-bottom: 6px;
}
.faro-complex-summary {
  margin: 0 0 4px;
  font-size: .8rem;
  color: #5a6b80;
}
.faro-iforms-field select[multiple] { min-height: 88px; }
.faro-catalog-empty {
  margin: 0;
  font-size: .8rem;
  color: #8a5d00;
}
.faro-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow: auto;
  padding: 4px 0;
}
.faro-checkbox-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: .8rem;
  font-weight: normal;
  text-transform: none;
  color: #1d2530;
}
.faro-checkbox-item input { margin-top: 2px; }
.faro-iforms-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e6ecf2;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .85rem;
}
.faro-iforms-field label { font-weight: 600; color: #5a6b80; font-size: .75rem; text-transform: uppercase; }
.faro-iforms-field input, .faro-iforms-field textarea, .faro-iforms-field select {
  border: 1px solid #d6dee8;
  border-radius: 5px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: .85rem;
  background: #fff;
}
.faro-badges { display: flex; gap: 4px; align-items: center; }
.faro-badge {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: .68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
}
.faro-badge.llm { background: #fff3d6; color: #8a5d00; }
.faro-badge.deterministic { background: #d6f4dd; color: #006633; }
.faro-badge.filename { background: #e0e6f4; color: #244091; }
.faro-badge.user { background: #d6e6ff; color: #244091; }
.faro-badge.missing { background: #ffd6d6; color: #8a0011; }

.faro-conf {
  height: 4px; width: 60px; background: #e0e6f4;
  border-radius: 2px; overflow: hidden;
}
.faro-conf > span { display: block; height: 100%; background: #2e7df0; }

.faro-iforms-warnings {
  background: #fff3d6;
  color: #8a5d00;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 12px;
}
.faro-iforms-error {
  background: #ffd6d6;
  color: #8a0011;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 12px;
}
