.bnw-kf {
  --kf-accent: 53, 81, 61;
  --kf-soft: 243, 246, 239;
  --kf-line: 215, 221, 208;
  --kf-text: 34, 34, 34;
  --kf-muted: 110, 110, 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  color: rgb(var(--kf-text));
}
.bnw-kf__intro { text-align: center; max-width: 720px; margin: 0 auto; }
.bnw-kf__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--kf-accent));
  font-weight: 600;
}
.bnw-kf__heading { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.2; }
.bnw-kf__sub { margin: 10px 0 0; color: rgb(var(--kf-muted)); font-size: 1rem; line-height: 1.5; }

.bnw-kf__panel {
  background: rgb(var(--kf-soft));
  border: 1px solid rgb(var(--kf-line));
  border-radius: 16px;
  padding: 20px 24px 28px;
  min-height: 220px;
}
.bnw-kf__progress { height: 4px; border-radius: 4px; background: rgba(var(--kf-accent), 0.12); overflow: hidden; }
.bnw-kf__progress-bar { display: block; height: 100%; width: 0; background: rgb(var(--kf-accent)); transition: width 0.3s ease; }
.bnw-kf__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin: 8px 0 4px; }
.bnw-kf__counter { margin: 0; font-size: 0.8125rem; color: rgb(var(--kf-muted)); flex: 1; text-align: center; }
.bnw-kf__back,
.bnw-kf__restart {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: inherit; font-size: 0.875rem; color: rgb(var(--kf-accent)); text-decoration: underline; text-underline-offset: 3px;
}
.bnw-kf__back[hidden], .bnw-kf__restart[hidden] { display: inline-block; visibility: hidden; }

.bnw-kf__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.bnw-kf__step[hidden], .bnw-kf__results[hidden], .bnw-kf__loading[hidden] { display: none; }
.bnw-kf__question { display: block; width: 100%; padding: 0; margin: 4px 0 18px; text-align: center; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }

.bnw-kf__options { display: grid; gap: 12px; }
.bnw-kf__options--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin: 0 auto; }
.bnw-kf__options--rows { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 1000px; margin: 0 auto; }
.bnw-kf__options--tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.bnw-kf__option {
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid rgb(var(--kf-line)); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.bnw-kf__option:hover { border-color: rgb(var(--kf-accent)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
.bnw-kf__option:focus-visible { outline: 2px solid rgb(var(--kf-accent)); outline-offset: 2px; }
.bnw-kf__option[aria-pressed="true"] { border-color: rgb(var(--kf-accent)); box-shadow: inset 0 0 0 1px rgb(var(--kf-accent)); }

.bnw-kf__option--card { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.bnw-kf__thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: rgb(var(--kf-soft)); }
.bnw-kf__thumb img, .bnw-kf__tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnw-kf__thumb--any { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: rgb(var(--kf-accent)); }
.bnw-kf__option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bnw-kf__option-label { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.bnw-kf__option-desc { font-size: 0.8125rem; color: rgb(var(--kf-muted)); line-height: 1.4; }
.bnw-kf__option--row { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 64px; }

.bnw-kf__option--tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: center; }
.bnw-kf__tile-media { display: block; aspect-ratio: 4 / 5; background: rgb(var(--kf-soft)); overflow: hidden; }
.bnw-kf__tile-media.bnw-kf__thumb--any { display: flex; font-size: 2rem; }
.bnw-kf__tile-label { display: block; padding: 10px 8px; font-weight: 600; font-size: 0.875rem; line-height: 1.3; }

.bnw-kf__results { text-align: center; }
.bnw-kf__results-meta { margin: -8px 0 16px; color: rgb(var(--kf-muted)); font-size: 0.9375rem; }
.bnw-kf__loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px 0; color: rgb(var(--kf-muted)); }
.bnw-kf__spinner { width: 20px; height: 20px; border: 2px solid rgba(var(--kf-accent), 0.2); border-top-color: rgb(var(--kf-accent)); border-radius: 50%; animation: bnw-kf-spin 0.8s linear infinite; }
@keyframes bnw-kf-spin { to { transform: rotate(360deg); } }
.bnw-kf__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; text-align: left; }
.bnw-kf__grid:empty { display: none; }
.bnw-kf__grid > li { min-width: 0; flex: 0 0 calc((100% - 48px) / 4); }
.bnw-kf__actions { margin-top: 24px; }
.bnw-kf__cta { min-width: 240px; }

@media (max-width: 959px) {
  .bnw-kf__options--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bnw-kf__grid { gap: 12px; }
  .bnw-kf__grid > li { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 599px) {
  .bnw-kf { gap: 16px; }
  .bnw-kf__panel { padding: 14px 12px 20px; border-radius: 12px; }
  .bnw-kf__question { font-size: 1.0625rem; margin-bottom: 14px; }
  .bnw-kf__options--cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bnw-kf__thumb { flex-basis: 52px; width: 52px; height: 52px; }
  .bnw-kf__options--rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bnw-kf__option--row { min-height: 56px; }
  .bnw-kf__options--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bnw-kf__tile-label { font-size: 0.75rem; padding: 6px 4px; }
  .bnw-kf__cta { width: 100%; min-width: 0; }
}
