/* SwapThing mobile header/theme repair: delegated JS handles behavior; this file keeps tap targets/fade without restyling the toggle. */
.swapthing-theme-fade-overlay{position:fixed;inset:0;z-index:2147483000;pointer-events:none;opacity:1;transition:opacity .55s ease;}
.swapthing-theme-fade-overlay.is-fading-out{opacity:0;}
html.is-theme-fading body,
html.is-theme-fading .site-header,
html.is-theme-fading .compact-card,
html.is-theme-fading .listing-card,
html.is-theme-fading .detail-panel,
html.is-theme-fading .nav{transition:background-color .55s ease,color .55s ease,border-color .55s ease,box-shadow .55s ease!important;}
html:not(.is-theme-fading) body,
html:not(.is-theme-fading) .site-header,
html:not(.is-theme-fading) .compact-card,
html:not(.is-theme-fading) .listing-card,
html:not(.is-theme-fading) .detail-panel{transition:background-color .24s ease,color .24s ease,border-color .24s ease;}
.site-header .header-theme-button.theme-toggle-pill{position:relative!important;z-index:1005!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;}
.site-header .theme-toggle-track{pointer-events:none!important;}
@media (max-width:900px){
  .site-header{z-index:3000!important;}
  .site-header .site-header-inner,.site-header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;grid-template-areas:"brand actions" "center center"!important;align-items:center!important;overflow:visible!important;}
  .site-header .brand,.site-header-inner .brand{grid-area:brand!important;min-width:0!important;justify-self:start!important;}
  .site-header .header-actions,.site-header-inner .header-actions{grid-area:actions!important;position:relative!important;z-index:3010!important;pointer-events:auto!important;justify-self:end!important;min-width:max-content!important;}
  .site-header .header-center-controls,.site-header-inner .header-center-controls{grid-area:center!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;justify-self:center!important;overflow:visible!important;padding-top:6px!important;}
  .site-header .header-center-controls:empty,.site-header-inner .header-center-controls:empty,.site-header .header-center-controls:not(:has(.header-mode-switch)),.site-header-inner .header-center-controls:not(:has(.header-mode-switch)){display:none!important;}
  .site-header .site-header-inner:not(:has(.header-mode-switch)),.site-header-inner:not(:has(.header-mode-switch)){grid-template-areas:"brand actions"!important;row-gap:0!important;min-height:0!important;}
  .site-header .site-header-inner:not(:has(.header-mode-switch)) .header-center-controls,.site-header-inner:not(:has(.header-mode-switch)) .header-center-controls{display:none!important;padding:0!important;margin:0!important;height:0!important;}
  .site-header .header-mode-switch,.site-header-inner .header-mode-switch{position:static!important;transform:none!important;width:min(420px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;margin:0 auto!important;display:flex!important;justify-content:center!important;overflow:visible!important;}
  .site-header .header-mode-switch .mode-switch,.site-header-inner .header-mode-switch .mode-switch{width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;overflow:visible!important;}
  .site-header .menu-toggle{position:relative!important;z-index:3020!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;cursor:pointer!important;background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;}
  .site-header .menu-toggle[aria-expanded="true"]{background:var(--green)!important;color:#031008!important;}
  .site-header .nav{position:absolute!important;top:calc(100% + 8px)!important;right:12px!important;left:12px!important;width:auto!important;max-width:none!important;z-index:3005!important;pointer-events:none!important;}
  .site-header .nav.is-open{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
}
@media (max-width:560px){
  .site-header .site-header-inner,.site-header-inner{padding:9px 10px!important;gap:6px 8px!important;width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;}
  .site-header .brand,.site-header-inner .brand{max-width:calc(100vw - 148px)!important;}
  .site-header .header-actions{gap:6px!important;}
  .site-header .menu-toggle{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;}
  .site-header .header-mode-switch,.site-header-inner .header-mode-switch{width:calc(100vw - 30px)!important;max-width:calc(100vw - 30px)!important;}
  .site-header .header-mode-switch .mode-option,.site-header-inner .header-mode-switch .mode-option{font-size:.66rem!important;min-width:0!important;padding-left:.08rem!important;padding-right:.08rem!important;}
}
.site-header .header-theme-button.theme-toggle-pill .theme-toggle-track,.site-header-inner .header-theme-button.theme-toggle-pill .theme-toggle-track{border:2px solid rgba(224,176,80,.86)!important;box-shadow:inset 0 0 0 1px rgba(224,176,80,.18),0 6px 16px rgba(0,0,0,.18)!important;}
.site-header .header-theme-button.theme-toggle-pill:focus-visible .theme-toggle-track,.site-header-inner .header-theme-button.theme-toggle-pill:focus-visible .theme-toggle-track{outline:2px solid rgba(224,176,80,.7)!important;outline-offset:2px!important;}
@media (orientation:landscape) and (max-height:560px) and (max-width:980px){
  .site-header .site-header-inner,.site-header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(168px,260px) max-content!important;grid-template-areas:"brand center actions"!important;align-items:center!important;column-gap:8px!important;row-gap:0!important;min-height:0!important;padding:7px 10px!important;width:100%!important;max-width:100vw!important;overflow:visible!important;}
  .site-header .brand,.site-header-inner .brand{grid-area:brand!important;max-width:none!important;min-width:0!important;overflow:hidden!important;}
  .site-header .brand-logo-wrap,.site-header-inner .brand-logo-wrap{width:50px!important;height:50px!important;min-width:50px!important;flex-basis:50px!important;}
  .site-header .brand-logo-svg,.site-header-inner .brand-logo-svg,.site-header .brand-logo-wrap .brand-logo,.site-header-inner .brand-logo-wrap .brand-logo{width:50px!important;height:50px!important;}
  .site-header .brand-name,.site-header-inner .brand-name{font-size:1rem!important;line-height:1!important;}
  .site-header .brand-tagline,.site-header-inner .brand-tagline{font-size:.58rem!important;line-height:1!important;}
  .site-header .header-center-controls,.site-header-inner .header-center-controls{grid-area:center!important;justify-self:center!important;align-self:center!important;width:100%!important;max-width:260px!important;min-width:0!important;padding:0!important;overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  .site-header .header-mode-switch,.site-header-inner .header-mode-switch{width:100%!important;max-width:260px!important;min-width:0!important;margin:0!important;overflow:visible!important;display:flex!important;justify-content:center!important;}
  .site-header .header-mode-switch .mode-switch,.site-header-inner .header-mode-switch .mode-switch{--tick-size:10px!important;width:100%!important;max-width:260px!important;min-width:0!important;height:34px!important;padding:0 0 7px!important;margin:0!important;overflow:visible!important;}
  .site-header .header-mode-switch .mode-switch::before,.site-header-inner .header-mode-switch .mode-switch::before{left:7px!important;right:7px!important;bottom:7px!important;height:2px!important;}
  .site-header .header-mode-switch .mode-option,.site-header-inner .header-mode-switch .mode-option{font-size:.54rem!important;line-height:1!important;min-width:0!important;padding:0 .04rem 13px!important;white-space:nowrap!important;}
  .site-header .header-actions,.site-header-inner .header-actions{grid-area:actions!important;justify-self:end!important;align-self:center!important;min-width:max-content!important;gap:5px!important;}
  .site-header .theme-toggle-pill,.site-header .menu-toggle,.site-header .profile-section-menu-toggle,.site-header .profile-chip,.site-header-inner .theme-toggle-pill,.site-header-inner .menu-toggle,.site-header-inner .profile-section-menu-toggle,.site-header-inner .profile-chip{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;flex:0 0 38px!important;}
  .site-header .header-theme-button.theme-toggle-pill .theme-toggle-track,.site-header-inner .header-theme-button.theme-toggle-pill .theme-toggle-track{width:34px!important;height:28px!important;}
  .site-header .header-theme-button.theme-toggle-pill .theme-toggle-knob,.site-header-inner .header-theme-button.theme-toggle-pill .theme-toggle-knob{width:22px!important;height:22px!important;}
  .site-header .header-theme-button.theme-toggle-pill[data-theme-state=dark] .theme-toggle-knob,.site-header-inner .header-theme-button.theme-toggle-pill[data-theme-state=dark] .theme-toggle-knob{transform:translateX(8px)!important;}
}
@media (prefers-reduced-motion:reduce){.swapthing-theme-fade-overlay{display:none!important;}html.is-theme-fading *{transition:none!important;}}
