.bnrf-wrap {
  width: 100%;
  margin: 24px auto;
  display: flex;
  justify-content: center;
  color: var(--bnrf-text, #101828);
  font-family: var(--bnrf-font-family, inherit);
  font-size: var(--bnrf-font-size, 16px);
}

.bnrf-card {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  background: var(--bnrf-card-bg, #fff);
  border: 1px solid var(--bnrf-card-border, #d0d5dd);
  border-radius: var(--bnrf-radius, 24px);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
}

.bnrf-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  color: var(--bnrf-text, #101828);
}

.bnrf-head p,
.bnrf-option-desc,
.bnrf-option-meta,
.bnrf-results-note,
.bnrf-result-meta,
.bnrf-message {
  color: var(--bnrf-muted, #667085);
}

.bnrf-fieldset { padding: 0; margin: 0; border: 0; }
.bnrf-fieldset legend { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.bnrf-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bnrf-option { position: relative; display: block; }
.bnrf-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bnrf-option-ui {
  display: block;
  border-radius: calc(var(--bnrf-radius, 24px) - 6px);
  border: 1px solid var(--bnrf-card-border, #d0d5dd);
  background: #fff;
  padding: 18px;
  transition: all .2s ease;
}
.bnrf-option input:checked + .bnrf-option-ui {
  border-color: var(--bnrf-accent, #2847b8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bnrf-accent, #2847b8) 14%, transparent);
  transform: translateY(-1px);
}
.bnrf-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.bnrf-option-title { display: block; font-size: 16px; font-weight: 700; color: var(--bnrf-text, #101828); }
.bnrf-option-meta { display: block; margin-top: 10px; font-size: 13px; }

.bnrf-status {
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f2f4f7;
  color: #344054;
}
.bnrf-status--building { background: #eff8ff; color: #175cd3; }
.bnrf-status--planned { background: #ecfdf3; color: #027a48; }
.bnrf-status--research { background: #fff7ed; color: #c2410c; }
.bnrf-status--done { background: #f0fdf4; color: #15803d; }

.bnrf-other-wrap { margin-top: 18px; }
.bnrf-other-wrap label { display: block; font-weight: 700; margin-bottom: 8px; }
.bnrf-other-wrap textarea {
  width: 100%; border: 1px solid var(--bnrf-card-border, #d0d5dd); border-radius: 16px; padding: 14px 16px;
  font: inherit; resize: vertical; min-height: 120px; background: #fff;
}

.bnrf-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bnrf-button {
  border: 0; border-radius: 999px; padding: 14px 20px; font: inherit; font-weight: 700;
  color: var(--bnrf-button-text, #fff); background: var(--bnrf-accent, #2847b8); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.bnrf-button:hover { transform: translateY(-1px); background: var(--bnrf-accent-hover, #1f3da7); }
.bnrf-button.is-loading, .bnrf-button:disabled { opacity: .75; cursor: wait; }
.bnrf-message.is-success { color: #0f7a33; }
.bnrf-message.is-error { color: #b42318; }

.bnrf-results {
  display: none;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--bnrf-card-border, #d0d5dd);
}
.bnrf-results.is-visible { display: block; }
.bnrf-results-inner h3 { margin: 0 0 8px; }
.bnrf-results-list { display: grid; gap: 14px; margin-top: 16px; }
.bnrf-result-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px;
}
.bnrf-result-percent { font-weight: 700; color: var(--bnrf-text, #101828); }
.bnrf-progress {
  width: 100%; height: 10px; background: #edf2f7; border-radius: 999px; overflow: hidden;
}
.bnrf-progress span {
  display: block; height: 100%; background: var(--bnrf-accent, #2847b8); border-radius: 999px;
}

@media (max-width: 767px) {
  .bnrf-card { padding: 20px; border-radius: 20px; }
  .bnrf-options { grid-template-columns: 1fr; }
  .bnrf-option-top, .bnrf-result-top { flex-direction: column; align-items: flex-start; }
}
