/* Use the existing desktop section-button palette. The scoped ID keeps
   independently refreshed legacy overview CSS from restoring its old skin. */
html body .wapper .content .automix #am-content .am-team-visual>.am-team-page-actions{
 grid-column:1/-1;min-width:0;
}
html body .wapper .content .automix #am-content :is(
 .am-current-tournament>.am-tour-nav.am-toolbar>button,
 .am-team-page-actions>button.am-team-award-search,
 button.am-team-edit-roster,
 .am-team-history-row>a.am-button
){
 box-sizing:border-box!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 min-width:0!important;max-width:100%!important;height:auto!important;
 min-height:var(--am-section-tab-height,40px)!important;
 padding:var(--am-section-tab-padding,9px 13px)!important;
 border:1px solid var(--am-section-tab-border,#7a6d57)!important;
 border-radius:var(--am-section-tab-radius,7px)!important;
 background:var(--am-section-tab-surface,linear-gradient(125deg,#2a3847,#1b2936))!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,14px)!important;
 line-height:var(--am-section-tab-line,20px)!important;font-weight:700!important;
 text-align:center!important;text-decoration:none!important;text-shadow:none!important;
 white-space:normal!important;overflow-wrap:anywhere!important;
 cursor:pointer;
}
html body .wapper .content .automix #am-content :is(
 .am-current-tournament>.am-tour-nav.am-toolbar>button,
 .am-team-page-actions>button.am-team-award-search,
 button.am-team-edit-roster,
 .am-team-history-row>a.am-button
):hover{
 background:var(--am-section-tab-hover,linear-gradient(125deg,#34495b,#25394a))!important;
 border-color:#ac9568!important;color:#fff0cc!important;
}
html body .wapper .content .automix #am-content .am-current-tournament>.am-tour-nav.am-toolbar>button:is(.active,[aria-pressed="true"]){
 background:var(--am-section-tab-selected,linear-gradient(125deg,#355a69,#244454 72%,#1b3443))!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 .automix #am-content :is(
 .am-current-tournament>.am-tour-nav.am-toolbar>button,
 .am-team-page-actions>button.am-team-award-search,
 button.am-team-edit-roster,
 .am-team-history-row>a.am-button
):focus-visible{
 outline:2px solid #b79a63!important;outline-offset:2px!important;
}

/* Mobile tournament tabs: six public tabs form two equal rows.
   The organizer's optional control has its own compact row. */
@media(max-width:650px){
 html body .wapper .content .automix #am-content .am-current-tournament>.am-tour-nav.am-toolbar{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;gap:5px!important;
 }
 html body .wapper .content .automix #am-content .am-current-tournament>.am-tour-nav.am-toolbar>button{
  width:100%!important;min-height:32px!important;padding:4px 5px!important;
  font-size:11.5px!important;line-height:14px!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
 }
 html body .wapper .content .automix #am-content .am-current-tournament>.am-tour-nav.am-toolbar>button[data-flow-tab]{
  grid-column:1/-1!important;order:-1!important;justify-self:start!important;
  width:auto!important;padding-left:10px!important;padding-right:10px!important;
 }
}
