.eb-content-intro h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eb-fp-tool {
  margin: 22px 0 32px;
}

.eb-fp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.eb-fp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ede9fe;
  color: #4c1d95;
  font-size: 13px;
  font-weight: 600;
}

.eb-fp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.eb-fp-btn {
  appearance: none;
  border: 1px solid #5b21b6;
  background: #5b21b6;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.eb-fp-btn:hover {
  background: #4c1d95;
}

.eb-fp-btn-ghost {
  background: #ffffff;
  color: #312e81;
  border-color: #c7d2fe;
}

.eb-fp-btn-ghost:hover {
  background: #eef2ff;
}

.eb-fp-copy-msg {
  font-size: 12px;
  color: #4338ca;
}

.eb-fp-scoreboard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.eb-fp-score-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.eb-fp-score-id code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #312e81;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 8px;
}

.eb-fp-score-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eb-fp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.eb-fp-pill-ok {
  background: #d1fae5;
  color: #065f46;
}

.eb-fp-pill-warn {
  background: #fef3c7;
  color: #92400e;
}

.eb-fp-pill-fail {
  background: #fee2e2;
  color: #991b1b;
}

.eb-fp-summary {
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.eb-fp-summary-ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.eb-fp-summary-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.eb-fp-summary-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #0f172a;
}

.eb-fp-summary-head span {
  font-size: 13px;
  font-weight: 600;
}

.eb-fp-summary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eb-fp-cta-primary,
.eb-fp-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.eb-fp-cta-primary {
  background: #4f46e5;
  color: #ffffff !important;
}

.eb-fp-cta-secondary {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
}

.eb-fp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.eb-fp-nav a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155 !important;
  font-size: 12px;
  text-decoration: none !important;
}

.eb-fp-nav a:hover {
  border-color: #6366f1;
  color: #4338ca !important;
}

.eb-fp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.eb-fp-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  min-width: 0;
  scroll-margin-top: 20px;
}

.eb-fp-card-wide {
  grid-column: 1 / -1;
}

.eb-fp-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #0f172a;
}

.eb-fp-card dl {
  margin: 0;
}

.eb-fp-row {
  padding: 9px 0;
  border-top: 1px solid #f1f5f9;
}

.eb-fp-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.eb-fp-row dt {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 3px;
}

.eb-fp-row dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #0f172a;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.eb-fp-tone-ok {
  color: #047857 !important;
}

.eb-fp-tone-warn {
  color: #b45309 !important;
  font-weight: 600;
}

.eb-fp-tone-fail {
  color: #dc2626 !important;
  font-weight: 700;
}

.eb-fp-pointer-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eb-fp-pointer-hint {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

@media (max-width: 760px) {
  .eb-fp-grid {
    grid-template-columns: 1fr;
  }

  .eb-fp-card {
    padding: 14px;
  }

  .eb-fp-scoreboard {
    padding: 12px 14px;
  }
}
