@media (min-width: 900px) {
  html.fcc-v2-active {
    --bg: #0c0d0f;
    --panel: #111214;
    --panel2: #15171a;
    --panel-2: #15171a;
    --text: #e5e5e5;
    --text-dim: #9aa3b2;
    --dim: #9aa3b2;
    --border: #2a2a2a;
    --line: #1e1e1e;
    --accent: #c7d2fe;
    --accent2: #e0e7ff;
    --accent-2: #e0e7ff;
    --btn-bg: #1a1c1f;
    --btn-bg-hover: #24272c;
    --btn-text: #e5e5e5;
    --btn-border: #2a2a2a;
    color-scheme: dark;
  }

  html.fcc-v2-active body {
    background: var(--bg) !important;
    color: var(--text) !important;
  }

  html.fcc-v2-active .wrap,
  html.fcc-v2-active .container,
  html.fcc-v2-active main {
    color: var(--text);
  }

  html.fcc-v2-active .card,
  html.fcc-v2-active .pill,
  html.fcc-v2-active .status-banner,
  html.fcc-v2-active .about-panel {
    background: var(--panel);
    border-color: var(--border);
    color: var(--text);
  }

  html.fcc-v2-active .fcc-v2-controls {
    position: fixed;
    right: 0.95rem;
    top: auto;
    bottom: 0.95rem;
    z-index: 13000;
    width: 248px;
    display: grid;
    gap: 0.5rem;
  }

  html.fcc-v2-active .fcc-v2-controls.is-collapsed {
    width: 116px;
  }

  html.fcc-v2-active .fcc-v2-themebox {
    border-radius: 0.35rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(12, 13, 15, 0.84);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
  }

}

  html.fcc-v2-active .fcc-v2-themebox {
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem 0.35rem;
  }

  html.fcc-v2-active .fcc-v2-themebox-title {
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    color: #c0c7d4;
  }

  html.fcc-v2-active .fcc-v2-themebox-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.26rem;
    align-items: center;
  }

  html.fcc-v2-active .fcc-v2-themebox {
    max-width: 100%;
  }

  @media (max-width: 1280px) {
    html.fcc-v2-active .fcc-v2-themebox-row {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  html.fcc-v2-active .fcc-v2-theme-swatch {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
    cursor: pointer;
  }

  html.fcc-v2-active .fcc-v2-theme-swatch.active {
    box-shadow: 0 0 0 2px rgba(199, 210, 254, 0.5);
    border-color: rgba(199, 210, 254, 0.8);
  }

  html.fcc-v2-active .fcc-v2-theme-swatch.sw-black { background: #0c0d0f; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-atlas { background: #1e2430; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-forest { background: #1f3a2d; }

/* BEGIN GLOBAL BACK-TO-TOP LEFT OF V2 RAIL */
@media (min-width: 900px) {
  html.fcc-v2-active #backToTopBtn,
  html.fcc-v2-active .back-to-top,
  html.fcc-v2-active .scroll-to-top,
  html.fcc-v2-active .to-top {
    right: calc(0.95rem + 248px + 0.65rem) !important;
  }
}
/* END GLOBAL BACK-TO-TOP LEFT OF V2 RAIL */

/* BEGIN ATLAS SPAN.ACTIVE OVERRIDE */
html[data-fcc-v2-theme-preset="atlas"] span.active {
  border-color: #6e6e6e !important;
  background-color: #1f232e !important;
}
/* END ATLAS SPAN.ACTIVE OVERRIDE */

  html.fcc-v2-active .fcc-v2-theme-swatch.sw-slate { background: #161b22; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-midnight { background: #1f2937; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-plum { background: #2d1b3d; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-cocoa { background: #3b2f1f; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-ember { background: #2f1f1f; }
  html.fcc-v2-active .fcc-v2-theme-swatch.sw-navy { background: #142033; }

/* THEMEBOX GRID POLISH */
@media (max-width: 1100px) {
  html.fcc-v2-active .fcc-v2-themebox-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* NO FLOATING BUG/COLOR TOOLS + SQUARE THEMES (2026-02-23) */
html.fcc-v2-active .fcc-v2-bug,
html.fcc-v2-active .fcc-v2-collapse,
html.fcc-v2-active .fcc-v2-panel,
html.fcc-v2-active .fcc-v2-modes {
  display: none !important;
}
html.fcc-v2-active .fcc-v2-themebox {
  right: .95rem;
  bottom: .95rem;
}
html.fcc-v2-active .fcc-v2-themebox-row {
  display: grid !important;
  grid-template-columns: repeat(5, 22px);
  gap: 0 !important;
  border: 2px solid var(--border, #2a2a2a);
  border-radius: 4px;
  overflow: hidden;
}
html.fcc-v2-active .fcc-v2-theme-swatch {
  width: 22px !important;
  height: 22px !important;
  border-radius: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}
html.fcc-v2-active .fcc-v2-theme-swatch.active {
  outline: 2px solid rgba(148,163,184,.65);
  outline-offset: -2px;
}
/* END NO FLOATING BUG/COLOR TOOLS + SQUARE THEMES */


.fcc-global-top-btn,
#backToTopBtn,
#toTopBtn,
.to-top-btn,
.to-top,
.back-to-top,
.scroll-to-top,
.scroll-top-btn {
  position: fixed !important;
  right: 1rem !important;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 13110 !important;
}

html.fcc-v2-active .fcc-global-top-btn,
html.fcc-v2-active #backToTopBtn,
html.fcc-v2-active #toTopBtn,
html.fcc-v2-active .to-top-btn,
html.fcc-v2-active .to-top,
html.fcc-v2-active .back-to-top,
html.fcc-v2-active .scroll-to-top,
.scroll-top-btn {
  right: calc(1rem + 210px) !important;
}

.fcc-global-top-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.24);
  background: rgba(8,10,14,.86);
  color: #f5f6f7;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.38);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.fcc-global-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 899px) {
  html.fcc-v2-active .fcc-global-top-btn,
  html.fcc-v2-active #backToTopBtn,
  html.fcc-v2-active #toTopBtn,
  html.fcc-v2-active .to-top-btn,
  html.fcc-v2-active .to-top,
  html.fcc-v2-active .back-to-top,
  html.fcc-v2-active .scroll-to-top,
.scroll-top-btn {
    right: 1rem !important;
  }
}


.fcc-global-top-btn,
#backToTopBtn,
#toTopBtn,
.to-top-btn,
.to-top,
.back-to-top,
.scroll-to-top,
.scroll-top-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.34rem !important;
  min-width: 92px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 2px solid rgba(255,255,255,.24) !important;
  background: rgba(8,10,14,.86) !important;
  color: #f5f6f7 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.fcc-global-top-btn.show,
#backToTopBtn.show,
#toTopBtn.show,
.to-top-btn.show,
.to-top.show,
.back-to-top.show,
.scroll-to-top.show,
.scroll-top-btn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
