:root {
  --fb-footer-bg: rgba(8, 14, 27, 0.90);
  --fb-footer-border: rgba(148, 163, 184, 0.20);
  --fb-footer-text: #e5edf7;
  --fb-footer-muted: #a8b3c7;
  --fb-footer-chip: rgba(59, 130, 246, 0.14);
  --fb-footer-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

body.light-theme,
body.fb-light-theme,
html.fb-light-preload body {
  --fb-footer-bg: rgba(255, 255, 255, 0.94);
  --fb-footer-border: rgba(15, 23, 42, 0.13);
  --fb-footer-text: #0f172a;
  --fb-footer-muted: #475569;
  --fb-footer-chip: rgba(37, 99, 235, 0.09);
  --fb-footer-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.fieldbase-global-footer,
.fieldbase-global-footer * {
  box-sizing: border-box;
}

.fieldbase-global-footer {
  flex: 0 0 auto;
  width: min(1040px, calc(100% - 14px));
  max-width: calc(100vw - 14px);
  margin: 10px auto 6px;
  padding: 7px 9px;
  border: 1px solid var(--fb-footer-border);
  border-radius: 15px;
  background: var(--fb-footer-bg);
  color: var(--fb-footer-text);
  box-shadow: var(--fb-footer-shadow);
  backdrop-filter: blur(16px);
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 5;
  grid-template-columns: minmax(158px, 0.85fr) minmax(260px, 1.5fr) auto;
  gap: 7px;
  align-items: center;
  overflow: hidden;
}

.fb-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fb-footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 7px 16px rgba(37,99,235,.22);
  flex: 0 0 auto;
}

.fb-footer-brand strong,
.fb-footer-brand span,
.fb-footer-meta span {
  display: block;
}

.fb-footer-brand strong {
  font-size: 0.84rem;
  line-height: 1.08;
}

.fb-footer-brand span,
.fb-footer-meta {
  color: var(--fb-footer-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.fb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fb-footer-links a {
  color: var(--fb-footer-text);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid var(--fb-footer-border);
  background: var(--fb-footer-chip);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  white-space: nowrap;
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-footer-links a:hover,
.fb-footer-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.58);
  outline: none;
}

.fb-footer-meta {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .fieldbase-global-footer {
    width: calc(100% - 8px);
    max-width: calc(100vw - 8px);
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6px 6px;
    margin: 8px auto 5px;
    border-radius: 13px;
    gap: 5px;
  }

  .fb-footer-brand {
    justify-content: center;
    gap: 7px;
  }

  .fb-footer-logo-img {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .fb-footer-brand strong {
    font-size: 0.8rem;
  }

  .fb-footer-brand span,
  .fb-footer-meta {
    font-size: 0.63rem;
  }

  .fb-footer-links {
    width: 100%;
    justify-content: center;
    gap: 4px;
    overflow: visible;
  }

  .fb-footer-links a {
    flex: 1 1 72px;
    min-width: 66px;
    max-width: 104px;
    padding: 5px 4px;
    font-size: 0.62rem;
    text-align: center;
  }

  .fb-footer-meta {
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .fieldbase-global-footer {
    width: calc(100% - 6px);
    max-width: calc(100vw - 6px);
    padding: 5px 4px;
  }

  .fb-footer-links a {
    flex-basis: 62px;
    min-width: 60px;
    max-width: 92px;
    font-size: 0.58rem;
    padding: 5px 3px;
  }
}
