/* 2026-07-09 emergency visual repair: calm the arcade/gold treatment and restore readable theme controls. */
.site-header .header-theme-button.theme-toggle-pill{width:72px!important;height:42px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;}
.site-header .header-theme-button.theme-toggle-pill .theme-toggle-track{position:relative!important;width:64px!important;height:34px!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.28)!important;box-shadow:none!important;display:block!important;overflow:hidden!important;}
.site-header .header-theme-button.theme-toggle-pill .theme-toggle-knob{position:absolute!important;top:4px!important;left:4px!important;width:26px!important;height:26px!important;border-radius:50%!important;background:linear-gradient(145deg,#f8fafc,#cbd5e1)!important;box-shadow:0 3px 8px rgba(0,0,0,.28)!important;transform:translateX(0)!important;transition:transform .22s ease!important;z-index:2!important;}
.site-header .header-theme-button.theme-toggle-pill[data-theme-state="dark"] .theme-toggle-knob{transform:translateX(30px)!important;background:linear-gradient(145deg,#e0f2fe,#93c5fd)!important;}
.site-header .theme-icon-sun,.site-header .theme-icon-moon{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;font-size:.88rem!important;line-height:1!important;z-index:1!important;opacity:.85!important;text-shadow:none!important;}
.site-header .theme-icon-sun{left:10px!important;color:#facc15!important}.site-header .theme-icon-moon{right:10px!important;color:#bfdbfe!important}
.site-header .menu-toggle{background:linear-gradient(180deg,#090a0d,#16110a)!important;border:1px solid rgba(224,176,80,.88)!important;border-radius:16px!important;box-shadow:0 8px 18px rgba(0,0,0,.32),0 0 0 1px rgba(255,228,150,.08) inset!important;color:#f3c766!important;}
.site-header .menu-toggle span,.site-header .menu-toggle i,.site-header .menu-toggle::before,.site-header .menu-toggle::after{background:#f3c766!important;color:#f3c766!important;border-color:#f3c766!important;}

/* Undo broad tactile/arcade 3D treatment on ordinary controls. Keep buttons polished, not toy-like. */
body main.site-main :where(.primary-btn,.secondary-btn,.button,.small-btn,.nav-cta,.browse-submit-btn,.browse-view-button,.browse-search-toggle,.copy-link-btn,.game-toast-action,.browse-hero-add-listing,.listing-detail-add-listing),
.site-header :where(.nav-link.nav-cta),button.primary-btn,button.secondary-btn,a.primary-btn,a.secondary-btn{border-bottom-width:1px!important;box-shadow:0 8px 18px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.12)!important;text-shadow:none!important;filter:none!important;transform:none!important;}
body main.site-main :where(.browse-view-button,.browse-search-toggle){background:rgba(15,23,42,.86)!important;border:1px solid rgba(148,163,184,.38)!important;color:#e5e7eb!important;border-radius:16px!important;}
body main.site-main :where(.primary-btn,.button.primary,.browse-hero-add-listing){background:linear-gradient(135deg,#34d399,#16a34a)!important;color:#031008!important;border-color:rgba(187,247,208,.55)!important;}
body main.site-main :where(.secondary-btn,.button.secondary,.small-btn){background:rgba(15,23,42,.86)!important;color:#e5e7eb!important;border-color:rgba(148,163,184,.38)!important;}

/* Return browse cards to SwapThing premium dark marketplace styling. */
body main.site-main .container.browse-page #listing-grid .listing-card{background:linear-gradient(180deg,rgba(16,31,29,.96),rgba(10,22,29,.98))!important;border:1px solid rgba(52,211,153,.38)!important;box-shadow:0 18px 36px rgba(0,0,0,.28)!important;color:#e5e7eb!important;}
body main.site-main .container.browse-page #listing-grid .listing-card-service{background:linear-gradient(180deg,rgba(20,31,44,.96),rgba(12,24,38,.98))!important;border-color:rgba(125,211,252,.34)!important;}
body main.site-main .container.browse-page #listing-grid .listing-title a,body main.site-main .container.browse-page #listing-grid .listing-card h3,body main.site-main .container.browse-page #listing-grid .listing-card strong{color:#f8fafc!important;text-shadow:none!important;}
body main.site-main .container.browse-page #listing-grid .listing-card p,body main.site-main .container.browse-page #listing-grid .listing-desc{color:#cbd5e1!important;}
body main.site-main .container.browse-page .type-pill,body main.site-main .container.browse-page .image-location-pill{background:rgba(52,211,153,.92)!important;color:#052e1b!important;border:1px solid rgba(187,247,208,.52)!important;box-shadow:0 6px 14px rgba(0,0,0,.18)!important;}
body main.site-main .container.browse-page .listing-card-service .type-pill,body main.site-main .container.browse-page .listing-card-service .image-location-pill{background:rgba(147,197,253,.92)!important;color:#082f49!important;border-color:rgba(191,219,254,.55)!important;}
body main.site-main .container.browse-page .listing-rating-pill{background:rgba(52,211,153,.88)!important;color:#052e1b!important;border:1px solid rgba(187,247,208,.52)!important;box-shadow:0 6px 14px rgba(0,0,0,.18)!important;}
body main.site-main .container.browse-page .listing-card-service .listing-rating-pill{background:rgba(147,197,253,.88)!important;color:#082f49!important;border-color:rgba(191,219,254,.55)!important;}

html[data-theme="light"] .site-header .header-theme-button.theme-toggle-pill .theme-toggle-track{background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.28)!important;}
html[data-theme="light"] .site-header .menu-toggle{background:linear-gradient(180deg,#050608,#181109)!important;color:#f3c766!important;border-color:rgba(224,176,80,.88)!important;}
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card *{color:#e5e7eb!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card h3,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card h3 a,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card .listing-title,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card .listing-title a{color:#f8fafc!important;-webkit-text-fill-color:#f8fafc!important;text-shadow:none!important;}
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card p,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card .listing-desc{color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important;}
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card .type-pill,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card .listing-rating-pill,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card .image-location-pill{color:#052e1b!important;-webkit-text-fill-color:#052e1b!important;}
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card-service .type-pill,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card-service .listing-rating-pill,
html[data-theme="light"] body main.site-main .container.browse-page #listing-grid .listing-card-service .image-location-pill{color:#082f49!important;-webkit-text-fill-color:#082f49!important;}

/* The footer end-of-browse message is the notification system: black surface, gold border, no secondary floating toast. */
body main.site-main .browse-join-nudge,
body main.site-main .infinite-sentinel .browse-join-nudge,
.game-toast{background:linear-gradient(180deg,rgba(7,8,10,.98),rgba(18,14,8,.96))!important;border:1px solid rgba(224,176,80,.9)!important;color:#f8fafc!important;box-shadow:0 18px 42px rgba(0,0,0,.36),0 0 0 1px rgba(255,228,150,.08) inset!important;}
body main.site-main .browse-join-nudge strong,
.game-toast strong{color:#fff8dc!important;}
body main.site-main .browse-join-nudge span,
.game-toast p{color:#d6d3c8!important;}
body main.site-main .browse-end-beta-signup,
.game-toast-action{background:linear-gradient(135deg,#f5d27a,#c58a24)!important;color:#160f05!important;border:1px solid rgba(255,236,170,.78)!important;box-shadow:0 8px 16px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.32)!important;}
.browse-end-celebration-stage{display:none!important;}
