/* Hexium bug bounty. Scoped to .bb-page so none of the legacy site styles
   leak in. Colours and spacing follow the 2021 canvas: flat surfaces,
   hairline borders, Gotham type and the blue/green accents. */

/* The 2021 theme normally loads these with nav2020.css. The bug bounty is a
   standalone page, so it carries the same four weights with it. */
@font-face {
  font-family: "HCo Gotham SSm";
  src: url("/theme2021/rbx/css/38e00f7de6f417aa3a458560a15e2b8a-GothamSSm-Light.woff2") format("woff2"),
       url("/theme2021/rbx/css/5c779fadf28d7893108d5b896e092e0d-GothamSSm-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HCo Gotham SSm";
  src: url("/theme2021/rbx/css/6eafc48312528e2515d622428b6b95cc-GothamSSm-Book.woff2") format("woff2"),
       url("/theme2021/rbx/css/713e0b3a604ff4e44f55f9d1c100e8b5-GothamSSm-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HCo Gotham SSm";
  src: url("/theme2021/rbx/css/66d562e3299ee732a53db150038c026e-GothamSSm-Medium.woff2") format("woff2"),
       url("/theme2021/rbx/css/2ed7693f8cf4d79466dd604c35502f76-GothamSSm-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HCo Gotham SSm";
  src: url("/theme2021/rbx/css/3c102ace52ea35b16da4383819acfa38-GothamSSm-Bold.woff2") format("woff2"),
       url("/theme2021/rbx/css/fe0e9885efc341b17f7e600781493f69-GothamSSm-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.bb-page {
  --bb-bg: #f2f4f5;
  --bb-surface: #ffffff;
  --bb-surface-muted: #e8ebed;
  --bb-thumb: #e8ebed;
  --bb-border: #dfe3e5;
  --bb-border-strong: #c7cbce;
  --bb-text: #393b3d;
  --bb-text-secondary: #606162;
  --bb-text-muted: #757575;
  --bb-accent: #00a2ff;
  --bb-green: #00b06f;
  --bb-green-hover: #00965f;
  --bb-gold: #9a5a00;
  --bb-gold-soft: #fff4df;
  --bb-red: #d63a3a;
  --bb-red-soft: #fdecec;
  --bb-moderate: #0079b8;
  --bb-moderate-soft: #e8f6ff;
  --bb-critical: #7d1f1f;
  --bb-critical-soft: #f8e1e1;
  background: var(--bb-bg);
  color: var(--bb-text);
  min-height: 100vh;
  font-family: "HCo Gotham SSm", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bb-page.dark-theme,
html.r2021-dark .bb-page,
html.dark .bb-page,
html.obc2016 .bb-page {
  --bb-bg: #232527;
  --bb-surface: #2e3032;
  --bb-surface-muted: #191b1d;
  --bb-thumb: #393b3d;
  --bb-border: #45484b;
  --bb-border-strong: #5b5f63;
  --bb-text: #ffffff;
  --bb-text-secondary: #bdbebe;
  --bb-text-muted: #a3a5a7;
  --bb-accent: #32b5ff;
  --bb-green: #00b06f;
  --bb-green-hover: #00c97f;
  --bb-gold: #ffb43a;
  --bb-gold-soft: rgba(255, 180, 58, 0.12);
  --bb-red: #ff6b6b;
  --bb-red-soft: rgba(255, 107, 107, 0.12);
  --bb-moderate: #6bc9ff;
  --bb-moderate-soft: rgba(50, 181, 255, 0.14);
  --bb-critical: #ff9b9b;
  --bb-critical-soft: rgba(255, 107, 107, 0.18);
  color-scheme: dark;
}

.bb-page *,
.bb-page *::before,
.bb-page *::after {
  box-sizing: border-box;
}

.bb-page a {
  color: var(--bb-accent);
  text-decoration: none;
}

.bb-page a:hover {
  text-decoration: none;
}

.bb-page a:focus-visible,
.bb-page button:focus-visible {
  outline: 2px solid var(--bb-accent);
  outline-offset: 2px;
}

.bb-page h1,
.bb-page h2,
.bb-page h3,
.bb-page h4 {
  color: var(--bb-text);
  font-family: inherit;
}

.bb-page button,
.bb-page input,
.bb-page select,
.bb-page textarea {
  font-family: inherit;
}

/* ------------------------------------------------------------------- top nav */

.bb-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--bb-border-strong);
  background: #dee1e3;
}

.bb-page.dark-theme .bb-topnav {
  border-bottom-color: #0f1011;
  background: #191b1d;
}

.bb-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  height: 48px;
  margin: 0 auto;
  padding: 0 24px;
}

.bb-topnav-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 30px;
}

.bb-topnav-brand:hover {
  opacity: 0.85;
}

.bb-topnav-logo {
  display: block;
  width: 135px;
  height: 30px;
  object-fit: contain;
}

.bb-topnav-links {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 2px;
}

.bb-topnav .bb-topnav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--bb-text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.bb-topnav .bb-topnav-link:hover {
  color: var(--bb-text);
}

.bb-topnav .bb-topnav-link-active {
  border-bottom-color: var(--bb-accent);
  color: var(--bb-text);
}

.bb-topnav .bb-topnav-link-disabled {
  opacity: 0.55;
  color: var(--bb-text-muted);
  cursor: not-allowed;
}

.bb-topnav .bb-topnav-link-disabled:hover {
  color: var(--bb-text-muted);
}

/* -------------------------------------------------------------------- shell */

.bb-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.bb-report-shell {
  max-width: 880px;
}

.bb-program {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bb-border);
}

.bb-program-main {
  min-width: 0;
}

.bb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--bb-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.bb-breadcrumb a {
  color: var(--bb-text-secondary);
}

.bb-breadcrumb a:hover {
  color: var(--bb-accent);
}

.bb-program h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.bb-program-copy {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--bb-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.bb-program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  color: var(--bb-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bb-program-meta strong {
  color: var(--bb-text);
  font-weight: 600;
}

.bb-program-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  padding-bottom: 2px;
}

.bb-program-note {
  color: var(--bb-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.bb-program-identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bb-text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

.bb-program-identity strong {
  color: var(--bb-text);
  font-weight: 700;
}

.bb-program-identity:hover {
  color: var(--bb-accent);
}

.bb-program-identity:hover strong {
  color: var(--bb-accent);
}

.bb-program-avatar {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--bb-border);
  border-radius: 50%;
  background: var(--bb-thumb);
  object-fit: cover;
}

.bb-program-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------------------------------------------------------------------- buttons */

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.bb-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bb-btn-primary {
  background: var(--bb-green);
  border-color: var(--bb-green);
  color: #fff;
}

.bb-btn-primary:hover:not(:disabled) {
  background: var(--bb-green-hover);
  border-color: var(--bb-green-hover);
  color: #fff;
}

.bb-btn-secondary {
  background: transparent;
  border-color: var(--bb-border-strong);
  color: var(--bb-text);
}

.bb-btn-secondary:hover:not(:disabled) {
  border-color: var(--bb-text-secondary);
  color: var(--bb-text);
}

/* The page link colour is set on .bb-page a, so anchor-shaped buttons need
   their own colour rules rather than inheriting the blue link colour. */
.bb-page a.bb-btn-primary,
.bb-page a.bb-btn-primary:hover {
  color: #fff;
}

.bb-page a.bb-btn-secondary,
.bb-page a.bb-btn-secondary:hover,
.bb-page a.bb-btn-danger,
.bb-page a.bb-btn-danger:hover {
  color: var(--bb-text);
}

.bb-btn-danger {
  background: transparent;
  border-color: var(--bb-border-strong);
  color: var(--bb-text-secondary);
}

.bb-btn-danger:hover:not(:disabled) {
  border-color: var(--bb-red);
  color: var(--bb-red);
}

.bb-btn-small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.bb-spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bb-spin 0.7s linear infinite;
}

@keyframes bb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------- notice */

.bb-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--bb-border);
  border-radius: 4px;
  background: var(--bb-surface);
  color: var(--bb-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.bb-notice-success {
  border-color: rgba(0, 176, 111, 0.4);
  background: rgba(0, 176, 111, 0.08);
  color: var(--bb-text);
}

.bb-notice-error {
  border-color: rgba(214, 58, 58, 0.4);
  background: var(--bb-red-soft);
  color: var(--bb-text);
}

.bb-notice-close {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
}

.bb-notice-close:hover {
  opacity: 1;
}

/* --------------------------------------------------------------- claim modal */

.bb-claim-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: bb-modal-fade 0.18s ease-out;
}

.bb-claim-modal-card {
  width: min(100%, 440px);
  padding: 18px;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: bb-modal-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.bb-claim-modal-card h2 {
  margin: 2px 0 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
}

.bb-claim-modal-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--bb-surface-muted);
}

.bb-claim-modal-image {
  display: flex;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 7px;
  background: var(--bb-thumb);
}

.bb-claim-modal-image img {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
}

.bb-claim-modal-copy {
  min-width: 0;
}

.bb-claim-modal-copy p {
  margin: 0;
  color: var(--bb-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.bb-claim-modal-copy strong {
  color: var(--bb-text);
  font-weight: 700;
}

.bb-claim-modal-note {
  margin-top: 5px !important;
  color: var(--bb-text-muted) !important;
  font-size: 12px !important;
}

.bb-claim-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.bb-claim-modal-actions .bb-btn {
  flex: 1;
}

@keyframes bb-modal-fade {
  from {
    opacity: 0;
  }
}

@keyframes bb-modal-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }
}

/* -------------------------------------------------------------------- sections */

.bb-section {
  margin-top: 34px;
  scroll-margin-top: 24px;
}

.bb-main > .bb-section:first-child {
  margin-top: 0;
}

.bb-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bb-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.bb-section-copy {
  margin: 4px 0 0;
  color: var(--bb-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.bb-section-count {
  color: var(--bb-text-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bb-section-balance {
  color: var(--bb-gold);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bb-main {
  min-width: 0;
  margin-top: 26px;
}

.bb-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 26px;
}

.bb-overview-grid > .bb-section {
  margin-top: 0;
}

.bb-leaderboard-aside {
  position: sticky;
  top: 18px;
  min-width: 0;
}

.bb-leaderboard-aside .bb-section {
  margin-top: 0;
}

.bb-panel {
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  background: var(--bb-surface);
}

.bb-panel[id] {
  scroll-margin-top: 24px;
}

.bb-panel-pad {
  padding: 18px 20px;
}

/* ---------------------------------------------------------------------- rewards */

.bb-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bb-grid-empty {
  grid-column: 1 / -1;
}

.bb-reward {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bb-border);
  border-radius: 4px;
  background: var(--bb-surface);
}

.bb-reward-thumb {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  min-height: 96px;
  background: var(--bb-thumb);
  border-right: 1px solid var(--bb-border);
}

.bb-reward-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.bb-reward-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
}

.bb-reward-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bb-reward-cost {
  margin-top: 4px;
  color: var(--bb-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.bb-reward-cost span {
  color: var(--bb-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.bb-reward-stock {
  margin-top: 4px;
  color: var(--bb-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.bb-reward .bb-btn {
  width: 100%;
  height: 30px;
  margin-top: 8px;
  padding: 0 8px;
  font-size: 12px;
}

.bb-reward-owned {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-top: 8px;
  padding: 0 8px;
  border: 1px solid var(--bb-green);
  border-radius: 8px;
  background: transparent;
  color: var(--bb-green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.bb-reward-owned-tab {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bb-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ leaderboard */

.bb-leaderboard {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-leaderboard-panel {
  padding: 14px 16px;
}

.bb-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bb-border);
}

.bb-leaderboard-row:last-child {
  border-bottom: 0;
}

.bb-leaderboard-rank {
  flex: 0 0 20px;
  color: var(--bb-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bb-leaderboard-person {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--bb-text);
}

.bb-page a.bb-leaderboard-person {
  color: var(--bb-text);
}

.bb-leaderboard-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--bb-border);
  border-radius: 50%;
  background: var(--bb-thumb);
  object-fit: cover;
}

.bb-leaderboard-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-page a.bb-leaderboard-person:hover,
.bb-page a.bb-leaderboard-person:hover .bb-leaderboard-name {
  color: var(--bb-text);
}

.bb-page a.bb-leaderboard-person:hover .bb-leaderboard-name {
  text-decoration: underline;
}

.bb-leaderboard-credits {
  flex: 0 0 auto;
  color: var(--bb-gold);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bb-leaderboard-credits span {
  color: var(--bb-text-muted);
  font-size: 10px;
  font-weight: 500;
}

/* ------------------------------------------------------------------ payouts */

.bb-payout-panel {
  padding: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bb-surface-muted);
}

.bb-payout-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--bb-border);
  border-radius: 6px;
  background: var(--bb-surface);
  color: var(--bb-text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.bb-payout-disclaimer p {
  margin: 0;
}

.bb-payout-disclaimer strong {
  color: var(--bb-text);
  font-weight: 700;
}

.bb-payout-disclaimer-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bb-gold-soft);
  color: var(--bb-gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.bb-payout-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.bb-payout-card {
  --bb-severity: var(--bb-text-secondary);
  --bb-severity-soft: var(--bb-surface-muted);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--bb-border);
  border-top: 3px solid var(--bb-severity);
  border-radius: 6px;
  background: var(--bb-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bb-payout-card > :not(.bb-payout-gear) {
  position: relative;
  z-index: 1;
}

.bb-payout-gear {
  position: absolute;
  right: -13px;
  bottom: -17px;
  width: 88px;
  height: 88px;
  color: var(--bb-text);
  fill: currentColor;
  opacity: 0.065;
  pointer-events: none;
  z-index: 0;
}

.bb-payout-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bb-severity-soft);
  color: var(--bb-severity);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 15px;
  text-transform: uppercase;
}

.bb-payout-minor {
  --bb-severity: var(--bb-text-secondary);
  --bb-severity-soft: var(--bb-surface-muted);
}

.bb-payout-moderate {
  --bb-severity: var(--bb-moderate);
  --bb-severity-soft: var(--bb-moderate-soft);
}

.bb-payout-major {
  --bb-severity: var(--bb-gold);
  --bb-severity-soft: var(--bb-gold-soft);
}

.bb-payout-vulnerability {
  --bb-severity: var(--bb-red);
  --bb-severity-soft: var(--bb-red-soft);
}

.bb-payout-critical {
  --bb-severity: var(--bb-critical);
  --bb-severity-soft: var(--bb-critical-soft);
}

.bb-payout-amount {
  margin-top: 10px;
  color: var(--bb-severity);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bb-payout-amount span {
  display: block;
  margin-top: 4px;
  color: var(--bb-text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bb-payout-examples {
  margin: 9px 0 0;
  color: var(--bb-text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------- forms */

.bb-form {
  padding: 18px 20px 20px;
}

.bb-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.bb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.bb-field:last-child {
  margin-bottom: 0;
}

.bb-field label {
  color: var(--bb-text);
  font-size: 12px;
  font-weight: 600;
}

.bb-field .bb-hint {
  color: var(--bb-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.bb-field-other {
  padding: 12px;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  background: var(--bb-surface-muted);
}

.bb-field-other .bb-input {
  background: var(--bb-surface);
}

.bb-form-error {
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(214, 58, 58, 0.4);
  border-radius: 6px;
  background: var(--bb-red-soft);
  color: var(--bb-text);
  font-size: 12px;
  line-height: 1.45;
}

.bb-input {
  width: 100%;
  height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--bb-border-strong);
  border-radius: 6px;
  outline: none;
  background: var(--bb-surface);
  color: var(--bb-text);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.12s ease;
}

.bb-input::placeholder {
  color: var(--bb-text-muted);
  opacity: 0.75;
}

.bb-input:focus {
  border-color: var(--bb-accent);
}

.bb-page select.bb-input {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23606162' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 10px;
}

.bb-page.dark-theme select.bb-input,
html.r2021-dark .bb-page select.bb-input,
html.dark .bb-page select.bb-input,
html.obc2016 .bb-page select.bb-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23bdbebe' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

.bb-page textarea.bb-input {
  height: auto;
  min-height: 110px;
  line-height: 1.5;
  resize: vertical;
}

.bb-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.bb-form-actions .bb-form-error {
  flex: 1 0 100%;
  margin-bottom: 0;
}

.bb-form-actions .bb-hint {
  color: var(--bb-text-muted);
  font-size: 11px;
}

.bb-signin-panel {
  padding: 22px 20px;
}

.bb-signin-panel p {
  margin: 0 0 14px;
  color: var(--bb-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.bb-report-panel {
  overflow: hidden;
}

.bb-report-panel-head {
  padding: 18px 20px 0;
}

.bb-report-panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.bb-report-panel-head p {
  margin: 4px 0 0;
  color: var(--bb-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.bb-report-panel .bb-form {
  padding-top: 16px;
}

.bb-report-success {
  padding: 36px 24px 34px;
  text-align: center;
}

.bb-report-success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bb-green);
  animation: bb-check-pop 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.35) both;
}

.bb-report-success-check svg {
  width: 42px;
  height: 42px;
  overflow: visible;
}

.bb-report-success-check circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 2.5;
}

.bb-report-success-check path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: bb-check-draw 0.38s 0.2s ease-out forwards;
}

.bb-report-success h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bb-report-success p {
  max-width: 620px;
  margin: 8px auto 0;
  color: var(--bb-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.bb-report-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

@keyframes bb-check-pop {
  from {
    opacity: 0;
    transform: scale(0.65);
  }
}

@keyframes bb-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------------------------------------------------------------------- tables */

.bb-table-wrap {
  overflow-x: auto;
}

.bb-table {
  width: 100%;
  border-collapse: collapse;
}

.bb-table th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--bb-border);
  color: var(--bb-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.bb-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--bb-border);
  color: var(--bb-text-secondary);
  font-size: 12px;
  line-height: 1.45;
  vertical-align: top;
}

.bb-table tr:last-child td {
  border-bottom: 0;
}

.bb-table td:first-child {
  padding-right: 16px;
  color: var(--bb-text);
  font-weight: 600;
}

.bb-table th + th,
.bb-table td + td {
  padding-left: 14px;
}

.bb-table .bb-table-points {
  color: var(--bb-gold);
  font-weight: 700;
  white-space: nowrap;
}

.bb-table .bb-table-date {
  color: var(--bb-text-muted);
  white-space: nowrap;
}

.bb-table .bb-table-note {
  max-width: 220px;
  margin-top: 3px;
  color: var(--bb-text-muted);
  font-weight: 400;
}

.bb-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-transform: capitalize;
  white-space: nowrap;
}

.bb-status-pending {
  background: var(--bb-gold-soft);
  color: var(--bb-gold);
}

.bb-status-approved {
  background: rgba(0, 176, 111, 0.12);
  color: #007a4e;
}

.bb-page.dark-theme .bb-status-approved,
html.r2021-dark .bb-page .bb-status-approved,
html.dark .bb-page .bb-status-approved,
html.obc2016 .bb-page .bb-status-approved {
  color: #4fdba0;
}

.bb-status-rejected {
  background: var(--bb-red-soft);
  color: var(--bb-red);
}

.bb-empty {
  margin: 0;
  padding: 20px 0;
  color: var(--bb-text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ---------------------------------------------------------------------- footer */

.bb-footer {
  border-top: 1px solid var(--bb-border);
  padding: 22px 0 30px;
}

.bb-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--bb-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.bb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bb-footer a {
  color: var(--bb-text-muted);
}

.bb-footer a:hover {
  color: var(--bb-text);
}

/* ---------------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .bb-overview-grid {
    grid-template-columns: 1fr;
  }

  .bb-leaderboard-aside {
    position: static;
    margin-top: 26px;
  }

  .bb-payout-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bb-topnav-inner {
    gap: 10px;
    padding: 0 16px;
  }

  .bb-topnav-logo {
    width: 105px;
    height: 24px;
  }

  .bb-topnav .bb-topnav-link {
    padding: 0 8px;
    font-size: 12px;
  }

  .bb-shell {
    padding: 28px 16px 40px;
  }

  .bb-program {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
  }

  .bb-program h1 {
    font-size: 25px;
  }

  .bb-program-side {
    align-items: flex-start;
  }

  .bb-program-actions {
    justify-content: flex-start;
  }

  .bb-program-meta {
    flex-direction: column;
    gap: 4px;
  }

  .bb-section-title {
    font-size: 19px;
  }

  .bb-rewards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-reward-thumb {
    flex-basis: 84px;
    width: 84px;
    min-height: 84px;
  }

  .bb-reward-name {
    font-size: 12px;
  }

  .bb-form-row {
    grid-template-columns: 1fr;
  }

  .bb-payout-panel {
    padding: 10px;
  }

  .bb-payout-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-footer-inner {
    padding: 0 16px;
  }
}

@media (max-width: 460px) {
  .bb-rewards {
    grid-template-columns: 1fr;
  }

  .bb-topnav-inner {
    gap: 4px;
    padding: 0 10px;
  }

  .bb-topnav-logo {
    width: 85px;
    height: 22px;
  }

  .bb-topnav .bb-topnav-link {
    padding: 0 5px;
    font-size: 11px;
  }

  .bb-claim-modal-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .bb-claim-modal-actions {
    flex-direction: column;
  }

  .bb-payout-list {
    grid-template-columns: 1fr;
  }

  .bb-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
