/*
 * G&C REV10W FIX38 — Theme Completion / Accessibility Assurance
 * Final low-specificity safety layer for Obsidian Gold, Ash Grey, Esmerelda, Esmerelda 2.0 and Path of the Wolf. Existing intentional component and semantic
 * colours remain authoritative; this layer removes browser/default colour
 * fall-through and keeps SVG / form / feedback chrome legible.
 */
html[data-gc-theme="obsidian-gold"]{
  --gc38-canvas:#050403;--gc38-surface:#17120b;--gc38-surface-2:#21190e;
  --gc38-text:#fff9e9;--gc38-muted:#b9ab8f;--gc38-subtle:#8f846f;
  --gc38-accent:#efc45f;--gc38-accent-2:#f4cc68;--gc38-accent-ink:#171006;--gc38-line:rgba(231,184,82,.24);
  --gc38-focus:rgba(239,196,95,.72);--gc38-selection:rgba(239,196,95,.28);
  --gc38-control-shadow:0 10px 28px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,246,204,.035);
}
html[data-gc-theme="ash-grey"]{
  --gc38-canvas:#424242;--gc38-surface:#2e2e2e;--gc38-surface-2:#252525;
  --gc38-text:#fff;--gc38-muted:#c8c8c8;--gc38-subtle:#9b9b9b;
  --gc38-accent:#ededed;--gc38-accent-2:#fff;--gc38-accent-ink:#171717;--gc38-line:rgba(214,214,214,.27);
  --gc38-focus:rgba(255,255,255,.76);--gc38-selection:rgba(255,255,255,.20);
  --gc38-control-shadow:0 10px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-gc-theme="esmerelda"]{
  --gc38-canvas:#040807;--gc38-surface:#0a1410;--gc38-surface-2:#0d1a15;
  --gc38-text:#f4f7f5;--gc38-muted:#9fb0a8;--gc38-subtle:#7f958b;
  --gc38-accent:#43b985;--gc38-accent-2:#79d3aa;--gc38-accent-ink:#03110a;--gc38-line:rgba(121,211,170,.18);
  --gc38-focus:rgba(121,211,170,.72);--gc38-selection:rgba(67,185,133,.30);
  --gc38-control-shadow:0 10px 28px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-gc-theme="esmerelda-2"]{
  --gc38-canvas:#011a0d;--gc38-surface:#032413;--gc38-surface-2:#011f10;
  --gc38-text:#fcfcfc;--gc38-muted:#e3e3e3;--gc38-subtle:#c8d3cd;
  --gc38-accent:#f7e9c6;--gc38-accent-2:#fed269;--gc38-accent-ink:#102016;--gc38-line:rgba(254,210,105,.25);
  --gc38-focus:rgba(254,210,105,.76);--gc38-selection:rgba(254,210,105,.24);
  --gc38-control-shadow:0 10px 28px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-gc-theme="path-of-the-wolf"]{
  --gc38-canvas:#070806;--gc38-surface:#151612;--gc38-surface-2:#1d1e18;
  --gc38-text:#f3ead9;--gc38-muted:#b7ad9b;--gc38-subtle:#827b70;
  --gc38-accent:#c74636;--gc38-accent-2:#d7c39d;--gc38-accent-ink:#160907;--gc38-line:rgba(181,154,98,.25);
  --gc38-focus:rgba(199,70,54,.76);--gc38-selection:rgba(199,70,54,.28);
  --gc38-control-shadow:0 10px 28px rgba(0,0,0,.30),inset 0 1px 0 rgba(243,234,217,.04);
}


/* Browser/native fall-through. :where() deliberately stays lower-specificity
 * than intentional component rules in the four full theme sheets. */
html[data-gc-theme] :where(button,input,select,textarea,option,optgroup){font:inherit}
html[data-gc-theme] :where(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]){
  color:var(--gc38-text);caret-color:var(--gc38-accent);border-color:var(--gc38-line);background-color:var(--gc38-surface-2);color-scheme:dark;
}
html[data-gc-theme] :where(select option,select optgroup){background:var(--gc38-surface-2);color:var(--gc38-text)}
html[data-gc-theme] :where(input,textarea)::placeholder{color:var(--gc38-subtle);opacity:.92}
html[data-gc-theme] :where(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:var(--gc38-accent)}
html[data-gc-theme] :where(button,[role="button"],[role="tab"],summary,a[href]):focus-visible,
html[data-gc-theme] :where(input,select,textarea):focus-visible{
  outline:2px solid var(--gc38-focus);outline-offset:2px;
}
html[data-gc-theme] :where(hr,fieldset){border-color:var(--gc38-line)}
html[data-gc-theme] :where(code,kbd,pre){color:var(--gc38-text);border-color:var(--gc38-line);background:var(--gc38-surface-2)}
html[data-gc-theme] ::selection{background:var(--gc38-selection);color:var(--gc38-text)}

/* Keep late-added utility controls out of browser blue/grey defaults. */
html[data-gc-theme] :where(
  .gcReviewShareButton,.gcProfileReviewEditButton,.gcProfileSmallButton,
  .gcGoTopButton,.gcAdminGoTop,.gcVaultGoTop,.gcPushActionButton,
  .gcCollectionAlreadyLabel,.gcCatalogueButton,.gcCatalogueAction,
  .gcQotdAction,.gcAwardAction,.gcGoldAction,.gcVaultAction
):not(.danger):not([class*="Danger"]){
  border-color:var(--gc38-line);color:var(--gc38-accent-2);
}

/* Newer modules that can otherwise retain Classic cyan in sparse states. */
html[data-gc-theme] :where(
  .gcQotdState,.gcQotdEmpty,.gcQotdLoading,
  .gcPushCenterState,.gcPushEmptyState,
  .gcGoldState,.gcGoldEmptyState,.gcGoldLoadingState,
  .gcVaultState,.gcVaultEmpty,.gcVaultLoading,
  .gcMarketplaceState,.gcMarketplaceEmpty,
  .gcCatalogueState,.gcCatalogueEmptyState,
  .gcDonationState,.gcAwardsState
){color:var(--gc38-muted);border-color:var(--gc38-line)}

/* Toasts/status surfaces should remain readable regardless of route CSS. */
html[data-gc-theme] :where(.gcProfileToast,.gcReviewShareToast,[class*="Toast"]):not([class*="Danger"]):not([class*="Error"]){
  border-color:var(--gc38-line);background-color:color-mix(in srgb,var(--gc38-surface) 94%,black);color:var(--gc38-text);
}

/* Hard-coded Classic cyan SVG attributes used by older inline assets. The
 * selectors affect UI chrome only; artwork images and externally loaded SVGs
 * are untouched. */
html[data-gc-theme] body svg :is(
  [stroke="#43d7e6"],[stroke="#43D7E6"],[stroke="#62dfea"],[stroke="#62DFEA"],
  [stroke="#73deeb"],[stroke="#73DEEB"],[stroke="#43d5e5"],[stroke="#43D5E5"],
  [stroke="#6fe3ed"],[stroke="#6FE3ED"],[stroke="#65dfe9"],[stroke="#65DFE9"],
  [stroke="#22c6d9"],[stroke="#22C6D9"]
){stroke:var(--gc38-accent)!important}
html[data-gc-theme] body svg :is(
  [fill="#43d7e6"],[fill="#43D7E6"],[fill="#62dfea"],[fill="#62DFEA"],
  [fill="#73deeb"],[fill="#73DEEB"],[fill="#43d5e5"],[fill="#43D5E5"],
  [fill="#6fe3ed"],[fill="#6FE3ED"],[fill="#65dfe9"],[fill="#65DFE9"],
  [fill="#22c6d9"],[fill="#22C6D9"]
){fill:var(--gc38-accent)!important}

/* Disabled controls are muted rather than washed out / bright. */
html[data-gc-theme] :where(button,[role="button"],input,select,textarea):disabled,
html[data-gc-theme] :where([aria-disabled="true"]){opacity:.52;filter:saturate(.72)}

/* Preserve intentionally branded Gaming ID pills in every selectable theme. */
html[data-gc-theme] .gcGamingIdPill{filter:none!important}

/* REV10W utility chrome loads immediately before this sheet and historically
 * carried Classic cyan/purple. Re-theme it here so premium themes remain
 * complete even on desktop scrollbars and floating utility controls. */
@media (hover:hover) and (pointer:fine){
  html[data-gc-theme]{scrollbar-color:var(--gc38-accent) var(--gc38-surface-2)!important}
  html[data-gc-theme] body *{scrollbar-color:var(--gc38-accent) var(--gc38-surface-2)!important}
  html[data-gc-theme]::-webkit-scrollbar-track,
  html[data-gc-theme] body::-webkit-scrollbar-track,
  html[data-gc-theme] body *::-webkit-scrollbar-track{background:linear-gradient(180deg,var(--gc38-surface-2),var(--gc38-surface))!important}
  html[data-gc-theme]::-webkit-scrollbar-thumb,
  html[data-gc-theme] body::-webkit-scrollbar-thumb,
  html[data-gc-theme] body *::-webkit-scrollbar-thumb{
    border-color:var(--gc38-surface-2)!important;
    background:linear-gradient(180deg,var(--gc38-accent-2),var(--gc38-accent))!important;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gc38-text) 13%,transparent)!important;
  }
  html[data-gc-theme]::-webkit-scrollbar-thumb:hover,
  html[data-gc-theme] body::-webkit-scrollbar-thumb:hover,
  html[data-gc-theme] body *::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,color-mix(in srgb,var(--gc38-accent-2) 88%,white),var(--gc38-accent-2))!important}
  html[data-gc-theme]::-webkit-scrollbar-corner,
  html[data-gc-theme] body::-webkit-scrollbar-corner,
  html[data-gc-theme] body *::-webkit-scrollbar-corner{background:var(--gc38-surface-2)!important}
}
html[data-gc-theme] .gcRev10wGoTop{
  border-color:color-mix(in srgb,var(--gc38-accent) 42%,transparent)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 86%,var(--gc38-accent) 14%),var(--gc38-surface-2))!important;
  color:var(--gc38-accent-2)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.40),0 0 26px color-mix(in srgb,var(--gc38-accent) 13%,transparent),inset 0 1px 0 color-mix(in srgb,var(--gc38-text) 8%,transparent)!important;
}
html[data-gc-theme] .gcRev10wGoTop::before{
  border-color:color-mix(in srgb,var(--gc38-accent) 16%,transparent)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-accent) 8%,transparent),transparent)!important;
}
html[data-gc-theme] .gcRev10wGoTop:focus-visible{outline-color:var(--gc38-focus)!important}
html[data-gc-theme] body[data-gc-page="profile"] .gcProfileAvatarFrame{
  filter:drop-shadow(0 0 7px color-mix(in srgb,var(--gc38-accent) 19%,transparent)) drop-shadow(0 0 11px color-mix(in srgb,var(--gc38-accent-2) 10%,transparent))!important;
}

/* ========================================================================== 
   FIX38 WHOLE-APP GAP COVERAGE
   These modules/routes were introduced after the original four large theme
   sheets were generated. They previously inherited Classic cyan/purple in
   places. The final layer below deliberately themes structure/chrome while
   preserving semantic danger/success colours, cover art, condition/status
   colours and Gold's functional gold identity where those colours carry
   meaning rather than theme chrome.
   ========================================================================== */

/* Align component-level variable systems with the active premium theme. */
html[data-gc-theme]{
  --gc-vault-accent:var(--gc38-accent)!important;
  --gc-vault-accent-soft:color-mix(in srgb,var(--gc38-accent) 12%,transparent)!important;
  --gc-vault-bg:var(--gc38-canvas)!important;
  --gc-vault-panel:var(--gc38-surface)!important;
  --gc-vault-panel-2:var(--gc38-surface-2)!important;
  --gc-vault-line:var(--gc38-line)!important;
  --gc-vault-text:var(--gc38-text)!important;
  --gc-vault-muted:var(--gc38-muted)!important;
}
html[data-gc-theme] :is(.gc35Catalogue,body.gcFix35Import){
  --gc35-line:var(--gc38-line)!important;
  --gc35-panel:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;
  --gc35-muted:var(--gc38-muted)!important;
  --gc35-text:var(--gc38-text)!important;
}
html[data-gc-theme].gcAwardsPage,
html[data-gc-theme] body.gcAwardsPage{
  --aw-bg:var(--gc38-canvas)!important;
  --aw-panel:var(--gc38-surface)!important;
  --aw-panel2:var(--gc38-surface-2)!important;
  --aw-gold:var(--gc38-accent)!important;
  --aw-gold2:var(--gc38-accent-2)!important;
  --aw-purple:color-mix(in srgb,var(--gc38-accent) 62%,var(--gc38-muted))!important;
  --aw-text:var(--gc38-text)!important;
  --aw-muted:var(--gc38-muted)!important;
  --aw-border:var(--gc38-line)!important;
  --aw-cyan:var(--gc38-accent)!important;
  --aw-glass:color-mix(in srgb,var(--gc38-surface) 94%,transparent)!important;
  --aw-line:var(--gc38-line)!important;
}

/* Standalone/new-route canvases: remove Classic cyan/purple ambient washes. */
html[data-gc-theme] body:is(
  .gcMarketplacePage,.gcQotdAdminPage,.gcGoldStandaloneBody,.gcAwardsPage,
  [data-gc-page="admin_donations"],[data-gc-page="admin_experience"],
  [data-gc-page="admin_games"],[data-gc-page="admin_import"],
  [data-gc-page="admin_marketplace"],[data-gc-page="admin_member_awards"]
){
  color:var(--gc38-text)!important;
}
html[data-gc-theme] body.gcMarketplacePage{
  --bg:var(--gc38-canvas)!important;--panel:var(--gc38-surface)!important;--panel2:var(--gc38-surface-2)!important;
  --line:var(--gc38-line)!important;--line2:color-mix(in srgb,var(--gc38-text) 10%,transparent)!important;
  --cyan:var(--gc38-accent)!important;--text:var(--gc38-text)!important;--muted:var(--gc38-muted)!important;
  background:radial-gradient(circle at 14% -7%,color-mix(in srgb,var(--gc38-accent) 11%,transparent),transparent 30%),linear-gradient(180deg,color-mix(in srgb,var(--gc38-canvas) 90%,var(--gc38-surface) 10%),var(--gc38-canvas) 54%,color-mix(in srgb,var(--gc38-canvas) 94%,black))!important;
}

/* Marketplace — theme chrome/surfaces. Listing-type, condition, sold, warning
 * and Like-pink colours stay semantic and are intentionally not recoloured. */
html[data-gc-theme] body.gcMarketplacePage :is(.iconBtn,.backBtn,.hero,.navCard,.searchField,.filters,.sheet,.formStep,.selectedGame,.gameResults,.citySuggestions,.sellerReputationCard,.sheetActionList>button,.formPrompt){
  border-color:var(--gc38-line)!important;
  color:var(--gc38-text)!important;
}
html[data-gc-theme] body.gcMarketplacePage :is(.iconBtn,.backBtn,.navCard,.searchField,.filters,.sheet,.formStep,.selectedGame,.gameResults,.citySuggestions,.sellerReputationCard,.formPrompt){
  background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;
}
html[data-gc-theme] body.gcMarketplacePage .hero{
  background:radial-gradient(circle at 92% 0,color-mix(in srgb,var(--gc38-accent) 14%,transparent),transparent 38%),linear-gradient(145deg,var(--gc38-surface),var(--gc38-surface-2))!important;
  box-shadow:var(--gc38-control-shadow),0 18px 48px rgba(0,0,0,.23)!important;
}
html[data-gc-theme] body.gcMarketplacePage .hero::after{background:radial-gradient(circle,color-mix(in srgb,var(--gc38-accent) 13%,transparent),transparent 66%)!important}
html[data-gc-theme] body.gcMarketplacePage :is(.heroMark,.navCard .navIcon,.sheetTitle small,.stepNo,.listingPrice,.sectionLabel){color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcMarketplacePage :is(.hero p,.navCard span,.compactControl label,.contentHead p,.listingPlatform,.fieldHint,.photoHint,.sheetSub,.formHelp){color:var(--gc38-muted)!important}
html[data-gc-theme] body.gcMarketplacePage .navCard.active{
  border-color:color-mix(in srgb,var(--gc38-accent) 42%,transparent)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-accent) 13%,var(--gc38-surface)),var(--gc38-surface-2))!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gc38-accent) 7%,transparent)!important;
}
html[data-gc-theme] body.gcMarketplacePage :is(.premiumBtn,.closeBtn){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 94%,var(--gc38-accent) 6%),var(--gc38-surface-2))!important;color:var(--gc38-text)!important}
html[data-gc-theme] body.gcMarketplacePage .premiumBtn.primary{
  border-color:color-mix(in srgb,var(--gc38-accent) 55%,transparent)!important;
  background:linear-gradient(135deg,var(--gc38-accent-2),var(--gc38-accent))!important;
  color:var(--gc38-accent-ink)!important;
}
html[data-gc-theme] body.gcMarketplacePage .premiumBtn.danger{color:#ffc1c9!important;border-color:rgba(255,155,168,.25)!important;background:rgba(120,28,42,.12)!important}
html[data-gc-theme] body.gcMarketplacePage :is(.compactControl input,.compactControl select,.control input,.control select,.control textarea){background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important;border-color:var(--gc38-line)!important}
html[data-gc-theme] body.gcMarketplacePage :is(.listingCard,.listingLike:not(.liked)){
  background-color:var(--gc38-surface-2)!important;
}
html[data-gc-theme] body.gcMarketplacePage .listingCard{
  background:linear-gradient(150deg,rgba(var(--tone),.075),color-mix(in srgb,var(--gc38-surface) 94%,transparent) 35%,var(--gc38-surface-2))!important;
}
html[data-gc-theme] body.gcMarketplacePage .listingLike:not(.liked){border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-surface-2) 94%,transparent)!important;color:var(--gc38-muted)!important}
html[data-gc-theme] body.gcMarketplacePage :is(.modal,.engagementModal){background:rgba(0,0,0,.74)!important}
html[data-gc-theme] body.gcMarketplacePage .toast:not(.error):not(.isError){border-color:var(--gc38-line)!important;background:var(--gc38-surface)!important;color:var(--gc38-text)!important}

/* Marketplace Home module — themed frame/CTA while Like state stays rose. */
html[data-gc-theme] :is(.gcMarketplaceHomeActivity,.gcMpHomeItem){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 95%,var(--gc38-accent) 5%),var(--gc38-surface-2))!important}
html[data-gc-theme] .gcMpHomeHead small,
html[data-gc-theme] .gcMpHomePremiumCta>strong,
html[data-gc-theme] .gcMpHomeCopy small{color:var(--gc38-accent-2)!important}
html[data-gc-theme] .gcMpHomePremiumCta{border-color:color-mix(in srgb,var(--gc38-accent) 34%,transparent)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--gc38-accent) 18%,var(--gc38-surface)),color-mix(in srgb,var(--gc38-accent) 8%,var(--gc38-surface-2)))!important;color:var(--gc38-text)!important}
html[data-gc-theme] .gcMpHomePremiumCta small,
html[data-gc-theme] .gcMpHomeCopy span{color:var(--gc38-muted)!important}
html[data-gc-theme] .gcMpHomeM{background:radial-gradient(circle at 28% 18%,var(--gc38-accent-2),var(--gc38-accent) 48%,color-mix(in srgb,var(--gc38-accent) 58%,var(--gc38-surface-2)) 100%)!important;color:var(--gc38-accent-ink)!important}
html[data-gc-theme] .gcMpHomeM svg{stroke:currentColor!important}
html[data-gc-theme] .gcMpHomeM svg .spark{fill:currentColor!important}
html[data-gc-theme] .gcMpHomeLike:not(.liked){border-color:var(--gc38-line)!important;background:var(--gc38-surface-2)!important;color:var(--gc38-muted)!important}

/* QOTD member module — full active-theme chrome; destructive red stays semantic. */
html[data-gc-theme] #gcQotdSection.gcHomeSection{
  border-color:color-mix(in srgb,var(--gc38-accent) 27%,transparent)!important;
  background:radial-gradient(circle at 8% -5%,color-mix(in srgb,var(--gc38-accent) 14%,transparent),transparent 35%),linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;
}
html[data-gc-theme] :is(.gcQotdQuestionCard,.gcQotdComment,.gcQotdSort,.gcQotdCommentsToggle,.gcQotdEmpty,.gcQotdModalPanel){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important}
html[data-gc-theme] :is(.gcQotdEyebrow,.gcQotdQuestionLabel,.gcQotdListHeading span,.gcQotdMember,.gcQotdSeeMore,.gcQotdModalHead span){color:var(--gc38-accent-2)!important}
html[data-gc-theme] :is(.gcQotdMeta,.gcQotdTime,.gcQotdEmpty,.gcQotdSort button:not(.isActive),.gcQotdAction:not(.isLiked),.gcQotdGhostBtn){color:var(--gc38-muted)!important}
html[data-gc-theme] :is(.gcQotdComposer textarea,.gcQotdReplyBox textarea,.gcQotdEditBox textarea){background:var(--gc38-surface-2)!important;border-color:var(--gc38-line)!important;color:var(--gc38-text)!important}
html[data-gc-theme] :is(.gcQotdArchiveBtn,.gcQotdSort button.isActive,.gcQotdAction.isLiked,.gcQotdCommentsToggle[aria-expanded="true"]){border-color:color-mix(in srgb,var(--gc38-accent) 30%,transparent)!important;background:color-mix(in srgb,var(--gc38-accent) 9%,transparent)!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] .gcQotdPrimary{border-color:color-mix(in srgb,var(--gc38-accent) 48%,transparent)!important;background:linear-gradient(135deg,var(--gc38-accent-2),var(--gc38-accent))!important;color:var(--gc38-accent-ink)!important}
html[data-gc-theme] .gcQotdComment::before{background:linear-gradient(180deg,var(--gc38-accent-2),var(--gc38-accent))!important}
html[data-gc-theme] .gcQotdAvatar{background:var(--gc38-surface-2)!important;border-color:var(--gc38-line)!important}
html[data-gc-theme] .gcQotdModal{background:rgba(0,0,0,.75)!important}

/* QOTD Admin. */
html[data-gc-theme] body.gcQotdAdminPage{background:radial-gradient(circle at 90% -6%,color-mix(in srgb,var(--gc38-accent) 11%,transparent),transparent 34%),var(--gc38-canvas)!important;color:var(--gc38-text)!important}
html[data-gc-theme] body.gcQotdAdminPage :is(.gcQaHero,.gcQaPanel,.gcQaFeature,.gcQaScheduleCard,.gcQaQuestion,.gcQaArchiveItem,.gcQaModalPanel,.gcQaExport,.gcQaStatus){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important}
html[data-gc-theme] body.gcQotdAdminPage :is(.gcQaEyebrow,.gcQaPanelHead span,.gcQaFeatureCopy>span,.gcQaScheduleCard small){color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcQotdAdminPage :is(.gcQaHero p,.gcQaPanelHead p,.gcQaBack,.gcQaStatus,.gcQaArchiveItem small,.gcQaFeatureCopy p){color:var(--gc38-muted)!important}
html[data-gc-theme] body.gcQotdAdminPage :is(.gcQaScheduleCard select,.gcQaQuestion textarea,.gcQaQuestion input,.gcQaModalHead button){border-color:var(--gc38-line)!important;background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important}
html[data-gc-theme] body.gcQotdAdminPage :is(.gcQaPrimary,.gcQaFeatureButton.isEnable){border-color:color-mix(in srgb,var(--gc38-accent) 45%,transparent)!important;background:linear-gradient(135deg,var(--gc38-accent-2),var(--gc38-accent))!important;color:var(--gc38-accent-ink)!important}
html[data-gc-theme] body.gcQotdAdminPage .gcQaBtn:not(.isDisable):not(.isEnable){border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-accent) 8%,transparent)!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcQotdAdminPage .gcQaHeroMark{border-color:color-mix(in srgb,var(--gc38-accent) 30%,transparent)!important;background:color-mix(in srgb,var(--gc38-accent) 10%,transparent)!important;color:var(--gc38-accent-2)!important}

/* Catalogue Management / Game Import. */
html[data-gc-theme] :is(.gc35Panel,.gc35GameCard,.gc35RequestCard,.gc35Bulk,.gc36PlatformBlock,.gc36DialogCard,.gc35DialogCard,.adminIgdbResultCard){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important}
html[data-gc-theme] :is(.gc35Eyebrow,.gc36Eyebrow,.gc35PlatformChip b,.gc36PlatformBlock strong){color:var(--gc38-accent-2)!important}
html[data-gc-theme] :is(.gc35ModeTabs button.isActive,.gc35PrimaryBtn,.gc36PrimaryBtn,.adminImportButton){border-color:color-mix(in srgb,var(--gc38-accent) 40%,transparent)!important;background:color-mix(in srgb,var(--gc38-accent) 12%,var(--gc38-surface))!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] :is(.gc35Filters input,.gc35Filters select,.gc35QueueFilter,.gc36Field input,.gc36Field select,.gc36Field textarea){border-color:var(--gc38-line)!important;background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important}
html[data-gc-theme] :is(.gc35PlatformChip,.gc35TinyBtn,.gc36SecondaryBtn){border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-text) 3%,transparent)!important;color:var(--gc38-muted)!important}
html[data-gc-theme] :is(.gc35CardSelect input,.gc35RequestSelect){accent-color:var(--gc38-accent)!important}
html[data-gc-theme] .gcFix35Top{border-color:color-mix(in srgb,var(--gc38-accent) 28%,transparent)!important;background:var(--gc38-surface)!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] :is(.gc36Toast,.gc35Toast):not(.isError){border-color:var(--gc38-line)!important;background:var(--gc38-surface)!important;color:var(--gc38-text)!important}

/* Donations — active theme for chrome; bank/gold figures and success/error states
 * remain meaningful semantic highlights. */
html[data-gc-theme] :is(.gcDonationHomeSection,.gcDonationPanel,.gcDonationCostCard,.gcDonationAmountBox){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important}
html[data-gc-theme] :is(.gcDonationEyebrow,.gcDonationHomeIcon,.gcDonationCostHead span){color:var(--gc38-accent-2)!important}
html[data-gc-theme] :is(.gcDonationIntro,.gcDonationLoading,.gcDonationHomeSection p,.gcDonationCostRow,.gcDonationCostCard p){color:var(--gc38-muted)!important}
html[data-gc-theme] :is(.gcDonationButton,.gcDonationPrimary){border-color:color-mix(in srgb,var(--gc38-accent) 48%,transparent)!important;background:linear-gradient(135deg,var(--gc38-accent-2),var(--gc38-accent))!important;color:var(--gc38-accent-ink)!important}
html[data-gc-theme] :is(.gcDonationSecondary,.gcDonationCopy,.gcDonationCloseX){border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-text) 4%,transparent)!important;color:var(--gc38-text)!important}
html[data-gc-theme] .gcDonationToast:not(.isError){border-color:var(--gc38-line)!important;background:var(--gc38-surface)!important;color:var(--gc38-text)!important}

/* Awards — fully follows selected theme rather than always rendering its old
 * black/gold/purple chrome. Semantic result/status colours remain untouched. */
html[data-gc-theme] body.gcAwardsPage{background:radial-gradient(1100px 520px at 50% -190px,color-mix(in srgb,var(--gc38-accent) 11%,transparent),transparent 64%),var(--gc38-canvas)!important}
html[data-gc-theme] body.gcAwardsPage :is(.gcAwardsHero,.gcAwardsSection,.gcAwardCard,.gcAwardsComingNext,.gcAwardsPickerPanel,.gcAwardsReviewPanel,.gcAwardsReviewList,.gcAwardsBottomNav){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important}
html[data-gc-theme] body.gcAwardsPage :is(.gcAwardsBack,.gcAwardsTopbar button,.gcAwardsSecondary,.gcAwardsPickerMember,.gcAwardNomineeButton){border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-text) 4%,var(--gc38-surface))!important;color:var(--gc38-text)!important}
html[data-gc-theme] body.gcAwardsPage :is(.gcAwardsPrimary,.gcAwardNomineeButton.isSelected,.gcAwardsPickerMember.isActive){border-color:color-mix(in srgb,var(--gc38-accent) 45%,transparent)!important;background:color-mix(in srgb,var(--gc38-accent) 11%,var(--gc38-surface))!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcAwardsPage .gcAwardsPrimary{background:linear-gradient(135deg,var(--gc38-accent-2),var(--gc38-accent))!important;color:var(--gc38-accent-ink)!important}
html[data-gc-theme] body.gcAwardsPage .gcAwardsBottomNav .gcAppNavButton.isActive{background:color-mix(in srgb,var(--gc38-accent) 12%,transparent)!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcAwardsPage :is(.gcAwardsPickerSearch input,.gcAwardsPickerPanel input){background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important;border-color:var(--gc38-line)!important}

/* Gold keeps its earned-currency gold identity, but panel chrome/copy adapts to
 * the chosen theme so Ash/emerald themes do not leave cyan/neutral leaks. */
html[data-gc-theme] body.gcGoldStandaloneBody{background:radial-gradient(circle at 85% 0,rgba(234,165,30,.09),transparent 35%),var(--gc38-canvas)!important;color:var(--gc38-text)!important}
html[data-gc-theme] :is(.gcGoldSection,.gcGoldStat,.gcGoldPrereq,.gcGoldRule,.gcGoldRankTable td,.gcMerchantItem,.gcMerchantWallet,.gcBountyCard,.gcBarracksRow){border-color:var(--gc38-line)!important;background-color:color-mix(in srgb,var(--gc38-surface) 94%,transparent)!important}
html[data-gc-theme] :is(.gcGoldSubtitle,.gcGoldStatLabel,.gcGoldSectionLead,.gcGoldEmpty,.gcGoldRankTable th){color:var(--gc38-muted)!important}

/* Review composer quick-format controls were created after original theme
 * generation and previously stayed cyan. */
html[data-gc-theme] .gcReviewQuickFormat button{border-color:var(--gc38-line)!important;background:linear-gradient(145deg,var(--gc38-surface),var(--gc38-surface-2))!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] .gcReviewQuickFormat span{color:var(--gc38-muted)!important}
html[data-gc-theme] .gcReviewSubheading{color:var(--gc38-text)!important}

/* Notification surfaces already have module theme variables; this final guard
 * also aligns Esmerelda 2.0 with its intended warm-gold accent rather than the
 * older pale-mint fallback. */
html[data-gc-theme] :is(.gcPushPanel,.gcPushAdminPanel){--gc-push-accent:var(--gc38-accent)!important;--gc-push-admin-accent:var(--gc38-accent)!important}
html[data-gc-theme="esmerelda-2"] .gcPushPanel{--gc-push-accent-rgb:247,233,198!important}
html[data-gc-theme="esmerelda-2"] .gcPushAdminPanel{--gc-push-admin-accent-rgb:247,233,198!important}

/* Low-level late-added SVG/UI glyphs should inherit currentColor unless they
 * are explicitly semantic/brand artwork. */
html[data-gc-theme] :is(.gcReviewQuickFormat,.gcQotdAction,.gcQaBtn,.gc35Catalogue,.gcMarketplaceHomeActivity) svg:not([data-brand-icon]){color:inherit}

/* ========================================================================== 
   FIX38 FINAL ROUTE COVERAGE — standalone Admin + Livestream surfaces
   ========================================================================== */

/* Standalone Donations Admin: route-local variables used to be Classic-only. */
html[data-gc-theme] body[data-gc-page="admin_donations"]{
  --bg:var(--gc38-canvas)!important;--surface:var(--gc38-surface)!important;--surface2:var(--gc38-surface-2)!important;
  --border:var(--gc38-line)!important;--accent:var(--gc38-accent)!important;--text:var(--gc38-text)!important;--muted:var(--gc38-muted)!important;
  background:radial-gradient(circle at 10% 0,color-mix(in srgb,var(--gc38-accent) 9%,transparent),transparent 29%),var(--gc38-canvas)!important;color:var(--gc38-text)!important;
}
html[data-gc-theme] body[data-gc-page="admin_donations"] :is(.gcDonAdminButton,.gcDonAdminHero,.gcDonAdminMetric,.gcDonAdminPanel,.gcDonAdminRow,.gcDonAdminAmount input,.gcDonAdminAction,.gcDonConfirmPanel){
  border-color:var(--gc38-line)!important;
}
html[data-gc-theme] body[data-gc-page="admin_donations"] :is(.gcDonAdminButton,.gcDonAdminHero,.gcDonAdminPanel,.gcDonAdminRow,.gcDonConfirmPanel){
  background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;color:var(--gc38-text)!important;
}
html[data-gc-theme] body[data-gc-page="admin_donations"] .gcDonAdminMetric{background:color-mix(in srgb,var(--gc38-text) 3%,var(--gc38-surface))!important}
html[data-gc-theme] body[data-gc-page="admin_donations"] .gcDonAdminAmount input{background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important}
html[data-gc-theme] body[data-gc-page="admin_donations"] :is(.gcDonAdminEyebrow,.gcDonAdminId){color:var(--gc38-accent-2)!important}
html[data-gc-theme] body[data-gc-page="admin_donations"] .gcDonAdminAction:not(.isReceive):not(.isReject){background:color-mix(in srgb,var(--gc38-accent) 7%,var(--gc38-surface))!important;color:var(--gc38-text)!important}
html[data-gc-theme] body[data-gc-page="admin_donations"] .gcDonAdminToast:not(.isError){background:var(--gc38-surface)!important;color:var(--gc38-text)!important;border-color:var(--gc38-line)!important}

/* Themes & Avatars / Experience Admin. */
html[data-gc-theme] body[data-gc-page="admin_experience"]{
  --bg:var(--gc38-canvas)!important;--surface:color-mix(in srgb,var(--gc38-surface) 96%,transparent)!important;--surface2:var(--gc38-surface-2)!important;--surface3:color-mix(in srgb,var(--gc38-canvas) 76%,var(--gc38-surface))!important;
  --border:var(--gc38-line)!important;--border-strong:color-mix(in srgb,var(--gc38-accent) 42%,transparent)!important;--accent:var(--gc38-accent)!important;--accent-soft:color-mix(in srgb,var(--gc38-accent) 10%,transparent)!important;--text:var(--gc38-text)!important;--muted:var(--gc38-muted)!important;
  background:radial-gradient(circle at 88% -4%,color-mix(in srgb,var(--gc38-accent) 10%,transparent),transparent 31%),var(--gc38-canvas)!important;color:var(--gc38-text)!important;
}
html[data-gc-theme] body[data-gc-page="admin_experience"] :is(.gcExperienceAdminHero,.gcExperienceAdminPanel,.gcExperienceAdminCard,.gcExperienceAdminRow,.gcExperienceAdminArchive,.gcExperienceAdminConfirmPanel,.gcExperienceAdminRequirementSummary,.gcExperienceAdminToast:not(.isError)){
  border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;color:var(--gc38-text)!important;
}
html[data-gc-theme] body[data-gc-page="admin_experience"] :is(.gcExperienceAdminEyebrow,.gcExperienceAdminArchiveIcon,.gcExperienceAdminArchiveChevron){color:var(--gc38-accent-2)!important}
html[data-gc-theme] body[data-gc-page="admin_experience"] :is(button,input,select,textarea):not(.danger):not([class*="Danger"]){border-color:var(--gc38-line)}
html[data-gc-theme] body[data-gc-page="admin_experience"] :is(input,select,textarea){background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important}

/* Admin Events: primary/accent chrome follows the selected theme; event live,
 * success, warning, danger and awards-gold semantics remain intentional. */
html[data-gc-theme] body[data-gc-page="admin_events"]{
  --bg:var(--gc38-canvas)!important;--surface:color-mix(in srgb,var(--gc38-surface) 96%,transparent)!important;--surface2:var(--gc38-surface-2)!important;
  --primary:color-mix(in srgb,var(--gc38-accent) 78%,var(--gc38-surface))!important;--primary2:var(--gc38-accent)!important;--accent:var(--gc38-accent-2)!important;
  --text:var(--gc38-text)!important;--muted:var(--gc38-muted)!important;--shadow:0 12px 32px color-mix(in srgb,var(--gc38-accent) 12%,transparent)!important;
  background:radial-gradient(circle at 15% -5%,color-mix(in srgb,var(--gc38-accent) 10%,transparent),transparent 30%),var(--gc38-canvas)!important;color:var(--gc38-text)!important;
}
html[data-gc-theme] body[data-gc-page="admin_events"] :is(.gcAdminEventsHero,.gcAdminEventsPanel,.gcAdminEventCard,.gcAdminEventLiveFields,.gcAdminEventTypeCard,.gcAdminEventActionStatus:not(.isError):not(.isSuccess),.gcAdminEventAwardsOnly){
  border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;
}
html[data-gc-theme] body[data-gc-page="admin_events"] :is(.gcAdminEventTypeIcon,.gcAdminEventRoomButton,.gcAdminEventTypePill:not(.isAwards),.gcAdminEventLiveRules span){border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-accent) 7%,var(--gc38-surface))!important}
html[data-gc-theme] body[data-gc-page="admin_events"] :is(.gcAdminEventTypeIcon,.gcAdminEventRoomButton,.gcAdminEventTypePill:not(.isAwards),.gcAdminEventLiveRules b){color:var(--gc38-accent-2)!important}
html[data-gc-theme] body[data-gc-page="admin_events"] :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]){background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important;border-color:var(--gc38-line)!important}

/* Livestream / Event Room — formerly a hard-coded cyan-purple island. Keep
 * player black, red LIVE dot and moderation/error semantics intact. */
html[data-gc-theme].gcEventRoomPage,
html[data-gc-theme] body.gcEventRoomPage{background:var(--gc38-canvas)!important;color:var(--gc38-text)!important}
html[data-gc-theme] body.gcEventRoomPage .gcEventRoomShell{
  background:radial-gradient(circle at 15% 0,color-mix(in srgb,var(--gc38-accent) 12%,transparent),transparent 34%),radial-gradient(circle at 90% 15%,color-mix(in srgb,var(--gc38-accent-2) 8%,transparent),transparent 34%),var(--gc38-canvas)!important;
}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventRoomBack,.gcEventRoomAction,.gcEventStage,.gcEventChat,.gcEventScheduleRow,.gcEventChatInput,.gcEventEmojiButton,.gcEventEmojiPicker,.gcEventModPanel,.gcEventModActions button,.gcEventToast,.gcEventInlineRetry){
  border-color:var(--gc38-line)!important;
}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventRoomBack,.gcEventRoomAction,.gcEventStage,.gcEventChat,.gcEventScheduleRow,.gcEventEmojiButton,.gcEventEmojiPicker,.gcEventModPanel,.gcEventModActions button,.gcEventToast,.gcEventInlineRetry){
  background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;color:var(--gc38-text)!important;
}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventChatHead,.gcEventChatComposer,.gcEventTyping){background:color-mix(in srgb,var(--gc38-surface) 96%,transparent)!important;border-color:var(--gc38-line)!important}
html[data-gc-theme] body.gcEventRoomPage .gcEventChatInput{background:var(--gc38-surface-2)!important;color:var(--gc38-text)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventRoomEyebrow,.gcEventMessageId,.gcEventStagePresence,.gcEventInlineRetry){color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventTimeText,.gcEventDesc,.gcEventPresence,.gcEventMessageTime,.gcEventChatNotice,.gcEventScheduleLabel,.gcEventScheduleValues small,.gcEventTyping){color:var(--gc38-muted)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventMessageName,.gcEventMessageText,.gcEventScheduleValues strong){color:var(--gc38-text)!important}
html[data-gc-theme] body.gcEventRoomPage .gcEventAvatar{background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-accent) 13%,var(--gc38-surface)),var(--gc38-surface-2))!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventJoinButton,.gcEventSend){border-color:color-mix(in srgb,var(--gc38-accent) 50%,transparent)!important;background:linear-gradient(135deg,var(--gc38-accent-2),var(--gc38-accent))!important;color:var(--gc38-accent-ink)!important;box-shadow:0 0 24px color-mix(in srgb,var(--gc38-accent) 12%,transparent)!important}
html[data-gc-theme] body.gcEventRoomPage .gcEventLiveBadge{border-color:color-mix(in srgb,var(--gc38-accent) 38%,transparent)!important;background:color-mix(in srgb,var(--gc38-accent) 9%,var(--gc38-surface))!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] body.gcEventRoomPage .gcEventLiveBadge::before{background:#ff405e!important;box-shadow:0 0 12px rgba(255,64,94,.8)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventMessages,.gcEventEmojiPicker,.gcEventDetailsBody){scrollbar-color:var(--gc38-accent) var(--gc38-surface-2)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventMessages,.gcEventEmojiPicker,.gcEventDetailsBody)::-webkit-scrollbar-track{background:var(--gc38-surface-2)!important;border-color:var(--gc38-line)!important}
html[data-gc-theme] body.gcEventRoomPage :is(.gcEventMessages,.gcEventEmojiPicker,.gcEventDetailsBody)::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--gc38-accent-2),var(--gc38-accent))!important;border-color:var(--gc38-surface-2)!important;box-shadow:0 0 12px color-mix(in srgb,var(--gc38-accent) 16%,transparent)!important}

/* Vault Applications merged Admin page — premium theme alignment for the
 * FIX38 reliability/confirmation UI. Approval gold remains Vault-semantic. */
html[data-gc-theme] :is(.gcVaultAppMode,.gcVaultAdminHero,.gcVaultAdminCard,.gcVaultAdminToolbar select,.gcVaultAdminToolbar button,.gcVaultReviewFields select,.gcVaultReviewFields textarea,.gcVaultAppDialogCard){border-color:var(--gc38-line)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gc38-surface) 96%,var(--gc38-accent) 4%),var(--gc38-surface-2))!important;color:var(--gc38-text)!important}
html[data-gc-theme] .gcVaultAppMode button.isActive{border-color:color-mix(in srgb,var(--gc38-accent) 32%,transparent)!important;background:color-mix(in srgb,var(--gc38-accent) 10%,var(--gc38-surface))!important;color:var(--gc38-accent-2)!important}
html[data-gc-theme] :is(.gcVaultAdminHero p,.gcVaultAdminCardMeta,.gcVaultReviewFields label,.gcVaultAdminEmpty){color:var(--gc38-muted)!important}
html[data-gc-theme] :is(.gcVaultStatusPill,.gcVaultAdminNotice:not(.isError),.gcVaultAppDialogEyebrow){color:var(--gc38-accent-2)!important;border-color:var(--gc38-line)!important;background:color-mix(in srgb,var(--gc38-accent) 8%,transparent)!important}

@media(prefers-reduced-motion:reduce){
  html[data-gc-theme] body.gcEventRoomPage *,html[data-gc-theme] body[data-gc-page="admin_events"] *,html[data-gc-theme] body[data-gc-page="admin_donations"] *,html[data-gc-theme] body[data-gc-page="admin_experience"] *{scroll-behavior:auto!important}
}
