.yp-fe-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f3f9;
  color: var(--yp-muted);
}
.yp-fe-status.is-ok { background: var(--yp-mais-soft); color: #047857; }
.yp-fe-status.is-err { background: var(--yp-menos-soft); color: #be123c; }
.yp-fe-status i {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}

.yp-fe-card {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--yp-shadow-sm);
  max-width: 520px;
  margin: 0 auto;
}
.yp-fe-card h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.yp-fe-card p { margin: 0 0 22px; color: var(--yp-muted); line-height: 1.55; font-size: 14px; }

.yp-fe-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.yp-fe-field label { font-size: 13px; font-weight: 700; }
.yp-fe-field input, .yp-fe-field select {
  border: 1.5px solid var(--yp-line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}
.yp-fe-field input:focus, .yp-fe-field select:focus {
  outline: 3px solid rgba(99,102,241,.25);
  border-color: #a5b4fc;
}

.yp-fe-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.yp-fe-error {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--yp-menos-soft);
  color: #9f1239;
  font-size: 13px;
  font-weight: 600;
}
.yp-fe-error.is-on { display: block; }

.yp-fe-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.yp-fe-factor {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.yp-fe-factor b { display: block; font-size: 22px; margin-top: 4px; }
.yp-fe-factor span { font-size: 12px; color: var(--yp-muted); font-weight: 700; }
.yp-fe-factor[data-f="D"] b { color: #ef4444; }
.yp-fe-factor[data-f="I"] b { color: #f59e0b; }
.yp-fe-factor[data-f="S"] b { color: #10b981; }
.yp-fe-factor[data-f="C"] b { color: #3b82f6; }

.yp-fe-ai {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: 16px;
  padding: 18px;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  color: var(--yp-ink);
}
.yp-fe-loading { text-align: center; padding: 40px 16px; color: var(--yp-muted); font-weight: 600; }

@media (max-width: 640px) {
  .yp-fe-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
