#fbhub-nav,
#fbhub-modal {
  font-family: Figtree, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#fbhub-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  background: rgba(7, 10, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.fbhub-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fbhub-nav-scroll {
  overflow-x: auto;
  scrollbar-width: none;
}

.fbhub-nav-scroll::-webkit-scrollbar {
  display: none;
}

.fbhub-icon-btn,
.fbhub-nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f9fbff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.fbhub-icon-btn {
  width: 40px;
  border-color: rgba(110, 232, 83, 0.85);
  color: #79f05e;
}

.fbhub-nav-btn {
  padding: 0 14px;
}

.fbhub-nav-btn.is-primary {
  border-color: rgba(55, 181, 255, 0.8);
  color: #5fc6ff;
}

.fbhub-nav-btn.is-green {
  border-color: rgba(112, 240, 94, 0.6);
  color: #80f269;
}

.fbhub-icon-btn:hover,
.fbhub-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.fbhub-nav-btn svg,
.fbhub-icon-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

#fbhub-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 16px 28px;
  background: rgba(2, 5, 12, 0.72);
  color: #eef5ff;
  overflow: auto;
}

#fbhub-modal.is-open {
  display: flex;
}

.fbhub-dialog {
  position: relative;
  width: min(1220px, 100%);
  max-height: calc(100vh - 104px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #131720;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.fbhub-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 14px 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.fbhub-content {
  padding: 28px;
}

.fbhub-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.fbhub-kicker {
  margin: 0 0 6px;
  color: #6fd4ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fbhub-title {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.fbhub-subtitle {
  margin: 8px 0 0;
  color: #aab7c8;
  font-size: 15px;
}

.fbhub-grid {
  display: grid;
  gap: 16px;
}

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

.fbhub-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fbhub-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fbhub-card,
.fbhub-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fbhub-card {
  padding: 18px;
}

.fbhub-panel {
  padding: 20px;
  margin-top: 16px;
}

.fbhub-card.blue {
  background: linear-gradient(135deg, rgba(36, 92, 180, 0.36), rgba(23, 32, 52, 0.92));
  border-color: rgba(70, 142, 255, 0.45);
}

.fbhub-card.green {
  background: linear-gradient(135deg, rgba(29, 124, 50, 0.34), rgba(23, 42, 29, 0.9));
  border-color: rgba(72, 212, 88, 0.45);
}

.fbhub-card.violet {
  background: linear-gradient(135deg, rgba(107, 62, 190, 0.34), rgba(40, 30, 63, 0.92));
  border-color: rgba(146, 105, 255, 0.45);
}

.fbhub-card.amber {
  background: linear-gradient(135deg, rgba(163, 106, 23, 0.34), rgba(54, 39, 22, 0.92));
  border-color: rgba(240, 174, 56, 0.45);
}

.fbhub-card.rose {
  background: linear-gradient(135deg, rgba(170, 45, 88, 0.34), rgba(55, 25, 39, 0.92));
  border-color: rgba(255, 100, 152, 0.42);
}

.fbhub-label {
  color: #aab7c8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fbhub-value {
  margin-top: 9px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.fbhub-note {
  margin-top: 7px;
  color: #aab7c8;
  font-size: 13px;
}

.fbhub-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.fbhub-copy-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  padding: 13px 14px;
  color: #fff;
  font-weight: 800;
}

.fbhub-copy-btn,
.fbhub-action {
  border: 0;
  border-radius: 8px;
  background: #26b9ff;
  color: #05111a;
  cursor: pointer;
  font-weight: 950;
}

.fbhub-copy-btn {
  width: 46px;
}

.fbhub-action {
  min-height: 42px;
  padding: 0 16px;
}

.fbhub-action.is-hero {
  min-width: 190px;
  background: #47ef88;
}

.fbhub-action:hover,
.fbhub-copy-btn:hover {
  filter: brightness(1.07);
}

.fbhub-section-title {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.fbhub-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.fbhub-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #32c6ff, #47ef88, #ffd34d);
}

.fbhub-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.fbhub-stage {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fbhub-stage.is-current {
  border-color: #ffb53d;
  background: rgba(163, 106, 23, 0.22);
}

.fbhub-stage.is-done {
  border-color: rgba(71, 239, 136, 0.45);
  background: rgba(34, 123, 68, 0.22);
}

.fbhub-list {
  display: grid;
  gap: 10px;
}

.fbhub-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.fbhub-list-item > * {
  min-width: 0;
}

.fbhub-list-item strong {
  overflow-wrap: anywhere;
}

.fbhub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fbhub-table th,
.fbhub-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.fbhub-table th {
  color: #aab7c8;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fbhub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce7f7;
  font-size: 12px;
  font-weight: 850;
}

.fbhub-pill.good {
  background: rgba(47, 210, 116, 0.16);
  color: #65f0a1;
}

.fbhub-pill.warn {
  background: rgba(255, 190, 64, 0.16);
  color: #ffd36b;
}

.fbhub-empty,
.fbhub-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #aab7c8;
  text-align: center;
}

@media (max-width: 860px) {
  #fbhub-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
  }

  .fbhub-nav-group {
    width: 100%;
  }

  .fbhub-nav-scroll {
    width: 100%;
  }

  .fbhub-nav-btn {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  #fbhub-modal {
    padding: 112px 10px 18px;
  }

  .fbhub-content {
    padding: 20px 14px;
  }

  .fbhub-title-row,
  .fbhub-list-item {
    flex-direction: column;
  }

  .fbhub-grid.cols-2,
  .fbhub-grid.cols-3,
  .fbhub-grid.cols-4,
  .fbhub-stage-row {
    grid-template-columns: 1fr;
  }

  .fbhub-dialog {
    max-height: calc(100vh - 130px);
  }
}
