.sbh-test-banner {
  position: sticky;
  top: 0;
  z-index: 10050;
  padding: .45rem 1rem;
  background: #8b5a3c;
  color: #fff;
  text-align: center;
  font: 700 .78rem/1.25 system-ui, sans-serif;
  letter-spacing: .025em;
}

.sbh-test-panel {
  border: 1px solid var(--line, #d8cec2);
  border-radius: 12px;
  background: var(--card, #fffdf9);
  padding: 1rem;
  margin: .8rem 0;
}

.sbh-test-panel h2,
.sbh-test-panel h3 {
  margin: 0 0 .55rem;
}

.sbh-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .7rem;
}

.sbh-test-reward {
  border: 1px solid var(--line, #d8cec2);
  border-radius: 10px;
  padding: .8rem;
  background: #fff;
}

.sbh-test-reward button,
.sbh-test-panel button {
  min-height: 40px;
}

.sbh-test-list {
  display: grid;
  gap: .55rem;
}

.sbh-test-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: start;
  border-bottom: 1px solid var(--line, #d8cec2);
  padding: .55rem 0;
}

.sbh-test-row:last-child {
  border-bottom: 0;
}

.sbh-test-meta {
  color: var(--muted, #6f675f);
  font-size: .83rem;
}

.sbh-test-points {
  color: #8b5a3c;
  font-weight: 700;
  white-space: nowrap;
}

.sbh-test-login {
  margin-top: .8rem;
  border-top: 1px solid var(--hair, #ddd3c8);
  padding-top: .8rem;
}

.sbh-test-login input {
  width: 100%;
  margin-bottom: .5rem;
}

.sbh-test-disabled {
  opacity: .62;
  cursor: not-allowed !important;
}

.sbh-test-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .55rem;
  align-items: end;
}

.sbh-test-form label {
  display: grid;
  gap: .2rem;
  font-size: .82rem;
}

.sbh-test-form input,
.sbh-test-form select {
  width: 100%;
}

@media (max-width: 560px) {
  .sbh-test-banner {
    font-size: .7rem;
  }
  .sbh-test-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbh-test-panel *,
  .sbh-test-banner {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
