/* Section switches only. Owns dimensions, palette and interaction states.
   The replaced page-specific declarations were removed, not layered below.
   Search icons, submit/delete buttons, pagination and sidebar navigation excluded. */
:root{
  --am-section-tab-height:40px;
  --am-section-tab-font:14px;
  --am-section-tab-line:20px;
  --am-section-tab-padding:9px 13px;
  --am-section-tab-radius:7px;
  --am-section-tab-border:#7a6d57;
  --am-section-tab-surface:linear-gradient(125deg,#2a3847 0%,#1b2936 100%);
  --am-section-tab-hover:linear-gradient(125deg,#34495b 0%,#25394a 100%);
  --am-section-tab-selected:linear-gradient(125deg,#355a69 0%,#244454 72%,#1b3443 100%);
}
html body .wapper .content :is(
  .automix-frag-sources ul,.hitmap-stats-card .hitmap-modes,
  .automix .am-match-types,.automix .am-match-scope,
  .automix .am-current-tournament>.am-tour-nav.am-toolbar,
  .gma-personal-profile .gma-personal-period-switch,
  .gma-profile>.gma-tabs,.gma-profile .gma-chart-range,
  .automix-hitdash .automix-hitdash-tabs
){
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  align-items:stretch!important;justify-content:flex-start!important;
  gap:8px!important;min-width:0;max-width:100%;overflow:visible!important;
}
html body .wapper .content :is(
  .stats-main-card .automix-frag-sources a,
  .hitmap-stats-card .hitmap-modes a,
  .automix .am-match-types>button,.automix .am-match-scope>button,
  .automix .am-current-tournament>.am-tour-nav.am-toolbar>button,
  .gma-personal-profile .gma-personal-period,
  .gma-profile>.gma-tabs .gma-tab,.gma-profile .gma-chart-range>button,
  .automix-hitdash .automix-hitdash-tabs>button
){
  box-sizing:border-box!important;display:inline-flex!important;flex:0 0 auto!important;
  flex-direction:row!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:var(--am-section-tab-height)!important;max-height:none!important;
  margin:0!important;padding:var(--am-section-tab-padding)!important;
  border:1px solid var(--am-section-tab-border)!important;border-radius:var(--am-section-tab-radius)!important;
  background:var(--am-section-tab-surface)!important;color:#eef2f4!important;
  box-shadow:inset 0 1px rgba(255,255,255,.055),0 1px 2px rgba(0,0,0,.12)!important;
  font-family:inherit!important;font-size:var(--am-section-tab-font)!important;
  line-height:var(--am-section-tab-line)!important;font-weight:700!important;font-style:normal!important;
  text-align:center!important;text-decoration:none!important;text-transform:none!important;
  text-shadow:none!important;letter-spacing:normal!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;
  cursor:pointer;transition:background .16s,border-color .16s,color .16s!important;
}
html body .wapper .content :is(
  .stats-main-card .automix-frag-sources a,.hitmap-stats-card .hitmap-modes a,
  .automix .am-match-types>button,.automix .am-match-scope>button,
  .automix .am-current-tournament>.am-tour-nav.am-toolbar>button,
  .gma-personal-profile .gma-personal-period,
  .gma-profile>.gma-tabs .gma-tab,.gma-profile .gma-chart-range>button,
  .automix-hitdash .automix-hitdash-tabs>button
):hover{
  background:var(--am-section-tab-hover)!important;border-color:#ac9568!important;color:#fff0cc!important;
}
html body .wapper .content :is(
  .stats-main-card .automix-frag-sources .active>a,.hitmap-stats-card .hitmap-modes a.active,
  .automix .am-match-types>button.active,.automix .am-match-scope>button.active,
  .automix .am-current-tournament>.am-tour-nav.am-toolbar>button.active,
  .gma-personal-profile .gma-personal-period:is(.active,[aria-pressed=true]),
  .gma-profile>.gma-tabs .gma-tab.active,.gma-profile .gma-chart-range>button.active,
  .automix-hitdash .automix-hitdash-tabs>button.active
){
  background:var(--am-section-tab-selected)!important;border-color:#b79a63!important;color:#fff2d3!important;
  box-shadow:inset 0 1px rgba(228,248,255,.13),0 1px 2px rgba(0,0,0,.12)!important;
}
html body .wapper .content :is(
  .automix-frag-sources a,.hitmap-modes a,.am-match-types>button,.am-match-scope>button,
  .am-tour-nav>button,.gma-personal-period,.gma-tab,.gma-chart-range>button,.automix-hitdash-tabs>button
):focus-visible{outline:2px solid #b79a63!important;outline-offset:2px!important;}
html body .wapper .content :is(.am-match-types>button,.am-match-scope>button,.am-tour-nav>button,.gma-personal-period,.gma-tab,.gma-chart-range>button,.automix-hitdash-tabs>button):disabled{cursor:default!important;opacity:.55;}
@media(max-width:650px){
  :root{--am-section-tab-height:36px;--am-section-tab-font:12px;--am-section-tab-line:16px;--am-section-tab-padding:6px 10px;}
  html body .wapper .content :is(.automix-frag-sources ul,.hitmap-modes,.am-match-types,.am-match-scope,.am-tour-nav,.gma-personal-period-switch,.gma-tabs,.gma-chart-range,.automix-hitdash-tabs){gap:6px!important;}
}
@media(prefers-reduced-motion:reduce){
  html body .wapper .content :is(.automix-frag-sources a,.hitmap-modes a,.am-match-types>button,.am-match-scope>button,.am-tour-nav>button,.gma-personal-period,.gma-tab,.gma-chart-range>button,.automix-hitdash-tabs>button){transition:none!important;}
}
