@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-bug,
  html.fcc-v2-active .fcc-v2-themebox,
  html.fcc-v2-active .fcc-v2-modes,
  html.fcc-v2-active .fcc-v2-collapse {
    border-radius: 0.9rem;
    border: 1px 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-bug {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.35rem 0.45rem;
    color: #e5e5e5;
    text-decoration: none;
  }

  html.fcc-v2-active .fcc-v2-bug img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
  }

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

  html.fcc-v2-active .fcc-v2-collapse {
    width: 100%;
    padding: 0.38rem 0.5rem;
    color: #d7ddea;
    font-size: 0.72rem;
    text-align: center;
    cursor: pointer;
  }

  html.fcc-v2-active .fcc-v2-panel {
    display: block;
    order: 20;
  }

  html.fcc-v2-active .fcc-v2-collapse {
    order: 21;
  }

  html.fcc-v2-active .fcc-v2-controls.is-collapsed .fcc-v2-panel {
    display: none;
  }

  html.fcc-v2-active .fcc-v2-modes {
    display: grid;
    gap: 0.3rem;
    padding: 0.5rem 0.35rem;
  }

  html.fcc-v2-active .fcc-v2-mode-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #c0c7d4;
    border-radius: 0.52rem;
    padding: 0.32rem 0.34rem;
    font-size: 0.7rem;
    line-height: 1.14;
    cursor: pointer;
  }

  html.fcc-v2-active .fcc-v2-mode-btn:hover,
  html.fcc-v2-active .fcc-v2-mode-btn:focus-visible,
  html.fcc-v2-active .fcc-v2-mode-btn.active {
    border-color: rgba(199, 210, 254, 0.62);
    background: rgba(199, 210, 254, 0.15);
    color: #e5e5e5;
    outline: none;
  }

  html.fcc-v2-active .fcc-v2-mode-btn.reset,
  html.fcc-v2-active .fcc-v2-mode-btn.bg-toggle {
    margin-top: 0.1rem;
  }

  html.fcc-v2-active .fcc-v2-bg-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
  }

  html.fcc-v2-active .fcc-v2-modes.bg-open .fcc-v2-bg-grid {
    display: grid;
  }

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

  html.fcc-v2-active .fcc-v2-bg-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-tune-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.24rem 0.32rem;
    margin-top: 0.1rem;
  }

  html.fcc-v2-active .fcc-v2-tune-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #d4dae4;
    border-radius: 0.45rem;
    padding: 0.26rem 0.34rem;
    font-size: 0.64rem;
    line-height: 1.1;
    cursor: pointer;
    text-align: left;
  }

  html.fcc-v2-active .fcc-v2-tune-btn:hover,
  html.fcc-v2-active .fcc-v2-tune-btn:focus-visible {
    border-color: rgba(199, 210, 254, 0.58);
    background: rgba(199, 210, 254, 0.14);
    color: #e5e5e5;
    outline: none;
  }

  html.fcc-v2-active .fcc-v2-color-input {
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
  }

  html.fcc-v2-active .fcc-v2-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 999px; }
  html.fcc-v2-active .fcc-v2-color-input::-webkit-color-swatch { border: 0; border-radius: 999px; }
  html.fcc-v2-active .fcc-v2-color-input::-moz-color-swatch { border: 0; border-radius: 999px; }

  html.fcc-v2-active .fcc-v2-selector-box {
    margin-top: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    padding: 0.32rem;
    background: rgba(255, 255, 255, 0.04);
  }

  html.fcc-v2-active .fcc-v2-selector-box > summary {
    cursor: pointer;
    font-size: 0.66rem;
    color: #dbe2ef;
    font-weight: 700;
  }

  html.fcc-v2-active .fcc-v2-selector-row {
    margin-top: 0.3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  html.fcc-v2-active .fcc-v2-picker-status {
    margin-top: 0.2rem;
    font-size: 0.58rem;
    color: #a9b2c2;
  }

  html.fcc-v2-active .fcc-v2-selector-input,
  html.fcc-v2-active .fcc-v2-selector-prop {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e5e5;
    border-radius: 0.45rem;
    padding: 0.26rem 0.34rem;
    font-size: 0.64rem;
  }

  html.fcc-v2-active .fcc-v2-rule-list {
    margin-top: 0.26rem;
    display: grid;
    gap: 0.2rem;
    max-height: 160px;
    overflow: auto;
  }

  html.fcc-v2-active .fcc-v2-rule-empty {
    font-size: 0.6rem;
    color: #a9b2c2;
  }

  html.fcc-v2-active .fcc-v2-rule-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.2rem;
    align-items: center;
    font-size: 0.58rem;
    color: #c8d0dd;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.35rem;
    padding: 0.15rem 0.2rem;
  }

  html.fcc-v2-active .fcc-v2-rule-item code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #edf1f8;
  }

  html.fcc-v2-active .fcc-v2-rule-chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.08rem 0.16rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #e5e5e5;
  }

  html.fcc-v2-active .fcc-v2-rule-del {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e5e5;
    cursor: pointer;
    font-size: 0.58rem;
    line-height: 1;
    padding: 0.08rem 0.2rem;
  }

  html.fcc-v2-active .fcc-v2-debug {
    margin-top: 0.08rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.28rem 0.3rem;
    display: grid;
    gap: 0.18rem;
  }

  html.fcc-v2-active .fcc-v2-debug > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    font-size: 0.58rem;
    color: #b6becc;
    line-height: 1.15;
  }

  html.fcc-v2-active .fcc-v2-debug-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.58rem;
    color: #f1f4fa;
  }

  body.fcc-v2-picker-mode,
  body.fcc-v2-picker-mode * {
    cursor: crosshair !important;
  }

  html.fcc-v2-active .fcc-v2-picked-target {
    outline: 2px solid #7dd3fc !important;
    outline-offset: 2px !important;
  }
}


  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: 1px 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));
  }
}


/* PAPER-ONLY CONTRAST PATCH */
html.fcc-v2-theme-paper,
html[data-fcc-v2-theme-preset="paper"] {
  color-scheme: light;
}

html.fcc-v2-theme-paper .sub,
html.fcc-v2-theme-paper .muted,
html.fcc-v2-theme-paper .dim,
html.fcc-v2-theme-paper .blurb,
html.fcc-v2-theme-paper .m,
html.fcc-v2-theme-paper .fineprint,
html.fcc-v2-theme-paper .about-panel p,
html.fcc-v2-theme-paper .source-unavailable,
html.fcc-v2-theme-paper .track-meta,
html.fcc-v2-theme-paper .meta,
html.fcc-v2-theme-paper .placard-meta,
html.fcc-v2-theme-paper .featured-story-meta,
html.fcc-v2-theme-paper #freshness,
html.fcc-v2-theme-paper .status-badge,
html[data-fcc-v2-theme-preset="paper"] .sub,
html[data-fcc-v2-theme-preset="paper"] .muted,
html[data-fcc-v2-theme-preset="paper"] .dim,
html[data-fcc-v2-theme-preset="paper"] .blurb,
html[data-fcc-v2-theme-preset="paper"] .m,
html[data-fcc-v2-theme-preset="paper"] .fineprint,
html[data-fcc-v2-theme-preset="paper"] .about-panel p,
html[data-fcc-v2-theme-preset="paper"] .source-unavailable,
html[data-fcc-v2-theme-preset="paper"] .track-meta,
html[data-fcc-v2-theme-preset="paper"] .meta,
html[data-fcc-v2-theme-preset="paper"] .placard-meta,
html[data-fcc-v2-theme-preset="paper"] .featured-story-meta,
html[data-fcc-v2-theme-preset="paper"] #freshness,
html[data-fcc-v2-theme-preset="paper"] .status-badge {
  color: var(--dim, #334155) !important;
  opacity: 1 !important;
  font-weight: 500;
}

html.fcc-v2-theme-paper .k,
html.fcc-v2-theme-paper .featured-story-kicker,
html[data-fcc-v2-theme-preset="paper"] .k,
html[data-fcc-v2-theme-preset="paper"] .featured-story-kicker {
  color: var(--dim, #334155) !important;
  opacity: 1 !important;
  font-weight: 600;
}

html.fcc-v2-theme-paper input::placeholder,
html.fcc-v2-theme-paper textarea::placeholder,
html[data-fcc-v2-theme-preset="paper"] input::placeholder,
html[data-fcc-v2-theme-preset="paper"] textarea::placeholder {
  color: var(--placeholder, #94a3b8) !important;
  opacity: 1 !important;
}

html.fcc-v2-theme-paper .fineprint a,
html.fcc-v2-theme-paper .about-panel a,
html[data-fcc-v2-theme-preset="paper"] .fineprint a,
html[data-fcc-v2-theme-preset="paper"] .about-panel a {
  color: #1d4ed8 !important;
  text-decoration: underline;
}
/* END PAPER-ONLY CONTRAST PATCH */


/* PAPER-ONLY V2 INPUT/FLOATER PATCH */
html.fcc-v2-theme-paper,
html[data-fcc-v2-theme-preset="paper"] {
  --input-bg: var(--input-bg, #ffffff);
  --input-border: var(--input-border, #cbd5e1);
  --input-text: var(--input-text, #0f172a);
  --input-placeholder: var(--input-placeholder, #94a3b8);
  --focus-ring: var(--focus-ring, rgba(15,23,42,0.18));
}

html.fcc-v2-theme-paper input[type="text"],
html.fcc-v2-theme-paper input[type="search"],
html.fcc-v2-theme-paper textarea,
html.fcc-v2-theme-paper select,
html[data-fcc-v2-theme-preset="paper"] input[type="text"],
html[data-fcc-v2-theme-preset="paper"] input[type="search"],
html[data-fcc-v2-theme-preset="paper"] textarea,
html[data-fcc-v2-theme-preset="paper"] select {
  background: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html.fcc-v2-theme-paper input[type="text"]:focus,
html.fcc-v2-theme-paper input[type="search"]:focus,
html.fcc-v2-theme-paper textarea:focus,
html.fcc-v2-theme-paper select:focus,
html[data-fcc-v2-theme-preset="paper"] input[type="text"]:focus,
html[data-fcc-v2-theme-preset="paper"] input[type="search"]:focus,
html[data-fcc-v2-theme-preset="paper"] textarea:focus,
html[data-fcc-v2-theme-preset="paper"] select:focus {
  border-color: #94a3b8 !important;
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
  outline: none !important;
}

html.fcc-v2-theme-paper .featured-story-link,
html.fcc-v2-theme-paper .source-link-btn,
html.fcc-v2-theme-paper .card a,
html[data-fcc-v2-theme-preset="paper"] .featured-story-link,
html[data-fcc-v2-theme-preset="paper"] .source-link-btn,
html[data-fcc-v2-theme-preset="paper"] .card a {
  color: #1d4ed8;
}

html.fcc-v2-theme-paper #backToTopBtn,
html.fcc-v2-theme-paper .back-to-top,
html.fcc-v2-theme-paper .to-top,
html.fcc-v2-theme-paper .to-top-btn,
html.fcc-v2-theme-paper .scroll-to-top,
html[data-fcc-v2-theme-preset="paper"] #backToTopBtn,
html[data-fcc-v2-theme-preset="paper"] .back-to-top,
html[data-fcc-v2-theme-preset="paper"] .to-top,
html[data-fcc-v2-theme-preset="paper"] .to-top-btn,
html[data-fcc-v2-theme-preset="paper"] .scroll-to-top {
  background: var(--panel, #ffffff) !important;
  color: var(--text, #0f172a) !important;
  border: 1px solid var(--border, #cbd5e1) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14) !important;
}

html.fcc-v2-theme-paper #backToTopBtn:hover,
html.fcc-v2-theme-paper .back-to-top:hover,
html.fcc-v2-theme-paper .to-top:hover,
html.fcc-v2-theme-paper .to-top-btn:hover,
html.fcc-v2-theme-paper .scroll-to-top:hover,
html[data-fcc-v2-theme-preset="paper"] #backToTopBtn:hover,
html[data-fcc-v2-theme-preset="paper"] .back-to-top:hover,
html[data-fcc-v2-theme-preset="paper"] .to-top:hover,
html[data-fcc-v2-theme-preset="paper"] .to-top-btn:hover,
html[data-fcc-v2-theme-preset="paper"] .scroll-to-top:hover {
  border-color: #94a3b8 !important;
}

html.fcc-v2-theme-paper #backToTopBtn:focus-visible,
html.fcc-v2-theme-paper .back-to-top:focus-visible,
html.fcc-v2-theme-paper .to-top:focus-visible,
html.fcc-v2-theme-paper .to-top-btn:focus-visible,
html.fcc-v2-theme-paper .scroll-to-top:focus-visible,
html[data-fcc-v2-theme-preset="paper"] #backToTopBtn:focus-visible,
html[data-fcc-v2-theme-preset="paper"] .back-to-top:focus-visible,
html[data-fcc-v2-theme-preset="paper"] .to-top:focus-visible,
html[data-fcc-v2-theme-preset="paper"] .to-top-btn:focus-visible,
html[data-fcc-v2-theme-preset="paper"] .scroll-to-top:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
}

html.fcc-v2-theme-paper .fcc-v2-bug,
html.fcc-v2-theme-paper .fcc-v2-themebox,
html.fcc-v2-theme-paper .fcc-v2-modes,
html.fcc-v2-theme-paper .fcc-v2-collapse,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-bug,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-themebox,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-modes,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-collapse {
  background: rgba(255,255,255,0.96) !important;
  border-color: var(--border, #cbd5e1) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,0.12) !important;
}

html.fcc-v2-theme-paper .fcc-v2-bug,
html.fcc-v2-theme-paper .fcc-v2-bug span,
html.fcc-v2-theme-paper .fcc-v2-themebox-title,
html.fcc-v2-theme-paper .fcc-v2-collapse,
html.fcc-v2-theme-paper .fcc-v2-mode-btn,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-bug,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-bug span,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-themebox-title,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-collapse,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-mode-btn {
  color: var(--text, #0f172a) !important;
  opacity: 1 !important;
}

html.fcc-v2-theme-paper .fcc-v2-mode-btn,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-mode-btn {
  background: #f8fafc !important;
  border-color: var(--border, #cbd5e1) !important;
}

html.fcc-v2-theme-paper .fcc-v2-mode-btn:hover,
html.fcc-v2-theme-paper .fcc-v2-mode-btn:focus-visible,
html.fcc-v2-theme-paper .fcc-v2-mode-btn.active,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-mode-btn:hover,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-mode-btn:focus-visible,
html[data-fcc-v2-theme-preset="paper"] .fcc-v2-mode-btn.active {
  background: #eef2f7 !important;
  border-color: #94a3b8 !important;
}
/* END PAPER-ONLY V2 INPUT/FLOATER PATCH */


/* PAPER THEME — TIGHTEN PASS V3 */
:root[data-theme="paper"],
html.fcc-v2-theme-paper,
html[data-fcc-v2-theme-preset="paper"] {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d1d5db;
  --line-soft: #e5e7eb;
  --accent: #1f3a8a;
  --accent-soft: #dbeafe;
  --shadow-1: 0 1px 0 rgba(15, 23, 42, 0.06);
  --shadow-2: 0 2px 10px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(31, 58, 138, 0.18);
  --panel: #ffffff;
  --panel2: #eef1f4;
  --panel-2: #eef1f4;
}

:root[data-theme="paper"] body,
html.fcc-v2-theme-paper,
html.fcc-v2-theme-paper body,
html[data-fcc-v2-theme-preset="paper"],
html[data-fcc-v2-theme-preset="paper"] body {
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="paper"] a,
html.fcc-v2-theme-paper a,
html[data-fcc-v2-theme-preset="paper"] a {
  color: var(--accent);
  text-decoration: none;
}
:root[data-theme="paper"] a:hover,
html.fcc-v2-theme-paper a:hover,
html[data-fcc-v2-theme-preset="paper"] a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:root[data-theme="paper"] .card,
:root[data-theme="paper"] [data-ui="card"],
html.fcc-v2-theme-paper .card,
html.fcc-v2-theme-paper [data-ui="card"],
html[data-fcc-v2-theme-preset="paper"] .card,
html[data-fcc-v2-theme-preset="paper"] [data-ui="card"] {
  background: var(--card) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

:root[data-theme="paper"] hr,
:root[data-theme="paper"] .divider,
:root[data-theme="paper"] [data-ui="divider"],
html.fcc-v2-theme-paper hr,
html.fcc-v2-theme-paper .divider,
html.fcc-v2-theme-paper [data-ui="divider"],
html[data-fcc-v2-theme-preset="paper"] hr,
html[data-fcc-v2-theme-preset="paper"] .divider,
html[data-fcc-v2-theme-preset="paper"] [data-ui="divider"] {
  border: 0;
  height: 1px;
  background: var(--line-soft);
}

:root[data-theme="paper"] button,
:root[data-theme="paper"] .btn,
:root[data-theme="paper"] [data-ui="button"],
html.fcc-v2-theme-paper button,
html.fcc-v2-theme-paper .btn,
html.fcc-v2-theme-paper [data-ui="button"],
html[data-fcc-v2-theme-preset="paper"] button,
html[data-fcc-v2-theme-preset="paper"] .btn,
html[data-fcc-v2-theme-preset="paper"] [data-ui="button"] {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

:root[data-theme="paper"] button:hover,
:root[data-theme="paper"] .btn:hover,
:root[data-theme="paper"] [data-ui="button"]:hover,
html.fcc-v2-theme-paper button:hover,
html.fcc-v2-theme-paper .btn:hover,
html.fcc-v2-theme-paper [data-ui="button"]:hover,
html[data-fcc-v2-theme-preset="paper"] button:hover,
html[data-fcc-v2-theme-preset="paper"] .btn:hover,
html[data-fcc-v2-theme-preset="paper"] [data-ui="button"]:hover {
  background: #fbfbfc;
  border-color: #cbd5e1;
}

:root[data-theme="paper"] button:active,
:root[data-theme="paper"] .btn:active,
:root[data-theme="paper"] [data-ui="button"]:active,
html.fcc-v2-theme-paper button:active,
html.fcc-v2-theme-paper .btn:active,
html.fcc-v2-theme-paper [data-ui="button"]:active,
html[data-fcc-v2-theme-preset="paper"] button:active,
html[data-fcc-v2-theme-preset="paper"] .btn:active,
html[data-fcc-v2-theme-preset="paper"] [data-ui="button"]:active {
  transform: translateY(0.5px);
}

:root[data-theme="paper"] .btn-primary,
:root[data-theme="paper"] [data-variant="primary"],
html.fcc-v2-theme-paper .btn-primary,
html.fcc-v2-theme-paper [data-variant="primary"],
html[data-fcc-v2-theme-preset="paper"] .btn-primary,
html[data-fcc-v2-theme-preset="paper"] [data-variant="primary"] {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

:root[data-theme="paper"] input[type="text"],
:root[data-theme="paper"] input[type="search"],
:root[data-theme="paper"] select,
:root[data-theme="paper"] textarea,
html.fcc-v2-theme-paper input[type="text"],
html.fcc-v2-theme-paper input[type="search"],
html.fcc-v2-theme-paper select,
html.fcc-v2-theme-paper textarea,
html[data-fcc-v2-theme-preset="paper"] input[type="text"],
html[data-fcc-v2-theme-preset="paper"] input[type="search"],
html[data-fcc-v2-theme-preset="paper"] select,
html[data-fcc-v2-theme-preset="paper"] textarea {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  outline: none;
}

:root[data-theme="paper"] input::placeholder,
:root[data-theme="paper"] textarea::placeholder,
html.fcc-v2-theme-paper input::placeholder,
html.fcc-v2-theme-paper textarea::placeholder,
html[data-fcc-v2-theme-preset="paper"] input::placeholder,
html[data-fcc-v2-theme-preset="paper"] textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

:root[data-theme="paper"] input:focus,
:root[data-theme="paper"] select:focus,
:root[data-theme="paper"] textarea:focus,
:root[data-theme="paper"] button:focus-visible,
:root[data-theme="paper"] a:focus-visible,
html.fcc-v2-theme-paper input:focus,
html.fcc-v2-theme-paper select:focus,
html.fcc-v2-theme-paper textarea:focus,
html.fcc-v2-theme-paper button:focus-visible,
html.fcc-v2-theme-paper a:focus-visible,
html[data-fcc-v2-theme-preset="paper"] input:focus,
html[data-fcc-v2-theme-preset="paper"] select:focus,
html[data-fcc-v2-theme-preset="paper"] textarea:focus,
html[data-fcc-v2-theme-preset="paper"] button:focus-visible,
html[data-fcc-v2-theme-preset="paper"] a:focus-visible {
  box-shadow: var(--focus) !important;
}

:root[data-theme="paper"] h1,
:root[data-theme="paper"] h2,
:root[data-theme="paper"] h3,
html.fcc-v2-theme-paper h1,
html.fcc-v2-theme-paper h2,
html.fcc-v2-theme-paper h3,
html[data-fcc-v2-theme-preset="paper"] h1,
html[data-fcc-v2-theme-preset="paper"] h2,
html[data-fcc-v2-theme-preset="paper"] h3 {
  letter-spacing: -0.01em;
}

:root[data-theme="paper"] .meta,
:root[data-theme="paper"] [data-ui="meta"],
html.fcc-v2-theme-paper .meta,
html.fcc-v2-theme-paper [data-ui="meta"],
html[data-fcc-v2-theme-preset="paper"] .meta,
html[data-fcc-v2-theme-preset="paper"] [data-ui="meta"] {
  color: var(--muted) !important;
  opacity: 1 !important;
  font-weight: 500;
}

:root[data-theme="paper"] .tab,
:root[data-theme="paper"] [role="tab"],
:root[data-theme="paper"] [data-ui="tab"],
html.fcc-v2-theme-paper .tab,
html.fcc-v2-theme-paper [role="tab"],
html.fcc-v2-theme-paper [data-ui="tab"],
html[data-fcc-v2-theme-preset="paper"] .tab,
html[data-fcc-v2-theme-preset="paper"] [role="tab"],
html[data-fcc-v2-theme-preset="paper"] [data-ui="tab"] {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted) !important;
  background: transparent;
}

:root[data-theme="paper"] .tab:hover,
:root[data-theme="paper"] [role="tab"]:hover,
:root[data-theme="paper"] [data-ui="tab"]:hover,
html.fcc-v2-theme-paper .tab:hover,
html.fcc-v2-theme-paper [role="tab"]:hover,
html.fcc-v2-theme-paper [data-ui="tab"]:hover,
html[data-fcc-v2-theme-preset="paper"] .tab:hover,
html[data-fcc-v2-theme-preset="paper"] [role="tab"]:hover,
html[data-fcc-v2-theme-preset="paper"] [data-ui="tab"]:hover {
  background: var(--accent-soft);
  color: var(--text) !important;
}

:root[data-theme="paper"] .tab[aria-selected="true"],
:root[data-theme="paper"] [role="tab"][aria-selected="true"],
:root[data-theme="paper"] [data-ui="tab"][data-active="true"],
html.fcc-v2-theme-paper .tab[aria-selected="true"],
html.fcc-v2-theme-paper [role="tab"][aria-selected="true"],
html.fcc-v2-theme-paper [data-ui="tab"][data-active="true"],
html[data-fcc-v2-theme-preset="paper"] .tab[aria-selected="true"],
html[data-fcc-v2-theme-preset="paper"] [role="tab"][aria-selected="true"],
html[data-fcc-v2-theme-preset="paper"] [data-ui="tab"][data-active="true"] {
  background: #ffffff;
  border-color: var(--line-soft);
  box-shadow: var(--shadow-1);
  color: var(--text) !important;
}

:root[data-theme="paper"] button[aria-label*="Upvote"],
:root[data-theme="paper"] button[aria-label*="Downvote"],
:root[data-theme="paper"] button[aria-label*="Appreciate"],
html.fcc-v2-theme-paper button[aria-label*="Upvote"],
html.fcc-v2-theme-paper button[aria-label*="Downvote"],
html.fcc-v2-theme-paper button[aria-label*="Appreciate"],
html[data-fcc-v2-theme-preset="paper"] button[aria-label*="Upvote"],
html[data-fcc-v2-theme-preset="paper"] button[aria-label*="Downvote"],
html[data-fcc-v2-theme-preset="paper"] button[aria-label*="Appreciate"] {
  border-color: var(--line-soft) !important;
}

:root[data-theme="paper"] img,
html.fcc-v2-theme-paper img,
html[data-fcc-v2-theme-preset="paper"] img {
  border-radius: calc(var(--radius) - 4px);
}

:root[data-theme="paper"] .outline,
:root[data-theme="paper"] [data-ui="outline"],
html.fcc-v2-theme-paper .outline,
html.fcc-v2-theme-paper [data-ui="outline"],
html[data-fcc-v2-theme-preset="paper"] .outline,
html[data-fcc-v2-theme-preset="paper"] [data-ui="outline"] {
  border-color: var(--line-soft) !important;
}
/* END PAPER THEME — TIGHTEN PASS V3 */


/* PAPER-ONLY QUOTE/PHOTO + NEWS LINK TUNE */
html.fcc-v2-theme-paper .quote-card,
html.fcc-v2-theme-paper .quote-card .content,
html.fcc-v2-theme-paper .quote-card .body,
html.fcc-v2-theme-paper .quote-card .quote-copy,
html[data-fcc-v2-theme-preset="paper"] .quote-card,
html[data-fcc-v2-theme-preset="paper"] .quote-card .content,
html[data-fcc-v2-theme-preset="paper"] .quote-card .body,
html[data-fcc-v2-theme-preset="paper"] .quote-card .quote-copy {
  background: var(--panel, #ffffff) !important;
  color: var(--text, #0f172a) !important;
}

html.fcc-v2-theme-paper .quote-card a,
html.fcc-v2-theme-paper .quote-card .source-link-btn,
html.fcc-v2-theme-paper .quote-card .photo-link,
html.fcc-v2-theme-paper .quote-card .copy-btn,
html.fcc-v2-theme-paper .quote-card .photo-copy-btn,
html[data-fcc-v2-theme-preset="paper"] .quote-card a,
html[data-fcc-v2-theme-preset="paper"] .quote-card .source-link-btn,
html[data-fcc-v2-theme-preset="paper"] .quote-card .photo-link,
html[data-fcc-v2-theme-preset="paper"] .quote-card .copy-btn,
html[data-fcc-v2-theme-preset="paper"] .quote-card .photo-copy-btn {
  color: var(--text, #0f172a) !important;
}

html.fcc-v2-theme-paper .quote-card .meta,
html.fcc-v2-theme-paper .quote-card .blurb,
html.fcc-v2-theme-paper .quote-card .track-meta,
html.fcc-v2-theme-paper .quote-card .placard-meta,
html[data-fcc-v2-theme-preset="paper"] .quote-card .meta,
html[data-fcc-v2-theme-preset="paper"] .quote-card .blurb,
html[data-fcc-v2-theme-preset="paper"] .quote-card .track-meta,
html[data-fcc-v2-theme-preset="paper"] .quote-card .placard-meta {
  color: var(--muted, #475569) !important;
  opacity: 1 !important;
}

/* Keep Request/utility links aligned with nav tone in Paper */
html.fcc-v2-theme-paper .view-link,
html.fcc-v2-theme-paper .chip,
html.fcc-v2-theme-paper .section-link,
html.fcc-v2-theme-paper a.view-link,
html.fcc-v2-theme-paper a.chip,
html.fcc-v2-theme-paper a.section-link,
html[data-fcc-v2-theme-preset="paper"] .view-link,
html[data-fcc-v2-theme-preset="paper"] .chip,
html[data-fcc-v2-theme-preset="paper"] .section-link,
html[data-fcc-v2-theme-preset="paper"] a.view-link,
html[data-fcc-v2-theme-preset="paper"] a.chip,
html[data-fcc-v2-theme-preset="paper"] a.section-link {
  color: var(--muted, #475569) !important;
}

html.fcc-v2-theme-paper .view-link:hover,
html.fcc-v2-theme-paper .chip:hover,
html.fcc-v2-theme-paper .section-link:hover,
html[data-fcc-v2-theme-preset="paper"] .view-link:hover,
html[data-fcc-v2-theme-preset="paper"] .chip:hover,
html[data-fcc-v2-theme-preset="paper"] .section-link:hover {
  color: var(--text, #0f172a) !important;
}
/* END PAPER-ONLY QUOTE/PHOTO + NEWS LINK TUNE */


/* 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: 1px solid var(--border, #2a2a2a);
  border-radius: 8px;
  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 */
