:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --ink: #fff;
  --muted: #a3a3a3;
  --line: rgba(255,255,255,.1);
  --accent: #ff7a00;
  --accent-ink: #0a0a0a;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --pad: clamp(1rem, 3vw, 2rem);
  --radius: 1rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select { font: inherit; }

.fb-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem var(--pad);
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.fb-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--display);
  font-weight: 700;
}
.fb-brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,122,0,.4);
}
.fb-top-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 700;
}
.fb-badge {
  background: var(--accent);
  color: var(--accent-ink);
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.fb-top-meta a:hover { color: var(--accent); }

.fb-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem var(--pad) 3rem;
}
.fb-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 .6rem;
  letter-spacing: -.03em;
}
.fb-hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 52ch;
}

.fb-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
.fb-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.fb-form input,
.fb-form select {
  width: 100%;
  min-height: 46px;
  padding: .75rem .9rem;
  border-radius: .7rem;
  border: 1px solid var(--line);
  background: #151515;
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
}
.fb-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff7a00' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.2rem;
}
.fb-form input::placeholder { color: #777; }
.fb-form input:focus,
.fb-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.fb-form option {
  background: #151515;
  color: #fff;
}
.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.fb-btn {
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  cursor: pointer;
}
.fb-btn:hover { filter: brightness(1.06); }
.fb-btn:disabled { opacity: .5; cursor: not-allowed; }
.fb-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.fb-status {
  min-height: 1.4em;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}
.fb-status.is-err { color: #ff8a7a; }

.fb-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  margin-bottom: .85rem;
}
.fb-stats {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.fb-stats strong { color: var(--accent); }
.fb-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.chip.active, .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fb-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.fb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.fb-table th,
.fb-table td {
  text-align: left;
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fb-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: #161616;
  position: sticky;
  top: 0;
}
.fb-table a { color: var(--accent); font-weight: 700; }
.fb-table a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.fb-foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem var(--pad);
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 800px) {
  .fb-grid { grid-template-columns: 1fr; }
  .fb-table th:nth-child(2),
  .fb-table td:nth-child(2) { display: none; }
}
